ROM-6881 How to use UART
From ESS-WIKI
Revision as of 08:01, 3 January 2024 by Xingxing.li (talk | contribs)
UART
User Debian/Linux UART/serial port access is through the tty-devices. The ttydevices have different names depending on UART drivers for different boards.The default value is RS232.
ROM-6881 -Device Node | SOM-DB2510 device-COM Port Name |
/dev/ttyS0 | COM2_4的COM2(RS232 2-wire) |
/dev/ttyS6 | COM1_3的COM1(RS232 4-wire) |
/dev/ttyS9 | COM1_3的COM3(RS232 4-wire) |
SOM-DB2510 UART Setting
Test
1. 4-wire (Take SOM-DB2510 COM1_3的COM1 for example)
# /tools/test/adv/uart/rs232_4_wire_test.sh /dev/ttyS6
2. 2-wire (Take SOM-DB2510 COM2_4的COM2 for example)
# /tools/test/adv/uart/rs232_2_wire_test.sh /dev/ttyS0