MiiNePort E2/E3 Utility Console and Driver Installation
Mapping tty ports manually
To map tty ports manually, execute mxaddsvr and manually specify the data and command ports, as in the
following example:
# cd /usr/lib/npreal2/driver
# ./mxaddsvr 192.168.3.4 16 4001 966
In this example, 16 tty ports will be added, all with IP 192.168.3.4, with data ports from 4001 to 4016 and
command ports from 966 to 981.
Removing Mapped TTY Ports
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 Address]
Example:
# cd /usr/lib/npreal2/driver
# ./mxdelsvr 192.168.3.4
The following actions are performed when executing mxdelsvr:
1. npreal2d.cf is modified.
2. Relevant tty ports in directory /dev are removed.
3. The driver is restarted.
If the IP address is not provided in the command line, the program will list the installed servers and total ports
on the screen. You will need to choose a server for deletion from the list.
Removing Linux Driver Files
A utility is included that will remove all driver files, mapped tty ports, and unload the driver. To do this, you only
need to enter the directory /usr/lib/npreal2/driver, and then execute mxuninst to uninstall the driver.
The following actions will be performed:
1. The driver is unloaded.
2. All files and directories in /usr/lib/npreal2 are deleted.
3. The directory /usr/lib/npreal2 is deleted.
4. The script file that initializes the system is modified.
The UNIX Fixed TTY Driver
Installing the UNIX Driver
1. Log in to UNIX and create a directory for the Moxa TTY. To create a directory named /usr/etc, execute the
command:
# mkdir –p /usr/etc
2. Copy moxattyd.tar to the directory you created. If you created the /usr/etc directory above, you would
execute the following commands:
# cp moxattyd.tar /usr/etc
# cd /usr/etc