Difference between revisions of "RSB-3730 Yocto4.2 UIO Test"
From ESS-WIKI
Xingxing.li (talk | contribs) (→RS-232) |
Xingxing.li (talk | contribs) |
||
(20 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
== '''UIO-4030 Function''' == | == '''UIO-4030 Function''' == | ||
Line 21: | Line 20: | ||
[[File:RSB-3730 UIO-4030 RS-232 setting.png|RTENOTITLE]] | [[File:RSB-3730 UIO-4030 RS-232 setting.png|RTENOTITLE]] | ||
− | |||
=== '''RS-232(COM_3)''' === | === '''RS-232(COM_3)''' === | ||
Line 36: | Line 34: | ||
[[File:RSB-3730 UIO CN3 GPIO.png|500x300px|RSB-3730 UIO CN3 GPIO.png]] | [[File:RSB-3730 UIO CN3 GPIO.png|500x300px|RSB-3730 UIO CN3 GPIO.png]] | ||
− | {| border="1" cellpadding="1" cellspacing="1" | + | {| border="1" cellpadding="1" cellspacing="1" style="width: 233px;" |
|- | |- | ||
− | | '''GPIO Pin''' | + | | style="width: 95px;" | '''GPIO Pin''' |
− | | '''Number''' | + | | style="width: 125px;" | '''Number''' |
|- | |- | ||
− | | GPIO 1 | + | | style="width: 95px;" | GPIO 1 |
− | | 150 | + | | style="width: 125px;" | 150 |
|- | |- | ||
− | | GPIO 2 | + | | style="width: 95px;" | GPIO 2 |
− | | 151 | + | | style="width: 125px;" | 151 |
|- | |- | ||
− | | GPIO 3 | + | | style="width: 95px;" | GPIO 3 |
− | | 152 | + | | style="width: 125px;" | 152 |
|- | |- | ||
− | | GPIO 4 | + | | style="width: 95px;" | GPIO 4 |
− | | 153 | + | | style="width: 125px;" | 153 |
|- | |- | ||
− | | GPIO 5 | + | | style="width: 95px;" | GPIO 5 |
− | | 85 | + | | style="width: 125px;" | 85 |
|- | |- | ||
− | | GPIO 6 | + | | style="width: 95px;" | GPIO 6 |
− | | 141 | + | | style="width: 125px;" | 141 |
|- | |- | ||
− | | GPIO 7 | + | | style="width: 95px;" | GPIO 7 |
− | | 506 | + | | style="width: 125px;" | 506 |
|- | |- | ||
− | | GPIO 8 | + | | style="width: 95px;" | GPIO 8 |
− | | 140 | + | | style="width: 125px;" | 140 |
|- | |- | ||
− | | GPIO 9 | + | | style="width: 95px;" | GPIO 9 |
− | | 511 | + | | style="width: 125px;" | 511 |
|- | |- | ||
− | | GPIO 10 | + | | style="width: 95px;" | GPIO 10 |
− | | 138 | + | | style="width: 125px;" | 138 |
|- | |- | ||
− | | GPIO 11 | + | | style="width: 95px;" | GPIO 11 |
− | | 0 | + | | style="width: 125px;" | 0 |
|- | |- | ||
− | | GPIO 12 | + | | style="width: 95px;" | GPIO 12 |
− | | 97 | + | | style="width: 125px;" | 97 |
|- | |- | ||
− | | GPIO_Select | + | | style="width: 95px;" | GPIO_Select |
− | | LOW (83) | + | | style="width: 125px;" | LOW (83) |
|} | |} | ||
− | '''for example:Short GPIO pin1(in) | + | '''for example:Short GPIO pin1(in) 150 & 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 94: | Line 92: | ||
[[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:''' | ||
+ | <pre>u-boot=> setenv uart_mode 2:1 | ||
+ | u-boot=> saveenv | ||
+ | Saving Environment to MMC... Writing to MMC(2)... OK | ||
+ | u-boot=> reset</pre> | ||
[[File:RSB-3730 UIO-4030 RS-485 Setting.png|RTENOTITLE]] | [[File:RSB-3730 UIO-4030 RS-485 Setting.png|RTENOTITLE]] | ||
− | '''RS- | + | '''RS-485(COM_4):''' |
+ | |||
+ | '''Note:Need one Adam-4520I module for RS-485.''' | ||
<pre># stty -F /dev/ttyUSB0 speed 115200 ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke | <pre># stty -F /dev/ttyUSB0 speed 115200 ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke | ||
# cat /dev/ttyUSB0 & | # cat /dev/ttyUSB0 & | ||
Line 108: | Line 113: | ||
[[File:RSB-3730 UIO-4030 RS-485.png|800x400px|RSB-3730 UIO-4030 RS-485.png]] | [[File:RSB-3730 UIO-4030 RS-485.png|800x400px|RSB-3730 UIO-4030 RS-485.png]] | ||
+ | |||
+ | == '''UIO-4032 Function''' == | ||
+ | |||
+ | [[File:RSB-3730 UIO-4032 spec.png|500x300px|RSB-3730 UIO-4032 spec.png]][[File:RSB-3730 UIO-4032 Specifications.png|500x300px|RSB-3730 UIO-4032 Specifications.png]] | ||
+ | |||
+ | '''Note:''' | ||
+ | |||
+ | RS-232 Device :ttymxc0-COM3, ttymxc3-COM4 | ||
+ | |||
+ | === '''RS-232 x2''' === | ||
+ | |||
+ | '''COM_3''' | ||
+ | <pre># stty -F /dev/ttymxc0 -echo -onlcr 115200 | ||
+ | # cat /dev/ttymxc1 & | ||
+ | # echo "Serial Port Test" > /dev/ttymxc0 | ||
+ | </pre> | ||
+ | |||
+ | [[File:RSB-3730 UIO-4032 RS-232 setting.png|RTENOTITLE]] | ||
+ | |||
+ | '''COM_4''' | ||
+ | |||
+ | [[File:RSB-3730 UIO-4032 RS-232.png|RTENOTITLE]] | ||
+ | |||
+ | === '''USB x2''' === | ||
+ | |||
+ | USB3.0 HUB+USB Keyeboard&Mouse. | ||
+ | |||
+ | === '''Ethernet''' === | ||
+ | |||
+ | [[File:RSB-3730 UIO-4032 Ethernet.png|600x800px|RSB-3730 UIO-4032 Ethernet.png]] | ||
+ | |||
+ | |||
+ | == '''UIO-4034 Function''' == | ||
+ | |||
+ | [[File:RSB-3730 UIO-4034 spec.png|500x300px|RSB-3730 UIO-4034 spec.png]][[File:RSB-3730 UIO-4034 specifitions.png|500x300px|RSB-3730 UIO-4034 specifitions.png]] | ||
+ | |||
+ | '''Note: RSB-3730 not support UIO-4034 CAN Function.''' | ||
+ | |||
+ | === '''RS-232''' === | ||
+ | |||
+ | '''COM_3''' | ||
+ | <pre># stty -F /dev/ttymxc0 -echo -onlcr 115200 | ||
+ | # cat /dev/ttymxc0 & | ||
+ | # echo "Serial Port Test" > /dev/ttymxc0</pre> | ||
+ | |||
+ | [[File:RSB-3730 UIO-4034 RS232 COM3.png|RTENOTITLE]] | ||
+ | |||
+ | '''COM_4''' | ||
+ | |||
+ | [[File:RSB-3730 UIO-4034 RS232 COM4.png|RTENOTITLE]] | ||
+ | |||
+ | === '''CAN''' === | ||
+ | |||
+ | '''RSB-3730 not support UIO-4034 CAN Function''' | ||
+ | |||
+ | == '''UIO-4036 Function''' == | ||
+ | |||
+ | [[File:RSB-3730 UIO-4036.png|300x300px|RSB-3730 UIO-4036.png]][[File:RSB-3730 UIO-4036 Specifications.png|300x300px|RSB-3730 UIO-4036 Specifications.png]] | ||
+ | |||
+ | | ||
+ | |||
+ | |||
+ | === '''Ethernet''' === | ||
+ | |||
+ | '''Note:The RSB-3730 is configured with the UIO-4036 module. The four network ports on the UIO-4036 module use the same eth1 node.''' | ||
+ | |||
+ | [[File:RSB-3730 UIO-4036 Eth1.png|600x800px|RSB-3730 UIO-4036 Eth1.png]] |
Latest revision as of 10:13, 18 July 2024
Contents
UIO-4030 Function
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:
u-boot=> setenv uart_mode 2:0 u-boot=> saveenv Saving Environment to MMC... Writing to MMC(2)... OK u-boot=> reset
RS-232(COM_3)
# stty -F /dev/ttymxc0 -echo -onlcr 115200 # cat /dev/ttymxc0 & [1] 653 # echo "Serial Port Test" > /dev/ttymxc0 Serial Port Test
CN3_GPIO
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) |
for example:Short GPIO pin1(in) 150 & 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
RS-485
RS-485 U-boot Setting:
u-boot=> setenv uart_mode 2:1 u-boot=> saveenv Saving Environment to MMC... Writing to MMC(2)... OK u-boot=> reset
RS-485(COM_4):
Note:Need one Adam-4520I module for 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
UIO-4032 Function
Note:
RS-232 Device :ttymxc0-COM3, ttymxc3-COM4
RS-232 x2
COM_3
# stty -F /dev/ttymxc0 -echo -onlcr 115200 # cat /dev/ttymxc1 & # echo "Serial Port Test" > /dev/ttymxc0
COM_4
USB x2
USB3.0 HUB+USB Keyeboard&Mouse.
Ethernet
UIO-4034 Function
Note: RSB-3730 not support UIO-4034 CAN Function.
RS-232
COM_3
# stty -F /dev/ttymxc0 -echo -onlcr 115200 # cat /dev/ttymxc0 & # echo "Serial Port Test" > /dev/ttymxc0
COM_4
CAN
RSB-3730 not support UIO-4034 CAN Function
UIO-4036 Function
Ethernet
Note:The RSB-3730 is configured with the UIO-4036 module. The four network ports on the UIO-4036 module use the same eth1 node.