USR-WIFI232 Low Power WiFi Module User Manual V2.4
USR-WIFI232 Low Power WiFi Module User Manual V2.4
USR-WIFI232 Low Power WiFi Module User Manual V2.4
cn
USR-WIFI232-S/T/G2
USR-WIFI232-S/T/G2/H /H
Low Power WiFi Module User Manual V2.3
V2.3
Overview of Characteristic
Support IEEE802.11b/g/n Wireless Standards
Based on Self-developed High Performance MCU
Ultra-Low-Power Applications with Excellent Power Save
Support UART/PWM/GPIO Data Communication Interface
Support Work As STA/AP Mode
Support Smart Link Function (APP program provide)
Support Network Configuration by Audio.(USR-WIFI232-H)
Support USRLINK Function(Fast set SSID)
Support Wireless Upgrade Function
Support WPS Function
Support Multi-TCP Link (5 Channel) Application
Support Internal/External(I-PEX/SMA) Antenna Option
Single +3.3V Power Supply
Smallest Size:
USR-WIFI232-S 22mm x 13.5mm x 2.3mm, SMT Footprint
USR-WIFI232-T 22mm x 13.5mm x 6mm, 1x10 2mm Connector
USR-WIFI232-G2 23.1mm x 32.8mm x 2.7mm, SMT Footprint
USR-WIFI232-H 23.1mm x 32.8mm x 2.7mm, SMT Footprint
FCC/CE Certificated
Page 1 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Catalogue
1 Quick start......................................................................................................................................................... 6
1.1 Hardware connect...................................................................................................................................... 6
1.2 Network connection................................................................................................................................... 6
1.3 communication test................................................................................................................................... 7
1.4 Application Examples.................................................................................................................................8
1.4.1 Wireless remote control applications................................................................................................... 8
1.4.2 Remote connectivity applications......................................................................................................... 9
1.4.3 Transparent Transmission...................................................................................................................... 9
2 Product Overview........................................................................................................................................11
2.1 General Description..................................................................................................................................11
2.2 Device Features........................................................................................................................................ 11
2.3 Device Paremeters................................................................................................................................... 12
2.4 Modules feature comparison.................................................................................................................. 13
2.5 Key Application......................................................................................................................................... 13
2.6 Package Information................................................................................................................................14
2.6.1 Recommended Reflow Profile............................................................................................................. 14
2.6.2 Device Handling Instruction (Module IC SMT Preparation)............................................................14
2.6.3 Shipping Information............................................................................................................................15
3 Hardware Introduction...................................................................................................................................16
3.1 Pins Definition...........................................................................................................................................16
3.1.1. USR-WIFI232-S Pins Definition..........................................................................................................16
3.1.2. USR-WIFI232-T Pins Definition..........................................................................................................18
3.1.3. USR-WIFI232-G2 Pins Definition....................................................................................................... 20
3.1.4. USR-WIFI232-H Pins Definition......................................................................................................... 23
3.2 Electrical Characteristics..........................................................................................................................26
3.3 Mechanical Size........................................................................................................................................ 26
3.3.1 USR-WIFI232-S..................................................................................................................................... 26
3.3.2 USR-WIFI232-T..................................................................................................................................... 27
3.3.3 USR-WIFI232-G2/H.............................................................................................................................. 28
3.4 Antenna..................................................................................................................................................... 29
3.4.1 USR-WIFI232-S..................................................................................................................................... 29
3.4.2 USR-WIFI232-T..................................................................................................................................... 30
3.4.3 USR-WIFI232-G2/H.............................................................................................................................. 31
3.5 Evaluation Kit............................................................................................................................................31
3.6 Typical Application Hardware................................................................................................................. 33
3.6.1 UART Application Hardware................................................................................................................ 33
3.6.2 PWM/GPIO Application Hardware...................................................................................................... 33
4 Modules function description........................................................................................................................ 34
4.1 Work Mode................................................................................................................................................ 34
4.1.1 Throughput mode.................................................................................................................................34
1. Throughput mode brief introduction....................................................................................... 34
2. UART Frame Scheme................................................................................................................. 35
Page 2 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 3 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
10) AT+UART.......................................................................................................................................... 59
11) AT+UARTF........................................................................................................................................ 59
12) AT+UARTFT...................................................................................................................................... 60
13) AT+UARTFL...................................................................................................................................... 60
14) AT+UARTTE...................................................................................................................................... 60
15) AT+PING........................................................................................................................................... 60
16) AT+SEND.......................................................................................................................................... 61
17) AT+RECV...........................................................................................................................................61
18) AT+NETP...........................................................................................................................................61
19) AT+MAXSK........................................................................................................................................62
20) AT+TCPLK......................................................................................................................................... 62
21) AT+TCPTO........................................................................................................................................ 62
22) AT+TCPDIS.......................................................................................................................................63
23) AT+SOCKB........................................................................................................................................ 63
24) AT+TCPDISB.....................................................................................................................................63
25) AT+TCPTOB......................................................................................................................................64
26) AT+TCPLKB.......................................................................................................................................64
27) AT+SNDB.......................................................................................................................................... 64
28) AT+RCVB...........................................................................................................................................65
29) AT+WSSSID......................................................................................................................................65
30) AT+WSKEY....................................................................................................................................... 65
31) AT+WANN......................................................................................................................................... 66
32) AT+WSMAC...................................................................................................................................... 66
33) AT+WSLK.......................................................................................................................................... 66
34) AT+WSLQ..........................................................................................................................................66
35) AT+WSCAN.......................................................................................................................................67
36) AT+WSDNS.......................................................................................................................................67
37) AT+LANN.......................................................................................................................................... 67
38) AT+WAP............................................................................................................................................ 68
39) AT+WAKEY....................................................................................................................................... 68
40) AT+WAMAC...................................................................................................................................... 68
41) AT+WADHCP.................................................................................................................................... 69
42) AT+WALK.......................................................................................................................................... 69
43) AT+WALKIND................................................................................................................................... 69
44) AT+PLANG........................................................................................................................................ 69
45) AT+WEBU......................................................................................................................................... 70
46) AT+NTPRF........................................................................................................................................ 70
47) AT+NTPEN........................................................................................................................................ 70
48) AT+NTPTM........................................................................................................................................70
49) AT+WRMID.......................................................................................................................................71
50) AT+ASWD......................................................................................................................................... 71
51) AT+MDCH......................................................................................................................................... 71
52) AT+TXPWR....................................................................................................................................... 71
53) AT+WPS............................................................................................................................................ 72
Page 4 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
54) AT+WPSBTNEN................................................................................................................................ 72
55) AT+SMTLK........................................................................................................................................ 72
56) AT+LPTIO......................................................................................................................................... 72
57) AT+USERVER................................................................................................................................... 73
58) AT+CUSTOMER................................................................................................................................ 73
59) AT+RPTMAC..................................................................................................................................... 73
60) AT+WRRPTMAC............................................................................................................................... 73
61) AT+WIFI........................................................................................................................................... 74
Appendix A: HW Reference Design...................................................................................................................... 75
USR-WIFI232-S Evaluation Kit Schematic................................................................................................... 75
USR-WIFI232-T Evaluation Kit Schematic................................................................................................... 76
USR-WIFI232-G2 Evaluation Kit Schematic................................................................................................ 77
USR-WIFI232-H Evaluation Kit Schematic...................................................................................................78
Appendix B: GPIO/PWM CONTROL WITH NETWORK COMMANDS................................................................ 79
Appendix C: HTTP PROTOCOL TRANSFER..........................................................................................................84
Appendix D: Contact Information...................................................................................................................87
Appendix E: Disclaimer.......................................................................................................................................... 87
Appendix F: Update History.................................................................................................................................. 87
Page 5 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
1Quick start
USR-WIFI232 series product is used to transmit data between RS232 and WIFI
TCPIP transparently, user can update the product to WIFI control without knowing the
WIFI and TCPIP detail. All the convert work is done by the module. For users, the
RS232 side is only as a serial device,the WIFI side is TCPIP Socket data. User can setup
the work detail by sample settings which can setup via inside web pages or RS232 port.
The setup work only need do once, then it will save the setting forever.
This chapter is a user guide for USR-WIFI232 series products. We suggest users
follow the guide to test module at first, and will have a good understanding of the
modules. Users can also choose the chapter which you are interested in to read. For
specific details and instructions, please refer to the following chapters.
In order to test WIFI module, we need connect module RS232 to PC and also WIFI
to PC.
In order to test the communication between serial and WIFI network, we need to
connect the serial port to PC, and also connect WIFI networks to PC. Due to the special
need both WIFI and serial, we use PC which add USB WIFI network Card such as the
following picture.
RS232
WIFI
The following is the USR-WIFI232-T module example, except SSID, other modules
Page 6 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
are the same to USR-WIFI232-T. Open Wi-Fi, search network, as shown in below,
USR-WIFI232-T is the default network name (SSID) of the module.
Page 7 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
U S R -W I F I 2 3 2 Module
Page 8 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
mode. USR-WIFI232 modules serial connect users devices. Control client (such as
smartphones) can controll the user equipment via wireless network.
Internet
U S R -W I F I2 3 2 Module
LAN WAN
Page 9 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
U S R -W I F I2 3 2 Module U S R -W I F I2 3 2 Module
Page 10 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
2Product Overview
Page 11 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 12 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Android/iOS APP,
Smart Link APP tools
Page 13 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Note:
1. Recommend to supply N2 for reflow oven.
2. N2 atmosphere during reflow (O2<300ppm).
Page 14 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 15 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
3Hardware Introduction
Page 16 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 17 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
UART pin
GPIO n:
GPIO which can be controlled by network cammands, n is control index number.
Page 18 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 19 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 20 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 21 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
1- No WIFI Link
No connect if not use.
44 Module Boot Up nReady O 0 Boot-up OK;
Indicator 1 Boot-up No OK;
No connect if not use.
45 Module nReload I Low effective reset input. Pull-up
recovery if not use.
Can be set to Smart Link Pin
46 N.C No connect
47 Module Reset nReset I Low effective reset input. Pull-up
if not use.
< Explanation >:
IINOOUT; PUPULL-UP; I/OIN/OUT GPIO;
< The main pin function description
description>>
nReset::
nReset
Module reset pin, input GPIO, low effective.
Module nReset need pull-up when module works. If MCU module needs to do a reset
operation, pull low for at least 10ms and then pull up.
nReload::
nReload
Module recovery factory settings pin, input GPIO, low effective.
1) After module is powered up, short press this button (Low < 3s) to make the module
go into Smart Link config mode, waiting for APP to set password and other
information.
2) After module is powered up, long press this button (Low > 3s) to make the module
recover to factory setting.
Note
1.When designing the circuit, please use the stable connection, such as light touch
switches, and increase the appropriate filter circuit, or module can't restore factory
settings stably.
2.nReset and nReload need 5 kohm ~ 10 kohm pull-up resistor
nLink::
nLink
Wi-Fi link status indicator pin, output GPIO,low effective. USR strongly suggest customer
connect out this pin to LED.
1) At Smart Link config mode, this LED used to indicate APP to finish setting.
2) At normal mode, its Wi-Fi link status indicator.
nReady::
nReady
Module startup success indicator pin, output GPIO, low effective. Can be connected out to
led.
WPS::
WPS
WPS function start pin, input GPIO, low effective. Can be connected to key.
UART0_TX/RX/CTS/RTS
UART0_TX/RX/CTS/RTS
UART pin
GPIO n:
GPIO which can be controlled by network commands, n is control index number.
Page 22 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
PWM_N
PWM_N::
Module PWM signal output pin. Can also be configured as GPIO pin.
3.1.4. USR-WIFI232-
USR-WIFI232-HH Pins Definition
Page 23 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 24 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 25 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
PWM
PWM//GPIO
GPIO::
GPIO/PWM which can be controlled by network commands, now this function is reserved.
Speaker Out/MIC Input:
Be used to Network Configuration by Audio.
UART1_TX/RX
UART1 _TX/RX::
UART1 is reserved now.
Page 26 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
3.3.1 USR-WIFI232-S
USR-WIFI232-S modules physical size (Unit: mm) as follows:
3.3.2 USR-WIFI232-T
USR-WIFI232-T modules physical size (Unit: mm) as follows:
Page 27 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
3.3.3 USR-WIFI232-G2 /H
USR-WIFI232-G2/H
USR-WIFI232-G2/H modules physical size (Unit: mm) as follows:
Page 28 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
3.4 Antenna
3.4.1 USR-WIFI232-S
USR-WIFI232-S has two versions, respectively supports internal antenna and
external SMA antenna.
1) Internal antenna version USR-WIFI232-Sa
When customer select internal antenna, you shall comply with following antenna
design rules and module location suggestions:
For customer PCB, grey color region (5*5mm) cant put componet or paste
GND net;
Antenna must away from metal or high components at least 10mm
Antenna cant be shieldedby any meal enclosure; All cover, include plastic,shall
away from antenna at least 10mm
USR suggest USR-WIFI232-G2 module better locate in following region at
customer board, which to reduce the effect to antenna and wireless signal, and
better consult USR technical people when you structure your module placement and
PCB layout.
Page 29 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
3.4.2 USR-WIFI232-T
Page 30 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
3.4.3 USR-WIFI232-G2 /H
USR-WIFI232-G2/H
USR-WIFI232-G2/H has two versions, respectively supports Internal antenna
and external I-PEX antenna.
1) Internal antenna version USR-WIFI232-G2a/Ha
When customer select internal antenna, you shall comply with following antenna
design rules and module location suggestions:
For customer PCB, RED color region (8.3x18.4mm) cant put componet or
paste GND net
Antenna must away from metal or high components at least 10mm
Antenna cant be shieldedby any meal enclosure; All cover, include plastic,
shall away from antenna at least 10mm
USR suggest USR-WIFI232-G2a/Ha module better locate in following region at
customer board, which to reduce the effect to antenna and wireless signal, and
better consult USR technical people when you structure your module placement and
PCB layout.
Page 31 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 32 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 33 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 34 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Data Bit
Parity (Check) Bit
Stop Bit
Hardware Flow Control
2. UART Frame Scheme
1) UART Free-Frame
If user select open this function, module will check the intervals between any two
bytes when receiving UART data. If this interval time exceeds defined value (250ms
default), the module will think it as the end of one frame and transfer this free-frame to
WiFi port, or else the module will receive UART data untill 1000 bytes, then transfer
1000 bytes frame to WiFi port.
The modules default interval time is normal(250ms). User can also set this interval
time to fast (200ms) through AT command: AT+UARTTE=fast/normal. When the
interval time is fast, user have to consider if user MCU can send UART data with 10ms
interval; When the interval time is normal, user have to consider if user MCU can send
UART data with 50ms interval; or else the UART data may be divide as fragment.
Through AT command: user can set the interval time: fast (200ms) and normal
(250ms).
2) UART Auto-Frame
If the length of serial data is fixed, user can select UART Auto-Frame achieve the
highest transmission efficiency. If user select open this function and setting auto-frame
trigger length and auto-frame trigger time parameters, then module will auto frame
the data which received from UART port and transmit to the network as pre-defined
data structure.
Auto-frame trigger length: If The data length that module received from serial
reach Auto-frame trigger length,the module will transmite the data to the
network.
Auto-frame trigger time: After the trigger time, if UART port received data cant
reach auto-frame trigger length, then module will transmit available data to the
network and bypass the auto-frame trigger length condition.
Auto-frame trigger time calculate from the first byte that the module receives from
the serial port. As shown below:
Page 35 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Achieve Auto-frame
Receive
trigger length
1st byte
1.
Waiting after last transmit
Begin to Send to Auto-frame
calculate network trigger time
Page 36 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 37 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
AP
U S R -W I F I 2 3 2 Module
4.2.3 Encryption
Encryption is a method of scrambling a message that makes it unreadable to
unwanted parties, adding a degree of secure communications. There are different
protocols for providing encryption, and the USR-WIFI232-S/T/G2 module supports
following:
WEP
Page 38 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
WPA-PSK/TKIP
WPA-PSK/AES
WPA2-PSK/TKIP
WPA2-PSK/AES
4.3.1 Socket A
Socket A has four work mode: TCP Server, TCP Client, UDP Client, UDP Server.The
setting method, please refer to the AT+NETP command instruction.
When Socket A configured as TCP Server, it supports Multi-TCP link connection,
and maximum 5 TCP clients permitted to connect to Socket A.
Multi-TCP link connection will work as following structure:
Upstream: All dates from different TCP connection or client will be transmitted to
the serial port as a sequence.
Downstream: All data from serial port (user) will be duplicate and broadcast to
every TCP connection or client.
Detailed multi-TCP link data transmition structure as following figure:
4.3.2 Socket B
Socket B has three work mode: TCP Client, UDP Client, UDP Server. the setting
method, please refer to the AT + SOCKB command instruction.
Page 39 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
With variety work mode, socket B can provide users with flexible data transfer
methods.For example, Socket B can be set to UDP Server mode for LAN equipment to
search modules. Socket B also can be set to TCP Client connect to a remote server in
order to achieve remote control.
4.4.1. Introduction
Network configuration by audio is USR patent technology. By adding audio
decoding unit on the WIFI module, to receive audio information that the intelligent
terminal sends, User can configurate network parameters via intelligent terminal.
User input router password information into the intelligent terminal application,
then intelligent terminal application would encode the password to audio information
and send. The WIFI module with the audio decoding unit receive the audio information,
and decode it to the password, and complete network configuration
The whole network configuration dont required user have any wireless network
technology background, user can implement the WIFI module or products to STA
model correctly connected to the WIFI router and realizing the networking success
100%.
Page 40 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
When one module works in AP mode, it opens a UDP port used to receive fast access
Wi-Fi commands, the port number is 1902. 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
a) Searching command
Page 41 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
0x0D,0x0A
Example:
Explanation:
The phone PDA send searching command to module, the response from module is:
SSID of router1 is TEST1, signal strength of router1 is 64%; SSID of router2 is
TEST2, signal strength of router2 is 55%.
b) Setting command
Page 42 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Example:
Explanation:
The phone PDA send setting command to module, SSID is set to TEST1,
password is set to 123456. The response from module is that the TEST1 Wi-Fi
network exist, the form of password is correct.
1. A host can via UDP broadcast(IP: x.x.x.255, Port: 48899) , send a password,
and the default password is "HF-A11ASSISTHREAD".
Page 43 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
3. When host receive the IP and Address, it will answer "+ok", then the module will
enter AT command mode, you can send common AT commands via UDP to it, port still
is 48899.
4. The AT command mode will keep without sending commands in 1 minute, if you
want to keep module in command mode ,can send "AT+W" in 1minute . Modules will
not accept any other connection request within 1 minute.
5. AT+Q to quite AT command mode.
Note: When module is in PA mode, search tool(maybe APP on PDA) must connect
to the modules Wi-Fi network. if multiple modules(STA mode) on one router, search
tool must be on the same router, it can search all of the STA.
Page 44 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Note::
Note
Before any firmware upgrade, be sure to contact USR, or else it may result in
permanent damage to the module.
Page 45 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
5.1 Web
Page 46 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
The main menu include nine pages: System, Work Mode, STA Setting, AP
Setting, Other Setting, Account, Upgrade SW, Restart, Restore
Page 47 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 48 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 49 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 50 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 51 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
5.2 AT command
AT command means the command by which user can query and set the
parameters to module in command mode through the serial port. The following will
explain in detail about the method of switching module work mode and the use format
of AT commands.
Page 52 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 53 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
3. +++ and a should be input in a certain period of time to make the module
switch to configuration mode. Like the following sequence.
Figure 50 AT+Hcommand
AT command is based on the instruction of ASCII command style, the description
of syntax format as follow.
Format Description
Page 54 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 55 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
8 H Help
Configure Parameters Command
9 CFGTF Copy User Parameters to Factory Default Parameters
UART Command
10 UART Set/Query serial port parameters
11 UARTF Open/Close UART auto-frame function
12 UARTFT Set/Query UART auto-frame trigger time
13 UARTFL Set/Query UART auto-frame trigger length
14 UARTTE Set/Query UART free-frame trigger time between two
bytes
Network Command
15 PING Network Ping command
SOCK A Command
16 SEND Send Data to Sock A at Command Mode
17 RECV Receive Data from Sock A at Command Mode
18 NETP Set/Query Sock A network protocol parameters
19 MAXSK Set/Query Sock A TCP Client connection number
20 TCPLK Query if Sock A TCP link already build-up
21 TCPTO Set/Query Sock A TCP timeout
22 TCPDIS Open/Close Sock A TCP link
SOCK B Command
23 SOCKB Set/Query Sock B network protocol parameters
24 TCPDISB Open/Close Sock B TCP link
25 TCPTOB Set/Query Sock B TCP timeout
26 TCPLKB Query if Sock B TCP link already build-up
27 SNDB Send data to Sock B in Command Mode
28 RCVB Receive data from Sock B in Command Mode
WiFi STA Command
29 WSSSID Set/Query associated AP SSID parameters
30 WSKEY Set/Query STA security parameters
31 WANN Set/Query STAs network parameters
32 WSMAC Set/Query STAs MAC address
33 WSLK Query STA Wi-Fi link status
34 WSLQ Query STA Wi-Fi signal strength
35 WSCAN Scan AP
36 WSDNS Set/Query STAs Static DNS server address
WiFi AP Command
37 LANN Set/Query APs network parameters
38 WAP Set/Query AP Wi-Fi parameters
39 WAKEY Set/Query AP security parameters
40 WAMAC Set/Query AP MAC address
41 WADHCP Set/Query AP DHCP Server status
42 WALK Query MAC address of STA device connecting to module
Page 56 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
AP
43 WALKIND Enable/Disable indication of connection status.
Web Command
44 PLANG Set/Query Webpage Language Option
45 WEBU Set/Query Webpage User name and Code
Power Manage Command
NTP Time Command
46 NTPRF Set/Query time calibration interval
47 NTPEN Enable/Disable time calibration function
48 NTPTM Query time
Other Command
49 WRMID Set module ID
50 ASWD Set/Query search keywords in LAN
51 MDCH Set Wi-Fi Auto Switch Function
52 TXPWR Set/Query Wi-Fi Transmit Power
53 WPS Start WPS function
54 WPSBTNEN Enable/Disable GPIO 15 WPS function
55 SMTLK Start Smartlink function
56 LPTIO Enable/Disable nReady, nLink function
57 USERVER Query the user version and generated time
58 CUSTOMER Query the customer name
59 RPTMAC Query the reporting MAC enable or disable
60 WRRPTMAC Set the reporting MAC enable or disable
61 WIFI Enalbe/Disable WIFI
1) AT+E
Function: Open/Close show back function;
Format:
AT+E<CR>
+ok<CR>< LF ><CR>< LF >(Note: no show back, CR:0x0D,LF:0x0A)
When module firstly switch from throughput mode to command mode, show back
status is open, input AT+E to close show back function, inputAT+E again to open
show back function.
2) AT+WMODE
Function: Set/Query Wi-Fi work mode (AP/STA). Setting is valid after reset;
Format:
Query Operation
AT+WMODE<CR>
+ok=<mode><CR>< LF ><CR>< LF >
Set Operation
AT+ WMODE=<mode><CR>
+ok<CR>< LF ><CR>< LF >
Parameters:
Mode: WI-FI work mode
AP
Page 57 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
STA
3) AT+ENTM
Function: Set module into throughput mode;
Format:
AT+ENTM<CR>
+ok<CR>< LF ><CR>< LF >
After operate this command,module switch from command mode to throughput
mode.
4) AT+TMODE
Function: Set/Query module data transfer mode. Setting is valid after reset.
Format:
Query Operation:
AT+TMODE<CR>
+ok=<tmode><CR>< LF ><CR>< LF >
Set Operation:
AT+TMODE=<tmode><CR>
+ok<CR>< LF ><CR>< LF >
Parameters:
TMODE: module work mode,include:
Throughput: throughput mode
Cmd: command mode
Pwm: PWM/GPIO mode
5) AT+MID
Function: Query module ID information
Format:
AT+MID<CR>
+ok=<module_id><CR>< LF ><CR>< LF >
Parameters:
module_id: module ID information
USR-WIFI232-S/T/G2
Notes: User can set this parameter through AT+WRMID.
6) AT+RELD
Function: module restore to factory default setting.
Format:
AT+ RELD<CR>
+ok=rebooting
+ok=rebooting <CR>< LF ><CR>< LF >
When operate this command, module will restore to factory default setting and
reboot.
7) AT+Z
Function: Re-start module;
Format:
AT+ Z<CR>
8) AT+H
Function: Help;
Format:
Page 58 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
AT+H<CR>
+ok=<command help><CR>< LF ><CR>< LF >
Parameters:
command helpcommand introduction;
9) AT+CFGTF
Function: Copy User Parameters to Factory Default Parameters;
Format:
Query Operation
AT+CFGTF<CR>
+ok=<status><CR>< LF ><CR>< LF >
Parameters:
Status: feedback operation status;
10) AT+UART
Function: Set/Query serial port parameters. Setting is valid after reset;
Format
Query Operation:
AT+UART<CR>
+ok=<baudrate,data_bits,stop_bit,parity,flowctrl><CR><LF><CR><LF>
Set Operation:
AT+UART=<baudrate,data_bits,stop_bit,parity,flowctrl><CR>
+ok<CR>< LF ><CR>< LF >
Parameters:
Baudrate:
600,1200,1800,2400,4800,9600,19200,38400,57600,115200,
230400,380400,460800
data_bits:
8
stop_bits:
1,2
Parity:
NONE
EVEN
ODD
Flowctrl:CTS/RTS
NFC: No hardware flow control
FC: hardware flow control(USR-WIFI232-T dont have hardware flow
control).
11) AT+UARTF
Function: Open/Close UART auto-frame function;
Format:
Query Operation:
AT+ UARTF<CR>
+ok=<para><CR>< LF ><CR>< LF >
Set Operation:
Page 59 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 60 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Set Operation:
AT+PING=<IP_address><CR>
+ok=<fb><CR>< LF ><CR>< LF >
Parameters:
Fb: feedback result
Success
Timeout
Unknown host
16) AT+SEND
Function: Send Data to SOCKA at Command Mode.
Format:
AT+SEND=<data_lenth><CR>
+ok<CR>< LF ><CR>< LF >
Parameters:
data_lenth: Lenth of send data. Range: 0~1000 Byte
The UART port will feedback a > and then wait 3 seconds for input after this
command is sent OK. The data received from UART port is sent to SOCKA. If the
interval of two bytes is more than 10ms, the data will be sent instantly.
17) AT+RECV
Function: Receive Data from SOCKA at Command Mode;
Format:
AT+RECV=<data_lenth
AT+RECV=<data_lenth,timeout ,timeout ><CR>
,timeout><CR>
+ok=< data_lenth, data_content><CR>< LF ><CR>< LF >
Parameters:
data_lenth: Lenth of receive data. Range: 0~1000 Bytes;
Timeout: wait for timeout, 1~10 seconds.
data_content: contents of receive data.
If not receive any data in 3 second, then feedback +ok=0.
18) AT+NETP
Function: Set/Query SOCKA network protocol parameters, Setting is valid after reset.
Format:
Query Operation:
AT+NETP<CR>
+ok=<protocol,CS,port,IP><CR>< LF ><CR>< LF >
Set Operation:
AT+NETP=<protocol,CS,port,IP><CR>
+ok<CR>< LF ><CR>< LF >
Parameters:
Protocol:
TCP
UDP
CS:
SERVER
CLIENT
Port: protocol port ID: Decimal digit and less than 65535.
Page 61 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 62 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
SOCKA begin to count time when TCP channel dont receive any data, clear time
counter when TCP channel receive any data. If the time counter reaches the TCPTO
time, the tcp channel will be break. If SOCKA work in TCP Client, it will connect the
TCP server instantly, and when the module work in TCP Server, the TCP client device
should make the connection itself.
22) AT+TCPDIS
Function: Open/Close SOCKA TCP link;
Format:
Query Operation:
AT+TCPDIS<CR>
+ok=<sta><CR>< LF ><CR>< LF >
Set Operation:
AT+ TCPDIS =<on/off><CR>
+ok<CR>< LF ><CR>< LF >
Parameters:
On:TCP link close
Off: TCP link on
When query Operation, sta: Feedback if SOCKA TCP Client is link.
When Set Operation, off means close TCP link. After finish this command, module
disconnect TCP link and not connect again. On means open TCP link. After finish
this command, module re-connect TCP server right away.
23) AT+SOCKB
Function: Set/Query SOCKB network protocol parameters. Setting is valid after reset.
Format:
Query Operation:
AT+SOCKB<CR>
+ok=<protocol,port,IP><CR>< LF ><CR>< LF >
Set Operation:
AT+SOCKB=<protocol,port,IP><CR>
+ok<CR>< LF ><CR>< LF >
Parameters:
Protocol:
TCP: Only for TCP Client;
UDP: UDP Client
UDPS: UDP Server
Port: Protocol Port in decimal, less than 65535;
IP: Destination IP address, domain name is support;
If set as UDP SERVER, the module will save the IP address and port of the latest UDP
packet received. The data will be sent to the saved IP address and port. If the module
hasnt saved any IP address and port when power up. The data will be sent to the IP
address and port which is set by this command.
If set as UDP CLIENT, the data will always be sent to the IP address and port set by
this command.
24) AT+TCPDISB
Function: Open/Close SOCKB TCP link;
Page 63 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Format:
Query Operation:
AT+TCPDISB<CR>
+ok=<sta><CR>< LF ><CR>< LF >
Set Operation:
AT+ TCPDISB =<on/off><CR>
+ok<CR>< LF ><CR>< LF >
Parameters:
When query Operation, sta: Feedback if SOCKB TCP Client is link.
When Set Operation, off means close TCP link. After finish this command, module
disconnect TCP link and not connect again. On means open TCP link. After finish
this command, module re-connect TCP server right away.
25) AT+TCPTOB
Function: Set/Query Operation SOCKB timeout time;
Format:
Query Operation:
AT+ TCPTOB<CR>
+ok=<time><CR>< LF ><CR>< LF >
Set Operation:
AT+ TCPTOB=<time ><CR>
+ok<CR>< LF ><CR>< LF >
Parameters:
Time: TCP timeout time.
<= 600: 600s
>=0: 0 (0 means no timeout);
Default: 300s
SOCKB begin to count time when TCP channel dont receive any data, clear time
counter when TCP channel receive any data. If the time counter reaches the TCPTO
time, the tcp channel will be break. If SOCKB work in TCP Client, it will connect the
TCP server instantly.
26) AT+TCPLKB
Function: Query SOCKB connection status:
Format:
AT+ TCPLKB<CR>
+ok=<sta><CR>< LF ><CR>< LF >
Parameters:
sta: SOCKB connection status
on: TCP connected
off: TCP disconnected
27) AT+SNDB
Function: Send Data to SOCKB at Command Mode.
Format:
AT+SNDB=<data_lenth ><CR>
+ok<CR>< LF ><CR>< LF >
Parameters:
Page 64 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 65 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Key: password, when encry = WEP-H, the password is the hexadecimal number,
must be 10 byte or 26 byte; When encry = WEP-A, the password is the ASCII
code, must be 5 byte or 13 byte; other ASCII code, shall less than 64 byte and
greater than 8 byte.
31) AT+WANN
Function: Set/Query STA network setting. Setting is valid after reset.
Format:
Query Operation:
AT+WANN<CR>
+ok=<mode,address,mask,gateway><CR>< LF ><CR>< LF >
Set Operation:
AT+ WANN=< mode,address,mask,gateway ><CR>
+ok<CR>< LF ><CR>< LF >
Parameters:
Mode:STAs IP network setting
Static: Static IP
DHCP: Dynamic IP
Address: STA IP address;
mask: STA subnet mask;
gateway: STA gateway address;
32) AT+WSMAC
Function: Set/Query STA MAC address parameters. Setting is valid after reset.
Format:
Query Operation:
AT+WSMAC<CR>
+ok=<mac_address><CR>< LF ><CR>< LF >
Set Operation:
AT+ WSMAC=<code,mac_address><CR>
+ok<CR>< LF ><CR>< LF >
Parameters:
Code: security code
8888 (default value)
mac_addressSTA MAC address, such as D8B0CFFF1234
33) AT+WSLK
Function: Query STA WiFi link status;
Format:
Query Operation:
AT+ WSLK<CR>
+ok=<ret><CR>< LF ><CR>< LF >
Parameters:
ret
Disconnected, if no WiFi connection
AP SSIDAPs MAC , if WiFi connection available;
34) AT+WSLQ
Function: Query STA WiFi signal strength;
Page 66 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Format:
Query Operation:
AT+ WSLQ<CR>
+ok=<ret><CR>< LF ><CR>< LF >
Parameters:
ret
Disconnected, if no WiFi connection
APs WiFi signal strength , if WiFi connection available;
35) AT+WSCAN
Function: Scan AP;
Format:
Query Operation:
AT+ WSCAN<CR>
+ok=<LF><CR>Ch,SSID,BSSID,Security,Indicator<LF><CR><ap_si
te_1><LF><CR><ap_site_2><LF><CR><ap_site_3><LF><CR>
te_1><LF><CR><ap_site_2><LF><CR><ap_site_3><LF><CR>
<ap_site_N><LF><CR><CR><LF>
Query Operation:
ap_site_N: AP site has been searched;
ChWifi network channel number
SSIDthe SSID of router
BSSIDthe MAC address of the router
Securitythe security model of router
Indicatorsignal strength
Such as: 11,TP_LINK,D8:15:0D:C6:3E:14,WPA2PSK/AES,76.
36) AT+WSDNS
Function: Set/Query STA static DNS server address;
Format:
Query Operation:
AT+WSDNS<CR>
+ok=<address><CR>< LF ><CR>< LF >
Set Operation:
AT+ WSDNS =<address><CR>
+ok<CR>< LF ><CR>< LF >
Parameters:
addressSTAs DNS server address; Effective right away.
37) AT+LANN
Function: Set/Query APs network parameters. Setting is valid after reset.
Format:
Query Operation:
AT+LANN<CR>
+ok=<ipaddress,mask><CR>< LF ><CR>< LF >
Set Operation:
AT+ LANN=< ipaddress,mask><CR>
+ok<CR>< LF ><CR>< LF >
Parameters:
Page 67 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Ipaddress:APs IP address;
Mask: APs net mask;
38) AT+WAP
Function: Set/Query AP Wi-Fi parameters. Setting is valid after reset.
Format:
Query Operation:
AT+WAP<CR>
+ok=< wifi_mode,ssid,channel ><CR>< LF ><CR>< LF >
Set Operation:
AT+ WAP =<wifi_mode,ssid,channel ><CR>
+ok<CR>< LF ><CR>< LF >
Parameters:
wifi_mode:Wi-Fi mode, include:
11B
11BG
11BGN (Default Value)
Ssid: SSID at AP mode
channelWi-Fi channel selection: AUTO or CH1~CH11; (Default CH1)
39) AT+WAKEY
Function: Set/Query AP Wi-Fi secruity parameters. Setting is valid after reset.
Format:
Query Operation:
AT+WAKEY<CR>
+ok=<auth,encry,key><CR>< LF ><CR>< LF >
Set Operation:
AT+ WAKEY=< auth,encry,key><CR>
+ok<CR>< LF ><CR>< LF >
Parameters:
Auth: include
OPEN
WPA2PSK
Encry: include
NONE: When auth=OPEN available;
AES: When auth=WPA2PSK available;
Key: security code, ASCII code, smaller than 64bit and bigger than 8 bit;
40) AT+WAMAC
Function: Query AP MAC address parameters;
Format:
Query Operation:
AT+WAMAC<CR>
+ok=<mac_address><CR>< LF ><CR>< LF >
Parameters:
mac_addressAPs MAC address;
Note: Module AP modes MAC address is related to STA modes MAC address. If user
need changeto others, please contact with USR technical people.
Page 68 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
41) AT+WADHCP
Function: Set/Query AP DHCP server status;
Format:
Query Operation:
AT+WADHCP<CR>
+ok=<status><CR>< LF ><CR>< LF >
Set Operation:
AT+ WADHCP=<status><CR>
+ok<CR>< LF ><CR>< LF >
Parameters:
statusAPs DHCP server function status;
onDHCP Server Open:
offDHCP Server Close:
42) AT+WALK
Function: Query MAC address of STA device connecting to module AP;
Format:
Query Operation:
AT+WALK<CR>
+ok=<status><CR><LF><CR><LF>
Parameters:
statusMAC address of STA device connecting to module AP.
No Connection:No STA device connecting to module AP;
43) AT+WALKIND
Function: Enable/Disable indication of module AP connection status.
Format:
Query Operation:
AT+WALKIND<CR>
+ok=<status><CR><LF><CR><LF>
Set Operation:
AT+WALKIND=<status><CR>
+ok<CR><LF><CR><LF>
Parameters:
statusindication of module AP connection status.
onEnable nLink indication function. When STA device connecting to
module AP, nLink output Low, otherwise output High.
offDisable nLink indication function.
44) AT+PLANG
Function: Set/Query webpage language option;
Format:
Query Operation
AT+PLANG<CR>
+ok=<language><CR>< LF ><CR>< LF >
Set Operation:
AT+PLANG =<language><CR>
+ok<CR>< LF ><CR>< LF >
Page 69 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Parameters:
Language: webpages language
CN:Chinese Version (Default);
EN: English Version;
45) AT+WEBU
Function: Set/ Query webpage user name and password;
Format:
Query Operation:
AT+WEBU<CR>
+ok=<username,password><CR>< LF ><CR>< LF >
Set Operation:
AT+WEBU =<username, password><CR>
+ok<CR>< LF ><CR>< LF >
Parameters:
Username: User Name, within 15 characters, not support empty.
Password: password, within 15 characters, support empty.
46) AT+NTPRF
Function: Set /Query time calibration interval;
Format:
Query Operation:
AT+ NTPRF<CR>
+ok=<num><CR>< LF ><CR>< LF >
Set Operation:
AT+ NTPRF=<num><CR>
+ok<CR>< LF ><CR>< LF >
Parameters:
Num: time calibration invervalrange:0~720, default:30 minutes, 10 minutes for
each step, set 0 means no time calibration automatically.
47) AT+NTPEN
Function: Enable/Disable time calibration function.
Format:
Query Operation:
AT+ NTPEN<CR>
+ok=<status><CR>< LF ><CR>< LF >
Set Operation:
AT+ NTPEN=<status><CR>
+ok<CR>< LF ><CR>< LF >
Parameters:
Status: status of time calibration
On: Enable time calibration;
Off: Disable time calibration
48) AT+NTPTM
Function: Query network time
Format:
Query Operation:
Page 70 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
AT+ NTPTM<CR>
+ok=<time><CR>< LF ><CR>< LF >
Parameters:
Time: network time, for example: 2013-10-9 16:10:42 Wedif it shows Not
Available means that the time calibration function is not enabled or the module
doesnt connect to the internet.
49) AT+WRMID
Function: Set module ID;
Format:
Set Operation:
AT+ WRMID =<wrmid><CR>< LF ><CR>< LF >
Parameters:
wrmid: set modules ID (within 20 characters).
50) AT+ASWD
Function: Set/Query WiFi Configuration Password;
Format:
Query Operation:
AT+ ASWD <CR>
+ok=<aswd><CR>< LF ><CR>< LF >
Set Operation:
AT+ASWD =<aswd><CR>< LF ><CR>< LF >
Parameters:
aswd: WiFi Configuration Password (within 20 characters).
51) AT+MDCH
Function: Set Wi-Fi Auto Switch Function
Format:
Query Operation:
AT+ MDCH <CR>
+ok=<mode><CR>< LF ><CR>< LF >
Set Operation:
AT+MDCH=<mode><CR>< LF ><CR>< LF >
Parameters:
mode: Wi-Fi Auto Switch Mode.
Off: Disable Wi-Fi auto switch.
On: Enable Wi-Fi auto switch. When the module(STA mode) fail to connect
to router, it will switch to AP mode itself in one minute.
Auto: Enable Wi-Fi auto detect function. The module will reset itself when
encounter any abnormal. The default time interval is 10 minutes. (default
mode).
3-120:unit: minute. Set the time interval to reset itself when abnormal.
52) AT+TXPWR
Function: Set/Query Wi-Fi Transmit Power;
Real Transmit Power=Default Transmit Power(16dBm) [Setting Value] * 0.5dBm
Format:
Query Operation:
Page 71 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
AT+TXPWR <CR>
+ok=<num><CR>< LF><CR>< LF>
Set Operation:
AT+TXPWR=<num><CR>
+ok<CR>< LF><CR>< LF>
Parameters:
Num: [Setting Value]. The default is 0, it can be sent from 0 ~ 24. If set to 24,
the moudule transmit power will be at a minium of 4dBm. Reboot to make this
setting change valid. It will not restore to default if reload the module.
53) AT+WPS
Function: Start WPS function
Format:
Query Operation:
AT+WPS<CR>
+ok=<status><CR><LF><CR><LF>
Parameters:
status: Start WPS Scan function. The module will reboot and work in STA mode
connecting to specific router when WPS communication is OK.
WPS Scan Failed: WPS communication is failed.
Note:
The router WPS function must be open first then enable module WPS Scan function. The
module will quit WPS scan status if there is no WPS router in 5 seconds.
54) AT+WPSBTNEN
Function: Enable/Disable WPS pin function.
Format:
Query Operation:
AT+WPSBTNEN<CR>
+ok=<status><CR><LF><CR><LF>
Parameters:
status
onEnable WPS pin function
offDisableWPS pin function
55) AT+SMTLK
Function: Start Smartlink function.
Format:
Query Operation:
AT+SMTLK<CR>
Smartlink function is used to quickly configure the routers SSID and password to
module.When start Smartlink function modules led lights flashing wait APP push
configuration information.
56) AT+LPTIO
Function: Enable/Disable modules nReadynLink function.
Format:
Query Operation:
AT+LPTIO<CR>
Page 72 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
58) AT+CUSTOMER
Function: Query customer name
Format:
AT+ CUSTOMER
AT+CUSTOMER
CUSTOMER<CR> <CR>
+ok=< customer_name
+ok=<customer_name ><CR>< LF ><CR>< LF >
customer_name><CR><
Parameters:
customer_name: customer name
USR, General for standard firmware.
59) AT+RPTMAC
Function: Query the reporting MAC enable or disable
Format:
AT+ RPTMAC
AT+RPTMAC <CR>
RPTMAC<CR>
+ok=< status
+ok=<status ><CR>< LF ><CR>< LF >
status><CR><
Parameters:
Status;
ON, enable reporting MAC.
OFF, disable reporting MAC.
60) AT+WRRPTMAC
Function: Set the reporting MAC enable or disable
Format:
Page 73 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
AT+ WRRPTMAC=<status>
AT+WRRPTMAC=<status>
WRRPTMAC=<status><CR> <CR>
+ok<CR>< LF ><CR>< LF >
Parameters:
Status;
ON, enable reporting MAC.
OFF, disable reporting MAC.
61) AT+WIFI
Function: Enable/Disable Wi-Fifirmware V1.0.05 or more advanced version
Format:
Query Operation:
AT+ WIFI <CR>
WIFI<CR>
+ok=< status
+ok=<status ><CR>< LF ><CR>< LF >
status><CR><
Set Operation:
AT+ WIFI
AT+WIFI
WIFI=<=< status
=<status ><CR>< LF ><CR>< LF >
status><CR><
Parameters:
status: Wi-Fi status.
DOWN: Disable Wi-Fi.
UP: Enable Wi-Fi.
Page 74 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 75 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 76 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 77 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
USR-WIFI232-
USR-WIFI232-HH Evaluation Kit Schematic
Page 78 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
User can control modules GPIO, PWM port by Send network command after make
network connection to module with TCP or UDP protocol. If be saved,the status of
GPIO wont be changed after the module reset. The following take USR-WIFI232-T for
example.
Page 79 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 80 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 81 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 82 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 83 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Module support simple http data transfer in command mode. If user need to implement
complex HTTP data transfer, please confirm with USR engineer.
Page 84 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Query Operation:
AT+HTTPCN<CR>
+ok=<Connection><CR>< LF ><CR>< LF >
Set Operation:
AT+HTTPCN=<Connection><CR>
+ok<CR>< LF ><CR>< LF >
Parameters:
Connection: Max length is 20 bytes.
C.1.5 AT+ HTTPUA
Function:Set/Query User-Agent of HTTP protocol header.
Format:
Query Operation:
AT+HTTPUA<CR>
+ok=<Parameter><CR>< LF ><CR>< LF >
Set Operation:
AT+HTTPUA=<Parameter><CR>
+ok<CR>< LF ><CR>< LF >
Parameters:
Parameter: Max length is 20 bytes.
C.1.6 AT+ HTTPDT
Function: Send HTTP request or data.
Format:
Query Operation:
AT+HTTPDT=<Data><CR>
+ok<CR>< LF ><CR>< LF >
Parameters:
DataHTTP request data, send AT+HTTPDT directly if no data to be sent.
Page 85 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
If send AT+HTTPDT=abcd, the data packet will be sent as the following instance:
POST /abcd HTTP/1.1
Connection:keep-alive
User-Agent:lwip1.3.2
Content-Length:4
Host:192.168.0.127:8999
abcd
The data received from HTTP server will be output to serial port and end with
+ok.
If the module hasnt received data from HTTP server for 5 second, it will cut the
TCP link with HTTP server.
Page 86 of 87
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
-----------------------------------------------------------------------------------
Company: Jinan USR IOT Technology Limited
Address: 1-728, Huizhan Guoji Cheng, Gaoxin Qu, Jinan, Shandong, China
Tel: 86-531-55507297 86-531-88826739-803
Web: http://en.usr.cn
Email: [email protected], [email protected]
-----------------------------------------------------------------------------------
Appendix E: Disclaimer
<END>
Page 87 of 87
Jinan USR IOT Technology Limited [email protected]