RS485 is giving extra byte 0x0d when transmitting 0x0a

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RS485 is giving extra byte 0x0d when transmitting 0x0a

785 Views
deven_solanki
Contributor III

Hi,

I am using i.MX7D with Linux 4.9 kernel. I am configuring UART as a RS485. I am trying to transfer 0x0A data over serial but at the receive end I am getting extra 0x0d byte. (i.e transmitting 0x0a - receiving 0x0d 0x0a ). I went through some forums (see below link.) I got some idea why it is happening but I am unable to solve the issue. Can you please guide me.

link : c - UNIX send CR rather than LF - Stack Overflow ,

Thanks in advance.

Deven

Labels (2)
Tags (2)
0 Kudos
1 Reply

684 Views
igorpadykov
NXP Employee
NXP Employee

Hi DEVEN

one can try to decrease baud rate, add delays between sending data to transmitter

and disable sdma (if it is used in the case).

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos