HomeMatic USB Konfigurations-Adapter (HM-CFG-USB) in Fhem nutzen

Begonnen von mgernoth, 30 Mai 2013, 17:06:32

Vorheriges Thema - Nächstes Thema

boeho

Hallo, (ein Beginner braucht Eure Hilfe)
ich will FHEM auf einem QNAP-NAS nutzen (Linux NAS000509 3.4.6 #1 Wed Apr 8 03:18:27 CST 2015 armv5tel ).
Ich habe es schon installiert und brauche nun den Stick um mit meinen Geräten zu kommunizieren.
Habe von M. Gernoth die Beschreibung versucht umzusetzen:
Bei Install prerequisites: apt-get install libusb-1.0-0-dev make gcc
-apt-get gibt es bei mir nicht
-libusb-1.0 gibt es hier auch nicht nur

[/opt/etc/ipkg] # ipkg install libusb
Installing libusb (0.1.12-2) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/libusb_0.1.12-2_arm.ipk
Configuring libusb
Successfully terminated.

Muss man im make die Namen ändern??
Wie kann ich die letzte version von libusb (hier ​libusb-1.0.9 (2012-04-20)) nutzen? Auch hier ist ja ein anderer Name.
meine Error-Meldungen waren:
[/tmp/FHEM/hmcfgusb-HEAD-325ed70] # make
gcc -MMD -O2 -Wall -I/opt/local/include -g   -c -o hmland.o hmland.c
hmland.c:41:31: warning: libusb-1.0/libusb.h: No such file or directory
In file included from hmland.c:45:
hmcfgusb.h:27: error: expected specifier-qualifier-list before 'libusb_device_handle'
hmland.c: In function 'print_timestamp':
hmland.c:87: warning: implicit declaration of function 'gettimeofday'
hmland.c: In function 'comm':
hmland.c:493: error: 'struct hmcfgusb_dev' has no member named 'bootloader'
hmland.c:520: error: 'struct hmcfgusb_dev' has no member named 'opened_at'
hmland.c:585: error: 'struct hmcfgusb_dev' has no member named 'opened_at'
hmland.c:588: error: 'struct hmcfgusb_dev' has no member named 'opened_at'
make: *** [hmland.o] Error 1

Danke schon mal
boeho

volschin

Intel NUC+Ubuntu 22.04+Docker+FHEM6
HomeMatic: HM-MOD-RPI-PCB+HM-USB-CFG2+hmland+diverse, HUE: Hue-Bridge, RaspBee+deCONZ+diverse
Amzn Dash-Buttons, Siro Rollos
4xRPi, 4xCO20, OWL+USB, HarmonyHub, FRITZ!Box 7590, Echo Dots+Show8, Logi Circle 2, HomeBridge
TIG Stack (Telegraf, InfluxDB, Grafana)

boeho

da bekomme ich:
ipkg install libusb-1.0-0-dev
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package libusb-1.0-0-dev.
Check the spelling or perhaps run 'ipkg update'

volschin

Auf alle Fälle dürftest Du eine -dev brauchen, sonst fehlen Dir notwendige Dateien.
Intel NUC+Ubuntu 22.04+Docker+FHEM6
HomeMatic: HM-MOD-RPI-PCB+HM-USB-CFG2+hmland+diverse, HUE: Hue-Bridge, RaspBee+deCONZ+diverse
Amzn Dash-Buttons, Siro Rollos
4xRPi, 4xCO20, OWL+USB, HarmonyHub, FRITZ!Box 7590, Echo Dots+Show8, Logi Circle 2, HomeBridge
TIG Stack (Telegraf, InfluxDB, Grafana)

Motivierte linke Hände

Hallo,

ich habe hier die aktuelle Version von hmland - gerade nochmal aus dem git geholt, 0.099-git, auf einem Raspberry Pi. HMUSB hängt an diesem Raspberry(192.168.1.29), genutzt werden soll der HMUSB von der fhem Instanz in einer Ubuntu VM (192.168.1.107). (Das klappt mit angeschlossenen HMLANs ohne Probleme.)

Ich habe hier im fhem LOG im Minutentakt folgende Einträge:

2015.06.08 09:43:21 1: 192.168.1.29:1000 reappeared (HMUSB)
2015.06.08 09:43:21 1: HMLAN_Parse: HMUSB new condition init
2015.06.08 09:43:50 1: HMLAN_Parse: HMUSB new condition timeout
2015.06.08 09:43:50 1: 192.168.1.29:1000 disconnected, waiting to reappear (HMUSB)
2015.06.08 09:43:50 1: HMLAN_Parse: HMUSB new condition disconnected
2015.06.08 09:43:50 1: 192.168.1.29:1000 reappeared (HMUSB)
2015.06.08 09:43:50 1: HMLAN_Parse: HMUSB new condition init
2015.06.08 09:43:54 1: 192.168.1.29:1000 disconnected, waiting to reappear (HMUSB)
2015.06.08 09:43:54 1: HMLAN_Parse: HMUSB new condition disconnected


hmland -D -p 1000 ergibt zugehörig:

2015-06-08 09:43:49.956737: LAN > K

USB < 0x0000: 4b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   K...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
usb-transfer took 1ms!
2015-06-08 09:43:50.960400: Connection to 192.168.1.107 closed!
2015-06-08 09:43:51.960693: Client 192.168.1.107 connected!

USB > 0x0000: 49 00 02 02 00 55 53 42 2d 49 46 03 c7 0a 4c 45   I....USB-IF...LE
USB > 0x0010: 51 30 36 35 39 33 34 34 2c c5 df cd 20 07 00 62   Q0659344,... ..b
USB > 0x0020: c0 32 00 10 05 00 00 00 00 00 00 00 00 00 00 00   .2..............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................

USB > 0x0000: 49 00 02 02 00 55 53 42 2d 49 46 03 c7 0a 4c 45   I....USB-IF...LE
USB > 0x0010: 51 30 36 35 39 33 34 34 2c c5 df cd 20 07 00 62   Q0659344,... ..b
USB > 0x0020: c0 32 00 10 05 00 00 00 00 00 00 00 00 00 00 00   .2..............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................

USB > 0x0000: 49 00 02 02 00 55 53 42 2d 49 46 03 c7 0a 4c 45   I....USB-IF...LE
USB > 0x0010: 51 30 36 35 39 33 34 34 2c c5 df cd 20 07 00 62   Q0659344,... ..b
USB > 0x0020: c0 32 00 10 05 00 00 00 00 00 00 00 00 00 00 00   .2..............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
Interrupt transfer not completed: Unknown error code 1 / 0x01!

USB < 0x0000: 4b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   K...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
usb-transfer took 52ms!
2015-06-08 09:43:52.104576: LAN > ACD2007

USB < 0x0000: 41 cd 20 07 00 00 00 00 00 00 00 00 00 00 00 00   A. .............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
usb-transfer took 51ms!
2015-06-08 09:43:52.168481: LAN > C

USB < 0x0000: 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   C...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
usb-transfer took more than 100ms (113ms), this may lead to timing problems!
2015-06-08 09:43:52.296281: LAN > +35C264,00,01,1E

USB < 0x0000: 2b 35 c2 64 00 01 1e 00 00 00 00 00 00 00 00 00   +5.d............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
usb-transfer took 58ms!
2015-06-08 09:43:52.360283: LAN > +35C257,00,01,1E

USB < 0x0000: 2b 35 c2 57 00 01 1e 00 00 00 00 00 00 00 00 00   +5.W............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
usb-transfer took 53ms!
2015-06-08 09:43:52.424168: LAN > +35C07D,00,01,1E

USB < 0x0000: 2b 35 c0 7d 00 01 1e 00 00 00 00 00 00 00 00 00   +5.}............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
usb-transfer took 62ms!
2015-06-08 09:43:52.488132: LAN > +35C28E,00,01,1E

USB < 0x0000: 2b 35 c2 8e 00 01 1e 00 00 00 00 00 00 00 00 00   +5..............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
Can't send data: Input/output error
2015-06-08 09:43:52.520137: LAN > +2AE6F4,00,01,00

USB < 0x0000: 2b 2a e6 f4 00 01 00 00 00 00 00 00 00 00 00 00   +*..............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
usb-transfer took more than 100ms (126ms), this may lead to timing problems!
2015-06-08 09:43:52.648320: LAN > +35E151,00,01,1E

USB < 0x0000: 2b 35 e1 51 00 01 1e 00 00 00 00 00 00 00 00 00   +5.Q............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
usb-transfer took 57ms!
2015-06-08 09:43:52.712276: LAN > +35E264,00,01,1E

USB < 0x0000: 2b 35 e2 64 00 01 1e 00 00 00 00 00 00 00 00 00   +5.d............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
usb-transfer took 56ms!
2015-06-08 09:43:52.776270: LAN > +35BF3A,00,01,1E

USB < 0x0000: 2b 35 bf 3a 00 01 1e 00 00 00 00 00 00 00 00 00   +5.:............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
usb-transfer took 56ms!
2015-06-08 09:43:52.840298: LAN > +35E144,00,01,1E

USB < 0x0000: 2b 35 e1 44 00 01 1e 00 00 00 00 00 00 00 00 00   +5.D............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
Can't send data: Input/output error
2015-06-08 09:43:52.872387: LAN > +301A5F,00,01,00

USB < 0x0000: 2b 30 1a 5f 00 01 00 00 00 00 00 00 00 00 00 00   +0._............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
usb-transfer took more than 100ms (122ms), this may lead to timing problems!
2015-06-08 09:43:53.000344: LAN > +33B264,00,01,00

USB < 0x0000: 2b 33 b2 64 00 01 00 00 00 00 00 00 00 00 00 00   +3.d............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
usb-transfer took 60ms!
2015-06-08 09:43:53.064224: LAN > +33B25D,00,01,00

USB < 0x0000: 2b 33 b2 5d 00 01 00 00 00 00 00 00 00 00 00 00   +3.]............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
usb-transfer took 62ms!
2015-06-08 09:43:53.128227: LAN > +35E261,00,01,1E

USB < 0x0000: 2b 35 e2 61 00 01 1e 00 00 00 00 00 00 00 00 00   +5.a............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
usb-transfer took 62ms!
2015-06-08 09:43:53.192333: LAN > +35C1DE,00,01,1E

USB < 0x0000: 2b 35 c1 de 00 01 1e 00 00 00 00 00 00 00 00 00   +5..............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
usb-transfer took more than 100ms (118ms), this may lead to timing problems!
2015-06-08 09:43:53.320398: LAN > +301929,00,01,00

USB < 0x0000: 2b 30 19 29 00 01 00 00 00 00 00 00 00 00 00 00   +0.)............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
usb-transfer took 57ms!
2015-06-08 09:43:53.384382: LAN > +35E26E,00,01,1E

USB < 0x0000: 2b 35 e2 6e 00 01 1e 00 00 00 00 00 00 00 00 00   +5.n............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
usb-transfer took 55ms!
2015-06-08 09:43:53.448381: LAN > +2E59EB,00,01,00

USB < 0x0000: 2b 2e 59 eb 00 01 00 00 00 00 00 00 00 00 00 00   +.Y.............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
usb-transfer took 56ms!
2015-06-08 09:43:53.512406: LAN > +35E0BD,00,01,1E

USB < 0x0000: 2b 35 e0 bd 00 01 1e 00 00 00 00 00 00 00 00 00   +5..............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
Can't send data: Input/output error
2015-06-08 09:43:53.544412: LAN > +35E103,00,01,1E

USB < 0x0000: 2b 35 e1 03 00 01 1e 00 00 00 00 00 00 00 00 00   +5..............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
usb-transfer took more than 100ms (122ms), this may lead to timing problems!
2015-06-08 09:43:53.672443: LAN > Y01,02,747220e654d6046e4b9d6190d604ba54

USB < 0x0000: 59 01 02 10 74 72 20 e6 54 d6 04 6e 4b 9d 61 90   Y...tr .T..nK.a.
USB < 0x0010: d6 04 ba 54 00 00 00 00 00 00 00 00 00 00 00 00   ...T............
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
usb-transfer took 55ms!
2015-06-08 09:43:53.736408: LAN > Y02,00,

USB < 0x0000: 59 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00   Y...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
usb-transfer took 57ms!
2015-06-08 09:43:53.800400: LAN > Y03,00,

USB < 0x0000: 59 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00   Y...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
usb-transfer took 60ms!
2015-06-08 09:43:53.864623: LAN > T1D080436,04,00,00000000

USB < 0x0000: 54 1d 08 04 36 04 00 00 00 00 00 00 00 00 00 00   T...6...........
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
Can't send data: Input/output error
2015-06-08 09:43:53.896444: LAN > SD220240E,00,00000000,01,D220240E,998112CD2007000000

USB < 0x0000: 53 d2 20 24 0e 00 00 00 00 00 01 d2 20 24 0e 09   S. $........ $..
USB < 0x0010: 99 81 12 cd 20 07 00 00 00 00 00 00 00 00 00 00   .... ...........
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
usb-transfer took more than 100ms (118ms), this may lead to timing problems!


Wodran könnte/sollte ich mal drehen?

Danke für hilfreiche Tipps,
Christian
FHEM 6 in einer KVM VM mit Ubuntu
HM-CFG-USB2, 2xHM-CFG-HMLAN, HM-HMUARTLGW mit 100+ HomeMatic Devices, Geofencing, Fritzbox, Unifi, HUE, Harmony-Hub, Denon-Receiver-Modul, Calendar, GardenaSmartDevice, Shelly, MQTT (zigbee2mqtt, Tasmota und Shelly) und ein wenig 1Wire.

mgernoth

#710
Hallo,

Zitat von: Motivierte linke Hände am 08 Juni 2015, 09:47:48

2015-06-08 09:43:53.384382: LAN > +35E26E,00,01,1E


Fhem gibt hier als Geraeteschluessel den Schluessel mit Index 30 an, den Du wahrscheinlich nicht gesetzt hast. Deshalb crashed der USB-Stick. Sind wohl doch die AES-Aenderungen von heute...

EDIT: Nein, das ist es nicht. Das Kommando ist schon ok...

EDIT2: Es ist das Sendekommando:

2015-06-08 09:43:53.896444: LAN > SD220240E,00,00000000,01,D220240E,998112CD2007000000

Hier versucht Fhem ein Paket mit der Länge 0x99 Bytes zu senden, das führt dann im USB-Stick wohl zu einem ungültigen Speicherzugriff...

EDIT3: Nein, das ist es auch nicht. Hier wird ja kein RAW-Frame mit Länge übergeben sondern nur der Inhalt des Frames.

EDIT4: Es werden zuviele Keyslots gesetzt (mehr als vorhanden sind). Siehe http://forum.fhem.de/index.php/topic,37940.msg301836.html#msg301836

Gruss
  Michael

moonsorrox

ich habe mal eine Frage zum USB Stick, ich beobachte es die ganze Zeit das dieser sich ewig am "connecten" und "disconnected" ist.
Ich sehe das gerade durch Zufall weil ich auf das Web Interface schaue, dadurch hat er einige devices auf IOerr.
Wodurch kommt das jetzt..?

Das ganze Logfile steht davon voll
2015.06.08 18:45:06 1: HMLAN_Parse: HMUSB new condition init
2015.06.08 18:45:06 1: 127.0.0.1:1234 reappeared (HMUSB)
2015.06.08 18:45:01 1: HMLAN_Parse: HMUSB new condition disconnected
2015.06.08 18:45:01 1: 127.0.0.1:1234 disconnected, waiting to reappear (HMUSB)
2015.06.08 18:45:00 3: checkGDS: Keine Warnmeldung für die gesuchte Region vorhanden.
2015.06.08 18:44:53 1: HMLAN_Parse: HMUSB new condition init
2015.06.08 18:44:53 1: 127.0.0.1:1234 reappeared (HMUSB)
2015.06.08 18:44:47 1: HMLAN_Parse: HMUSB new condition disconnected
2015.06.08 18:44:47 1: 127.0.0.1:1234 disconnected, waiting to reappear (HMUSB)
2015.06.08 18:44:36 1: HMLAN_Parse: HMUSB new condition init
2015.06.08 18:44:36 1: 127.0.0.1:1234 reappeared (HMUSB)
2015.06.08 18:44:31 1: HMLAN_Parse: HMUSB new condition disconnected
2015.06.08 18:44:31 1: 127.0.0.1:1234 disconnected, waiting to reappear (HMUSB)
2015.06.08 18:44:23 1: HMLAN_Parse: HMUSB new condition init
2015.06.08 18:44:23 1: 127.0.0.1:1234 reappeared (HMUSB)
2015.06.08 18:44:20 1: HMLAN_Parse: HMUSB new condition disconnected
2015.06.08 18:44:20 1: 127.0.0.1:1234 disconnected, waiting to reappear (HMUSB)
2015.06.08 18:44:12 1: HMLAN_Parse: HMUSB new condition init
2015.06.08 18:44:12 1: 127.0.0.1:1234 reappeared (HMUSB)
2015.06.08 18:44:07 1: HMLAN_Parse: HMUSB new condition disconnected
2015.06.08 18:44:07 1: 127.0.0.1:1234 disconnected, waiting to reappear (HMUSB)
2015.06.08 18:43:59 1: HMLAN_Parse: HMUSB new condition init
2015.06.08 18:43:59 1: 127.0.0.1:1234 reappeared (HMUSB)
2015.06.08 18:43:54 1: HMLAN_Parse: HMUSB new condition disconnected
2015.06.08 18:43:54 1: 127.0.0.1:1234 disconnected, waiting to reappear (HMUSB)
2015.06.08 18:43:46 1: HMLAN_Parse: HMUSB new condition init
2015.06.08 18:43:46 1: 127.0.0.1:1234 reappeared (HMUSB)
2015.06.08 18:43:44 1: HMLAN_Parse: HMUSB new condition disconnected
2015.06.08 18:43:44 1: 127.0.0.1:1234 disconnected, waiting to reappear (HMUSB)
2015.06.08 18:43:43 1: HMLAN_Parse: HMUSB new condition init
2015.06.08 18:43:43 1: 127.0.0.1:1234 reappeared (HMUSB)
Intel-NUC i5: FHEM-Server 6.1 :: Perl v5.18.2

Homematic: HM-USB-CFG2,HM-CFG-LAN Adapter, HM-LC-BL1-FM, HM-LC-Sw1PBU-FM, HM-LC-Sw1-PI-2, HM-WDS10-TH-O, HM-CC-TC, HM-LC-SW2-FM

Gigafix

Hallo moonsorrox

Hast Du heute ein Update gemacht? Wenn ja, dann tausche mal die 00_HMLAN.pm aus - ich hatte das Problem mit HMLAN - nach dem Tausch und Restart ging es dann - Bei Dir ist es allerdings der HMUSB - eventuell hilft es trotzdem.

Gruß
Gigafix
VM Synology DS918 | CubieTruck |2x HMLAN | HMUSB | 3x HMWLAN | CCU2 | MAX-Cube | nanoCUL | ZWDongle |

Motivierte linke Hände

Hi Michael,

Zitat von: mgernoth am 08 Juni 2015, 09:54:08
EDIT4: Es werden zuviele Keyslots gesetzt (mehr als vorhanden sind). Siehe http://forum.fhem.de/index.php/topic,37940.msg301836.html#msg301836

Danke, dass Du Dir das anschaust. Ich habe heute noch kein fhem-Update gemacht (meine CUL_HM.pm ist noch vom 3. Mai), und wenn ich mir den verlinkten Thread so anschaue, sollte ich das wohl auch besser nicht.  :) D.h. das Problem müsste hier ein anderes sein...

Ich habe noch 2 "echte" HMLAN hier, die aktuell noch ohne Fehlermeldungen laufen. Die Fehler oben kommen nur bei dem über hmland angeschlossenen HMUSB.

Update von fhem mache ich, wenn das verlinkte Problem gelöst ist.

Gruß, Christian
FHEM 6 in einer KVM VM mit Ubuntu
HM-CFG-USB2, 2xHM-CFG-HMLAN, HM-HMUARTLGW mit 100+ HomeMatic Devices, Geofencing, Fritzbox, Unifi, HUE, Harmony-Hub, Denon-Receiver-Modul, Calendar, GardenaSmartDevice, Shelly, MQTT (zigbee2mqtt, Tasmota und Shelly) und ein wenig 1Wire.

mgernoth

Hi,

Zitat von: moonsorrox am 08 Juni 2015, 18:46:12
ich habe mal eine Frage zum USB Stick, ich beobachte es die ganze Zeit das dieser sich ewig am "connecten" und "disconnected" ist.

Das ist dann wahrscheinlich der Bug im hmland, der mit grossen Paketen (bzw. Kommandos die nicht auf einmal gelesen wurden) umgehen konnte und die Teilkommandos an den Stick gesendet hat, der dies normalerweise mit einem Absturz quittiert...
Ist ab Version 0.099-git gelöst. Bitte mach ein Update des hmland (git pull und make), dann sollte es weg sein.
Ich habe vor, demnächst die 0.100 als echte Version zu freizugeben...

Gruß
  Michael

Ralli

Hier die für eine Fritzbox mit Firmware 6.20 und aufwärts kompilierten Binaries.
Gruß,
Ralli

Proxmox 8.2 Cluster mit HP ED800G2i7, Intel NUC11TNHi7+NUC7i5BNH, virtualisiertes fhem 6.3 dev, virtualisierte RaspberryMatic (3.75.7.20240420) mit HB-RF-ETH 1.3.0 / RPI-RF-MOD, HM-LAN-GW (1.1.5) und HMW-GW, FRITZBOX 7490 (07.57), FBDECT, Siri und Alexa

moonsorrox

#716
Zitat von: Gigafix am 08 Juni 2015, 20:20:03
Hallo moonsorrox

Hast Du heute ein Update gemacht?

ja leider, aber das tauschen hat nichts gebracht... Ich habe jetzt mein HMLAN dran weil nichts mehr lief und den USB Stick am Testsystem auch hier spinnt er rum

Zitat von: mgernoth am 08 Juni 2015, 21:07:47
Bitte mach ein Update des hmland (git pull und make), dann sollte es weg sein.
du meinst sicher mit putty nach /opt/hmcfgusb gehen und dann folgendes Richtig..?
root@cubietruck:/opt/hmcfgusb# git pull
Already up-to-date.
root@cubietruck:/opt/hmcfgusb# make
make: Nothing to be done for 'all'.

da sagt er mir aber obiges
Intel-NUC i5: FHEM-Server 6.1 :: Perl v5.18.2

Homematic: HM-USB-CFG2,HM-CFG-LAN Adapter, HM-LC-BL1-FM, HM-LC-Sw1PBU-FM, HM-LC-Sw1-PI-2, HM-WDS10-TH-O, HM-CC-TC, HM-LC-SW2-FM

mgernoth

#717
Hi,

Zitat von: Motivierte linke Hände am 08 Juni 2015, 20:36:03
Danke, dass Du Dir das anschaust. Ich habe heute noch kein fhem-Update gemacht (meine CUL_HM.pm ist noch vom 3. Mai), und wenn ich mir den verlinkten Thread so anschaue, sollte ich das wohl auch besser nicht.  :) D.h. das Problem müsste hier ein anderes sein...

Argh, wollte eigentlich Dir auch antworten, bitte probier auch Du ein update des hmland.

Zitat von: moonsorrox am 08 Juni 2015, 21:56:15
ja leider, aber das tauschen hat nichts gebracht... Ich habe jetzt mein HMLAN dran weil nichts mehr lief und den USB Stick am Testsystem auch hier spinnt er rum

Was meinst Du mit tauschen? Die 00_HMLAN.pm aendern und fhem restarten?
Wenn Du danach noch diese Probleme hast, kannst Du bitte mal ein log des hmland erstellen? (-v beim Aufruf mit angeben). Solltest Du einen Key gesetzt haben, den am besten vor dem posten loeschen (letzter Parameter des Y-Kommandos im Log).

Zitat
du meinst sicher mit putty nach /opt/hmcfgusb gehen und dann folgendes Richtig..?
root@cubietruck:/opt/hmcfgusb# git pull
Already up-to-date.
root@cubietruck:/opt/hmcfgusb# make
make: Nothing to be done for 'all'.

Ok, dann ist es nicht dieser hmland-Bug bei Dir...

Gruss
  Michael

moonsorrox

Zitat von: mgernoth am 08 Juni 2015, 22:09:40
Was meinst Du mit tauschen? Die 00_HMLAN.pm aendern und fhem restarten?
Wenn Du danach noch diese Probleme hast, kannst Du bitte mal ein log des hmland erstellen? (-v beim Aufruf mit angeben). Solltest Du einen Key gesetzt haben, den am besten vor dem posten loeschen (letzter Parameter des Y-Kommandos im Log).

Ok, dann ist es nicht dieser hmland-Bug bei Dir...

Gruss
  Michael

wenn ich mit putty drauf bin rennt er sich auch zu Tode und zeigt folgendes immer schön hinter einander.
2015-06-08 22:18:13.980958: Connection to 127.0.0.1 closed!
2015-06-08 22:18:14.981279: Client 127.0.0.1 connected!
Can't detach kernel driver: Invalid parameter
Can't find/open hmcfgusb!
Can't initialize HM-CFG-USB!
2015-06-08 22:18:14.982682: Connection to 127.0.0.1 closed!
2015-06-08 22:18:15.983165: Client 127.0.0.1 connected!
Can't detach kernel driver: Invalid parameter
Can't find/open hmcfgusb!
Can't initialize HM-CFG-USB!
2015-06-08 22:18:15.984560: Connection to 127.0.0.1 closed!
2015-06-08 22:18:16.984988: Client 127.0.0.1 connected!
Can't detach kernel driver: Invalid parameter
Can't find/open hmcfgusb!
Can't initialize HM-CFG-USB!
2015-06-08 22:18:16.985965: Connection to 127.0.0.1 closed!
2015-06-08 22:18:17.986299: Client 127.0.0.1 connected!
Can't detach kernel driver: Invalid parameter
Can't find/open hmcfgusb!
Can't initialize HM-CFG-USB!
2015-06-08 22:18:17.987588: Connection to 127.0.0.1 closed!
2015-06-08 22:18:18.988004: Client 127.0.0.1 connected!
Can't detach kernel driver: Invalid parameter


ich muss dazu sagen ich habe heute ein Update auf Debian Ebene gemacht und eben auch in Fhem, obwohl ich das aktuelle Jessie drauf habe hat er mir ein Paket geupdatet, ich weiß leider nicht mher welches...!
Intel-NUC i5: FHEM-Server 6.1 :: Perl v5.18.2

Homematic: HM-USB-CFG2,HM-CFG-LAN Adapter, HM-LC-BL1-FM, HM-LC-Sw1PBU-FM, HM-LC-Sw1-PI-2, HM-WDS10-TH-O, HM-CC-TC, HM-LC-SW2-FM

mgernoth

Hi,

Zitat von: moonsorrox am 08 Juni 2015, 22:22:25
wenn ich mit putty drauf bin rennt er sich auch zu Tode und zeigt folgendes immer schön hinter einander.

Can't detach kernel driver: Invalid parameter


Hmm, das verstehe ich nicht. So wie libusb_detach_kernel_driver() aufgerufen wird, kann es diesen Fehler eigentlich nicht zuruecklieferen.
Kannst Du mal den hmland neu kompilieren (make clean all), evtl. ist er mit einer alten libusb-Version gebaut und es gab ein inkompatibles Update, das ist aber unwahrscheinlich...

Zitat
ich muss dazu sagen ich habe heute ein Update auf Debian Ebene gemacht und eben auch in Fhem, obwohl ich das aktuelle Jessie drauf habe hat er mir ein Paket geupdatet, ich weiß leider nicht mher welches...!

Sollte in /var/log/dpkg.log stehen.

Gruss
  Michael