User`s manual

CN2610 User’s Manual Knowing Your Application
3-4
Device Control (Device Control)
RTU RTU RTU
IBM SCO UNIXSUN
TCP/IP
{
sio_open(..)
sio_open(..)
sio_read(...)
sio_write(...)
...
}
Rx
Tx
12345678910111213141516
Reset
Ready
SELMENU
CN2610
16 port RS-232 Async Server
The CN2610 Device Control application allows you to choose between two different operation
modes: ASPP and RAW.
ASPP ModeFor 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 ModeTo control device data transmission directly, set CN2610 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 CN2610.
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
(baudrate, parity, etc.).
Refer to Chapter 5 for detailed information and configuration instructions.