Linux BSP v1.
Linux BSP v1.
Linux BSP v1.
Linux BSP v1.2
2
2
2....0
0
0
0 Development
Development
Development
Development Guide
Guide
Guide
Guide
40
5.9.2.
How to test VAB-600-E RS485 function
•
Install
Install
Install
Install serial communication
serial communication
serial communication
serial communication utility: picocom
utility: picocom
utility: picocom
utility: picocom
# apt
# apt
# apt
# apt----get install picocom
get install picocom
get install picocom
get install picocom
•
Type the following command to open ttyUSB
Type the following command to open ttyUSB
Type the following command to open ttyUSB
Type the following command to open ttyUSBx
xx
x device
device
device
device
# picocom
# picocom
# picocom
# picocom –
–
–
–b xxx /dev/ttyUSB
b xxx /dev/ttyUSB
b xxx /dev/ttyUSB
b xxx /dev/ttyUSBx
xx
x
xxx is the baud rate of RS485 device. /dev/ttyUSBx is the device path of the
RS485 module. Type “cat /proc/tty/driver/usbserial” to figure out what the
serial index of ttyUSBx is.
•
Open another terminal and type the following command to
Open another terminal and type the following command to
Open another terminal and type the following command to
Open another terminal and type the following command to e
e
e
enable
nable
nable
nable
RS485
RS485
RS485
RS485 functio
functio
functio
function
n
n
n
# ./setrs485
# ./setrs485
# ./setrs485
# ./setrs485 /dev/ttyUSBx
/dev/ttyUSBx
/dev/ttyUSBx
/dev/ttyUSBx
Please make sure setrs485 has the execution permission, or type “chmod +x
setrs485” to change the permissions.
•
Type
Type
Type
Type the command
the command
the command
the command on
on
on
on the
the
the
the picocom terminal
picocom terminal
picocom terminal
picocom terminal to test your own RS485
to test your own RS485
to test your own RS485
to test your own RS485
device
device
device
device
•
Press Crtl+A and Ctrl+X to
Press Crtl+A and Ctrl+X to
Press Crtl+A and Ctrl+X to
Press Crtl+A and Ctrl+X to terminat
terminat
terminat
terminate
e
e
e the picocom application
the picocom application
the picocom application
the picocom application
Содержание ARTiGO-A600
Страница 1: ...1 00 09232015 100600 DEVELOPMENT GUIDE ARTiGO A600 Linux BSP v1 2 ...
Страница 56: ......