Part Number: THVD4411
Other Parts Discussed in Thread: THVD4431,
Dear Support Team,
We are currently evaluating Industrial Gateway and have encountered some behavior regarding the UART interfaces that we would like to clarify.
Environment:
-
Operating System: Linux
-
Interfaces: UART ports configured for RS232 and RS485 modes
-
Test Method: Simple read/write operations to the serial ports
Observed Behavior:
During our evaluation, we conducted a simple serial communication test where we configured a port in RS232 mode and performed write and read operations. We noticed that when no external wiring (loopback connection) was present between the TX and RX pins, data written to the port was still being received by a reading process on the same port.
However, when we configured the same port in RS485 full-duplex or half-duplex mode and performed identical tests without any external wiring, we did not observe any data reception on the same port.
Our Concerns:
-
Is the self-reception behavior observed in RS232 mode an intentional feature of the board's hardware design or the UART controller? Some UART implementations have internal loopback capabilities for diagnostic purposes.
-
If this is an intentional feature, is there a way to enable/disable it through hardware configuration or software control?
-
If this is not intentional, could this be due to signal coupling, ground path issues, or some other electrical phenomenon that might affect normal operation in a real-world application?
-
Does the UART controller or the interface circuitry have any built-in echo or loopback functionality that might be enabled by default in certain modes?
Context:
Our goal is to understand whether this behavior is expected and to determine if any configuration changes are needed to ensure reliable RS232 communication in our application. Since RS485 does not exhibit similar behavior, we want to confirm that both interfaces are functioning correctly.
Any insights or documentation references you can provide regarding this behavior would be greatly appreciated.
Thank you for your assistance.
Best regards,
Ajmal Aboobakar
Embedded Software Developer