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.73k stars 832 forks source link

[HELP] bytes_modbus_uplink_converter - convert - 84 - Exception Response(131, 3, IllegalAddress) #1436

Closed knityanand closed 1 month ago

knityanand commented 3 months ago

Describe the issue I am trying to get the data from energy meters with the following data config EM1 EM2

and I am getting a NULL value and then the exception mentioned below bytes_modbus_uplink_converter - convert - 84 - Exception Response(131, 3, IllegalAddress)

I get it for both the float and swapped float. I guess, I am doing something wrong in the modbus.json. Would appreciate some help Also what changes need to be done for a swapped float

Also, please find attached the values being fetched from modbus tester for the energy meter with float values ModbusTester

Configuration (Attach your configuration file) modbus.json

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

Error traceback (If it was raised): error.log

Versions (please complete the following information):

DuXiaoChuang commented 3 months ago

你的地址错误了,你试试地址+1或者-1

knityanand commented 2 months ago

@DuXiaoChuang Thanks so much.. This worked. Wondering why I have to add / subtract 1 from the address which works in modbus tester or modscan64.

knityanand commented 1 month ago

Closing this. @DuXiaoChuang Thx again..

DuXiaoChuang commented 1 month ago

Closing this. @DuXiaoChuang Thx again..

You're welcome. Can I add you to wechat? Continue to communicate if you have any questions.