Moxa DA-710-XPE [31/73] Serial port operation mode

Moxa DA-710-XPE [31/73] Serial port operation mode
DA-710 Series Linux Managing Communications
3-6
7. To change the order of device nodes and module names, you can write a rule in
/etc/udev/rules.d/96-moxa.rules.
#CARD 0
KERNEL=="ttyM16", SYMLINK="ttyN0"
KERNEL=="ttyM17", SYMLINK="ttyN1"
KERNEL=="ttyM18", SYMLINK="ttyN2"
KERNEL=="ttyM19", SYMLINK="ttyN3"
KERNEL=="ttyM20", SYMLINK="ttyN4"
KERNEL=="ttyM21", SYMLINK="ttyN5"
KERNEL=="ttyM22", SYMLINK="ttyN6"
KERNEL=="ttyM23", SYMLINK="ttyN7"
#CARD 1
KERNEL=="ttyM8", SYMLINK="ttyN8"
KERNEL=="ttyM9" , SYMLINK="ttyN9"
KERNEL=="ttyM10", SYMLINK="ttyN10"
KERNEL=="ttyM11", SYMLINK="ttyN11"
KERNEL=="ttyM12", SYMLINK="ttyN12"
KERNEL=="ttyM13", SYMLINK="ttyN13"
KERNEL=="ttyM14", SYMLINK="ttyN14"
KERNEL=="ttyM15", SYMLINK="ttyN15"
#CARD 2
KERNEL=="ttyM0", SYMLINK="ttyN16"
KERNEL=="ttyM1", SYMLINK="ttyN17"
KERNEL=="ttyM2", SYMLINK="ttyN18"
KERNEL=="ttyM3", SYMLINK="ttyN19"
KERNEL=="ttyM4", SYMLINK="ttyN20"
KERNEL=="ttyM5", SYMLINK="ttyN21"
KERNEL=="ttyM6", SYMLINK="ttyN22"
Serial Port Operation Mode
The serial port expansion module has 8 serial ports named COM1 to COM8. The ports support RS-232, RS-422,
4-wire RS-485, and 4-wire RS-485 operation modes with baudrate settings up to 921600 bps.
By default, the serial interface is set to RS-232. You can use the setinterface command to change the serial
port operation mode, as indicated below:
setinterface device-node [interface-no]
device
-node:
/dev/ttyMn; n = 0,1,2,...
interface
-no:
[see
following table]:
interface-no Operation Mode
None Display current setting
0 RS-232
1 2-wire RS-485
2 RS-422
3 4-wire RS-485

Содержание

Похожие устройства

Скачать