Hi,
Thanks for your reply. We validated through an AWS Lambda which just prints the JSON as plain text. To be absolutely sure we did the same with Beeceptor and see the same results. Also we restored the device to factory default with only this config to make sure nothing affects this device. Weird thing is when we do exactly the same steps (from factory default) with the TRB255 it works as expected.
Here some more details.
We got the TRB140 attached to a Modbus slave device which is configured as follows:
As you can see when we request a value from U_L1 we read out a value of around 230 (voltage).
Secondly we configured the data to server as follows:
Problem is the JSON outputted by the data to server contains completely different values from the ones expected (around 230):
{"timestamp": "1616836325","slave_id":"1","start_reg":"19001", "data": -0.000000}
{"timestamp": "1616836285","slave_id":"1","start_reg":"19001", "data": 0.000000}
{"timestamp": "1616836275","slave_id":"1","start_reg":"19001", "data": 525174880.000000}
{"timestamp": "1616836255","slave_id":"1","start_reg":"19001", "data": -0.056988}
{"timestamp": "1616836215","slave_id":"1","start_reg":"19001", "data": -1961541215275985485200763402584064.000000}
{"timestamp": "1616838295","slave_id":"1","start_reg":"19001", "data": 8296095672285933002313833644032.000000}
To validate it is indeed a device problem we set up the TRB255 with exactly the same configuration and here it works as expected (we consistently get values around 230). Also to make sure it is not related to this register we set up a lot of other registers as well. These also show the same behavior.