Moxa AWK-1127-PoE-T [83/97] Mapping tty ports

Moxa AWK-1127-PoE-T [83/97] Mapping tty ports
AWK-1121/1127 Software Installation and Configuration
4-16
7. After installing the driver, you will be able to see several files in the /usr/lib/oncell_realtty/driver
folder:
> mxaddsvr (Add Server, mapping tty port)
> mxdelsvr (Delete Server, un-mapping tty port)
> mxloadsvr (Reload Server)
> mxmknod (Create device node/tty port)
> mxrmnod (Remove device node/tty port)
> mxuninst (Remove tty port and driver files)
At this point, you will be ready to map the AWK-1127 serial port to the system tty port.
Mapping TTY Ports
Make sure that you set the operation mode of the desired AWK-1127 serial port to RealCOM mode. After
logging in as a super user, enter the directory /usr/lib/oncell_realtty/driver and then execute mxaddsvr
to map the target OnCell serial port to the host tty ports. The syntax of mxaddsvr is as follows:
mxaddsvr [OnCell IP Address] [Total Ports] ([Data port] [Cmd port])
The mxaddsvr command performs the following actions:
1. Modifies oncellreald.cf.
2. Creates tty ports in directory /dev with major & minor number configured in oncellreald.cf.
3. Restarts the driver.
Mapping tty ports automatically
To map tty ports automatically, you may execute mxaddsvr with just the IP address and number of ports, as
in the following example:
# cd /usr/lib/oncell_realtty/driver
# ./mxaddsvr 192.168.3.4 1
In this example, one tty port will be added, with IP 192.168.3.4, with data port 950 and command port 966.
Mapping tty ports manually
To map tty ports manually, you may execute mxaddsvr and manually specify the data and command ports, as
in the following example:
# cd /usr/lib/oncell_realtty/driver
# ./mxaddsvr 192.168.3.4 1 4001 966
In this example, one tty port will be added, with IP 192.168.3.4, with data port 4001 and command port 966.

Содержание

Скачать