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