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.75k stars 845 forks source link

[HELP]Modbus_serial.json problems with RPC. #345

Closed googlehim closed 4 years ago

googlehim commented 4 years ago

Describe the issue I call "getRhSetpoint“ or "setRhSetpoint" from RPC debug terminal and get following error. I can read data from device "Dehumidifier". image image image

Configuration (Attach your configuration file) Notate: Remove Access token from file if you wanna attach tb_gateway.yaml RPC section of my Modbus_serial.json configuration file:

"rpc":[ {"tag":"getRhSetpoint", "type":"16int", "functionCode":3, "objectsCount":1, "address":286},

            {"tag":"setRhSetpoint", 
            "type":"16int", 
            "functionCode":6, 
            "objectsCount":1, 
            "address":286} 
    ],

Versions (please complete the following information):

googlehim commented 4 years ago

After upgrade thingsboard-gateway from v2.2.4 to v2.4.1, problems solved.