USR-WIFI232 Low Power WiFi Module User Manual V2.2
USR-WIFI232 Low Power WiFi Module User Manual V2.2
cn
USR-WIFI232-S/T/G2
USR-WIFI232-S/T/G2/H /H
Low Power WiFi Module User Manual V2.
V2.11
Overview of Characteristic
� Support IEEE802.11b/g/n Wireless Standards
� Based on Self-developed High Performance MCU
� Ultra-Low-Power for Battery Applications with Excellent Power Save Scheme
� Support UART/PWM/GPIO Data Communication Interface
� Support Work As STA/AP/AP+STA Mode
� Support Smart Link Function (APP program provide)
� Support Network Configuration by Audio.(USR-WIFI232-H)
� Support Wireless Upgrade Function
� Support WPS Function
� Support Multi-TCP Link (5 Channel) Apllication
� 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 82
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
start......................................................................................................................................................6
1.1 Hardware connect
connect................................................................................................................................ 6
1.2 Network connection
connection.............................................................................................................................6
1.3 communication test test............................................................................................................................. 7
1.4 Application Examples
Examples.......................................................................................................................... 8
1.4.1 Wireless remote control applications applications................................................................................... 8
1.4.2 Remote connectivity applications applications.......................................................................................... 9
1.4.3 Transparent Transmission
Transmission.........................................................................................................9
2、 Product Overview
Overview................................................................................................................................... 11
2.1 General Description
Description............................................................................................................................11
2.2 Device Features
Features................................................................................................................................... 11
2.3 Device Paremeters
Paremeters............................................................................................................................. 12
2.4 Modules feature comparison comparison.......................................................................................................... 13
2.5 Key Application
Application....................................................................................................................................13
2.6 Package Information
Information.........................................................................................................................14
3、 Hardware Introduction
Introduction............................................................................................................................16
3.1 Pins Definition
Definition......................................................................................................................................16
3.1.1. USR-WIFI232-S Pins Definition Definition............................................................................................16
3.1.2. USR-WIFI232-T Pins Definition Definition............................................................................................ 18
3.1.3. USR-WIFI232-G2 Pins Definition Definition.........................................................................................20
3.1.4. USR-WIFI232-H Pins Definition Definition........................................................................................... 23
3.2 Electrical Characteristics
Characteristics..................................................................................................................26
3.3 Mechanical Size Size................................................................................................................................... 26
3.3.1 USR-WIFI232-S
USR-WIFI232-S........................................................................................................................... 26
3.3.2 USR-WIFI232-T
USR-WIFI232-T........................................................................................................................... 27
3.3.3 USR-WIFI232-G2/H
USR-WIFI232-G2/H...................................................................................................................28
3.4 Antenna
Antenna.................................................................................................................................................. 29
3.4.1 USR-WIFI232-S
USR-WIFI232-S........................................................................................................................... 29
3.4.2 USR-WIFI232-T
USR-WIFI232-T........................................................................................................................... 30
3.4.3 USR-WIFI232-G2/H
USR-WIFI232-G2/H...................................................................................................................31
3.5 Evaluation Kit Kit....................................................................................................................................... 32
3.6 Typical Application Hardware Hardware........................................................................................................ 33
3.6.1 UART Application Hardware Hardware................................................................................................... 33
3.6.2 PWM/GPIO Application Hardware Hardware.......................................................................................33
4、 Modules function description
description................................................................................................................ 34
4.1 Work Mode
Mode............................................................................................................................................ 34
4.1.1 Throughput mode mode.......................................................................................................................34
1.
1.Throughput mode brief introduction
Throughput introduction...........................................................................34
2. UART Frame Scheme
2.UART Scheme......................................................................................................... 35
4.1.2 Command Mode Mode.......................................................................................................................... 36
4.1.3 GPIO/PWM Mode Mode....................................................................................................................... 36
4.2 Wireless Networking
Networking......................................................................................................................... 37
Page 2 of 82
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 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
16) AT+SEND
AT+SEND............................................................................................................................... 57
17) AT+RECV
AT+RECV............................................................................................................................... 57
18) AT+NETP
AT+NETP................................................................................................................................57
19) AT+MAXSK
AT+MAXSK............................................................................................................................58
20) AT+TCPLK
AT+TCPLK............................................................................................................................. 58
21) AT+TCPTO
AT+TCPTO.............................................................................................................................58
22) AT+TCPDIS
AT+TCPDIS........................................................................................................................... 59
23) AT+SOCKB
AT+SOCKB............................................................................................................................ 59
24) AT+TCPDISB
AT+TCPDISB........................................................................................................................ 59
25) AT+TCPTOB
AT+TCPTOB.......................................................................................................................... 60
26) AT+TCPLKB
AT+TCPLKB...........................................................................................................................60
27) AT+SNDB
AT+SNDB...............................................................................................................................60
28) AT+RCVB
AT+RCVB............................................................................................................................... 61
29) AT+WSSSID
AT+WSSSID......................................................................................................................... 61
30) AT+WSKEY
AT+WSKEY............................................................................................................................61
31) AT+WANN
AT+WANN............................................................................................................................. 62
32) AT+WSMAC
AT+WSMAC...........................................................................................................................62
33) AT+WSLK
AT+WSLK.............................................................................................................................. 62
34) AT+WSLQ
AT+WSLQ.............................................................................................................................. 62
35) AT+WSCAN
AT+WSCAN........................................................................................................................... 63
36) AT+WSDNS
AT+WSDNS...........................................................................................................................63
37) AT+LANN
AT+LANN............................................................................................................................... 63
38) AT+WAP
AT+WAP.................................................................................................................................63
39) AT+WAKEY
AT+WAKEY........................................................................................................................... 64
40) AT+WAMAC
AT+WAMAC.......................................................................................................................... 64
41) AT+WADHCP
AT+WADHCP........................................................................................................................ 64
42) AT+WALK
AT+WALK.............................................................................................................................. 65
43) AT+WALKIND
AT+WALKIND...................................................................................................................... 65
44) AT+PLANG
AT+PLANG............................................................................................................................ 65
45) AT+WEBU
AT+WEBU..............................................................................................................................65
46) AT+MSLP(Reserved)
AT+MSLP(Reserved)......................................................................................................... 66
47) AT+NTPRF
AT+NTPRF.............................................................................................................................66
48) AT+NTPEN
AT+NTPEN............................................................................................................................ 66
49) AT+NTPTM
AT+NTPTM............................................................................................................................ 67
50) AT+WRMID
AT+WRMID...........................................................................................................................67
51) AT+ASWD
AT+ASWD..............................................................................................................................67
52) AT+MDCH
AT+MDCH..............................................................................................................................67
53) AT+TXPWR
AT+TXPWR........................................................................................................................... 68
54) AT+WPS
AT+WPS.................................................................................................................................68
55) AT+WPSBTNEN
AT+WPSBTNEN................................................................................................................... 68
56) AT+SMTLK
AT+SMTLK.............................................................................................................................68
57) AT+LPTIO
AT+LPTIO..............................................................................................................................69
Appendix A: HW Reference Design
Design..............................................................................................................70
USR-WIFI232-S Evaluation Kit SchematicSchematic....................................................................................... 70
Page 4 of 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 5 of 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
1、Quick 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 82
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 82
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 82
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 module’s serial connect user’s 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 82
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 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
2、Product Overview
Page 11 of 82
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 82
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 82
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 82
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 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
3、Hardware Introduction
Page 16 of 82
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 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 18 of 82
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 82
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 82
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 82
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 >:
I—IN;O—OUT; PU—PULL-UP; I/O—IN/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.
5) 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.
6) After module is powered up, long press this button (Low > 3s) to make the module
recover to factory setting.
nLink::
nLink
Wi-Fi link status indicator pin, output GPIO,low effective. USR strongly suggest customer
connect out this pin to LED.
5) At “Smart Link” config mode, this LED used to indicate APP to finish setting.
6) At normal mode, it’s 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.
PWM_N::
PWM_N
Module PWM signal output pin. Can also be configured as GPIO pin.
Page 22 of 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 23 of 82
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 82
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 recovery nReload I Low effective reset input.
Pull-up 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 >:
I—IN;O—OUT; PU—PULL-UP; I/O—IN/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.
7) 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.
8) After module is powered up, long press this button (Low > 3s) to make the module
recover to factory setting.
nLink::
nLink
Wi-Fi link status indicator pin, output GPIO,low effective. USR strongly suggest customer
connect out this pin to LED.
7) At “Smart Link” config mode, this LED used to indicate APP to finish setting.
8) At normal mode, it’s 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:
UART0 pin
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.
UART
UART11_TX/RX
_TX/RX::
UART1 is reserved now.
Page 25 of 82
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:
Page 26 of 82
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.2 USR-WIFI232-T
USR-WIFI232-T modules physical size (Unit: mm) as follows:
Page 27 of 82
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 82
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) can’t put componet or paste
GND net;
� Antenna must away from metal or high components at least 10mm
� Antenna can’t 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 82
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 82
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) can’t put componet or
paste GND net
� Antenna must away from metal or high components at least 10mm
� Antenna can’t 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 82
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 82
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 82
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 82
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 module’s 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 can’t
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 82
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 82
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 82
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
Page 38 of 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
AP is turned on, the phone/PAD, etc. can connect to the moduleto control serial
device or set module’s parameters.
In AP+STA WI-FI mode, user can easily examine and control the serial device by
the phone / PAD, without altering its original network settings.
U S R -W I F I 2 3 2
Module STA
Internet
AP
4.2.4 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
� WPA-PSK/TKIP
� WPA-PSK/AES
� WPA2-PSK/TKIP
� WPA2-PSK/AES
Page 39 of 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
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.
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
Page 40 of 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
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 don’t 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 41 of 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 42 of 82
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 43 of 82
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 44 of 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 45 of 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 46 of 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 47 of 82
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 48 of 82
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 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
2. Any other input or wrong step to UART port will cause the module still works as
original mode (throughput mode)
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+H”command
Page 50 of 82
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 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 52 of 82
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 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
� STA
� APSTA
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;
Page 54 of 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
� Format:
AT+H<CR>
+ok=<command help><CR>< LF ><CR>< LF >
� Parameters:
� command help:command 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>
� 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 don’t 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 55 of 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 56 of 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
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><CR>
+ok=< data_lenth, data_content><CR>< LF ><CR>< LF >
� Parameters:
� data_lenth: Lenth of receive data. Range: 0~1000 Byte;
� 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.
� IP: Server’s IP address when module set as client.
Page 57 of 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
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
hasn’t 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.
19) AT+MAXSK
� Function: Set / Query the maximum connection number of TCP Client when SOCKA
work in TCP Server.
� Format:
� Query Operation:
AT+MAXSK<CR>
+ok=<num><CR>< LF ><CR>< LF >
� Set Operation:
AT+MAXSK=<num><CR>
+ok<CR>< LF ><CR>< LF >
� Parameters:
� num:TCP Client connection number. Range: 1~5.
5 is the default value.it means when SOCKA work in TCP server, it accepts max 5 TCP
client connect to it.
20) AT+TCPLK
� Function: Query SOCKA connection status;
� Format:
AT+ TCPLK<CR>
+ok=<sta><CR>< LF ><CR>< LF >
� Parameters:
� sta: SOCKA connection status;
� on: TCP connected;
� off: TCP disconnected;
21) AT+TCPTO
� Function: Set/Query SOCKA TCP timeout time;
� Format:
� Query Operation:
AT+ TCPTO<CR>
+ok=<time><CR>< LF ><CR>< LF >
� Set Operation:
AT+ TCPTO=<time ><CR>
+ok<CR>< LF ><CR>< LF >
� Parameters:
� Time: TCP timeout time.
� <= 600: 600s
� >=0: 0 (0 means no timeout);
� Default: 300s
SOCKA begin to count time when TCP channel don’t receive any data, clear time
counter when TCP channel receive any data. If the time counter reaches the TCPTO
Page 58 of 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
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
hasn’t 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;
� Format:
� Query Operation:
Page 59 of 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
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 don’t 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:
� data_lenth: Lenth of send data. Range: 0~1000 Byte;
Page 60 of 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
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.
28) AT+RCVB
� Function: Receive Data from SOCKA at Command Mode;
� Format:
AT+RCVB=<data_lenth><CR>
+ok=< data_lenth, data_content><CR>< LF ><CR>< LF >
� Parameters:
� data_lenth: Lenth of receive data. Range: 0~1000 Byte;
� data_content: contents of receive data.
If not receive any data in 3 second, then feedback +ok=0
29) AT+WSSSID
� Function: Set/Query Wi-Fi associated AP SSID parameters. Setting is valid after reset.
� Format:
� Query Operation:
AT+WSSSID<CR>
+ok=<ap's ssid><CR>< LF ><CR>< LF >
� Set Operation:
AT+ WSSSID=<ap's ssid ><CR>
+ok<CR>< LF ><CR>< LF >
� Parameters:
� ap's ssid:AP’s SSID (Within 32 character);
30) AT+WSKEY
� Function: Set/Query STA security parameters. Setting is valid after reset.
� Format:
� Query Operation:
AT+WSKEY<CR>
+ok=<auth,encry,key><CR>< LF ><CR>< LF >
� Set Operation:
AT+ WSKEY=< auth,encry,key><CR>
+ok<CR>< LF ><CR>< LF >
� Parameters:
� Auth: Authentication mode
� OPEN
� SHARED
� WPAPSK
� WPA2PSK
� Encry: Encryption algorithm
� NONE: When “auth=OPEN”, effective
� WEP-H: When “auth=OPEN” or “SHARED”, effective,HEX format
� WEP-A: When “auth=OPEN” or “SHARED”, effective,ASCII format
� TKIP: When “auth= WPAPSK” “WPA2PSK”, effective
� AES: When “auth= WPAPSK” “WPA2PSK”, effective
Page 61 of 82
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:STA’s 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_address:STA 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’ SSID(AP’s MAC” ), if WiFi connection available;
34) AT+WSLQ
� Function: Query STA WiFi signal strength;
Page 62 of 82
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
� ‘AP’s WiFi signal strength , if WiFi connection available;
35) AT+WSCAN
� Function: Scan AP;
� Format:
� Query Operation:
AT+ WSCAN<CR>
+ok=<ap_site><CR>< LF ><CR>< LF >
� Query Operation:
� ap_site: AP site has been searched;
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:
� address:STA’s DNS server address; Effective right away.
37) AT+LANN
� Function: Set/Query AP’s 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:
� Ipaddress:AP’s IP address;
� Mask: AP’s 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 >
Page 63 of 82
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+ 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
� channel:Wi-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_address:AP’s MAC address;
Note: Module AP mode’s MAC address is related to STA mode’s MAC address. If user
need changeto others, please contact with USR technical people.
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>
Page 64 of 82
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 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
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+MSLP(Reserved)
� Function: Set/Query deep sleep/standby mode parameters;
� Format:
� Query Operation:
AT+ MSLP<CR>
+ok=<ret><CR>< LF ><CR>< LF >
� Set Operation:
AT+ MSLP=<mode><CR>< LF ><CR>< LF >
� Parameters:
� ret:
� normal: normal mode (100ms interval)
� mode:
� normal: normal mode (100ms interval)
� standby: WiFi shut down mode.
47) 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 inverval,range:0~720, default:30 minutes, 10 minutes for
each step, set 0 means no time calibration automatically.
48) 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
Page 66 of 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 67 of 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
� 3-120:unit: minute. Set the time interval to reset itself when abnormal.
53) AT+TXPWR
� Function: Set/Query Wi-Fi Transmit Power;
Real Transmit Power=Default Transmit Power(16dBm) – [Setting Value] * 0.5dBm
� Format:
� Query Operation:
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.
54) 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.
55) AT+WPSBTNEN
� Function: Enable/Disable WPS pin function.
� Format:
� Query Operation:
AT+WPSBTNEN<CR>
+ok=<status><CR><LF><CR><LF>
� Parameters:
� status;
� on:Enable WPS pin function
� off:Enable WPS pin function
56) AT+SMTLK
� Function: Start Smartlink function.
� Format:
� Query Operation:
AT+SMTLK<CR>
Page 68 of 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Smartlink function is used to quickly configure the router’s SSID and password to
module.When start Smartlink function module’s led lights flashing wait APP push
configuration information.
57) AT+LPTIO
� Function: Enable/Disable module’s nReady、nLink function.
� Format:
� Query Operation:
AT+LPTIO<CR>
+ok=<status><CR>< LF><CR>< LF>
� Set Operation:
AT+LPTIO=<status><CR>
+ok<CR>< LF><CR>< LF>
� Parameters:
� staus: Enable/Disable nReady、nLink function.
� lpt200: nReady、nLlink、WPS function map to USR-WIFI232-S
Pin11、Pin13、Pin14;
� on/lpt100: nReady、nLlink、WPS function map to USR-WIFI232-T
Pin9、Pin10、Pin8;
� off/lpb100: nReady、nLlink、WPS function map to USR-WIFI232-G2
Pin44、Pin43、Pin15;
Page 69 of 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 70 of 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 71 of 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 72 of 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 73 of 82
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 module’s 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 won’t be changed after the module reset. The following take USR-WIFI232-T for
example.
Page 74 of 82
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 82
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 82
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 82
Jinan USR IOT Technology Limited [email protected]
USR-WIFI232-S/T/G2/H Low Power WiFi Module User Manual http://en.usr.cn
Page 78 of 82
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 79 of 82
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:
� Data:HTTP request data, send AT+HTTPDT directly if no data to be sent.
Page 80 of 82
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 hasn’t received data from HTTP server for 5 second, it will cut the
TCP link with HTTP server.
Page 81 of 82
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 82 of 82
Jinan USR IOT Technology Limited [email protected]