RS485 is giving extra byte 0x0d when transmitting 0x0a

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

RS485 is giving extra byte 0x0d when transmitting 0x0a

1,009件の閲覧回数
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 返信

908件の閲覧回数
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 件の賞賛
返信