FHEM Forum

FHEM => English Corner => Thema gestartet von: mgmino am 30 Mai 2020, 07:35:00

Titel: Serial Module similar to HTTPMOD (USBMOD)?
Beitrag von: mgmino am 30 Mai 2020, 07:35:00
Is there a module similar to HTTPMOD that allows sending a formatted string and parsing the response?
Titel: Antw:Serial Module similar to HTTPMOD (USBMOD)?
Beitrag von: rudolfkoenig am 30 Mai 2020, 10:25:52
Take a look at ECMD (https://fhem.de/commandref_modular.html#ECMD).
Titel: Antw:Serial Module similar to HTTPMOD (USBMOD)?
Beitrag von: mgmino am 30 Mai 2020, 17:02:32
Thank you for your quick response. This protocol is very interesting.
Titel: Antw:Serial Module similar to HTTPMOD (USBMOD)?
Beitrag von: mgmino am 31 Mai 2020, 16:05:16
ECMD is exactly what I am looking for -- a name like USBMOD would help it be easier to find.

One feature that would be helpful is a terminal mode -- ability to interactively communicate with the device on the serial connection. What is the best way to proceed with this?
Titel: Antw:Serial Module similar to HTTPMOD (USBMOD)?
Beitrag von: rudolfkoenig am 31 Mai 2020, 18:40:58
Zitat
One feature that would be helpful is a terminal mode -- ability to interactively communicate with the device on the serial connection.
What exactly do you have in mind?

Perhaps it is enough to start "perl contrib/tcptee.pl --bidi 12345", attach to it via "telnet localhost 12345", and define your ECMD with localhost:12345

Your questions can be better answered by the maintainer in the right forum area (see MAINTAINER.txt (https://fhem.de/MAINTAINER.txt))
Titel: Antw:Serial Module similar to HTTPMOD (USBMOD)?
Beitrag von: mgmino am 31 Mai 2020, 19:22:31
Thank you. I will follow up in that forum.