User`s manual
Table Of Contents
- 1. Introduction
- 2. Getting Started
- 3. Initial IP Address Configuration
- 4. Introducing Serial Port Operation Modes
- 5. Introducing OnCell Central and Ethernet Operation Modes
- 6. Using the Web Console
- 7. Cellular Network Settings
- 8. Configuring Serial Port Operation Modes
- 9. Configuring the Cellular-Enabling Ethernet Device
- 10. Configuring OnCell Central Management Software
- 11. Additional Serial Port Settings
- 12. System Management Settings
- 13. Software Installation/Configuration
- A. Pinouts and Cable Wiring
- B. RFC2217
- C. Dynamic Domain Name Server
- D. Well Known Port Numbers
- E. Auto IP Report Protocol
- F. GSM Alphabet
- G. Default Settings

OnCell G3111/G3151/G3211/G3251 Series User’s Manual Software Installation/Configuration
13-24
Installing Linux Real TTY Driver Files
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 moxa_oncell_realtty.tgz to the / directory.
5. Execute tar xvfz moxa_oncell_realtty.tgz to extract all files into the system.
6. Execute /tmp/oncell_realtty/mxinst.
For RedHat AS/ES/WS and Fedora Core1, append an extra argument as follows:
# /tmp/oncell_realtty/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/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 OnCell serial port to the system tty port.
Mapping TTY Ports
Make sure that you set the operation mode of the desired OnCell G3111/G3151/G3211/G3251
serial port to Real COM 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.