Front Panel ........................................................................................................................................ 1-3
Accessing the Console from a Telnet Terminal ................................................................................. 2-5
Accessing the Console from a Console Terminal .............................................................................. 2-7
Configuring CN2510—The Server Menu ............................................................................................... 2-12
Server Configuration—Info. ........................................................................................................ 2-12
Server Configuration—LAN ......................................................................................................... 2-13
Server Configuration—Adv. ......................................................................................................... 2-14
Server Configuration—Host_table ................................................................................................ 2-16
Server Configuration—Route_table .............................................................................................. 2-16
Server Configuration—User_table ................................................................................................ 2-17
Save ............................................................................................................................................... 2-18
Configuring the Serial Ports.................................................................................................................. 4-5
Save ................................................................................................................................................. 4-6
Configuring RAW Mode ........................................................................................................................ 5-6
Configuring the Serial Ports.................................................................................................................. 5-7
Save ................................................................................................................................................. 5-8
ASPP Examples for Unix....................................................................................................................... 5-9
ASPP Examples for Windows .............................................................................................................. 5-10
6. Setting Up Raw UDP .......................................................................................................................... 6-1
Accessing the Console Utility ................................................................................................................ 6-2
Selecting the Application ..................................................................................................................... 6-2
Configuring RAW UDP Mode ................................................................................................................. 6-4
Configuring the Serial Ports.................................................................................................................. 6-5
Save ................................................................................................................................................. 6-6
Configuring the Serial Ports.................................................................................................................. 7-5
Save ................................................................................................................................................. 7-6
Configuring the Serial Ports.................................................................................................................. 8-8
Save ................................................................................................................................................. 8-9
Configuring the Serial Ports.................................................................................................................. 9-5
Save ................................................................................................................................................. 9-6
Configuring Optional Local User Information ....................................................................................... 10-14
Save ............................................................................................................................................. 10-15
Configuring the Serial Ports................................................................................................................ 11-6
Save ............................................................................................................................................... 11-7
Setting up Unix Hosts ........................................................................................................................ 11-8
Setting up a SCO Unix Host ........................................................................................................ 11-9
Setting up a SOLARIS X86 Host ................................................................................................ 11-10
Setting up a LINUX Host ........................................................................................................... 11-11
Setting up Windows Hosts ............................................................................................................... 11-12
Setting up a Windows NT Host .................................................................................................. 11-12
Setting up a Windows 2000 Host ............................................................................................... 11-15
12. Setting Up Multiplex ........................................................................................................................ 12-1
Accessing the Console Utility .............................................................................................................. 12-2
Selecting the Application ................................................................................................................... 12-3
Configuring the “Host” CN2510 ........................................................................................................... 12-3
Configuring the “Device” CN2510 ........................................................................................................ 12-6
Configuring the Serial Ports.............................................................................................................. 12-10
Save ............................................................................................................................................. 12-11
Save ............................................................................................................................................... 13-8
How to Start MxNPortAPI ........................................................................................................... 15-2
MxNPortAPI Function Groups .............................................................................................................. 15-3
Example Program ............................................................................................................................. 15-3
A. Troubleshooting ................................................................................................................................ A-1
B. RADIUS Server .................................................................................................................................. B-1
What is RADIUS? ................................................................................................................................ B-2
10/100BaseTX Port Cable Wiring .................................................................................................. D-2
Async RS-232 Port Cable Wiring ................................................................................................... D-3
DB9 and DB25 Connector Pin Assignments .................................................................................... D-4
E. LCM Display ....................................................................................................................................... E-1
1
1. Introduction
Welcome to Moxa CN2510 Async Server. Models are available with 8 or 16 asynchronous RS-232 ports, and all
models come with one 10/100 Mbps Ethernet LAN port. CN2510 Async Server is used to connect terminals,
modems, printers, and other asynchronous serial devices to LAN hosts. CN2510 complies with TCP/IP and IEEE
802.3 specifications using standard Ethernet 10/100BaseT and twisted pair 10/100BaseTX cable as the data
transmission medium.
The following topics are covered in this chapter:
Product Features
Hardware
Software
Package Checklist
Front Panel
Rear Panel
CN2510 Introduction
1-2
Product Features
Hardware
• 1 LAN port (auto-detecting 10/100 Mbps Ethernet)
• Surge protection for each serial port
• 4 MB RAM, 2 MB Flash ROM
• Tx/Rx LED for each serial port
• System Status LEDs
• Ethernet Status LEDs
• 8 or 16 RJ45 RS-232 serial ports, with up to 921.6 Kbps transmission speed
Software
• ASCII/Binary terminal modes with up to 8 Telnet and Rlogin sessions
• Point to Point Protocol (PPP and PPPD)
• Serial Line Internet Protocols (SLIP and SLIPD)
• Dynamic auto-recognition of Terminal, SLIP, or PPP
• Dial-on-demand, Dial-out
• Remote serial or parallel printing (RLP)
• CN2510 Async Server Proprietary Protocol (ASPP) for TCP/IP socket programming
When exiting the SERVER MENU, you will be prompted to save settings. Press Y to save.
---------------------------------------------------Info. Lan Adv. Host_table Route_table [User_table] Quit
Examine/modify async server basic configuration
Enter: select ESC: previous menu
+------------------------------------------------------+
| Warning !!! |
| You had modified the configuration without saving. |
| Would you save it now ? |
| ‘Y’: yes ‘N’: no |
+------------------------------------------------------+
You may also save all settings from the MAIN MENU by selecting sAve.
-----------------------------Server Port seTting [sAve] Utility Restart Exit
Save current configuration to Flash ROM
ESC: back to menu Enter: select
+-------------------------------------+|Enter to updated, other key to cancel|+-------------------------------------+
Restart
1.From the MAIN MENU, select Restart.
Server Port seTting sAve Utility [Restart] Exit
Restart the whole system or selected async ports
Enter: select ESC: previous menu
2. Select System and then press Enter to restart the system and terminate the Telnet session.
Restart the Async Server
----------------------------
----------------------------
Port Quit
: back to menu Enter: select
+----------------------------------------------------------------------+
| Warning !!! |
| Restart system will disconnect all ports and clear all status value |
| ‘ Enter: continue ESC: cancel |
+----------------------------------------------------------------------+
3
3. Knowing Your Application
This chapter discusses a variety of applications for CN2510 Async Server. Refer to the diagrams in each section
to see which application most closely matches your own. Determining which application you should choose will
save time configuring both the hardware and software.
CN2510 is an Async Server that can support simultaneously different operation modes for different serial ports.
The examples in this chapter explain each operation mode in detail. You can create a wide variety of
applications by using different combinations of operation modes on the same Async Server.
NOTE: Each section title consists of an application name that uses terminology common to our industry,
followed in parentheses by the application name used in CN2510’s console utility. For example, the CN2510
application that corresponds to Linux Real TTY/Unix Fixed TTY is NT Real COM mode.
The following topics are covered in this chapter:
Windows Real COM (NT Real COM)
Linux Real TTY/Unix Fixed TTY (NT Real COM)
Device Control (Device Control)
UDP Communication (Raw UDP)
Console Management (Reverse Terminal)
Terminal Access (Terminal)
Multi-host TTY (Multi-host TTY)
Dial-in/Out-of-Band Management (Dialin/out)
Network Printer (Printer)
Multiplexor Access (Multiplex)
CN2510 Knowing Your Application
3-2
s
Windows Real COM (NT Real COM)
Moxa provides CN2510 COM port drivers for all Windows operating systems. The COM port driver serves a dual
purpose—(1) convert serial data into Ethernet packets, (2) convert Ethernet packets into serial data—as
outlined in the following table:
PC CN2510 Serial Device Serial Device CN2510 PC
1. The PC generates RS-232 serial COM commands.
2. The COM port driver converts the commands
into Ethernet packets.
3. The packets are sent over the network to CN2510’
Ethernet port.
4. CN2510 converts the Ethernet packets back into
RS-232 serial format.
5. The commands are delivered to serial device(s)
connected to CN2510’s serial port(s).
You can enhance your applications greatly by using CN2510 to access serial devices over an Ethernet network,
and since CN2510 and the COM driver handle all protocol conversion tasks, you won’t need to modify the
software currently in use. In fact, multiple PCs can access the serial ports of one CN2510, as shown in the
figure.
Refer to Chapter 4 for detailed information and configuration instructions.
1. A serial device connected to CN2510 starts
transmitting serial data.
2. CN2510 converts the data into one or more
Ethernet packets.
3. The packets are sent over the network to the PC
host’s Ethernet port.
4. The COM port driver converts the Ethernet
packets back into RS-232 serial format.
5. The serial data is processed by the program that
controls the serial device.
CN2510 Knowing Your Application
3-3
Linux Real TTY/Unix Fixed TTY (NT Real COM)
Real TTY drivers that control Moxa CN2510 Async Server’s serial ports are provided for Linux environments.
This means that CN2510 Async Server can be used with existing Linux-based applications that use multiport
serial boards, since the host PC will recognize CN2510’s COM ports as real TTY ports. You can enhance your
applications by using CN2510 to access serial devices over an Ethernet network, but without needing to modify
the software currently in use.
Moxa also provides Fixed TTY port drivers for Unix environments. However, the Linux Real TTY and Windows
Real COM port drivers provide better control over serial port data transmission, since you can control modem
signals such as DTR, DSR, RTS, and CTS. The Unix Fixed TTY driver provides software reception and
transmission through CN2510’s serial ports, but does not allow you to control the DTR, DSR, RTS, and CTS
modem signals.
Refer to Chapter 4 for detailed information and configuration instructions.
CN2510 Knowing Your Application
3-4
Device Control (Device Control)
The CN2510 Device Control application allows you to choose between two different operation modes: ASPP and
RAW.
ASPP Mode—For applications that require setting up communication parameters or controlling modem signals
(DTR, RTS, Break, etc.), take advantage of Moxa’s ASPP lib to simplify your programming tasks. ASPP takes
care of the more basic protocol-level programming tasks, and allows you to concentrate your energy on higher
level, application-specific tasks.
RAW Mode—To control device data transmission directly, set CN2510 for TCP RAW mode. Device control
applications can use standard Linux/Unix Socket programming in Linux/Unix environments, or WinSock
programming in Windows environments. Standard socket programming allows you to focus on pure data
transmission, without needing to write code for controlling serial ports or modem signals. ASPP can also be
used to communicate with CN2510.
Linux/Unix socket programming and Windows WinSock programming both use IP as the communication agent
between hosts and devices. RAW mode is a good solution for handling pure serial data communications
applications that do not require setting up communication parameters (baud rate, parity, etc.).
Refer to Chapter 5 for detailed information and configuration instructions.
CN2510 Knowing Your Application
3-5
UDP Communication (Raw UDP)
UDP is a non connection-oriented data transmission protocol that has the advantages of efficient, high-speed,
high-volume data transmission. Since UDP does not use TCP’s handshaking procedure, it does not re-assemble
and retransmit packets when data is missing. This means that data integrity is sacrificed for higher
transmission speed. UDP provides a very powerful transmission method when data needs to be transmitted
quickly over the network, and upper-level application software is given the responsibility of verifying the
accuracy of the data.
UDP can also use broadcasting or multicasting technologies to handle point to multi-point transmissions. UDP
is an ideal transmission method for serial devices that must transmit data to a group of devices or PCs.
Refer to Chapter 6 for detailed information and configuration instructions.
CN2510 Knowing Your Application
3-6
Console Management (Reverse Terminal)
The Reverse Terminal application, which uses Rtelnet mode, is used with routers, switches, and UPS equipment
for console management applications. Rtelnet mode is similar to RAW mode, in that after booting up it listens
to one specific TCP port for network hosts to initiate a connection. RAW mode, however, does not provide a
Telnet conversion function. If the serial devices connected to CN2510 need to use the CR/LF conversion
function, then Rtelnet mode must be used. CN2510’s Rtelnet mode is also used widely for device management
applications in telecommunication control rooms, since remote hosts can make use of Local User Table or
RADIUS identity verification methods.
Refer to Chapter 7 for detailed information and configuration instructions.
CN2510 Knowing Your Application
3-7
Terminal Access (Terminal)
CN2510’s Terminal Access application is used to connect terminals to Unix or Windows Servers over a network.
The terminals connect to CN2510’s serial ports at a remote site, with terminal commands transmitted over the
network via CN2510’s Ethernet port. The Terminal Access application allows you to use fast keys used in many
terminal applications, and switching sessions on the same terminal. CN2510 supports ASCII terminal and
Binary terminal, with up to 8 simultaneous sessions for each port.
Refer to Chapter 8 for detailed information and configuration instructions.
CN2510 Knowing Your Application
3-8
Multi-host TTY (Multi-host TTY)
The Multi-host TTY application is ideal for connecting over a network to multiple Unix hosts from several
sessions simultaneously. When communication begins, the networked Unix server must first enable Moxattyd
to activate the TTY port’s mapping function. Moxattyd will initiate the connection with the CN2510, and the
CN2510 will listen to the connection requests issued by various Moxattyd over different TCP ports.
Once the connection is established, the Terminal server can use hot keys to switch sessions, allowing one
terminal to control different Unix hosts.
Refer to Chapter 9 for detailed information and configuration instructions.
CN2510 Knowing Your Application
3-9
Dial-in/Out-of-Band Management (Dialin/out)
Moxa CN2510 Async Server provides dial-up/dial-out access for ISPs and enterprises that need a remote
access solution. When a user at a remote site uses a PPP dial-up connection to access CN2510, CN2510 plays
the role of dial-up server, but also ensures the user has legal access to the network by verifying the user’s
identity with its Local User Table or RADIUS.
CN2510 supports PPP, SLIP, and Terminal modes for dial-up/dial-out access. Regardless of which OS is used,
you will always be able to use standard PPP dial-up to establish a connection. CN2510 can also act as an Async
router to connect serial ports to a WAN connection. Routing protocols (including static, RIP I, and RIP II) can
be adjusted to route different WAN connections.
Refer to Chapter 10 for detailed information and configuration instructions.
CN2510 Knowing Your Application
3-10
Network Printer (Printer)
CN2510 Async Server’s printing program (running under UNIX) provides an excellent solution for banking and
stock exchange services with huge printing demands. Use a Windows or Unix host’s network printer function
via RAW mode, and assign a specific IP address and TCP port number to specify the printer’s location. You can
also connect to the printer via LPD mode when LPD protocol is needed to operate the printer.
Refer to Chapter 11 for detailed information and configuration instructions.
CN2510 Knowing Your Application
3-11
NOTE
Multiplexor Access (Multiplex)
If are using a multiport serial board installed in a UNIX host, but wish to extend the device control range without
dismantling the host, you can accomplish this with CN2510. Multiplex and De-multiplex solutions use CN2510’s
RTelnet and terminal modes, eliminating the need to modify existing software. CN2510 acts like a converter by
extending the communication distance. CN2510s work in pairs over the network to overcome the short
communication distance limitation imposed by serial connections.
See Chapter 12 for detailed configuration instructions.
This mode does not allow copying the status of control signals to devices at a remote site.
4
4. Setting Up Windows Real COM/Linux Real
TTY/Unix Fixed TTY
CN2510 Async Server supports Real COM/TTY drivers for Windows and Linux, allowing CN2510’s serial ports to
be recognized as Real COM ports by the Windows operating system, or Real TTY ports by Linux operating
systems. CN2510 Async Server can be used for a variety of applications to make the serial ports accessible over
an Ethernet, but without the need to modify existing serial transmission software. The Real COM driver
provided by Moxa lets users treat networked serial ports the same as local serial ports.
The following topics are covered in this chapter:
Accessing the Console Utility
Selecting the Application
Configuring ASPP Mode
Configuring the Serial Ports
Save
Restart
Setting up Hosts
Setting up Windows XP/2003 Hosts
Setting up Windows 2000 Hosts
Setting up Windows 95/98/ME/NT Hosts
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-2
NOTE
In this section, we show how to access CN2510’s console utility by Telnet over the network. For information on
using the console port, see the section “Accessing the Console Utility” in Chapter
Telnet 192.168.127.254
Telnet 192.168.127.254
CN2510-8 CN2510-8_5631 V2.0 MAIN MENU
------------------
[Server]
Select item
CN2510-8 CN2510-8_5631 V2.0 MAIN MENU
------------------------------------------------
Accessing the Console Utility
2.
1. Telnet over the network to the server’s IP address.
2. Type 1 to choose ansi/vt100, and then press Enter.
Async Server CN2510-8
Console terminal type (1: ansi/vt100, 2: vt52) : 1
08 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
2. From the PORT MENU, select Mode, and then press Enter.
------------------------------
Line mOdem Welcome_MSG Quit
Examine/modify the operation mode of async ports
Enter: select ESC: previous menu
3. The Mode page has pop-up selection lists for Application, Mode, and Description/more setting for
each serial port. Use the arrow keys to move the cursor to the Application column for the port to be
configured, and then press Enter. We use Port 6 to illustrate.
----------------------------
Mode] Line mOdem Welcome_MSG Quit
Examine/modify the operation mode of async ports
ESC: back to menu Enter: select
Port Application Mode Description/more setting
01 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
02 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
03 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
04 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
05 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
06 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
4. Use the Up/Down arrow keys to select NT Real COM, and then press Enter.
----------------------------
Mode] Line mOdem Welcome_MSG Quit
Examine/modify the operation mode of async ports
ESC: back to menu Enter: select
Port Application +------------------+ption/more setting
01 [NT Real COM ]| Disable | Server Proprietary Protocol]
02 [NT Real COM ]| Dialin/out | Server Proprietary Protocol]
03 [NT Real COM ]| Terminal | Server Proprietary Protocol]
04 [NT Real COM ]| Reverse Terminal | Server Proprietary Protocol]
05 [NT Real COM ]| Device Control | Server Proprietary Protocol]
06 [NT Real COM ]| Multiplex | Server Proprietary Protocol]
07 [NT Real COM ]| Printer | Server Proprietary Protocol]
08 [NT Real COM ]| Multi-Host TTY | Server Proprietary Protocol]
]| NT Real COM |
]| Raw UDP |
5. ASPP mode is selected by default, since it is the only mode associated with the NT Real COM application.
---------------------------------------
Mode] Line mOdem Welcome_MSG Quit
Examine/modify the operation mode of async ports
ESC: back to menu Enter: select
Port Application Mode Description/more setting
01 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
02 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
03 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
04 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
05 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
06 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
07 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
06 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
Configuring ASPP Mode
Follow these steps to configure ports for ASPP mode:
1. Move the cursor to the Description/more setting column and press Enter.
----------------------------
Mode] Line mOdem Welcome_MSG Quit
Examine/modify the operation mode of async ports
ESC: back to menu Enter: select
Port Application Mode Description/more setting
01 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
02 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
03 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
04 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
05 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
06 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
07 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
2.The pop-up selector contains input/display fields for TCP data port, TCP command port, and TCP alive
check time. Each item is described in detail below the figure.
Mode] Line mOdem Welcome_MSG Quit
Examine/modify the operation mode of async ports
ESC: back to menu Enter: select
Port Application Mod+------------------------------------------+
01 [NT Real COM ] [AS| TCP data port : [950] |]
02 [NT Real COM ] [AS| TCP command port : [966] |]
03 [NT Real COM ] [AS| TCP alive check time : [0 ] minutes |]
04 [NT Real COM ] [AS+-----------------------------------------+
05 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
Setting Value Notes Necessity
TCP data port 950 – 965 The host uses this port number to determine which
serial device to send data to. These values are
fixed, and cannot be changed by the user.
Serial Port TCP Port No.
01 950
02 951
03 952
… …
16 965
TCP command port 966 – 981 The host uses this port number to determine which
device to send commands to. These values are
fixed, and cannot be changed by the user.
Serial Port TCP Port No.
01 966
TCP alive check time 0 – 99 min.
(default =
7 min)
02 967
03 968
… …
16 981
The time period CN2510 waits before checking if the
TCP connection is alive or not. If no response is
received, CN2510 will reset the port and terminate
the connection.
----------------------------
Required
Required
Optional
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
When exiting the SERVER MENU, you will be prompted to save settings. Press Y to save.
---------------------------Info. Lan Adv. Host_table Route_table [User_table] Quit
Examine/modify async server basic configuration
Enter: select ESC: previous menu
+------------------------------------------------------+
| Warning !!! |
| You had modified the configuration without saving. |
| Would you save it now ? |
| ‘Y’: yes ‘N’: no |
+------------------------------------------------------+
You may also save all settings from the MAIN MENU by selecting sAve and then pressing Enter. Press Enter
again to save, and any other key to cancel.
---------------------------Server Port seTting [sAve] Utility Restart Exit
Save current configuration to Flash ROM
ESC: back to menu Enter: select
+-------------------------------------+|Enter to updated, other key to cancel|+-------------------------------------+
Restart
1.From the MAIN MENU, select Restart.
Server Port seTting sAve Utility [Restart] Exit
Restart the whole system or selected async ports
Enter: select ESC: previous menu
2. Select System and then press Enter to restart the system and terminate the Telnet session.
Restart the Async Server
----------------------------
----------------------------
Port Quit
: back to menu Enter: select
+----------------------------------------------------------------------+
| Warning !!! |
| Restart system will disconnect all ports and clear all status value |
| ‘ Enter: continue ESC: cancel |
+----------------------------------------------------------------------+
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-7
Setting up Hosts
After using CN2510 Console Utility to set up Async Server’s ports for the NT Real COM application (ASPP mode),
you will need to install port drivers on every computer used to access CN2510’s ports. In this section we explain
how to set up Windows hosts
Setting up Windows XP/2003 Hosts
In this section, we use Windows XP to illustrate the installation procedure. The installation procedure for
Windows 2003 machines is identical.
Installing a Server
1. Unzip the Windows XP/2003 driver file, located on the CN2510 CD ROM, to your hard disk.
2. Run the Windows Add Hardware Wizard, located in the Control Panel.
3. When the Welcome to the Add Hardware Wizard window opens, click on Next to continue.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-8
4. Wait patiently while the Wizard searches for servers connected to the network.
5. The next window to open will ask you if the hardware is connected. Select Yes, I have already connected
the hardware, and click on Next to continue.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-9
6. Select Add a new hardware device, and then click on Next to continue.
7. Select Install the hardware that I manually select from a list (Advanced) to install the hardware,
and then click on Next to continue.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-10
8.The window that opens next will ask you to select the type of hardware you are installing. Select Multi-port
serial adapters, and then click on Next to continue.
9. The window that opens next will ask you to select the device driver you want to install for this hardware.
Click on Have Disk… to install from the CD.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-11
10. Locate and then select the driver file NPSERVER.INF. Click on Open to proceed with the installation.
11. Select the correct CN2510 model, and then click on Next to continue.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-12
12. The Wizard will start installing the driver, and automatically search the network for copies of the CN2510
model you selected in the previous step.
13. Although the next window to open states that the software hasn’t passed Windows Logo testing, you can
rest assured that this driver has already been tested and been shown that it can support this Windows OS.
Click on Continue Anyway to proceed.
14. Wait patiently while the driver is installed.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-13
15.You can select the CN2510 that was located automatically, or select Manually Enter the IP address of
NPort Server / Async Server and then enter the IP address of a different server. Click on Next to finish
installing the CN2510 driver.
16. The next window reports that the driver was installed, and port drivers will be installed next. Click on Next
to continue.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-14
17. Click on Finish to complete the installation of the server driver. This will automatically trigger the port
installation procedure.
Installing Ports
1. After the CN2510 server driver has been installed, Windows will notify you that new hardware has been
found. Select Install from a list or specific location (Advanced), and then click on Next to continue.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-15
2. Select Include this location in the search, and then click on Next to continue.
3. Although the next window to open states that the software hasn’t passed Windows Logo testing, you can
rest assured that this driver has already been tested and been shown that it can support this Windows OS.
Click on Continue Anyway to proceed.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-16
4. The driver for Moxa Port 0 will be installed.
5. After Moxa Port 0 is installed, steps 1 to 4 will be repeated 7 or 15 times, depending on whether you are
installing drivers for the 8-port or 16-port CN2510.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-17
6. After the installation is complete, you can check Ports (COM & LPT) under Device Manager to verify that
all of the ports were installed successfully.
Configuring CN2510 in a Windows XP/2003 Environment
After the CN2510 driver is installed, you will be given the option to proceed directly with the configuration of
CN2510. You may also configure CN2510 at a later time. In this section we explain how to configure Real COM
Mapping.
1. Click on Device Manager Multiport serial adapters, right click on the CN2510 you would like to
configure, and select Properties.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-18
2. Click on the Configuration tab.
3. Click on Settings to configure CN2510’s Basic Configuration, Password, and Access Control.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-19
4. On the Basic Configuration page, modify Server Name, IP Address, Netmask, and Gateway. Check
the DHCP checkbox if the network parameters will be assigned automatically by a DHCP server.
5. On the Password page, add a password or change the existing password. Check the Remember Password
checkbox to remember the password on this computer.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-20
6. The Access Control page allows you to set up access rights for each of the CN2510’s ports. Access right is
assigned by IP address. In the example shown here, the “netmask” of 255.255.255.255 limits access to the
listed IP address (192.168.6.16). To allow access to a group of IP addresses, adjust the “netmask”
accordingly.
To allow any IP address to access a port, delete all IP addresses assigned to that port.
7. Click on Modify to save all Property Sheet settings and return to the Properties / Configuration page.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-21
8. Click on Ports Setting to configure the data transmission mode and FIFO for each COM port.
9. Check the box(es) next to the port(s) you would like to modify, and then click on Modify Setting.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-22
10.Modify the settings that need to be changed, and then click on OK.
Setting up Windows 2000 Hosts
In this section, we explain how to set up a host in a Windows 2000 environment.
Installing a Server
1. Unzip the Windows 2000 driver file, located on the CN2510 CD ROM, to your hard disk.
2. Run the Windows Add Hardware Wizard, located in the Control Panel.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-23
3. When the Welcome to the Add Hardware Wizard window opens, click on Next to continue.
4. In the Choose a Hardware Task window, select Add/Troubleshoot a device, and then click on Next to
continue.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-24
5. In the Choose a Hardware Device window, select Add a new device, and then click on Next to
continue.
6. In the Find New Hardware window, select No, I want to select the hardware from a list, and then
click on Next to continue.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-25
7. In the Hardware Type window, select Multi-port serial adapters from the Hardware types list, and
then click on Next to continue.
8. Click on Have Disk to install from the CD, and then click on Next to continue.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-26
9. After locating the win2k folder, select the driver file NPSERVER.INF, and then click on Open.
10. Select the correct CN2510 model, and then click on Next to continue.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-27
11. The Wizard will start installing the Server driver, and automatically search the network for copies of the
CN2510 model you selected in the previous step.
12. Although the next window to open states that the software hasn’t passed Windows Logo testing, you can
rest assured that this driver has already been tested and been shown that it can support this Windows OS.
Click on Continue Anyway to proceed.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-28
13.You can select the CN2510 that was located automatically, or select Manually Enter the IP address of
NPort Server / Async Server and then enter the IP address of a different server. Click on Next to finish
installing CN2510 driver.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-29
14. The next window reports that the driver was installed, and port drivers will be installed next. Click on Next
to continue.
Installing Ports
1.The ports will be installed automatically. Click on Finish to conclude the installation procedure.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-30
2. After the installation is complete, you can check Ports (COM & LPT) under Device Manager to verify that
all of the ports were installed successfully.
Configuring CN2510 in a Windows 2000 Environment
After the CN2510 driver is installed, you will be given the option to proceed directly with the configuration of
CN2510. You may also configure CN2510 at a later time. In this section we explain how to configure Real COM
Mapping.
1. Click on Device Manager Multiport serial adapters, right click on the CN2510 you would like to
configure, and select Properties.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-31
2. Click on the Configuration tab.
3. Click on Settings to configure CN2510’s Basic Configuration, Password, and Access Control.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-32
4. On the Basic Configuration page, modify Server Name, IP Address, Netmask, and Gateway. Check
the DHCP checkbox if the network parameters are assigned automatically by a DHCP server.
5. On the Password page, add a password or change the existing password. Check the Remember Password
checkbox to remember the password on this computer.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-33
6. The Access Control page allows you to set up access rights for each of the CN2510’s ports. Access right is
assigned by IP address. In the example shown here, the “netmask” of 255.255.255.255 limits access to the
listed IP address (192.168.6.16). To allow access to a group of IP addresses, adjust the “netmask”
accordingly. To allow any IP address to access a port, delete all IP addresses assigned to that port. Click on
Modify to make changes.
7. And then click on OK to return to the Access Control page.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-34
8. Click on OK to return to the Configuration page.
9. Click on Ports Setting to configure the data transmission mode and FIFO for each COM port.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-35
10. Check the box(es) next to the port(s) you would like to modify, and then click on Modify Setting.
11. Modify the settings that need to be changed, and then click on OK.
Setting up Windows 95/98/ME/NT Hosts
In this section, we explain how to set up a host in a Windows 95/98/ME/NT environment. You will first install
the NPort Pro Manager program, and then use this utility to configure the server. We use Windows NT to
illustrate the installation procedure.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-36
Installing a Server
1. Unzip the Windows 95/98/ME/NT driver file, located on the CN2510 CD ROM, to your hard disk.
2. Locate and run the Setup.exe file.
3. The setup program is used for both CN2500 and NPort Server Pro products, so you will see a Welcome to
NPort Server Pro window. Click on Next to continue.
4. Select Custom mode, and then click on Next to continue.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-37
5. Select a Destination Directory and then click on Next to continue.
6. Click on Next to finish installing NPort Pro Manager.
7. After the driver is installed, NPort Pro Manager and the Add Server Wizard will start running
automatically. Select Yes, and then click on Next to continue.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-38
8. Select one of the server’s in the list, or select No, I will define the server myself if the correct server is
not listed. Click on Next to continue.
9. If necessary, enter a different IP address in the Server IP address box, and then click on Next to
continue.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-39
10. Select the COM number for CN2510’s port 1. The rest of the ports will be mapped automatically. Click on
Next to continue.
11. For added security, set a password for the CN2510. Check the Auto-Saved box to save the password on
your computer. Click on Next to continue.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-40
12. Check the new server settings to make sure they are correct, and then click on Finish.
13. The server and ports will be displayed in the NPort Server Manager window. Click the Save icon in the
upper left corner to save the settings before exiting the program.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-41
Configuring CN2510 in a Windows 95/98/ME/NT Environment
After the CN2510 driver is installed, you can proceed directly with the configuration of CN2510, or configure
CN2510 at a later time. In this section we explain how to configure Real COM Mapping.
1. Start the Manger by clicking on Start Properties NPort Server NPort Server Manager, and then
click on the server you would like to configure. The ports will be shown in the right pane of the window.
2. Right click on the CN2510 you wish to configure, click the right mouse button, and then select Server
Properties.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-42
3.On the General page, you can see the server’s Serial No., and modify Server Name, Server IP, and
Netmask. Select the Enable option (to the right of DHCP)if the network parameters are assigned
automatically by a DHCP server.
4. On the Password page, set up a password for this CN2510 for added security. Check the Auto Save
Password on this computer box if you want your computer to remember the password.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-43
5. The Access Control page allows you to set up access rights for each of the CN2510’s ports. Access right is
assigned by IP address.
6. The Transmission page lets you to select a Transmission Mode and Tx FIFO for each port.
7. The Access Control page is used to modify access rights to the server.
CN2510 Setting Up Windows Real COM/Linux Real TTY/Unix Fixed TTY
4-44
8. The Advanced page allows you to add routes to CN2510. However, since CN2510 has a column to set the
Default Gateway, you can ignore this configuration.
5
5. Setting Up Device Control
Device Control applications use standard Linux/Unix Socket programming for Linux/Unix systems, or WinSock
programming for Windows systems, to control device data transmission directly. With CN2510 configured for
RAW mode, you can focus on pure data transmission, without using serial port control or serial modem control
signals. You can also use ASPP mode, provided exclusively by Moxa, to communicate with CN2510.
For both Linux/Unix Socket programming and Windows WinSock programming, IP is used to communicate
between hosts and devices. At the end of the chapter, we give examples that explain how ASPP is used in a
UNIX/Windows environment.
The following topics are covered in this chapter:
Accessing the Console Utility
Selecting the Application
Configuring ASPP Mode
Configuring RAW Mode
Configuring the Serial Ports
Save
Restart
ASPP Library Introduction
ASPP Examples for Unix
ASPP Examples for Windows
CN2510 Setting Up Device Control
5-2
NOTE
In this section, we show how to access CN2510’s console utility by Telnet over the network. For information on
using the
Telnet 192.168.127.254
Telnet 192.168.127.254
CN2510-8 CN2510-8_5631 V2.0 MAIN MENU
------------------
[Server]
Select item
CN2510-8 CN2510-8_5631 V2.0 MAIN MENU
------------------------------------------------
Accessing the Console Utility
console port, see the section “Accessing the Console Utility” in Chapter 2.
1. Telnet over the network to the server’s IP address.
2. Type 1 to choose ansi/vt100, and then press Enter.
Async Server CN2510-8
Console terminal type (1: ansi/vt100, 2: vt52) : 1
07 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
2. From the PORT MENU, select Mode, and then press Enter.
------------------------------
Line mOdem Welcome_MSG Quit
Examine/modify the operation mode of async ports
Enter: select ESC: previous menu
3. The Mode page has pop-up selection lists for Application, Mode, and Description/more setting for
each serial port. Use the arrow keys to move the cursor to the Application column for the port to be
configured, and then press Enter. We use Port 6 to illustrate.
----------------------------
Mode] Line mOdem Welcome_MSG Quit
Examine/modify the operation mode of async ports
ESC: back to menu Enter: select
Port Application Mode Description/more setting
01 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
02 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
03 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
04 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
05 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
06 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
4. Use the Up/Down arrow keys to select Device Control, and then press Enter.
----------------------------
Mode] Line mOdem Welcome_MSG Quit
Examine/modify the operation mode of async ports
ESC: back to menu Enter: select
Port Application +------------------+ption/more setting
01 [NT Real COM ]| Disable | Server Proprietary Protocol]
02 [NT Real COM ]| Dialin/out | Server Proprietary Protocol]
03 [NT Real COM ]| Terminal | Server Proprietary Protocol]
04 [NT Real COM ]| Reverse Terminal | Server Proprietary Protocol]
05 [NT Real COM ]| Device Control | Server Proprietary Protocol]
06 [NT Real COM ]| Multiplex | Server Proprietary Protocol]
07 [NT Real COM ]| Printer | Server Proprietary Protocol]
08 [NT Real COM ]| Multi-Host TTY | Server Proprietary Protocol]
]| NT Real COM |
]| Raw UDP |
5. ASPP mode is selected by default.
----------------------------
Mode] Line mOdem Welcome_MSG Quit
Examine/modify the operation mode of async ports
ESC: back to menu Enter: select
Port Application Mode Description/more setting
01 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
02 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
03 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
04 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
05 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
06 [Device Control ] [ASPP ] [Async Server Proprietary Protocol]
CN2510 Setting Up Device Control
5-4
CN2510-8 CN2510-8_5631 V2.0
----------------------------------
[
07 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
08 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
After configuring a port for the Device Control application, you will need to choose between one of two
operation modes: ASPP and RAW. ASPP mode, which was developed by Moxa, provides an easy-to-use
TCP/IP socket programming library and other useful functions. Choosing RAW mode gives you more
freedom to define your own applications for serial data transmitted and received over the Ethernet. If you
select RAW mode, you will need to use standard TCP/IP socket programming techniques.
Configuring ASPP Mode
Moxa ASPP is a TCP/IP socket programming library. If you are using Moxa ASPP to create your programs,
configure CN2510’s serial ports for ASPP mode, and copy the ASPP library to the server. ASPP programming
functions and examples are introduced at the end of this chapter.
Each physical ASPP port is divided into two logical ports. One is called the command port, and the other is
called the data port. The command port is used to issue commands across the network to set the transmission
line’s configuration parameters, such as baud rate, data bits, flow control condition, etc. The data port is used
for normal data transmission tasks, such as retrieving data from the serial device.
Follow these steps to configure ports for ASPP mode:
1. Move the cursor to the Mode column for the port and press Enter.
--------------------------------------------
Mode] Line mOdem Welcome_MSG Quit
Examine/modify the operation mode of async ports
ESC: back to menu Enter: select
Port Application Mode Description/more setting
01 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
02 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
03 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
04 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
05 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
06 [Device Control ] [ASPP ] [Async Server Proprietary Protocol]
2. Use the arrow keys to highlight ASPP, and then press Enter.
----------------------------
Mode] Line mOdem Welcome_MSG Quit
Examine/modify the operation mode of async ports
ESC: back to menu Enter: select
Port Application Mode Description/more setting
01 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
02 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
03 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
04 [NT Real COM ] [ASPP ]+----------+rver Proprietary Protocol]
05 [NT Real COM ] [ASPP ]| ASPP |rver Proprietary Protocol]
06 [Device Control ] [ASPP ]| RAW |rver Proprietary Protocol]
07 [NT Real COM ] [ASPP ]+----------+rver Proprietary Protocol]
07 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
checking
3. Move the cursor to the Description/more setting column and press Enter.
----------------------------
Mode] Line mOdem Welcome_MSG Quit
Examine/modify the operation mode of async ports
ESC: back to menu Enter: select
Port Application Mode Description/more setting
01 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
02 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
03 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
04 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
05 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
06 [Device Control ] [ASPP ] [Async Server Proprietary Protocol]
4.The pop-up selector contains input/display fields for TCP data port, TCP command port, and TCP alive
check time. Each item is described in detail below the figure.
----------------------------
Mode] Line mOdem Welcome_MSG Quit
Examine/modify the operation mode of async ports
ESC: back to menu Enter: select
Port Application Mod+-----------------------------------------+
01 [NT Real COM ] [AS| TCP data port : [950] |]
02 [NT Real COM ] [AS| TCP command port : [966] |]
03 [NT Real COM ] [AS| TCP alive check time : [0 ] minutes |]
04 [NT Real COM ] [AS+-----------------------------------------+]
05 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
06 [Device Control ] [ASPP ] [Async Server Proprietary Protocol]
Setting Value Notes Necessity
TCP data port 950 – 965 The host uses this value to determine which
serial device to send data to. These values
are fixed, and cannot be changed by the
user.
Serial Port TCP Port No.
01 950
02 951
03 952
… …
16 965
TCP command port 966 – 981 The host uses this Port value to determine
which device to send commands to. These
values are fixed, and cannot be changed
by the user.
Serial Port TCP Port No.
01 966
02 967
03 968
TCP alive check time 0 – 99 min. The time period CN2510 waits before
07 [NT Real COM ] [ASPP ]+----------+rver Proprietary Protocol]
CN2510-8 CN2510-8_5631 V2.0
--------------------------------------------
[
08 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol ]
0’s serial ports is mapped to a TCP port.
Configuring RAW Mode
RAW mode is used for standard TCP/IP socket programs. RAW mode provides a transparent communication
link between the network socket program and the corresponding serial port.
1. Move the cursor to the Mode column for the port and press Enter.
----------------------------
Mode] Line mOdem Welcome_MSG Quit
Examine/modify the operation mode of async ports
ESC: back to menu Enter: select
Port Application Mode Description/more setting
01 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
02 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
03 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
04 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
05 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
06 [Device Control ] [ASPP ] [Async Server Proprietary Protocol]
2. Use the arrow keys to highlight RAW, and then press Enter.
----------------------------
Mode] Line mOdem Welcome_MSG Quit
Examine/modify the operation mode of async ports
ESC: back to menu Enter: select
Port Application Mode Description/more setting
01 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
02 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
03 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
04 [NT Real COM ] [ASPP ]+----------+rver Proprietary Protocol]
05 [NT Real COM ] [ASPP ]| ASPP |rver Proprietary Protocol]
06 [Device Control ] [ASPP ]| RAW |rver Proprietary Protocol]
3. Move the cursor to the Description/more setting column, and then press Enter. The pop-up selector
contains input/display fields for TCP port, Source IP address, Destination IP addr, Inactivity time,
and TCP alive check time. Each item is described in detail below the figure.
----------------------------------
Mode] Line mOdem Welcome_MSG Quit
Examine/modify the operation mode of async ports
ESC: back to menu Enter: select
Port Application Mod+------------------------------------------+
01 [NT Real COM ] [AS| TCP port : [4001 ] |]
02 [NT Real COM ] [AS| Source IP address : [ ] |]
03 [NT Real COM ] [AS| Destination IP addr : [ ] |]
05 [NT Real COM ] [AS| Inactivity time : [0 ] minutes |]
06 [Device Control ] [RA| TCP alive check time : [0 ] minutes |]
07 [NT Real COM ] [AS+------------------------------------------+]
Setting Value Notes Necessity
TCP port number Each of CN251
You may modify these port numbers, but to avoid
conflicts among TCP port numbers for other serial
ports, we strongly suggest using the default values:
Discon. Ctrl None DSR off or DCD off will not be interpreted as a
disconnection.
DSR off DSR off will be interpreted as a disconnection.
DCD off DCD off will be interpreted as a disconnection.
4. Press ESC to return to the PORT MENU.
Save
When exiting the SERVER MENU, you will be prompted to save settings. Press Y to save.
---------------------------Info. Lan Adv. Host_table Route_table [User_table] Quit
Examine/modify async server basic configuration
Enter: select ESC: previous menu
+------------------------------------------------------+
| Warning !!! |
| You had modified the configuration without saving. |
| Would you save it now ? |
| ‘Y’: yes ‘N’: no |
+------------------------------------------------------+
You may also save all settings from the MAIN MENU by selecting sAve and then pressing Enter. Press Enter
again to save, and any other key to cancel.
Server Port seTting [sAve] Utility Restart Exit
Save current configuration to Flash ROM
ESC: back to menu Enter: select
+-------------------------------------+|Enter to updated, other key to cancel|+-------------------------------------+
2. Select System and then press Enter to restart the system and terminate the Telnet session.
----------------------------
Port Quit
Restart the Async Server
: back to menu Enter: select
+----------------------------------------------------------------------+
| Warning !!! |
| Restart system will disconnect all ports and clear all status value |
| ‘ Enter: continue ESC: cancel |
+----------------------------------------------------------------------+
ASPP Library Introduction
The CN2510 Documentation and Software CD contains example programs that illustrate how to control an
ASPP port. After uncompressing the file ASPP.tar, the folder \aspp_unix\aspp.h will contain several basic
subroutines.
The following subroutines are used to control an ASPP port:
1. sio_init()—start ASPP Library
2. sio_open(ipaddr, p)—open a serial port
3. sio_close(fd)—close a serial port
4. sio_ioctl(fd, baud, mode)—configure a serial port’s baud rate, parity, etc.
5. sio_baud(fd, baud, mode)—configure serial port’s baud rate
6. sio_flowctrl(fd, mode)—configure hardware and/or software flow control
7. sio_lctrl(fd, mode)—line control
8. sio_lstatus(fd)—check line status
9. sio_flush(fd, func)—clear input/output buffer
10. sio_write(fd, buf, len)—write data
11. sio_read(fd, buf, len)—read data
12. sio_break(fd, time)—send break signals
13. sio_oqueue(fd)—check how much data is in the output buffer
14. sio_iqueue(fd)—check how much data is in the input buffer
ASPP Examples for Unix
In general, controlling devices attached to ASPP ports involves using the following procedures:
1. Create a socket for the command port, and then connect to the port.
2. Configure the port’s serial parameters, such as baud rate, via the command port.
3. Create a socket for the data port, and then connect to the port.
4. Transfer data via the data port.
This example program continually sends the string “1234567890” to CN2510’s ASPP port and then reads back
data when the program ends.
CN2510 Setting Up Device Control
5-10
Settings:
Target port: parity = None, data bits = 8, stop bit = 1, software (XON/XOFF) flow control, no hardware
07 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
2. From the PORT MENU, select Mode, and then press Enter.
------------------------------
Line mOdem Welcome_MSG Quit
Examine/modify the operation mode of async ports
Enter: select ESC: previous menu
3. The Mode page has pop-up selection lists for Application, Mode, and Description/more setting for
each serial port. Use the arrow keys to move the cursor to the Application column for the port to be
configured, and then press Enter. We use Port 6 to illustrate.
----------------------------
Mode] Line mOdem Welcome_MSG Quit
Examine/modify the operation mode of async ports
ESC: back to menu Enter: select
Port Application Mode Description/more setting
01 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
02 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
03 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
04 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
05 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
06 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
4. Use the Up/Down arrow keys to select Raw UDP, and then press Enter.
----------------------------
Mode] Line mOdem Welcome_MSG Quit
Examine/modify the operation mode of async ports
ESC: back to menu Enter: select
Port Application +------------------+ption/more setting
01 [NT Real COM ]| Disable | Server Proprietary Protocol]
02 [NT Real COM ]| Dialin/out | Server Proprietary Protocol]
03 [NT Real COM ]| Terminal | Server Proprietary Protocol]
04 [NT Real COM ]| Reverse Terminal | Server Proprietary Protocol]
05 [NT Real COM ]| Device Control | Server Proprietary Protocol]
06 [NT Real COM ]| Multiplex | Server Proprietary Protocol]
07 [NT Real COM ]| Printer | Server Proprietary Protocol]
08 [NT Real COM ]| Multi-Host TTY | Server Proprietary Protocol]
]| NT Real COM |
]| Raw UDP |
5. The only operation mode associated with this application is RAW UDP, which is selected automatically in
the Mode column.
----------------------------------------------
Mode] Line mOdem Welcome_MSG Quit
Examine/modify the operation mode of async ports
ESC: back to menu Enter: select
Port Application Mode Description/more setting
01 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
02 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
03 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
04 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
05 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
06 [Raw UDP ] [RAW UDP ] [Pure raw data (UDP) mode ]
blank. Be sure to choose a Local Listen Port number
Configuring RAW UDP Mode
1.Move the cursor to the Description/more setting column, and then press Enter.
----------------------------
Mode] Line mOdem Welcome_MSG Quit
Examine/modify the operation mode of async ports
ESC: back to menu Enter: select
Port Application Mode Description/more setting
01 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
02 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
03 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
04 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
05 [NT Real COM ] [ASPP ] [Async Server Proprietary Protocol]
06 [Raw UDP ] [RAW UDP ] [Pure raw data (UDP) mode ]
2.The pop-up selector contains input/display fields for serial to LAN and LAN to serial parameters, Local
Listen Port, Delimiter 1 (Hex), Delimiter 2 (Hex), and Force transmit (ms). Each item is described
in detail below the figure.
Begin End Port |
|
][ ][ ] |
][ ][ ] |
][ ][ ] |
P addr 4 [ ][ ][ ] |
|
][ ] |
][ ][ ] |
][ ][ ] |
][ ][ ] |
|
: [ ] |
: [ ] |
: [ ] |
: [ ] |
Setting Value Notes Necessity
Dest. IP
address
1/2/3/4
Src. IP
address
1/2/3/4
Local
Listen Port
Begin: x.x.x.x
End: y.y.y.y
Port: 1 to 65535
Begin: x.x.x.x
End: y.y.y.y
Port: 1-65535
1-65535 The UDP port that CN2510 listens to and that other
Defines 1 to 4 groups of IP addresses. UDP packets
will be sent through UDP port Port to the range of IP
addresses from the Begin IP address to the End IP
address.
Defines IP addresses that will be allowed to transmit
UDP packets to CN2510’s Ethernet port. UDP
packets from IP addresses in the range from
IP address to End IP address will be accepted
through UDP port Port.
devices must use to contact CN2510. The default is
that does not conflict with the Local Listen Port for
CN2510’s other serial ports.
1: Required
(2, 3, 4 are
Optional)
1: Required
(2, 3, 4 are
Optional)
Required
CN2510 Setting Up Raw UDP
6-5
serial
large
parity. In
CN2510-8 CN2510-8_5631 V2.0 MAIN MENU
------------------------------------------------
CN2510-8 CN2510-8_5631 V2.0 PORT MENU
------------------------------------------------
Setting Value Notes Necessity
Delimiter
1/2 <Hex>
Force
transmit
<ms>
00-FF Once the CN2510 receives delimiters through its
serial port (or the amount of data received exceeds
1K), it immediately packs all data currently in its
buffer and sends it out the CN2510’s Ethernet port.
Note: Delimiter 2 is optional. If left blank, then
Delimiter 1 alone trips clearing of the buffer.
0-65535 0: Disable this function.
1 to 65535: Forces the CN2510 to try to pack
data received during the specified time into the
same data frame via UDP mode.
The optimal Force Transmit timeout depends on the application, but it must be at least as
as the time required to transmit one character, for the specified baud rate. For example,
assume that the serial port is set to 1200 bps, 8 data bits, 1 stop bit, and none for
this case, the total number of bits required to send a character is 10 bits and the time required
to transfer one character is
( 10 bits / 1200 bits/s ) * 1000 ms/s = 8.3 ms.
Therefore, you should set the Force Transmit timeout to be greater than 8.3 ms. The Force
Transmit timeout is specified in milliseconds and must be larger than 10 ms.
If you want to send a series of characters in the same packet, the serial device attached to
CN2510 should send that series of characters during a time interval less than the Force
Transmit timeout, and the total length of data must be less than or equal to CN2510’s internal
buffer size. The serial communication buffer size is 1 KB per port.
Optional
Optional
3. Press ESC to return to PORT MENU
Configuring the Serial Ports
Open Port Menu Line to configure serial port settings.
1. From the MAIN MENU, select Port, and then press Enter.
Server [Port] seTting sAve Utility Restart Exit
Examine/modify async server ports configuration
Enter: select ESC: previous menu
2. From the PORT MENU, select Mode, and then press Enter.
Mode [Line] mOdem Welcome_MSG Quit
Examine/modify asynchronous port configuration
Parity None, Even, Odd, Mark, Space Odd, Even, Mark, Space
FIFO Yes, No First In First Out Device
RTS/CTS Yes, No Hardware Flow Control
XON/XOFF Yes, No Software Flow Control
Discon. Ctrl None DSR off or DCD off will not be interpreted as a
disconnection.
DSR off DSR off will be interpreted as a disconnection.
4. Press ESC to return to the PORT MENU.
Save
When exiting the SERVER MENU, you will be prompted to save settings. Press Y to save.
---------------------------Info. Lan Adv. Host_table Route_table [User_table] Quit
Examine/modify async server basic configuration
Enter: select ESC: previous menu
+------------------------------------------------------+
| Warning !!! |
| You had modified the configuration without saving. |
| Would you save it now ? |
| ‘Y’: yes ‘N’: no |
+------------------------------------------------------+
You may also save all settings from the MAIN MENU by selecting sAve and then pressing Enter. Press Enter
again to save, and any other key to cancel.
---------------------------Server Port seTting [sAve] Utility Restart Exit
Save current configuration to Flash ROM
ESC: back to menu Enter: select
+-------------------------------------+|Enter to updated, other key to cancel|+-------------------------------------+
Restart
1.From the MAIN MENU, select Restart.
---------------------------Server Port seTting sAve Utility [Restart] Exit
Restart the whole system or selected async ports
Enter: select ESC: previous menu
2. Select System and then press Enter to restart the system and terminate the Telnet session.
----------------------------
Port Quit
Restart the Async Server
: back to menu Enter: select
+----------------------------------------------------------------------+
| Warning !!! |
| Restart system will disconnect all ports and clear all status value |
| ‘ Enter: continue ESC: cancel |
+----------------------------------------------------------------------+
7
7. Setting Up Reverse Terminal
In this chapter, we show how to use CN2510 to connect terminals to a computer over an Ethernet network.
The following topics are covered in this chapter:
Accessing the Console Utility
Selecting the Application
Configuring RTELNET Mode
Configuring the Serial Ports
Save
Restart
CN2510 Setting Up Reverse Terminal
7-2
NOTE
In this section, we show how to access CN2510’s console utility by Telnet over the network. For information on
using the console port, see the section “Accessing the Console Utility” in Chapter
Telnet 192.168.127.254
Telnet 192.168.127.254
CN2510-8 CN2510-8_5631 V2.0 MAIN MENU
------------------
[Server]
Select item
CN2510-8 CN2510-8_5631 V2.0 MAIN MENU
------------------------------------------------
Accessing the Console Utility
2.
1. Telnet over the network to the server’s IP address.
2. Type 1 to choose ansi/vt100, and then press Enter.
Async Server CN2510-8
Console terminal type (1: ansi/vt100, 2: vt52) : 1