Difference between revisions of "UIO-4033 RS485:COM1、COM2、COM3、COM4"
From ESS-WIKI
Xingxing.li (talk | contribs) |
Xingxing.li (talk | contribs) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | === '''UIO-4033 & | + | === '''UIO-4033 both have four RS485 ports.''' === |
[[File:UIO-4033 RS485.png|RTENOTITLE]] | [[File:UIO-4033 RS485.png|RTENOTITLE]] | ||
| Line 16: | Line 16: | ||
The following figure shows the connection mode. | The following figure shows the connection mode. | ||
| − | [[File:UIO-4033 COM1 2.png]] | + | [[File:UIO-4033 COM1 2.png|RTENOTITLE]] |
| − | |||
| − | |||
'''Taking COM1 as receiver and COM2 as sender :''' | '''Taking COM1 as receiver and COM2 as sender :''' | ||
| − | |||
| − | |||
<pre># #---- COM1 as receiver ----# # | <pre># #---- COM1 as receiver ----# # | ||
# stty -F /dev/ttyUSB0 115200 cs8 -cstopb -parenb -crtscts | # stty -F /dev/ttyUSB0 115200 cs8 -cstopb -parenb -crtscts | ||
Latest revision as of 07:16, 20 December 2024
UIO-4033 both have four RS485 ports.
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






