Difference between revisions of "RSB-3730 UIO Test"

From ESS-WIKI
Jump to: navigation, search
Line 1: Line 1:
  
 +
== '''UIO-4030 Function''' ==
  
=== '''UIO-4030 Function'''<br/> [[File:RSB-3730 UIO-4030 spec.png|500x400px|RSB-3730 UIO-4030 spec.png]][[File:RSB-3730 UIO-4030 specifications.png|500x400px|RSB-3730 UIO-4030 specifications.png]][[File:RSB-3730 UIO CN3 GPIO.png|RTENOTITLE]] ===
+
[[File:RSB-3730 UIO-4030 spec.png|300x150px]][[File:RSB-3730 UIO-4030 specifications.png|300x150px]][[File:RSB-3730 UIO CN3 GPIO.png|300x150px]]
  
 
{| border="1" cellpadding="1" cellspacing="1" style="width: 389px;"
 
{| border="1" cellpadding="1" cellspacing="1" style="width: 389px;"
Line 45: Line 46:
 
|-
 
|-
 
| style="width: 190px;" | GPIO_Select
 
| style="width: 190px;" | GPIO_Select
| style="width: 187px;" | LOW (83)
+
| style="width: 187px;" | LOW (83)&nbsp;
 
|}
 
|}
  
Line 60: Line 61:
 
[[File:RSB-3730 UIO-4030 RS-232 setting.png|RTENOTITLE]]
 
[[File:RSB-3730 UIO-4030 RS-232 setting.png|RTENOTITLE]]
  
'''RS-232(COM3)'''
+
=== '''RS-232(COM3)''' ===
  
 
[[File:RSB-3730 UIO-4030 RS-232.png|RTENOTITLE]]
 
[[File:RSB-3730 UIO-4030 RS-232.png|RTENOTITLE]]
  
'''GPIO-for example'''
+
=== '''GPIO''' ===
  
Short GPIO pin1(in) 151 & pin6(out) 141
+
'''for example:Short GPIO pin1(in) 151 & pin6(out) 141'''
 
<pre># echo 150 > /sys/class/gpio/export
 
<pre># echo 150 > /sys/class/gpio/export
 
# echo 141 > /sys/class/gpio/export
 
# echo 141 > /sys/class/gpio/export
Line 80: Line 81:
 
[[File:RSB-3730 UIO-4030 GPIO.png|RTENOTITLE]]
 
[[File:RSB-3730 UIO-4030 GPIO.png|RTENOTITLE]]
  
'''RS-485'''
+
=== '''RS-485''' ===
  
 
RS-485 U-boot Setting:
 
RS-485 U-boot Setting:
  
[[File:RSB-3730 UIO-4030 RS-485 Setting.png]]
+
[[File:RSB-3730 UIO-4030 RS-485 Setting.png|RTENOTITLE]]
  
 
'''RS-485(COM4):'''
 
'''RS-485(COM4):'''
 +
<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:RSB-3730 UIO-4030 RS-485.png]]'''
+
[[File:RSB-3730 UIO-4030 RS-485.png|800x400px]]

Revision as of 08:19, 13 November 2023

UIO-4030 Function

RSB-3730 UIO-4030 spec.pngRSB-3730 UIO-4030 specifications.pngRSB-3730 UIO CN3 GPIO.png

GPIO Pin Number
GPIO 1 150
GPIO 2 151
GPIO 3 152
GPIO 4 153
GPIO 5 85
GPIO 6 141
GPIO 7 506
GPIO 8 140
GPIO 9 511
GPIO 10 138
GPIO 11 0
GPIO 12 97
GPIO_Select LOW (83) 

Note:

Device:ttymxc0 - COM_3, ttyUSB0 - COM_4(RS-485)

Need one Adam-4520I module for RS-485.

The test method is as follows

RS-232 U-boot setting:

RTENOTITLE

RS-232(COM3)

RTENOTITLE

GPIO

for example: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

RTENOTITLE

RS-485

RS-485 U-boot Setting:

RTENOTITLE

RS-485(COM4):

# 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

RSB-3730 UIO-4030 RS-485.png