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
15
Pinout description of the serial port:
No.
Signal
Node
Port name Serial mode
LED indicator
1
GND1
/dev/ttyO2
COM2
RS232 or
RS485 (default)
TX1/RX1
2
RS485_1_B/STXD2
3
RS485_1_A/SRXD3
4
GND2
/dev/ttyO3
COM3
RS485
TX2/RX2
5
RS485_2_B
6
RS485_2_A
7
GND3
/dev/ttyO4
COM4
RS485
RX4/RX4
8
RS485_3_B
9
RS485_3_A
10
GND4
/dev/ttyO5
COM5
RS485
RX3/RX3
11
RS485_4_B
12
RS485_4_A
COM2 could switch between RS232 and RS485.
Input the following command lines in a host device to enable
RS232
on COM2 and use a
serial communication program (e.g., microcom) to open the port:
Input the following command lines in a host device to enable
RS485
on COM2 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