Linux Real Tty Drivers; Installing Linux Real Tty Driver Files; Mapping Tty Ports - Moxa Technologies MiiNePort E1-SDK User Manual

Hide thumbs Also See for MiiNePort E1-SDK:
Table of Contents

Advertisement

MiiNePort E1/E2-SDK
/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.

Linux Real TTY Drivers

Real TTY drivers are provided to map Linux host TTY ports to MiiNePort serial (TTL) ports. Once the mapping
has been set up, Linux users and applications can connect to a serial (TTL) port as if it were a local TTY port.
These drivers have been designed and tested for the majority of Linux distributions, including Linux kernel
version 2.4.x, 2.6.x and 3.0.x, 4.x. Please check Moxa's website (http://www.moxa.com) for the latest
Linux kernel support. For more detail, please refer to README.TXT.

Installing Linux Real TTY Driver Files

1. Obtain the driver file from the accompanying 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 E1 serial port to the system TTY port.

Mapping TTY Ports

Make sure that you set the operation mode of the serial port of the MiiNePort E1 to RealCOM mode. After
logging in as a super user, enter the directory /usr/lib/npreal2/driver and then execute mxaddsvr to map
the target MiiNePort E1 serial port to the host TTY ports. The syntax of mxaddsvr is as follows:
mxaddsvr [MiiNePort E1 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.
Utility Console and Driver Installation
4-11

Advertisement

Table of Contents
loading

This manual is also suitable for:

Miineport e2-sdk

Table of Contents