We are trying to communicate with an external device attached to SOM using ttyLP2 , and is communicated via rs485 using C program .But the data read from port is wrong and having extra data .
Sending Data: 1 3 0 0 0 1 132 10
Tx is data sending from VF61
Rx is data read on external device/ PC
12:24:10.718 [TX] - 01 03 00 00 00 01 84 0A
12:24:11.395 [RX on Other side] - 01 03 00 00 00 01 84 0D 0A
When examining in detail,its found that when data is ‘0A’ only this 13 (0D) is prefixed.
Please note that both BSP 2.8b3 as well as 2.8b5 are no longer supported as they got superseded by BSP 2.8b6 meanwhile even having been declared stable.
Updated BSP 2.8b6 as per instruction from Toradex support. But still facing the same .
Since its a generated CRC byte we cannot expect when it occurs. So is there any solution to avoid this conversion.
Sorry for delay. was busy with another task. Also
It seems working. Now able to get reply from otherside device.
I think 0A is not creating issue now after setting the mentioned option.
This CRC conversion to 0xA cannot be avoided but you can avoid the translation newline to carriage return-newline, by setting the option:
[-]onlcr translate newline to carriage return-newline
as explained here.