
WIFI-LPT100-B User Manual
20
/
60
bps=20ms when baud rate >= 20000;
bps=265-baud rate*0x01223, bps round.
The flow of packing is as below:
Note
:
n: interval of packing, unit is ms
If T1>n, T2<n. T3<n, T4<n, T5<n, T6>n, then Byte1-Byte5 will be handle as one
frame.
4.3 RFC2217 auto-baud
4.3.1 Description
RFC2217 is a standard protocol that configure UART parameters of device via
ethernet. This module supports a protocol that is similar to RFC2217, it is not the
standard RFC2217, but it has same function as RFC2217 and much simply.
After sending command to device, if the command is available, the device will
execute related setting and have no response. If the command is unavailable, it will
be treated as common data packet and forwarded by UART port.
All the TCP Client, TCP Server, UDP Client and UDP Server support this
function. The setting will be valid immediately without restart as well. And it is
invalid after restart. To use this protocol you need to use the virtual COM software
provide by us.
4.3.2 RFC2217 Protocol Description
The length of this protocol is 8 bytes. For example (in HEX):
Table 7 RFC2217 protocol
Name
Head
Baud rate
Bytes
parameters
Sum check
Bytes
3
3
1
1
Description
3 bytes to
reduce
erroneous
3 bytes contains
one baud rate
value, High bit
first
Different bit
has different
meanings.
Refer to
addendum
The sum
check of the
first four bits,
ignore the
carry
Figure 15 UART Frame mechanism