Jinan USR IOT Technology LimitedPage 5 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
1Quick Start
1.1 Hardware connect
Figure 1 hardware connection diagram
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.
If there are problems in using the process, you can refer to the official website of our application
case:
http://www.usriot.com/Faq/cat-47.html
We can also submit the issue to our customer support center:
http://h.usriot.com
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.
About the serial connection, because the module RS232 is 3.3V TTL level, the computer can not
connect to module directly, the user needs to have a TTL to RS232 adapter cable and then
connect to the computer. in order to facilitate the test, we provide USR-WIFI232-A2 evaluation
board for users to choose.
Jinan USR IOT Technology LimitedPage 6 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
1.2 Network connection
Figure 2 WIFI Search
The following is the USR-WIFI232-A2 module example,Other modules are the same.Open Wi-Fi,
search network, as shown in below, USR-WIFI232-A2_3378(B determined according to the
specific type of module, XXXX is the MAC address after the four) is the default network name
(SSID) of the module.
Join the network, choose to automatically obtain IP, WIFI module supports DHCP Server feature
and is enabled by default.
Jinan USR IOT Technology LimitedPage 7 of 76tec@usr.cn
Now, nlink led of USR-WIFI232-A2 Evaluation Board is lighting.
Module’s default setting:
We just need to follow the parameters of the corresponding set of network communication
parameters, you can make serial <--> WIFI communication, the steps are as follows:
Choose COM port witch has connect the module, there is COM3, choose band rate to 57600, this
is the default band rate of WIFI module, Click Open COM port.
Choose TCP client mode, Server IP write 10.10.100.254, it is the WIFI default IP address, Server
port to 8899, It is the default Port the WIFI module listen, Click Connect to link to the module.
Now, you can test send data between RS232 and WIFI.
COM port to WIFI: PC RS232 -> Module RS232 -> Module WIFI -> PC WIFI.
WIFI to COM port: PC WIFI -> Module WIFI -> Module RS232 -> PC RS232.
Jinan USR IOT Technology LimitedPage 8 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
Figure 4 serial / network transmission test
2Product Overview
2.1 General Description
2.2 Device Features
Support IEEE802.11b/g/n Wireless Standards
Support TCP/IP/UDP Network Protocols
Support UART/GPIO/Ethernet Data Interface
Support Work As STA/AP/AP+STA Mode
USR-WIFI232-A2 module is an integration of 802.11 b/g/n wi-fi module,which provide a wireless
interface to any equipment with a Serial interface for data transfer.
The module used to MAC, baseband chip, RF transceiver unit, as well as the power
amplifier;Embedded firmware support wi-fi protocols and configuration, as well as the network
TCP/IP protocol stack.
USR-WIFI232-A2 uses the industry's highest performance embedded industrial structure, and for
the application of smart furniture, smart grid, handheld devices, personal medical, industrial
control, etc. These data fields, do a professional optimization.
USR-WIFI232-A2 as a hot spot can accommodate 32 clients simultaneously wi-fi access, but also
can accommodate 32 TCP client.
Jinan USR IOT Technology LimitedPage 9 of 76tec@usr.cn
Jinan USR IOT Technology LimitedPage 10 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
AT command
AT+instruction set
Network Protocol
TCP/UDP/ARP/ICMP/DHCP/DNS/HT
TP
Max. TCP Connection
32
User Configuration
Web Server+AT command config.
2.4 Key Application
Remote equipment monitoring
Industrial sensors and controls
Asset tracking and telemetry
Home automation
Medical devices
2.5 Package Information
2.5.1Recommended Reflow Profile
Figure 5 Reflow Soldering Profile
Table 2 Reflow Soldering Parameter
2.5.2Device Handling Instruction (Module IC SMT Preparation)
Shelf life in sealed bag: 12 months, at <30℃ and <60% relative humidity (RH)
After bag is opened, devices that will be re-baked required after last baked with window time
Recommend to oven bake with N2 supplied.
NO.
Item
Temperature (Degree)
Time(Sec)
1
Reflow Time
Time of above 220
35~55 sec
2
Peak-Temp
260 max
Note:
1. Recommend to supply N2 for reflow oven.
2. N2 atmosphere during reflow (O2<300ppm).
168 hours.
Jinan USR IOT Technology LimitedPage 11 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
Baked required with 24 hours at 125 ± 5℃ before rework process for two modules, one is
Recommend to store at ≦10% RH with vacuum packing.
If SMT process needs twice reflow:
3Hardware Introduction
3.1 Pins Definition
3.1.1USR-WIFI232-A2 Pins Definition
Figure 6 USR-WIFI232-A2
Figure 7 USR-WIFI232-A2 Pins Map
Table 3 USR-WIFI232-A2 Pins Definition
Pin
Description
Name
Directio
n
Note
1
Ground--GND
GND
Power
Ground
2
VCC 3.3V@350mA
3.3V
Power
3.3V @ 350mA power input
3
UART Data Transmit
UART_TXD
O
If not use UART function,
new module and two is board with module.
(1) Top side SMT and reflow(2) Bottom side SMT and reflow
Case 1: Wifi module mounted on top side. Need to bake when bottom side process over 168
hours window time, no need to bake within 168 hours.
Case 2: Wifi module mounted on bottom side, follow normal bake rule before process.
Note:
Window time means from last bake end to next reflow start that has 168 hours space.
Jinan USR IOT Technology LimitedPage 12 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
this 4 pins can be configured
as GPIO pins, and can
change GPIO pin status
through AT command
GPIO
GPIO3
I/O
4
UART Data Receive
UART_RXD
I
GPIO
GPIO4
I/O
5
UART sends request
of data transmission
UART_RTS
O
GPIO
GPIO5
I/O
6
UART receives data
transmission
permission
UART_CTS
I
GPIO
GPIO6
I/O
7
Module reset signal
RESET
I
“Low ( 0 )” effective reset
input.
The reset duration should be
kept more than 300ms
8
WiFi status Indication
nLink
O
“0”- WIFI connection
available
“1”- No WIFI connection
Can be configured as GPIO.
GPIO
GPIO8
I/O
9
Indicate the module
status of power on
process
nReady
O
“0” or “Palmodic Signal” -
Finish module boot up
process;
“1” - Module boot up not
finish.
Can be configured as GPIO.
GPIO
GPIO9
I/O
10
Restore configuration
nReload
I
Module will Restore factory
default configuration after set
this pin “0” more than 1s,
then set “1”.
GPIO
GPIO10
I/O
11
Ethernet Input+
PHY_RX+
I
+1.8V Ethernet Data
Interface
Support transformer and
direct connection (AC
couple) mode.
12
Ethernet Input-
PHY_RX-
I
13
Ethernet Output+
PHY_TX+
O
14
Ethernet Output-
PHY_TX-
O
3.2 Mechanical Size
3.2.1USR-WIFI232-A2
USR-WIFI232-A2 modules physical size (25x40mm) as follows:
USR-WIFI232-A2 module Mechanical Size(mm):
Jinan USR IOT Technology LimitedPage 13 of 76tec@usr.cn
USR-WIFI232-A2 modules support external antenna,USR-WIFI232-A2 modules must be
connected to the 2.4G antenna according to IEEE 802.11b/g/n standards.
The antenna parameters required as follows:
USR provides the evaluation kit to promote user to familiar the product and develop the detailed
application. The evaluation kit shown as below, user can connect to USR-WIFI232-A2 module
with the RS-232 UART port, 100M Eth port or Wireless port to configure the parameters, manage
the module or do the some functional tests.
Jinan USR IOT Technology LimitedPage 14 of 76tec@usr.cn
There is 100K Ohm pull-up resister internal up to 3.3V. When module power up or some issue
happened, MCU need assert nRST signal “0” at least 300ms, then set” 1” to keep module fully
reset.
nReady- Module boot up ready signal. Output. Logics “0” effective.
There is 4.7K Ohm pull-up resister internal up to 3.3V. The module will output “0” “or “Palmodic
Signal” after normal boot up. This signal used to judge if module finish boot up and ready for
application or working at normal mode.
nLink- Module WIFI connection indication. Output.
There is 4.7K Ohm pull-up resister internal up to 3.3V. When module connect to AP (STA mode)
or some WiFi STA connect to module (AP mode), the module will output “0”. This signal used to
judge if module already at WiFi connection status.
nReload- Module restore to factory default configuration.Input. Logics “0” effective.
User can assert nReload signal “0” more than 3’s through button or MCU pin, then release,
module will restore to factory default configuration and re-start boot up process. User need add
4.7K~10K Ohm pull-up resister external the module.
UART_TXD/RXD- UART port data transmit and receive signal.
There is 1K Ohm pull-down resister internal. User can’t add pull-up resister at these pins.
Jinan USR IOT Technology LimitedPage 16 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
3.5.210/100M Ethernet Interface
3.5.2.1 Ethernet Connection with Transformer
Figure 11Ethernet Reference Design with Transformer
3.5.2.2 Ethernet Connection without Transformer
Figure 12Ethernet Reference Design without Transformer
USR-WIFI232-A/B/C modules provide one 10/100M Ethernet PHY layer interface for data
transition or user configuration. This Ethernet support with transformer and without transformer
(PHY-to-PHY) 2 kinds of connection.
User board put Ethernet transformer and RJ-45 connector. This is a general 10/100M Ethernet
phy layer connection. The reference design as following:
(Above is for USR-WIFI232-A2 pin type module)
For this application, Ethernet will work as internal data transmition interface and save one
transformer and RJ45 connector. Ethernet PHY-to-PHY connection will use AC coupled
connection. This is a space and cost optimized solution. Hardware reference design as following:
Note: VCC signal at reference design shall base on user board PHY chipset voltage level, such
as 2.5V power supply for general Ethernet PHY chipset.
(Above is for USR-WIFI232-A2 pin type module)
Jinan USR IOT Technology LimitedPage 17 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
1. Weld 0 ohm resistance in red position
2. Remove the component in yellow position
Figure 13 Schematic resistance changes
3.5.3UART Interface
This module Ethernet interface default is for the application with transformer connection. If you
need PHY-PHY directly connection, please change the hardware as follows:
BOT side componentTOP side component
Specific PHY-PHY direct connection reference to user manual chapter 1.3.2.2 application of
Ethernet without transformer and AT+FEPTP command
The command:
AT+FVEW=enable<CR> to open ethernet WAN port function
Remark:
1. Only when ethernet as WAN, this command is needed. Module default LAN port.
2. After this command, make sure module WAN IP and LAN IP in different segment. (Modify the
ALN IP in AP Settings, modify the WAN IP in STA Settings)
AT+FEPTP=on<CR> Quey/set default ethernet PHY-PHY on/off
AT+FEPHY=on<CR> Open ethernet function permanently
AT+RELD<CR>Command with “F” need to be affective after AT+RELD
After module reset, command effect, then will not impact by Reload
For user’s design, pls note:
1. Cable connection should be AC coupling, your cable need be pulled up to VCC (fit with PHY
chip level)
2. Cable TX connected to RX. In PHY-PHY direct connection, PHY chip dose not support
direct/ cross self-adaption
3.Your PHY chip on board should better to be forced into 100M work mode
UART interface is the serial data transmition interface mainly used for USR-WIFI232-A2 modules.
Jinan USR IOT Technology LimitedPage 18 of 76tec@usr.cn
User can add RS-232 chipset on user board and convert the signal to RS-232 voltage to
communicate with outside equipment or sensors. USR-WIFI232-A2 modules UART interface
include 4 general signals: TXD/RXD/RTS/CTS. The hardware reference design with RS-232
chipset as following:
Notes: TXD pin is also hardware configuration pin internal module. So this pin MUST pull-down
during module power up. USR-WIFI232-A2 modules provide internal pull-down resister, user can’t
add pull-up/pull-down resister on user board, which may cause module can’t work.
USR-WIFI232-A2 module support single +3.3V power supply. The peak current shall about
350mA and normal WiFi working current shall about 200mA. The power save (WiFi OFF) mode
will about 100mA
Decoupling at power pin suggested, At least one 100uF and one 10uF capacitor required at user
board and put near module power input pin will increase the reliability and performance.
After USR-WIFI232-A2 module electric starter, based on user pre-set parameters, automatically
connect to wireless networks and servers, and enter the working mode is set to open in
accordance with the default serial port parameters.
The parameters which need to configure include:
Jinan USR IOT Technology LimitedPage 19 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
Wireless Network Parameters
Wireless Network Name(SSID)
Security Mode
Encryption Key
TCP/UDP Linking Parameters
Protocol Type
Link Type(Server or Client)
Target Port ID Number
Target Port IP Address
Serial Port Parameters
Baud Rate
Data Bit
Parity (Check) Bit
Stop Bit
Hardware Flow Control
Work Mode Selection
Transparent mode/Serial command mode/GPIO mode
4.2 Working mode
4.2.1Transparent Mode
The following sections will introduce specific to each part in detail.
USR-WIFI232-A2 modules support serial interface transparent transmission mode. The benefit of
this mode is achieves a plug and play serial data port, and reduces user complexity furthest. In
this mode, user should only configure the necessary parameters. After power on, module can
automatically connect to the default wireless network and server.
As in this mode, the module's serial port always work in the transparent transmission mode, so
users only need to think of it as a virtual serial cable, and send and receive data as using a
simple serial. In other words, the serial cable of users’ original serial devices is directly replaced
with the module; user devices can be easy for wireless data transmission without any changes.
The transparent transmission mode can fully compatible with user’s original software platform
and reduce the software development effort for integrate wireless data transmission.
Notes: Users also open the serial port hardware flow control (CTS/RTS) function, so that we can
make the bit error rate to a minimum.If the user doesn't need hardware flow control function of the
serial port, only need to the corresponding pin foot (CTS/RTS) hung up.
Jinan USR IOT Technology LimitedPage 20 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
4.2.2Serial command mode
Table 6 Protocol table of Serial command mode
frame
header
length
functio
n
byte
Backup
data area
Destinati
on port
Target
address
Data
Sum
check
2
2
(n+m+5)
122mn
1
Bit1:If it is a short connection, it sends data, and then will be disconnected; if it is long
Bit2:Indicates that the target address is IP or domain name. If it is IP, the target address is 4
Bit7:Under the cut protocol, reply frame contains only data; Under the full protocol, reply
First byte:If it is a short connection, this position is TCP waits for the timeout time (1-255), if
Second byte:Reserve
In this mode, the user can send the serial data to a different server address, this pattern can be
use udp or TCP client sends data to the server.
Customer MCU send packets according to the following format, parsing module is finished, only
the n bytes of data sent to the destination address.When data is returned, not analytical data from
serial port output directly.
frame header:
0x55 0xAA(Constant)
Length:
Starting from the function byte, to Sum check (does not contain the sum check) all bytes.
High byte at the front
Function byte:
Bit0:(UDP:0 ;TCP:1)
Bit1:(Short connection:0;Long connection:1)
Bit2:(IP:0;Domain name:1)
Bit7:(cut protocol:0;full protocol:1)Note: currently only supports cut protocol
Notes:
connection, it sends data, connection will remain, until the re changing the target address.
bytes; if the domain name, the target address length for the entire domain name string length
(the last byte address is ‘\0’, that is the end of the string).
frame has "failed to send", "waiting for", "UDP radio response equipment IP" frame data.
Backup data area:
the send command is completed, did not receive a response, then wait a few seconds and
the corresponding, if 5, said to wait for the 5S to disconnect; if the sending command,
immediately receive the returned data, then immediately disconnected; if it is long connection,
this position is 0x00.
Destination port:
Little endian, low byte in the former,such as port 23, here are 0x17 0x00
Target address:
If it is IP, is 4 bytes, for example, 192.168.0.7 said 0x07 0x00 0xA8 0xC0; if it is a domain
name, then the address of indefinite length,ending with the’\0'.
Data:
Variable length,the maximum not exceeding 1000bytes.
Jinan USR IOT Technology LimitedPage 21 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
4.2.3GPIO mode
GPIO n IN,Set GPIOn as input, Response GPIO OK or GPIO NOK;
GPIO n OUT 0, Set GPIOn as output and output ‘0’, Response GPIO OK or GPIO NOK;
GPIO n OUT 1, Set GPIOn as output and output ‘1’, Response GPIO OK or GPIO NOK;
GPIO n SW,Set GPIOn as output and switch the output status, Response GPIO OK or
GPIO n PWM m1 m2, Set GPIOn output a wave: m1 is ‘high’ duration and m2 is ’low’
GPIO n GET, Read GPIOn status, Response I0,I1,O0,O1, means ” input low ” , ” input
4.2.4HTTPD Client mode
Sum check:
From the function word to check byte (does not contain a check byte), add Sum check.
The following is an example of a specific application:
USR-WIFI232-A2 module support GPIO mode:At GPIO,UART (TXD/ RXD/CTS/RTS) defined as
GPIO and others (Ready/Link/) also defined as GPIO pin.
When module works at GPIO mode, PC and other equipments can setup connection (TCP/UDP)
through WiFi, then read/write GPIO information through command.
GPIO NOK;
duration (Time unit is ‘ms’ and minimal is 10ms), Response GPIO OK or GPIO NOK;
high”,”output low”,”output high”
Notes: n can be 3, 4, 5, 6, 8, 9 corresponding module pin. GPIO 4 can only defined as input and
GPIO 3 can only defined as output.
GPIO READ returns all current IO status, and GPIO n GET said method. Such as, I1I1I0I0I0I0O1,
I said input, O output. 0 low, 1 express high.4 pin is negated. Read the 1 actual 0 actual 1, read
the 0.
This mode is used to send data to the HTTP server.
After setting the HTTP header format by webpage or AT command, the data sent each time by
UART will add the HTTP header automatically.Convenient for the user directly submit data or
read data from the HTTP server.
Below is the specific application, for example:
The first set HTTP parameters using AT instructions.
AT+HTTPURL=192.168.1.1,80The serveraddress and portsettings
AT+HTTPTP=POSTSet the HTTP type, GET, PUT or POST
AT+HTTPPH=/setSet the path,the mostis50 bytes
AT+HTTPCN=keep-aliveSet the Connection,maximum length of 20bytes
AT+HTTPUA=lwip13.2Set the User-Agent,maximum length of 20bytes
Jinan USR IOT Technology LimitedPage 22 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
4.3 Wireless Networking
Figure 15USR-WIFI232-A2 Functional Architecture
If the sending data is 1234.In the 80 port of 192.168.1.1 will receive the following data
POST /set HTTP /1.1
Connection:keep-alive
User-Agent:lwip1.3.2
Content-Length:4
Host:192.168.1.1:80
1234
If the HTTP type is GET, the 80 port 192.168.1.1 receive data
POST /set1234 HTTP /1.1
Connection:keep-alive
User-Agent:lwip1.3.2
Content-Length:0
Host:192.168.1.1:80
Data received from server will be directly sent to the serial port,without any treatment.
Note: after V5.01.14 version of the firmware it add a new method of HTTP header definition,
called the new mode, the way at above, is called the old mode.
Users can custom HTTP headers in the way of the new mode, can add, delete, modify the
contents of each HTTP header (if the HTTP request type is POST/PUT, module will automatically
add the Content - Length).Including the AT + HTPMODE, AT + HTPSV, AT + HTPTP, AT +
HTPURL, AT + HTPHEAD, specific instructions please refer to the AT command set process
section.Similarly, also has the corresponding Settings page in the web page.
Note: in the new mode, if you use the AT command set HTTP headers, Please use the
"<<CRLF>>" instead of carriage "return",in the web page,you don't need to worry about the
"return".
USR-WIFI232-A2 module can be configured as both wireless STA and AP base on network type.
Logically there are two interfaces in USR-WIFI232-A2. One is for STA, and another is for AP.
When USR-WIFI232-A2 works as AP, other STA equipments are able to connect to wireless LAN
via USR-WIFI232-A2 module. Wireless Networking with USR-WIFI232-A2 is very flexible.
Following figure shows the functional architecture of USR-WIFI232-A2 module:
Notes:
Jinan USR IOT Technology LimitedPage 23 of 76tec@usr.cn
AP: that is the wireless Access Point, the founder of a wireless network and the center of the
network nodes. The wireless router we use at home or in office may be an AP.
STA: short for Station, each terminal connects to a wireless network (such as laptops, PDA and
other networking devices) can be called with a STA device.
Infrastructure: it’s also called basic network. It built by AP and many STAs which join in.
The characters of network of this type are that AP is the center, and all communication between
STAs is transmitted through the AP. The figure following shows such type of networking.
Because USR-WIFI232-A2 can be set to AP, can also be set to STA, so the USR-WIFI232-A2 can
be achieved easily wireless ad hoc network.
As showing in the figure below, USR-WIFI232-A2 (1) can be treat as an AP, and USR-WIFI232A2 (2), USR-WIFI232-A2 (3) and the laptop are STAs connected to USR-WIFI232-A2 (1).
Meanwhile, all USR-WIFI232-A2 modules can connected to user device via UART interface. All
USR-WIFI232-A2 modules can be operated and managed through the laptop. So it is convenient
to O&M all USR-WIFI232-A2 modules. Moreover, in such Adhoc network structure, the whole
coverage of a wireless network can be extended easily.
Jinan USR IOT Technology LimitedPage 24 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
Figure 17USR-WIFI232-A2 STA Network Structure
4.3.3AP+STA
Figure 18USR-WIFI232-A2 AP+STA Network Structure
Users can easily setting and track user device through Phone/PAD and not change the
Users can easily setting module’s parameters through WiFi when module works as STA
USR-WIFI232-A2 module support AP+STA network mode, means module support one AP
interface and one STA interface at the same time, as following figure,
When module enables AP+STA function, Module’s STA interface can connect with router and
connect to TCP server in the network. At the same time, module’s AP interface is also active and
permit phone/PAD to connect through TCPB, then phone/PAD can control user device and and
setting the module parameters,
The advantage of AP+STA mode is:
orginal network setting.
mode.
AP+STA Mode Setting:
Jinan USR IOT Technology LimitedPage 25 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
AT+FAPSTA=on, Enable AP+STA mode;
Then, when you configure module works as STA mode, it’s AP interface still active;
AP+STA mode need serial AT command to enable as follows:
AP+STA Mode Notes:
When user enableAT+STA function,the STA port need to keep connected with other
router(AP),
or STA port will have to scan the AP frequently ,which will affect AP port function and may cause
some date loss.
So ,if user confirm STA port can't connect with AP at some time,user can disable the STA scan
through the following command:
After re-start module,this command not saved;
This command is saved after re-staring the module;
USR-WIFI232-A2 module provides one 100M Ethernet interface. With this Ethernet interface,
user can easily realize the three interface (WiFi, UART, and Ethernet) intercommunication and
networking. USR-WIFI232-A2 module can configured as Bridge Mode or Router Mode base on
different networking technology.
Notes: As the Ethernet mode will increase additional consumption, so it is default closed. If you
need this function, pls use AT+FEPHY=on to open it and RELD can’t change this. For different
application, USR-WIFI232-610 need version switch via commands (such as following description
ofN-ver and Z-ver). With command AT+FVER=n to switch to N-ver and with command
AT+FVER=z to switch to Z-ver.
Jinan USR IOT Technology LimitedPage 26 of 76tec@usr.cn
USR-WIFI232-A2 module works as AP and also the center of this network. All devices’ IP address
in this network shall use the same network segment with USR-WIFI232-A2 and they can
ntercommunication with this method.
USR-WIFI232-A2 module works as STA (Software is N-Version), and module set as router mode.
When module connect to AP, it will get wireless port IP address from AP (For example:
192.168.1.100). At the same time, module also form a subnet (Default 10.10.100.254) and all
devices connected to module Ethernet interface will get assigned IP address (For example:
10.10.100.101).So as shown, PC1 at internal subnet can initiate a connection to PC2 (For USRWIFI232-A2 works as router mode), but PC2 can’t active initiate a connection to PC1.
For above networking, USR-WIFI232-A2 module works as STA( Firmware is Z-Version) ,and
module configured as bridge mode. When module connect to AP, all devices connected to
module Ethernet interface will get assigned IP address from AP (For example: 192.168.1.101).For
module works as bridge mode, it can be treated as a transparent device and PC1, PC2 can
communicate without any limit. But in this networking, USR-WIFI232-A/B/C module needs assign
Jinan USR IOT Technology LimitedPage 27 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
4.5 WI-FI parameter setting
4.5.1Auto- Frequency Function
4.5.2Security
WEP
WPA-PSK/TKIP
WPA-PSK/AES
WPA2-PSK/TKIP
WPA2-PSK/AES
4.5.3Search Function for STA
Figure 22Search page
4.5.4Address Binding
a static LAN IP address (For example: 192.168.1.10) if module also needs communication with
AP or configuration through web page.
When module works as STA, USR-WIFI232-A2 will adjust its wireless channel to keep the same
channel with associated AP and connect in.
When module works as AP and USR-WIFI232-A2 enable Auto-frequency function, then when
module boot up, it will select the best wireless channel based on surrounding environment.
USR-WIFI232-A2 module supports multiple wireless encryption mechanisms, and enables to
protect the security of user’s data transmission, the mechanisms include:
When using web configuration STA Interface Setting Page, user can push “Search” button to find
surrounding AP, and find a AP to associated.
USR-WIFI232-A2 module supports the feature of binding the BSSID address of target network.
Jinan USR IOT Technology LimitedPage 28 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
4.6 UART Frame Scheme
4.6.1UART Free-Frame
4.6.2UART Auto-Frame
Auto-frame trigger length: The fixed data length that module used to transmitting to the
Auto-frame trigger time: After the trigger time, if UART port received data can’t reach auto-
According to the provisions of 802.11 protocol, different wireless networks can have a same
network name (i.e. SSID / ESSID), but must correspond to a unique BSSID address (i.e. MAC
address). Illegal intruders can create a wireless network with the same SSID / ESSID, it will make
STAs in the network to join to the illegal AP, thereby and then network leakage happen.
Users can prevent STA from joining to illegal network by binding the BSSID address, to improve
wireless network security.
USR-WIFI232-A2 support UART free-frame function. 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 (50ms default), USR-WIFI232-A2 will think it as the end of one frame and
transfer this free-frame to WiFi port, or USR-WIFI232-A2 will receive UART data until 4K bytes,
then transfer 4KB frame to WiFi port.
USR-WIFI232-A2 is default interval time is 50ms. User can also set this interval to fast (10ms)
through AT command. But user have to consider if user MCU can send UART data with 10ms
interval ,or the UART data may be divide as fragment.
Through AT command: AT+FUARTTE=fast/normal, user can set the interval time: fast (10ms) and
normal (50ms). This command is factory default setting command and AT+RELD can’t change its
value.
USR-WIFI232-A2 support UART auto-frame function. If user select open this function and setting
auto-frame trigger length and auto-frame trigger time parameters, then module will auto framing
the data which received from UART port and transmitting to the network as pre-defined data
structure.
network.
frame trigger length, then module will transmitting available data to the network and bypass
the auto-frame trigger length condition.
Detailed UART auto-frame function can refer to AT+ instruction set “UARTF/UARTFT/UARTFL”
introduction.
Jinan USR IOT Technology LimitedPage 29 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
4.7 Network Setting
4.7.1Socket A
Figure 23Multi-TCP Link Data Transmition Structure
4.7.2Socket B
USR-WIFI232-A2 module has two TCP/UDP Socket: Socket A and Socket B. Serial data written
to the module, will be sent to the Socket A and B simultaneously; TCP/UDP data that module
receives through either Socket A or B,will be sent to the serial port.
Dual Socket through different settings, you can achieve a variety of network interconnect. When
the module shipped only open Socket A, Socket B default is not to connect, if the user needs to
use, please set by AT commands.
Socket A has three 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
32 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:
Socket B has one work mode: TCP Client, please refer to the AT+TCPB/AT+TCPPTB/TCPADDB/
TCPTOB/TCPLKBcommand instruction.
With variety work mode, socket B can provide users with flexible data transfer methods.For
example, Socket B can connect to a remote server in order to achieve remote control.
Jinan USR IOT Technology LimitedPage 30 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
4.8 New function
4.8.1Registered Package ID/MAC
4.8.2Self-adaption Baudrate
Figure 24RFC 2217
TCP password authentication
This feature is available only on the module as a TCP server, when the TCP client connection
module,themodulewillauthenticateeachconnectedtcp.
Each TCP client first data is the “password+0x0d+0x0a” (the password is Webpage
authentication password). The default password is “admin”, so the first piece of data should be
"0x61 0x64 0x6D 0x69 0x6E 0x0D 0x0A" (Hex). If the password is correct, the module returns
"OK",ontheotherhand,returntothe"NO"anddisconnect.
The TCP connection of this function can be Webpage in "TCP connection password
authentication" is opened or disable. Please refer to the specific "5.1.6" section.
This function only applies to the module as a TCP client, in front of the data when module
connected to the server with two bytes of ID (ID the range is 0 ~ 65535, the high byte before, and
the low byte behind) plus two bytes ID radix-minus-one complement(or upload 6 bytes MAC
address).Module is the default ID is 1111(MAC:D8B04CF20000), for example, is sent to the
server when the first four bytes "0x57 0x04 0xfb 0xa8"(or "0xD8 0xB0 0x4C 0xF2 0x00 0x00").
There are two ways to upload their own id: one is to upload their own ID/MAC for connection to
the server forthe first time;Theother is a plus ID/MAC infront of eachdata.
Registered Package related parameter is set in the "serial port and other Settings" section of the
web, build joint function of ID/MAC for the first time, and each data with the function of ID/MAC
are disabled by default.
Note: the function of the upload MAC supported in V5.01.14 and above version.
This feature, please cooperate with our company's virtual serial port software use.
Use a serial port connected module, and use the at command "at + AABR = on" open this
function and restart.In the USR - VOCM software "synchronous baud rate (RFC2217 similar)" is
selected, the following figure.
Specific setup process, please refer to the AT command section(5.2.2.2.39).
In this way, the module of baud rate will be as the USR-VCOM to change at any time, and don't
have to restart the module.If restart the module, baud rate and will come back to before.
Jinan USR IOT Technology LimitedPage 31 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
4.8.3WEB IO
4.8.4Keepalive
4.8.5Multiple STA parameters
4.8.6Websocket
This function only work for "GPIO mode".
When the module is in the "GPIO mode", enter the Webpage in "WEB IO", you can click on the
corresponding button to control module pin level. Without the need to download and install app,
any platform, any equipment, as long as you can into the built-in Webpage of module through the
browser built-you can control module pin of IO.
V4.02.10. USR13 and above version of the firmware added keepalive when the TCP connection
mechanism, so when the module of network anomalies, timely diagnose abnormal to the network
and disconnect, when the network has resumed after, and just in time to connect to the server.
This function based on V4.02.10 D.U SR18 and above version of the firmware, in the sta mode, if
can network signal is too low, it will automatically switch to the other AP network (switching
network automatically restart).
This feature provides a signal threshold, when the current network signals is lower than the
critical value, the module of automatic switching network and restart.If the signal value is set to
100, the module will not switch network.Even if the current network signal is not the current
networkwillalwayssearch,notheavytoothernetworks.
The function of the specific Settings page refer to section 5.1.4.
Specific setup process, please refer to the AT command section(5.2.2.2.50-5.2.2.2.56).
This module can realize the function of the websocket server, allowing serial real-time interaction
with the web module, replace the previous HTTP GET, POST, corresponding faster.This module
provides the corresponding websocket test page for user testing, specific page is as follows:(web
Page:10.10.100.254/websocketen.html)
Jinan USR IOT Technology LimitedPage 32 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
Figure 25Websocket Page
4.8.7Fast access Wi-Fi(usr-link)
No
Name
Num of Bytes
Description
1
head
1
fixed value:0xFF
2
length
2
Sum of data bytes from length bytes to check
byte(not contain length bytes and check byte).
3
cmd
1
Command type, 0x01
4
check
1
Sum of bytes from head (not contained) byte to
check byte (not contained).
No
Name
Num of Bytes
Description
1
head
1
fixed value:0xFF
2
length
2
Sum of data bytes from length bytes to check
byte(not contain length bytes and check byte).
3
cmd
1
Command type, 0x81
4
AP num
1
The number of AP what module scans
5
SSID1
Unsized
The SSID of router 1
6
separator
1
Separator of SSID1, fixed value:0x00
7
Signal
strength1
1
Signal strength of router 1,0~100:0%~100%
8
separator
2
Separatorofsignalstrength1,fixedvalue:
0x0D,0x0A
………
………
M
SSID n
Unsized
The SSID of router n
M+1
separator
1
Separator of SSID n, fixed value:0x00
M+2
Signal
strength
1
Signal strength of router n,0~100:0%~100%
M+3
separator
2
fixed value:0x0D,0x0A
M+4
check
1
Sum of bytes from head (not contained) byte to
check byte (not contained).
Click on the "connect" page and then implements a connection, so a serial port with page can
send or receive data from each other.This module websocket server support 8 client connection
atthesametime.
This function for web applications, and for web users with higher response speed, if you want to
customize the corresponding web page, can connect your company.
Note:This function occupy the 8000 port of module.
When one module works in AP mode, it opens a UDP port used to receive fast access Wi-Fi
commands, the port number is 49000. The phone PDA can directly connect to Wi-Fi network of
the module, send commands to search router list and set SSID and password. After the
completion of set up, module will automatically restart, connected to the router, work in the STA
mode at this time.
Protocol format
Searching command
Response for searching
Example:
Data from phone PDA to module (HEX): FF 00 01 01 02
Data from module to phone PDA (HEX): FF 00 14 81 02 54 45 53 54 31 00 40 0D 0A 54 45 53 54
32 00 37 0D 0A 1F
Explanation:
Jinan USR IOT Technology LimitedPage 33 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
No
Name
Num of Bytes
Description
1
head
1
fixed value:0xFF
2
length
2
Sum of data bytes from length bytes to check byte
(not contain length bytes and check byte).
3
cmd
1
Command type, 0x02
4
reserve
1
fixed value:0x00
5
SSID
Unsized
SSID of router
6
separator
2
fixed value:0x0D,0x0A
7
password
Unsized
Password of router
8
check
1
Sum of bytes from head (not contained) byte to
check byte (not contained).
No
Name
Num of Bytes
Description
1
head
1
fixed value:0xFF
2
length
2
Sum of data bytes from length bytes to check
byte(not contain length bytes and check byte).
3
cmd
1
Command type, 0x82
4
Check for
SSID
1
If the SSID set by PDA exist, check value is 0x01,
otherwise is 0x00.
5
Check for
password
1
If the form of password set by PDA is correct, check
value is 0x01, otherwise is 0x00.
6
check
1
Sum of bytes from head (not contained) byte to
check byte (not contained).
4.9 Palmodic Signal
Status One: The module will output “0” after normal boot up. This signal used to judge if
Status Two: The module will output “Palmodic Signal” after normal boot up.The palmodic
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%.
Note: The information of routers is ordered by signal strength.
Setting command
Response for setting
Example:
Data from phone PDA to module (HEX): FF 00 0F 02 00 54 45 53 54 31 0D 0A 31 32 33 34 35 36
CE
Data from module to phone PDA (HEX): FF 00 03 82 01 01 87
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.
Base on selected factory default setting, “nReady” signal can have two output statuses:
module finish boot up and ready for application.
signal is 0.5Hz square wave with dutyfactor 1:1. User can query this signal to judge if
moduleis active “live” or need to re-boot. When module switches to command mode, it will
output “0”, which used to distinguish work mode and command mode.
Notes:
Jinan USR IOT Technology LimitedPage 34 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
4.10Parameters Configuration
4.11Firmware Upgrade
This function is user selected factory setting and RELD instruction will not effective for this
function. If user not requires this function, the default factory setting is Status One. Contact with
USR Technology for more detailed support.
USR-WIFI232-A2 module supports two methods to configuration parameters: Web Accessing
and AT+instruction set.
Web accessing means users can configure parameters through built-in webpage. When USRWIFI232-A2 module connected to wireless network, parameters configuration is done on a PC
connected to the same wireless network. AT+instruction set configuration means user configure
parameters through serial interface command. Refer to “AT+instruction set” chapter for more
detail.
Notes:
USR can customized the parameters setting as customer request and ship USR-WIFI232-A/B/C
modules with these parameters as factory default configuration. It will reduce user’s module
configuration time for mass production. Also, if user need different parameters setting for every
module, USR can provide the auto-configuration tool to speed up the module configuration
duration. Please contact USR technical interface to acquire this tool if required.
Jinan USR IOT Technology LimitedPage 35 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
4.12Configuration via Web Accessing
Table 7 USR-WIFI232-A2 Web Access Default Setting
Parameters
Default Setting
SSID
USR-WIFI232-A2_xxxx
IP Address
10.10.100.254
Subnet Mask
255.255.255.0
User Name
admin
Password
admin
4.12.1 Open Web Management Interface
Figure 26Open Web Management page
Web Accessing and AT command set
When first use USR-WIFI232-A2 modules, user may need some configuration. User can connect
to USR-WIFI232-A2 module’s wireless interface with following default setting information and
configure the module through laptop.
Step 1: Connect laptop to SSID “USR-WIFI232-A2_xxxx” of USR-WIFI232-A/B/C module via
wireless LAN card;
Step 2: After wireless connection OK. Open Wen browser and access “http://10.10.100.254”;
Step 3: Then input user name and password in the page as following and click “OK” button.
The USR-WIFI232-A2 web management page support English and Chinese language. User can
select language environment at the top right corner and click “Apply” button.
The main menu include five pages: “Mode Selection”,” AP Interface Setting”,”STA Interface
Setting”,”Application Setting”, “WEB IO”and “Device Management”
Jinan USR IOT Technology LimitedPage 36 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
4.12.2 Quick Configure
Figure 27Quick Configure Page
WI-FI Setting: set the working mode of wifi, AP mode or the STA.
Ethernet Ports Setting: open/close the Ethernet ports, and set up the corresponding work
UART Setting: set serial port parameters, including baud rate, parity bit, 485 functions and so
Network Setting: set network parameters, Only TCPA related parameters.
Device Management: when after completion of the above parameters are configured, click
4.12.3 Mode Selection Page
This page provides users with a method of rapid configuration module.Users according to the
steps to configure the parameters and restart the module page, you can let the module is normal
work, reduced the configuration steps and time.Of course the options on this page is less, if some
detailed configuration, still need to the corresponding configuration page.
This page has four configuration options and a restart, the corresponding instructions below:
mode.
on.
reset module.
This page use to setting the wireless networking mode (AP and STA mode).
"Data transmission mode" selection module working mode are "Transparent Mode", "Serial Command
mode", "HTTPD Client mode", "GPIO mode".
"TCP connection password authentication" can choose whether open TCP password authentication.
Jinan USR IOT Technology LimitedPage 37 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
Figure 28Mode Selection Page
4.12.4 AP Interface Setting Page
Figure 29AP Interface Setting Page
4.12.5 STA Interface Setting Page
This page use to setting the parameters when USR-WIFI232-A/B/C module works as AP.
This page use to setting the parameters when USR-WIFI232-A/B/C module works as STA.
Such as SSID of AP which module need to connected, and also select the networking type: DHCP or
static IP address.
Jinan USR IOT Technology LimitedPage 38 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
Figure 30STA Interface Setting Page
4.12.6 Application Setting Page
This page use to setting the parameters of serial port communication, such as UART
setting,UART AutoFrame Setting,Ethernet function,Device ID setting and high layer network
protocol setting which used support serial communication.
Jinan USR IOT Technology LimitedPage 39 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
Figure 31Application Setting Page
4.12.7 Ethernet Setting
Figure 32Ethernet Setting Page
Notes:
Generally, Network protocols support three modes: TCP Server, TCP Client, UDP Client,UDP
Server.
Besides module working as TCP Server (IP address not required in this mode). User must set the
IP address of the device which need communicate with USR-WIFI232-A/B/C module.
Also the Port ID between two sides of the communication devices must keep the same.
This page is used to set Ethernet front-end ports of the module, It can be open or closed.And
also can be set to the WAN port to use, this module can be used as a secondary router, making it
easy for users to network.Specific Settings page is as follows:
Jinan USR IOT Technology LimitedPage 40 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
4.12.8 HTTPD Client Mode
Figure 33HTTPD Client Mode Page
4.12.9 WEB IO
Figure 34WEB IO Page
This page sets the HTTP header in the HTTPD Client mode.Include: the address of the server,
theserverport,requesttype,protocolheaderpath,Connection,user-agent.
HTTPD Client mode support POST, PUT, GET three HTTP request types.Is a POST or PUT
request way, serial data can be added to the back of the HTTP header;When the request is a
GET, data can be added to the back of the path in the HTTP header.The specific way of sending
data can consult section 4.2.4.
Jinan USR IOT Technology LimitedPage 41 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
4.12.10Advanced Page
Figure 35Advanced Setting Page
4.12.11Device Management Page
Under the advanced Settings page, the user can set the port mapping and function of DDNS,
without having to go on a router Settings, reduce the complexity of setting, the port mapping and
DDNS, can be in the public environment, by entering the peanut shell domain name and port, can
quickly and easily find the module.
This page use to manage USR-WIFI232-A/B/C module general setting, such as administrator setting,
restart module button, restore factory default setting button, and update firmware through webpage.
Jinan USR IOT Technology LimitedPage 42 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
Figure 36Device Management Page
4.13AT command Introduction
4.13.1 Configuration Mode
Figure 37USR-WIFI232-A2 Default UART Port Parameters
Notes: Restart module button: When you setting the parameters of different web pages,
you will click “Apply” button to confirm the setting, but the setting take effect only after
user click the “Restart” button here, the module will re-boot up and refresh the memory
information with new changes.
When USR-WIFI232-A2 power up, it will default works as transparent transmission mode, then
user can switch to configuration mode by serial port command. USR-WIFI232-A2 UART default
parameters setting as below figure
In configuration mode, user can setting the module through AT+ instruction set, which cover all
web page setting function.
Jinan USR IOT Technology LimitedPage 43 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
4.13.1.1 Switch to Configuration Mode
UART input “+++”, after module receive “+++”, and feedback “a” as confirmation.
UART input “a”, after module receive “a” and feedback “+ok” to go into AT+
Figure 38Switch to Configuration Mode
4.13.2 AT+ Instruction Set Overview
Two steps to finish switching from transparent transmission mode to configuration mode.
instruction set configuration mode.
Notes:
1. When user input “+++” (No “Enter” key required), the UART port will display feedback
information “a”, and not display input information”+++” as above UART display.
2. Any other input or wro ng step to UART port will cause the module still works as original mode
(transparent transmission).
User can input AT+ Instruction through hyper terminal or other serial debug terminal, also can
program the AT+ Instruction to script. User can also input “AT+H” to list all AT+ Instruction and
description to start.
Jinan USR IOT Technology LimitedPage 44 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
Figure 39”AT+H” Instruction for Help
Figure 40Serial port parameter
We supply software USR-WIFI232-Setup to send command easily, software setup:
Click “Open Com”, send “+++a”, it will reply +ok in left side, then type in and send the command
you need to send, then click “AT+RELD” to restore, then parameters saved.
Jinan USR IOT Technology LimitedPage 45 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
Figure 41software of USR-WIFI232-Setup
Figure 42Search module
4.13.2.1 Instruction Syntax Format
Format Description
< >: Means the parts must be included
[ ]:Means the optional part
Command Message
Above is by COM, also you can send by WIFI:
First, connect with PC, open the software, see Net part
Click search, then will show module, click module then you can send command.
AT+Instruction protocol is based on the instruction of ASCII command style, the description of
syntax format as follow.
Jinan USR IOT Technology LimitedPage 46 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
AT+:Prefix of command message;
CMD: Command string;
[op]:Symbol of command operator,
“=” : The command requires parameters input;
“NULL”: Query the current command parameters setting;
[para-n]: Parameters input for setting if required;
Response Message
+: Prefix of response message;
RSP: Response string;
“ok” : Success
“ERR”: Failure
[op] : =
[para-n]: Parameters if query command or Error code when error happened;
<CR>: ASCII 0x0d;
<LF>: ASCIII 0x0a;
Error Code
Table 8 Error Code Description USR-WIFI232-A/B/C Web Access Default Setting
Error Code
Description
-1
Invalid Command Format
-2
Invalid Command
-3
Invalid Operation Symbol
-4
Invalid Parameter
-5
Operation Not Permitted
4.13.2.2 AT+ command Set
Table 9 AT+ command Set List
Instruction
Description
<null>
NULL
E
Open/Close show back function
ENTM
Set module into transparent transmission mode
NETP
Set/Query network protocol parameters
UART
Set/Query serial port parameters
UARTF
Open/Close UART auto-frame function
UARTFT
Set/Query UART auto-frame trigger time
AT+<CMD>[op][para-1,para-2,para-3,para-4…]<CR>
<CR>: ”Enter” Key, it’s 0x0a or 0x0d in ASCII;
Notes: When input AT+Instruction, “AT+<CMD>” character will display capital letter automatic
and other parts will not change as you input.
Jinan USR IOT Technology LimitedPage 47 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
UARTFL
Set/Query UART auto-frame trigger length
TMODE
Set/Query data transmission mode
(transparent transmission or agreement transmission)
WMODE
Set/Query WIFI work mode (AP or STA)
WSKEY
Set/Query WIFI security parameters as STA
WSSSID
Set/Query WIFI target AP SSID parameters as STA
WSLK
Query WiFi link status as STA
WEBU
Set/Query WEB page login parameters
(User Name and Password)
WAP
Set/Query WIFI parameters as AP
WAKEY
Set/Query WIFI security parameters as AP
HIDESSID
Set/Query hide AP’s SSID
MSLP
Set modules into power save mode.(Turn OFF WiFi)
WSCAN
Seek AP when module works as STA mode
TCPLK
Query if TCP link already build-up
TCPDIS
Open/Cose TCP (Only TCP Client available)
WANN
Set/Query WAN setting, only effective as STA mode
LANN
Set/Query LAN setting, only effective as AP mode
DHCPDEN
Enable/Disable LAN DHCP server function
DHCPGW
Set/Query DHCP gateway address
TCPTO
Set/Query TCP timeout
MAXSK
Set/Query maxima TCP connection
TCPB
Open/Close TCPB function
TCPPTB
Set/Query TCPB port number
TCPADDB
Set/Query TCPB server address
TCPTOB
Set/Query TCPB time out time
TCPLKB
Query TCPB link status
EPHY
Open/Close ETH interface
STTC
Enable/Disable STA port scan function
DOMAIN
Set/Query domain of module webpage
RELD
Restore to factory default setting
FUDLX
Open / close the 485 function
MMID
Device ID
IDFIR
Send an ID when module connection is established
IDEVE
Every time to send data to send ID
AABR
Open / close baud rate adaptive function
MID
Query module ID information
VER
Query module software version information
H
Help
WSSSIDA
Set/query the first AP‘s ssid of 3 sta parameters settings
WSSSIDB
Set/query the second AP‘s ssid of 3 sta parameters settings
WSSSIDC
Set/query the third AP‘s ssid of 3 sta parameters settings
WSKEYA
Set/query the first AP‘s password of 3 sta parameters settings
WSKEYB
Set/query the second AP‘s password of 3 sta parameters settings
WSKEYC
Set/query the third AP‘s password of 3 sta parameters settings
WSQY
Set/query the critiacl value of network switching
HTPMODE
The switch of new/old HTTP headers setting mode(HTTPD Client)
HTPSV
Under the new mode,Settings/query server and IP address(HTTPD
Client)
HTPTP
Under the new mode,Settings/query request type(HTTPD Client)
HTPURL
Under the new mode,setting/query request path(HTTPD Client)
HTPHEAD
Under the new mode,Settings/query the HTTP header(HTTPD
Jinan USR IOT Technology LimitedPage 48 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
Client)
REGEN
Settings/query Registered Package Type
REGTCP
Settings/query Upload Manner
REGID
Settings/query Device ID
4.13.2.2.1AT+E
Function: Open/Close show back function;
Format:
4.13.2.2.2AT+ENTM
Function: Set module into transparent transmission mode;
Format:
4.13.2.2.3AT+NETP
Function: Set/Query network protocol parameters;
Format:
Query Operation
Set Operation
Parameters:
protocol:
TCP
UDP
CS: Network mode:
SERVER
CLIENT
Port: protocol port ID: Decimal digit and less than 65535
Notes: USR-WIFI232-A2 module can works as AP or STA, user have to use different AT+ Instruction
to set WiFi parameters when module works as AP or STAmode.
AT+E<CR>
+ok<CR>< LF ><CR>< LF >
When USR-WIFI232-A/B/C module firstly switch from transparent transmission to configuration mode,
show back status is open, input “AT+E” to close show back function, input“AT+E” again to open show
back function.
AT+ENTM<CR>
+ok<CR>< LF ><CR>< LF >
When operate this command, module switch from configuration mode to transparent transmission
mode.
AT+NETP<CR>
+ok=<protocol,CS,port,IP><CR>< LF ><CR>< LF >
AT+NETP=<protocol,CS,port,IP><CR>
+ok<CR>< LF ><CR>< LF >
Note: When it is Tcp and Udp Server, the Port can not be 80 (HTTP port), 8000 (websocket port),
49000 (usr - link port).
Jinan USR IOT Technology LimitedPage 49 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
IP: Server’s IP address when module set as client
len: Range 64 ~4096; Unit: byte. Auto-frame trigger length;
4.13.2.2.8AT+TMODE
Function: Set/Query data transmission mode;
Format:
Query Operation
Set Operation
Parameters:
tmode: Data transmission mode
Through: Transparent transmission
Agreement: Agreement transmission
Httpdclient: Httpd Client Mode
GPIO: GPIO Mode
4.13.2.2.9AT+WMODE
Function: Set/Query WIFI work mode;
Format:
Query Operation
Set Operation
Parameters:
+ok=<time><CR>< LF ><CR>< LF >
AT+ UARTFT=<time ><CR>
+ok<CR>< LF ><CR>< LF >
AT+ UARTFL<CR>
+ok=<len><CR>< LF ><CR>< LF >
AT+ UARTFL=<len ><CR>
+ok<CR>< LF ><CR>< LF >
AT+TMODE<CR>
+ok=<tmode><CR>< LF ><CR>< LF >
AT+ TMODE=<tmode><CR>
+ok<CR>< LF ><CR>< LF >
After USR-WIFI232-A/B/C module boots up again, the setting will be effective.
Note: No CMD.After power on, the module will not work in the AT command mode by default.
AT+WMODE<CR>
+ok=<mode><CR>< LF ><CR>< LF >
AT+ WMODE=<mode><CR>
+ok<CR>< LF ><CR>< LF >
Jinan USR IOT Technology LimitedPage 51 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
mode:WIFI work mode
AP
STA
4.13.2.2.10AT+WSKEY
Function: Set/Query WIFI security parameters as STA;
Format:
Query Operation
Set Operation
Parameters:
auth: Authentication mode
OPEN
SHARED
WPAPSK
WPA2PSK
encry:Encryption algorithm
NONE: When “auth=OPEN”, effective
WEP: When “auth=OPEN” or “SHARED”, effective
TKIP: When ”auth= WPAPSK”, effective or “WPA2PSK”, effective
AES:When “auth= WPAPSK”, effective or “WPA2PSK”, effective
key: password, ASCII code, shall less than 64 bit and greater than 8bit
4.13.2.2.11AT+WSSSID
Function: Set/Query WIFI target AP SSID parameters as STA.
Format:
Query Operation
Set Operation
Parameters:
ap’s ssid: AP’s SSID
4.13.2.2.12AT+ WSLK
After USR-WIFI232-A/B/C module boots up again, the setting will be effective.
AT+WSKEY<CR>
+ok=<auth,encry,key><CR>< LF ><CR>< LF >
AT+ WSKEY=< auth,encry,key><CR>
+ok<CR>< LF ><CR>< LF >
This Instruction only effective for USR-WIFI232-A/B/C works as STA. After USR-WIFI232-A/B/C
module boots up again, the setting will be effective. But user can set this command when module
configured as AP.
AT+WSSSID<CR>
+ok=<ap’s ssid><CR>< LF ><CR>< LF >
AT+ WSSSID=<ap’s ssid ><CR>
+ok<CR>< LF ><CR>< LF >
This Instruction only effective for USR-WIFI232-A/B/C works as STA. After USR-WIFI232-A/B/C
module boots up again, the setting will be effective. But user can set this command when module
configured as AP.
Jinan USR IOT Technology LimitedPage 52 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
Function: Query WiFi link status as STA
Format:
Query Operation
Parameters:
ret
”Disconnected”, if no WiFi connection;
”AP’ SSID(AP’s MAC” ), if WiFi connection available;
”RF Off”, if WiFi OFF;
4.13.2.2.13AT+WEBU
Function: Set/Query WEB page login parameters;
Format:
Query Operation
Set Operation
Parameters:
usr: User name for WEB page access;
password:Password for WEB page access;
4.13.2.2.14AT+WAP
Function: Set/Query WIFI parameters as AP;
Format:
Query Operation
Set Operation
Parameters:
wifi_mode: WiFi protocols
11BG
11B
11G
11BGN
11N
ssid: SSID when module works as AP;
channel: WIFI channel selection
AUTO
AT+ WSLK<CR>
+ok=<ret><CR>< LF ><CR>< LF >
This Instruction only effective for USR-WIFI232-A/B/C works as STA. After USR-WIFI232-A/B/C
module boots up again, the setting will be effective. But user can set this command when module
configured as AP.
AT+WEBU<CR>
+ok=<usr,password><CR>< LF ><CR>< LF >
AT+ WEBU=< usr,password ><CR>
+ok<CR>< LF ><CR>< LF >
AT+WAP<CR>
+ok=<wifi_mode,ssid,channel><CR>< LF ><CR>< LF >
AT+ WAP=<wifi_mode,ssid,channel><CR>
+ok<CR>< LF ><CR>< LF >
Jinan USR IOT Technology LimitedPage 53 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
CH1~CH11
4.13.2.2.15AT+WAKEY
Function: Set/Query WIFI security parameters as AP;
Format:
Query Operation
Set Operation
Parameters:
auth: Authentication mode
OPEN
SHARED
WPAPSK
WPA2PSK
encry:Encryption algorithm
NONE: When “auth=OPEN”, effective;
WEP: When “auth=OPEN”, effective or “SHARED”, effective;
TKIP: When “auth=WPAPSK”, effective or “WPA2PSK”, effective;
AES:When “auth=WPAPSK”, effective or “WPA2PSK”, effective;
TKIPAES:When “auth=WPAPSK”, effective or “WPA2PSK”, effective;
key: password, ASCII code, shall less than 64 bit and greater than 8bit;
4.13.2.2.16AT+HIDESSID
Function: Set/Query hide AP’s SSID;
Format:
Query Operation
Set Operation
Parameters:
When Query,sta reply if module’s SSID is hide;
On-not hide SSID
Off- hide SSID
This Instruction only effective for USR-WIFI232-A/B/C works as AP. After USR-WIFI232-A/B/C module
boots up again, the setting will be effective. But user can set this command when module configured
as STA.
AT+WAKEY<CR>
+ok=<auth,encry,key><CR>< LF ><CR>< LF >
AT+ WAKEY=< auth,encry,key><CR>
+ok<CR>< LF ><CR>< LF >
This Instruction only effective for USR-WIFI232-A/B/C works as AP. After USR-WIFI232-A/B/C module
boots up again, the setting will be effective. But user can set this command when module configured
as STA.
AT+HIDSSID<CR>
+ok=<sta.><CR><LF><CR><LF>
AT+HIDSSID=<sta><CR>
+ok<CR><LF><CR><LF>
Jinan USR IOT Technology LimitedPage 54 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
When Set,
Off-hide SSID
On- not hide SSID
4.13.2.2.17AT+MSLP
Function: Set modules into power save mode.(Turn OFF WiFi,Regardless of the AP
Format:
Query Operation
Set Operation
Parameters:
When Query,sta reply if the module in sleep mode;
When module go into sleep mode, user can input “AT+MSLP=on” to re-start the module and module
go into transparent transmission mode.
AT+ WSCAN<CR>
+ok=<ap_site><CR>< LF ><CR>< LF >
The first line of the return value is "RSSI, SSID, BSSID, Channel, Encryption,Authentication", they are
the signal strength, network name, MAC address,channel, mode of authentication, encryption
algorithm.
AT+ TCPLK<CR>
+ok=<sta><CR>< LF ><CR>< LF >
Jinan USR IOT Technology LimitedPage 55 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
Format:
Query Operation
Set Operation
Parameters:
sta.: set/query TCP link status;
on: TCP link available; When setting “on”, module will connect to TCP server
off: TCP link not available; when setting “off”, module will disconnect with TCP
4.13.2.2.21AT+ WANN
Function: Set/Query WAN setting, only effective as STA mode;
Format:
Query Operation
Set Operation
Parameters:
mode: IP setting for WAN port
static: Static IP
DHCP: Dynamic IP
address: WAN port IP address;
mask: WAN port subnet mask;
gateway: WAN port gateway address;
4.13.2.2.22AT+ LANN
Function: Set/Query LAN setting, only effective as AP mode;
This Instruction only effective for USR-WIFI232-A/B/C works as STA. After USR-WIFI232-A/B/C
module boots up again, the setting will be effective. But user can set this command when module
configured as AP.
AT+LANN<CR>
+ok=<address,mask ><CR>< LF ><CR>< LF >
AT+ LANN=<address,mask ><CR>
+ok<CR>< LF ><CR>< LF >
Jinan USR IOT Technology LimitedPage 56 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
4.13.2.2.23AT+DHCPDEN
Function: Enable/Disable LAN DHCP server function;
Format:
Query Operation
Set Operation
Parameters:
sta. If Enable/Disable LAN DHCP server function;
on: Enable LAN DHCP function
off: Disable LAN DHCP function
4.13.2.2.24AT+ DHCPGW
Function: Set/Query DHCP gateway address;
Format:
Query Operation
Set Operation
Parameters:
address: DHCP gate address;
4.13.2.2.25AT+ TCPTO
Function: Set/Query TCP timeout;
Format:
Query Operation
Set Operation
Parameters:
time: TCP timeout time.
<= 600, (600s);
>=0, (0 means no timeout);
Default, 0s;
This Instruction only effective for USR-WIFI232-A/B/C works as AP. After USR-WIFI232-A/B/C module
boots up again, the setting will be effective. But user can set this command when module configured
as STA.
Note: AT+WANN check the wan port address of module, AT+LANN check the LAN port address of
module, and the two IP cannot be set on the same network segment,If do,Module will be abnormal.
AT+DHCPDEN<CR>
+ok=<sta><CR><LF><CR><LF>
AT+DHCPDEN=<sta><CR>
+ok<CR><LF><CR><LF>
AT+ DHCPGW<CR>
+ok=<address><CR>< LF ><CR>< LF >
AT+ DHCPGW=<address ><CR>
+ok<CR>< LF ><CR>< LF >
AT+ TCPTO<CR>
+ok=<time><CR>< LF ><CR>< LF >
AT+ TCPTO=<time ><CR>
+ok<CR>< LF ><CR>< LF >
Jinan USR IOT Technology LimitedPage 57 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
4.13.2.2.26AT+ MAXSK
Function: Set/Query maxima TCP connection;
Format:
Query Operation
Set Operation
Parameters:
num: 1~32, default 32. maxima TCP connection;
4.13.2.2.27AT+TCPB
Function: Open/Close TCPB function;
Format:
Query Operation
Set Operation
Parameters:
sta: TCPB enable status
on, TCPB enable
off, TCPB disable
4.13.2.2.28AT+TCPPTB
Function: Set/Query TCPB port number;
Format:
Query Operation
Set Operation
Parameters:
port: decimal ,<65535
TCP timeout: module began to count when TCP channel did not receive any data, receive data purge
count.If the timing time exceed TCPTO, disconnect the TCP channel.If module work in TCP Client , it
will take the initiative to rewiring the TCP Server, If module work in the TCP Server, the TCP Client
need active reconnection.
AT+ MAXSK<CR>
+ok=<num><CR>< LF ><CR>< LF >
AT+ MAXSK =<num ><CR>
+ok<CR>< LF ><CR>< LF >
When configure as TCP/Server, USR-WIFI232-A/B/C support maxima 32 TCP connections. If not
require so much connection, user can resetting this parameters.
AT+TCPB<CR>
+ok=<sta><CR>< LF ><CR>< LF >
AT+ TCPB=<on/off><CR>
+ok<CR>< LF ><CR>< LF >
After USR-WIFI232-A2 module boots up again, the setting will be effective.
AT+TCPPTB<CR>
+ok=<port><CR>< LF ><CR>< LF >
AT+ TCPB=<port><CR>
+ok<CR>< LF ><CR>< LF >
Jinan USR IOT Technology LimitedPage 58 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
4.13.2.2.29AT+TCPADDB
Function: Set/Query TCPB server address;
Format:
Query Operation
Set Operation
Parameters:
add: TCPB server address, can be IP address or url.
4.13.2.2.30AT+TCPTOB
Function: Set/Query TCPB time out time;
Format:
Query Operation
Set Operation
Parameters:
time: TCPB time out time, <=600 (600s), >=0 (No time out), default 0
4.13.2.2.31AT+TCPLKB
Function: Query TCPB link status;
Format:
Parameters:
sta: TCPB link status
on, TCPB link OK
off, TCPB link not available
4.13.2.2.32AT+EPHY
Function: Open/Close ETH interface;
Format:
Set Operation
Parameters:
On/off
Off: Close Ethernet port function;
After USR-WIFI232-A2 module boots up again, the setting will be effective.
AT+TCPADDB<CR>
+ok=<add><CR>< LF ><CR>< LF >
AT+ TCPADDB=<add><CR>
+ok<CR>< LF ><CR>< LF >
After USR-WIFI232-A2 module boots up again, the setting will be effective
AT+TCPTOB<CR>
+ok=<time><CR>< LF ><CR>< LF >
AT+ TCPTOB=<time><CR>
+ok<CR>< LF ><CR>< LF >
After USR-WIFI232-A2 module boots up again, the setting will be effective.
AT+TCPCKB<CR>
+ok=<sta><CR>< LF ><CR>< LF >
AT+ EPHY=<on/off><CR>
+ok<CR>< LF ><CR>< LF >
Jinan USR IOT Technology LimitedPage 59 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
On: Open Ethernet port function;
4.13.2.2.33AT+STTC
Function: Enable/Disable STA port scan function
Format:
Query Operation
Set Operation
Parameters:
Sta: when query, this value feedback
On: Enable STA port scan function
Off: Disable STA port scan function
4.13.2.2.34AT+DOMAIN
Function: Set/Query domain of module webpage;
Format
Query Operation
Set Operation
Parameters:
domain: domain to access to module webpage
4.13.2.2.35AT+FUDLX
Function: Enable/Disable 485 function;
Format:
Query Operation
Set Operation
Parameters:
On/off: Enable or Disable 485 function
On, enable 485 function;
Off, disable 485 function;
If you want to keep the Ethernet port open,please use the AT+FEPHY=on.
Close module’s Ethernet port function can reduce the power consumption. The default setting for
USR-WIFI232-A/B/C is close Ethernet port function.
Use AT + FVEW = disable/enable, so you can set the modules work in LAN port (disable) or wan port
(enable), the directive restore factory Settings to take effect.
AT+STTC<CR>
+ok=<sta><CR>< LF ><CR>< LF >
AT+STTC=<on/off><CR>
+ok<CR><LF><CR><LF>
AT+DOMAIN<CR>
+ok=<domian><CR><LF><CR><LF>
AT+DOMAIN=<domain><CR>
+ok<CR><LF><CR><LF>
AT+FUDLX<CR>
+ok=<on/off><CR><LF><CR><LF>
AT+FUDLX=<on/off><CR>
+ok<CR><LF><CR><LF>
Jinan USR IOT Technology LimitedPage 60 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
4.13.2.2.36AT+MMID
Function: Set/Query Device ID;
Format:
Query Operation
Set Operation
Parameters:
ID: device id(0~65535)
4.13.2.2.37AT+IDFIR
Function: Enable/Disable “Send an ID when module connection is established” function;
Format:
Query Operation
Set Operation
Parameters:
On/off: Enable or Disable “Send an ID when module connection is established”
On, enable “Send an ID when module connection is established” function;
Off, disable “Send an ID when module connection is established” function;
4.13.2.2.38AT+IDEVE
Function: Enable/Disable Every time to send data to send ID function;
Format:
Query Operation
Set Operation
Parameters:
On/off: Enable or Disable Every time to send data to send ID function
On, enable Every time to send data to send ID function;
Off, disable Every time to send data to send ID function;
Notes: AT+FUDLX is F-Setting, means restore to factory setting will not affect this command.
AT+MMID<CR>
+ok=<time><CR>< LF ><CR>< LF >
AT+ MMID=<time><CR>
+ok<CR>< LF ><CR>< LF >
After USR-WIFI232-A/B/C module boots up again, the setting will be effective.
AT+IDFIR<CR>
+ok=<on/off><CR><LF><CR><LF>
AT+IDFIR=<on/off><CR>
+ok<CR><LF><CR><LF>
function
AT+IDEVE<CR>
+ok=<on/off><CR><LF><CR><LF>
AT+IDEVE=<on/off><CR>
+ok<CR><LF><CR><LF>
Note: The ID function requires that the server carries out corresponding processing.In front of the
data when module connected to the server with two bytes of ID (ID the range is 0 ~ 65535, the
highbytebefore,andthelowbytebehind)plustwobytesIDradix-minus-one
Jinan USR IOT Technology LimitedPage 61 of 76tec@usr.cn
On/off: Enable or Disable Self-adaption Baudratefunction
On, enable Self-adaption Baudrate function;
Off, disable Self-adaption Baudrate function;
4.13.2.2.40AT+RELD
Function: Restore to factory default setting;
Format:
4.13.2.2.41AT+Z
Function: Re-start module;
Format:
4.13.2.2.42AT+MID
Function: Query module ID information;
Format:
Query Operation
Parameters:
module_id: MID information;
A11-yymmddnnnn “yymmdd” date; “nnnn” serial number;
4.13.2.2.43AT+VER
Function: Query module software version information;
Format:
Query Operation
Parameters:
ver: Module software version information;
4.13.2.2.44AT+H
Function: Help;
complement.Module is the default ID is 1111, for example, is sent to the server when the first four
bytes "0x57 0x04 0xfb 0xa8".
AT+AABR<CR>
+ok=<on/off><CR><LF><CR><LF>
AT+AABR=<on/off><CR>
+ok<CR><LF><CR><LF>
AT+ RELD<CR>
+ok=rebooting…<CR>< LF ><CR>< LF >
This command restores the module to factory default setting, and then re-starts the module.
AT+ Z<CR>
AT+MID<CR>
+ok=<module_id><CR>< LF ><CR>< LF >
AT+VER<CR>
+ok=<ver><CR>< LF ><CR>< LF >
Jinan USR IOT Technology LimitedPage 62 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
Format:
Query Operation
Parameters:
command help: command introduction;
4.13.2.2.45AT+ HTTPURL
Function:Set /Query HTTP server IP address and Port Number.
Format:
Query Operation:
Set Operation:
Parameters:
IP:HTTP server IP address.
Port:HTTP server Port number。
4.13.2.2.46AT+ HTTPTP
Function:Set /Query HTTP request type.
Format:
Query Operation:
Set Operation:
Parameters:
Type:GET(default) or POST.
4.13.2.2.47AT+ HTTPPH
Function:Set/Query HTTP protocol header path.
Format:
Query Operation:
Set Operation:
Parameters:
Path: Max length is 50 bytes.
4.13.2.2.48AT+ HTTPCN
Function:Set/Query Connection of HTTP protocol header.
Format:
Query Operation:
AT+H<CR>
+ok=<command help><CR>< LF ><CR>< LF >
AT+HTTPURL<CR>
+ok=<IP,Port><CR>< LF ><CR>< LF >
AT+HTTPURL=<IP,Port><CR>
+ok<CR>< LF ><CR>< LF >
AT+HTTPTP<CR>
+ok=<Type><CR>< LF ><CR>< LF >
AT+HTTPTP=<Type><CR>
+ok<CR>< LF ><CR>< LF >
AT+HTTPPH<CR>
+ok=<Path><CR>< LF ><CR>< LF >
AT+HTTPPH=<Path><CR>
+ok<CR>< LF ><CR>< LF >
Jinan USR IOT Technology LimitedPage 63 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
Set Operation:
Parameters:
Connection: Max length is 20 bytes.
4.13.2.2.49AT+ HTTPUA
Function:Set/Query User-Agent of HTTP protocol header.
Format:
Query Operation:
Set Operation:
Parameters:
Parameter: Max length is 20 bytes.
4.13.2.2.50AT+WSSSIDA
Function: Set/query the first AP‘s ssid of 3 sta parameters settings .
Format:
Query Operation
Set Operation
Parameters:
ap’s ssid: AP’s SSID
4.13.2.2.51AT+WSSSIDB
Function: Set/query the second AP‘s ssid of 3 sta parameters settings .
Format:
Query Operation
Set Operation
Parameters:
ap’s ssid: AP’s SSID
AT+HTTPCN<CR>
+ok=<Connection><CR>< LF ><CR>< LF >
AT+HTTPCN=<Connection><CR>
+ok<CR>< LF ><CR>< LF >
AT+HTTPUA<CR>
+ok=<Parameter><CR>< LF ><CR>< LF >
AT+HTTPUA=<Parameter><CR>
+ok<CR>< LF ><CR>< LF >
AT+WSSSIDA<CR>
+ok=<ap’s ssid><CR>< LF ><CR>< LF >
AT+ WSSSIDA=<ap’s ssid ><CR>
+ok<CR>< LF ><CR>< LF >
This Instruction only effective for USR-WIFI232-A/B/C works as STA. After USR-WIFI232-A/B/C
module boots up again, the setting will be effective. But user can set this command when module
configured as AP.
AT+WSSSIDB<CR>
+ok=<ap’s ssid><CR>< LF ><CR>< LF >
AT+ WSSSIDB=<ap’s ssid ><CR>
+ok<CR>< LF ><CR>< LF >
Jinan USR IOT Technology LimitedPage 64 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
4.13.2.2.52AT+WSSSIDC
Function: Set/query the third AP‘s ssid of 3 sta parameters settings .
Format:
Query Operation
Set Operation
Parameters:
ap’s ssid: AP’s SSID
4.13.2.2.53AT+WSKEYA
Function: Set/query the first AP‘s password of 3 sta parameters settings .
Format:
Query Operation
Set Operation
Parameters:
auth: Authentication mode
OPEN
SHARED
WPAPSK
WPA2PSK
encry:Encryption algorithm
NONE: When “auth=OPEN”, effective
WEP: When “auth=OPEN” or “SHARED”, effective
TKIP: When ”auth= WPAPSK”, effective or “WPA2PSK”, effective
AES:When “auth= WPAPSK”, effective or “WPA2PSK”, effective
key: password, ASCII code, shall less than 64 bit and greater than 8bit
4.13.2.2.54AT+WSKEYB
Function: Set/query the second AP‘s password of 3 sta parameters settings .
Format:
This Instruction only effective for USR-WIFI232-A/B/C works as STA. After USR-WIFI232-A/B/C
module boots up again, the setting will be effective. But user can set this command when module
configured as AP.
AT+WSSSIDC<CR>
+ok=<ap’s ssid><CR>< LF ><CR>< LF >
AT+ WSSSIDC=<ap’s ssid ><CR>
+ok<CR>< LF ><CR>< LF >
This Instruction only effective for USR-WIFI232-A/B/C works as STA. After USR-WIFI232-A/B/C
module boots up again, the setting will be effective. But user can set this command when module
configured as AP.
AT+WSKEYA<CR>
+ok=<auth,encry,key><CR>< LF ><CR>< LF >
AT+ WSKEYA=< auth,encry,key><CR>
+ok<CR>< LF ><CR>< LF >
This Instruction only effective for USR-WIFI232-A/B/C works as STA. After USR-WIFI232-A/B/C
module boots up again, the setting will be effective. But user can set this command when module
configured as AP.
Jinan USR IOT Technology LimitedPage 65 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
Query Operation
Set Operation
Parameters:
auth: Authentication mode
OPEN
SHARED
WPAPSK
WPA2PSK
encry:Encryption algorithm
NONE: When “auth=OPEN”, effective
WEP: When “auth=OPEN” or “SHARED”, effective
TKIP: When ”auth= WPAPSK”, effective or “WPA2PSK”, effective
AES:When “auth= WPAPSK”, effective or “WPA2PSK”, effective
key: password, ASCII code, shall less than 64 bit and greater than 8bit
4.13.2.2.55AT+WSKEYC
Function: Set/query the third AP‘s password of 3 sta parameters settings .
Format:
Query Operation
Set Operation
Parameters:
auth: Authentication mode
OPEN
SHARED
WPAPSK
WPA2PSK
encry:Encryption algorithm
NONE: When “auth=OPEN”, effective
WEP: When “auth=OPEN” or “SHARED”, effective
TKIP: When ”auth= WPAPSK”, effective or “WPA2PSK”, effective
AES:When “auth= WPAPSK”, effective or “WPA2PSK”, effective
key: password, ASCII code, shall less than 64 bit and greater than 8bit
AT+WSKEYB<CR>
+ok=<auth,encry,key><CR>< LF ><CR>< LF >
AT+ WSKEYB=< auth,encry,key><CR>
+ok<CR>< LF ><CR>< LF >
This Instruction only effective for USR-WIFI232-A/B/C works as STA. After USR-WIFI232-A/B/C
module boots up again, the setting will be effective. But user can set this command when module
configured as AP.
AT+WSKEYC<CR>
+ok=<auth,encry,key><CR>< LF ><CR>< LF >
AT+ WSKEYC=< auth,encry,key><CR>
+ok<CR>< LF ><CR>< LF >
Jinan USR IOT Technology LimitedPage 66 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
4.13.2.2.56AT+ WSQY
Function: Set/query the critiacl value of network switching.
Format:
Query Operation
Set Operation
Parameters:
ret:The percentage of signal intensity, such as signalstrength was 50%, setting
4.13.2.2.57AT+ HTPMODE
Function: The switch of new/old HTTP headers setting mode(HTTPD Client).
Format:
Query Operation
Set Operation
Parameters:
type:
new: The new HTTP headers setting mode.
old:The old HTTP headers setting mode.
4.13.2.2.58AT+ HTPSV
Function:Set /Query HTTP server IP address and Port Number.
Format:
Query Operation:
Set Operation:
Parameters:
IP:HTTP server IP address.
Port:HTTP server Port number。
4.13.2.2.59AT+ HTPTP
Function:Set /Query HTTP request type.
This Instruction only effective for USR-WIFI232-A/B/C works as STA. After USR-WIFI232-A/B/C
module boots up again, the setting will be effective. But user can set this command when module
configured as AP.
AT+ WSQY<CR>
+ok=<ret><CR>< LF ><CR>< LF >
AT+ WSQY=< ret><CR>
+ok<CR>< LF ><CR>< LF >
should be AT+WSQY=50<CR>;
Note: if set to 100, the module will not automatically switch WIFI network.If the users only one
STA parameter, please be sure to set this parameter to 100.
AT+ HTPMODE<CR>
+ok=<type><CR>< LF ><CR>< LF >
AT+ HTPMODE=< type><CR>
+ok<CR>< LF ><CR>< LF >
AT+HTPSV<CR>
+ok=<IP,Port><CR>< LF ><CR>< LF >
AT+HTPSV=<IP,Port><CR>
+ok<CR>< LF ><CR>< LF >
Jinan USR IOT Technology LimitedPage 67 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
Format:
Query Operation:
Set Operation:
Parameters:
Type:GET(default) or POST.
4.13.2.2.60AT+ HTPURL
Function:Set/Query HTTP header path.
Format:
Query Operation:
Set Operation:
Parameters:
Path: Max length is 50 bytes.
4.13.2.2.61AT+ HTPHEAD
Function:Set/Query HTTP header.
Format:
Query Operation:
Set Operation:
Parameters:
head: HTTP header,Please use the "<<CRLF>>" instead of carriage
Note: the AT command of AT + HTPMODE, AT + HTPSV, AT + HTPTP, AT + HTPURL,AT +
HTPHEAD is supported in V5.01.14 and above version.
AT+ REGEN<CR>
+ok=<mode><CR>< LF ><CR>< LF >
AT+ REGEN=<mode><CR>
+ok<CR>< LF ><CR>< LF >
Jinan USR IOT Technology LimitedPage 68 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
mode:
id: Registered package of ID.
mac:Registered package of MAC.
off:disable Registered package
4.13.2.2.63AT+ REGTCP
Function: Settings/query Upload Manner.
Format:
Query Operation
Set Operation
Parameters:
type:
first: Module send registration packet when connection established.
every:Send registration packet every time when module send data.
4.13.2.2.64AT+ REGID
Function: Settings/query Device ID.
Format:
Query Operation
Set Operation
Parameters:
ID:ID number, the range is 0 to 65535
5USR-WIFI232-A2 Usage Introduction
5.1 Module Debug
5.1.1Software Debug Tools
AT+ REGTCP<CR>
+ok=<type><CR>< LF ><CR>< LF >
AT+ REGTCP=<type><CR>
+ok<CR>< LF ><CR>< LF >
AT+ REGID<CR>
+ok=<ID><CR>< LF ><CR>< LF >
AT+ REGID=<ID><CR>
+ok<CR>< LF ><CR>< LF >
Note: the AT command of AT + REDEN, AT + REGTCP, AT + REGID is supported in V5.01.14 and
above version.
In order to facilitate the use of my company, development of the serial and network debugging twoin-one test software, USR-TCP232-Test
Jinan USR IOT Technology LimitedPage 69 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
5.1.2Network Connection
Figure 43Connection diagram
5.1.3Debug
In order to test the serial port to the WIFI network address conversion, we will module serial connected
with the computer, network and computer links to WIFI.
Due to the need to have both a WIFI and serial special requirements, only a minority of the notebook
computer can achieve, the user can use the desktop with a USB card, or use the notebook computer
with a USB to serial line way, the author uses the desktop and WIFI card form test, desktop with serial.
( Note: there USB transfer RS232 the line quality uneven, some good and some bad, in order not to
waste your valuable time, look for buying a used FT232 chip scheme suggested switching line, about
the price $10)
On the serial connection, module pin leads to 3.3V TTL level, not directly connected with the computer,
need to bring the bottom or users are TTL to RS232 connecting line connected to the computer, in
order to facilitate the user to test the use of, we provide a variety of floor for the user to choose, here in
the case of USR-WIFI232-2.
Hardware connectivity, for module power supply, the red power indicator light, wait about 6 seconds
( internal system boot ), Ready lights, said system startup complete, can operate, entering the next
step.
As shown above, opened in PC program, set the COM export and open the serial port connection
Jinan USR IOT Technology LimitedPage 70 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
Figure 44“CommTools” Serial Debug Tools
Figure 45“TCP UDPDbg” Tools Create Connection
Open test software USR-TCP232-Test.exe, selection of hardware attached to the computer's serial
number, this is COM1, choose 57600 baud rate, such as the WIFI module serial default baud rate,
open the serial port.
Network settings in TCP client mode, the server IP address input 10.10.100.254, this is WIFI module
default IP address, server port number 8899, this module default monitor TCP port number, click the
link to establish TCP connection,Then click the create connection.
Jinan USR IOT Technology LimitedPage 71 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
Figure 46The test results show that the network and serial port
5.2 Use Cases
5.2.1Wireless Control Application
Figure 47Wireless Control Application
Because of the USR-WIFI232-A2 module default support for transparent transmission mode, so now
you can debug tools two-way data, all data will be wholly intact transmission to the other side of
display. The testing process can be seen in module TXD and RXD indicator lights in the data through
the flashing.
Note: because of the RTS/CTS pin processing difference, currently available on the part of the
serial debugging software for the module of the system is not available, please be sure to want to
use USR-TCP232-Test we provide testing, or just RXD TXD GND connected the three line to the
computer, please notice.
Jinan USR IOT Technology LimitedPage 72 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
5.2.2Remote Management Application
Figure 48Remote Management Application
5.2.3Transparent Serial Port Application
Figure 49Transparent Serial Port Application
For this wireless control application, USR-WIFI232-A2 works as AP mode. Module’s serial port
connects to user device. So, control agent (Smart phone for this example) can manage and control the
user device through the wireless connection with USR-WIFI232-A2 module.
For this remote management application, USR-WIFI232-A2 works as STA mode and connects to
Internet through wireless AP. Module configured as TCP Client and communicates with remote TCP
server at Internet. Module’s serial port connects to user device.
So, user device’s data or sampling information can send to remote TCP server for storage or
processing. Also remote TCP server can send command to control and manage the user device
through the wireless network.
For this transparent serial port application, two USR-WIFI232-A2 modules connect as below figures to
build up a transparent serial port connection.
Jinan USR IOT Technology LimitedPage 73 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
5.2.4Wireless Data Acquisition Card Application
Figure 50Wireless Data Acquisition Card Application
For left side USR-WIFI232-A2 module, configured as AP mode and use default SSID and IP address,
network protocol configured as TCP/Server mode, and protocol port ID: 8899.
For right side USR-WIFI232-A2 module, configured as STA mode and setting the same SSID (”USRWIFI232-A/B_xxxx” for this example)with left side USR-WIFI232-A2 module, enable DHCP network
and network protocol configured as TCP/Client mode, protocol port ID: 8899. Target IP address part
setting the same IP address with left side USR-WIFI232-A2 module (“10.10.100.254” for this example).
When right side USR-WIFI232-A2 boot up, it will find wireless AP (SSID:USR-WIFI232-A2_xxxx for
this example) and open TCP/Client network protocol to connect with left side module’s TCP/Server. All
these operation will be automatic and after finished, the two user devices connected to USR-WIFI232A2 module through serial port can communicate each other and think the connection between them is
fully transparent.
Note: LAN IP address and WAN port should in different segment, as picture shown, we change
to 10.10.99.254 (the address get from left module WAN port DHCP is 10.10.100.xxx)
For this wireless data acquisition card application, one PC works as data server and every data
acquisition card connects with a USR-WIFI232-A2 module to support wireless connection function.
Jinan USR IOT Technology LimitedPage 74 of 76tec@usr.cn
USR-WIFI232-A2 User Manualhttp://www.usriot.com
As above figure, one USR-WIFI232-A2 configured as AP mode and all others configured as STA mode.
All USR-WIFI232-A2 which configured as STA and data server PC wireless connected to USRWIFI232-A2 which configured as AP to make up a wires network.
Data server PC open TCP/Server protocol and all USR-WIFI232-A2 modules open TCP/Client
protocol. All data acquisition cards’ data and sampling information can be transmitted to data server
PC for operation.
Modify the setting of the HTTP header, change to custom header, and compatible the
old way of setting (based on V5.01.14 and above version).
Ed.V5.0.7 Update on 03-05-2015
modify the minimum temperature - 40.
Modify the TCP timeout default to 0.
When tcp or udp server,Tip 80, 8000, 49000 is not available.
Ed.V5.0.8 Update on 16-06-2015
Increase customer support center link, remove WAPI encryption.
Ed.V5.0.9 Update on 29-06-2015
V5.01.19 Modify the BUG
Ed.V5.0.9 Update on 03-08-2015
Amend the company address.Modify some describe errors
END OF DOCUMENT
Jinan USR IOT Technology LimitedPage 76 of 76tec@usr.cn
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.