Difference between revisions of "UIO-4030"
Jems.cheng (talk | contribs) |
|||
(40 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | == ''' | + | {| border="0" cellpadding="5" cellspacing="0" style="width:100%;" |
+ | |- | ||
+ | | style="width: 20%;text-align: center;vertical-align: top;" | [[File:UIO-4030 290.jpg|290px|RTENOTITLE]] | ||
+ | | style="width:80%; vertical-align: top;padding-left: 5px;" | | ||
+ | {| border="0" cellpadding="5" cellspacing="0" style="width:100%;" | ||
+ | |- | ||
+ | | style="width:22%;min-width:250px;vertical-align: top;line-height:20px;color: #333333;" | | ||
+ | <span style="color: #4e62a1;font-weight: bold;">'''General Specificationn'''</span> | ||
− | + | *<span style="font-size:14px;color:#4d4d4d;line-height:20px;">1 x 2 wires RS-232</span> | |
+ | *<span style="font-size:14px;color:#4d4d4d;line-height:20px;">1 xRS-485</span> | ||
+ | *<span style="font-size:14px;color:#4d4d4d;line-height:20px;">GPIO: 4 DIs and 4 DOs (2.5~24V)</span> | ||
+ | *<span style="font-size:14px;color:#4d4d4d;line-height:20px;">Dimension: 146 x 31 x 22 mm</span> | ||
− | ''' | + | | style="width:78%;vertical-align: top;line-height:20px;" | |
+ | <span style="color: #4e62a1;font-weight: bold;">'''Environment Specification'''</span> | ||
+ | |||
+ | *<span style="font-size:14px;color:#4d4d4d;line-height:20px;">Weight: 180g</span> | ||
+ | *<span style="font-size:14px;color:#4d4d4d;line-height:20px;">Operating Humidity: 5 ~ 95% relative humidity, non-condensing</span> | ||
+ | *<span style="font-size:14px;color:#4d4d4d;line-height:20px;">Operating Temperature: -40 ~ 85 *C</span> | ||
+ | *<span style="font-size:14px;color:#4d4d4d;line-height:20px;">Storage Temperature: -40 ~ 85 *c and 60 *c @95% RH non-condensing</span> | ||
+ | |||
+ | |} | ||
| | ||
− | == ''' | + | {| border="0" cellpadding="0" cellspacing="0" style="width:100%;" |
+ | |- | ||
+ | | style="width:40%;vertical-align: top;line-height:20px;padding-bottom:5px;line-height:20px;color: #4e62a1;font-weight: bold;padding-left: 5px;" | '''Ordering Information''' | ||
+ | |- | ||
+ | | style="width:80%; vertical-align: top;padding-left: 5px;" | | ||
+ | {| border="0" cellpadding="5" cellspacing="0" style="width:100%;" | ||
+ | |- | ||
+ | | style="width:15%;min-width:120px;vertical-align: top;padding-left:5px;line-height:20px;background-color: rgb(54, 100, 177);color:#ffffff;" | P/N | ||
+ | | style="width:85%;vertical-align: top;padding-left:5px;line-height:20px;background-color: rgb(54, 100, 177);color:#ffffff;" | Description | ||
+ | |- | ||
+ | | style="vertical-align: top;line-height:20px;;padding-left:5px;background-color: #f7f7f7;" | UIO-4030 | ||
+ | | style="vertical-align: top;line-height:20px;;padding-left:5px;background-color: #f7f7f7;" | 1x RS232, 4x Dis, 4x DOs, 1x RS-485 | ||
+ | |} | ||
+ | <p style="text-align: right;padding-right:0px;padding-bottom:10px;padding-top:10px;">[http://ess-wiki.advantech.com.tw/view/AIM-Linux/UIO40-Express <span style="color:#994895;border:solid 1px #994895; padding:10px 20px;text-decoration: none;">Find Other Products</span>]</p> | ||
+ | |} | ||
+ | |||
+ | |} | ||
+ | |||
+ | = 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)''' | ||
Line 30: | Line 64: | ||
pin#11: gpio 127, pin#12: 133</pre> | pin#11: gpio 127, pin#12: 133</pre> | ||
− | = | + | = RSB-3720 = |
'''RS-232(COM3):''' | '''RS-232(COM3):''' | ||
Line 48: | Line 82: | ||
'''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 DI1#)<br/> output pin#6: gpio 505(DB9-6 DO1#)<br/> input pin#7: gpio 506(DB9-2 DI2#)<br/> output pin#8: gpio 507(DB9-7 DO2#)<br/> input pin#9: gpio 508(DB9-3 DI3#)<br/> output pin#10: gpio 509(DB9-8 DO3#)<br/> input pin#11: gpio 139(DB9-4 DI4#)<br/> output pin#12: gpio 138(DB9-9 DO4#) |
+ | |||
+ | Short DI1# to DO1# | ||
<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 59: | Line 95: | ||
[[File:RSB-3720 GPIOp1.png|RTENOTITLE]] | [[File:RSB-3720 GPIOp1.png|RTENOTITLE]] | ||
+ | |||
+ | Short DI2# to DO2# | ||
<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 68: | Line 106: | ||
[[File:RSB-3720 GPIOp2.png|RTENOTITLE]] | [[File:RSB-3720 GPIOp2.png|RTENOTITLE]] | ||
+ | |||
+ | Short DI3# to DO3# | ||
<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 78: | Line 118: | ||
[[File:RSB-3720 GPIOp3.png|RTENOTITLE]] | [[File:RSB-3720 GPIOp3.png|RTENOTITLE]] | ||
+ | |||
+ | Short DI4# to DO4# | ||
<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 87: | Line 129: | ||
[[File:RSB-3720 GPIOp4.png|RTENOTITLE]] | [[File:RSB-3720 GPIOp4.png|RTENOTITLE]] | ||
+ | |||
+ | = RSB-3730 = | ||
+ | |||
+ | ''' Note: RS-232: /dev/ttymxc2 <br/> GPIO : need to connect loopback.<br/> RS-485: pin1 data- & pin2 data+ (ttyUSB0)''' | ||
+ | |||
+ | '''RS-232''' | ||
+ | |||
+ | '''U-boot Setting''' | ||
+ | <pre>u-boot=> setenv uart_mode 2:0 | ||
+ | u-boot=> saveenv | ||
+ | u-boot => reset</pre> | ||
+ | |||
+ | '''[[File:RSB3730 UIO 4030 uboot setting.png|RTENOTITLE]]''' | ||
+ | <pre>$ stty -F /dev/ttymxc0 -echo -onlcr 115200 | ||
+ | $ cat /dev/ttymxc0 & | ||
+ | $ echo "Serial Port Test" > /dev/ttymxc0 | ||
+ | </pre> | ||
+ | |||
+ | [[File:RSB3730 UIO 4030 uart test.png|RTENOTITLE]] | ||
+ | |||
+ | | ||
+ | |||
+ | '''RS485 ''' | ||
+ | |||
+ | '''U-boot Setting''' | ||
+ | <pre>u-boot=> setenv uart_mode 2:0 | ||
+ | u-boot=> saveenv | ||
+ | u-boot => reset</pre> | ||
+ | |||
+ | '''[[File:RSB3730 UIO 4030 485 test.png|RTENOTITLE]]''' | ||
+ | |||
+ | ''' <br/> Test RS-485 ''' | ||
+ | <pre>$ 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</pre> | ||
+ | |||
+ | [[File:RSB3730 UIO 4030 485 test loop1.png|RTENOTITLE]] | ||
+ | |||
+ | '''GPIO ''' | ||
+ | |||
+ | {| border="1" cellpadding="1" cellspacing="1" style="width: 249px;" | ||
+ | |- | ||
+ | | style="width: 109px;" | GPIO pin | ||
+ | | style="width: 128px;" | Number | ||
+ | |- | ||
+ | | style="width: 109px;" | GPIO1 | ||
+ | | style="width: 128px;" | 150 | ||
+ | |- | ||
+ | | style="width: 109px;" | GPIO2 | ||
+ | | style="width: 128px;" | 151 | ||
+ | |- | ||
+ | | style="width: 109px;" | GPIO3 | ||
+ | | style="width: 128px;" | 152 | ||
+ | |- | ||
+ | | style="width: 109px;" | GPIO4 | ||
+ | | style="width: 128px;" | 153 | ||
+ | |- | ||
+ | | style="width: 109px;" | GPIO5 | ||
+ | | style="width: 128px;" | 85 | ||
+ | |- | ||
+ | | style="width: 109px;" | GPIO6 | ||
+ | | style="width: 128px;" | 141 | ||
+ | |- | ||
+ | | style="width: 109px;" | GPIO7 | ||
+ | | style="width: 128px;" | 506 | ||
+ | |- | ||
+ | | style="width: 109px;" | GPIO8 | ||
+ | | style="width: 128px;" | 140 | ||
+ | |- | ||
+ | | style="width: 109px;" | GPIO9 | ||
+ | | style="width: 128px;" | 511 | ||
+ | |- | ||
+ | | style="width: 109px;" | GPIO10 | ||
+ | | style="width: 128px;" | 138 | ||
+ | |- | ||
+ | | style="width: 109px;" | GPIO11 | ||
+ | | style="width: 128px;" | 0 | ||
+ | |- | ||
+ | | style="width: 109px;" | GPIO12 | ||
+ | | style="width: 128px;" | 97 | ||
+ | |- | ||
+ | | style="width: 109px;" | GPIO_Select | ||
+ | | style="width: 128px;" | LOW (83) | ||
+ | |} | ||
+ | <pre align="left" style="margin-top: 6pt; text-align: left;">Short GPIO pin1(in) 151 & pin6(out) 141 | ||
+ | # echo 150 > /sys/class/gpio/export | ||
+ | # echo 141 > /sys/class/gpio/export | ||
+ | # echo in > /sys/class/gpio/gpio1/direction | ||
+ | # echo out > /sys/class/gpio/gpio2/direction | ||
+ | # echo 1 > /sys/class/gpio/gpio2/value | ||
+ | # cat /sys/class/gpio/gpio1/value | ||
+ | 0 | ||
+ | # cat /sys/class/gpio/gpio2/value | ||
+ | 1 | ||
+ | </pre> | ||
+ | |||
+ | [[File:RSB3730 UIO 4030 gpio.png|RTENOTITLE]] | ||
+ | <pre>Short GPIO pin2 (in) 151 & pin7 (out) 506 | ||
+ | # echo 151 > /sys/class/gpio/export | ||
+ | # echo 506 > /sys/class/gpio/export | ||
+ | # echo in > /sys/class/gpio/gpio3/direction | ||
+ | # echo out > /sys/class/gpio/gpio4/direction | ||
+ | # echo 1 > /sys/class/gpio/gpio4/value | ||
+ | # cat /sys/class/gpio/gpio3/value | ||
+ | 0 | ||
+ | |||
+ | Short GPIO pin3(in) 152 & pin 8 (out) 140 | ||
+ | # echo 152 > /sys/class/gpio/export | ||
+ | # echo 140 > /sys/class/gpio/export | ||
+ | # echo in > /sys/class/gpio/gpio5/direction | ||
+ | # echo out > /sys/class/gpio/gpio6/direction | ||
+ | # echo 1 > /sys/class/gpio/gpio6/value | ||
+ | # cat /sys/class/gpio/gpio6/value | ||
+ | 1 | ||
+ | # cat /sys/class/gpio/gpio5/value | ||
+ | 0 | ||
+ | </pre> | ||
+ | |||
+ | | ||
+ | <pre>Short GPIO pin4 (in) 153 & pin9 (out) 511 | ||
+ | # echo 153 > /sys/class/gpio/export | ||
+ | # echo 511 > /sys/class/gpio/export | ||
+ | # echo in > /sys/class/gpio/gpio1/direction | ||
+ | # echo out > /sys/class/gpio/gpio2/direction | ||
+ | # echo 1 > /sys/class/gpio/gpio2/value | ||
+ | # cat /sys/class/gpio/gpio1/value | ||
+ | 0 | ||
+ | </pre> | ||
+ | |||
+ | | ||
+ | |||
+ | = RSB-3710 = | ||
+ | |||
+ | ''' Note: RS-232: /dev/ttyS0 <br/> GPIO : need to connect loopback.<br/> RS-485: pin1 data- & pin2 data+ (ttyUSB0)''' | ||
+ | |||
+ | '''RS-232''' | ||
+ | <pre>$ stty -F /dev/ttyS0 -echo -onlcr 115200 crtscts | ||
+ | $ cat /dev/ttyS0 & | ||
+ | $ echo "Serial Port Test" > /dev/ttyS0</pre> | ||
+ | |||
+ | '''RS485 <br/> <br/> Test RS-485 with Adam-4520.''' | ||
+ | <pre>$ stty -F /dev/ttyUSB0 115200 | ||
+ | $ echo "Serial Test" > /dev/ttyUSB0</pre> | ||
+ | |||
+ | '''GPIO ''' | ||
+ | |||
+ | '''[[File:RSB-3710 GPIO define 2022-01-20 142613.jpg|RTENOTITLE]]''' | ||
+ | |||
+ | [[File:RSB-3710 gpio1 2022-01-20 142757.jpg|RTENOTITLE]] | ||
+ | |||
+ | [[File:RSB-3710 gpio2 2022-01-20 142824.jpg|RTENOTITLE]] | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | = RSB-3810 = | ||
+ | |||
+ | === '''UIO-4030使用方法(UIO-4030 Testing Method):'''[[https://ess-wiki.advantech.com.tw/wiki/index.php?title=RSB-3810_user_guide_Ubuntu22.04&action=edit§ion=27 edit]] === | ||
+ | |||
+ | {| border="1" cellpadding="1" cellspacing="1" | ||
+ | |- | ||
+ | | 1 | ||
+ | | UART(COM_3) | ||
+ | | # stty -F /dev/ttyS3 -echo -onlcr 921600 raw<br/> # cat /dev/ttyS3 &<br/> # echo "Serial Port Test" > /dev/ttyS3<br/> or<br/> #microcom -s 921600 -X /dev/ttyS3 | ||
+ | |- | ||
+ | | 2 | ||
+ | | GPIO | ||
+ | | | ||
+ | 4 DI & 4 DO Pins (UIO Extension_UIO2)<br/> input pin#5: gpio 317 <br/> output pin#6: gpio 318 <br/> input pin#7: gpio 319<br/> output pin#8: gpio 320<br/> input pin#9: gpio 321<br/> output pin#10: gpio 322<br/> input pin#11: gpio 323<br/> output pin#12: gpio 324 | ||
+ | |||
+ | (Note: gpio 323 & gpio 324 need to set the gpio 345 to high) | ||
+ | |||
+ | |- | ||
+ | | 3 | ||
+ | | RS-485(COM_4) | ||
+ | | Test RS-485 with Adam-4520. Adam-4520 Pin Data- and Pin<br/> Data+ connect to UIO-4030 COM_4 Pin 1 and Pin 2.<br/> # stty -F /dev/ttyUSB0 speed 115200 ignbrk -brkint -icrnl - imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke<br/> # cat /dev/ttyUSB0 &<br/> # echo "Serial Test" > /dev/ttyUSB0 | ||
+ | |- | ||
+ | | 4 | ||
+ | | EEPROM | ||
+ | | # echo -n $'\x06\x05\x04\x03\x02\x01' > /data/test1<br/> # dd if=/data/test1 of=/sys/bus/i2c/devices/3-0050/eeprom # dd if=/sys/bus/i2c/devices/3-0050/eeprom of=/data/test2 conv=fsync | ||
+ | |} | ||
+ | |||
+ | == <headertabs></headertabs> == |
Latest revision as of 09:56, 1 November 2024
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
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 DI1#)
output pin#6: gpio 505(DB9-6 DO1#)
input pin#7: gpio 506(DB9-2 DI2#)
output pin#8: gpio 507(DB9-7 DO2#)
input pin#9: gpio 508(DB9-3 DI3#)
output pin#10: gpio 509(DB9-8 DO3#)
input pin#11: gpio 139(DB9-4 DI4#)
output pin#12: gpio 138(DB9-9 DO4#)
Short DI1# to DO1#
# 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
Short DI2# to DO2#
# 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
Short DI3# to DO3#
# 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
Short DI4# to DO4#
# 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
Note: RS-232: /dev/ttymxc2
GPIO : need to connect loopback.
RS-485: pin1 data- & pin2 data+ (ttyUSB0)
RS-232
U-boot Setting
u-boot=> setenv uart_mode 2:0 u-boot=> saveenv u-boot => reset
$ stty -F /dev/ttymxc0 -echo -onlcr 115200 $ cat /dev/ttymxc0 & $ echo "Serial Port Test" > /dev/ttymxc0
RS485
U-boot Setting
u-boot=> setenv uart_mode 2:0 u-boot=> saveenv u-boot => reset
Test RS-485
$ 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
GPIO pin | Number |
GPIO1 | 150 |
GPIO2 | 151 |
GPIO3 | 152 |
GPIO4 | 153 |
GPIO5 | 85 |
GPIO6 | 141 |
GPIO7 | 506 |
GPIO8 | 140 |
GPIO9 | 511 |
GPIO10 | 138 |
GPIO11 | 0 |
GPIO12 | 97 |
GPIO_Select | LOW (83) |
Short GPIO pin1(in) 151 & pin6(out) 141 # echo 150 > /sys/class/gpio/export # echo 141 > /sys/class/gpio/export # echo in > /sys/class/gpio/gpio1/direction # echo out > /sys/class/gpio/gpio2/direction # echo 1 > /sys/class/gpio/gpio2/value # cat /sys/class/gpio/gpio1/value 0 # cat /sys/class/gpio/gpio2/value 1
Short GPIO pin2 (in) 151 & pin7 (out) 506 # echo 151 > /sys/class/gpio/export # echo 506 > /sys/class/gpio/export # echo in > /sys/class/gpio/gpio3/direction # echo out > /sys/class/gpio/gpio4/direction # echo 1 > /sys/class/gpio/gpio4/value # cat /sys/class/gpio/gpio3/value 0 Short GPIO pin3(in) 152 & pin 8 (out) 140 # echo 152 > /sys/class/gpio/export # echo 140 > /sys/class/gpio/export # echo in > /sys/class/gpio/gpio5/direction # echo out > /sys/class/gpio/gpio6/direction # echo 1 > /sys/class/gpio/gpio6/value # cat /sys/class/gpio/gpio6/value 1 # cat /sys/class/gpio/gpio5/value 0
Short GPIO pin4 (in) 153 & pin9 (out) 511 # echo 153 > /sys/class/gpio/export # echo 511 > /sys/class/gpio/export # echo in > /sys/class/gpio/gpio1/direction # echo out > /sys/class/gpio/gpio2/direction # echo 1 > /sys/class/gpio/gpio2/value # cat /sys/class/gpio/gpio1/value 0
Note: RS-232: /dev/ttyS0
GPIO : need to connect loopback.
RS-485: pin1 data- & pin2 data+ (ttyUSB0)
RS-232
$ stty -F /dev/ttyS0 -echo -onlcr 115200 crtscts $ cat /dev/ttyS0 & $ echo "Serial Port Test" > /dev/ttyS0
RS485
Test RS-485 with Adam-4520.
$ stty -F /dev/ttyUSB0 115200 $ echo "Serial Test" > /dev/ttyUSB0
GPIO
UIO-4030使用方法(UIO-4030 Testing Method):[edit]
1 | UART(COM_3) | # stty -F /dev/ttyS3 -echo -onlcr 921600 raw # cat /dev/ttyS3 & # echo "Serial Port Test" > /dev/ttyS3 or #microcom -s 921600 -X /dev/ttyS3 |
2 | GPIO |
4 DI & 4 DO Pins (UIO Extension_UIO2) (Note: gpio 323 & gpio 324 need to set the gpio 345 to high) |
3 | RS-485(COM_4) | Test RS-485 with Adam-4520. Adam-4520 Pin Data- and Pin Data+ connect to UIO-4030 COM_4 Pin 1 and Pin 2. # 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 |
4 | EEPROM | # echo -n $'\x06\x05\x04\x03\x02\x01' > /data/test1 # dd if=/data/test1 of=/sys/bus/i2c/devices/3-0050/eeprom # dd if=/sys/bus/i2c/devices/3-0050/eeprom of=/data/test2 conv=fsync |