UIO-4031 RS485:U-COM0/1、U-COM2/3


Send and Receive Data
The following figure shows the connection mode.

Taking COM1 as receiver and COM2 as sender :
# #---- COM1 as receiver ----# #
# stty -F /dev/ttyUSB0 115200 cs8 -cstopb -parenb -crtscts
# cat /dev/ttyUSB0 &
# #---- COM2 as sender ----# #
# stty -F /dev/ttyUSB1 115200 cs8 -cstopb -parenb -crtscts
# echo pass > /dev/ttyUSB1
# #----If no error, the receiver will receive “pass”----# #
pass

Note:
1、Receiver should run before sender.
2、The “serial port parameters” should be the same for sender and receiver.