Difference between revisions of "UIO-4034TEST"
From ESS-WIKI
Line 11: | Line 11: | ||
*2 x 2 wires RS-232 | *2 x 2 wires RS-232 | ||
*1 x CAN bus 2.0B, 1 Mbps | *1 x CAN bus 2.0B, 1 Mbps | ||
− | *146 x 31 x | + | *Dimension: 146 x 31 x 22 mm |
| style="width:78%;vertical-align: top;line-height:20px;" | | | style="width:78%;vertical-align: top;line-height:20px;" | |
Revision as of 07:03, 23 June 2023
[edit]
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