Ik heb mijn RPi 2b vervangen voor een P4, ik draai hier Domoticz op met diverse componenten waaronder 2 x een Piface.
De instellingen staan in het bestand piface.conf.
Als ik Domoticz start en in de log kijk zie ik dat de file niet vanaf het begin start maar vanaf adres 0 pin 6
Misschien iemand een idee hoe dit kan ?

2020-02-02 15:07:28.935 Astronomical twilight start: 05:20:00 Astronomical twilight end: 18:23:00
2020-02-02 15:07:29.307 Active notification Subsystems: (0/13)
2020-02-02 15:07:29.349 Starting shared server on: :::6144
2020-02-02 15:07:35.876 PiFace: SPI device opened successfully
2020-02-02 15:07:35.994 (piface) Lighting 1 (Unknown)
2020-02-02 15:07:35.882 Status: PiFace: config file: Valid address: 0 , Pin: 6 and Port I Parameter: count_update_interval_sec , Value 10
2020-02-02 15:07:35.882 Status: PiFace: config file: Valid address: 0 , Pin: 7 and Port O Parameter: enabled , Value true
2020-02-02 15:07:35.882 Status: PiFace: config file: Valid address: 0 , Pin: 7 and Port O Parameter: pin_type , Value level
2020-02-02 15:07:35.882 Status: PiFace: config file: Valid address: 0 , Pin: 7 and Port O Parameter: count_enabled , Value false
2020-02-02 15:07:35.882 Status: PiFace: config file: Valid address: 0 , Pin: 7 and Port O Parameter: count_type , Value generic
2020-02-02 15:07:35.882 Status: PiFace: config file: Valid address: 0 , Pin: 7 and Port O Parameter: count_update_interval_sec , Value 10
2020-02-02 15:07:35.882 Status: PiFace: config file: Valid address: 0 , Pin: 7 and Port I Parameter: enabled , Value true
2020-02-02 15:07:35.882 Status: PiFace: config file: Valid address: 0 , Pin: 7 and Port I Parameter: pin_type , Value rising
2020-02-02 15:07:35.882 Status: PiFace: config file: Valid address: 0 , Pin: 7 and Port I Parameter: count_enabled , Value true
2020-02-02 15:07:35.882 Status: PiFace: config file: Valid address: 0 , Pin: 7 and Port I Parameter: count_type , Value rfxmeter
2020-02-02 15:07:35.882 Status: PiFace: config file: Valid address: 0 , Pin: 7 and Port I Parameter: count_update_interval_sec , Value 10
2020-02-02 15:07:35.882 Status: PiFace: config file: Valid address: 1 , Pin: 0 and Port O Parameter: enabled , Value true
2020-02-02 15:07:35.882 Status: PiFace: config file: Valid address: 1 , Pin: 0 and Port O Parameter: pin_type , Value level
2020-02-02 15:07:35.882 Status: PiFace: config file: Valid address: 1 , Pin: 0 and Port O Parameter: count_enabled , Value false
2020-02-02 15:07:35.882 Status: PiFace: config file: Valid address: 1 , Pin: 0 and Port O Parameter: count_type , Value generic
2020-02-02 15:07:35.882 Status: PiFace: config file: Valid address: 1 , Pin: 0 and Port O Parameter: count_update_interval_sec , Value 10
2020-02-02 15:07:35.882 Status: PiFace: config file: Valid address: 1 , Pin: 0 and Port I Parameter: enabled , Value true
2020-02-02 15:07:35.882 Status: PiFace: config file: Valid address: 1 , Pin: 0 and Port I Parameter: pin_type , Value rising
2020-02-02 15:07:35.882 Status: PiFace: config file: Valid address: 1 , Pin: 0 and Port I Parameter: count_enabled , Value true
2020-02-02 15:07:35.882 Status: PiFace: config file: Valid address: 1 , Pin: 0 and Port I Parameter: count_type , Value rfxmeter
2020-02-02 15:07:35.882 Status: PiFace: config file: Valid address: 1 , Pin: 0 and Port I Parameter: count_update_interval_sec , Value 10

En hieronder een deel van de piface.conf zoals deze in de Raspberry wordt geladen:




piface.0.output.0.enabled=true
piface.0.output.0.pin_type=level
piface.0.output.0.count_enabled=false
piface.0.output.0.count_type=generic
piface.0.output.0.count_update_interval_sec=10

piface.0.input.0.enabled=true                    //watermeter
piface.0.input.0.pin_type=rising
piface.0.input.0.count_enabled=true
piface.0.input.0.count_type=rfxmeter
piface.0.input.0.count_update_interval_sec=1

piface.0.output.1.enabled=true
piface.0.output.1.pin_type=level
piface.0.output.1.count_enabled=false
piface.0.output.1.count_type=generic
piface.0.output.1.count_update_interval_sec=10

piface.0.input.1.enabled=true                   //s0 E-meter
piface.0.input.1.pin_type=rising
piface.0.input.1.count_enabled=true
piface.0.input.1.count_type=rfxmeter
piface.0.input.1.count_update_interval_sec=1

Beetje offtopic maar hoe draait Domoticz op een RPi 2b?

Op 2 februari 2020 16:19:11 schreef bprosman:
Beetje offtopic maar hoe draait Domoticz op een RPi 2b?

Draait best Oké , maar ik merk wel dat deze 4 veel sneller is.
Ik draaide vroeger altijd Domoticz en Enecsys samen op 1 RPi en dat was eigenlijk teveel van het goede.(maar het ging wel)

Komen de 0.1 ... 0.5 wel voor in de Device List ?

Heb je gekeken of je de output 0.1 wel kunt aanzetten?

Heb je twee maal een Piface toegevoegd in Hardware ? (weet niet of dit kan)

Ik mis ook nog een stukje log:

PiFaces found: x 

waar X het aantal Boards zijn.

Je krijgt rare fouten als de SPI draden te lang zijn en van ongelijke lengte. Max 15cm.

De PiFace moet dezelfde GND hebben als de Pi4.

[Bericht gewijzigd door ritmeester op (20%)]

Op 2 februari 2020 16:44:32 schreef ritmeester:
Komen de 0.1 ... 0.5 wel voor in de Device List ?
Heb je gekeken of je de output 0.1 wel kunt aanzetten?

Deze komen in de device list voor en ik kan ze ook aanzetten.

Heb je twee maal een Piface toegevoegd in Hardware ? (weet niet of dit kan)

Ik heb 1 x de piface toegevoegd en er worden 16 in en 16 uitgangen weergegeven in de Device list.

Ik mis ook nog een stukje log:

PiFaces found: x 

waar X het aantal Boards zijn.

Klopt , als ik in de piface.conf file een aantal regels eruit haal staat er wel :


PiFaces found:0
PiFaces found:1

Je krijgt rare fouten als de SPI draden te lang zijn en van ongelijke lengte. Max 15cm.

De PiFace moet dezelfde GND hebben als de Pi4

Draden zijn ongeveer 10 cm en alles zit op dezelfde voeding.
Op de RPi 2B draaide dit ook zoals het moet , enigste verschil is dat de RPi 4 op
Raspbian Buster draait.

Als ik de laatste regels van de configfile weg laat dan begint hij wel bij het begin.
Het lijkt wel of de file te lang is .
Hieronder de file bij deze heb ik de piface 2 gedisabled.

2020-02-02 18:33:21.940 Status: PiFace: Starting PiFace_SPI_Start()
2020-02-02 18:33:21.941 Status: PiFace: Found the following PiFaces:
2020-02-02 18:33:21.941 Status: PiFace: 0
2020-02-02 18:33:21.941 Status: PiFace: 1
2020-02-02 18:33:21.943 Status: PiFace: config file: Valid address: 0 , Pin: 0 and Port O Parameter: enabled , Value true
2020-02-02 18:33:21.943 Status: PiFace: config file: Valid address: 0 , Pin: 0 and Port O Parameter: pin_type , Value level
2020-02-02 18:33:21.943 Status: PiFace: config file: Valid address: 0 , Pin: 0 and Port O Parameter: count_enabled , Value false
2020-02-02 18:33:21.943 Status: PiFace: config file: Valid address: 0 , Pin: 0 and Port O Parameter: count_type , Value generic
2020-02-02 18:33:21.943 Status: PiFace: config file: Valid address: 0 , Pin: 0 and Port O Parameter: count_update_interval_sec , Value 10
2020-02-02 18:33:21.943 Status: PiFace: config file: Valid address: 0 , Pin: 0 and Port I Parameter: enabled , Value true
2020-02-02 18:33:21.943 Status: PiFace: config file: Valid address: 0 , Pin: 0 and Port I Parameter: pin_type , Value rising
2020-02-02 18:33:21.943 Status: PiFace: config file: Valid address: 0 , Pin: 0 and Port I Parameter: count_enabled , Value true
2020-02-02 18:33:21.943 Status: PiFace: config file: Valid address: 0 , Pin: 0 and Port I Parameter: count_type , Value rfxmeter
2020-02-02 18:33:21.944 Status: PiFace: config file: Valid address: 0 , Pin: 0 and Port I Parameter: count_update_interval_sec , Value 1
2020-02-02 18:33:21.944 Status: PiFace: config file: Valid address: 0 , Pin: 1 and Port O Parameter: enabled , Value true
2020-02-02 18:33:21.944 Status: PiFace: config file: Valid address: 0 , Pin: 1 and Port O Parameter: pin_type , Value level
2020-02-02 18:33:21.944 Status: PiFace: config file: Valid address: 0 , Pin: 1 and Port O Parameter: count_enabled , Value false
2020-02-02 18:33:21.944 Status: PiFace: config file: Valid address: 0 , Pin: 1 and Port O Parameter: count_type , Value generic
2020-02-02 18:33:21.944 Status: PiFace: config file: Valid address: 0 , Pin: 1 and Port O Parameter: count_update_interval_sec , Value 10
2020-02-02 18:33:21.944 Status: PiFace: config file: Valid address: 0 , Pin: 1 and Port I Parameter: enabled , Value true
2020-02-02 18:33:21.944 Status: PiFace: config file: Valid address: 0 , Pin: 1 and Port I Parameter: pin_type , Value rising
2020-02-02 18:33:21.944 Status: PiFace: config file: Valid address: 0 , Pin: 1 and Port I Parameter: count_enabled , Value true
2020-02-02 18:33:21.944 Status: PiFace: config file: Valid address: 0 , Pin: 1 and Port I Parameter: count_type , Value rfxmeter
2020-02-02 18:33:21.944 Status: PiFace: config file: Valid address: 0 , Pin: 1 and Port I Parameter: count_update_interval_sec , Value 1
2020-02-02 18:33:21.944 Status: PiFace: config file: Valid address: 0 , Pin: 2 and Port O Parameter: enabled , Value true
2020-02-02 18:33:21.944 Status: PiFace: config file: Valid address: 0 , Pin: 2 and Port O Parameter: pin_type , Value level
2020-02-02 18:33:21.944 Status: PiFace: config file: Valid address: 0 , Pin: 2 and Port O Parameter: count_enabled , Value false
2020-02-02 18:33:21.944 Status: PiFace: config file: Valid address: 0 , Pin: 2 and Port O Parameter: count_type , Value generic
2020-02-02 18:33:21.944 Status: PiFace: config file: Valid address: 0 , Pin: 2 and Port O Parameter: count_update_interval_sec , Value 10
2020-02-02 18:33:21.944 Status: PiFace: config file: Valid address: 0 , Pin: 2 and Port I Parameter: enabled , Value true
2020-02-02 18:33:21.945 Status: PiFace: config file: Valid address: 0 , Pin: 2 and Port I Parameter: pin_type , Value rising
2020-02-02 18:33:21.945 Status: PiFace: config file: Valid address: 0 , Pin: 2 and Port I Parameter: count_enabled , Value true
2020-02-02 18:33:21.945 Status: PiFace: config file: Valid address: 0 , Pin: 2 and Port I Parameter: count_type , Valu

[Bericht gewijzigd door 19roland70 op (63%)]

Kan me niet voorstellen dat de piface.conf te lang is.

Ikzelf maak en verkoop stackable "PiFace" units. Zelfs met een 64Bit is dit geen probleem op een Pi4. Ik gebruik wel de standaard install van Raspbian en een clean install van Domoticz.

Ik heb van gebruikers veel meegemaakt maar jouw probleem nog niet.

In mijn standaard piface.conf voor 64Bit staat dit:

piface.0.output.0.enabled=true
piface.0.output.0.pin_type=level
piface.0.output.0.count_enabled=true
piface.0.output.0.count_update_interval_sec=10

piface.0.input.0.enabled=true
piface.0.input.0.pin_type=level
piface.0.input.0.count_enabled-false
piface.0.input.0.count_update_interval_sec=10

piface.0.output.1.enabled=true
piface.0.output.1.pin_type=level
piface.0.output.1.count_enabled=true
piface.0.output.1.count_update_interval_sec=10

piface.0.input.1.enabled=true
piface.0.input.1.pin_type=level
piface.0.input.1.count_enabled-true
piface.0.input.1.count_update_interval_sec=10

Enzovoort.

. (quote button)

[Bericht gewijzigd door ritmeester op (88%)]

Ik heb verder ook een clean install gedaan Raspbian en de laatste stable van Domoticz.
Ik vind het raar dat het config file ergens halverwege begint ,toch worden alle 16 in en 16 uitgangen zichtbaar in het device menu.

Even een topickick.
Zojuist de piface.conf aangepast zodat ik minder regels heb die gelezen moeten worden.
d.w.z. deze 2 regels gedisabled bij alle in en uitgangen, behalve de tellers.

//piface.0.output.1.count_type=generic
//piface.0.output.1.count_update_interval_sec=10

Het totale aantal leesbare regels is nu 97.
Volgens mij zit er toch een limiet aan het aantal regels.