HMUARTLGW: Modul für HomeMatic UART-Modul (RPi) und HomeMatic LAN Gateway

Begonnen von mgernoth, 11 Juni 2016, 20:10:46

Vorheriges Thema - Nächstes Thema

mgernoth

Hallo Frank,

Zitat von: franky08 am 30 August 2016, 18:05:21
Ja, Verbindung ist getrennt. Wenn ich in fhem das Teil auf closed setze blinkt die LED auch, dachte das ich die Verbindung zu fhem schließe um das update machen zu können.

Ja, genau, close in Fhem passt. Das Update sollte dann eigentlich direkt durchlaufen.
Erreichst Du das Gateway mit ping unter der 192.168.2.2? (Nicht, dass die komische autodetection im eq3configcmd kaputt ist...)

Viele Grüße
  Michael

franky08

Gehe ich in fhem auf closed und mache dann das update, bekomme ich:
frank1@Zotac2:~/occu/X86_32_Debian_Wheezy/packages-eQ-3/LinuxBasis/bin$ LD_LIBRARY_PATH=../lib:../../RFD/lib ./eq3configcmd update-coprocessor -u -f -c -l 0 -d ../../../../firmware -s NEQ0381988 -k 's%BZ%aBGRt'
2016/08/30 18:18:33.905 <Debug> firmware filename is: coprocessor_update_hm_only.eq3

cryptEnabled true2016/08/30 18:18:35.913  LanConnection::connect
2016/08/30 18:18:35.914  LanConnection::connect done
2016/08/30 18:18:35.917 <Info> Lan Device Information:
Protocol-Version: 1
Product-ID: eQ3-HM-LGW
Firmware-Version: 1.1.5
Serial Number: NEQ0381988

2016/08/30 18:18:36.122  LanConnection::connect
2016/08/30 18:18:36.123  LanConnection::connect done
2016/08/30 18:18:36.125 <Info> Lan Device Information:
Protocol-Version: 1
Product-ID: eQ3-HM-LGW
Firmware-Version: 1.1.5
Serial Number: NEQ0381988

2016/08/30 18:18:37.628 <Debug> (NEQ0381988) CCU2CommControllerMod::handleIdentifyEvent(): Coprocessor is in application.
2016/08/30 18:18:37.628 <Debug> CCU2CoprocessorCommandMod::CCU2CoprocessorCommandMod(): System frame
2016/08/30 18:18:37.628 <Debug> CCU2CoprocessorCommandMod::isResponseStatusOk(): System status OK
2016/08/30 18:18:37.629 <Debug> CCU2CommControllerMod::handleIncomingResponse() System response OK
2016/08/30 18:18:37.630 <Debug> (NEQ0381988) CCU2CommControllerMod::handleIdentifyEvent(): Coprocessor is in application.
2016/08/30 18:18:37.644 <Debug>  deliver firmware...
2016/08/30 18:18:37.696 <Debug> (NEQ0381988) CCU2CommControllerMod::handleIncomingSerialFrame(): Command not parseable. Expected was frame of type HM
2016/08/30 18:18:37.696 <Debug> (NEQ0381988) CCU2CommControllerMod::handleIncomingSerialFrame(): Command not parseable. Expected was frame of type HM
2016/08/30 18:18:37.697 <Debug> (NEQ0381988) CCU2CommControllerMod::handleIncomingSerialFrame(): Command not parseable. Expected was frame of type HM
2016/08/30 18:18:37.697 <Debug> (NEQ0381988) CCU2CommControllerMod::handleIncomingSerialFrame(): Command not parseable. Expected was frame of type HM
2016/08/30 18:18:37.697 <Debug> (NEQ0381988) CCU2CommControllerMod::handleIncomingSerialFrame(): Command not parseable. Expected was frame of type HM
2016/08/30 18:18:37.698 <Debug> (NEQ0381988) CCU2CommControllerMod::handleIncomingSerialFrame(): Command not parseable. Expected was frame of type HM
2016/08/30 18:18:37.698 <Debug> (NEQ0381988) CCU2CommControllerMod::handleIncomingSerialFrame(): Command not parseable. Expected was frame of type HM
2016/08/30 18:18:37.698 <Debug> (NEQ0381988) CCU2CommControllerMod::handleIncomingSerialFrame(): Command not parseable. Expected was frame of type HM
2016/08/30 18:18:37.699 <Debug> (NEQ0381988) CCU2CommControllerMod::handleIncomingSerialFrame(): Command not parseable. Expected was frame of type HM
2016/08/30 18:18:37.699 <Debug> (NEQ0381988) CCU2CommControllerMod::handleIncomingSerialFrame(): Command not parseable. Expected was frame of type HM
2016/08/30 18:18:37.699 <Debug> (NEQ0381988) CCU2CommControllerMod::handleIncomingSerialFrame(): Command not parseable. Expected was frame of type HM
2016/08/30 18:18:37.700 <Debug> (NEQ0381988) CCU2CommControllerMod::handleIncomingSerialFrame(): Command not parseable. Expected was frame of type HM
2016/08/30 18:18:37.700 <Debug> (NEQ0381988) CCU2CommControllerMod::handleIncomingSerialFrame(): Command not parseable. Expected was frame of type HM
2016/08/30 18:18:37.700 <Debug> (NEQ0381988) CCU2CommControllerMod::handleIncomingSerialFrame(): Command not parseable. Expected was frame of type HM
2016/08/30 18:18:37.701 <Debug> (NEQ0381988) CCU2CommControllerMod::handleIncomingSerialFrame(): Command not parseable. Expected was frame of type HM
2016/08/30 18:18:37.701 <Debug> (NEQ0381988) CCU2CommControllerMod::handleIncomingSerialFrame(): Command not parseable. Expected was frame of type HM
2016/08/30 18:18:37.701 <Debug> (NEQ0381988) CCU2CommControllerMod::handleIncomingSerialFrame(): Command not parseable. Expected was frame of type HM
2016/08/30 18:18:37.702 <Debug> (NEQ0381988) CCU2CommControllerMod::handleIncomingSerialFrame(): Command not parseable. Expected was frame of type HM


bis dann ein:
2016/08/30 18:18:43.290 <Debug> (NEQ0381988) CCU2CommControllerMod::handleIncomingSerialFrame(): Command not parseable. Expected was frame of type HM
2016/08/30 18:18:43.398 <Debug> CCU2CoprocessorCommandMod::CCU2CoprocessorCommandMod(): System frame
2016/08/30 18:18:43.399 <Debug> (NEQ0381988) CCU2CommControllerMod::handleIdentifyEvent(): Coprocessor is in bootloader.
2016/08/30 18:18:43.645 <Debug> CoprocessorUpdate::startBootloader():Coprocessor entered bootloader.
2016/08/30 18:18:44.151 <Info> CCU2CommControllerMod::sendSystemCommand(): failed
2016/08/30 18:18:44.151 <Debug> CCU2CommControllerMod::sendSystemCommand(): Start Application / Bootloader
2016/08/30 18:18:44.195 <Debug> CCU2CoprocessorCommandMod::CCU2CoprocessorCommandMod(): System frame
2016/08/30 18:18:44.908 <Debug> CCU2CoprocessorCommandMod::CCU2CoprocessorCommandMod(): System frame
2016/08/30 18:18:44.909 <Debug> (NEQ0381988) CCU2CommControllerMod::handleIdentifyEvent(): Coprocessor is in application.
2016/08/30 18:18:45.152 <Info> CCU2CommControllerMod::sendSystemCommand(): failed
2016/08/30 18:18:47.492 <Debug> CCU2CoprocessorCommandMod::CCU2CoprocessorCommandMod(): Bidcos frame
2016/08/30 18:18:47.646 <Info> CCU2CommControllerMod::sendSystemCommand(): failed
2016/08/30 18:18:47.646 <Debug> Firmwareupdate not successfull, at frame 1 of 123

2016/08/30 18:18:47.647  LanConnection::disconnect
2016/08/30 18:18:47.647  Closing socket 3
2016/08/30 18:18:58.649 <Debug> Wait for disconnect timed out
2016/08/30 18:18:59.649 <Debug> Wait for disconnect timed out
2016/08/30 18:19:00.649 <Debug> Wait for disconnect timed out
2016/08/30 18:19:01.650 <Debug> Wait for disconnect timed out
2016/08/30 18:19:02.650 <Debug> Wait for disconnect timed out
2016/08/30 18:19:03.650 <Debug> Wait for disconnect timed out
2016/08/30 18:19:04.651 <Debug> Wait for disconnect timed out
2016/08/30 18:19:05.651 <Debug> Wait for disconnect timed out
2016/08/30 18:19:06.651 <Debug> Wait for disconnect timed out
2016/08/30 18:19:07.652 <Debug> Wait for disconnect timed out
2016/08/30 18:19:08.652 <Debug> Wait for disconnect timed out
2016/08/30 18:19:09.652 <Debug> Wait for disconnect timed out
2016/08/30 18:19:10.653 <Debug> Wait for disconnect timed out
2016/08/30 18:19:11.653 <Debug> Wait for disconnect timed out
2016/08/30 18:19:12.654 <Debug> Wait for disconnect timed out
2016/08/30 18:19:13.654 <Debug> Wait for disconnect timed out
2016/08/30 18:19:14.654 <Debug> Wait for disconnect timed out
2016/08/30 18:19:15.655 <Debug> Wait for disconnect timed out
2016/08/30 18:19:16.655 <Debug> Wait for disconnect timed out
2016/08/30 18:19:17.655 <Debug> Wait for disconnect timed out
2016/08/30 18:19:18.656 <Debug> Wait for disconnect timed out
2016/08/30 18:19:19.656 <Debug> Wait for disconnect timed out
2016/08/30 18:19:20.332  LanConnection::disconnect
2016/08/30 18:19:20.332  Closing socket 4
2016/08/30 18:19:20.333  LanConnection::disconnect done
2016/08/30 18:19:20.333  LanConnection::disconnect
2016/08/30 18:19:20.333  LanConnection::disconnect done
2016/08/30 18:19:20.333  LanConnection::disconnect
2016/08/30 18:19:20.333  LanConnection::disconnect
2016/08/30 18:19:20.334  LanConnection::disconnect done
2016/08/30 18:19:20.656 <Debug> Wait for disconnect timed out
2016/08/30 18:19:21.657 <Debug> Wait for disconnect timed out
2016/08/30 18:19:22.657 <Debug> Wait for disconnect timed out
2016/08/30 18:19:23.657 <Debug> Wait for disconnect timed out


erfolgt.
Debian Bookworm auf HUNSN / Debian Bullseye auf 2.ter HUNSN F2F an 2x RaspiB
mit FHEM aktuell
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu, raspmatic_rpi3, HMIP-HCU1

mgernoth

Hallo Frank,

reboote das Gateway mal vor dem Update und verbinde es dann nicht mit Fhem. Damit bleibt der Koprozessor im Bootloader.

Ich sehe schon, ich muss das CoPro-Update ins Modul einbauen, das ist so viel zu frickelig. Wenn ich mal wieder Zeit habe...

Viele Grüße
  Michael

franky08

Schein funktioniert zu haben:
2016/08/30 18:44:06.116 <Debug> CCU2CommControllerMod::handleIncomingResponse() System response OK
2016/08/30 18:44:06.166 <Debug> CCU2CoprocessorCommandMod::CCU2CoprocessorCommandMod(): System frame
2016/08/30 18:44:06.166 <Debug> CCU2CoprocessorCommandMod::isResponseStatusOk(): System status OK
2016/08/30 18:44:06.166 <Debug> CCU2CommControllerMod::handleIncomingResponse() System response OK
2016/08/30 18:44:06.185 <Debug> CCU2CoprocessorCommandMod::CCU2CoprocessorCommandMod(): System frame
2016/08/30 18:44:06.185 <Debug> CCU2CoprocessorCommandMod::isResponseStatusOk(): System status OK
2016/08/30 18:44:06.185 <Debug> CCU2CommControllerMod::handleIncomingResponse() System response OK
2016/08/30 18:44:06.186 <Info> Firmwareupdate successfull

2016/08/30 18:44:06.186  LanConnection::disconnect
2016/08/30 18:44:06.186  Closing socket 3
2016/08/30 18:44:17.188 <Debug> Wait for disconnect timed out
2016/08/30 18:44:18.188 <Debug> Wait for disconnect timed out
2016/08/30 18:44:19.189 <Debug> Wait for disconnect timed out
2016/08/30 18:44:20.189 <Debug> Wait for disconnect timed out
2016/08/30 18:44:21.189 <Debug> Wait for disconnect timed out


2016/08/30 18:44:06.186 <Info> Firmwareupdate successfull

Vielen Dank

VG
Frank
Debian Bookworm auf HUNSN / Debian Bullseye auf 2.ter HUNSN F2F an 2x RaspiB
mit FHEM aktuell
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu, raspmatic_rpi3, HMIP-HCU1

hauwech

Hallo zusammen,
ich habe meinen HMUART gemäß Wiki erfolgreich in Betrieb genommen. Außer daß das Firmwareupdate vier Anläufe gebraucht hat, lief alles wie vorgesehen.
Jetzt ::) habe ich festgestellt, daß die Namensgebung, die ich 1:1 übernommen habe (myHmUART) nicht optimal ist, wenn ich noch einen für den letzten funkschwachen Bereich dazu bauen will.
Kann man das Device problemlos umbenennen von myHmUART in HmUART1?
Oder zieht das irgendwo anders Blasen?

Gruß Roland
Fhem auf Intel NUC11TNKi5+M2 NVMe+32GB RAM mit Ubuntu 22.04 LTS

gloob

Du kannst das device einfach umbenennen. Bei mir heißt es auch einfach HM_GATEWAY_UART
Raspberry Pi 3 | miniCUL 433MHz | nanoCUL 868 MHz | nanoCUL 433 MHz | MySensors WLAN Gateway | LaCrosse WLAN Gateway | SignalESP 433 MHz | SignalESP 868 MHz | HM-MOD-UART WLAN Gateway | IR - 360 Grad WLAN Gateway

hauwech

Danke. Hast Du Deinen umbenannt oder gleich beim Anlegen HM_GATEWAY_UART genannt?
Ich wollte sichergehen, daß nicht beim Umbenennen interne Verknüpfungen mit hmID und/oder hmKey aufbrechen.

Gruß Roland
Fhem auf Intel NUC11TNKi5+M2 NVMe+32GB RAM mit Ubuntu 22.04 LTS

VB90

mach es doch ganz einfach und benenne den nächsten UART einfach anders... ;)

vb
Man muss das Rad nicht neu erfinden, nur wissen wie es gedreht wird.

hauwech

Könnte ich machen, aber ich habe gerne System drin (macht RegEx einfacher).
Ich fände es hübsch, wenn die
- HmUART1
- HmUART2
hießen. Dumm, daß ich nicht schon beim define dran gedacht habe.

Gruß Roland
Fhem auf Intel NUC11TNKi5+M2 NVMe+32GB RAM mit Ubuntu 22.04 LTS

DeeSPe

Mit rename einfach umbenennen, macht keine Probleme.

Gruß
Dan
MAINTAINER: 22_HOMEMODE, 98_Hyperion, 98_FileLogConvert, 98_serviced

Als kleine Unterstützung für meine Programmierungen könnt ihr mir gerne einen Kaffee spendieren: https://buymeacoff.ee/DeeSPe

hauwech

Fhem auf Intel NUC11TNKi5+M2 NVMe+32GB RAM mit Ubuntu 22.04 LTS

mgernoth

Hallo,

ab morgen kann die Applikations-/Koprozessorfirmware direkt aus Fhem heraus aktualisiert werden:


fhem> set myHmUart updateCoPro /path/to/coprocessor_update.eq3


Die LAN-Firmware des LGW muss weiterhin mit den eQ-3-Tools oder dem Netfinder (Java, läuft unter Linux/Mac/Win) aktualisiert werden.

Viele Grüße
  Michael

franky08

Debian Bookworm auf HUNSN / Debian Bullseye auf 2.ter HUNSN F2F an 2x RaspiB
mit FHEM aktuell
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu, raspmatic_rpi3, HMIP-HCU1

amunra

Hallo Michael,

Super Arbeit!!!

Das läuft sogar mit HM-MOD-UART-Gateway (WiFi,LAN).
Daumen hoch und Danke ebenfalls.

Viele Grüße

DeeSPe

Zitat von: amunra am 31 August 2016, 21:12:31
Das läuft sogar mit HM-MOD-UART-Gateway (WiFi,LAN).

Ach ehrlich? Kein socat mehr nötig?

Auch von mir:
Super Arbeit!!!

Gruß
Dan
MAINTAINER: 22_HOMEMODE, 98_Hyperion, 98_FileLogConvert, 98_serviced

Als kleine Unterstützung für meine Programmierungen könnt ihr mir gerne einen Kaffee spendieren: https://buymeacoff.ee/DeeSPe