Difference between revisions of "UIO-4030"
From ESS-WIKI
(Created page with "== '''接口布局和尺寸(Layout and Sizes)''' == '''File:UIO-4030 photo 2021-10-27 141551.jpg''' File:UIO-4030 photo1 2021-10-27 141634.jpg File:UIO-4030 photo...") |
|||
Line 19: | Line 19: | ||
== '''測試方法: ''' == | == '''測試方法: ''' == | ||
− | ''' Note: RS-232: /dev/ttymxc2 <br/> GPIO : need to connect loopback.<br/> RS-485: pin1 data- & pin2 data+ (ttyUSB0)''' | + | ''' Note: RS-232: /dev/ttymxc2 <br/> GPIO : need to connect loopback.<br/> RS-485: pin1 data- & pin2 data+ (ttyUSB0)''' |
'''RS-232''' | '''RS-232''' | ||
− | <pre> | + | <pre>$ stty -F /dev/ttymxc2 -echo -onlcr 115200 crtscts |
$ cat /dev/ttymxc2 & | $ cat /dev/ttymxc2 & | ||
− | $ echo "Serial Port Test" > /dev/ttymxc2 | + | $ echo "Serial Port Test" > /dev/ttymxc2</pre> |
− | '''RS485 :<br/> <br/>Test RS-485 with Adam-4520.''' | + | '''RS485 :<br/> <br/>Test RS-485 with Adam-4520.''' |
− | <pre> | + | <pre>$ stty -F /dev/ttyUSB0 115200 |
− | $ echo "Serial Test" > /dev/ttyUSB0 | + | $ echo "Serial Test" > /dev/ttyUSB0</pre> |
<br/>'''GPIO ''' | <br/>'''GPIO ''' | ||
− | <pre> | + | <pre>[EXTENSION I/O B] |
pin#5: gpio 121, pin#6: gpio 122 | pin#5: gpio 121, pin#6: gpio 122 | ||
pin#7: gpio 123, pin#8: gpio 124 | pin#7: gpio 123, pin#8: gpio 124 | ||
pin#9: gpio 125, pin#10: gpio 126 | pin#9: gpio 125, pin#10: gpio 126 | ||
− | pin#11: gpio 127, pin#12: 133 | + | pin#11: gpio 127, pin#12: 133</pre> |
'''=================================================================================================================================''' | '''=================================================================================================================================''' | ||
'''Watch Dog''' | '''Watch Dog''' | ||
− | <pre> | + | <pre>$ echo 1 > /dev/watchdog</pre> |
Revision as of 07:27, 27 October 2021
接口布局和尺寸(Layout and Sizes)
Specifications
測試方法:
Note: RS-232: /dev/ttymxc2
GPIO : need to connect loopback.
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
RS485 :
Test RS-485 with Adam-4520.
$ stty -F /dev/ttyUSB0 115200 $ echo "Serial Test" > /dev/ttyUSB0
GPIO
[EXTENSION I/O B] pin#5: gpio 121, pin#6: gpio 122 pin#7: gpio 123, pin#8: gpio 124 pin#9: gpio 125, pin#10: gpio 126 pin#11: gpio 127, pin#12: 133
=================================================================================================================================
Watch Dog
$ echo 1 > /dev/watchdog