[GELÖST] GPIO Fehlermeldungen im LOG

Begonnen von Burny4600, 26 November 2017, 16:05:15

Vorheriges Thema - Nächstes Thema

Burny4600

Seit kurzem fallen mir folgende Logeinträge beim Start des RPI auf verursacht durch GPIO's.
Grundsätzlich funktioniert aber alles.
/usr/local/bin/gpio: Unable to open GPIO direction interface for pin 5: No such file or directory
2017.11.26 15:44:05.234 1: Can't open file: Pin29, active_low
/usr/local/bin/gpio: Unable to open GPIO direction interface for pin 5: No such file or directory
2017.11.26 15:44:05.475 1: Can't open file: Pin29, edge
2017.11.26 15:44:06.277 1: Can't open file: Pin29, value
2017.11.26 15:44:06.282 1: PERL WARNING: Use of uninitialized value $val in string eq at ./FHEM/51_RPI_GPIO.pm line 272, <$fh> line 47.

Zudem verwende ich PIN 5 für RPI_GPIO 3 sowie auch RPI_GPIO 2 nicht weil hier ein I2C Gerät in Verwendung ist.
Pin29 wird aktuell nicht verwendet ist aber in der Konfiguration eingetragen zur weiteren Verwendung.

Die einzige Komponente die zu den GPIO's in Verwendung ist ist eine S.USV Einheit die I2C Verwendet und PIN 13 / RPI_GPIO 27.
Die Rechte in der Shell passen auch.
pi@ccs-ht-rasp09:~ $ ls -l /sys/class/gpio
insgesamt 0
-rwxrwx--- 1 root gpio 4096 Nov 26 15:44 export
lrwxrwxrwx 1 root gpio    0 Nov 26 15:44 gpio12 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio12
lrwxrwxrwx 1 root gpio    0 Nov 24 13:39 gpio13 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio13
lrwxrwxrwx 1 root gpio    0 Nov 24 13:39 gpio16 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio16
lrwxrwxrwx 1 root gpio    0 Nov 26 15:44 gpio17 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio17
lrwxrwxrwx 1 root gpio    0 Nov 24 13:39 gpio18 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio18
lrwxrwxrwx 1 root gpio    0 Nov 26 12:38 gpio19 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio19
lrwxrwxrwx 1 root gpio    0 Nov 24 13:39 gpio20 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio20
lrwxrwxrwx 1 root gpio    0 Nov 24 13:39 gpio21 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio21
lrwxrwxrwx 1 root gpio    0 Nov 24 13:39 gpio22 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio22
lrwxrwxrwx 1 root gpio    0 Nov 24 13:39 gpio23 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio23
lrwxrwxrwx 1 root gpio    0 Nov 24 13:39 gpio24 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio24
lrwxrwxrwx 1 root gpio    0 Nov 24 13:39 gpio25 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio25
lrwxrwxrwx 1 root gpio    0 Nov 24 13:39 gpio26 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio26
lrwxrwxrwx 1 root gpio    0 Jan  1  2000 gpio27 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio27
lrwxrwxrwx 1 root gpio    0 Nov 26 15:44 gpio6 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio6
lrwxrwxrwx 1 root gpio    0 Nov 24 13:17 gpiochip0 -> ../../devices/platform/soc/3f200000.gpio/gpio/gpiochip0
-rwxrwx--- 1 root gpio 4096 Nov 26 15:43 unexport

Wo kann ich bei der Fehlersuche weiter ansetzten?
Mfg Chris

Raspberry Pi 2/2+/3/3+/4 / Betriebssystem: Bullseye Lite
Schnittstellen: RFXtrx433E, SIGNALduino, MQTT, nanoCUL, HM-MOD-UART, 1-Wire, LAN, ser2net, FHEM2FEHEM
Devices: S.USV, APC-USV, Fronius Datalogger Web 2, FS20, IT, Resol VBUS & DL2, TEK603, WMR200, YouLess, Homematic, MQTT

Frank_Huber

Raspbian Upgrade gemacht?
Zufällig von Kernel 4.4 auf 4.9 gezogen?

Burny4600

#2
Nein diese beiden System wurde komplett neu mit dem aktuellen Jessie aufgesetzt.

Habe gerade noch die Firmware Version abgerufen. Diese ist:
pi@ccs-ht-rasp09:~ $ uname -a
Linux ccs-ht-rasp09 4.9.60-v7+ #1048 SMP Fri Nov 3 16:05:21 GMT 2017 armv7l GNU/Linux


Muss jetzt bei einer Neuinstallation wieder irgendein Downgrade gefahren werden?
Mfg Chris

Raspberry Pi 2/2+/3/3+/4 / Betriebssystem: Bullseye Lite
Schnittstellen: RFXtrx433E, SIGNALduino, MQTT, nanoCUL, HM-MOD-UART, 1-Wire, LAN, ser2net, FHEM2FEHEM
Devices: S.USV, APC-USV, Fronius Datalogger Web 2, FS20, IT, Resol VBUS & DL2, TEK603, WMR200, YouLess, Homematic, MQTT

Frank_Huber

Nein, bei Neuinstallation ist alles ok.
Wenn du Jessie upgradest auf den neuen Kernel, dann kracht es.
Da hilft dann nur nen Kernel downgrade.

https://wiki.fhem.de/wiki/Raspberry_Pi:_GPIOs_schalten
Hast du gelesen?
Sektion Perl Modul.
Rechte anpassen oder Wiringpi...

Mit dem Handy online, daher kurz gefasst...


Burny4600

#4
Wei schon erwähnt passen die Rechte und WiringPi ist laut FHEM sowei die Rechte und GPIO Einrichtung erfolgt.
Ein Upgrade (rpi-udpate) ist auch keines erfolgt.
Mfg Chris

Raspberry Pi 2/2+/3/3+/4 / Betriebssystem: Bullseye Lite
Schnittstellen: RFXtrx433E, SIGNALduino, MQTT, nanoCUL, HM-MOD-UART, 1-Wire, LAN, ser2net, FHEM2FEHEM
Devices: S.USV, APC-USV, Fronius Datalogger Web 2, FS20, IT, Resol VBUS & DL2, TEK603, WMR200, YouLess, Homematic, MQTT

klausw

Hallo Chris

Zitat von: Burny4600 am 26 November 2017, 16:05:15
Seit kurzem fallen mir folgende Logeinträge beim Start des RPI auf verursacht durch GPIO's.
Grundsätzlich funktioniert aber alles.
/usr/local/bin/gpio: Unable to open GPIO direction interface for pin 5: No such file or directory
2017.11.26 15:44:05.234 1: Can't open file: Pin29, active_low
/usr/local/bin/gpio: Unable to open GPIO direction interface for pin 5: No such file or directory
2017.11.26 15:44:05.475 1: Can't open file: Pin29, edge
2017.11.26 15:44:06.277 1: Can't open file: Pin29, value
2017.11.26 15:44:06.282 1: PERL WARNING: Use of uninitialized value $val in string eq at ./FHEM/51_RPI_GPIO.pm line 272, <$fh> line 47.

Zudem verwende ich PIN 5 für RPI_GPIO 3 sowie auch RPI_GPIO 2 nicht weil hier ein I2C Gerät in Verwendung ist.
Pin29 wird aktuell nicht verwendet ist aber in der Konfiguration eingetragen zur weiteren Verwendung.

GPIO5 (Pin29) wird aber auch nicht exportiert.
Kannst du bitte ein List und eine config von einem funktionierenden GPIO posten und die config des GPIO5?

Wenn ich mir das so ansehe ist die Fehlermeldung auch nicht so toll formuliert. Da fehlt die GPIO Nummer. Der Name führt da in die Irre.

Lässt sich GPIO5 zu Fuß exportieren?

Grüße
Klaus
RasPi B v2 mit FHEM 18B20 über 1Wire, LED PWM Treiber über I2C, Luchtdruck-, Feuchtesensor und ein paar Schalter/LED\'s zum testen
Module: RPI_GPIO, RPII2C, I2C_EEPROM, I2C_MCP23008, I2C_MCP23017, I2C_MCP342x, I2C_PCA9532, I2C_PCF8574, I2C_SHT21, I2C_BME280

Burny4600

#6
Grundsätzlich funktionieren alle GPIOs darum verwirrt mich die LOG Meldung die die Gleiche ist und auf zwei neu errichteten Pi's auftritt.
Grundsätzlich ist bei allen anderen System nur der RPI_GPIO4 in Verwendung wie auch bei diesen beiden aber nur für 1Wire und der Rest i2c.
Nur bei diesen beiden werden nicht soviele Ein- und Ausgänge benötigt weshalb ich mit den GPIO's arbeite.

ls -l /sys/class/gpio

pi@ccs-ht-rasp09:~ $ ls -l /sys/class/gpio
insgesamt 0
-rwxrwx--- 1 root gpio 4096 Nov 26 15:44 export
lrwxrwxrwx 1 root gpio    0 Nov 26 15:44 gpio12 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio12
lrwxrwxrwx 1 root gpio    0 Nov 24 13:39 gpio13 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio13
lrwxrwxrwx 1 root gpio    0 Nov 24 13:39 gpio16 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio16
lrwxrwxrwx 1 root gpio    0 Nov 26 15:44 gpio17 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio17
lrwxrwxrwx 1 root gpio    0 Nov 24 13:39 gpio18 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio18
lrwxrwxrwx 1 root gpio    0 Nov 26 12:38 gpio19 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio19
lrwxrwxrwx 1 root gpio    0 Nov 24 13:39 gpio20 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio20
lrwxrwxrwx 1 root gpio    0 Nov 24 13:39 gpio21 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio21
lrwxrwxrwx 1 root gpio    0 Nov 24 13:39 gpio22 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio22
lrwxrwxrwx 1 root gpio    0 Nov 24 13:39 gpio23 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio23
lrwxrwxrwx 1 root gpio    0 Nov 24 13:39 gpio24 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio24
lrwxrwxrwx 1 root gpio    0 Nov 24 13:39 gpio25 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio25
lrwxrwxrwx 1 root gpio    0 Nov 24 13:39 gpio26 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio26
lrwxrwxrwx 1 root gpio    0 Jan  1  2000 gpio27 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio27
lrwxrwxrwx 1 root gpio    0 Nov 26 15:44 gpio6 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio6
lrwxrwxrwx 1 root gpio    0 Nov 24 13:17 gpiochip0 -> ../../devices/platform/soc/3f200000.gpio/gpio/gpiochip0
-rwxrwx--- 1 root gpio 4096 Nov 26 15:43 unexport


Was meinst du genau mit
ZitatLässt sich GPIO5 zu Fuß exportieren?
pi@ccs-ht-rasp09:~ $ sudo echo 5 >/sys/class/gpio/export
echo: Schreibfehler: Das Gerät oder die Ressource ist belegt


config Pin29
define Pin29 RPI_GPIO 5
attr Pin29 active_low yes
attr Pin29 alias GPIO.21
attr Pin29 debounce_in_ms 20
attr Pin29 devStateIcon EIN:control_on_off@lightgreen AUS:control_home@gray
attr Pin29 direction input
attr Pin29 eventMap on:EIN off:AUS
attr Pin29 group AvailablePorts
attr Pin29 icon control_on_off
attr Pin29 interrupt both
attr Pin29 pud_resistor up
attr Pin29 restoreOnStartup off
attr Pin29 room _IO


list Pin29

Internals:
   CFGFN      /media/hdd/fhem/mycfg/GPIO/GPIO_rasp09.cfg
   DEF        5
   GPIO_Basedir /sys/class/gpio
   GPIO_Nr    5
   NAME       Pin29
   NR         306
   STATE      AUS
   TYPE       RPI_GPIO
   WiringPi_gpio /usr/local/bin/gpio
   filehandle
   READINGS:
     2017-10-25 18:36:50   Dblclick        off
     2017-10-25 18:36:50   Longpress       off
     2017-10-25 18:36:50   state           off
     Pinlevel:
       TIME       2017-11-28 13:23:22
       VAL
   fhem:
     interfaces switch
Attributes:
   active_low yes
   alias      GPIO.21
   debounce_in_ms 20
   devStateIcon EIN:control_on_off@lightgreen AUS:control_home@gray
   direction  input
   eventMap   on:EIN off:AUS
   group      AvailablePorts
   icon       control_on_off
   interrupt  both
   pud_resistor up
   restoreOnStartup off
   room       _IO


config Ausgang AB_GT_TKBLO

### kann durch PiCAN bzw. MCP2515 Interupt blockiert sein
define AB_GT_TKBLO RPI_GPIO 25
attr AB_GT_TKBLO active_low yes
attr AB_GT_TKBLO alias AB Gartentüre - Türklingelbeleuchtung
attr AB_GT_TKBLO cmdIcon EIN:remotecontrol/black_btn_GREEN AUS:remotecontrol/black_btn_RED
attr AB_GT_TKBLO devStateIcon EIN:light_light_dim_100@yellow AUS:light_light_dim_100@gray
attr AB_GT_TKBLO direction output
attr AB_GT_TKBLO eventMap on:EIN off:AUS
attr AB_GT_TKBLO group OutputPorts
attr AB_GT_TKBLO icon light_light_dim_100
attr AB_GT_TKBLO pud_resistor up
attr AB_GT_TKBLO restoreOnStartup off
attr AB_GT_TKBLO room AB,_IO
attr AB_GT_TKBLO webCmd ::EIN:AUS


list Ausgang AB_GT_TKBLO

Internals:
   CFGFN      /media/hdd/fhem/mycfg/GPIO/GPIO_rasp09.cfg
   DEF        25
   GPIO_Basedir /sys/class/gpio
   GPIO_Nr    25
   NAME       AB_GT_TKBLO
   NR         304
   STATE      EIN
   TYPE       RPI_GPIO
   WiringPi_gpio /usr/local/bin/gpio
   READINGS:
     2017-07-14 14:13:09   Dblclick        off
     2017-07-14 14:13:09   Longpress       off
     2017-11-28 13:16:38   Pinlevel        high
     2017-11-28 13:16:36   state           on
   fhem:
     interfaces switch
Attributes:
   active_low yes
   alias      AB Gartentüre - Türklingelbeleuchtung
   cmdIcon    EIN:remotecontrol/black_btn_GREEN AUS:remotecontrol/black_btn_RED
   devStateIcon EIN:light_light_dim_100@yellow AUS:light_light_dim_100@gray
   direction  output
   eventMap   on:EIN off:AUS
   group      OutputPorts
   icon       light_light_dim_100
   pud_resistor up
   restoreOnStartup off
   room       AB,_IO
   webCmd     ::EIN:AUS


config Eingang AB_GAW_UV_STSP_HT

define AB_GAW_UV_STSP_HT RPI_GPIO 17
attr AB_GAW_UV_STSP_HT active_low yes
attr AB_GAW_UV_STSP_HT alias AB Garage West UV - Steuerspannung HT
attr AB_GAW_UV_STSP_HT debounce_in_ms 20
attr AB_GAW_UV_STSP_HT devStateIcon EIN:measure_voltage@lightgreen AUS:measure_voltage@red
attr AB_GAW_UV_STSP_HT direction input
attr AB_GAW_UV_STSP_HT eventMap on:EIN off:AUS
attr AB_GAW_UV_STSP_HT group InputPorts
attr AB_GAW_UV_STSP_HT icon measure_voltage
attr AB_GAW_UV_STSP_HT interrupt both
attr AB_GAW_UV_STSP_HT pud_resistor up
attr AB_GAW_UV_STSP_HT restoreOnStartup last
attr AB_GAW_UV_STSP_HT room AB-Garage-West,_IO


list Eingang AB_GAW_UV_STSP_HT

Internals:
   CFGFN      /media/hdd/fhem/mycfg/GPIO/GPIO_rasp09.cfg
   DEF        17
   EXCEPT_FD  14
   GPIO_Basedir /sys/class/gpio
   GPIO_Nr    17
   NAME       AB_GAW_UV_STSP_HT
   NR         280
   STATE      EIN
   TYPE       RPI_GPIO
   WiringPi_gpio /usr/local/bin/gpio
   lasttrg    1511852976.15805
   READINGS:
     2017-11-22 09:13:34   Dblclick        off
     2017-11-28 08:09:37   Longpress       on
     2017-11-28 13:17:59   Pinlevel        high
     2017-11-28 08:09:36   state           on
   fhem:
     interfaces switch
Attributes:
   active_low yes
   alias      AB Garage West UV - Steuerspannung HT
   debounce_in_ms 20
   devStateIcon EIN:measure_voltage@lightgreen AUS:measure_voltage@red
   direction  input
   eventMap   on:EIN off:AUS
   group      InputPorts
   icon       measure_voltage
   interrupt  both
   pud_resistor up
   restoreOnStartup last
   room       AB-Garage-West,_IO


Console

Mfg Chris

Raspberry Pi 2/2+/3/3+/4 / Betriebssystem: Bullseye Lite
Schnittstellen: RFXtrx433E, SIGNALduino, MQTT, nanoCUL, HM-MOD-UART, 1-Wire, LAN, ser2net, FHEM2FEHEM
Devices: S.USV, APC-USV, Fronius Datalogger Web 2, FS20, IT, Resol VBUS & DL2, TEK603, WMR200, YouLess, Homematic, MQTT

klausw

Hallo Chris,

sorry, da hast du dir mehr Arbeit gemacht als notwendig.

pi@ccs-ht-rasp09:~ $ sudo echo 5 >/sys/class/gpio/export
echo: Schreibfehler: Das Gerät oder die Ressource ist belegt


sagt eigentlich schon alles.

GPIO5 ist durch irgendwas blockiert. Ich habe es gerade getestet und bei mir kommt das gleiche.
Wenn es mit Rootrechten nicht funktioniert dann kann das Modul auch nix reißen.
Eventuell blockiert ein anderes Programm den GPIO oder über den DeviceTree wird der Pin auf irgendwas konfiguriert.
Der Befehl "gpio readall" zeigt, das GPIO5 als Ausgang konfiguriert ist. Unter "/sys/class/gpio" ist er aber nicht vorhanden.

Da die restlichen GPIOs funktionieren würde ich sagen das Modul macht was es soll  8)
Welche Raspbian Version hast du am laufen?
RasPi B v2 mit FHEM 18B20 über 1Wire, LED PWM Treiber über I2C, Luchtdruck-, Feuchtesensor und ein paar Schalter/LED\'s zum testen
Module: RPI_GPIO, RPII2C, I2C_EEPROM, I2C_MCP23008, I2C_MCP23017, I2C_MCP342x, I2C_PCA9532, I2C_PCF8574, I2C_SHT21, I2C_BME280

Burny4600

Was meinst du mit mehr Arbeit als notwendig.

Aktuelle Version Raspberry
pi@ccs-ht-rasp09:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

pi@ccs-ht-rasp09:~ $ cat /proc/version
Linux version 4.9.60-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #1048 SMP Fri Nov 3 16:05:21 GMT 2017
pi@ccs-ht-rasp09:~ $


Ist schon eigenartig was sich da wieder darüber legt.
Mfg Chris

Raspberry Pi 2/2+/3/3+/4 / Betriebssystem: Bullseye Lite
Schnittstellen: RFXtrx433E, SIGNALduino, MQTT, nanoCUL, HM-MOD-UART, 1-Wire, LAN, ser2net, FHEM2FEHEM
Devices: S.USV, APC-USV, Fronius Datalogger Web 2, FS20, IT, Resol VBUS & DL2, TEK603, WMR200, YouLess, Homematic, MQTT

klausw

Zitat von: Burny4600 am 28 November 2017, 19:19:57
Was meinst du mit mehr Arbeit als notwendig.

Naja, das ganze posten der configs etc.

Das ist aktuell  8)

cat /etc/os-release:
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

cat /proc/version:
Linux version 4.9.59-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #1047 SMP Sun Oct 29 12:19:23 GMT 2017


Unter Stretch ist es das gleiche. GPIO5 geht nicht


RasPi B v2 mit FHEM 18B20 über 1Wire, LED PWM Treiber über I2C, Luchtdruck-, Feuchtesensor und ein paar Schalter/LED\'s zum testen
Module: RPI_GPIO, RPII2C, I2C_EEPROM, I2C_MCP23008, I2C_MCP23017, I2C_MCP342x, I2C_PCA9532, I2C_PCF8574, I2C_SHT21, I2C_BME280

Burny4600

Also ist das ein grundsätzlicher Fehler von Wiringpi wodurch FHEM sich mit einem Fehler meldet.
Mfg Chris

Raspberry Pi 2/2+/3/3+/4 / Betriebssystem: Bullseye Lite
Schnittstellen: RFXtrx433E, SIGNALduino, MQTT, nanoCUL, HM-MOD-UART, 1-Wire, LAN, ser2net, FHEM2FEHEM
Devices: S.USV, APC-USV, Fronius Datalogger Web 2, FS20, IT, Resol VBUS & DL2, TEK603, WMR200, YouLess, Homematic, MQTT

Frank_Huber

mein Test-Raspi ist auf dem aktuellsten Raspbian,
Habe auch alle GPIOs (ausser GPIO2/3 wegen I2C) konfiguriert.

Mir sind keine Fehler aufgefallen bis jetzt.
kann aber mal gezielt an GPIO5 nen Taster hängen und testen.


klausw

das hat nix mit wiringpi zu tun (ich hatte es anfangs gar nicht installiert)
"echo 5 >/sys/class/gpio/export" ist ein normaler Systembefehl
Es ist eher ein Raspbian Problem, oder ein Raspberry Pi Problem.
Ich Tippe auf ersteres
RasPi B v2 mit FHEM 18B20 über 1Wire, LED PWM Treiber über I2C, Luchtdruck-, Feuchtesensor und ein paar Schalter/LED\'s zum testen
Module: RPI_GPIO, RPII2C, I2C_EEPROM, I2C_MCP23008, I2C_MCP23017, I2C_MCP342x, I2C_PCA9532, I2C_PCF8574, I2C_SHT21, I2C_BME280

Burny4600

Wie meinst du das mit Raspbian Problem.
Liegt das an dem Betriebssystem Jessie?
Mfg Chris

Raspberry Pi 2/2+/3/3+/4 / Betriebssystem: Bullseye Lite
Schnittstellen: RFXtrx433E, SIGNALduino, MQTT, nanoCUL, HM-MOD-UART, 1-Wire, LAN, ser2net, FHEM2FEHEM
Devices: S.USV, APC-USV, Fronius Datalogger Web 2, FS20, IT, Resol VBUS & DL2, TEK603, WMR200, YouLess, Homematic, MQTT

Frank_Huber

Aktuelles raspbian, im September heruntergeladen und installiert. Alle Updates tagesaktuell drin.
Keinerlei Probleme mit den gpio.
Gehen alle wie sie  sollen.

Vorschlag:
Fhem sichern und raspbian neu aufsetzen.

Mit dem Handy online, daher kurz gefasst...


klausw

Zitat von: Frank_Huber am 30 November 2017, 19:47:26
Aktuelles raspbian, im September heruntergeladen und installiert. Alle Updates tagesaktuell drin.
Keinerlei Probleme mit den gpio.
Gehen alle wie sie  sollen.

Vorschlag:
Fhem sichern und raspbian neu aufsetzen.
Funktioniert GPIO5 bei dir? Welches Pi verwendest du?
Es funktioniert nur der GPIO5 bei dem Raspberry Pi 3 nicht

Vorgestern neu installiert, das liegt an etwas anderem.
Die GPIOs funktionieren grundsätzlich
RasPi B v2 mit FHEM 18B20 über 1Wire, LED PWM Treiber über I2C, Luchtdruck-, Feuchtesensor und ein paar Schalter/LED\'s zum testen
Module: RPI_GPIO, RPII2C, I2C_EEPROM, I2C_MCP23008, I2C_MCP23017, I2C_MCP342x, I2C_PCA9532, I2C_PCF8574, I2C_SHT21, I2C_BME280

Frank_Huber

OK, mein Testsystem is nen 2er.
Werd ich mit nem 3er nachtesten.

Mit dem Handy online, daher kurz gefasst...


blecher-at

#17
Zitat von: Burny4600 am 26 November 2017, 16:05:15
Seit kurzem fallen mir folgende Logeinträge beim Start des RPI auf verursacht durch GPIO's.
Grundsätzlich funktioniert aber alles.
/usr/local/bin/gpio: Unable to open GPIO direction interface for pin 5: No such file or directory
2017.11.26 15:44:05.234 1: Can't open file: Pin29, active_low


Ungeachtet der anderen probleme in deiner Nachricht.
Das mit Activelow ist ein problem mit wiringPi. siehe https://forum.fhem.de/index.php/topic,79737.0.html und https://github.com/WiringPi/WiringPi/pull/55 schaut leider so aus als wird WiringPI nur sehr spärlich maintained, habe den entwickler aber auch schon direkt kontaktiert.
Für meinen Usecase habe ich vorerst WiringPi selbst gepatcht und dann funktioniert auch active_low korrekt ohne dass fhem als root laufen muss.

Burny4600

Mfg Chris

Raspberry Pi 2/2+/3/3+/4 / Betriebssystem: Bullseye Lite
Schnittstellen: RFXtrx433E, SIGNALduino, MQTT, nanoCUL, HM-MOD-UART, 1-Wire, LAN, ser2net, FHEM2FEHEM
Devices: S.USV, APC-USV, Fronius Datalogger Web 2, FS20, IT, Resol VBUS & DL2, TEK603, WMR200, YouLess, Homematic, MQTT

klausw

Zitat von: blecher-at am 01 Dezember 2017, 16:49:38
Ungeachtet der anderen probleme in deiner Nachricht.
Das mit Activelow ist ein problem mit wiringPi. siehe https://forum.fhem.de/index.php/topic,79737.0.html und https://github.com/WiringPi/WiringPi/pull/55 schaut leider so aus als wird WiringPI nur sehr spärlich maintained, habe den entwickler aber auch schon direkt kontaktiert.
Für meinen Usecase habe ich vorerst WiringPi selbst gepatcht und dann funktioniert auch active_low korrekt ohne dass fhem als root laufen muss.
Funktioniert es denn nicht ohne wiringpi?
Beim Raspberry wird wiringpi eigentlich nur benötigt wenn die Pull Ups gesetzt werden sollen.
RasPi B v2 mit FHEM 18B20 über 1Wire, LED PWM Treiber über I2C, Luchtdruck-, Feuchtesensor und ein paar Schalter/LED\'s zum testen
Module: RPI_GPIO, RPII2C, I2C_EEPROM, I2C_MCP23008, I2C_MCP23017, I2C_MCP342x, I2C_PCA9532, I2C_PCF8574, I2C_SHT21, I2C_BME280

Burny4600

Zwecks Fehlschaltungen werden die Pull Widerstände benötigt ausser diese werden in den angeschlossenen Geräte bestückt.
Mfg Chris

Raspberry Pi 2/2+/3/3+/4 / Betriebssystem: Bullseye Lite
Schnittstellen: RFXtrx433E, SIGNALduino, MQTT, nanoCUL, HM-MOD-UART, 1-Wire, LAN, ser2net, FHEM2FEHEM
Devices: S.USV, APC-USV, Fronius Datalogger Web 2, FS20, IT, Resol VBUS & DL2, TEK603, WMR200, YouLess, Homematic, MQTT

klausw

wozu die gut sind weiß ich
nur die internen nutze ich nicht so gern
pullups in Mikrocontrollern sind für gewöhnlich bisschen hochohmig
RasPi B v2 mit FHEM 18B20 über 1Wire, LED PWM Treiber über I2C, Luchtdruck-, Feuchtesensor und ein paar Schalter/LED\'s zum testen
Module: RPI_GPIO, RPII2C, I2C_EEPROM, I2C_MCP23008, I2C_MCP23017, I2C_MCP342x, I2C_PCA9532, I2C_PCF8574, I2C_SHT21, I2C_BME280

blecher-at

Zitat von: klausw am 02 Dezember 2017, 23:00:07
Funktioniert es denn nicht ohne wiringpi?
Beim Raspberry wird wiringpi eigentlich nur benötigt wenn die Pull Ups gesetzt werden sollen.
Und wenn fhem ohne weitere verrenkungen als nicht-root laufen soll. weil wiringpi beim export des pins die userid auf den fhem-user setzt und damit den zugriff auf den pin erlaubt.

klausw

Zitat von: blecher-at am 08 Dezember 2017, 00:16:18
Und wenn fhem ohne weitere verrenkungen als nicht-root laufen soll. weil wiringpi beim export des pins die userid auf den fhem-user setzt und damit den zugriff auf den pin erlaubt.
Von welchen Verrenkungen sprichst du?
Den User fhem in die Gruppe gpio aufzunehmen ist meiner Meinung nach die einfachste Lösung.
Aber wir schweifen ab  8)
Die Ursprüngliche Frage bezog sich ja auf GPIO5 (beim Pi3) und das dieser blockiert ist.
Darauf weiß ich im Moment keine Antwort.
RasPi B v2 mit FHEM 18B20 über 1Wire, LED PWM Treiber über I2C, Luchtdruck-, Feuchtesensor und ein paar Schalter/LED\'s zum testen
Module: RPI_GPIO, RPII2C, I2C_EEPROM, I2C_MCP23008, I2C_MCP23017, I2C_MCP342x, I2C_PCA9532, I2C_PCF8574, I2C_SHT21, I2C_BME280

Burny4600

#24
Ich habe mich nach langer Zeit nochmals betreffend der RPI_GPIO5 Fehlermeldung mit aktuellem Jessie Strech Lite beim Raspberry Pi 3 angenommen.
2018.04.09 10:02:13.474 1: Can't open file: Pin29, value
Dieser RPI_GPIO wird nach wie vor durch das Betriebssystem für irgendetwas verwendet, und kann als Eingang nicht verwendet werden.
Als Ausgang funktioniert dieser RPI_GPIO, aber er scheint dennoch nicht in der RPI_GPIO Liste auf.
Wenn der RPI_GPIO5 als Ausgang konfiguriert ist, scheint im LOG von FHEM dennoch diese Fehlermeldung auf obwohl der RPI_GPIO als Ausgang funktioniert.
Alle anderen GPIO's funktionieren ohne Fehler, sowohl als Ausgang als auch als Eingang.
Es ist nicht wirklich eine Lösung für die Fehlerbehebung, aber als Hilfestellung mit Hinweisen um nicht über diesen RPI_GPIO5 Fehler zu stolpern.
Solange nicht wirklich eine Lösung gefunden ist, sollte auf diesen RPI_GPIO verzichtet werden.

Zur Übersicht und Reproduktion die Zusammenfassung.

FHEM angehalten
:~ $ ls -l /sys/class/gpio
insgesamt 0
-rwxrwx--- 1 root gpio 4096 Apr  9 09:54 export
lrwxrwxrwx 1 root gpio    0 Apr  8 19:53 gpio1 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio1
lrwxrwxrwx 1 root gpio    0 Apr  8 19:53 gpio2 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio2
lrwxrwxrwx 1 root gpio    0 Apr  8 19:53 gpio3 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio3
lrwxrwxrwx 1 root gpio    0 Apr  9 09:46 gpio17 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio17
lrwxrwxrwx 1 root gpio    0 Apr  8 18:40 gpio18 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio18
lrwxrwxrwx 1 root gpio    0 Apr  8 18:40 gpio22 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio22
lrwxrwxrwx 1 root gpio    0 Apr  8 18:40 gpio23 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio23
lrwxrwxrwx 1 root gpio    0 Apr  8 18:40 gpio24 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio24
lrwxrwxrwx 1 root gpio    0 Apr  8 18:40 gpio25 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio25
lrwxrwxrwx 1 root gpio    0 Apr  8 18:40 gpio26 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio26
lrwxrwxrwx 1 root gpio    0 Apr  8 18:40 gpio27 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio27
lrwxrwxrwx 1 root gpio    0 Apr  8 18:39 gpiochip0 -> ../../devices/platform/soc/3f200000.gpio/gpio/gpiochip0
-rwxrwx--- 1 root gpio 4096 Apr  9 09:59 unexport


~ $ gpio readall
+-----+-----+---------+------+---+---Pi 3---+---+------+---------+-----+-----+
| BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |
+-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
|     |     |    3.3v |      |   |  1 || 2  |   |      | 5v      |     |     |
|   2 |   8 |   SDA.1 |  OUT | 1 |  3 || 4  |   |      | 5v      |     |     |
|   3 |   9 |   SCL.1 |  OUT | 1 |  5 || 6  |   |      | 0v      |     |     |
|   4 |   7 | GPIO. 7 |   IN | 1 |  7 || 8  | 1 | IN   | TxD     | 15  | 14  |
|     |     |      0v |      |   |  9 || 10 | 1 | IN   | RxD     | 16  | 15  |
|  17 |   0 | GPIO. 0 |  OUT | 1 | 11 || 12 | 1 | OUT  | GPIO. 1 | 1   | 18  |
|  27 |   2 | GPIO. 2 |  OUT | 1 | 13 || 14 |   |      | 0v      |     |     |
|  22 |   3 | GPIO. 3 |  OUT | 1 | 15 || 16 | 1 | OUT  | GPIO. 4 | 4   | 23  |
|     |     |    3.3v |      |   | 17 || 18 | 1 | OUT  | GPIO. 5 | 5   | 24  |
|  10 |  12 |    MOSI |   IN | 1 | 19 || 20 |   |      | 0v      |     |     |
|   9 |  13 |    MISO |   IN | 1 | 21 || 22 | 1 | OUT  | GPIO. 6 | 6   | 25  |
|  11 |  14 |    SCLK |   IN | 1 | 23 || 24 | 1 | IN   | CE0     | 10  | 8   |
|     |     |      0v |      |   | 25 || 26 | 1 | IN   | CE1     | 11  | 7   |
|   0 |  30 |   SDA.0 |   IN | 1 | 27 || 28 | 0 | OUT  | SCL.0   | 31  | 1   |
|   5 |  21 | GPIO.21 |  OUT | 1 | 29 || 30 |   |      | 0v      |     |     |
|   6 |  22 | GPIO.22 |   IN | 1 | 31 || 32 | 1 | IN   | GPIO.26 | 26  | 12  |
|  13 |  23 | GPIO.23 |   IN | 1 | 33 || 34 |   |      | 0v      |     |     |
|  19 |  24 | GPIO.24 |   IN | 1 | 35 || 36 | 1 | IN   | GPIO.27 | 27  | 16  |
|  26 |  25 | GPIO.25 |  OUT | 0 | 37 || 38 | 1 | IN   | GPIO.28 | 28  | 20  |
|     |     |      0v |      |   | 39 || 40 | 1 | IN   | GPIO.29 | 29  | 21  |
+-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
| BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |
+-----+-----+---------+------+---+---Pi 3---+---+------+---------+-----+-----+


FHEM läuft

~ $ ls -l /sys/class/gpio
insgesamt 0
-rwxrwx--- 1 root gpio 4096 Apr  9 10:00 export
lrwxrwxrwx 1 root gpio    0 Apr  8 19:53 gpio1 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio1
lrwxrwxrwx 1 root gpio    0 Apr  8 19:53 gpio2 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio2
lrwxrwxrwx 1 root gpio    0 Apr  8 19:53 gpio3 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio3
lrwxrwxrwx 1 root gpio    0 Apr  8 19:53 gpio4 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio4
lrwxrwxrwx 1 root gpio    0 Apr  9 10:00 gpio6 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio6
lrwxrwxrwx 1 root gpio    0 Apr  9 10:00 gpio7 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio7
lrwxrwxrwx 1 root gpio    0 Apr  9 10:00 gpio8 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio8
lrwxrwxrwx 1 root gpio    0 Apr  9 10:00 gpio9 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio9
lrwxrwxrwx 1 root gpio    0 Apr  9 10:00 gpio10 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio10
lrwxrwxrwx 1 root gpio    0 Apr  9 10:00 gpio11 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio11
lrwxrwxrwx 1 root gpio    0 Apr  9 10:00 gpio12 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio12
lrwxrwxrwx 1 root gpio    0 Apr  9 10:00 gpio13 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio13
lrwxrwxrwx 1 root gpio    0 Apr  9 10:00 gpio14 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio14
lrwxrwxrwx 1 root gpio    0 Apr  9 10:00 gpio15 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio15
lrwxrwxrwx 1 root gpio    0 Apr  9 10:00 gpio16 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio16
lrwxrwxrwx 1 root gpio    0 Apr  9 09:46 gpio17 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio17
lrwxrwxrwx 1 root gpio    0 Apr  8 18:40 gpio18 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio18
lrwxrwxrwx 1 root gpio    0 Apr  9 10:00 gpio19 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio19
lrwxrwxrwx 1 root gpio    0 Apr  9 10:00 gpio20 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio20
lrwxrwxrwx 1 root gpio    0 Apr  9 10:00 gpio21 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio21
lrwxrwxrwx 1 root gpio    0 Apr  8 18:40 gpio22 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio22
lrwxrwxrwx 1 root gpio    0 Apr  8 18:40 gpio23 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio23
lrwxrwxrwx 1 root gpio    0 Apr  8 18:40 gpio24 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio24
lrwxrwxrwx 1 root gpio    0 Apr  8 18:40 gpio25 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio25
lrwxrwxrwx 1 root gpio    0 Apr  8 18:40 gpio26 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio26
lrwxrwxrwx 1 root gpio    0 Apr  8 18:40 gpio27 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio27
lrwxrwxrwx 1 root gpio    0 Apr  8 18:39 gpiochip0 -> ../../devices/platform/soc/3f200000.gpio/gpio/gpiochip0
-rwxrwx--- 1 root gpio 4096 Apr  9 09:59 unexport


:~ $ gpio readall
+-----+-----+---------+------+---+---Pi 3---+---+------+---------+-----+-----+
| BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |
+-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
|     |     |    3.3v |      |   |  1 || 2  |   |      | 5v      |     |     |
|   2 |   8 |   SDA.1 |  OUT | 0 |  3 || 4  |   |      | 5v      |     |     |
|   3 |   9 |   SCL.1 |  OUT | 0 |  5 || 6  |   |      | 0v      |     |     |
|   4 |   7 | GPIO. 7 |   IN | 1 |  7 || 8  | 1 | IN   | TxD     | 15  | 14  |
|     |     |      0v |      |   |  9 || 10 | 1 | IN   | RxD     | 16  | 15  |
|  17 |   0 | GPIO. 0 |  OUT | 0 | 11 || 12 | 0 | OUT  | GPIO. 1 | 1   | 18  |
|  27 |   2 | GPIO. 2 |   IN | 1 | 13 || 14 |   |      | 0v      |     |     |
|  22 |   3 | GPIO. 3 |  OUT | 1 | 15 || 16 | 0 | OUT  | GPIO. 4 | 4   | 23  |
|     |     |    3.3v |      |   | 17 || 18 | 1 | OUT  | GPIO. 5 | 5   | 24  |
|  10 |  12 |    MOSI |   IN | 1 | 19 || 20 |   |      | 0v      |     |     |
|   9 |  13 |    MISO |   IN | 1 | 21 || 22 | 0 | OUT  | GPIO. 6 | 6   | 25  |
|  11 |  14 |    SCLK |   IN | 1 | 23 || 24 | 1 | IN   | CE0     | 10  | 8   |
|     |     |      0v |      |   | 25 || 26 | 1 | IN   | CE1     | 11  | 7   |
|   0 |  30 |   SDA.0 |   IN | 1 | 27 || 28 | 0 | OUT  | SCL.0   | 31  | 1   |
|   5 |  21 | GPIO.21 |  OUT | 1 | 29 || 30 |   |      | 0v      |     |     |
|   6 |  22 | GPIO.22 |   IN | 1 | 31 || 32 | 1 | IN   | GPIO.26 | 26  | 12  |
|  13 |  23 | GPIO.23 |   IN | 1 | 33 || 34 |   |      | 0v      |     |     |
|  19 |  24 | GPIO.24 |   IN | 1 | 35 || 36 | 1 | IN   | GPIO.27 | 27  | 16  |
|  26 |  25 | GPIO.25 |  OUT | 0 | 37 || 38 | 1 | IN   | GPIO.28 | 28  | 20  |
|     |     |      0v |      |   | 39 || 40 | 1 | IN   | GPIO.29 | 29  | 21  |
+-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
| BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |
+-----+-----+---------+------+---+---Pi 3---+---+------+---------+-----+-----+


Die verwendete Konfiguration der GPIO's
####################################
###      GPIO Konfiguration      ###
####################################

define Pin28 RPI_GPIO 1
attr Pin28 active_low yes
attr Pin28 alias GPIO.31
attr Pin28 cmdIcon EIN:remotecontrol/black_btn_GREEN AUS:remotecontrol/black_btn_RED
attr Pin28 devStateIcon EIN:sani_pump@0CFB0C AUS:sani_pump@gray
attr Pin28 direction output
attr Pin28 eventMap off:AUS on:EIN
attr Pin28 group AvailablePorts
attr Pin28 icon sani_pump
attr Pin28 room GPIO
attr Pin28 webCmd ::EIN:AUS

### kann durch I2C blockiert sein
define Pin03 RPI_GPIO 2
attr Pin03 active_low yes
attr Pin03 alias GPIO.08
attr Pin03 cmdIcon EIN:remotecontrol/black_btn_GREEN AUS:remotecontrol/black_btn_RED
attr Pin03 devStateIcon EIN:sani_pump@0CFB0C AUS:sani_pump@gray
attr Pin03 direction output
attr Pin03 eventMap off:AUS on:EIN
attr Pin03 group AvailablePorts
attr Pin03 icon sani_pump
attr Pin03 room GPIO
attr Pin03 webCmd ::EIN:AUS

### kann durch I2C blockiert sein
define Pin05 RPI_GPIO 3
attr Pin05 active_low yes
attr Pin05 alias GPIO.09
attr Pin05 cmdIcon EIN:remotecontrol/black_btn_GREEN AUS:remotecontrol/black_btn_RED
attr Pin05 devStateIcon EIN:sani_pump@0CFB0C AUS:sani_pump@gray
attr Pin05 direction output
attr Pin05 eventMap off:AUS on:EIN
attr Pin05 group AvailablePorts
attr Pin05 icon sani_pump
attr Pin05 room GPIO
attr Pin05 webCmd ::EIN:AUS

### kann durch GPIO 4 1-Wire Temperaturfühler blockiert sein
define Pin07 RPI_GPIO 4
attr Pin07 active_low yes
attr Pin07 alias GPIO.07
attr Pin07 cmdIcon EIN:remotecontrol/black_btn_GREEN AUS:remotecontrol/black_btn_RED
attr Pin07 devStateIcon EIN:sani_pump@0CFB0C AUS:sani_pump@gray
attr Pin07 direction output
attr Pin07 eventMap off:AUS on:EIN
attr Pin07 group AvailablePorts
attr Pin07 icon sani_pump
attr Pin07 room GPIO
attr Pin07 webCmd ::EIN:AUS

### Wird von Raspberry intern verwendet und kann nur als Output verwendet werden.
### Grundsätzlich soll aber auf die Verwendung dieses GPIO's verzichtet werden.
define Pin29 RPI_GPIO 5
attr Pin29 active_low yes
attr Pin29 alias GPIO.21
attr Pin29 cmdIcon EIN:remotecontrol/black_btn_GREEN AUS:remotecontrol/black_btn_RED
attr Pin29 devStateIcon EIN:sani_pump@0CFB0C AUS:sani_pump@gray
attr Pin29 direction output
attr Pin29 eventMap off:AUS on:EIN
attr Pin29 group AvailablePorts
attr Pin29 icon sani_pump
attr Pin29 room GPIO
attr Pin29 webCmd ::EIN:AUS

define Pin31 RPI_GPIO 6
attr Pin31 active_low yes
attr Pin31 alias GPIO.22
attr Pin31 devStateIcon EIN:control_on_off@0CFB0C AUS:control_home@gray
attr Pin31 direction input
attr Pin31 eventMap off:AUS on:EIN
attr Pin31 group AvailablePorts
attr Pin31 icon control_on_off
attr Pin31 interrupt both
attr Pin31 pud_resistor up
attr Pin31 room GPIO

define Pin26 RPI_GPIO 7
attr Pin26 active_low yes
attr Pin26 alias GPIO.11
attr Pin26 devStateIcon EIN:control_on_off@0CFB0C AUS:control_home@gray
attr Pin26 direction input
attr Pin26 eventMap off:AUS on:EIN
attr Pin26 group AvailablePorts
attr Pin26 icon control_on_off
attr Pin26 interrupt both
attr Pin26 pud_resistor up
attr Pin26 room GPIO

define Pin24 RPI_GPIO 8
attr Pin24 active_low yes
attr Pin24 alias GPIO.10
attr Pin24 devStateIcon EIN:control_on_off@0CFB0C AUS:control_home@gray
attr Pin24 direction input
attr Pin24 eventMap off:AUS on:EIN
attr Pin24 group AvailablePorts
attr Pin24 icon control_on_off
attr Pin24 interrupt both
attr Pin24 pud_resistor up
attr Pin24 room GPIO

define Pin21 RPI_GPIO 9
attr Pin21 active_low yes
attr Pin21 alias GPIO.13
attr Pin21 devStateIcon EIN:control_on_off@0CFB0C AUS:control_home@gray
attr Pin21 direction input
attr Pin21 eventMap off:AUS on:EIN
attr Pin21 group AvailablePorts
attr Pin21 icon control_on_off
attr Pin21 interrupt both
attr Pin21 pud_resistor up
attr Pin21 room GPIO

define Pin19 RPI_GPIO 10
attr Pin19 active_low yes
attr Pin19 alias GPIO.12
attr Pin19 devStateIcon EIN:control_on_off@0CFB0C AUS:control_home@gray
attr Pin19 direction input
attr Pin19 eventMap off:AUS on:EIN
attr Pin19 group AvailablePorts
attr Pin19 icon control_on_off
attr Pin19 interrupt both
attr Pin19 pud_resistor up
attr Pin19 room GPIO

define Pin23 RPI_GPIO 11
attr Pin23 active_low yes
attr Pin23 alias GPIO.14
attr Pin23 devStateIcon EIN:control_on_off@0CFB0C AUS:control_home@gray
attr Pin23 direction input
attr Pin23 eventMap off:AUS on:EIN
attr Pin23 group AvailablePorts
attr Pin23 icon control_on_off
attr Pin23 interrupt both
attr Pin23 pud_resistor up
attr Pin23 room GPIO

define Pin32 RPI_GPIO 12
attr Pin32 active_low yes
attr Pin32 alias GPIO.26
attr Pin32 devStateIcon EIN:control_on_off@0CFB0C AUS:control_home@gray
attr Pin32 direction input
attr Pin32 eventMap off:AUS on:EIN
attr Pin32 group AvailablePorts
attr Pin32 icon control_on_off
attr Pin32 interrupt both
attr Pin32 pud_resistor up
attr Pin32 room GPIO

define Pin33 RPI_GPIO 13
attr Pin33 active_low yes
attr Pin33 alias GPIO.23
attr Pin33 devStateIcon EIN:control_on_off@0CFB0C AUS:control_home@gray
attr Pin33 direction input
attr Pin33 eventMap off:AUS on:EIN
attr Pin33 group AvailablePorts
attr Pin33 icon control_on_off
attr Pin33 interrupt both
attr Pin33 pud_resistor up
attr Pin33 room GPIO

define Pin08 RPI_GPIO 14
attr Pin08 active_low yes
attr Pin08 alias GPIO.15
attr Pin08 devStateIcon EIN:control_on_off@0CFB0C AUS:control_home@gray
attr Pin08 direction input
attr Pin08 eventMap off:AUS on:EIN
attr Pin08 group AvailablePorts
attr Pin08 icon control_on_off
attr Pin08 interrupt both
attr Pin08 pud_resistor up
attr Pin08 room GPIO

define Pin10 RPI_GPIO 15
attr Pin10 active_low yes
attr Pin10 alias GPIO.16
attr Pin10 devStateIcon EIN:control_on_off@0CFB0C AUS:control_home@gray
attr Pin10 direction input
attr Pin10 eventMap off:AUS on:EIN
attr Pin10 group AvailablePorts
attr Pin10 icon control_on_off
attr Pin10 interrupt both
attr Pin10 pud_resistor up
attr Pin10 room GPIO

define Pin36 RPI_GPIO 16
attr Pin36 active_low yes
attr Pin36 alias GPIO.27
attr Pin36 devStateIcon EIN:control_on_off@0CFB0C AUS:control_home@gray
attr Pin36 direction input
attr Pin36 eventMap off:AUS on:EIN
attr Pin36 group AvailablePorts
attr Pin36 icon control_on_off
attr Pin36 interrupt both
attr Pin36 pud_resistor up
attr Pin36 room GPIO

define Pin11 RPI_GPIO 17
attr Pin11 active_low yes
attr Pin11 alias GPIO.00
attr Pin11 cmdIcon EIN:remotecontrol/black_btn_GREEN AUS:remotecontrol/black_btn_RED
attr Pin11 devStateIcon EIN:sani_pump@0CFB0C AUS:sani_pump@gray
attr Pin11 direction output
attr Pin11 eventMap off:AUS on:EIN
attr Pin11 group AvailablePorts
attr Pin11 icon sani_pump
attr Pin11 room GPIO
attr Pin11 webCmd ::EIN:AUS

### kann durch HM-MOD-RPI-PCB Reset blockiert sein
define Pin12 RPI_GPIO 18
attr Pin12 active_low yes
attr Pin12 alias GPIO.01
attr Pin12 cmdIcon EIN:remotecontrol/black_btn_GREEN AUS:remotecontrol/black_btn_RED
attr Pin12 devStateIcon EIN:sani_pump@0CFB0C AUS:sani_pump@gray
attr Pin12 direction output
attr Pin12 eventMap off:AUS on:EIN
attr Pin12 group AvailablePorts
attr Pin12 icon sani_pump
attr Pin12 room GPIO
attr Pin12 webCmd ::EIN:AUS

define Pin35 RPI_GPIO 19
attr Pin35 active_low yes
attr Pin35 alias GPIO.24
attr Pin35 devStateIcon EIN:control_on_off@0CFB0C AUS:control_home@gray
attr Pin35 direction input
attr Pin35 eventMap off:AUS on:EIN
attr Pin35 group AvailablePorts
attr Pin35 icon control_on_off
attr Pin35 interrupt both
attr Pin35 pud_resistor up
attr Pin35 room GPIO

define Pin38 RPI_GPIO 20
attr Pin38 active_low yes
attr Pin38 alias GPIO.28
attr Pin38 devStateIcon EIN:control_on_off@0CFB0C AUS:control_home@gray
attr Pin38 direction input
attr Pin38 eventMap off:AUS on:EIN
attr Pin38 group AvailablePorts
attr Pin38 icon control_on_off
attr Pin38 interrupt both
attr Pin38 pud_resistor up
attr Pin38 room GPIO

### kann durch Interupt für MCP23017 blockiert sein
define Pin40 RPI_GPIO 21
attr Pin40 active_low yes
attr Pin40 alias GPIO.29
attr Pin40 devStateIcon EIN:control_on_off@0CFB0C AUS:control_home@gray
attr Pin40 direction input
attr Pin40 eventMap off:AUS on:EIN
attr Pin40 group AvailablePorts
attr Pin40 icon control_on_off
attr Pin40 interrupt both
attr Pin40 pud_resistor up
attr Pin40 room GPIO

define Pin15 RPI_GPIO 22
attr Pin15 active_low yes
attr Pin15 alias GPIO.03
attr Pin15 cmdIcon EIN:remotecontrol/black_btn_GREEN AUS:remotecontrol/black_btn_RED
attr Pin15 devStateIcon EIN:sani_pump@0CFB0C AUS:sani_pump@gray
attr Pin15 direction output
attr Pin15 eventMap off:AUS on:EIN
attr Pin15 group AvailablePorts
attr Pin15 icon sani_pump
attr Pin15 room GPIO
attr Pin15 webCmd ::EIN:AUS

define Pin16 RPI_GPIO 23
attr Pin16 active_low yes
attr Pin16 alias GPIO.04
attr Pin16 cmdIcon EIN:remotecontrol/black_btn_GREEN AUS:remotecontrol/black_btn_RED
attr Pin16 devStateIcon EIN:sani_pump@0CFB0C AUS:sani_pump@gray
attr Pin16 direction output
attr Pin16 eventMap off:AUS on:EIN
attr Pin16 group AvailablePorts
attr Pin16 icon sani_pump
attr Pin16 room GPIO
attr Pin16 webCmd ::EIN:AUS

define Pin18 RPI_GPIO 24
attr Pin18 active_low yes
attr Pin18 alias GPIO.05
attr Pin18 cmdIcon EIN:remotecontrol/black_btn_GREEN AUS:remotecontrol/black_btn_RED
attr Pin18 devStateIcon EIN:sani_pump@0CFB0C AUS:sani_pump@gray
attr Pin18 direction output
attr Pin18 eventMap off:AUS on:EIN
attr Pin18 group AvailablePorts
attr Pin18 icon sani_pump
attr Pin18 room GPIO
attr Pin18 webCmd ::EIN:AUS

### kann durch PiCAN bzw. MCP2515 Interupt blockiert sein
define Pin22 RPI_GPIO 25
attr Pin22 active_low yes
attr Pin22 alias GPIO.06
attr Pin22 cmdIcon EIN:remotecontrol/black_btn_GREEN AUS:remotecontrol/black_btn_RED
attr Pin22 devStateIcon EIN:sani_pump@0CFB0C AUS:sani_pump@gray
attr Pin22 direction output
attr Pin22 eventMap off:AUS on:EIN
attr Pin22 group AvailablePorts
attr Pin22 icon sani_pump
attr Pin22 room GPIO
attr Pin22 webCmd ::EIN:AUS

define Pin37 RPI_GPIO 26
attr Pin37 active_low yes
attr Pin37 alias GPIO.25
attr Pin37 cmdIcon EIN:remotecontrol/black_btn_GREEN AUS:remotecontrol/black_btn_RED
attr Pin37 devStateIcon EIN:sani_pump@0CFB0C AUS:sani_pump@gray
attr Pin37 direction output
attr Pin37 eventMap off:AUS on:EIN
attr Pin37 group AvailablePorts
attr Pin37 icon sani_pump
attr Pin37 room GPIO
attr Pin37 webCmd ::EIN:AUS

### kann durch S.USV blockiert sein
define Pin13 RPI_GPIO 27
attr Pin13 active_low yes
attr Pin13 alias GPIO.02
attr Pin13 cmdIcon EIN:remotecontrol/black_btn_GREEN AUS:remotecontrol/black_btn_RED
attr Pin13 devStateIcon EIN:sani_pump@0CFB0C AUS:sani_pump@gray
attr Pin13 direction output
attr Pin13 eventMap off:AUS on:EIN
attr Pin13 group AvailablePorts
attr Pin13 icon sani_pump
attr Pin13 room GPIO
attr Pin13 webCmd ::EIN:AUS

# -----------------------------------------------------------------------------------------------
# -----------------------------------------------------------------------------------------------
Mfg Chris

Raspberry Pi 2/2+/3/3+/4 / Betriebssystem: Bullseye Lite
Schnittstellen: RFXtrx433E, SIGNALduino, MQTT, nanoCUL, HM-MOD-UART, 1-Wire, LAN, ser2net, FHEM2FEHEM
Devices: S.USV, APC-USV, Fronius Datalogger Web 2, FS20, IT, Resol VBUS & DL2, TEK603, WMR200, YouLess, Homematic, MQTT