Vantron
| Embedded in your success, Embedded in your better life
World-leading provider of embedded/IoT products and solutions
Vantron | G202 User Manual
12
1.5
Serial Port Introduction
There are two serial ports on the terminal block, one is RS485, the other is configurable to
RS485 (default) or RS232. Only when users choose to configure the other one to RS232 will
serial debugging be available. Yet RS232 is used for serial communication under normal
circumstances. To activate the debug mode, users can long press the debug button before
power application till output data is displayed on the PC.
If users choose to configure both serial ports to RS485, serial debugging is not available.
Under such circumstances, debugging over Ethernet is an option.
Definition of the terminal pins:
No.
(From left to right)
Pin name
Port
Type
Definition
1
GND1
/dev/ttyS1
NC
RS485 isolator grounding
2
A
I/O
RS485-A signal
3
B
I/O
RS485-B signal
4
RX
/dev/ttyS0
I
RS232 RXD signal
5
TX
O
RS232 TXD signal
6
GND2
I
RS232 isolator grounding
Input the following command lines in the
Terminal
page of VantronOS for serial
communication:
1.
For RS232 communication:
~# microcom /dev/ttyS0 -s 115200
2.
For RS485 communication:
~# microcom /dev/ttyS1 -s 115200
Please refer to
Appendix B
for the definition of the acronyms mentioned above.