The Linux Real Tty Driver; Mapping Tty Ports - Moxa Technologies MiiNePort E2-H User Manual

Miineport e2/e3
Hide thumbs Also See for MiiNePort E2-H:
Table of Contents

Advertisement

MiiNePort E2/E3
/password moxa
npcli /device /apply 1
Note:
Npcli.exe requires an administrator privilege to change device settings.
It support only IPv4 and it must be run under Windows XP and later versions.

The Linux Real TTY Driver

1. Obtain the driver file from the included CD-ROM or the Moxa website, at http://www.moxa.com.
2. Log in to the console as a super user (root).
3. Execute cd / to go to the root directory.
4. Copy the driver file npreal2xx.tgz to the / directory.
5. Execute tar xvfz npreal2xx.tgz to extract all files into the system.
6. Execute /tmp/moxa/mxinst.
For RedHat AS/ES/WS and Fedora Core1, append an extra argument as follows:
# /tmp/moxa/mxinst SP1
The shell script will install the driver files automatically.
7. After installing the driver, you will be able to see several files in the /usr/lib/npreal2/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 MiiNePort serial port to the system tty port.

Mapping TTY Ports

Be sure to set the operation mode of the serial port of the MiiNePort to Real COM mode. After logging in as a
super user, enter the directory /usr/lib/npreal2/driver and then execute mxaddsvr to map the target
MiiNePort serial port to the host tty ports. The syntax of mxaddsvr is as follows:
mxaddsvr [MiiNePort IP Address] [Total Ports] ([Data port] [Cmd port])
The mxaddsvr command performs the following actions:
1. Modifies npreal2d.cf.
2. Creates tty ports in directory /dev with major and minor number configured in npreal2d.cf.
3. Restarts the driver.
Mapping tty ports automatically
To map tty ports automatically, execute mxaddsvr with just the IP address and number of ports, as in the
following example:
# cd /usr/lib/npreal2/driver
# ./mxaddsvr 192.168.3.4 16
In this example, 16 tty ports will be added, all with IP 192.168.3.4, with data ports from 950 to 965 and
command ports from 966 to 981.
Utility Console and Driver Installation
6-12

Advertisement

Table of Contents
loading

Table of Contents