Serial Port Configuration - ICP DAS USA LP-22 Series User Manual

Hide thumbs Also See for LP-22 Series:
Table of Contents

Advertisement

Receive data via the COM2 port
Send information via COM1 por of PC
Figure 2.7.5.3-5. Using the command line to test

2.7.6. Serial Port configuration

Use the 'stty' command to query or configure the COM port. For example, to modify the baud
rate 9600 to 115200 bps via
/dev/ttyS1
port:
# stty -F /dev/ttyS1 ispeed 115200 ospeed 115200
Use the 'getsendreceive' command to query or configure the COM port. (Refer to Figure 2.7.6-1)
For example, the I-7060 module is connected with COM2 port of the LP-9x2x, and sending the
command '$01M' to query the module name which baud rate is 115200 bps connect with
/dev/ttyS0 port, it will get a response: '!017060'.
Figure 2.7.6-1. Use the 'getsendreceive' command to query or configure the COM port
AM335X-PAC Series User Manual
version 2.0.1
Page: 52
Copyright © 2019 ICP DAS Co., Ltd. All Rights Reserved.
E-mail: service@icpdas.com

Advertisement

Table of Contents
loading

Table of Contents