USR-C321
Low Power
Minisize
WiFi Module User Manual
15
15
15
15
/
41
41
41
41
3. Users can through the network to the port to send AT commands to set up and read the
module working state, the AT command format with a serial port the AT command.
Note: search tools and modules must be within the same LAN, if multiple STA even on a
router, run the search tools of the computer and even on the router. This search tool to search
all of the STA.
3.
3.
3.
3.6
6
6
6 TCP/UDP
TCP/UDP
TCP/UDP
TCP/UDP Client
Client
Client
Client Registration
Registration
Registration
Registration Packet
Packet
Packet
Packet Mechanism
Mechanism
Mechanism
Mechanism
When the module working in TCP or UDP Client Client mode, the user can open registration
packet mechanism, in order to realize the server to the distinction between the data source,
data of different equipment monitoring. MAC and ID registration packet is divided into two kinds,
MAC is 6 bytes, ID 0-65535, ID value can be set. Registration packet ID is mainly used for the
D2D software of the company..
Registered packet opened and closed by AT + REGENA.
Registered packet implementation mechanism is as follows:
�
TCP Client: There are two kinds of TCP Client: registration mechanism:
1
Just send a registration packet, when the module is connected to the TCP Server
module will send TCP Server MAC (6 bytes) or ID (4 bytes), Server by MAC or ID to
distinguish between different devices.
2
Every packet of data has registration information, TCP Client after the link to the server,
a serial port receives each packet of data to increase MAC or ID, to distinguish between
equipment. ID or MAC choice, can be set by the AT + REGENA.
�
UDP Client: each module on the sending UDP packets, MAC or ID will increase in each
packet header information, and then send.
3.
3.
3.
3.7
7
7
7 Fast
Fast
Fast
Fast Access
Access
Access
Access Wi-Fi(usrlink)
Wi-Fi(usrlink)
Wi-Fi(usrlink)
Wi-Fi(usrlink)
When one module works in AP mode, it opens a UDP port used to receive fast access Wi-Fi
commands, the port number is 49000. The phone PDA can directly connect to Wi-Fi network of
the module, send commands to search router list and set SSID and password. After the
completion of set up, module will automatically restart, connected to the router, work in the STA
mode at this time.
Protocol format:
Searching command
No
Name
Num of Bytes
Description
1
head
1
fixed value:0xFF
2
length
2
Sum of data bytes from length bytes to check
byte(not contain length bytes and check byte).