Difference between revisions of "UIO-4034"
From ESS-WIKI
Line 16: | Line 16: | ||
== '''測試方法''' == | == '''測試方法''' == | ||
− | |||
− | |||
Note: RS-232: /dev/ttymxc2 <br/> RS-485: pin1 data- & pin2 data+ (ttyUSB0) | Note: RS-232: /dev/ttymxc2 <br/> RS-485: pin1 data- & pin2 data+ (ttyUSB0) | ||
− | RS-232 | + | '''RS-232 ''' |
<pre>$ stty -F /dev/ttymxc2 -echo -onlcr 115200 crtscts | <pre>$ stty -F /dev/ttymxc2 -echo -onlcr 115200 crtscts | ||
$ cat /dev/ttymxc2 & | $ cat /dev/ttymxc2 & | ||
$ echo "Serial Port Test" > /dev/ttymxc2</pre> | $ echo "Serial Port Test" > /dev/ttymxc2</pre> | ||
− | <br/>CAN Bus | + | <br/>'''CAN Bus''' |
<pre>$ ip link set can0 up type can bitrate 125000 | <pre>$ ip link set can0 up type can bitrate 125000 | ||
$ ifconfig can0 up | $ ifconfig can0 up | ||
Line 35: | Line 33: | ||
$ cansend can1 1F334455#1122334455667788</pre> | $ cansend can1 1F334455#1122334455667788</pre> | ||
− | Watch Dog | + | '''Watch Dog''' |
<pre>$ echo 1 > /dev/watchdog </pre> | <pre>$ echo 1 > /dev/watchdog </pre> | ||
== == | == == |
Revision as of 08:15, 27 October 2021
接口布局和尺寸(Layout and Sizes)
Specifications
測試方法
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
Watch Dog
$ echo 1 > /dev/watchdog