libusb couldn't open USB device /proc/bus/usb/002/007: Permission denied. libusb requires write access to USB device nodes. dfu-programmer: no device present.
Fhem läuft auf einer Fritzbox 7390 mit Labor. Testweise habe ich Fhem komplett nochmals neu auf einer jungfreulichen Fritzbox aus dem aktuellen Image von Rudi installiert. Hier tritt das gleiche Problem bei dem Flashen auf.
Weiss jemand Rat?
2012.11.14 09:19:29 1: Including fhem.cfg 2012.11.14 09:19:31 3: telnetPort: port 7072 opened 2012.11.14 09:19:33 3: WEB: port 8083 opened 2012.11.14 09:19:33 3: WEBphone: port 8084 opened 2012.11.14 09:19:34 3: WEBtablet: port 8085 opened 2012.11.14 09:19:34 1: usb create starting 2012.11.14 09:19:35 1: CULflash (dfu-programmer atmega32u4 erase && dfu-programmer atmega32u4 flash ./FHEM/CUL_V3.hex && dfu-programmer atmega32u4 start) 2>&1 2012.11.14 09:19:35 1: CULflash libusb couldn't open USB device /proc/bus/usb/001/004: Permission denied. libusb requires write access to USB device nodes. dfu-programmer: no device present. 2012.11.14 09:19:40 1: usb create end 2012.11.14 09:19:40 0: Server started (version Fhem 5.3 (DEVELOPMENT), $Id: fhem.pl 1996 2012-10-20 07:11:56Z rudolfkoenig $, pid 1142)
Ist ein Fehler bzw. Folge der Aenderung, dass fhem nicht mehr als root sondern
als Benutzer fhem (aka boxusr80) gestartet wird.
Workaround:
telnet fritz.box
cd /var/InternerSpeicher/fhem
chown root dfu-programmer
chmod u+s dfu-programmer
Diese Kommandos habe ich ins startfhem eingebaut.
2012.11.14 20:40:20 1: update 283 file(s) have been updated. 2012.11.14 20:40:20 1: update A new version of fhem.pl was installed, 'shutdown restart' is required! 2012.11.14 20:40:21 1: update moving ./FHEM/99_CULflash.pm to ./unused/ 2012.11.14 20:40:21 1: update moving ./FHEM/99_JsonList.pm to ./unused/ 2012.11.14 20:40:21 1: update moving ./FHEM/99_backup.pm to ./unused/ 2012.11.14 20:40:21 1: update moving ./FHEM/99_update.pm to ./unused/werde morgen-früh mehr wissen / mich noch mal melden
______________________________________________________________
2012.11.15 08:58:32 1: CULflash (dfu-programmer atmega32u4 erase && dfu-programmer atmega32u4 flash ./FHEM/CUL_V3.hex && dfu-programmer atmega32u4 start) 2>&1 2012.11.15 08:58:35 1: CULflash Validating... 17572 bytes used (61.29%)
2012.11.15 09:06:00 1: usb create starting 2012.11.15 09:06:01 3: Opening CUL device /dev/ttyACM0 2012.11.15 09:06:01 3: Setting CUL baudrate to 9600 2012.11.15 09:06:01 3: CUL device opened 2012.11.15 09:06:01 1: define CUL_0 CUL /dev/ttyACM0@9600 1034 2012.11.15 09:06:01 3: Opening CUL_0 device /dev/ttyACM0 2012.11.15 09:06:01 3: Setting CUL_0 baudrate to 9600 2012.11.15 09:06:01 3: CUL_0 device opened 2012.11.15 09:06:02 3: CUL_0: Possible commands: BCFiAZEGMRTVWXefmltux 2012.11.15 09:06:02 2: Setting CUL fhtid from FFFF to 1034 2012.11.15 09:06:02 1: usb create end
D A N K E für die Hilfe blaubaer