Slave ID 13 (\r) appearing as 10 (enter) in modbus RTU

C

Thread Starter

Cigol

In Mobdbus RTU protocol am facing following problem.

From Modbus master if I query for the 13 th slave (Slave Id 13) it is appearing as 10 in the Modbus slave node which further complicates since there is CRC mismatch. Anybuddy there to fix my problem or provide me some directions. I am using libmodbus.

Thanks in advance.
 
L

Lynn at Alist

I wager to guess that you have NOT set the binary mode for opening the
port with an fopen-type command. Thus the OS is mapping '\r' to '\n' for
you.

- LynnL, www.digi.com

 
Top