3 inter-character timeout – SENA LS110 User Manual

Page 45

Advertising
background image

45

Note: At least, this value should be set larger than that of inter-character timeout. To prevent the

unintended loss of data due to the session disconnection, it is highly recommended that this value is

set large enough so that the intended data transfer is completed.

-------------------------------------------------------------------------------

Serial port configuration

-------------------------------------------------------------------------------
1. Baud rate : 9600
2. Data bits : 8
3. Parity : None
4. Stop bit(s) : 1
5. Flow control : Hardware
6. Inter-character timeout : 0
7. Host mode : TCP Client
8. Destination IP : 192.168.23.30
9. Destination port : 7001
10. Inactivity timeout : 0
11. Cyclic connection : 0
12. DTR behavior : Always HIGH
13. DSR behavior : None
14. Allowed IP : 0.0.0.0
15. Allowed subnet : 0.0.0.0

<ESC> Back, <ENTER> Refresh

---> 10

Enter inactivity timeout value to disconnect TCP connection in seconds

(1 - 3600)Sec , 0 = Unlimited

--->

Figure 4-15 Set up the Inactivity Timeout

4.3.3 Inter-character Timeout

This parameter defines the interval that the LS110 fetches the overall serial data from its internal

buffer. If there is incoming data through the serial port, the LS110 stores data into the internal buffer.

The LS110 transfers data stored in the buffer via TCP/IP, only if the internal buffer is full or if the inter-

character time interval reaches to the time specified as inter-character timeout.

Optimal inter-character timeout will be different according to your application but at least it must be

larger than one character interval within a specified baud rate. 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 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 have to set inter-character timeout to be larger than 8.3 ms. The inter-character timeout

is specified in milliseconds and must be larger than 10 ms.

If users want to send the series of characters into a packet, serial device attached to the LS110 should

send characters without time delay larger than inter-character timeout between characters and the

total length of data must be smaller than or equal to the LS110 internal buffer size. The buffer size of

LS110 is 512 bytes per a port.

Advertising