Difference between revisions of "UIO-4032TEST"

From ESS-WIKI
Jump to: navigation, search
Line 48: Line 48:
 
= 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)'''
+
'''RS-232 x2&nbsp;:&nbsp;<br/> &nbsp;Note:ttymxc2 –COM_3 ttymxc3-COM_4'''
 
+
<pre>'''$ stty -F /dev/ttymxc2 -echo -onlcr 115200 crtscts
'''RS-232'''
 
<pre>$ stty -F /dev/ttymxc2 -echo -onlcr 115200 crtscts
 
 
$ cat /dev/ttymxc2 &
 
$ cat /dev/ttymxc2 &
 
$ echo "Serial Port Test" > /dev/ttymxc2</pre>
 
$ echo "Serial Port Test" > /dev/ttymxc2</pre>
  
'''RS485&nbsp;<br/> &nbsp;&nbsp; &nbsp;<br/> Test RS-485 with Adam-4520.'''
+
'''USB'''&nbsp;
<pre>$ stty -F /dev/ttyUSB0 115200
+
<pre>Insert a USB disk
$ echo "Serial Test" > /dev/ttyUSB0</pre>
+
 
 +
usb 1-1.2: new high-speed USB device number 4 using ci_hdrc
 +
usb-storage 1-1.2:1.0: USB Mass Storage device detected
 +
scsi2&nbsp;: usb-storage 1-1.2:1.0
 +
scsi 2:0:0:0: Direct-Access    Generic- SD/MMC          1.00 PQ: 0 ANSI: 0 CCS
 +
sd 2:0:0:0: [sda] 3862528 512-byte logical blocks: (1.97 GB/1.84 GiB)
 +
sd 2:0:0:0: [sda] Write Protect is off
 +
sd 2:0:0:0: [sda] No Caching mode page found
 +
sd 2:0:0:0: [sda] Assuming drive cache: write through
 +
sd 2:0:0:0: [sda] No Caching mode page found
 +
sd 2:0:0:0: [sda] Assuming drive cache: write through
 +
sda: sda1
 +
sd 2:0:0:0: [sda] No Caching mode page found
 +
sd 2:0:0:0: [sda] Assuming drive cache: write through
 +
sd 2:0:0:0: [sda] Attached SCSI removable disk</pre>
  
'''GPIO&nbsp;'''
+
'''LAN'''
<pre>[EXTENSION I/O B]
+
<pre>ifconfig eth1 8.8.8.8 </pre>
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>
 
  
 
= RSB-3720 =
 
= RSB-3720 =
  
== '''RSB-3720 Testing method (RSB-3720&nbsp;測試方法&nbsp;)''' ==
+
== '''RSB-3720 Testing method (RSB-3720&nbsp;測試方法)''' ==
 +
 
 +
COM Port&nbsp;<br/> Rear IO – RS-232 x 2<br/> USB x 2<br/> Ethernet x 1<br/> Note:<br/> ttymxc1 – COM3<br/> ttymxc3 – COM4
  
 
'''RS-232(COM3):'''
 
'''RS-232(COM3):'''
 
<pre># stty -F /dev/ttymxc1 -echo -onlcr 115200
 
<pre># stty -F /dev/ttymxc1 -echo -onlcr 115200
 
# cat /dev/ttymxc1 &
 
# cat /dev/ttymxc1 &
# echo "Serial Port Test" /dev/ttymxc1</pre>
+
# echo "Serial Port Test" > /dev/ttymxc1</pre>
  
'''RS-485'''
+
[[File:RSB-3720 4032 232 pic1.png|RTENOTITLE]]
  
'''Note:&nbsp;'''
+
'''RS-232(COM3):'''
 +
<pre># stty -F /dev/ttymxc3 -echo -onlcr 115200
 +
# cat /dev/ttymxc3 &
 +
# echo "Serial Port Test" > /dev/ttymxc3</pre>
  
'''Adam-4520<br/> Data-&nbsp;: Pin1<br/> Data+&nbsp;: Pin2<br/> Remember to set up RS-485 before test.'''
+
[[File:RSB-3720 4032 232 pic2.png|RTENOTITLE]]
<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>
 
  
'''GPIO'''
+
'''USB&nbsp;&nbsp;'''
 +
<pre>USB3.0 HUB+USB Keyeboard&Mouse
 +
USB3.0 driver data copy compare</pre>
  
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)
+
'''Ethernet'''&nbsp;
<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>
 
  
[[File:RSB-3720 GPIOp1.png|RTENOTITLE]]
+
[[File:RSB-3720 4032 ethernet pic1.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>
 
  
[[File:RSB-3720 GPIOp2.png|RTENOTITLE]]
+
[[File:RSB-3720 4032 ethernet pic2.png|RTENOTITLE]]
<pre># 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
 
</pre>
 
  
[[File:RSB-3720 GPIOp3.png|RTENOTITLE]]
+
&nbsp;
<pre># 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</pre>
 
  
[[File:RSB-3720 GPIOp4.png|RTENOTITLE]]
+
<!--== '''接口布局和尺寸(Layout and Sizes)''' == --><!--'''[[File:UIO-4032 photo1 2021-10-27 143242.jpg|RTENOTITLE]]''' --><!--&#160;
  
== <br/> <br/> <br/> <!--[[File:UIO-4030 photo3 2021-10-27 141714.jpg|RTENOTITLE]]--> ==
+
<!--'''[[File:UIO-4032 photo2 2021-10-27 143326.jpg|RTENOTITLE]]''' --><!--&#160;--><!--'''[[File:UIO-4032 photo3 2021-10-27 143358.jpg|RTENOTITLE]]'''-->
  
 
<headertabs></headertabs>
 
<headertabs></headertabs>

Revision as of 05:11, 23 June 2023

RTENOTITLE

General Specificationn

  • 2 x USB 2.0
  • 2 x 2 wires RS-232
  • GPIO: 1 xGbE
  • Dimension: 146 x 31 x 22mm

Environment Specification

  • Weight: 200g
  • 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-4032 UIO-4032, 1 GbE,

2 USB, 2 RS-232

Find Other Products

[edit]

RS-232 x2 : 
 Note:ttymxc2 –COM_3 ttymxc3-COM_4

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

USB 

Insert a USB disk

usb 1-1.2: new high-speed USB device number 4 using ci_hdrc
usb-storage 1-1.2:1.0: USB Mass Storage device detected
scsi2 : usb-storage 1-1.2:1.0
scsi 2:0:0:0: Direct-Access     Generic- SD/MMC           1.00 PQ: 0 ANSI: 0 CCS
sd 2:0:0:0: [sda] 3862528 512-byte logical blocks: (1.97 GB/1.84 GiB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] No Caching mode page found
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] No Caching mode page found
sd 2:0:0:0: [sda] Assuming drive cache: write through
sda: sda1
sd 2:0:0:0: [sda] No Caching mode page found
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] Attached SCSI removable disk

LAN

ifconfig eth1 8.8.8.8 

RSB-3720 Testing method (RSB-3720 測試方法)

COM Port 
Rear IO – RS-232 x 2
USB x 2
Ethernet x 1
Note:
ttymxc1 – COM3
ttymxc3 – COM4

RS-232(COM3):

# stty -F /dev/ttymxc1 -echo -onlcr 115200
# cat /dev/ttymxc1 &
# echo "Serial Port Test" > /dev/ttymxc1

RTENOTITLE

RS-232(COM3):

# stty -F /dev/ttymxc3 -echo -onlcr 115200
# cat /dev/ttymxc3 &
# echo "Serial Port Test" > /dev/ttymxc3

RTENOTITLE

USB  

USB3.0 HUB+USB Keyeboard&Mouse
USB3.0 driver data copy compare

Ethernet 

RTENOTITLE

RTENOTITLE