Serial communication data loss

Hi

I have a custom board which converts the UART signal to RS-232, RS-422 or RS-485. With RS-232 it is possible to use hardware flow control to prevent data loss. But there is no such mechanism for RS-422 and RS-485. How to ensure data integrity when communicating using RS-422 or RS-485?

Hi 5d867a92b9bdd01df324966db,

Are you using the devkit or custom board for AGX Orin?
What’s the Jetpack version in use?

I think there may be the enable pin for RS-485 (DE, RE).
You can just use RTS pin to connect them.

Custom board
R36.4
Serial ports are in PIO mode

Okay, have you tried to connect them and check if it could work?

Hi,

It seems that DE and RE of the transceiver are controlled by TX pin.

Isn’t it reversed?
TX pin should be controlled by enable pin rather than TDE/RE are controlled by TX.

The transceiver on this board is SP338. UART1_TX, UART1_RX, UART1_RTS and UART1_CTS are connected respectively to L3, L2, L7 and L8 of the transceiver. Can you please explain how to connect RTS to DE and RE?

Please just connect RTS(from AGX Orin) to DE pin(for RS-485).
I’m not clear about your SP338 module, you can check with your vendor.
Or you can refer to Need to Invert UART2 RTS - Jetson & Embedded Systems / Jetson AGX Orin - NVIDIA Developer Forums for the user has used UART interface for RS-485 successfully.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.