How To Set The Rs-232/485 Modes For Com 1 - Eurotech ReliaGATE 10-12-6 Series User Manual

Iot edge gateway ti am335x, lte cat 1
Table of Contents

Advertisement

ReliaGATE 10-12 User manual Rev. 2-1
12.9.3

How to set the RS-232/485 modes for COM 1

You can configure the serial port mode in the following ways, A or B:
A. Using the ethsetserial utility
B. Implementing the ioctl in the source code
12.9.3.1
How to use the ethsetserial utility to configure the COM ports
To set COM port 1 to RS-232 mode, enter the following command:
ethsetserial -p ttyO3 -m232
To set COM port 1 to RS-485 mode, enter the following command:
ethsetserial -p ttyO3 -m485 -r0 -s1 -b100 -a100
To see all the available options, enter the following command:
ethsetserial –h
12 How to manage interfaces in Linux
81 / 118

Advertisement

Table of Contents
loading

This manual is also suitable for:

Regate-10-12-65gRegate-10-12-66gRegate-10-12-67gDynagate 10-12-6 series

Table of Contents