Difference between revisions of "ROM-6881 How to use UART"
From ESS-WIKI
Xingxing.li (talk | contribs) (Created page with " = '''Overview''' = <font color="#000000">The Android/Linux UART/serial port access from user is through the tty-devices. The tty-devices have different names depending on UA...") |
Xingxing.li (talk | contribs) |
||
Line 1: | Line 1: | ||
− | = ''' | + | == '''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.''' | |
− | == | + | {| border="1" cellpadding="1" cellspacing="1" style="width: 500px;" |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
− | | ''' | + | | '''ROM-6881 -Device Node''' |
− | + | | '''SOM-DB2510 device-COM Port Name''' | |
− | | ''' | ||
|- | |- | ||
− | |||
| /dev/ttyS0 | | /dev/ttyS0 | ||
− | | RS232 2-wire | + | | COM2_4的COM2(RS232 2-wire) |
|- | |- | ||
− | |||
| /dev/ttyS6 | | /dev/ttyS6 | ||
− | | RS232 4-wire | + | | COM1_3的COM1(RS232 4-wire) |
|- | |- | ||
− | |||
| /dev/ttyS9 | | /dev/ttyS9 | ||
− | | RS232 4-wire | + | | COM1_3的COM3(RS232 4-wire) |
|} | |} | ||
− | + | 1. 4-wire (Take SOM-DB2510 COM1_3的COM1 for example) | |
− | + | <pre># /tools/test/adv/uart/rs232_4_wire_test.sh /dev/ttyS6</pre> | |
− | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | </pre> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | 2. 2-wire (Take SOM-DB2510 COM2_4的COM2 for example) | |
+ | <pre># /tools/test/adv/uart/rs232_2_wire_test.sh /dev/ttyS0</pre> |
Revision as of 06:54, 3 January 2024
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) |
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