Replies: 9 comments 36 replies
-
Maybe I can create that one day, your request is clear to me. Separate topics will not be available, messages will be send in json to the same topic (tasmota design). These can be manipulated with nodered for example. Data wil indeed always be raw bytes because the format is unknown. Command will be modbusmonitorstart and modbusmonitorstop imo. Only drawback, I don't have a setup to test this at the moment. |
Beta Was this translation helpful? Give feedback.
-
1st try, not tested: https://github.com/jeroenst/Tasmota/tree/modbusmonitor Responses are raw values (not hex). |
Beta Was this translation helpful? Give feedback.
-
I would like to test your code, can you give a clue on how to use it? I need a monitor mode, have to put a listener in the middle and it seems to be what I need. |
Beta Was this translation helpful? Give feedback.
-
Yes, i have a binary in a wemos, is a 12.5 versión......is weird because the first time i launched the command i see some entries in my mqtt Explorer but after that any updates in the data.
I've tried the standard modbustcp Bridge and works as expected.
My aim is to have the monitor working and suscribe to some data without using the estándar Bridge and make active queries. The reason is avoid the double máster issues in my bus (i have a máster already id0 and a slave of course id1)
I do not see any log in the console when It worked.
El 18 de noviembre de 2023 10:37:22 CET, JeroenSt ***@***.***> escribió:
…Do you have any progress on testing? Did you manage to compile the modbusmonitor branch or do you need a binairy for esp8266 or esp32 ?
--
Reply to this email directly or view it on GitHub:
#18618 (reply in thread)
You are receiving this because you commented.
Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
In monitor mode nothing at all. Even when I Saw data in mqtt Explorer.
El 18 de noviembre de 2023 13:48:12 CET, JeroenSt ***@***.***> escribió:
…What do you see in the console of Tasmota, are there any modbus errors displayed?
--
Reply to this email directly or view it on GitHub:
#18618 (reply in thread)
You are receiving this because you commented.
Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
No. I started monitor mode first when It stops working i reset tasmota and uses Bridge mode. Bridge mode worked fine, but the multimaster issues I found.
El 18 de noviembre de 2023 13:54:47 CET, JeroenSt ***@***.***> escribió:
…Are you using modbusbridge and modbusmonitor simultaneously?
That is not working (yet).
--
Reply to this email directly or view it on GitHub:
#18618 (reply in thread)
You are receiving this because you commented.
Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I think tha this monitor mode would be very usefull when some kind of not máster Mode is needed.
El 18 de noviembre de 2023 13:54:47 CET, JeroenSt ***@***.***> escribió:
…Are you using modbusbridge and modbusmonitor simultaneously?
That is not working (yet).
--
Reply to this email directly or view it on GitHub:
#18618 (reply in thread)
You are receiving this because you commented.
Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I compiled the branch with gitpod, for ESP-8266 , reporting
My question in order to proceed testing :
Thank you, |
Beta Was this translation helpful? Give feedback.
-
Only getting CRC Errors 16:47:58.216 MBS: MBR Driver receive error 9 any suggestions? |
Beta Was this translation helpful? Give feedback.
-
Referring to the excellent work of @jeroenst at https://tasmota.github.io/docs/Modbus-Bridge :
Situation:
We would like to like to fetch the responses from the slave and publish for further processing/monitoring, i.e.
Suggested :
Tasmota Modbus Bridge listens passively on Modbus for responses only (ModbusMonitor mode)
You may start/stop Monitor Mode by sending a command like ModbusMonitor2MqttStart , ModbusMonitor2MqttStop
Starting ModbusMonitor mode would inhibit sending Modbus requests.
Publish values {[value1,value2,valueN]} in received responses to a MQTT topic
Suggested topic for values /ModbusBridge/ModbusReceived/DeviceAddress/FunctionCode/StartAddress/ eg
/ModbusBridge/ModbusReceived/1/5/1/
Publish raw (hex) responses to a MQTT topic
Suggested topic for raw /ModbusBridge/ModbusReceivedRaw/
Please let me know your thoughts,
Beta Was this translation helpful? Give feedback.
All reactions