Using serial port

1. Code path

RDK X3 enables UART3 on 40pin by default, physical pins 8 and 10, IO voltage 3.3V.

RDK Ultra enables UART2 on 40pin by default, physical pins 8 and 10, IO voltage 3.3V.

Please refer to /app/40pin_samples/test_serial.py for details on how to use the serial port.

2. Loopback test

Connect TXD and RXD in hardware.

Then, run the test program to perform write and read operations. The expected result is that the read data is exactly the same as the written data.

Connect TXD and RXD together directly through the jumper cap.

image-20220512101820743

运行

3. Test code