Difference between revisions of "UIO-4034"
From ESS-WIKI
Line 92: | Line 92: | ||
<!--== '''Layout and Sizes (接口布局和尺寸)''' == --><!--[[File:RSB-4034 photo1 2021-10-27 150805.jpg|RTENOTITLE]] --><!--[[File:UIO-4034 photo2 2021-10-27 150915.jpg|RTENOTITLE]] --> | <!--== '''Layout and Sizes (接口布局和尺寸)''' == --><!--[[File:RSB-4034 photo1 2021-10-27 150805.jpg|RTENOTITLE]] --><!--[[File:UIO-4034 photo2 2021-10-27 150915.jpg|RTENOTITLE]] --> | ||
− | & | + | <headertabs></headertabs>Rear IO – RS-232 x2 (ttymxc1 & ttymxc3)<br/> RS-232(4034_COM3): |
+ | <pre># stty -F /dev/ttymxc0 -echo -onlcr 115200 | ||
+ | # cat /dev/ttymxc0 & | ||
+ | # echo "Serial Port Test" > /dev/ttymxc0</pre> | ||
+ | |||
+ | [[File:UIO-4034 rear 232 com3.png]] | ||
+ | |||
+ | RS-232(4034_COM4) | ||
+ | <pre># stty -F /dev/ttymxc3 -echo -onlcr 115200 | ||
+ | # cat /dev/ttymxc3 & | ||
+ | # echo "Serial Port Test" > /dev/ttymxc3 | ||
+ | </pre> | ||
+ | |||
+ | [[File:UIO-4034 rear 232 com4.png]] | ||
+ | |||
+ | CAN x1 | ||
+ | |||
+ | N/A (RSB-3730 not support CAN Bus) | ||
+ | |||
+ | |
Revision as of 06:56, 17 August 2023
[edit]
Rear IO – RS-232 x2 (ttymxc1 & ttymxc3)Note: RS-232: /dev/ttymxc2
RS-485: pin1 data- & pin2 data+ (ttyUSB0)
RS-232
$ stty -F /dev/ttymxc2 -echo -onlcr 115200 crtscts $ cat /dev/ttymxc2 & $ echo "Serial Port Test" > /dev/ttymxc2
CAN Bus
$ ip link set can0 up type can bitrate 125000 $ ifconfig can0 up $ ip link set can1 up type can bitrate 125000 $ ifconfig can1 up $ candump can0 & $ cansend can1 1F334455#1122334455667788
RS-232(COM3):
RS-232 x2 (ttymxc1 & ttymxc3) # stty -F /dev/ttymxc1 -echo -onlcr 115200 # cat /dev/ttymxc1 & # echo "Serial Port Test" > /dev/ttymxc1
RS-232(COM4)
# stty -F /dev/ttymxc3 -echo -onlcr 115200 # cat /dev/ttymxc3 & # echo "Serial Port Test" > /dev/ttymxc3
CAN
# ip link set can0 up type can bitrate 125000 # ifconfig can0 up # ip link set can1 up type can bitrate 125000 # ifconfig can1 up # candump can0 & # cansend can1 1F334455#1122334455667788
RS-232(4034_COM3):
# stty -F /dev/ttymxc0 -echo -onlcr 115200 # cat /dev/ttymxc0 & # echo "Serial Port Test" > /dev/ttymxc0
RS-232(4034_COM4)
# stty -F /dev/ttymxc3 -echo -onlcr 115200 # cat /dev/ttymxc3 & # echo "Serial Port Test" > /dev/ttymxc3
CAN x1
N/A (RSB-3730 not support CAN Bus)