Device Control (Aspp, Raw Mode); Udp Communication (Raw Udp Mode) - Moxa Technologies CN2510 Series User Manual

Async server
Hide thumbs Also See for CN2510 Series:
Table of Contents

Advertisement

Device Control (ASPP, RAW mode)

For Device Control application, users can use standard Linux/Unix Socket programming in
Linux/Unix or WinSock programming in the Windows environment to directly control devices'
data transmission. In this application, users use the standard Socket programming to communicate
with the CN2510, and the operation mode used is TCP RAW mode, focusing only on data
transmission without serial port control or serial modem signals control. Users can also use ASPP
protocol, exclusively provided by Moxa, to communicate with the CN2510.
Whether users use Linux/Unix Socket programming or Windows WinSock programming, IP is
used as the communication agent between hosts and devices. The only difference is whether users
need ASPP to set up communication parameters or modem signals.
If applications do not need to set up communication parameters, for example Baud rate, Parity,
etc., TCP RAW mode is a good solution to purely handle the serial data communications.
If applications need to set up communication parameters or control the modem signals, like DTR,
RTS, Break, etc., application software can use Moxa's ASPP lib. to ease the programming
without really understand the protocol or behavior to communicate with CN2510.

UDP Communication (RAW UDP mode)

UDP is a non connection-oriented data transmission method. UDP has advantages of high speed
and high data transmission efficiently, eliminating TCP's handshaking process. But it comes with
the price of sacrificing data integrity. UDP doesn't have the functions of re-assembling and
retransmitted packets like TCP when data is missing. When data needs to be transmitted fast to
the Ethernet, and application software at the upper level can be responsible for data's correctness,
the UDP is a very ideal transmission method.
In addition, UDP can also use broadcasting or multicasting technologies to handle point to
multi-point transmissions. UDP is an ideal transmission way when a serial device needs to
transmit data to another group of devices or PCs.
Refer to chapter 6 for detailed information and configuration instructions.
Knowing Your Application
CN2510 User's Manual
3-3

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cn2510-8Cn2510-8-48vCn2510-16Cn2510-16-48v

Table of Contents