User's Manual Part 2

NPort W2004 User’s Manual Installing and Configuring the Software
6-20
> mxuninst (Remove tty port and driver files)
At this point, you will be ready to map the NPort serial port to the system tty port. See “Mapping
TTY Ports” below for detailed instructions.
Mapping TTY Ports
Before mapping tty ports, you must set the operation mode of your NPort to Real Com Mode. We
provide two ways to map tty ports.
Mapping tty ports automatically
After logging in as a super user, enter the directory /usr/lib/npreal2/driver and then execute
mxaddsvr to map the target NPort serial port to the host tty ports. The syntax of mxaddsvr is:
mxaddsvr [NPort IP Address] [Total Ports] ([Data port] [Cmd port])
Example 1:
# cd /usr/lib/npreal2/driver
# ./mxaddsvr 192.168.3.4 16
Example2:
# cd /usr/lib/npreal2/driver
# ./mxaddsvr 192.168.3.4 16 4001 966
In Example 1, 16 tty ports will be added, all with IP 192.168.3.4, but with data ports equal to (950,
951, …, 965), and command ports equal to (966, 967, 968, …, 981).
In example2, 16 tty ports will be added, all with IP 192.168.3.4, but with data ports equal to (4001,
4002, …, 4016), and command ports equal to (966, 967, 968, …, 981).
The following actions will be performed:
> Modify the "npreal2d.cf"
> Create tty ports in directory "/dev" with major & minor number configured in
npreal2d.cf.
> Stop and then restart the driver.
Remove Mapped TTY ports
As with the “Mapping TTY Ports” task, we provide two ways to remove mapped tty ports:
Remove the mapped tty ports automatically
After logging in as root, enter the directory /usr/lib/npreal2/driver and then execute mxdelsvr to
delete a server. The syntax of mxdelsvr is:
mxdelsvr [IP]
Example:
# cd /usr/lib/npreal2/driver
# ./mxdelsvr 192.168.3.4
If you don't provide the IP address in the command line, the program will list the installed servers
and total ports on screen, so that you can only choose the index of the installed server list to delete.
The following actions will be performed:
> Modify the npreal2d.cf