Raspi2 GPIO active_low

Begonnen von Atze, 08 Juli 2015, 13:38:48

Vorheriges Thema - Nächstes Thema

Atze

Hallo,
ich versuche verzweifelt das active_low mit RPI_GPIO zu nutzen. ich weiss es hat mit den Rechten zu tun aber ich komme nicht weiter.

Eine Gruppe gpio gibt es nicht.

Rpi 2 mit Debian 8 (jessie)

pi@aliendeb:~$ uname -a

Linux aliendeb 3.18.0-trunk-rpi2 #1 SMP PREEMPT Debian 3.18.5-1~exp1.co1 (2015-02-02) armv7l GNU/Linux



/etc/udev/rules.d/51-gpio.rules
SUBSYSTEM=="subsystem", KERNEL=="gpio",  ACTION=="add", PROGRAM="/bin/sh -c 'chown -R fhem:dialout /sys/class/$
SUBSYSTEM=="gpio", ACTION=="add", PROGRAM="/bin/sh -c 'chown -R fhem:dialout /sys/class/gpio/*'"



/etc/rc.local

sudo echo 11 > /sys/class/gpio/export
sudo echo 1 >/sys/class/gpio/gpio11/active_low
chown -R fhem:dialout /sys/devices/virtual/gpio/*
chown -R fhem:dialout /sys/class/gpio/*



pi@aliendeb:~$ ls -la /sys/class/gpio/

insgesamt 0
drwxr-xr-x  2 root root       0 Jul  8 13:23 .
drwxr-xr-x 45 root root       0 Jul  8 13:20 ..
--w-------  1 fhem dialout 4096 Jul  8 13:24 export
lrwxrwxrwx  1 fhem dialout    0 Jul  8 13:23 gpio11 -> ../../devices/virtual/gpio/gpio11
lrwxrwxrwx  1 fhem dialout    0 Jan  1  1970 gpiochip0 -> ../../devices/virtual/gpio/gpiochip0
--w-------  1 fhem dialout 4096 Jul  8 13:23 unexport



pi@aliendeb:~$ ls -l /sys/class/gpio/gpio11/

insgesamt 0
-rw-r--r-- 1 root root    4096 Jul  8 13:23 active_low
-rw-r--r-- 1 root root    4096 Jul  8 13:24 direction
-rw-r--r-- 1 fhem dialout 4096 Jul  8 13:23 edge
drwxr-xr-x 2 root root       0 Jul  8 13:24 power
lrwxrwxrwx 1 root root       0 Jul  8 13:24 subsystem -> ../../../../class/gpio
-rw-r--r-- 1 root root    4096 Jul  8 13:23 uevent
-rw-r--r-- 1 fhem dialout 4096 Jul  8 13:24 value


fhem
define myGPIO_11 RPI_GPIO 11
attr myGPIO_11 active_low yes
attr myGPIO_11 direction output
attr myGPIO_11 poll_interval 5
attr myGPIO_11 restoreOnStartup last
attr myGPIO_11 room Gpio


Vielleicht hat ja noch jemand einen Lösungsansatz für mich.

Gruß Andreas
FHEM 5.8 , RPi 2 / CUL 3.2 / JEELINKnano - PCA301 / nanoCUL a-culfw 1.05.03
HMS: rm1002, s300th / FHT: fht8v-3, fht80tf
FS20: fs20st, fs20sm8, fs20s8m, fs20rsu, fs20rbm, fs20pce, fs20pcs, fs20ue1, fs20irp2, fs20dwt, fs20rpt-3, fs20str-2, fs20kse
IT: ITDM-250, ITLS-16, ITW-852, IT-1500
G-Data Milight

klausw

Hat es einen bestimmten Grund, Debian 8 zu nutzen?
Ich habe es vor 2 Wochen ohne Probleme mit dem aktuellen Rasbpian auf dem RPI2 getestet.

Mit udev kenne ich mich nicht aus, aber das sollte eigenlich die Eintragungen in der rc.local überflüssig machen. (evtl. liegt hier auch der Fehler. Entferne für die Fehlersuche mal den udev Eintrag)

Hast du wiringpi installiert?

Ändert sich etwas in gpio11 Verzeichnis, wenn du sudo chown -R fhem:dialout /sys/devices/virtual/gpio/* nochmal direkt in die Konsole eingibst?

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

Atze

#2
mit, und oder ohne udev... immer das gleiche. Auch mit oder ohne rc.local keine Änderung.

ein "sudo chown -R fhem:dialout /sys/devices/virtual/gpio/*" ändert erfolgreich die Rechte.
Der Inhalt von  active_low ändert sich auch in 0 oder 1 aber es ändert sich nicht in Fhem oder bei "gpio readall".

Ein fhem restart oder rereadcfg ändert die Rechte wieder auf root:root

WiringPi ist installiert.

Am Debian 8 scheint es wohl nicht zu liegen, hab gerade gesehen das ander Nutzer ein ähnliches Problem haben:
http://forum.fhem.de/index.php/topic,16519.msg308272.html#msg308272
FHEM 5.8 , RPi 2 / CUL 3.2 / JEELINKnano - PCA301 / nanoCUL a-culfw 1.05.03
HMS: rm1002, s300th / FHT: fht8v-3, fht80tf
FS20: fs20st, fs20sm8, fs20s8m, fs20rsu, fs20rbm, fs20pce, fs20pcs, fs20ue1, fs20irp2, fs20dwt, fs20rpt-3, fs20str-2, fs20kse
IT: ITDM-250, ITLS-16, ITW-852, IT-1500
G-Data Milight

klausw

Zitat von: Atze am 08 Juli 2015, 16:21:16
Ein fhem restart oder rereadcfg ändert die Rechte wieder auf root:root

Das ist seltsam, die GPIO's sollten bei einem Neustart, sofern sie schon existieren nicht neu angelegt werden. Da dürfte sich überhaupt nichts ändern.

Du könntest mal Verbose 5 einstellen (global)
und schauen was das rpi_gpio so alles meldet.

Wiringpi legt genau diese Rechte an:
-rw-r--r-- 1 root root    4096 Jul  8 13:23 active_low
-rw-r--r-- 1 root root    4096 Jul  8 13:24 direction
-rw-r--r-- 1 fhem dialout 4096 Jul  8 13:23 edge
drwxr-xr-x 2 root root       0 Jul  8 13:24 power
lrwxrwxrwx 1 root root       0 Jul  8 13:24 subsystem -> ../../../../class/gpio
-rw-r--r-- 1 root root    4096 Jul  8 13:23 uevent
-rw-r--r-- 1 fhem dialout 4096 Jul  8 13:24 value

Evtl. spielt das noch mit rein.
Führst du das gpio Utility von Wiringpi in FHEM irgendwo aus?


Zitat von: Atze am 08 Juli 2015, 16:21:16
Am Debian 8 scheint es wohl nicht zu liegen, hab gerade gesehen das ander Nutzer ein ähnliches Problem haben:
http://forum.fhem.de/index.php/topic,16519.msg308272.html#msg308272
Auch das kann ich nicht nachvollziehen. Habe es mit einer frischen 2015-05-05-raspbian-wheezy Installation erfolgreich auf dem Pi2 getestet.
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

Atze

Also mehr als das Anlegen und schalten in Fhem mach ich nicht.

Hier das log:
2015.07.08 17:45:30 4: HTTP FHEMWEB:172.27.254.21:62213 GET /fhem?cmd.myGPIO_11=set%20myGPIO_11%20on&room=Gpio&XHR=1
2015.07.08 17:45:30 5: Cmd: >set myGPIO_11 on<
2015.07.08 17:45:30 5: myGPIO_11, in fileaccess: value 1
2015.07.08 17:45:30 5: Triggering myGPIO_11 (1 changes)
2015.07.08 17:45:30 5: Notify loop for myGPIO_11 on
2015.07.08 17:45:30 5: wird an setextensions gesendet: myGPIO_11 ?
2015.07.08 17:45:30 4: 15987:FHEMWEB:172.27.254.21:62213: /fhem?cmd.myGPIO_11=set%20myGPIO_11%20on&room=Gpio&XHR=1 / RL:20 / text/plain; charset=UTF-8 / Content-Encoding: gzip
/
2015.07.08 17:45:30 4: HTTP FHEMWEB:172.27.254.21:62213 GET /fhem?cmd.myGPIO_11=set%20myGPIO_11%20off&room=Gpio&XHR=1
2015.07.08 17:45:30 5: Cmd: >set myGPIO_11 off<
2015.07.08 17:45:30 5: myGPIO_11, in fileaccess: value 0
2015.07.08 17:45:30 5: Triggering myGPIO_11 (1 changes)
2015.07.08 17:45:30 5: Notify loop for myGPIO_11 off
2015.07.08 17:45:30 5: wird an setextensions gesendet: myGPIO_11 ?
2015.07.08 17:45:30 4: 15987:FHEMWEB:172.27.254.21:62213: /fhem?cmd.myGPIO_11=set%20myGPIO_11%20off&room=Gpio&XHR=1 / RL:20 / text/plain; charset=UTF-8 / Content-Encoding: gzip
FHEM 5.8 , RPi 2 / CUL 3.2 / JEELINKnano - PCA301 / nanoCUL a-culfw 1.05.03
HMS: rm1002, s300th / FHT: fht8v-3, fht80tf
FS20: fs20st, fs20sm8, fs20s8m, fs20rsu, fs20rbm, fs20pce, fs20pcs, fs20ue1, fs20irp2, fs20dwt, fs20rpt-3, fs20str-2, fs20kse
IT: ITDM-250, ITLS-16, ITW-852, IT-1500
G-Data Milight

klausw

Zitat von: Atze am 08 Juli 2015, 17:54:50
Also mehr als das Anlegen und schalten in Fhem mach ich nicht.

Aber nur mit dem rpi_gpio Modul?

Mit dem Log meinte ich einen kompletten shutdown restart
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

Atze

ja nur rpi_gpio. hier das log.


2015.07.09 11:47:04 4: Closing inactive connection FHEMWEB:172.27.254.21:62745
2015.07.09 11:47:04 4: Closing inactive connection FHEMWEB:172.27.254.21:62746
2015.07.09 11:47:04 4: Closing inactive connection FHEMWEB:172.27.254.21:62747
2015.07.09 11:47:04 4: Closing inactive connection FHEMWEB:172.27.254.21:62750
2015.07.09 11:47:04 4: Closing inactive connection FHEMWEB:172.27.254.21:62741
2015.07.09 11:47:41 4: Connection accepted from FHEMWEB:172.27.254.21:62781
2015.07.09 11:47:41 4: HTTP FHEMWEB:172.27.254.21:62781 GET /fhem?XHR=1&cmd=shutdown%20restart
2015.07.09 11:47:41 5: Cmd: >shutdown restart<
2015.07.09 11:47:41 5: Triggering global (1 changes)
2015.07.09 11:47:41 5: Notify loop for global SHUTDOWN
2015.07.09 11:47:41 0: Server shutdown
"my" variable $dayDiff masks earlier declaration in same scope at ./FHEM/99_myUtils.pm line 199.
"my" variable $dayDiff masks earlier declaration in same scope at ./FHEM/99_myUtils.pm line 203.
"my" variable $dayDiff masks earlier declaration in same scope at ./FHEM/99_myUtils.pm line 207.
2015.07.09 11:47:44 1: reload: Error:Modul 99_myUtils deactivated:
Global symbol "$FW_ME" requires explicit package name at ./FHEM/99_myUtils.pm line 22.
Global symbol "$FW_subdir" requires explicit package name at ./FHEM/99_myUtils.pm line 22.

2015.07.09 11:47:44 5: Initializing Type Library:
2015.07.09 11:47:44 1: Including fhem.cfg
2015.07.09 11:47:44 5: Cmd: >attr global userattr cmdIcon devStateIcon devStateStyle icon power-off power-on sortby webCmd widgetOverride<
2015.07.09 11:47:44 5: Cmd: >attr global autoload_undefined_devices 1<
2015.07.09 11:47:44 5: Cmd: >attr global backup_before_update 0<
2015.07.09 11:47:44 5: Cmd: >attr global logfile /opt/fhem/log/fhem2-%Y-%W.log<
2015.07.09 11:47:44 5: Cmd: >attr global modpath .<
2015.07.09 11:47:44 5: Loading ./FHEM/99_myUtils.pm
Subroutine myUtils_Initialize redefined at ./FHEM/99_myUtils.pm line 8, <$fh> line 5.
Subroutine DoOnSMSReceived redefined at ./FHEM/99_myUtils.pm line 13, <$fh> line 5.
"my" variable $dayDiff masks earlier declaration in same scope at ./FHEM/99_myUtils.pm line 199, <$fh> line 5.
"my" variable $dayDiff masks earlier declaration in same scope at ./FHEM/99_myUtils.pm line 203, <$fh> line 5.
"my" variable $dayDiff masks earlier declaration in same scope at ./FHEM/99_myUtils.pm line 207, <$fh> line 5.
2015.07.09 11:47:44 1: reload: Error:Modul 99_myUtils deactivated:
Global symbol "$FW_ME" requires explicit package name at ./FHEM/99_myUtils.pm line 22, <$fh> line 5.
Global symbol "$FW_subdir" requires explicit package name at ./FHEM/99_myUtils.pm line 22, <$fh> line 5.

2015.07.09 11:47:44 5: Cmd: >attr global motd FHEM demo version<
2015.07.09 11:47:44 5: Cmd: >attr global room System<
2015.07.09 11:47:44 5: Cmd: >attr global sendStatistics never<
2015.07.09 11:47:44 5: Cmd: >attr global statefile /opt/fhem/fhem2.save<
2015.07.09 11:47:44 5: Cmd: >attr global updateInBackground 0<
2015.07.09 11:47:44 5: Cmd: >attr global verbose 5<
2015.07.09 11:47:44 5: Cmd: >define telnetPort telnet 7072 global<
2015.07.09 11:47:44 5: Loading ./FHEM/98_telnet.pm
2015.07.09 11:47:44 3: telnetPort: port 7072 opened
2015.07.09 11:47:44 5: Cmd: >attr telnetPort room System<
2015.07.09 11:47:44 5: Cmd: >define WEB FHEMWEB 8083 global<
2015.07.09 11:47:44 5: Loading ./FHEM/01_FHEMWEB.pm
2015.07.09 11:47:45 3: WEB: port 8083 opened
2015.07.09 11:47:45 5: Cmd: >attr WEB JavaScripts codemirror/fhem_codemirror.js<
2015.07.09 11:47:45 5: Cmd: >attr WEB defaultRoom Light<
2015.07.09 11:47:45 5: Cmd: >attr WEB hiddenroom DashboardRoom<
2015.07.09 11:47:45 5: Cmd: >attr WEB iconPath openautomation:fhemSVG:default<
2015.07.09 11:47:45 5: Cmd: >attr WEB room System<
2015.07.09 11:47:45 5: Cmd: >attr WEB sortRooms Light Cinema Residents Sensors System<
2015.07.09 11:47:45 5: Cmd: >define Logfile FileLog /opt/fhem/log/fhem2-%Y-%m.log fakelog<
2015.07.09 11:47:45 5: Loading ./FHEM/92_FileLog.pm
2015.07.09 11:47:45 5: Cmd: >attr Logfile room System<
2015.07.09 11:47:45 5: Cmd: >define autocreate autocreate<
2015.07.09 11:47:45 5: Loading ./FHEM/98_autocreate.pm
2015.07.09 11:47:45 5: Cmd: >attr autocreate room System<
2015.07.09 11:47:45 5: Cmd: >define eventTypes eventTypes demolog/eventTypes2.txt<
2015.07.09 11:47:45 5: Loading ./FHEM/91_eventTypes.pm
2015.07.09 11:47:45 2: eventTypes: loaded 5 events from demolog/eventTypes2.txt
2015.07.09 11:47:45 5: Cmd: >attr eventTypes room System<
2015.07.09 11:47:45 5: Cmd: >define myGPIO_11 RPI_GPIO 11<
2015.07.09 11:47:45 5: Loading ./FHEM/51_RPI_GPIO.pm
2015.07.09 11:47:45 4: myGPIO_11: gpio11 already exists
2015.07.09 11:47:45 5: Cmd: >attr myGPIO_11 active_low yes<
2015.07.09 11:47:45 5: myGPIO_11, in fileaccess: active_low 1
2015.07.09 11:47:45 5: myGPIO_11: set attr active_low: yes
2015.07.09 11:47:45 5: Cmd: >attr myGPIO_11 direction output<
2015.07.09 11:47:45 5: myGPIO_11: set attr direction: output vorerst NICHT
2015.07.09 11:47:45 5: Cmd: >attr myGPIO_11 poll_interval 5<
2015.07.09 11:47:45 5: Cmd: >attr myGPIO_11 restoreOnStartup last<
2015.07.09 11:47:45 5: Cmd: >attr myGPIO_11 room Gpio<
2015.07.09 11:47:45 1: Including /opt/fhem/fhem2.save
2015.07.09 11:47:45 5: Cmd: >setstate Logfile active<
2015.07.09 11:47:45 5: Cmd: >setstate autocreate active<
2015.07.09 11:47:45 5: Cmd: >setstate eventTypes active<
2015.07.09 11:47:45 5: Cmd: >setstate global <no definition><
2015.07.09 11:47:45 5: Cmd: >setstate myGPIO_11 off<
2015.07.09 11:47:45 4: myGPIO_11: STATE kann auf off wiederhergestellt werden 2015-07-09 11:47:45
2015.07.09 11:47:45 5: Cmd: >setstate myGPIO_11 2015-07-09 11:45:47 Pinlevel high<
2015.07.09 11:47:45 4: myGPIO_11: Pinlevel kann auf high wiederhergestellt werden 2015-07-09 11:45:47
2015.07.09 11:47:45 4: OUTPUT myGPIO_11: Pinlevel wiederhergestellt auf high
2015.07.09 11:47:45 5: Cmd: >setstate myGPIO_11 2015-07-09 11:44:05 state off<
2015.07.09 11:47:45 4: myGPIO_11: state kann auf off wiederhergestellt werden 2015-07-09 11:44:05
2015.07.09 11:47:45 4: OUTPUT myGPIO_11: state wiederhergestellt auf off
2015.07.09 11:47:45 5: myGPIO_11, in fileaccess: value 0
2015.07.09 11:47:45 5: myGPIO_11, in fileaccess: direction high
2015.07.09 11:47:45 4: myGPIO_11: direction gesetzt auf high
2015.07.09 11:47:45 4: OUTPUT myGPIO_11: STATE wiederhergestellt auf off (restoreOnStartup=last)
2015.07.09 11:47:45 5: Triggering global (1 changes)
2015.07.09 11:47:45 5: Notify loop for global INITIALIZED
2015.07.09 11:47:45 2: FHEM demo version
2015.07.09 11:47:45 0: Featurelevel: 5.6
2015.07.09 11:47:45 0: Server started with 7 defined entities (version $Id: fhem.pl 8850 2015-06-28 15:03:28Z rudolfkoenig $, os linux, user fhem, pid 1272)
2015.07.09 11:47:45 5: myGPIO_11, in fileaccess: value
2015.07.09 11:47:45 5: Triggering myGPIO_11 (2 changes)
2015.07.09 11:47:45 5: Notify loop for myGPIO_11 Pinlevel: low
2015.07.09 11:47:46 4: Connection accepted from FHEMWEB:172.27.254.21:62782
2015.07.09 11:47:47 4: HTTP FHEMWEB:172.27.254.21:62782 GET /fhem/FileLog_logWrapper?XHR=1&inform=type=status;filter=;since=1436435152.154;fmt=JSON×tamp=1436435267508
2015.07.09 11:48:00 4: Connection closed for FHEMWEB:172.27.254.21:62782: EOF
2015.07.09 11:48:00 4: Connection accepted from FHEMWEB:172.27.254.21:62783
2015.07.09 11:48:00 4: HTTP FHEMWEB:172.27.254.21:62783 GET /fhem/FileLog_logWrapper?dev=Logfile&type=text&file=fhem2-2015-27.log
2015.07.09 11:48:00 4: HTTP FHEMWEB:172.27.254.21:62783 GET /fhem/pgm2/jquery-ui.min.css
2015.07.09 11:48:00 4: Connection accepted from FHEMWEB:172.27.254.21:62784
2015.07.09 11:48:00 4: HTTP FHEMWEB:172.27.254.21:62784 GET /fhem/pgm2/jquery.min.js
2015.07.09 11:48:00 4: Connection accepted from FHEMWEB:172.27.254.21:62785
2015.07.09 11:48:00 4: HTTP FHEMWEB:172.27.254.21:62783 GET /fhem/pgm2/fhemweb_fbcalllist.js
2015.07.09 11:48:00 4: Connection accepted from FHEMWEB:172.27.254.21:62786
2015.07.09 11:48:00 4: HTTP FHEMWEB:172.27.254.21:62785 GET /fhem/pgm2/jquery-ui.min.js
2015.07.09 11:48:00 4: HTTP FHEMWEB:172.27.254.21:62784 GET /fhem/pgm2/fhemweb_readingsGroup.js
2015.07.09 11:48:00 4: HTTP FHEMWEB:172.27.254.21:62786 GET /fhem/pgm2/fhemweb.js
2015.07.09 11:48:00 4: HTTP FHEMWEB:172.27.254.21:62783 GET /fhem/pgm2/fhemweb_readingsHistory.js
2015.07.09 11:48:00 4: Connection accepted from FHEMWEB:172.27.254.21:62787
2015.07.09 11:48:00 4: HTTP FHEMWEB:172.27.254.21:62785 GET /fhem/pgm2/fhemweb_sortable.js
2015.07.09 11:48:00 4: HTTP FHEMWEB:172.27.254.21:62787 GET /fhem/pgm2/fhemweb_colorpicker.js
2015.07.09 11:48:00 4: HTTP FHEMWEB:172.27.254.21:62784 GET /fhem/pgm2/fhemweb_uzsu.js
2015.07.09 11:48:00 4: HTTP FHEMWEB:172.27.254.21:62786 GET /fhem/codemirror/fhem_codemirror.js
2015.07.09 11:48:00 4: HTTP FHEMWEB:172.27.254.21:62783 GET /fhem/pgm2/defaultCommon.css
2015.07.09 11:48:00 4: Connection accepted from FHEMWEB:172.27.254.21:62788
2015.07.09 11:48:00 4: HTTP FHEMWEB:172.27.254.21:62785 GET /fhem/icons/favicon
2015.07.09 11:48:00 4: HTTP FHEMWEB:172.27.254.21:62788 GET /fhem/pgm2/fhemweb_knob.js
2015.07.09 11:48:00 4: HTTP FHEMWEB:172.27.254.21:62783 GET /fhem/pgm2/dashboard_style.css
2015.07.09 11:48:00 4: HTTP FHEMWEB:172.27.254.21:62783 GET /fhem/images/default/icoEverything.png
2015.07.09 11:48:00 4: HTTP FHEMWEB:172.27.254.21:62783 GET /fhem/images/default/fhemicon.png
2015.07.09 11:48:01 4: HTTP FHEMWEB:172.27.254.21:62783 GET /fhem/FileLog_logWrapper?XHR=1&inform=type=status;filter=;since=1436435279;fmt=JSON×tamp=1436435281702
2015.07.09 11:48:11 4: Connection closed for FHEMWEB:172.27.254.21:62783: EOF
2015.07.09 11:48:11 4: HTTP FHEMWEB:172.27.254.21:62787 GET /fhem/FileLog_logWrapper?dev=Logfile&type=text&file=fhem2-2015-27.log
FHEM 5.8 , RPi 2 / CUL 3.2 / JEELINKnano - PCA301 / nanoCUL a-culfw 1.05.03
HMS: rm1002, s300th / FHT: fht8v-3, fht80tf
FS20: fs20st, fs20sm8, fs20s8m, fs20rsu, fs20rbm, fs20pce, fs20pcs, fs20ue1, fs20irp2, fs20dwt, fs20rpt-3, fs20str-2, fs20kse
IT: ITDM-250, ITLS-16, ITW-852, IT-1500
G-Data Milight

klausw

nach dem Inhalt des Logfiles zu schlussfolgern wird active_low korrekt mit 1 beschrieben

myGPIO_11, in fileaccess: active_low 1
andernfalls hätte

Can't open file: myGPIO_11, active_low
im Log auftauchen müssen

ausserdem wird der GPIO nicht neu angelegt:
myGPIO_11: gpio11 already exists

Daher dürften sich auch die Rechte nicht ändern.

Bist du sicher, das nach shutdown restart die Rechte verändert werden?
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

Atze

Rpi neugestartet: ##################

pi@aliendeb:~$ ls -la /sys/class/gpio/
insgesamt 0
drwxr-xr-x  2 root root       0 Jul  9 13:20 .
drwxr-xr-x 45 root root       0 Jul  9 13:20 ..
--w-------  1 fhem dialout 4096 Jul  9 13:17 export
lrwxrwxrwx  1 fhem dialout    0 Jul  9 13:17 gpio11 -> ../../devices/virtual/gpio/gpio11
lrwxrwxrwx  1 fhem dialout    0 Jan  1  1970 gpiochip0 -> ../../devices/virtual/gpio/gpiochip0
--w-------  1 fhem dialout 4096 Jan  1  1970 unexport



pi@aliendeb:~$ ls -l /sys/class/gpio/gpio11/
insgesamt 0
-rw-r--r-- 1 fhem dialout 4096 Jul  9 13:17 active_low
-rw-r--r-- 1 fhem dialout 4096 Jul  9 13:17 direction
-rw-r--r-- 1 fhem dialout 4096 Jul  9 13:17 edge
drwxr-xr-x 2 fhem dialout    0 Jul  9 13:17 power
lrwxrwxrwx 1 fhem dialout    0 Jul  9 13:17 subsystem -> ../../../../class/gpio
-rw-r--r-- 1 fhem dialout 4096 Jul  9 13:17 uevent
-rw-r--r-- 1 fhem dialout 4096 Jul  9 13:17 value


jetzt in Fhem ein "shutdown restart" ##################

Keine Veränderung, dann nach einem rereadcfg

pi@aliendeb:~$ ls -la /sys/class/gpio/
insgesamt 0
drwxr-xr-x  2 root root       0 Jul  9 13:20 .
drwxr-xr-x 45 root root       0 Jul  9 13:20 ..
--w-------  1 fhem dialout 4096 Jul  9 13:17 export
lrwxrwxrwx  1 fhem dialout    0 Jul  9 13:17 gpio11 -> ../../devices/virtual/gpio/gpio11
lrwxrwxrwx  1 fhem dialout    0 Jan  1  1970 gpiochip0 -> ../../devices/virtual/gpio/gpiochip0
--w-------  1 fhem dialout 4096 Jan  1  1970 unexport



pi@aliendeb:~$ ls -l /sys/class/gpio/gpio11/
insgesamt 0
-rw-r--r-- 1 [b]root root[/b]    4096 Jul  9 13:23 active_low
-rw-r--r-- 1 [b]root root[/b]    4096 Jul  9 13:23 direction
-rw-r--r-- 1 fhem dialout 4096 Jul  9 13:23 edge
drwxr-xr-x 2 [b]root roo[/b]t       0 Jul  9 13:24 power
lrwxrwxrwx 1[b] root root[/b]       0 Jul  9 13:24 subsystem -> ../../../../class/gpio
-rw-r--r-- 1 [b]root root[/b]    4096 Jul  9 13:23 uevent
-rw-r--r-- 1 fhem dialout 4096 Jul  9 13:23 value



Die Rechteveränderung tritt also nur bei einem rereadcfg auf.

Hier mal das Log nach einem rereadcfg :
2015.07.09 13:30:41 5: Initializing Type Library:
2015.07.09 13:30:41 1: Including fhem.cfg
2015.07.09 13:30:41 5: Cmd: >attr global userattr cmdIcon devStateIcon devStateStyle icon power-off power-on sortby webCmd widgetOverride<
2015.07.09 13:30:41 5: Cmd: >attr global autoload_undefined_devices 1<
2015.07.09 13:30:41 5: Cmd: >attr global backup_before_update 0<
2015.07.09 13:30:41 5: Cmd: >attr global logfile /opt/fhem/log/fhem2-%Y-%W.log<
2015.07.09 13:30:41 5: Cmd: >attr global modpath .<
2015.07.09 13:30:41 5: Loading ./FHEM/99_myUtils.pm
Subroutine myUtils_Initialize redefined at ./FHEM/99_myUtils.pm line 8, <$fh> line 5.
Subroutine DoOnSMSReceived redefined at ./FHEM/99_myUtils.pm line 13, <$fh> line 5.
"my" variable $dayDiff masks earlier declaration in same scope at ./FHEM/99_myUtils.pm line 199, <$fh> line 5.
"my" variable $dayDiff masks earlier declaration in same scope at ./FHEM/99_myUtils.pm line 203, <$fh> line 5.
"my" variable $dayDiff masks earlier declaration in same scope at ./FHEM/99_myUtils.pm line 207, <$fh> line 5.
2015.07.09 13:30:41 1: reload: Error:Modul 99_myUtils deactivated:
Global symbol "$FW_ME" requires explicit package name at ./FHEM/99_myUtils.pm line 22, <$fh> line 5.
Global symbol "$FW_subdir" requires explicit package name at ./FHEM/99_myUtils.pm line 22, <$fh> line 5.

2015.07.09 13:30:41 5: Cmd: >attr global motd FHEM demo version<
2015.07.09 13:30:41 5: Cmd: >attr global room System<
2015.07.09 13:30:41 5: Cmd: >attr global sendStatistics never<
2015.07.09 13:30:41 5: Cmd: >attr global statefile /opt/fhem/fhem2.save<
2015.07.09 13:30:41 5: Cmd: >attr global updateInBackground 0<
2015.07.09 13:30:41 5: Cmd: >attr global verbose 5<
2015.07.09 13:30:41 5: Cmd: >define telnetPort telnet 7072 global<
2015.07.09 13:30:41 5: Loading ./FHEM/98_telnet.pm
2015.07.09 13:30:41 3: telnetPort: port 7072 opened
2015.07.09 13:30:41 5: Cmd: >attr telnetPort room System<
2015.07.09 13:30:41 5: Cmd: >define WEB FHEMWEB 8083 global<
2015.07.09 13:30:41 5: Loading ./FHEM/01_FHEMWEB.pm
2015.07.09 13:30:42 3: WEB: port 8083 opened
2015.07.09 13:30:42 5: Cmd: >attr WEB JavaScripts codemirror/fhem_codemirror.js<
2015.07.09 13:30:42 5: Cmd: >attr WEB defaultRoom Light<
2015.07.09 13:30:42 5: Cmd: >attr WEB hiddenroom DashboardRoom<
2015.07.09 13:30:42 5: Cmd: >attr WEB iconPath openautomation:fhemSVG:default<
2015.07.09 13:30:42 5: Cmd: >attr WEB room System<
2015.07.09 13:30:42 5: Cmd: >attr WEB sortRooms Light Cinema Residents Sensors System<
2015.07.09 13:30:42 5: Cmd: >define Logfile FileLog /opt/fhem/log/fhem2-%Y-%m.log fakelog<
2015.07.09 13:30:42 5: Loading ./FHEM/92_FileLog.pm
2015.07.09 13:30:42 5: Cmd: >attr Logfile room System<
2015.07.09 13:30:42 5: Cmd: >define autocreate autocreate<
2015.07.09 13:30:42 5: Loading ./FHEM/98_autocreate.pm
2015.07.09 13:30:43 5: Cmd: >attr autocreate room System<
2015.07.09 13:30:43 5: Cmd: >define eventTypes eventTypes demolog/eventTypes2.txt<
2015.07.09 13:30:43 5: Loading ./FHEM/91_eventTypes.pm
2015.07.09 13:30:43 2: eventTypes: loaded 5 events from demolog/eventTypes2.txt
2015.07.09 13:30:43 5: Cmd: >attr eventTypes room System<
2015.07.09 13:30:43 5: Cmd: >define myGPIO_11 RPI_GPIO 11<
2015.07.09 13:30:43 5: Loading ./FHEM/51_RPI_GPIO.pm
2015.07.09 13:30:43 4: myGPIO_11: gpio11 already exists
2015.07.09 13:30:43 5: Cmd: >attr myGPIO_11 active_low yes<
2015.07.09 13:30:43 5: myGPIO_11, in fileaccess: active_low 1
2015.07.09 13:30:43 5: myGPIO_11: set attr active_low: yes
2015.07.09 13:30:43 5: Cmd: >attr myGPIO_11 direction output<
2015.07.09 13:30:43 5: myGPIO_11: set attr direction: output vorerst NICHT
2015.07.09 13:30:43 5: Cmd: >attr myGPIO_11 poll_interval 5<
2015.07.09 13:30:43 5: Cmd: >attr myGPIO_11 restoreOnStartup last<
2015.07.09 13:30:43 5: Cmd: >attr myGPIO_11 room Gpio<
2015.07.09 13:30:43 1: Including /opt/fhem/fhem2.save
2015.07.09 13:30:43 5: Cmd: >setstate Logfile active<
2015.07.09 13:30:43 5: Cmd: >setstate autocreate active<
2015.07.09 13:30:43 5: Cmd: >setstate eventTypes active<
2015.07.09 13:30:43 5: Cmd: >setstate global <no definition><
2015.07.09 13:30:43 5: Cmd: >setstate myGPIO_11 off<
2015.07.09 13:30:43 4: myGPIO_11: STATE kann auf off wiederhergestellt werden 2015-07-09 13:30:43
2015.07.09 13:30:43 5: Cmd: >setstate myGPIO_11 2015-07-09 11:52:45 Pinlevel low<
2015.07.09 13:30:43 4: myGPIO_11: Pinlevel kann auf low wiederhergestellt werden 2015-07-09 11:52:45
2015.07.09 13:30:43 4: OUTPUT myGPIO_11: Pinlevel wiederhergestellt auf low
2015.07.09 13:30:43 5: Cmd: >setstate myGPIO_11 2015-07-09 11:52:45 state off<
2015.07.09 13:30:43 4: myGPIO_11: state kann auf off wiederhergestellt werden 2015-07-09 11:52:45
2015.07.09 13:30:43 4: OUTPUT myGPIO_11: state wiederhergestellt auf off
2015.07.09 13:30:43 5: myGPIO_11, in fileaccess: value 0
2015.07.09 13:30:43 5: myGPIO_11, in fileaccess: direction high
2015.07.09 13:30:43 4: myGPIO_11: direction gesetzt auf high
2015.07.09 13:30:43 4: OUTPUT myGPIO_11: STATE wiederhergestellt auf off (restoreOnStartup=last)
2015.07.09 13:30:43 5: Triggering global (1 changes)
2015.07.09 13:30:43 5: Notify loop for global INITIALIZED
2015.07.09 13:30:43 2: FHEM demo version
2015.07.09 13:30:43 0: Featurelevel: 5.6
2015.07.09 13:30:43 0: Server started with 7 defined entities (version $Id: fhem.pl 8850 2015-06-28 15:03:28Z rudolfkoenig $, os linux, user fhem, pid 935)
2015.07.09 13:30:43 5: myGPIO_11, in fileaccess: value
2015.07.09 13:30:43 5: Triggering myGPIO_11 (2 changes)
2015.07.09 13:30:43 5: Notify loop for myGPIO_11 Pinlevel: low
2015.07.09 13:30:43 4: Connection accepted from FHEMWEB:172.27.254.21:63043
2015.07.09 13:30:43 4: Connection accepted from FHEMWEB:172.27.254.21:63042
2015.07.09 13:30:44 4: HTTP FHEMWEB:172.27.254.21:63043 GET /fhem?XHR=1&inform=type=status;filter=;since=1436441357.444;fmt=JSON×tamp=1436441432442
2015.07.09 13:30:47 4: Connection closed for FHEMWEB:172.27.254.21:63042: EOF
2015.07.09 13:31:17 4: Connection closed for FHEMWEB:172.27.254.21:63043: EOF
2015.07.09 13:31:17 4: Connection accepted from FHEMWEB:172.27.254.21:63049
2015.07.09 13:31:17 4: HTTP FHEMWEB:172.27.254.21:63049 GET /fhem
2015.07.09 13:31:17 4: 935:FHEMWEB:172.27.254.21:63049: /fhem / RL:1036 / text/html; charset=UTF-8 / Content-Encoding: gzip
/
2015.07.09 13:31:18 4: HTTP FHEMWEB:172.27.254.21:63049 GET /fhem/pgm2/style.css
2015.07.09 13:31:18 4: Connection accepted from FHEMWEB:172.27.254.21:63050
2015.07.09 13:31:18 4: Connection accepted from FHEMWEB:172.27.254.21:63051
2015.07.09 13:31:18 4: HTTP FHEMWEB:172.27.254.21:63050 GET /fhem/pgm2/jquery-ui.min.css
2015.07.09 13:31:18 4: HTTP FHEMWEB:172.27.254.21:63051 GET /fhem/pgm2/jquery.min.js
2015.07.09 13:31:18 4: Connection accepted from FHEMWEB:172.27.254.21:63052
2015.07.09 13:31:18 4: HTTP FHEMWEB:172.27.254.21:63051 GET /fhem/pgm2/fhemweb_knob.js
2015.07.09 13:31:18 4: Connection accepted from FHEMWEB:172.27.254.21:63053
2015.07.09 13:31:18 4: HTTP FHEMWEB:172.27.254.21:63052 GET /fhem/pgm2/jquery-ui.min.js
2015.07.09 13:31:18 4: HTTP FHEMWEB:172.27.254.21:63050 GET /fhem/pgm2/fhemweb_fbcalllist.js
2015.07.09 13:31:18 4: HTTP FHEMWEB:172.27.254.21:63051 GET /fhem/pgm2/fhemweb_readingsGroup.js
2015.07.09 13:31:18 4: Connection accepted from FHEMWEB:172.27.254.21:63054
2015.07.09 13:31:18 4: HTTP FHEMWEB:172.27.254.21:63052 GET /fhem/pgm2/fhemweb_readingsHistory.js
2015.07.09 13:31:18 4: HTTP FHEMWEB:172.27.254.21:63053 GET /fhem/pgm2/fhemweb.js
2015.07.09 13:31:18 4: HTTP FHEMWEB:172.27.254.21:63052 GET /fhem/codemirror/fhem_codemirror.js
2015.07.09 13:31:18 4: HTTP FHEMWEB:172.27.254.21:63051 GET /fhem/pgm2/fhemweb_uzsu.js
2015.07.09 13:31:18 4: HTTP FHEMWEB:172.27.254.21:63054 GET /fhem/pgm2/fhemweb_colorpicker.js
2015.07.09 13:31:18 4: HTTP FHEMWEB:172.27.254.21:63050 GET /fhem/pgm2/fhemweb_sortable.js
2015.07.09 13:31:18 4: HTTP FHEMWEB:172.27.254.21:63053 GET /fhem/icons/favicon
2015.07.09 13:31:18 4: HTTP FHEMWEB:172.27.254.21:63049 GET /fhem/pgm2/defaultCommon.css
2015.07.09 13:31:18 4: HTTP FHEMWEB:172.27.254.21:63049 GET /fhem/pgm2/dashboard_style.css
2015.07.09 13:31:18 4: HTTP FHEMWEB:172.27.254.21:63049 GET /fhem/images/default/icoEverything.png
2015.07.09 13:31:18 4: HTTP FHEMWEB:172.27.254.21:63052 GET /fhem/images/default/fhemicon.png
2015.07.09 13:31:18 4: HTTP FHEMWEB:172.27.254.21:63049 GET /fhem?XHR=1&inform=type=status;filter=room=Light;since=1436441476;fmt=JSON×tamp=1436441478864
2015.07.09 13:31:22 4: Connection closed for FHEMWEB:172.27.254.21:63049: EOF
2015.07.09 13:31:22 4: HTTP FHEMWEB:172.27.254.21:63051 GET /fhem/FileLog_logWrapper?dev=Logfile&type=text&file=fhem2-2015-27.log
2015.07.09 13:31:22 4: HTTP FHEMWEB:172.27.254.21:63051 GET /fhem/pgm2/jquery-ui.min.css
2015.07.09 13:31:22 4: HTTP FHEMWEB:172.27.254.21:63054 GET /fhem/pgm2/jquery.min.js
2015.07.09 13:31:22 4: HTTP FHEMWEB:172.27.254.21:63052 GET /fhem/pgm2/fhemweb_colorpicker.js
2015.07.09 13:31:22 4: Connection accepted from FHEMWEB:172.27.254.21:63055
2015.07.09 13:31:22 4: HTTP FHEMWEB:172.27.254.21:63053 GET /fhem/pgm2/fhemweb.js
2015.07.09 13:31:22 4: HTTP FHEMWEB:172.27.254.21:63050 GET /fhem/pgm2/jquery-ui.min.js
2015.07.09 13:31:22 4: HTTP FHEMWEB:172.27.254.21:63051 GET /fhem/pgm2/fhemweb_knob.js
2015.07.09 13:31:22 4: HTTP FHEMWEB:172.27.254.21:63054 GET /fhem/pgm2/fhemweb_readingsGroup.js
2015.07.09 13:31:22 4: HTTP FHEMWEB:172.27.254.21:63053 GET /fhem/pgm2/fhemweb_sortable.js
2015.07.09 13:31:22 4: HTTP FHEMWEB:172.27.254.21:63052 GET /fhem/pgm2/fhemweb_readingsHistory.js
2015.07.09 13:31:22 4: HTTP FHEMWEB:172.27.254.21:63055 GET /fhem/pgm2/fhemweb_fbcalllist.js
2015.07.09 13:31:22 4: HTTP FHEMWEB:172.27.254.21:63050 GET /fhem/pgm2/fhemweb_uzsu.js
2015.07.09 13:31:22 4: HTTP FHEMWEB:172.27.254.21:63051 GET /fhem/codemirror/fhem_codemirror.js
2015.07.09 13:31:22 4: HTTP FHEMWEB:172.27.254.21:63054 GET /fhem/icons/favicon
2015.07.09 13:31:22 4: HTTP FHEMWEB:172.27.254.21:63053 GET /fhem/pgm2/defaultCommon.css
2015.07.09 13:31:22 4: HTTP FHEMWEB:172.27.254.21:63051 GET /fhem/pgm2/dashboard_style.css
2015.07.09 13:31:22 4: HTTP FHEMWEB:172.27.254.21:63051 GET /fhem/images/default/icoEverything.png
2015.07.09 13:31:22 4: HTTP FHEMWEB:172.27.254.21:63052 GET /fhem/images/default/fhemicon.png
2015.07.09 13:31:22 4: HTTP FHEMWEB:172.27.254.21:63051 GET /fhem/FileLog_logWrapper?XHR=1&inform=type=status;filter=;since=1436441481;fmt=JSON×tamp=1436441483153
2015.07.09 13:31:38 4: Connection closed for FHEMWEB:172.27.254.21:63051: EOF
2015.07.09 13:31:38 4: HTTP FHEMWEB:172.27.254.21:63055 GET /fhem&cmd=rereadcfg
2015.07.09 13:31:38 5: Cmd: >rereadcfg<
2015.07.09 13:31:38 1: myGPIO_11: entfernt
2015.07.09 13:31:38 1: PERL WARNING: Subroutine myUtils_Initialize redefined at ./FHEM/99_myUtils.pm line 8.
2015.07.09 13:31:38 1: PERL WARNING: Subroutine DoOnSMSReceived redefined at ./FHEM/99_myUtils.pm line 13.
2015.07.09 13:31:38 1: PERL WARNING: "my" variable $dayDiff masks earlier declaration in same scope at ./FHEM/99_myUtils.pm line 199.
2015.07.09 13:31:38 1: PERL WARNING: "my" variable $dayDiff masks earlier declaration in same scope at ./FHEM/99_myUtils.pm line 203.
2015.07.09 13:31:38 1: PERL WARNING: "my" variable $dayDiff masks earlier declaration in same scope at ./FHEM/99_myUtils.pm line 207.
2015.07.09 13:31:38 1: Including fhem.cfg
2015.07.09 13:31:38 5: Cmd: >attr global userattr cmdIcon devStateIcon devStateStyle icon power-off power-on sortby webCmd widgetOverride<
2015.07.09 13:31:38 5: Cmd: >attr global autoload_undefined_devices 1<
2015.07.09 13:31:38 5: Cmd: >attr global backup_before_update 0<
2015.07.09 13:31:38 5: Cmd: >attr global logfile /opt/fhem/log/fhem2-%Y-%W.log<
2015.07.09 13:31:38 5: Cmd: >attr global modpath .<
2015.07.09 13:31:38 5: Cmd: >attr global motd FHEM demo version<
2015.07.09 13:31:38 5: Cmd: >attr global room System<
2015.07.09 13:31:38 5: Cmd: >attr global sendStatistics never<
2015.07.09 13:31:38 5: Cmd: >attr global statefile /opt/fhem/fhem2.save<
2015.07.09 13:31:38 5: Cmd: >attr global updateInBackground 0<
2015.07.09 13:31:38 5: Cmd: >attr global verbose 5<
2015.07.09 13:31:38 5: Cmd: >define telnetPort telnet 7072 global<
2015.07.09 13:31:38 3: telnetPort: port 7072 opened
2015.07.09 13:31:38 5: Cmd: >attr telnetPort room System<
2015.07.09 13:31:38 5: Cmd: >define WEB FHEMWEB 8083 global<
2015.07.09 13:31:38 3: WEB: port 8083 opened
2015.07.09 13:31:38 5: Cmd: >attr WEB JavaScripts codemirror/fhem_codemirror.js<
2015.07.09 13:31:38 5: Cmd: >attr WEB defaultRoom Light<
2015.07.09 13:31:38 5: Cmd: >attr WEB hiddenroom DashboardRoom<
2015.07.09 13:31:38 5: Cmd: >attr WEB iconPath openautomation:fhemSVG:default<
2015.07.09 13:31:38 5: Cmd: >attr WEB room System<
2015.07.09 13:31:38 5: Cmd: >attr WEB sortRooms Light Cinema Residents Sensors System<
2015.07.09 13:31:38 5: Cmd: >define Logfile FileLog /opt/fhem/log/fhem2-%Y-%m.log fakelog<
2015.07.09 13:31:38 5: Cmd: >attr Logfile room System<
2015.07.09 13:31:38 5: Cmd: >define autocreate autocreate<
2015.07.09 13:31:38 5: Cmd: >attr autocreate room System<
2015.07.09 13:31:38 5: Cmd: >define eventTypes eventTypes demolog/eventTypes2.txt<
2015.07.09 13:31:38 2: eventTypes: loaded 5 events from demolog/eventTypes2.txt
2015.07.09 13:31:38 5: Cmd: >attr eventTypes room System<
2015.07.09 13:31:38 5: Cmd: >define myGPIO_11 RPI_GPIO 11<
2015.07.09 13:31:38 4: myGPIO_11: write access to file /sys/class/gpio/export, use it to export GPIO
2015.07.09 13:31:43 4: myGPIO_11: using gpio utility to export pin (first export failed)
2015.07.09 13:31:43 5: Cmd: >attr myGPIO_11 active_low yes<
2015.07.09 13:31:43 5: myGPIO_11, in fileaccess: active_low 1
2015.07.09 13:31:43 1: Can't open file: myGPIO_11, active_low
2015.07.09 13:31:43 5: myGPIO_11: set attr active_low: yes
2015.07.09 13:31:43 5: Cmd: >attr myGPIO_11 direction output<
2015.07.09 13:31:43 5: myGPIO_11: set attr direction: output vorerst NICHT
2015.07.09 13:31:43 5: Cmd: >attr myGPIO_11 poll_interval 5<
2015.07.09 13:31:43 5: Cmd: >attr myGPIO_11 restoreOnStartup last<
2015.07.09 13:31:43 5: Cmd: >attr myGPIO_11 room Gpio<
2015.07.09 13:31:43 1: Including /opt/fhem/fhem2.save
2015.07.09 13:31:43 5: Cmd: >setstate Logfile active<
2015.07.09 13:31:43 5: Cmd: >setstate autocreate active<
2015.07.09 13:31:43 5: Cmd: >setstate eventTypes active<
2015.07.09 13:31:43 5: Cmd: >setstate global <no definition><
2015.07.09 13:31:43 5: Cmd: >setstate myGPIO_11 off<
2015.07.09 13:31:43 4: myGPIO_11: STATE kann auf off wiederhergestellt werden 2015-07-09 13:31:43
2015.07.09 13:31:43 5: Cmd: >setstate myGPIO_11 2015-07-09 13:30:43 Pinlevel low<
2015.07.09 13:31:43 4: myGPIO_11: Pinlevel kann auf low wiederhergestellt werden 2015-07-09 13:30:43
2015.07.09 13:31:43 4: OUTPUT myGPIO_11: Pinlevel wiederhergestellt auf low
2015.07.09 13:31:43 5: Cmd: >setstate myGPIO_11 2015-07-09 13:30:43 state off<
2015.07.09 13:31:43 4: myGPIO_11: state kann auf off wiederhergestellt werden 2015-07-09 13:30:43
2015.07.09 13:31:43 4: OUTPUT myGPIO_11: state wiederhergestellt auf off
2015.07.09 13:31:43 5: myGPIO_11, in fileaccess: value 0
2015.07.09 13:31:43 5: myGPIO_11, in fileaccess: direction high
2015.07.09 13:31:43 4: myGPIO_11: direction ueber gpio utility einstellen
2015.07.09 13:31:43 4: myGPIO_11: direction gesetzt auf high
2015.07.09 13:31:43 4: OUTPUT myGPIO_11: STATE wiederhergestellt auf off (restoreOnStartup=last)
2015.07.09 13:31:43 5: Triggering global (1 changes)
2015.07.09 13:31:43 5: Notify loop for global REREADCFG
2015.07.09 13:31:43 5: myGPIO_11, in fileaccess: value
2015.07.09 13:31:43 5: Triggering myGPIO_11 (2 changes)
2015.07.09 13:31:43 5: Notify loop for myGPIO_11 Pinlevel: low
2015.07.09 13:31:43 4: HTTP FHEMWEB:172.27.254.21:63055 GET /fhem
2015.07.09 13:31:43 4: 935:FHEMWEB:172.27.254.21:63055: /fhem / RL:1049 / text/html; charset=UTF-8 / Content-Encoding: gzip
/
2015.07.09 13:31:43 4: HTTP FHEMWEB:172.27.254.21:63055 GET /fhem/pgm2/jquery-ui.min.css
2015.07.09 13:31:43 4: Connection accepted from FHEMWEB:172.27.254.21:63058
2015.07.09 13:31:43 4: HTTP FHEMWEB:172.27.254.21:63058 GET /fhem/pgm2/jquery.min.js
2015.07.09 13:31:43 4: HTTP FHEMWEB:172.27.254.21:63055 GET /fhem/pgm2/fhemweb_colorpicker.js
2015.07.09 13:31:43 4: Connection accepted from FHEMWEB:172.27.254.21:63059
2015.07.09 13:31:43 4: HTTP FHEMWEB:172.27.254.21:63058 GET /fhem/pgm2/fhemweb_readingsGroup.js
2015.07.09 13:31:43 4: HTTP FHEMWEB:172.27.254.21:63059 GET /fhem/pgm2/jquery-ui.min.js
2015.07.09 13:31:43 4: Connection accepted from FHEMWEB:172.27.254.21:63060
2015.07.09 13:31:43 4: Connection accepted from FHEMWEB:172.27.254.21:63061
2015.07.09 13:31:43 4: HTTP FHEMWEB:172.27.254.21:63060 GET /fhem/pgm2/fhemweb.js
2015.07.09 13:31:43 4: HTTP FHEMWEB:172.27.254.21:63055 GET /fhem/pgm2/fhemweb_readingsHistory.js
2015.07.09 13:31:43 4: HTTP FHEMWEB:172.27.254.21:63058 GET /fhem/pgm2/fhemweb_sortable.js
2015.07.09 13:31:43 4: Connection accepted from FHEMWEB:172.27.254.21:63062
2015.07.09 13:31:43 4: HTTP FHEMWEB:172.27.254.21:63060 GET /fhem/codemirror/fhem_codemirror.js
2015.07.09 13:31:43 4: HTTP FHEMWEB:172.27.254.21:63055 GET /fhem/pgm2/defaultCommon.css
2015.07.09 13:31:43 4: HTTP FHEMWEB:172.27.254.21:63061 GET /fhem/pgm2/fhemweb_fbcalllist.js
2015.07.09 13:31:43 4: HTTP FHEMWEB:172.27.254.21:63059 GET /fhem/pgm2/fhemweb_uzsu.js
2015.07.09 13:31:43 4: HTTP FHEMWEB:172.27.254.21:63062 GET /fhem/pgm2/fhemweb_knob.js
2015.07.09 13:31:43 4: HTTP FHEMWEB:172.27.254.21:63058 GET /fhem/icons/favicon
2015.07.09 13:31:43 4: HTTP FHEMWEB:172.27.254.21:63055 GET /fhem/pgm2/dashboard_style.css
2015.07.09 13:31:44 4: HTTP FHEMWEB:172.27.254.21:63055 GET /fhem/images/default/icoEverything.png
2015.07.09 13:31:44 4: HTTP FHEMWEB:172.27.254.21:63060 GET /fhem/images/default/fhemicon.png
2015.07.09 13:31:44 4: HTTP FHEMWEB:172.27.254.21:63055 GET /fhem?XHR=1&inform=type=status;filter=room=Light;since=1436441502;fmt=JSON×tamp=1436441504719
2015.07.09 13:31:48 4: Connection closed for FHEMWEB:172.27.254.21:63055: EOF
2015.07.09 13:31:48 4: HTTP FHEMWEB:172.27.254.21:63061 GET /fhem/FileLog_logWrapper?dev=Logfile&type=text&file=fhem2-2015-27.log


Jetzt kommen auch die Fehlermeldungen im Fhem
FHEM 5.8 , RPi 2 / CUL 3.2 / JEELINKnano - PCA301 / nanoCUL a-culfw 1.05.03
HMS: rm1002, s300th / FHT: fht8v-3, fht80tf
FS20: fs20st, fs20sm8, fs20s8m, fs20rsu, fs20rbm, fs20pce, fs20pcs, fs20ue1, fs20irp2, fs20dwt, fs20rpt-3, fs20str-2, fs20kse
IT: ITDM-250, ITLS-16, ITW-852, IT-1500
G-Data Milight

klausw

#9
Jetzt tritt es auch auf.
Beim rereadcfg wird scheinbar ein undefine der Module ausgeführt.
also das komplette Verzeichnis gpio11 entfernt
das anlegen klappt anschließend wieder, da für export passende Rechte gesetzt sind
allerdings wird gpio11 mit root:root angelegt
das merkt das Modul rpi_gpio und wiederholt den export unter Zuhilfenahme des gpio utilitys von wiringpi
dieses vergibt allerdings nur Schreibrechte für edge und value

Ich habe derzeit keine Idee wie ich dieses Problem lösen kann.
Die Rechte für /sys/class/gpio/ werden vom gpio Kernelmodul gesetzt. Ich kann aus FHEM natürlich nur auf Dateien zugreifen, für die ich auch die Rechte habe.
Wenn du rereadcfg nicht verwendest sollte es aber erstmal nutzbar sein, oder?

evtl. könntest du noch /sys/devices/virtual/gpio/ in die udev Rules reinbauen, um die Rechte automatisch anzupassen
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

Atze

Zitatevtl. könntest du noch /sys/devices/virtual/gpio/ in die udev Rules reinbauen, um die Rechte automatisch anzupassen
Ok, die rechte bleiben jetzt bei fhem:dialout und active_low ist auch beschreibbar. Im Log werden keine Fehler angezeigt.

Aaaaber on bleibt high und off ist low

Wenn ich im fhem das attr myGPIO_11 active_low auf yes/no umstelle, habe ich EINMAL den Status richtig.
Mit einem on/off ist alles wieder vorbei.......

FHEM 5.8 , RPi 2 / CUL 3.2 / JEELINKnano - PCA301 / nanoCUL a-culfw 1.05.03
HMS: rm1002, s300th / FHT: fht8v-3, fht80tf
FS20: fs20st, fs20sm8, fs20s8m, fs20rsu, fs20rbm, fs20pce, fs20pcs, fs20ue1, fs20irp2, fs20dwt, fs20rpt-3, fs20str-2, fs20kse
IT: ITDM-250, ITLS-16, ITW-852, IT-1500
G-Data Milight

klausw

was steht denn in den Dateien value und active_low drin?
werden die richtig beschrieben?
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

Atze

Schreiben funktioniert. Je nachdem was ich auswähle, wird 0 oder 1 geschrieben.
FHEM 5.8 , RPi 2 / CUL 3.2 / JEELINKnano - PCA301 / nanoCUL a-culfw 1.05.03
HMS: rm1002, s300th / FHT: fht8v-3, fht80tf
FS20: fs20st, fs20sm8, fs20s8m, fs20rsu, fs20rbm, fs20pce, fs20pcs, fs20ue1, fs20irp2, fs20dwt, fs20rpt-3, fs20str-2, fs20kse
IT: ITDM-250, ITLS-16, ITW-852, IT-1500
G-Data Milight

Atze

Hab jetzt mal testweise auf eine andere Karte neu installiert:

Linux fhem 3.18.11-v7+ #781 SMP PREEMPT Tue Apr 21 18:07:59 BST 2015 armv7l GNU/Linux

Gleiches Problem, active_low greift nicht.

Kann der Pi2 ne Macke haben ??
FHEM 5.8 , RPi 2 / CUL 3.2 / JEELINKnano - PCA301 / nanoCUL a-culfw 1.05.03
HMS: rm1002, s300th / FHT: fht8v-3, fht80tf
FS20: fs20st, fs20sm8, fs20s8m, fs20rsu, fs20rbm, fs20pce, fs20pcs, fs20ue1, fs20irp2, fs20dwt, fs20rpt-3, fs20str-2, fs20kse
IT: ITDM-250, ITLS-16, ITW-852, IT-1500
G-Data Milight

Atze

Au man..   >:(

Wenn ich ein "gpio readall" absetze, sehe ich das alles funktioniert. Bei wheezy und auch bei jessie.

Warum auch immer wird im Fhem das reading aber falsch angezeigt. (Oder hab ich was vollkommen falsch verstanden ?)

(http://fs2.directupload.net/images/150710/zyg9abfn.jpg)
FHEM 5.8 , RPi 2 / CUL 3.2 / JEELINKnano - PCA301 / nanoCUL a-culfw 1.05.03
HMS: rm1002, s300th / FHT: fht8v-3, fht80tf
FS20: fs20st, fs20sm8, fs20s8m, fs20rsu, fs20rbm, fs20pce, fs20pcs, fs20ue1, fs20irp2, fs20dwt, fs20rpt-3, fs20str-2, fs20kse
IT: ITDM-250, ITLS-16, ITW-852, IT-1500
G-Data Milight