UIO-4038TEST
From ESS-WIKI
[edit]
login in : root password : 123456
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
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:~#
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
# 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
# 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
# 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