RS485 is giving extra byte 0x0d when transmitting 0x0a

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

RS485 is giving extra byte 0x0d when transmitting 0x0a

1,070 次查看
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

标签 (2)
标记 (2)
0 项奖励
回复
1 回复

969 次查看
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 项奖励
回复