Difference between revisions of "UIO-4030"

From ESS-WIKI
Jump to: navigation, search
Line 44: Line 44:
 
|}
 
|}
  
=RSB-3430=
+
= RSB-3430 =
  
 
'''&nbsp;Note: RS-232: /dev/ttymxc2&nbsp;<br/> &nbsp;GPIO&nbsp;: need to connect loopback.<br/> &nbsp;RS-485: pin1 data- & pin2 data+ (ttyUSB0)'''
 
'''&nbsp;Note: RS-232: /dev/ttymxc2&nbsp;<br/> &nbsp;GPIO&nbsp;: need to connect loopback.<br/> &nbsp;RS-485: pin1 data- & pin2 data+ (ttyUSB0)'''
Line 121: Line 121:
  
 
[[File:RSB-3720 GPIOp4.png|RTENOTITLE]]
 
[[File:RSB-3720 GPIOp4.png|RTENOTITLE]]
 
  
 
= RSB-3730 =
 
= RSB-3730 =
Line 161: Line 160:
  
 
'''GPIO&nbsp;'''
 
'''GPIO&nbsp;'''
 +
<pre>[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</pre>
  
{| border="1" cellpadding="1" cellspacing="1" style="width: 249px;"
+
== <br/> <br/> <br/> <!--[[File:UIO-4030 photo3 2021-10-27 141714.jpg|RTENOTITLE]]--> ==
|-
 
| 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>
 
  
&nbsp;
+
<headertabs></headertabs>
<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>
 

Revision as of 02:52, 17 August 2023

RTENOTITLE

General Specificationn

  • 1 x 2 wires RS-232
  • 1 xRS-485
  • GPIO: 4 DIs and 4 DOs (2.5~24V)
  • Dimension: 146 x 31 x 22 mm

Environment Specification

  • Weight: 180g
  • Operating Humidity: 5 ~ 95% relative humidity, non-condensing
  • Operating Temperature: -40 ~ 85 *C
  • Storage Temperature: -40 ~ 85 *c and 60 *c @95% RH non-condensing

 

Ordering Information
P/N Description
UIO-4030 1x RS232, 4x Dis, 4x DOs, 1x RS-485

Find Other Products

[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

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

RTENOTITLE

# 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

RTENOTITLE

# 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

RTENOTITLE

# 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

RTENOTITLE

 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

RTENOTITLE

$ stty -F /dev/ttymxc0 -echo -onlcr 115200
$ cat /dev/ttymxc0 &
$ echo "Serial Port Test" > /dev/ttymxc0

RTENOTITLE

 

RS485 

U-boot Setting

u-boot=> setenv uart_mode 2:0
u-boot=> saveenv
u-boot => reset

RTENOTITLE

    
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

RTENOTITLE

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