Issues reading modbus address 10240 with TRB145

Hi

I have a TRB145 (firmware: TRB1_R_00.07.05.4) and i am having some issues with reading a certain serial modbus address from a sensor i have connected.

These are the addresses i am testing

The 4864 address reads just fine

But the 10240 address doesn’t (request fails)

On the software belonging to the sensor i am however able to read from this address

How can i fix this?

Regards

Larks

Hello,

You are currently using quite an old firmware. Could you please update your TRB145 to the latest 7.17.4 firmware, which can be downloaded here: TRB145 Firmware Downloads - Teltonika Networks Wiki.

After updating, please let us know if you still experience the same issue.

Best regards,

Hi

I updated the firmware to the lastest and the issue still persists.

Regards

Hello,

From the provided software register information, it looks like the register value for ammonia should be 1. Could you try setting 1 in the Register Count / Values field and check if it reads correctly that way?

Best regards,

It is supposed to be two registers according to the documentation (10240 and 10241).

I tried reducing the register count to 1, but same result.

Regards

Hello @Aleksander,

Have you tried changing the byte order (e.g., 1,2,3,4), and can you confirm that the correct data type according to the sensor’s data sheet is selected?

For testing, since the register in hex is 0x2801 (or 10241 dec), it would be worth trying with 10241 as the first register and a count/value of 1.

If nothing changes, could you please provide a screenshot of the exact message or error you see when attempting to read?

Best regards,

Hi

I changed all the data types to hex as the data conversion isn’t the issue at this point. The sensor simply doesn’t respond.

The normal settings (according to documentation)

The results

Changing to register 10241 also causes operation timeout.

Here are the expected results using another software

Note: temperature reading from this sensor is wrong.
Regards
Aleksander

Hello,

Thank you for your update.

From the testing software output you provided, the data type should be either 32-bit or 64-bit float, not HEX. For testing purposes, please try changing only the byte order. In your screenshots, the hexadecimal register numbers (highlighted in blue) are displayed after the decimal ones, which might have caused some confusion:


After some further analysis from gathered information:

  • Ammonia and temperature data appear to be stored in 2 registers (4 bytes). Here, as mentioned in the beginning, please set the data type to 32-bit float and try different byte orders.
  • pH seems to be stored in 4 registers (8 bytes). Here, a 64-bit float data type should be used, again testing with different byte orders.

Please give this a try and let me know how it goes.

Best regards,

Hi

I don’t see how the data type would cause operation timeout errors and HEX decoding should always work regardless of what the intended data format is supposed to be.

All the values are supposed to be stored in float32_4321, but pH requires you to read 4 registers and only use the last two.

I added entries to read ammonia in the different byte/word orders

But the results for all is operation timeout.

Regards

Aleksander

Apologies for the delay. Thank you for the update and sharing the results of the performed tests.

Could you please confirm whether this issue is still relevant? If so, could you try increasing the request timeout value to, for example, 10 seconds and check if that makes any difference?

If the behavior remains the same, we will likely need to investigate this unusual issue through a private communication channel to review it in more detail.

Best regards,

Hi

I figured out what the problem was. The addressing in the UI is zero based so in order to access 10240 i need to enter 10239. It was a bit confusing as the other addresses worked, but i didn’t check to closely if these values made sense.

Regards
Larks

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.