Serial Command Mode - Jinan USR IOT Technology WIFI232-A User Manual

Table of Contents

Advertisement

The transparent transmission mode can fully compatible with user's original software platform
and reduce the software development effort for integrate wireless data transmission.
Notes:
Notes:
Notes: Users also open the serial port hardware flow control (CTS/RTS) function, so that we can
Notes:
make the bit error rate to a minimum.If the user doesn't need hardware flow control function of the
serial port, only need to the corresponding pin foot (CTS/RTS) hung up.

4.2.2 Serial command mode

In this mode, the user can send the serial data to a different server address, this pattern can be
use udp or TCP client sends data to the server.
Customer MCU send packets according to the following format, parsing module is finished, only
the n bytes of data sent to the destination address.When data is returned, not analytical data from
serial port output directly.
frame
length
header
2
2
(n+m+5)
frame
header
frame
frame
frame header
header
header:
0x55 0xAA(Constant)
Length
Length
Length:
Length
Starting from the function byte, to Sum check (does not contain the sum check) all bytes.
High byte at the front
Function byte
Function
Function
Function
byte
byte:
byte
Bit0:(UDP:0 ;TCP:1)
Bit1:(Short connection:0;Long connection:1)
Bit2:(IP:0;Domain name:1)
Bit7:(cut protocol:0;full
Notes:
Bit1:If it is a short connection, it sends data, and then will be disconnected; if it is long
connection, it sends data, connection will remain, until the re changing the target address.
Bit2:Indicates that the target address is IP or domain name. If it is IP, the target address is 4
bytes; if the domain name, the target address length for the entire domain name string length
(the last byte address is '\0', that is the end of the string).
Bit7:Under the cut protocol, reply frame contains only data; Under the full protocol, reply
frame has "failed to send", "waiting for", "UDP radio response equipment IP" frame data.
Backup
data
area: : : :
area
Backup data
Backup
Backup
data area
data
area
First byte:If it is a short connection, this position is TCP waits for the timeout time (1-255), if
the send command is completed, did not receive a response, then wait a few seconds and
the corresponding, if 5, said to wait for the 5S to disconnect; if the sending command,
immediately receive the returned data, then immediately disconnected; if it is long connection,
this position is 0x00.
Second byte:Reserve
Jinan USR IOT Technology Limited
USR-WIFI232-A/B/C User Manual
Table 8 Protocol table of Serial command mode
functio
Backup
n
data area
byte
1
2
protocol:1)Note: currently only supports cut protocol
Page 27 of 93
Destinati
Target
on port
address
2
m
http://www.usriot.com
Data
Sum
check
n
1
tec@usr.cn

Advertisement

Table of Contents
loading

This manual is also suitable for:

Wifi232-bWifi232-c

Table of Contents