Vantron
| Embedded in your success, Embedded in your better life
World-leading provider of embedded/IoT products and solutions
C335 Series Edge Computing Gateways | User Manual
12
1.4.3
Serial port
Pinout description:
Serial port
Node
Serial mode
LED indicator
R1 (right)
/dev/ttyO2
RS232 / RS485
TX1/RX1
R2 (left)
/dev/ttyO4
RS485
TX2/RX2
R1 could switch between RS232 and RS485 (default), and R2 is RS485.
1.
Input the following command lines in a host device to enable
RS232
on R1 and use a
serial communication program (e.g., microcom) to open the port:
2.
Input the following command lines in a host device to enable
RS485
on R1 and use a
serial communication program (e.g., microcom) to open the port:
~# gpio set uart0 rs232 save
Or
~# gpio set uart0 rs232
~# gpio get uart0
rs232
~# microcom /dev/ttyO2 -s 115200
~# gpio set uart0 rs485 save
Or
~# gpio set uart0 rs485
~# gpio get uart0
rs485
~# microcom /dev/ttyO2 -s 115200
R1
R2