Difference between revisions of "ROM-6881 How to use UART"
From ESS-WIKI
Xingxing.li (talk | contribs) |
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.''' | '''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.''' | ||
Line 18: | Line 18: | ||
| COM1_3的COM3(RS232 4-wire) | | COM1_3的COM3(RS232 4-wire) | ||
|} | |} | ||
+ | |||
+ | == SOM-DB2510 UART Setting == | ||
+ | |||
+ | [[File:SOM-DB2510 SW1.PNG]][[File:SOM-DB2510 SW2.PNG]] | ||
+ | |||
+ | == Test == | ||
1. 4-wire (Take SOM-DB2510 COM1_3的COM1 for example) | 1. 4-wire (Take SOM-DB2510 COM1_3的COM1 for example) |
Latest revision as of 08:01, 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) |
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