thingsboard / thingsboard-gateway

Open-source IoT Gateway - integrates devices connected to legacy and third-party systems with ThingsBoard IoT Platform using Modbus, CAN bus, BACnet, BLE, OPC-UA, MQTT, ODBC and REST protocols
https://thingsboard.io/docs/iot-gateway/what-is-iot-gateway/
Apache License 2.0
1.65k stars 801 forks source link

[HELP] Missing documentation - How to use RPC in Modbus connector #1247

Open mrangics opened 7 months ago

mrangics commented 7 months ago

Describe the issue I would like to use RPC to update registers on ModBus devices connected to ThingsBoard with Thingsboard Gateway. There is a documentation available, but it's incomplete, please complete it. https://thingsboard.io/docs/iot-gateway/guides/how-to-use-rpc-modbus-connector/

Configuration (Attach your configuration file) tb_gateway.json

Connector name (If you need help with some connector/converter): modbus_.json

Error traceback (If it was raised): Request Time out.



**Versions (please complete the following information):**
 - OS: [Ubuntu 22.04]
 - Thingsboard IoT Gateway version [3.4.2]
 - Python version[3.11]
HarvUK commented 7 months ago

Have a look at this link think it might help?

Harv

mrangics commented 7 months ago

@HarvUK , yes, my ModBus connector matched this, that's why I'm asking for help using the RPC, it looks like the definition is good in my connector - if you think not good, please orient me, I have uploaded my connector file.

Thanks, Máté

mrangics commented 5 months ago

Partially successful. RPC sometimes is being sent, sometimes not, more investigation is necessary.

pro100805 commented 5 months ago

Good afternoon, could you give a concrete modbus_.json for one device using rpc, the variant you have works