OnCell G3100 Series
Configuring Serial Port Operation Modes
8-11
As data is received through the serial port, it is stored by the OnCell G3100 in the internal buffer. The OnCell
G3100 transmits data stored in the buffer via TCP/IP, but only when the internal buffer is full or as specified by
the force transmit time. When set to 0, the force transmit time is disabled, and transmission is determined
solely by the data in the internal buffer. At 1 to 65535, the TCP/IP protocol software will pack the serial data
received after there is a gap in serial communication that exceeds the specified force transmit time.
The optimal force transmit time depends on your application, but it must be at least larger than one character
interval within the specified baudrate. For example, assume that the serial port is set to 1200 bps, 8 data bits,
1 stop bit, and no parity. In this case, the total number of bits needed to send a character is 10 bits, and the
time required to transfer one character is
(10 (bits) / 1200 (bits/s))
×
1000 (ms/s) = 8.3 ms.
Therefore, you should set the force transmit time to be larger than 8.3 ms, so in this case, it must be greater
than or equal to 10 ms.
If it is necessary to send a series of characters in the same packet, the serial device will need to send that series
of characters within the specified force transmit time, and the total length of data must be less than or equal
to the OnCell G3100’s internal buffer size (1 KB per port).
TCP Client Mode