Difference between revisions of "UIO-4030/TEST"
From ESS-WIKI
Line 46: | Line 46: | ||
|} | |} | ||
− | = RSB- | + | = RSB-3430 = |
− | + | ''' 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 & | |
− | + | $ echo "Serial Port Test" > /dev/ttymxc2</pre> | |
− | '''RS-485''' | + | '''RS485 <br/> <br/> Test RS-485 with Adam-4520.''' |
+ | <pre>$ stty -F /dev/ttyUSB0 115200 | ||
+ | $ echo "Serial Test" > /dev/ttyUSB0</pre> | ||
− | ''' | + | '''GPIO ''' |
− | + | <pre>[EXTENSION I/O B] | |
− | + | pin#5: gpio 121, pin#6: gpio 122 | |
− | <pre> | + | pin#7: gpio 123, pin#8: gpio 124 |
− | + | pin#9: gpio 125, pin#10: gpio 126 | |
− | + | pin#11: gpio 127, pin#12: 133</pre> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | </pre> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
= RSB-3430 = | = RSB-3430 = |
Revision as of 04:39, 23 June 2023
[edit]
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
從這填資料