RSB-3430 User Manual
26
< RS-422 Test>
RS-422 setting
echo 134 > /sys/class/gpio/export
echo 135 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio1/direction
echo out > /sys/class/gpio/gpio2/direction
echo 1 > /sys/class/gpio/gpio1/value
echo 1 > /sys/class/gpio/gpio2/value
RS-422 test
stty -F /dev/ttymxc1 115200
echo Serial Port Test > /dev/ttymxc1
< RS-485 Test>
RS-485 setting
echo 134 > /sys/class/gpio/export
echo 135 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio1/direction
echo out > /sys/class/gpio/gpio2/direction
echo 0 > /sys/class/gpio/gpio1/value
echo 1 > /sys/class/gpio/gpio2/value
RS-485 test
stty -F /dev/ttymxc1 115200
echo Serial Port Test > /dev/ttymxc1
3.1.9
RS-485 Port Test (For UIO-4030 COM port)
Note: RS-232: /dev/ttymxc2
GPIO : need to connect loopback.
RS-485: pin1 data- & pin2 data+ (ttyUSB0)
Test command
$ stty -F /dev/ttymxc2 -echo -onlcr 115200 crtscts
$ cat /dev/ttymxc2 &
$ echo "Serial Port Test" > /dev/ttymxc2
RS-485 Test with Adam-4520
stty -F /dev/ttyUSB0 115200
echo "Serial Test" > /dev/ttyUSB0
Summary of Contents for RSB-3430
Page 1: ...User Manual RSB 3430 2 5 SBC with NXP i MX6 Processor ARM Cortex A9 Architecture...
Page 9: ...Chapter 1 1 General Introduction...
Page 12: ...RSB 3430 User Manual 4...
Page 13: ...Chapter 2 2 H W Installation...
Page 30: ...RSB 3430 User Manual 22...
Page 36: ...RSB 3430 User Manual 28...
Page 41: ...33 RSB 3430 User Manual Chapter 5 Advantech Services...