Rs232 Test - Advantech ROM-5420 User Manual

Risc-based smarc module with freescale i.mx6 arm cortex a9 processor
Table of Contents

Advertisement

lo
Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 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:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
If you would like to config IP manually, please use the command below:
#ifconfig eth0 xxx.xxx.xxx.xxx up
Here is a real case for your reference.The hosts(ROM-5420) IP is 172.17.21.97; the
target(A desktop computer) IP is 172.17.20.192
#ifconfig eth0 172.17.21.97 up
#ifconfig eth0
eth0
Link encap:Ethernet HWaddr 00:04:9F:01:30:E0
inet addr:172.17.21.97 Bcast:172.17.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2851 errors:0 dropped:271 overruns:0 frame:0
TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:291407 (284.5 KiB) TX bytes:2000 (1.9 KiB)
The target computer(Client) IP address is 172.17.20.192, so we can use below com-
mand to see if we can get any response from the client
#ping 172.17.20.192
PING 172.17.20.192 (172.17.20.192): 56 data bytes
64 bytes from 172.17.20.192: seq=0 ttl=128 time=7.417 ms
64 bytes from 172.17.20.192: seq=1 ttl=128 time=0.203 ms
64 bytes from 172.17.20.192: seq=2 ttl=128 time=0.300 ms
--- 172.17.20.192 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.203/2.640/7.417 ms
3.1.13

RS232 Test

As you can see below, there are 5 UART supported by ROM-5420. /dev/ttymxc0 is
reserved for ROM-5420 debug port (ROM-5420 CN1), the rest UART ports could be
applied by user.
#setserial -g /dev/ttymxc*
/dev/ttymxc0, UART: undefined, Port: 0x0000, IRQ: 58
ROM-5420 User Manual
18

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rom-5420cd-mda1e

Table of Contents