Command Packets - Moxa Technologies MiiNePort E2-H User Manual

Miineport e2/e3
Hide thumbs Also See for MiiNePort E2-H:
Table of Contents

Advertisement

MiiNePort E2/E3
TCP Communication 2
TCP Communication 1
The MCSC module is built into the MiiNePort E2. To enable MCSC, you need to set your MiiNePort E2 serial port
operation mode to MCSC mode and then set the channels' operation modes individually according to your
application. In addition, you also need to implement the MCSC module in your device's main system.
The following basic principles apply to all MCSC module implementations.
1. MCSC uses a command-based stream protocol. That is, transmissions that do not fit the MCSC command
format are treated as application data. All MCSC commands begin with ASCII DLE characters. For the
detailed command format, refer to the Command Packets section in following section.
2. Other than dealing with MCSC commands, an MCSC module simply transfers application data from the
upper application channel to the underlying physical serial channel, and vice versa.
3. As with traditional serial applications, MCSC modules are logically connected to a bidirectional channel. To
use the serial bandwidth more effectively, MCSC modules separate it into two unidirectional channels. Each
MCSC module maintains its transmission application channel and reception application channel. That is, the
transmission channel of one end is the reception channel of another.
4. Although logically all upper application channels share one physical serial port, to prevent confusion only
one channel can be connected to the physical serial port. That is, the application channel connected to the
transmission channel is called the active transmission channel, which transmits data to the serial channel.
The application channel connected to the reception channel is called the active reception channel, which
receives data from the serial channel.
5. An MCSC module decides which channel will be the active transmission channel. In other words, the active
reception channel is determined by the other MCSC module on the other end of the serial communication
channel.
6. To avoid data loss, we recommend that you activate serial communication flow control when using MCSC.

Command Packets

An MCSC control packet begins with an ASCII DLE (Data Link Escape, 0x10) character. One end of the serial
communication line (normally, an MCSC module) treats the DLE it receives as a special delimiter that indicates
the other end of the serial communication line (normally, another MCSC module) that attempts to query or
change the MCSC behavior.
If a serial communication end wants to send a 0x10 (DLE) data byte, it sends two DLEs, one after the other. The
receiving end decodes these two DLEs into a single 0x10 byte.
Currently, 4four kinds of control packets are defined under MCSC:
TCP
TCP
Server
Client
App.
App.
MCSC module
UART
Serial Communication
Control
Control
App. 1
App. 2
MCSC module
UART
8-6
NetEZ Technologies

Advertisement

Table of Contents
loading

Table of Contents