10 How to Access the Interfaces Under Linux
BoltGATE 20-25 User Manual Rev. 1-1
10.7
COM 1 to 4, TTL Serial Console
The BoltGATE 20-25 has the following serial and console ports:
l
2x RS-232/422/485 Serials, 9-wire, Insulated (COM 1, COM 4)
l
2x RS-422/485 Serials, 5-wire, Insulated (COM 2, COM 3)
l
1x TTL Serial Console
The BoltGATE 20-25 exposes the ports as follows:
l
COM 1:
/dev/ttyCOM1
l
COM 2:
/dev/ttyCOM2
l
COM 3:
/dev/ttyCOM3
l
COM 4:
/dev/ttyCOM4
l
TTL Serial Console:
/dev/ttyS0
(available in the Service Panel)
You need to configure the serial ports mode before they will work.
10.7.1
How to Set the RS-232/422/485 Mode
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
10.7.1.1
How to Use the Ethsetserial Utility to Configure the COM Ports
NOTE:
ser_port_name
can be:
/dev/ttyXRx , ttyCOMx
To set a serial port in RS-232 mode, enter the following command:
ethsetserial –p ser_port_name –m232
To set a serial port in RS-422 mode, enter the following command:
ethsetserial –p ser_port_name –m422
To set a serial port in RS-485 mode, enter the following command:
ethsetserial –p ser_port_name –m485
To see all the available options, enter the following command:
ethsetserial –h
74 / 102
Содержание BoltGATE 20-25
Страница 4: ...This page has been intentionally left blank...
Страница 12: ...This page has been intentionally left blank...
Страница 14: ...This page has been intentionally left blank...
Страница 16: ...This page has been intentionally left blank...
Страница 24: ...This page has been intentionally left blank...
Страница 48: ...This page has been intentionally left blank...
Страница 66: ...This page has been intentionally left blank...
Страница 86: ...This page has been intentionally left blank...
Страница 92: ...This page has been intentionally left blank...
Страница 94: ...This page has been intentionally left blank...
Страница 98: ...This page has been intentionally left blank...
Страница 101: ...BoltGATE 20 25 User Manual Rev 1 1 Notes NOTES 101 102...