Difference between revisions of "UIO-4038TEST"

From ESS-WIKI
Jump to: navigation, search
Line 156: Line 156:
 
= RSB-3720 =
 
= RSB-3720 =
  
'''RS-232(COM3):'''
+
[[File:UIO-4038 RSB-3720 debugport2.jpg|RTENOTITLE]]
<pre># stty -F /dev/ttymxc1 -echo -onlcr 115200
 
# cat /dev/ttymxc1 &
 
# echo "Serial Port Test" /dev/ttymxc1</pre>
 
  
'''RS-485'''
+
&nbsp;
  
'''Note:&nbsp;'''
+
&nbsp;
 +
<pre>login in&nbsp;: root
 +
password&nbsp;: 123456</pre>
  
'''Adam-4520<br/> Data-&nbsp;: Pin1<br/> Data+&nbsp;: Pin2<br/> Remember to set up RS-485 before test.'''
+
[[File:UIO-4038 debugportwindow.PNG|RTENOTITLE]]
<pre># stty -F /dev/ttyUSB0 speed 115200 ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke
+
<pre>check eternet port and eth0 IP address
# cat /dev/ttyUSB0 &
+
$ ifconfig </pre>
# echo "Serial Test" > /dev/ttyUSB0</pre>
 
  
'''GPIO'''
+
LAN0 connect WAN , it will get a IP Address&nbsp;
 +
<pre>root@ADVANTECH:~# ifconfig
 +
br-lan    Link encap:Ethernet  HWaddr 4E:44:86:D5:C6:93
 +
          inet addr:192.168.100.1  Bcast:192.168.100.255  Mask:255.255.255.0
 +
          inet6 addr: fe80::4c44:86ff:fed5:c693/64 Scope:Link
 +
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 +
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
 +
          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
 +
          collisions:0 txqueuelen:1000
 +
          RX bytes:0 (0.0 B)  TX bytes:1298 (1.2 KiB)
  
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)
+
eth0      Link encap:Ethernet  HWaddr 74:FE:48:69:26:2E
<pre># echo 504 > /sys/class/gpio/export
+
          inet addr:172.22.16.131  Bcast:172.22.19.255  Mask:255.255.252.0
# echo 505 > /sys/class/gpio/export
+
          inet6 addr: fe80::76fe:48ff:fe69:262e/64 Scope:Link
# echo out > /sys/class/gpio/gpio2/direction
+
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
# echo in > /sys/class/gpio/gpio1/direction
+
          RX packets:11880 errors:0 dropped:1011 overruns:0 frame:0
# cat /sys/class/gpio/gpio1/value
+
          TX packets:187 errors:0 dropped:0 overruns:0 carrier:0
# echo 1 > /sys/class/gpio/gpio2/value
+
          collisions:0 txqueuelen:1000
# cat /sys/class/gpio/gpio1/value
+
          RX bytes:2104141 (2.0 MiB)  TX bytes:16651 (16.2 KiB)
</pre>
+
          Base address:0x1000
  
[[File:RSB-3720 GPIOp1.png|RTENOTITLE]]
+
eth1      Link encap:Ethernet  HWaddr 4E:44:86:D5:C6:93
<pre># echo 506 > /sys/class/gpio/export
+
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
# echo 507 > /sys/class/gpio/export
+
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
# echo out > /sys/class/gpio/gpio4/direction
+
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
# echo in > /sys/class/gpio/gpio3/direction
+
          collisions:0 txqueuelen:1000
# cat /sys/class/gpio/gpio3/value
+
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
# echo 1 > /sys/class/gpio/gpio4/value
+
          Base address:0x1200
# cat /sys/class/gpio/gpio3/value</pre>
 
  
[[File:RSB-3720 GPIOp2.png|RTENOTITLE]]
+
eth2      Link encap:Ethernet  HWaddr 2A:7A:23:4E:73:5F
<pre># echo 508 > /sys/class/gpio/export
+
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
# echo 509 > /sys/class/gpio/export
+
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
# echo out > /sys/class/gpio/gpio6/direction
+
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
# echo in > /sys/class/gpio/gpio5/direction
+
          collisions:0 txqueuelen:1000
# cat /sys/class/gpio/gpio5/value
+
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
# echo 1 > /sys/class/gpio/gpio6/value
+
          Base address:0x1400
# cat /sys/class/gpio/gpio5/value
 
</pre>
 
  
[[File:RSB-3720 GPIOp3.png|RTENOTITLE]]
+
eth3      Link encap:Ethernet  HWaddr F2:3C:9C:10:4C:DD
<pre># echo 139 > /sys/class/gpio/export
+
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
# echo 138 > /sys/class/gpio/export
+
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
# echo out > /sys/class/gpio/gpio8/direction
+
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
# echo in > /sys/class/gpio/gpio7/direction
+
          collisions:0 txqueuelen:1000
# cat /sys/class/gpio/gpio7/value
+
          RX bytes:0 (0.0 B)  TX bytes:992 (992.0 B)
# echo 1 > /sys/class/gpio/gpio8/value
+
          Base address:0x1600
# cat /sys/class/gpio/gpio7/value</pre>
 
  
[[File:RSB-3720 GPIOp4.png|RTENOTITLE]]
+
eth4      Link encap:Ethernet  HWaddr 86:95:8F:C7:BC:11
 +
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
 +
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
 +
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
 +
          collisions:0 txqueuelen:1000
 +
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
 +
          Base address:0x1800
  
== <br/> <br/> <br/> <!--[[File:UIO-4030 photo3 2021-10-27 141714.jpg|RTENOTITLE]]--> ==
+
lo        Link encap:Local Loopback
 +
          inet addr:127.0.0.1  Mask:255.0.0.0
 +
          inet6 addr:&nbsp;::1/128 Scope:Host
 +
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
 +
          RX packets:34 errors:0 dropped:0 overruns:0 frame:0
 +
          TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
 +
          collisions:0 txqueuelen:1
 +
          RX bytes:4669 (4.5 KiB)  TX bytes:4669 (4.5 KiB)</pre>
 +
 
 +
(LAN1 or LAN 2 or LAN 3) &nbsp;can connect to RSB-3720 ethernet port ( be a HUB Device&nbsp;) .&nbsp;
 +
 
 +
In RSB-3720
 +
 
 +
[[File:UIO-4038 RSB-3720 connection.jpg|RTENOTITLE]]
 +
 
 +
&nbsp;
 +
<pre>root@imx8mprsb3720a1:~# ifconfig
 +
eth0      Link encap:Ethernet  HWaddr 74:fe:48:43:b4:1f
 +
          inet addr:192.168.100.226  Bcast:192.168.100.255  Mask:255.255.255.0
 +
          inet6 addr: fe80::76fe:48ff:fe43:b41f/64 Scope:Link
 +
          UP BROADCAST RUNNING MULTICAST DYNAMIC  MTU:1500  Metric:1
 +
          RX packets:46 errors:0 dropped:0 overruns:0 frame:0
 +
          TX packets:852 errors:0 dropped:0 overruns:0 carrier:0
 +
          collisions:0 txqueuelen:1000
 +
          RX bytes:6882 (6.7 KiB)  TX bytes:122693 (119.8 KiB)
 +
 
 +
eth0:0    Link encap:Ethernet  HWaddr 74:fe:48:43:b4:1f
 +
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
 +
          UP BROADCAST RUNNING MULTICAST DYNAMIC  MTU:1500  Metric:1
 +
 
 +
lo        Link encap:Local Loopback
 +
          inet addr:127.0.0.1  Mask:255.0.0.0
 +
          inet6 addr:&nbsp;::1/128 Scope:Host
 +
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
 +
          RX packets:1468 errors:0 dropped:0 overruns:0 frame:0
 +
          TX packets:1468 errors:0 dropped:0 overruns:0 carrier:0
 +
          collisions:0 txqueuelen:1000
 +
          RX bytes:106280 (103.7 KiB)  TX bytes:106280 (103.7 KiB)
 +
 
 +
root@imx8mprsb3720a1:~# ping 8.8.8.8
 +
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
 +
64 bytes from 8.8.8.8: icmp_seq=1 ttl=115 time=4.63 ms
 +
64 bytes from 8.8.8.8: icmp_seq=2 ttl=115 time=4.52 ms
 +
^C
 +
--- 8.8.8.8 ping statistics ---
 +
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
 +
rtt min/avg/max/mdev = 4.523/4.577/4.632/0.086 ms
 +
root@imx8mprsb3720a1:~#</pre>
  
 
<headertabs></headertabs>
 
<headertabs></headertabs>

Revision as of 06:53, 23 June 2023

RTENOTITLE

General Specificationn

  • GPIO: 4 x GbE (3 x LAN; 1 x WAN)
  • Dimension: 146 x 100 x 20mm

Environment Specification

  • Weight: 300g
  • 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
   

Find Other Products

[edit]

RTENOTITLE

login in : root 
password : 123456

RTENOTITLE

check eternet port and eth0 IP address
$ ifconfig 

LAN0 connect WAN , it will get a IP Address 

root@ADVANTECH:~# ifconfig
br-lan    Link encap:Ethernet  HWaddr 4E:44:86:D5:C6:93
          inet addr:192.168.100.1  Bcast:192.168.100.255  Mask:255.255.255.0
          inet6 addr: fe80::4c44:86ff:fed5:c693/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:1298 (1.2 KiB)

eth0      Link encap:Ethernet  HWaddr 74:FE:48:69:26:2E
          inet addr:172.22.16.131  Bcast:172.22.19.255  Mask:255.255.252.0
          inet6 addr: fe80::76fe:48ff:fe69:262e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11880 errors:0 dropped:1011 overruns:0 frame:0
          TX packets:187 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2104141 (2.0 MiB)  TX bytes:16651 (16.2 KiB)
          Base address:0x1000

eth1      Link encap:Ethernet  HWaddr 4E:44:86:D5:C6:93
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Base address:0x1200

eth2      Link encap:Ethernet  HWaddr 2A:7A:23:4E:73:5F
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Base address:0x1400

eth3      Link encap:Ethernet  HWaddr F2:3C:9C:10:4C:DD
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:992 (992.0 B)
          Base address:0x1600

eth4      Link encap:Ethernet  HWaddr 86:95:8F:C7:BC:11
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Base address:0x1800

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:34 errors:0 dropped:0 overruns:0 frame:0
          TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:4669 (4.5 KiB)  TX bytes:4669 (4.5 KiB)

(LAN1 or LAN 2 or LAN 3)  can connect to RSB-3430 ethernet port ( be a HUB Device ) . 

In RSB-3430 

RTENOTITLE

RTENOTITLE

root@imx6qrsb3430a1:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 74:fe:48:43:b4:1f
          inet addr:192.168.100.226  Bcast:192.168.100.255  Mask:255.255.255.0
          inet6 addr: fe80::76fe:48ff:fe43:b41f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST DYNAMIC  MTU:1500  Metric:1
          RX packets:46 errors:0 dropped:0 overruns:0 frame:0
          TX packets:852 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:6882 (6.7 KiB)  TX bytes:122693 (119.8 KiB)

eth0:0    Link encap:Ethernet  HWaddr 74:fe:48:43:b4:1f
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST DYNAMIC  MTU:1500  Metric:1

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:1468 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1468 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:106280 (103.7 KiB)  TX bytes:106280 (103.7 KiB)

root@imx6qrsb3430a1:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=115 time=4.63 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=115 time=4.52 ms
^C
--- 8.8.8.8 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 4.523/4.577/4.632/0.086 ms
root@imx6qrsb3430a1:~#

RTENOTITLE

 

 

login in : root 
password : 123456

RTENOTITLE

check eternet port and eth0 IP address
$ ifconfig 

LAN0 connect WAN , it will get a IP Address 

root@ADVANTECH:~# ifconfig
br-lan    Link encap:Ethernet  HWaddr 4E:44:86:D5:C6:93
          inet addr:192.168.100.1  Bcast:192.168.100.255  Mask:255.255.255.0
          inet6 addr: fe80::4c44:86ff:fed5:c693/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:1298 (1.2 KiB)

eth0      Link encap:Ethernet  HWaddr 74:FE:48:69:26:2E
          inet addr:172.22.16.131  Bcast:172.22.19.255  Mask:255.255.252.0
          inet6 addr: fe80::76fe:48ff:fe69:262e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11880 errors:0 dropped:1011 overruns:0 frame:0
          TX packets:187 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2104141 (2.0 MiB)  TX bytes:16651 (16.2 KiB)
          Base address:0x1000

eth1      Link encap:Ethernet  HWaddr 4E:44:86:D5:C6:93
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Base address:0x1200

eth2      Link encap:Ethernet  HWaddr 2A:7A:23:4E:73:5F
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Base address:0x1400

eth3      Link encap:Ethernet  HWaddr F2:3C:9C:10:4C:DD
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:992 (992.0 B)
          Base address:0x1600

eth4      Link encap:Ethernet  HWaddr 86:95:8F:C7:BC:11
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Base address:0x1800

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:34 errors:0 dropped:0 overruns:0 frame:0
          TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:4669 (4.5 KiB)  TX bytes:4669 (4.5 KiB)

(LAN1 or LAN 2 or LAN 3)  can connect to RSB-3720 ethernet port ( be a HUB Device ) . 

In RSB-3720

RTENOTITLE

 

root@imx8mprsb3720a1:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 74:fe:48:43:b4:1f
          inet addr:192.168.100.226  Bcast:192.168.100.255  Mask:255.255.255.0
          inet6 addr: fe80::76fe:48ff:fe43:b41f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST DYNAMIC  MTU:1500  Metric:1
          RX packets:46 errors:0 dropped:0 overruns:0 frame:0
          TX packets:852 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:6882 (6.7 KiB)  TX bytes:122693 (119.8 KiB)

eth0:0    Link encap:Ethernet  HWaddr 74:fe:48:43:b4:1f
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST DYNAMIC  MTU:1500  Metric:1

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:1468 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1468 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:106280 (103.7 KiB)  TX bytes:106280 (103.7 KiB)

root@imx8mprsb3720a1:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=115 time=4.63 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=115 time=4.52 ms
^C
--- 8.8.8.8 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 4.523/4.577/4.632/0.086 ms
root@imx8mprsb3720a1:~#