Difference between revisions of "UIO-4030"
From ESS-WIKI
Line 26: | Line 26: | ||
$ echo "Serial Port Test" > /dev/ttymxc2</pre> | $ echo "Serial Port Test" > /dev/ttymxc2</pre> | ||
− | '''RS485 | + | '''RS485 <br/> <br/>Test RS-485 with Adam-4520.''' |
<pre>$ stty -F /dev/ttyUSB0 115200 | <pre>$ stty -F /dev/ttyUSB0 115200 | ||
$ echo "Serial Test" > /dev/ttyUSB0</pre> | $ echo "Serial Test" > /dev/ttyUSB0</pre> |
Revision as of 09:16, 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