Difference between revisions of "UIO-4030"
From ESS-WIKI
Line 1: | Line 1: | ||
− | == '''接口布局和尺寸(Layout and Sizes)''' | + | <!-- == '''接口布局和尺寸(Layout and Sizes)''' --><!-- '''[[File:UIO-4030 photo 2021-10-27 141551.jpg|RTENOTITLE]]'''--> |
− | + | <!-- [[File:UIO-4030 photo1 2021-10-27 141634.jpg|RTENOTITLE]]--> <!--[[File:UIO-4030 photo3 2021-10-27 141714.jpg|RTENOTITLE]]--> | |
− | '''[[File:UIO-4030 photo 2021-10-27 141551.jpg|RTENOTITLE]]''' | ||
− | |||
− | [[File:UIO-4030 photo1 2021-10-27 141634.jpg|RTENOTITLE]] | ||
− | |||
− | |||
− | |||
− | [[File:UIO-4030 photo3 2021-10-27 141714.jpg|RTENOTITLE]] | ||
== '''Specifications ''' == | == '''Specifications ''' == | ||
Line 15: | Line 8: | ||
'''[[File:UIO-4030 spec 2021-10-27 141802.jpg|RTENOTITLE]]''' | '''[[File:UIO-4030 spec 2021-10-27 141802.jpg|RTENOTITLE]]''' | ||
− | + | | |
== '''RSB-3430 測試方法: ''' == | == '''RSB-3430 測試方法: ''' == | ||
− | ''' 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''' | ||
Line 26: | Line 19: | ||
$ echo "Serial Port Test" > /dev/ttymxc2</pre> | $ 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>$ stty -F /dev/ttyUSB0 115200 | <pre>$ stty -F /dev/ttyUSB0 115200 | ||
$ echo "Serial Test" > /dev/ttyUSB0</pre> | $ echo "Serial Test" > /dev/ttyUSB0</pre> | ||
Line 48: | Line 41: | ||
'''Note: ''' | '''Note: ''' | ||
− | '''Adam-4520<br/>Data- : Pin1<br/>Data+ : Pin2<br/>Remember to set up RS-485 before test.''' | + | '''Adam-4520<br/> Data- : Pin1<br/> Data+ : Pin2<br/> Remember to set up RS-485 before test.''' |
<pre># stty -F /dev/ttyUSB0 speed 115200 ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke | <pre># stty -F /dev/ttyUSB0 speed 115200 ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke | ||
# cat /dev/ttyUSB0 & | # cat /dev/ttyUSB0 & | ||
Line 55: | Line 48: | ||
'''GPIO''' | '''GPIO''' | ||
− | Note:<br/>input pin#5: gpio 504(DB9-1)<br/>output pin#6: gpio 505(DB9-6)<br/>input pin#7: gpio 506(DB9-2)<br/>output pin#8: gpio 507(DB9-7)<br/>input pin#9: gpio 508(DB9-3)<br/>output pin#10: gpio 509(DB9-8)<br/>input pin#11: gpio 139(DB9-4)<br/>output pin#12: gpio 138(DB9-9) | + | Note:<br/> input pin#5: gpio 504(DB9-1)<br/> output pin#6: gpio 505(DB9-6)<br/> input pin#7: gpio 506(DB9-2)<br/> output pin#8: gpio 507(DB9-7)<br/> input pin#9: gpio 508(DB9-3)<br/> output pin#10: gpio 509(DB9-8)<br/> input pin#11: gpio 139(DB9-4)<br/> output pin#12: gpio 138(DB9-9) |
<pre># echo 504 > /sys/class/gpio/export | <pre># echo 504 > /sys/class/gpio/export | ||
# echo 505 > /sys/class/gpio/export | # echo 505 > /sys/class/gpio/export | ||
Line 65: | Line 58: | ||
</pre> | </pre> | ||
− | [[File:RSB-3720 GPIOp1.png]] | + | [[File:RSB-3720 GPIOp1.png|RTENOTITLE]] |
<pre># echo 506 > /sys/class/gpio/export | <pre># echo 506 > /sys/class/gpio/export | ||
# echo 507 > /sys/class/gpio/export | # echo 507 > /sys/class/gpio/export | ||
Line 74: | Line 67: | ||
# cat /sys/class/gpio/gpio3/value</pre> | # cat /sys/class/gpio/gpio3/value</pre> | ||
− | [[File:RSB-3720 GPIOp2.png]] | + | [[File:RSB-3720 GPIOp2.png|RTENOTITLE]] |
<pre># echo 508 > /sys/class/gpio/export | <pre># echo 508 > /sys/class/gpio/export | ||
# echo 509 > /sys/class/gpio/export | # echo 509 > /sys/class/gpio/export | ||
Line 84: | Line 77: | ||
</pre> | </pre> | ||
− | [[File:RSB-3720 GPIOp3.png]] | + | [[File:RSB-3720 GPIOp3.png|RTENOTITLE]] |
<pre># echo 139 > /sys/class/gpio/export | <pre># echo 139 > /sys/class/gpio/export | ||
# echo 138 > /sys/class/gpio/export | # echo 138 > /sys/class/gpio/export | ||
Line 93: | Line 86: | ||
# cat /sys/class/gpio/gpio7/value</pre> | # cat /sys/class/gpio/gpio7/value</pre> | ||
− | [[File:RSB-3720 GPIOp4.png]] | + | [[File:RSB-3720 GPIOp4.png|RTENOTITLE]] |
Revision as of 04:42, 29 July 2022
Specifications
RSB-3430 測試方法:
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
RSB-3720 測試方法:
RS-232(COM3):
# stty -F /dev/ttymxc1 -echo -onlcr 115200 # cat /dev/ttymxc1 & # echo "Serial Port Test" /dev/ttymxc1
RS-485
Note:
Adam-4520
Data- : Pin1
Data+ : Pin2
Remember to set up RS-485 before test.
# stty -F /dev/ttyUSB0 speed 115200 ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke # cat /dev/ttyUSB0 & # echo "Serial Test" > /dev/ttyUSB0
GPIO
Note:
input pin#5: gpio 504(DB9-1)
output pin#6: gpio 505(DB9-6)
input pin#7: gpio 506(DB9-2)
output pin#8: gpio 507(DB9-7)
input pin#9: gpio 508(DB9-3)
output pin#10: gpio 509(DB9-8)
input pin#11: gpio 139(DB9-4)
output pin#12: gpio 138(DB9-9)
# echo 504 > /sys/class/gpio/export # echo 505 > /sys/class/gpio/export # echo out > /sys/class/gpio/gpio2/direction # echo in > /sys/class/gpio/gpio1/direction # cat /sys/class/gpio/gpio1/value # echo 1 > /sys/class/gpio/gpio2/value # cat /sys/class/gpio/gpio1/value
# echo 506 > /sys/class/gpio/export # echo 507 > /sys/class/gpio/export # echo out > /sys/class/gpio/gpio4/direction # echo in > /sys/class/gpio/gpio3/direction # cat /sys/class/gpio/gpio3/value # echo 1 > /sys/class/gpio/gpio4/value # cat /sys/class/gpio/gpio3/value
# echo 508 > /sys/class/gpio/export # echo 509 > /sys/class/gpio/export # echo out > /sys/class/gpio/gpio6/direction # echo in > /sys/class/gpio/gpio5/direction # cat /sys/class/gpio/gpio5/value # echo 1 > /sys/class/gpio/gpio6/value # cat /sys/class/gpio/gpio5/value
# echo 139 > /sys/class/gpio/export # echo 138 > /sys/class/gpio/export # echo out > /sys/class/gpio/gpio8/direction # echo in > /sys/class/gpio/gpio7/direction # cat /sys/class/gpio/gpio7/value # echo 1 > /sys/class/gpio/gpio8/value # cat /sys/class/gpio/gpio7/value