![Vantron C335 S Скачать руководство пользователя страница 21](http://html.mh-extra.com/html/vantron/c335-s/c335-s_user-manual_854069021.webp)
Vantron
| Embedded in your success, Embedded in your better life
World-leading provider of embedded/IoT products and solutions
Vantron | C335 Series User Manual
16
Definition of the terminal pins:
No.
Description
Port
Corresponding
indicator
Comments
1
GND1
/dev/ttyO2
TX1/RX1
RS232 or
RS485 (default)
2
RS485_1_B/STXD2
3
RS485_1_A/SRXD3
4
GND2
/dev/ttyO3
TX2/RX2
/
5
RS485_2_B
6
RS485_2_A
7
GND3
/dev/ttyO4
RX4/RX4
/
8
RS485_3_B
9
RS485_3_A
10
GND4
/dev/ttyO5
RX3/RX3
/
11
RS485_4_B
12
RS485_4_A
Since Pin 2 and pin 3 are used for either RS232 or RS485 (default)
—
For RS232 communication, input the following command lines to enable the serial port and
start communication:
For RS485 communication, input the following command lines to enable the serial port and
start communication:
~# 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