한국어 English Chinese Russian
bannerbar

FAQ


No.320 How should I do to send serial data to a network in a specific size of bytes? 16-09-2013
Category: how to



Is it possible that a serial device of a MCU send serial data to network collecting data in a specific size of bytes?
Actually, TCP sends and receives data stream so dividing segment in a specific size may be meaningless. However, for customers who use common serial applications which cannot be modified, the option could be required sometimes.

[Data frame Interval] option allows them to set a specific size of bytes when sending TCP segment.
When you set a time value in this option, ezTCP collects serial data until the next byte come into the serial buffer. If the next byte does not come for the time value, ezTCP sends all data in the buffer to the remote host (to the network) as one segment.

Therefore, your serial devices or a MCU should give sufficient delay for dividing frame.
The unit of this option is 10 milliseconds.
For example, assume a serial communication system.
This system sends a frame for 10 seconds and the next frame is followed after 1 second later.
In this case, you can set the [Data Frame Interval] to 80ms to send the data in a packet.



Of course, if there is delay over 800ms while being sent, the data will be divided.

Then, how about UDP?
UDP is a simple protocol which sends and receives data in block units. Therefore, you just set the size of blocks before send the data.
[Event Byte] is the option for setting the size of blocks in UDP.

[Data frame Interval] option able to configuration on use ezManager product.
if you want the option on EZL-200F, EZL-220, EZL-400S,
connect the ezTCP telnet, and set the SEND DELAY option value.





- See also

[BLOG] Data Frame Interval


- Related Products


[ Ethernet-Module ] CSE-M53, CSE-M32
[ Ethernet-Module with RJ45 ] CSE-M73
[ Ethernet-Board ] CSE-B63
[ Ethernet-External ] CSE-H55, CSE-H53, CSE-H25, CSE-H20, CSE-H21
[ Wireless-External ] CSW-H80
[ Wireless-Module ] CSE-M83
[ I/O ] CIE-H10, CIE-M10