![Advantech RSB-4220 User Manual Download Page 37](http://html1.mh-extra.com/html/advantech/rsb-4220/rsb-4220_user-manual_2857962037.webp)
31
RSB-4220 User Manual
Chapter 2
H
/W Installation
2.5.11
RS232 Test
There are 6 UART supported by RSB-4220. /dev/ttyo0 is reserved for RSB-4220
debug port (RSB-4220 CN5), the rest UART ports could be applied by user.
2.5.11.1
UART1 to UART5 RS232 test
Switching SW8 to set UART1 working at RS232, short TX with RX of UART1 to
UART5.
root@am335x
‐
adv:/unit_tests#
./AutoRun_uart232
=====test rs232!=====
rs232 number: 5
/dev/ttyO1 PASS!
/dev/ttyO2 PASS!
/dev/ttyO3 PASS!
/dev/ttyO4 PASS!
/dev/ttyO5 PASS!
+--------------------+
| [RS232] Test Pass! |
2.5.11.2
UART1 RS422 test
1.
Switching SW8 to set UART1 working at RS422, short 422_RXD- with 422-
485_TXD-, short with 422-.
2.
Run program to test UART1 RS422
root@am335x-adv:/unit_tests# ./AutoRun_uart422 -p /dev/ttyO1 -t 1
==========test RS422 for RSB4220============
Open uart /dev/ttyO1 PASS ....
->Writing : hello world!
->Reading : hello world!
->TX/RX Signal pass
+-----------------------------------+
| UART RS422 Testing PASS |
+-----------------------------------+