AM335X-PAC Series User Manual version 2.0.1 Page: 47
Copyright © 2019 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
Figure 2.7.5.2-3.
COM3 and COM36 serial port for the LP-8x2x/9x2x
This /dev/ttyS1, /dev/ttyS34 or /dev/ttyO4 port is located on the right-upper corner on the
LP-22xx, LP-52xx, LP-8x2x and LP-9x2x and is a standard
RS-232
serial port that provides TxD, RxD,
RTS, CTS, GND, non-isolated and a maximum speed of 115200 bps.
The RS-232 port can also be used to connect to an I-7520 module in order to provide general
RS-485 communication functionality, and also can be used to connect to a wireless modem so that
the module controlled from a remote device. The application example and code is demonstrated
below:
Test using C language:
unsigned char port=3;
DWORD baudrate=9600;
char data=8;
char parity=0;
char stopbit=1;
Open_Com(port, baudrate, data, parity, stopbit);
// Send a command...
Close_Com(port);
Test using the command line interface: (PC connected to /dev/ttyS1 on the LP-8x21- see
Figure 2.7.5.2-4)