FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
254 views 0 comments
by anonymous

Hi,

when I test modbus master/slave with the RUTX11 (Request Configuration Testing), I request hostname (ASCII, Read Holding Register(3), First register 24, register count 16) for instance and the result is like this:

"FP-GW\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"


Device is RUTX11, FW: RUTX_R_00.02.06.1

Thank you

Brice

1 Answer

0 votes
by anonymous
Hi,

This is normal as \x00\ is an alias for null definition, so if the hostname doesn't use the whole set of registers, empty registers are filled with nulls, in a result, you're getting \x00\ values after your hostname repeating.

This will not change unless there will be a requirement from someone to develop a different data type, but for now, you can only hope this may change in the future.

EB.