Difference between revisions of "UIO-4030/TEST"

From ESS-WIKI
Jump to: navigation, search
 
(28 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
{| border="0" cellpadding="5" cellspacing="0" style="width:100%;"
 
{| border="0" cellpadding="5" cellspacing="0" style="width:100%;"
 
|-
 
|-
| style="width: 20%;text-align: center;vertical-align: top;" | [[File:RSB-4810.png|RTENOTITLE]]
+
| 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;" |  
 
| style="width:80%; vertical-align: top;padding-left: 5px;" |  
 
{| border="0" cellpadding="5" cellspacing="0" style="width:100%;"
 
{| border="0" cellpadding="5" cellspacing="0" style="width:100%;"
 
|-
 
|-
| style="width:22%;vertical-align: top;line-height:20px;color: #333333;" |  
+
| 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="color: #4e62a1;font-weight: bold;">'''General Specificationn'''</span>
  
Line 33: Line 33:
 
{| border="0" cellpadding="5" cellspacing="0" style="width:100%;"
 
{| border="0" cellpadding="5" cellspacing="0" style="width:100%;"
 
|-
 
|-
| style="width:15%;vertical-align: top;padding-left:5px;line-height:20px;background-color: rgb(54, 100, 177);color:#ffffff;" | P/N
+
| 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="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;" | UIO-4030
| style="vertical-align: top;line-height:20px;;padding-left:5px;background-color: #f7f7f7;" | 1x RS232, 4x Dis.
+
| style="vertical-align: top;line-height:20px;;padding-left:5px;background-color: #f7f7f7;" | 1x RS232, 4x Dis, 4x DOs, 1x RS-485
4x DOs,1x RS-485
 
 
 
 
|}
 
|}
<p style="text-align: right;padding-right:0px;padding-bottom:10px;">[http://ess-wiki.advantech.com.tw/view/RISC <span style="color:#994895;border:solid 1px #994895; padding:10px 20px;text-decoration: none;">Find Other Products</span>]</p>  
+
<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>  
 
|}
 
|}
  
 
|}
 
|}
  
= Choose by Form Factor =
+
= RSB-3430 =
  
= Choose by Form Factor =
+
'''&nbsp;Note: RS-232: /dev/ttymxc2&nbsp;<br/> &nbsp;GPIO&nbsp;: need to connect loopback.<br/> &nbsp;RS-485: pin1 data- & pin2 data+ (ttyUSB0)'''
  
 +
'''RS-232'''
 +
<pre>$ stty -F /dev/ttymxc2 -echo -onlcr 115200 crtscts
 +
$ cat /dev/ttymxc2 &
 +
$ echo "Serial Port Test" > /dev/ttymxc2</pre>
  
 +
'''RS485&nbsp;<br/> &nbsp;&nbsp; &nbsp;<br/> Test RS-485 with Adam-4520.'''
 +
<pre>$ stty -F /dev/ttyUSB0 115200
 +
$ echo "Serial Test" > /dev/ttyUSB0</pre>
  
*
+
'''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="0" cellpadding="0" cellspacing="5" style="width:100%;"
+
= RSB-3720 =
|-
 
| style="vertical-align: top;" |
 
{| border="0" cellpadding="0" cellspacing="0" style="width:100%;"
 
|-
 
| style="width: 25%; vertical-align: top;padding-lift: 5px;" |
 
{| border="0" cellpadding="5" cellspacing="0" style="width:100%;"
 
|-
 
| style="background-color: rgb(54, 100, 177);" | <span style="color:#FFFFFF;">Debian</span>
 
|-
 
| style="vertical-align: top;line-height:20px;" |
 
Debian 10 (Kernel 4.4.194)<br/> [http://ess-wiki.advantech.com.tw/view/RSB-4810_user_guide User Guide] [http://ess-wiki.advantech.com.tw/view/AIM-Linux/BSP/RK/Linux_Debian_OS_Release_note/Debian10/Internal Release Note]
 
  
|}
+
'''RS-232(COM3):'''
 +
<pre># stty -F /dev/ttymxc1 -echo -onlcr 115200
 +
# cat /dev/ttymxc1 &
 +
# echo "Serial Port Test" /dev/ttymxc1</pre>
  
&nbsp;
+
'''RS-485'''
  
| style="width: 25%; vertical-align: top;padding-left: 5px;" |
+
'''Note:&nbsp;'''
{| border="0" cellpadding="5" cellspacing="0" style="width:100%;"
 
|-
 
| style="background-color: rgb(54, 100, 177);" | <span style="color:#FFFFFF;">Android</span>
 
|-
 
| style="vertical-align: top;line-height:20px;" |
 
Android 12(Kernel 4.19.206)<br/> User Guide [http://ess-wiki.advantech.com.tw/view/AIM-Linux/BSP/RK/Linux_Android_OS_Release_note/Android12/Internal Release Note]
 
  
|}
+
'''Adam-4520<br/> Data-&nbsp;: Pin1<br/> Data+&nbsp;: 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
&nbsp;
+
# cat /dev/ttyUSB0 &
 +
# echo "Serial Test" > /dev/ttyUSB0</pre>
  
|}
+
'''GPIO'''
  
&nbsp;
+
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
 +
# 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
 +
</pre>
  
&nbsp;
+
[[File:RSB-3720 GPIOp1.png|RTENOTITLE]]
 +
<pre># 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</pre>
  
| style="width: 150px; vertical-align: top;" |  
+
[[File:RSB-3720 GPIOp2.png|RTENOTITLE]]
{| border="0" cellpadding="5" cellspacing="0" style="width:100%;"
+
<pre># echo 508 > /sys/class/gpio/export
|-
+
# echo 509 > /sys/class/gpio/export
| style="background-color: rgb(56, 85, 114);" | <span style="color:#FFFFFF;">App Add on</span>
+
# echo out > /sys/class/gpio/gpio6/direction
|-
+
# echo in > /sys/class/gpio/gpio5/direction
| [http://ess-wiki.advantech.com.tw/view/AIMLinux/AddOn/Launcher Launcher]<br/> [http://ess-wiki.advantech.com.tw/view/AIMLinux/AddOn/Protocol Protocal]<br/> [http://ess-wiki.advantech.com.tw/view/AIMLinux/AddOn/Diagnostic Diagnostic]<br/> [http://ess-wiki.advantech.com.tw/view/IoTGateway/BSP/Linux/iMX6/QtCreator DevelopSDK]<br/> [http://ess-wiki.advantech.com.tw/view/AIMLinux/AddOn/Security Security]<br/> [http://ess-wiki.advantech.com.tw/view/AIMLinux/AddOn/Edge_AI Edge AI]<br/> [http://ess-wiki.advantech.com.tw/view/AIMLinux/AddOn/Management Management]<br/> [http://ess-wiki.advantech.com.tw/view/AIMLinux/AddOn/DeviceOn WISE-DeviceOn]
+
# cat /sys/class/gpio/gpio5/value
|}
+
# echo 1 > /sys/class/gpio/gpio6/value
 +
# cat /sys/class/gpio/gpio5/value
 +
</pre>
  
| style="width: 150px; vertical-align: top;" |  
+
[[File:RSB-3720 GPIOp3.png|RTENOTITLE]]
{| border="0" cellpadding="5" cellspacing="0" style="width:100%;"
+
<pre># echo 139 > /sys/class/gpio/export
|-
+
# echo 138 > /sys/class/gpio/export
| style="background-color: rgb(56, 85, 114);" | <span style="color:#FFFFFF;">Documentation</span>
+
# echo out > /sys/class/gpio/gpio8/direction
|-
+
# echo in > /sys/class/gpio/gpio7/direction
| [https://www.advantech.com/search/?q=RSB-4810&st=support&sst=Datasheet Datasheet]<br/> Manual<br/> [https://www.advantech.com/search/?q=RSB-4810&st=support&sst=3D%20Model 3D Model]<br/> Certification
+
# cat /sys/class/gpio/gpio7/value
|}
+
# echo 1 > /sys/class/gpio/gpio8/value
 +
# cat /sys/class/gpio/gpio7/value</pre>
  
|}
+
[[File:RSB-3720 GPIOp4.png|RTENOTITLE]]
  
{| border="0" cellpadding="10" cellspacing="0" style="width:100%;"
+
== <br/> <br/> <br/> <!--[[File:UIO-4030 photo3 2021-10-27 141714.jpg|RTENOTITLE]]--> ==
|-
 
| <iframe height="280" key="advonline" level="campaign" path="en/aim-linux_community/" width="100%"></iframe>
 
|}
 
  
&nbsp;
+
<headertabs></headertabs>

Latest revision as of 09:00, 27 June 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