Hallo,
vielen Dank Marc, für die neuen Binaries. Trotzdem habe ich leider keine Änderung. Habe heute versucht deine Fragen zu beantworten, wie folgt:
Hängt der Stick direkt an der FB oder an einem HUB ? Er hängt direkt an der FB.
Wie sehen in letzterem Fall die USB Timings aus ? Eigentlich sehr gut, immer <100ms, liegen meist so zwischen 40ms und 70ms
Was steht im Logfile des Sticks ? Weiter unten sind einige Auszüge.
Statt die FB zu booten, versuche mal den Stick abzuziehen und nach 30 Sekunden wieder einstecken Brachte bisher keinen Erfolg.
Stick und hmland testweise am PC laufen lassen, in FHEM einbinden, und prüfen, ob der Reset hier erfolgreich ist Dafür brauche ich noch etwas Zeit...
Ich habe verschiedenes heute mal probiert:
*Reboot auslösen mit -r 09:55, wie auch mit { HMLAN_SimpleWrite($defs{hmusb},"B",undef) } brachte Beides das gleiche Ergebnis, das die LED am Stick blinkt (ca. 0,5/1s) und nichts mehr geht. Ab- und anstecken brachte keine Änderung.
mit -r 09:55
hmland
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 > 0x0000: 48 09 48 4d 2d 55 53 42 2d 49 46 03 bc 0a 4a 45 H.HM-USB-IF...JE
USB > 0x0010: 51 30 35 33 35 33 32 37 1d b1 fc 42 42 42 00 07 Q0535327...BBB..
USB > 0x0020: 22 11 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!
USB < 0x0000: 42 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 B...............
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!
USB < 0x0000: 42 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 B...............
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 ................
Interrupt transfer not completed: Unknown error code 5 / 0x05!
Can't send data: No such device (it may have been disconnected)
closing device-connection due to error 5
hmcfgusb_poll: Input/output error
USB < 0x0000: 42 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 B...............
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: No such device (it may have been disconnected)
Can't release interface: No such device (it may have been disconnected)
FHEM
2013.11.06 09:48:17 0: Server started with 20 defined entities (version $Id: fhem.pl 3872 2013-09-07 11:58:33Z rudolfkoenig $, os linux, user boxusr99, pid 2196)
2013.11.06 09:48:21 3: Device Wohnungstuer added to ActionDetector with 028:00 time
2013.11.06 09:48:21 3: Device Wohnzimmer3 added to ActionDetector with 028:00 time
2013.11.06 09:48:21 3: Device Zimmer added to ActionDetector with 028:00 time
2013.11.06 09:55:23 1: 127.0.0.1:1000 disconnected, waiting to reappear
2013.11.06 09:55:23 2: HMLAN_Parse: hmusb new condition disconnected
2013.11.06 09:55:23 1: 127.0.0.1:1000 reappeared (hmusb)
2013.11.06 09:55:23 2: HMLAN_Parse: hmusb new condition init
2013.11.06 09:55:52 1: 127.0.0.1:1000 disconnected, waiting to reappear
2013.11.06 09:55:52 2: HMLAN_Parse: hmusb new condition disconnected
2013.11.06 09:55:52 1: 127.0.0.1:1000 reappeared (hmusb)
2013.11.06 09:55:52 2: HMLAN_Parse: hmusb new condition init
2013.11.06 09:56:22 1: 127.0.0.1:1000 disconnected, waiting to reappear
2013.11.06 09:56:22 2: HMLAN_Parse: hmusb new condition disconnected
2013.11.06 09:56:22 1: 127.0.0.1:1000 reappeared (hmusb)
2013.11.06 09:56:22 2: HMLAN_Parse: hmusb new condition init
mit { HMLAN_SimpleWrite($defs{hmusb},"B",undef) } und LogLev 0 fürs HMLAN
hmland
USB < 0x0000: 42 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 B...............
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!
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 ................
Interrupt transfer not completed: Unknown error code 5 / 0x05!
Can't send data: No such device (it may have been disconnected)
closing device-connection due to error 5
hmcfgusb_poll: Input/output error
Can't release interface: No such device (it may have been disconnected)
FHEM
2013.11.06 14:18:32 0: HMLAN_Send: hmusb I:K
2013.11.06 14:18:32 0: HMLAN_Parse: hmusb V:03BC sNo:JEQ0535327 d:1DB1FC O:424242 t:00507AAB IDcnt:0000
2013.11.06 14:18:57 0: HMLAN_Send: hmusb I:K
2013.11.06 14:18:57 0: HMLAN_Parse: hmusb V:03BC sNo:JEQ0535327 d:1DB1FC O:424242 t:0050DC8A IDcnt:0000
2013.11.06 14:19:21 0: HMLAN_Send: hmusb I:B
2013.11.06 14:19:22 0: HMLAN_Send: hmusb I:K
2013.11.06 14:19:23 0: HMLAN_Send: hmusb I:K
2013.11.06 14:19:24 0: HMLAN_Send: hmusb I:K
2013.11.06 14:19:25 0: HMLAN_Send: hmusb I:K
2013.11.06 14:19:26 1: 127.0.0.1:1234 disconnected, waiting to reappear
2013.11.06 14:19:26 0: HMLAN_Parse: hmusb new condition disconnected
2013.11.06 14:19:26 1: 127.0.0.1:1234 reappeared (hmusb)
2013.11.06 14:19:26 0: HMLAN_Send: hmusb I:A424242
2013.11.06 14:19:26 0: HMLAN_Send: hmusb I:C
2013.11.06 14:19:26 0: HMLAN_Send: hmusb I:Y01,00,
2013.11.06 14:19:26 0: HMLAN_Send: hmusb I:Y02,00,
2013.11.06 14:19:26 0: HMLAN_Send: hmusb I:Y03,00,
2013.11.06 14:19:26 0: HMLAN_Send: hmusb I:T1A0CF04E,04,00,00000000
2013.11.06 14:19:26 0: HMLAN_Parse: hmusb new condition init
2013.11.06 14:19:51 0: HMLAN_Send: hmusb I:K
2013.11.06 14:19:53 0: HMLAN_Send: hmusb I:K
2013.11.06 14:19:54 0: HMLAN_Send: hmusb I:K
2013.11.06 14:19:55 0: HMLAN_Send: hmusb I:K
2013.11.06 14:19:56 1: 127.0.0.1:1234 disconnected, waiting to reappear
2013.11.06 14:19:56 0: HMLAN_Parse: hmusb new condition disconnected
2013.11.06 14:19:56 1: 127.0.0.1:1234 reappeared (hmusb)
2013.11.06 14:19:56 0: HMLAN_Send: hmusb I:A424242
2013.11.06 14:19:56 0: HMLAN_Send: hmusb I:C
2013.11.06 14:19:56 0: HMLAN_Send: hmusb I:Y01,00,
2013.11.06 14:19:56 0: HMLAN_Send: hmusb I:Y02,00,
2013.11.06 14:19:56 0: HMLAN_Send: hmusb I:Y03,00,
2013.11.06 14:19:56 0: HMLAN_Send: hmusb I:T1A0CF06C,04,00,00000000
2013.11.06 14:19:56 0: HMLAN_Parse: hmusb new condition init
2013.11.06 14:20:21 0: HMLAN_Send: hmusb I:K
2013.11.06 14:20:22 0: HMLAN_Send: hmusb I:K
2013.11.06 14:20:23 0: HMLAN_Send: hmusb I:K
2013.11.06 14:20:24 0: HMLAN_Send: hmusb I:K
*Neustart: Sobald ich fhem neu starte mit "shutdown restart" oder die fhem.cfg ändere (alles übers WEBInterface) und die Verbindung zum Daemon wieder aufgebaut wird
2013.11.06 16:15:26 2: HMLAN_Parse: hmusb new condition disconnected
2013.11.06 16:15:26 3: Opening hmusb device 127.0.0.1:1234
2013.11.06 16:15:26 3: hmusb device opened
2013.11.06 16:15:26 2: HMLAN_Parse: hmusb new condition init
bekomme ich auch keine Verbindung mehr.
2013.11.06 14:31:15 0: HMLAN_Parse: hmusb V:03BC sNo:JEQ0535327 d:1DB1FC O:424242 t:0006124D IDcnt:0000
2013.11.06 14:31:40 0: HMLAN_Send: hmusb I:K
2013.11.06 14:31:40 0: HMLAN_Parse: hmusb V:03BC sNo:JEQ0535327 d:1DB1FC O:424242 t:0006742C IDcnt:0000
2013.11.06 14:32:05 0: HMLAN_Send: hmusb I:K
2013.11.06 14:32:05 0: HMLAN_Parse: hmusb V:03BC sNo:JEQ0535327 d:1DB1FC O:424242 t:0006D5EA IDcnt:0000
2013.11.06 14:32:29 3: Unregistering HTTPSRV Homesecurity for URL /Homesecurity...
2013.11.06 14:32:29 1: Including fhem.cfg
2013.11.06 14:32:29 3: telnetPort: port 7072 opened
2013.11.06 14:32:29 3: WEB: port 8083 opened
2013.11.06 14:32:29 3: WEBphone: port 8084 opened
2013.11.06 14:32:29 3: WEBtablet: port 8085 opened
2013.11.06 14:32:29 2: HMLAN_Parse: hmusb new condition disconnected
2013.11.06 14:32:29 3: Opening hmusb device 127.0.0.1:1234
2013.11.06 14:32:29 3: hmusb device opened
2013.11.06 14:32:29 2: HMLAN_Parse: hmusb new condition init
2013.11.06 14:32:29 3: Registering HTTPSRV Homesecurity for URL /Homesecurity...
2013.11.06 14:32:29 1: Including ./log/fhem.save
2013.11.06 14:32:34 3: Device Wohnungstuer added to ActionDetector with 028:00 time
2013.11.06 14:32:35 3: Device Wohnzimmer3 added to ActionDetector with 028:00 time
2013.11.06 14:32:35 3: Device Zimmer added to ActionDetector with 028:00 time
2013.11.06 14:32:54 0: HMLAN_Send: hmusb I:K
2013.11.06 14:32:55 0: HMLAN_Send: hmusb I:K
2013.11.06 14:32:56 0: HMLAN_Send: hmusb I:K
2013.11.06 14:32:57 0: HMLAN_Send: hmusb I:K
2013.11.06 14:32:58 1: 127.0.0.1:1234 disconnected, waiting to reappear
2013.11.06 14:32:58 0: HMLAN_Parse: hmusb new condition disconnected
2013.11.06 14:32:58 1: 127.0.0.1:1234 reappeared (hmusb)
2013.11.06 14:32:58 0: HMLAN_Send: hmusb I:A424242
2013.11.06 14:32:58 0: HMLAN_Send: hmusb I:C
2013.11.06 14:32:58 0: HMLAN_Send: hmusb I:Y01,00,
2013.11.06 14:32:58 0: HMLAN_Send: hmusb I:Y02,00,
2013.11.06 14:32:58 0: HMLAN_Send: hmusb I:Y03,00,
2013.11.06 14:32:58 0: HMLAN_Send: hmusb I:T1A0CF37A,04,00,00000000
2013.11.06 14:32:58 0: HMLAN_Parse: hmusb new condition init
2013.11.06 14:33:23 0: HMLAN_Send: hmusb I:K
2013.11.06 14:33:24 0: HMLAN_Send: hmusb I:K
2013.11.06 14:33:26 0: HMLAN_Send: hmusb I:K
2013.11.06 14:33:27 0: HMLAN_Send: hmusb I:K
2013.11.06 14:33:28 1: 127.0.0.1:1234 disconnected, waiting to reappear
2013.11.06 14:33:28 0: HMLAN_Parse: hmusb new condition disconnected
2013.11.06 14:33:28 1: 127.0.0.1:1234 reappeared (hmusb)
2013.11.06 14:33:28 0: HMLAN_Send: hmusb I:A424242
2013.11.06 14:33:28 0: HMLAN_Send: hmusb I:C
2013.11.06 14:33:28 0: HMLAN_Send: hmusb I:Y01,00,
2013.11.06 14:33:28 0: HMLAN_Send: hmusb I:Y02,00,
2013.11.06 14:33:28 0: HMLAN_Send: hmusb I:Y03,00,
2013.11.06 14:33:28 0: HMLAN_Send: hmusb I:T1A0CF398,04,00,00000000
2013.11.06 14:33:28 0: HMLAN_Parse: hmusb new condition init
2013.11.06 14:33:53 0: HMLAN_Send: hmusb I:K
2013.11.06 14:33:54 0: HMLAN_Send: hmusb I:K
2013.11.06 14:33:55 0: HMLAN_Send: hmusb I:K
2013.11.06 14:33:56 0: HMLAN_Send: hmusb I:K
Die LED am Stick bleib bei diesen Szenario aber an, sie blinkt nicht.
Ich könnte mir vorstellen das Beides evtl. nicht zusammenhängt.
Was passiert bei euch, wenn ihr fhem neu startet, und HMLAN-Verbindung neu geöffnet wird?
Das das Reboot nicht funktioniert könnte evtl. an der Firmware liegen, wie du vermutest Marc. Nur wie kann man es erklären? Mein Stick hat als Firmware 0.956 (03BC), betateilchen hatte mal gepostet das seiner 0.963 hat. Habe ich etwa einen Ladenhüter bei Conrad gekauft? Gibt es einen Firmwareupdater? Gefunden habe ich bisher leider nichts dazu.
Langsam bin ich etwas verzweifelt, da ich seit heute morgen teste. Ihr könnt euch vorstellen, das es sehr ineffektiv ist, jedes mal die FB neu starten zu müssen, wenn man im fhem etwas ändert oder probiert. So lange ich nichts anfasse, scheint es ja zu laufen, nur bin ich skeptisch wie lange.
Neuer Stand: Habe jetzt alles auf einem Ubuntu, welches mit Parallels auf meinem Mac läuft, zu laufen gebracht. Umland dort übersetzt und siehe da - es läuft. Reboot klappt und fhem neu starten geht auch. Somit ist mein Stick vorerst nicht überaltert. Wo liegt nun der Haken bei der Installation auf meiner FB?

PS: auf dem Ubuntu habe ich höhere Response Times bis ca. 120ms