Data Packing - Moxa Technologies MiiNePort E1-SDK User Manual

Hide thumbs Also See for MiiNePort E1-SDK:
Table of Contents

Advertisement

MiiNePort E1/E2-SDK

Data Packing

Packet length
Setting
0 to 1024 bytes
The Packet length setting refers to the maximum amount of data that is allowed to accumulate in the serial port
buffer before sending. At the default of 0 for packet length, no maximum amount is specified and data in the
buffer will be sent as specified by the delimiter settings or when the buffer is full. When a packet length between
1 and 1024 bytes is specified, data in the buffer will be sent as soon as it reaches the specified length.
Delimiter 1
Setting
00 to FF
Delimiter 2
Setting
00 to FF
The delimiter fields are used to specify a character or two-character sequence which will act as a marker to
control packing of serial data. By default, no delimiter characters are defined, so the module transmits data as
soon as it is received. When a delimiter character or characters are defined, the module will hold data in its
buffer until it receives the delimiter character or two-character sequence. When the delimiter is received, the
module will pack up the data in its buffer and send it through the Ethernet port.
Use Delimiter 1 to define the first delimiter character in hex. If only one delimiter character will be used,
Delimiter 2 should be set to "0". If the delimiter will be a two-character sequence, use Delimiter 2 to define the
second character. To disable the use of delimiters, set both Delimiter 1 and Delimiter 2 to "0".
Note that data packing is not only controlled by the delimiter; it is also influenced by the module's buffer size
and the Force transmit field. If the delimiter has not been received by the time the 1K buffer is full, the module
will pack the data for network transmission and clear the buffer. Also, if the module will also pack data for
network transmission if the next byte of data is not received within the Force transmit time.
Match bytes
Setting
1 byte to 2 bytes
1 byte: MiiNePort E1 packs the serial data and sends out TCP/IP packets once it receives either one of Delimiter
1 and Delimiter 2.
2 bytes: MiiNePort E1 only packs the serial data and sends out TCP/IP packets once it receives both of
Delimiter 1 and Delimiter 2. And the receiving order should be first Delimiter 1 then Delimiter 2.
Delimiter process
Setting
Do Nothing,
Delimiter+1,
Delimiter+2
Factory Default
0 byte
Factory Default
"0" for None
Factory Default
"0" for None
Factory Default
2 bytes (only effective when Delimiter is enabled)
Factory Default
Do Nothing (only effective when Delimiter is enabled)
5-11
MiiNePort IDE Development Tool
Recommended Setting
Required
Recommended Setting
Optional
Recommended Setting
Optional
Recommended Setting
Optional
Recommended Setting
Optional

Advertisement

Table of Contents
loading

This manual is also suitable for:

Miineport e2-sdk

Table of Contents