EPAQ-9410
Hardware Programming Reference 0.16
________________________________________________________________________
________________________________________________________________________
Copyright © 2019 QEI
Page 38
W 0xB4080004: 0x01
PORT 1 RS232 loopback test
cat /dev/ttyS0 &
cat fox.txt > /dev/ttyS0
make sure that fox.txt message is printed on the console
make sure that both LED's blink
TX/yellow/left
RX/green/right
repeat for PORTS 2,3 and 4
change config
default config (RS232 and RS485 are disabled)
root@QEIprocFull:/oe ./mmdump -a 0xb4080000 -o 0x01 -b 0x00
W 0xB4080001: 0x00
root@QEIprocFull:/oe ./mmdump -a 0xb4080000 -o 0x02 -b 0x00
W 0xB4080002: 0x00
root@QEIprocFull:/oe ./mmdump -a 0xb4080000 -o 0x03 -b 0x00
W 0xB4080003: 0x00
root@QEIprocFull:/oe ./mmdump -a 0xb4080000 -o 0x04 -b 0x00
W 0xB4080004: 0x00
make sure that loopback test fails
and that only yellow LED is active (green is not lit)
5.8.2
RS-485 test
install "IRIG RS485 to Quad RS232 Loopback" cable
./setup_all_ports.sh
root@QEIprocFull:/oe ./mmdump -a 0xb4080000 -o 0x01 -b 0x00
W 0xB4080001: 0x00
root@QEIprocFull:/oe ./mmdump -a 0xb4080000 -o 0x02 -b 0x00
W 0xB4080002: 0x00
root@QEIprocFull:/oe ./mmdump -a 0xb4080000 -o 0x03 -b 0x00
W 0xB4080003: 0x00
root@QEIprocFull:/oe ./mmdump -a 0xb4080000 -o 0x04 -b 0x00
W 0xB4080004: 0x00
PORT 1 TX, PORT 2 RX
root@QEIprocFull:/oe ./mmdump -a 0xb4080000 -o 0x01 -b 0x08
W 0xB4080001: 0x08
cat /dev/ttyS1 &
cat fox.txt > /dev/ttyS0
make sure that LED's blink as follows:
TX port: yellow only
all RX ports: green only
PORT 2 TX, PORT 1 RX
root@QEIprocFull:/oe ./mmdump -a 0xb4080000 -o 0x01 -b 0x00
W 0xB4080001: 0x00
root@QEIprocFull:/oe ./mmdump -a 0xb4080000 -o 0x02 -b 0x08