EPC-R3430 User Manual
14
< 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
Содержание EPC-R3430
Страница 1: ...User Manual EPC R3430 NXP ARM Cortex A9 i MX6 Dual 1GHz Fanless Box ...
Страница 6: ...EPC R3430 User Manual vi ...
Страница 8: ...EPC R3430 User Manual viii ...
Страница 12: ...EPC R3430 User Manual 4 ...
Страница 19: ...Chapter 3 3 Software Functionality This chapter details the software programs on the EPC R3430 plat form ...