AirM2M Communication Technology A6501 WIFI module User Manual Manual

Shanghai AirM2M Communication Technology Co., Ltd WIFI module Manual

Manual

Download: AirM2M Communication Technology A6501 WIFI module User Manual Manual
Mirror Download [FCC.gov]AirM2M Communication Technology A6501 WIFI module User Manual Manual
Document ID2583778
Application IDmAuxT2AY7GwpEUaDk7G/Kw==
Document DescriptionManual
Short Term ConfidentialNo
Permanent ConfidentialNo
SupercedeNo
Document TypeUser Manual
Display FormatAdobe Acrobat PDF - pdf
Filesize268.09kB (3351123 bits)
Date Submitted2015-04-14 00:00:00
Date Available2015-04-14 00:00:00
Creation Date2015-04-14 10:50:08
Producing SoftwareAcrobat Distiller 7.0 (Windows)
Document Lastmod2015-04-14 10:50:08
Document TitleMicrosoft Word - AirM2M_ESP8266_WiFi module user's manual V2.3
Document CreatorPScript5.dll Version 5.2
Document Author: Administrator

AirM2M_ESP8266_WiFi module user's manual V2.3
A6501
AirM2M_ESP8266_WiFi module user's manual V2.3
Directory
1.1.
Product introduction ................................................................................................................................... 5
1.1.1.
Summary ............................................................................................................................................. 5
1.1.2
Module PCB footprint................................................................................................................. 6
1.1.3
Module basic parameters ............................................................................................................ 7
1.2.
Hardware introduction ........................................................................................................................ 8
1.2.1
A6501............................................................................................................................................ 8
1.3.
1.4.
1.5.
1.6.
2.
3.
4.
5.
Power consumption........................................................................................................................... 11
Dimension ......................................................................................................................................... 12
WiFi antenna ..................................................................................................................................... 12
Recommended furnace temperature curve ........................................................................................ 13
Functional description............................................................................................................................... 13
2.1.
Main function .................................................................................................................................... 13
2.2.
Operating mode................................................................................................................................. 13
2.3.
Application fields .............................................................................................................................. 14
2.4.
AirM2M Cloud ................................................................................................................................. 14
EVB Introduction ...................................................................................................................................... 14
PC Configuration tool ............................................................................................................................... 15
4.1.
Basic application methods ................................................................................................................ 15
4.2.
IO/PWM function demonstration...................................................................................................... 20
AT Instructions Introduction ..................................................................................................................... 21
5.1.
Basic AT instruction .......................................................................................................................... 21
5.1.1 Reboot module:AT+RST............................................................................................................... 21
5.2.
WiFi function AT instruction ............................................................................................................ 21
5.2.1
Select WiFi application mode:AT+CWMODE ...................................................................... 21
5.2.2
List current available access points: AT+CWLAP .................................................................... 22
5.2.3
Add access point:AT+CWJAP .................................................................................................. 22
5.2.4
Quit access point: AT+CWQAP................................................................................................ 23
5.2.5
Set parameter in AP mode: AT+CWSAP .................................................................................. 23
5.2.6
Inquire MAC address: AT+AMMAC ....................................................................................... 23
5.2.7 Start SMART LINK: AT+AMSL ........................................................................................ 24
5.3.
TCPIP AT command ......................................................................................................................... 26
5.3.1
set up TCP/UDP connection :AT+CIPSTART ...................................................................... 26
5.3.2
Get TCP/UDP connection mode :AT+CIPSTATUS .............................................................. 26
5.3.3
Start multi-connection:AT+CIPMUX .................................................................................... 29
5.3.4
sending data:AT+CIPSEND ................................................................................................... 29
5.3.5
Turn off TCP/UDP connection:AT+CIPCLOSE .................................................................... 30
5.3.6
Obtain local IP address:AT+CIFSR ....................................................................................... 31
5.3.7
Configure as server:AT+CIPSERVER ................................................................................... 31
5.3.8
Module receives data from server:+IPD and+RECEIVE ...................................................... 32
5.3.9
Select TCPIP application mode :AT+CIPMODE.................................................................. 32
5.3.10
Save transparent transmission configuration:AT+CIPSCON................................................. 33
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 2 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
5.3.11
5.3.12
5.3.13
5.3.14
5.3.15
Time-out time set for server disconnected automatically:AT+CIPSTO ................................. 34
Set TE-TA Baud rate:AT+IPR ................................................................................................ 35
Select non-transparent transmission data sending mode:AT+CIPQSEND ............................ 36
Quit transparent transmission mode: + + + ............................................................................... 36
Application example ................................................................................................................. 37
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 3 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
Table 1
Terms and abbreviations
Abbreviations
Descriptions
WiFi
Wireless Fidelity
UART
Universal Asynchronous Receiver & Transmitter
DTIM
Delivery Traffic Indication Message
SOC
System On a Chip
P2P
Point to Point
TCP
Transmission Control Protocol
IP
Internet Protocol
STBC
Space-Time Block Coding
MIMO
Multiple Input Multiple Output
MPDU
MAC Protocol Data Unit
MSDU
MAC Server Data Unit
IEEE
Institute Of Electrical And Electronics Engineers
bps
Bits Per Second
CCK
Corporate Control Key
DQPSK
Differential Quadrature Phase Shift Keying
DBPSK
Differential Binary Phase Shift Keying
QAM
Quadrature Amplitude Modulation
OFDM
Orthogonal Frequency Division Multiplexing
WPA
Wi-Fi Protected Access
WPS
Wi-Fi Protected Setup
TKIP
Temporal Key Integrity Protocol
WAPI
Wlan Authentication And Privacy Infrastructure
WEP
Wired Equivalent Privacy
CRC
Cyclic Redundancy Check
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 4 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
1.1. Product introduction
1.1.1. Summary
Up to now Shanghai AirM2M Communication Technology Co., Ltd has released 3 kinds of ESP8266 WiFi
modules, including A6501、A6501S and A6502. There will be more kinds coming to meet different PCB footprint
requirements of enterprise users and individual developers.
A650X series transparent transmission modules own competitive PCB footprint sizes in the industry and
ultralow energy consumption technology. They are designed for mobile devices and internet applications, which
can connect users’ physical devices to WiFi wireless network. So communications happen on internet or local area
network to make interconnection come true.
There are different kinds of PCB footprint sizes for A650X series transparent transmission modules. Some
models of antennas can even support onboard PCB antennas, IPEX interfaces and stamp hole interfaces.
A650X series transparent transmission modules can be widely used on smart power grids, intelligent
transportation, intelligent furniture, handheld devices, industrial control and so on.
For more details please refer to http://www.luam2m.com/
Product features
Support 802.11 b/g/n wireless standard
Support STA/AP/STA+AP 3 working modes
Built-in TCP/IP protocol stack, support multipath TCP Client connections
Support abundant Socket AT commands.
Built-in 32 bit MCU, can be used as the application processor
Support UART/GPIO data communication interfaces
Support PWM output
Support I2C interfaces
Support WiFi configuration parameters
Support Smart Link intelligent networking function
Support remote firmware upgrade (OTA)
3.3V single power supply
Support multiple power consumption modes like Active、Modem sleep、Light sleep、Deep sleep
Ultralow power consumption, suitable for battery-powered applications
ESP8266 software owns industry leading stability
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 5 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
1.1.2
Module PCB footprint
AirM2M ESP8266 A650X series transparent transmission modules support multiple PCB footprints, which
greatly enriches users’ choice. They can be easily applied to a variety of networking hardware terminal situation.
A6501
Picture 1
A6501 PCB footprint modes A plan view and a bottom view
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 6 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
1.1.3
Module basic parameters
A650X
Mater chip
ESP8266
wireless standard
IEEE 802.11b/g/n
frequency range
2.412GHz-2.462GHz
802.11b: +16 +/-2dBm (@11Mbps)
Wireless
parameters
transmitting power(PK)
802.11g: +14 +/-2dBm (@54Mbps)
802.11n: +13 +/-2dBm (@HT20, MCS7)
802.11b: -91 dBm (@11Mbps ,CCK)
receiving sensitivity
802.11g: -75dBm (@54Mbps, OFDM)
802.11n: -71dBm (@HT20, MCS7)
hardware interface
UART,IIC,PWM,GPIO,ADC
working voltage
3.0V--3.6V
GPIO drive capability
Max:15ma
working current
Active State, normal mode: average value:~70mA, peak value:
215mA;
Modem Sleep, turnoff Modem,CPU work: average value: ~15mA;
Light Sleep,turnoff Modem and CPU, wake up while break off:
0.9mA;
Deep Sleep,turnoff Modem and CPU, no wake up while break off:
<15uA;
operating temperature
-40℃~125℃
storage environment
temperature:<40℃,relative humidity:<90%R.H.
Hardware
parameters
A6501: PCB onboard PCB antenna:16*24*3.3mm; built-out
antenna:16*18.6*3.3mm;
A6501S: PCB onboard PCB antenna:16*32*3.3mm; built-out
antenna:16*24.6*3.3mm;
dimension
A6502: PCB onboard PCB antenna:11.8*24*3mm;
Serial
transmission
Software
parameters
transmission rate
9600-460800bps
TCP Client
wireless network types
STA/AP/STA+AP
security mechanism
WEP/WPA-PSK/WPA2-PSK
Encryption type
WEP64/WEP128/TKIP/AES
firm upgrade
local serial, OTA remote upgrade
networking protocol
IPv4, TCP/UDP/FTP/HTTP
user configuration
AT+ instruction set
Web page + PC configuration tool
Android/iOS terminal Smart Link intelligent configuration APP
Table 2
Module technical specifications
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 7 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
1.2. Hardware introduction
A650X series modules using ESP8266 SOC processor with abundant hardware interface can support UART,
IIC,PWM,GPIO,ADC, which can be widely used on different internet application situations.
1.2.1
A6501
Picture 2
A6501 pin configuration
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 8 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
A6501 Pin detailed descriptions:
PIN
Function
Description
U1CTS
1)UART_CTS, send request;
2)General Purpose Input/Output:GPIO3;
3)U U0TXD,ESP8266 using UART to receive message special for download;
U1RTS
1)UART_RTS, allow sending;
2)General Purpose Input/Output:GPIO1;
3) U0TXD,ESP8266 using UART to send message special for download;
4)Must remain vacant (internal pull up)when boot on, no pull down
U1RI
1)UART_RI, low level wake up opposite terminal MCU;
2)General Purpose Input/Output:GPIO5;
U1DTR
1)UART_DTR, low level wake up A650X;
2)General Purpose Input/Output:GPIO14;
HeartBeat
1)Deep Sleep mode: heart signal,need connect HeartBeat to RESET;
2)General Purpose Input/Output:GPIO16;
3)High level output is defaulted when boot up;
RESET
1)Non deepsleep mode: external reset signal, low level is effective
2)Deep sleep mode: RESET connect to Heartbeat
GND
GND
ENABLE
1)Module enable Pin, internal 10K ohm pull up, default power up for booting
2)Shutdown on low level, power consumption current is less than 5uA
VDD
3.3V,module power supply;
10
ANT
WiFi Antenna
11
GND
GND
12
MODE
1)Red LED: Indication light control signal in WiFI operating situation is defaulted.
2)General Purpose Input/Output:GPIO0;
3)mode selection:
vancant:Flash Boot, normal operating mode;
pull down:UART Download, serial download mode;
13
ADC
ADC, input range:0V-1V;
14
U1RXD
1)UART_RXD, receive signal;
2)General Purpose Input/Output:GPIO13;
U1TXD
1)UART_TXD, sending signal;
2)General Purpose Input/Output:GPIO15;
3)Module internal pull down at 10K ohm, no hardware pull up when boot up.
16
nReload
1)nReload, input interrupt, restore factory default settings: AP mode
2)General Purpose Input/Output:GPIO2;
3)Debug_TXD, used on output debugging log;
4)It must be high level when boot up, no hardware pull down
17
GPIO4
General Purpose Input/Output:GPIO4;
18
GPIO12
1)Blue LED:TCP/UDP indication light control signal is defaulted.
2)General Purpose Input/output:GPIO12(need software to setup in addition)
15
Table 1
A6501 Pin definition
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 9 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
Remarks
1)There are 3 serials of A6501. UART1(U1RXD、U1TXD、U1CTS、U1RTS、U1DTR、U1RI)are data serials,
using on transparent transmission. UART0(U0RXD、U0TXD)are download serials, using on firmware updated.
Debug_UART(Debug_TXD)are debugging serials, using on output debugging log.
UART0 and Debug_UART are marked by red and dark yellow respectively.
2) In order to avoid module cannot boot up or unstable phenomenon, close attention should be paid on request for
initialization level on relative pins when boot up as most pins of A6501 are Multifunctional.
Pins that request initialization level when boot up already marked by blue color.
3) Signal“MODE”is used on module mode selection. Need connect “MODE”to“GND”when upgrading firmware.
4) Default functions are recommend to used on Pins of“MODE”、“nReload”、“GPIO12”, which are marked by
purple.
5) Statements for“Red LED”和“Blue LED”:
Red LED:
TCP/UDP connect to indicator, blinks when connected, extinguishes when disconnect.
Blue LED:
(1)Boot constant is 2S,and then turn off;
(2)TCP/UDP data indicator blinks when transmitting, extinguishes when finish.
6) There are 3 GPIO pins of A6501which are completely unrestricted (no request on initialization level, no default
function or default function can be modified). They are marked by green. First using these pins is recommended.
7) Difference between new version A6501_A11 and A6501_A10 are :
(1)Module defaults power on for booting, pull down “ENABLE” when turn off.
(2)Pins location of GPIO12 and GPIO5(U0RI)are exchanged. GPIO5 is defined as U0RI signal.
(3)Optimized pin naming, e.g. changed “DEFAULT”to“nReload”
(4)Redefine UART0、UART1 and Debug_UART;
8)Special reminding:
Please remember that after software version 《SW_V0003_A6501_WEB》 of ESP8266 WiFi module of
Shanghai AirM2M, firmware upgrading serial and data transparent transmission serial won’t use a same
physical pin.
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 10 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
1.3. Power consumption
All the following power consumption data gained basing on 3.3V, 25° (temperature).
[1] All the tests are completed at the antenna interface.
[2] All emit data gained at continuous emission mode, basing on 90% of duty ratio.
Mode
Min
Normal
Max
unit
transmit 802.11b,CCK 1Mbps,Pout=+19.5dBm
215
mA
transmit 802.11b,CCK 11Mbps,Pout=+18.5dBm
197
mA
transmit 802.11g,OFDM54 Mbps,Pout=+16dBm
145
mA
transmit 802.11n,MCS7,Pout=+14dBm
135
mA
receive 802.11b,package length is 1024 bytes,-80dBm
60
mA
receive 802.11g,package length is 1024 bytes,-70dBm
60
mA
receive 802.11n,package length is 1024 bytes,-65dBm
62
mA
System standby mode
0.9
mA
Deep sleep
10
μA
Energy-saving mode
DTIM1
1.2
mA
Energy-saving mode
DTIM3
0.86
mA
0.5
μA
Shutdown
Table 5
Power consumption data
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 11 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
1.4. Dimension
A6501
Picture 5 A6501 module Pin footprint
1.5. WiFi antenna
A650X series modules support 3 kinds of antenna interfaces. They are onboard PCB antenna, IPEX interface
and stamp hole interface. Customers can use onboard PCB antenna and IPEX interface directly without adding
any matching circuit. Customers can use A650X stamp hole antenna interface if they want to design antenna part
on big board. In this case, matching circuit should be reserved on big board for this design. For example:
Picture 6 WiFi radio frequency reference circuit
Note:
1、 Above dashed box parts need antenna matching. Should take actual electronic components’ (who match with
antenna) parameters as standard.
2、 Need 50 ohm resistance for RF wiring. 90 degree angle wiring is forbidden. No longer than 15mm.
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 12 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
1.6. Recommended furnace temperature curve
Refer to IPC/JEDEC standard;Peak Temperature : <250°C;Number of Times: ≤2 times;
Picture 7 Recommended back flow curve
2. Functional description
2.1. Main function
Main functions that A650X series modules can achieve include serial port transmission, PWM control and GPIO
control.
Serial port transmission: data transmission, good reliability, stability, can reach 11Kbyte at serial rate 115200kbps
PWM control: light-control, three-colour LED control, motor speed control
GPIO control: control switch, relay and so on.
2.2. Operating mode
A650X modules support STA/AP/STA+AP 3 operating modes.
♦
STA mode: A6501 modules can connect to the internet by router. So cell phone or computer can remote
control device by internet.
♦
AP mode: As hotspot, A6501 modules achieve that cell phone, computer can communicate with modules
directly, which makes local area network wireless controlled come true.
♦
STA+AP mode: Coexist mode of these two modes. Can achieve seamless switching by internet control.
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 13 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
2.3. Application fields
♦
♦
♦
♦
♦
♦
♦
RS232 serial change to Wi-Fi
industry transparent transmission
Wi-Fi remote control
toy field
color LED control
fire protection, security and intelligent integrated management
Intelligent card terminal, wireless POS machine, Wi-Fi camera, handheld device.
2.4. AirM2M Cloud
AirM2M Cloud is internet cloud platform service creative by Shanghai AirM2M(AirM2M). Users can
monitor and manage device on the platform to realize huge data management and analyze, which make device
intelligent really come true.
AirM2M Cloud can accept customers’ customized requests, including Web Page Configuration, Android/iOS
platform and App.
3. EVB Introduction
AirM2M can offer special UART_WiFi_EVB developmwnt board for customers’ to debug A650X. By this
development board, traditional serial device or MCU device can easily connect to WiFi network to realize
managing and controlling device by network.
This development board can offer hardware demonstration programs like UART serial port data transmission
solution, RGB light-control and intelligent socket. At the same time, development board has reserved hardware
circuit on which our GSM/GPRS standard module A2350 works as main control, MCU and A6501 serial port
transmits data.
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 14 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
Picture 8
EVB front view
Notice:
Due to this EVB is compatible to different application by using module’s periphery pins. So it need jumper
cap or buttons for distinguishing.
1)Button “download”: Press this button before power up for download until downloading begins.
2)Jumper wire “boot”: when break over, turn on; when break, shutdown.
3)Button “reset”: Restore factory default settings: AP mode.
4)“Button “reboot”: module’s hardware reboot, software configuration parameter won’t change.
4. PC Configuration tool
4.1. Basic application methods
A650X support using PC tools: AirM2M_ESP8266_CONFIG_TOOL to configure relative parameters for
easy using.
Here we take to set multilink transparent transmission mode(module working as STA+CLIENT) for
example, introducing following configuration steps:
Step 1 A650X wireless module is at power-up operating mode, and at AP mode or AP+STATION (default is
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 15 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
AP+STATION mode).
Step 2 Using computer’s WIFI function, to search wireless module A650X (all SSID WiFi device of AirM2M
are named as “AirM2M+MAC” e.g. AirM2M_97F502) and click connect.
Step 3 Open configuration tool AirM2M_WiFi_Tool. Please add trust if intercepted by security software.
Step 4 Turn on Web Control to Click “SEARCH”, the searched module will be showed at the left-hand
display column. If the module not searched, we can repeatedly click the button “SEARCH”.(Note: do not
support SEARCH temperately)
Step 5 Click “READ” in the “BASE” option card. Read basic data of AirM2M WiFi device. And to
configure SSID and password for module connection in Station Setting, and then click “SET”.
Step 6 Click “Setting TCPUDP client-side” option page to configure link. It supports 4 links most at the same
time.
Every linking and configuring 4 parameters:
Local_port:local port
Port:server port
Protocol:TCP or UDP
Ip: server IP address
To configure links basing on need. Here take 2 for example and then click “POST”
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 16 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
Note: If user want single link transparent transmission only, to configure one link at this step is
enough.
Step 7 Click “set transparent transmission mode” option page to set transparent transmission mode.
Data_mode = 1 ,transparent transmission mode
Data_mode = 0 ,non-transparent transmission mode,that is AT command mode
Set data_mode=1 over here,then POST
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 17 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
Step 8 Reboot module. After rebooting, module will turn into transparent transmission state. Look from the
server side, there will be two links established
Step 9 Open AT option page, turn on interface, put in data in the input box at the left corner. Look from the
server side, two links all received data “qqqqq”.
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 18 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
Step 10 Quit transparent transmission mode and go back to AT command mode.
Click “set transparent transmission mode” option page to set data_mode=0,POST, then reboot
module will be OK.
Note:
There are 3 ways to quit under transparent transmission mode:
1) + + + quit transparent transmission, but it will go back to transparent transmission mode after rebooting.
2) + + +, then AT+CIPSCON=0, it will go back to transparent transmission mode after rebooting module.
3) At setting transparent transmission mode option page of AirM2M_ESP8266_CONFIG_TOOL ,WEB
CONTROL->, set to 0 and then POST. Enter non-transparent transmission mode after rebooting module.
There are 2 ways to enter transparent transmission mode:
1) AT+CIPMODE=1,AT+CIPSERVER to configure server or AT+CIPSTAR to configure client side.
AT+CIPSCON=1, reboot module and then enter transparent transmission, and automatically set up
connection according to last saved data AT+CIPSCON=1.
2) At setting transparent transmission mode option page of AirM2M_ESP8266_CONFIG_TOOL ,WEB
CONTROL->, set to 0 and then POST. At setting TCPUDP client side/server option page to
configure CLIENT/SERVER, and then POST, reboot module to enter transparent transmission and
automatically set up connection according to configuration.
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 19 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
4.2. IO/PWM function demonstration
Select “I/O PWM” option, access interface as picture 11 shows to control RBG tricolor light, and control
relay switch.
Click “READ” to read current RGB LED, click “SET” to configure new parameters. Thereinto, “Frequency”
is used to adjust PWM output frequency to control Brightness of RGB. Buttons of “RED”、“GREEN”、“BLUE”
are used to adjust Color temperature value of RGB tricolor light. The color temperature value of red-green-blue
light is the same as color palette of Windows’ drawing.
Click “PRESS” button on relay controller to budge relay’s on and off.
Note:
1)RGB LED and relay switch function can match our company’s development board UART_WiFi_EVB for
demonstration.
2)Standard AT software version does not support this function.
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 20 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
5. AT Instructions Introduction
5.1. Basic AT instruction
5.1.1 Reboot module:AT+RST
Grammatical rules:
command type
grammar
backward and instruction
execute command
AT+RST
OK
5.2. WiFi function AT instruction
5.2.1
Select WiFi application mode:AT+CWMODE
Grammatical rules:
command
type
Set
command
grammar
backward and instruction
AT+CWMODE = 
OK
(AT+RST)Command will be in valid after reboot
+CWMODE:
check
command
AT+CWMODE?
OK
What mode is currently in?
+CWMODE:( value list)
test
command
AT+CWMODE = ?
OK
What mode it support currently?
Parameter definition:
parameter
definition

definition
WiFi
mode
application
value
value instruction
Station mode
AP mode
AP+Station mode
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 21 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
5.2.2
List current available access points: AT+CWLAP
Grammatical rules:
command
type
grammar
backward and instruction
+CWLAP: ,,[,]
execute
command
AT+CWLAP
OK
this command will go back to AP list
Parameter definition:
parameter

definition
encryption way

access point name

signal strength

connect mode
5.2.3
value
value instruction
OPEN
WEP
WPA_PSK
WPA2_PSK
WPA_WPA2_PSK
character string parameter
manual connect
automatic connection
Add access point:AT+CWJAP
Grammatical rules:
command
type
Grammar
Set
command
AT+CWJAP=,
check
command
Backward and instruction
AT+CWJAP?
OK or ERROR
Successfully join AP, go back to OK. If not, go back to
ERROR
+CWJAP:
OK
go back to current choice AP
Parameter definition:
parameter
definition
value
value instruction

access point name
character string

password
character string, the longest is 64 byte, ASCII coding
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 22 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
5.2.4
Quit access point: AT+CWQAP
Grammatical rules:
command
type
grammar
execute
command
AT+CWQAP
test
command
AT+CWQAP=?
5.2.5
backward and instruction
OK
means exit this AP successfully
OK
check whether this command support
Set parameter in AP mode: AT+CWSAP
Grammatical rules:
command
type
grammar
backward and instruction
set
command
AT+CWSAP=,,, 
check
command
AT+CWSAP?
OK
successfully set parameters
OK
check current AP parameter
parameter definition:
parameter

definition
encryption way
value
value instruction
OPEN
WEP
WPA_PSK
WPA2_PSK
WPA_WPA2_PSK

access point name
character string parameter

password
character string, the longest is 64 byte, ASCII coding

channel number
5.2.6
Inquire MAC address: AT+AMMAC
Grammatical rules:
command
type
execute
command
grammar
backward and instruction
If CWMODE set as 1(STA mode):
AT+AMMAC
STATION_MAC: xx:xx:xx:xx:xx:xx
OK
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 23 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
If CWMODE set as 2(AP mode):
AP_MAC: xx:xx:xx:xx:xx:xx
OK
If CWMODE set as 3(STA+AP mode):
STATION_MAC: xx:xx:xx:xx:xx:xx
AP_MAC: xx:xx:xx:xx:xx:xx
OK
Successfully set up parameters
Example:
command
(→)
/backward
(←)
example
explanation and instruction
→
AT+CWMODE?
Inquire WIFI level working mode
←
+CWMODE::3
3:AP+STA mode
OK
→
AT+AMMAC
←
STATION_MAC: 18:fe:34:9e:ab:e4
AP_MAC: 1a:fe:34:9e:ab:e4
Inquire AC address
OK
→
AT+CWMODE=2
←
OK
→
AT+AMMAC
←
AP_MAC: 1a:fe:34:9e:ab:e4
Set working mode to 2,AP mode
Inquire MAC adress
OK
5.2.7 Start SMART LINK: AT+AMSL
Grammatical rules:
Comman
grammar
Backward and instruction
d type
Go back:
Set
up
command
AT+AMSL=1
+AMSL:,
OK
instruction:successfully configured SMART LINK
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 24 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
parameter definition:
parameter
definition

AP hotspot name

AP hotspot password
value
Value instruction
example:
comman
example
Explanation and instruction
d(→)
/backwar
d(←)
Turn on cell phone’s WIFI function
and link to router that module can
search (name it A for easy
understanding).
Turn on SMARTLINK Android App that
released by our company. Input name
and password of router that we want
module link to. And click below
SMARTLINK button. Keep running
state until configuration finish.
Note: A and B can be a same one router.
That is to say cell phone can directly link to
router B that we want module link to. And
configure router (that module links to) as
B in APP.
→
AT+CWMODE?
←
+CWMODE:1
OK
→
←
AT+AMSL=1
+AMSL: yh_taih,qin02666
OK
→
AT+CWJAP?
←
+CWJAP:"yh_taih"
Inquire WIFI level working mode
Mode 1:STA mode
Mode 3:STA+AP mode
Mode 1 and 3,both can use SMART LINK
But mode 2(pure AP mode)cannot
configure SMARTLINK.
Start SMART LINK configuration.
It means configuration is successful if
backward of “wait for a moment” occurs.
Ssid = yh_taih
Password = qin02666
Inquire which hotspot module joins up
currently.
means successfully joined up yh_taih
OK
Click STOP,turn off APP
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 25 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
5.3. TCPIP AT command
5.3.1
set up TCP/UDP connection :AT+CIPSTART
Grammatical rules:
command
type
grammar
backward and instruction
if format is right, go back:
OK
when single way connection (+CIPMUX=0):
set
command
AT+CIPSTART=,,,[local_p
ort]
When multichannel connection:
AT+CIPSTART=,,,,[lo
cal_port]
And local port is optional parameters
otherwise go back:
+CME ERROR: invalid input value
successfully connect, go back:
CONNECT OK
(CPIMUX=0)
, CONNECT OK
(CIPMUX=1)
If connection already exist, go back:
ALREADY CONNECT
connection fail, go back:
CONNECT FAIL
(CIPMUX=0)
, CONNECT FAIL (CIPMUX=1)
parameter definition:
parameter
definition
value

Link No.
0~4

connection type
“TCP”/”UDP”

Remote server IP
address

remoter service port
number
[local_port]
local port
5.3.2
value instruction
means connected serial number.
server / 0 connection can be connected by client or
server, other ID can use on remote server
connection only.
character string
number, can select parameters
Get TCP/UDP connection mode :AT+CIPSTATUS
Grammatical rules:
command
type
grammar
backward and instruction
If it is single way connection (AT+CIPMUX=0), go back to
execute
command
OK
AT+CIPSTATUS
STATE: 
C:, , , , 
Note: If it is single way connection, it uses following way for connection:
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 26 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
AT+CIPSTART=,,,[local_port] way, and one link can be set
up only. Occupied  = 0
If it is multiway connection (AT+CIPMUX=1), go back toOK
STATE:
S: ,,
C:, , , , 
test command
AT+CIPSTATUS=?
backward:
OK
parameter definition:
parameter
definition
single way connection

state

server ID

server status
value
value instruction
IP INITIAL
initialization
IP STATUS
obtain local IP status
TCP CONNECTING/UDP
CONNECTING
CONNECT OK
successfully connect setup
TCP CLOSING/UDP
Shutting down TCP connection, and logging out
CLOSING
UDP port.
0~1
value 0 and 1
OPENING
turning on
LISTENING
monitoring
CLOSING
turning off
value as 0,1,2,3

customer’s ID
0~3

IP address
server monitor port

number

customer’s status
TCP connecting/UDP port registering
character string parameters(need quotation mark for
character string)
integer type
INITIAL
turn off state
CONNECTING
connecting
CONNECTED
connected
example:
Command
example
Explanation and instruction
→
AT+CWMODE?
Inquire WIFI level working mode
←
+CWMODE::3
3:AP+STA mode
backward
(←)
OK
→
AT+CIPMUX?
←
+CIPMUX:0
Single way connection mode
OK
→
AT+CIPSTATUS
←
OK
STATE:IP STATUS
C:0,"","",,"INITIAL"
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 27 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
C:1,"","",,"INITIAL"
C:2,"","",,"INITIAL"
C:3,"","",,"INITIAL"
→
AT+CIPSTART="TCP","192.168.1.51",6800
←
OK
Set up one connection
CONNECT OK
→
AT+CIPSTATUS
←
OK
STATE:CONNECT OK
C:0,"TCP","192.168.1.51",6800,"CONNECTED"
C:1,"","",,"INITIAL"
C:2,"","",,"INITIAL"
C:3,"","",,"INITIAL"
→
AT+CIPSTART="TCP","192.168.1.51",7800
Want to set up one more connection
←
OK
Cannot set up.
ALREADY CONNECT
→
AT+CIPSTATUS
inquire status
←
OK
Same as before
STATE:CONNECT OK
C:0,"TCP","192.168.1.51",6800,"CONNECTED"
C:1,"","",,"INITIAL"
C:2,"","",,"INITIAL"
C:3,"","",,"INITIAL"
→
AT+CIPCLOSE
←
CLOSE OK
→
AT+CIPMUX=1
←
OK
→
AT+CIPSTART=0,"TCP","192.168.1.51",7800
←
OK
Turn off connection
Must turn off all connection before configure
multiway connection
0,CONNECT OK
→
AT+CIPSTART=1,"TCP","192.168.1.51",6800
←
OK
1,CONNECT OK
→
AT+CIPSERVER=1,6000
←
OK
→
AT+CIPSTATUS
←
OK
STATE:IP STATUS
S:0,6000,LISTENING
C:0,"TCP","192.168.1.51",7800,"CONNECTED"
C:1,"TCP","192.168.1.51",6800,"CONNECTED"
C:2,"","",,"INITIAL"
C:3,"","",,"INITIAL"
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 28 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
5.3.3
Start multi-connection:AT+CIPMUX
Grammatical rules:
command
type
grammar
backward and instruction
OK
If it is at multiway connection mode, go back to
+CME ERROR: The socket is already connected
set
command
AT+CIPMUX=
That is when there is already connection for module,  value
can not be modified. Only when all connection are turned off by
using AT+CIPCLOSE,  can be modified.
Instruction: Start multi-connection successfully
check
command
AT+CIPMUX?
+CIPMUX:
OK
Instruction: Check whether it is at multi-connection status or not.
parameter definition:
parameter
definition
value
value instruction
Configure to single way connection
mode

whether
to
boot
multi-connection
mode
Configure to multi- way connection
mode
5.3.4
sending data:AT+CIPSEND
Grammatical rues:
command
type
Grammar
backward and instruction
When module receives command it will line feed
back to ”>” first, then start to receive serial port
data. Data will be sent when it is full length.
set
command
test
command
When single way connect
(+CIPMUX=0):
AT+CIPSEND=
response
module executes wrongly, go back to :
parameter error:
+CME ERROR: invalid input value
no connection setup:
+CME ERROR: The socket is not connected
When multi-way connect
(+CIPMUX=1):
AT+CIPSEND=,
AT+CIPSEND=?
If connection is not setup or connection is
interrupt, go back to ERROR; If successfully send
data, go back to SEND OK.
instructi
on
send assigned length data
response
single way connection(AT+CIPMUX=0) back
to :
+CIPSEND: 
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 29 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
OK
multi-way connection(AT+CIPMUX=1) back to :
+CIPSEND: <0-7>,
execute
command
OK
AT+CIPMODE=1 and as customer-side mode, to
access into transparent transmission mode(need
support hardware flow control, otherwise data will
be lost when there is mass data.)
instructi
on
AT+CIPSEND
When module receives command it will line feed
back to ”>” first, then start to send data which
received by serial port.
Parameter definition:
parameter
definition

data length

Link No.
5.3.5
value
value instruction
unit: byte
0~3
connect serial number
Turn off TCP/UDP connection:AT+CIPCLOSE
Grammatical rules:
command
grammar
backward and instruction
type
Single way connection
go back:
CLOSE OK
AT+CIPCLOSE=
set command
Multi-way connection
go back:
,CLOSE OK
AT+CIPCLOSE=[,]
execute
AT+CIPCLOSE
command
test command
need
attention
go back:
AT+CIPCLOSE=?
Items
If shut down successfully, go back:
CLOSE OK
If shut down fail, go back:
ERROR
OK
Executing command is effective to single way connection, it will go back to ERROR when multi-way
connection.
When executing command AT+CIPCLOSE, connection will be shut down only when at TCP/UDP
CONNECTING or CONNECT OK status, otherwise it will take shut down for fail and go back to ERROR.
Status after shutting down is IP CLOSE when at single way connection mode.
parameter definition:
parameter
definition

shut down mode

Link No.
value
value instruction
slow shutdown(default value)
quit shutdown
0~3
integer type, means connected serial number
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 30 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
5.3.6
Obtain local IP address:AT+CIFSR
Grammatical rules:
command
grammar
Response and instruction
type
Execute
command
test
command
AT+CIFSR
response
+ CIFSR:
OK
or
ERROR
AT+CIFSR=?
response
OK
parameter definition:
parameter
definition
Local

5.3.7
value
current
value instruction
IP
address(station)
Configure as server:AT+CIPSERVER
Grammatical rules:
command
grammar
Response and instruction
type
instru
Need execute AT+CIPMUX=1 first, turn on mux mode.
ction
To monitor 2 ports at most, including TCP and UDP.
After start server, it will automatically set up monitor by
server.
OK
If there is client connect to the server of this module then
it will go back to :
Execute
command
respo
AT+CIPSERVER=[,]
,CONNECT OK
nse
If number 0 connection is occupied then it goes back to
+CME ERROR: no change
Note: Need reboot if use AT+CIPSERVER=0 to shut
down server.
parameter definition:
parameter
definition

whether turn on server mode

port number
value
value instruction
turn off server mode
turn on server mode
Shanghai AirM2M Communication Technology Co., Ltd
default value is 333
http://www.airm2m.com
Page 31 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
5.3.8
Module receives data from server:+IPD and+RECEIVE
The command URC(Unsolicited Result Code) is sent by module to serial port. When module receives network data it sends data
which uses +IPD and RECEIVE as header to serial port.
Grammatical rules:
command
grammar
Response and instruction
type
when
single
way
connect
(+CIPMUX=0)
When
non-transpar
ent
transmission
When single way, received data will take +IPD as beginning.
+IPD,:
when
multi-way
connect
(+CIPMUX=1)
 is received data, there is one \r\n between it and +RECEIVE,
,:
+RECEIVE,,:
Note: Colon is English

colon.
There is no data head, data come up directly when it is transparent
transmission.
Note:
When
transparent
transmission
Transparent transmission ways for multiway connection are:

Every single data sent to module serial port will be automatically
sent to all connections under CONNECTED state by module.
Users can guarantee data’s pertinence by application layer’s
protocol.
Parameter definition:
parameter
definition
value
value instruction

Link No.
0~3
connected serial number
unit: byte

 length
Note: The length is ’s length, not including data
head.

burst
Example of data receiving(take data receiving “TEST123” for example:
Non-transparent transmission
Transparent transmission
single way link
+IPD,7:TEST123
TEST123
multilink
+RECEIVE,1,7:
TEST123(at every CONNECTED connection)
TEST123
5.3.9
Select TCPIP application mode :AT+CIPMODE
Grammatical rules:
command type
grammar
backward
set command
AT+CIPMODE=
OK
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 32 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
check command
AT+CIPMODE?
test command
AT+CIPMODE=?
+CIPMODE: 
OK
+CIPMODE: (0-NORMAL MODE,1-TRANSPARENT MODE)
OK
parameter definition:
parameter
definition

TCPIP application mode
5.3.10
value
value instruction
Non-transparent transmission mode, default mode.
transparent transmission mode
Save transparent transmission configuration:AT+CIPSCON
Grammatical rules:
command
grammar
backward
AT+CIPSCON=
OK
type
set command
C:,,,,
check
command
S:,,
AT+CIPSCON
DATA_MODE:
OK
test command
+CIPSCON:(0,1)
AT+CIPSCON=?
OK
parameter definition:
parameter

definition
Save/delete
value
transparent
transmission parameter
value instruction
Save transparent transmission parameter
Module enter transparent transmission after booting. Set up
connection according to data of C and monitor port according
to data of S.
delete transparent transmission parameter. Data of S and C is
deleted. Module quits transparent transmission mode at the
same time

connection marking

value instruction

Ip address
x.x.x.x

opposite port

local port
means server port
To C, that is module’s local CLIENTport
To S,that is module’s loca SERVER port


Server link to time-out
TCP
UDP
0~65535
Please refer to AT+CIPSTO. Default value is 180
Transparent transmission
Common AT mode
mode
Transparent transmission mode
time
example:
Command
example
Explanation and instruction
(→)
/backward
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 33 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
(←)
→
AT+CWMODE?
←
+CWMODE:1
OK
→
AT+CIPMODE=1
←
OK
→
AT+CIPMUX=1
←
OK
→
AT+CWJAP="ChinaNet-hXug","5qsqruiv"
←
OK
→
AT+CIPSTART=0,"TCP","192.168.1.51",6800
←
OK
0,CONNECT OK
→
AT+CIPSCON=1
←
OK
→
AT+CIPSCON
←
C:0,"TCP","192.168.1.51",6800,1793
C:1,"","", ,
C:2,"","", ,
C:3,"","", ,
S:0, ,
S:1, ,
DATA_MODE:1
OK
AT+CIPSTATUS
OK
STATE:IP STATUS
C:0,"TCP","192.168.1.51",6800,"CONNECTED"
C:1,"","",,"INITIAL"
C:2,"","",,"INITIAL"
C:3,"","",,"INITIAL"
Then reboot module.
Module will enter transparent transmission
0,"TCP","192.168.1.51",6800,"CONNECTED"
5.3.11
mode
after
reboot
and
automatically
set
up
connection
of
Time-out time set for server disconnected automatically:AT+CIPSTO
command type
grammar
backward and instruction
set command
AT+CIPSTO=
OK
check command
AT+CIPSTO?
+ CIPSTO:
OK
parameter definition:
parameter
definition
value
Shanghai AirM2M Communication Technology Co., Ltd
value
http://www.airm2m.com
Page 34 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
unit is 2s
Using this command to set up time-out time, server
will disconnect when times up.
0 is default value. Means initiatively disconnect.
Default value is 180.
Use to set time-out time

for server automatically
0~65535
disconnected.
5.3.12
Set TE-TA Baud rate:AT+IPR
Grammatical rules:
command
grammar
backward and instruction
type
set
command
check
command
test
command
go back:
AT+IPR=
OK
go back:
AT+IPR?
+IPR: 
OK
go back:
AT+IPR=?
+IPR: ( value list)
OK
When  = 0, module self-adapt to baud rate. Two items need attention.
1. When main control serial port’s baud rate is set as non-115200, it needs input at least two ”AT” or ”at” at the
main control to boot the module. In this way module’s baud rate will be trained the same as main control. Only
Items need
when the main control ‘s serial port baud rate is the same as module’s, serial port can normally input output AT
attention
command. There should be no more than 100ms between input “A”
and
“T”. There is no limitation between
two ”AT”.
2. When main control’ s serial port baud rate is set as 115200, input command AT directly will be responded as it is
at the self-adapted baud rate state.
parameter definition:
parameter
definition
value
value instruction
self-adapt to baud rate
2400
4800
9600
14400
19200
< rate >
Baud rate
unit: bps
28800
38400
57600
115200
230400
460800
921600
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 35 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
5.3.13
Select non-transparent transmission data sending mode:AT+CIPQSEND
Under non-transparent transmission data sending mode, there are two sending modes quick sending and slow sending also,
using +CIPQSEND to set up.
Grammatical rules:
command type
grammar
Backward
set command
AT+CIPQSEND=
OK
+CIPQSEND: 
check command
AT+CIPQSEND?
OK
+CIPQSEND: (0,1)
test command
AT+CIPQSEND=?
OK
parameter definition:
parameter
definition

non-transparent
transmission
mode
value
value instruction
Common mode, also called slow sending mode—when server receives TCP
data, module goes back to SEND OK.
Quick sending mode—when data sent to module, module goes back
single way link:DATA ACCEP:
multilink:DATA ACCEPT:,
but not SEND OK
5.3.14 Quit transparent transmission mode: + + +
There are 3 ways to quit under transparent transmission mode:
1) + + + quit transparent transmission, but it will go back to transparent transmission mode after rebooting.
2) + + +, then AT+CIPSCON=0, it will go back to non-transparent transmission mode after rebooting
module.
3) At setting transparent transmission mode option page of AirM2M_ESP8266_CONFIG_TOOL ,WEB
CONTROL->, set to 0 and then POST. Enter non-transparent transmission mode after rebooting module.
There are 2 ways to enter transparent transmission mode:
1) AT+CIPMODE=1,AT+CIPSERVER to configure server or AT+CIPSTAR to configure client side.
AT+CIPSCON=1, reboot module and then enter transparent transmission, and automatically set up
connection according to last saved data AT+CIPSCON=1.
2) At setting transparent transmission mode option page of AirM2M_ESP8266_CONFIG_TOOL ,WEB
CONTROL->, set to 0 and then POST. At setting TCPUDP client side/server option page to configure
CLIENT/SERVER, and then POST, reboot module to enter transparent transmission and automatically
set up connection according to configuration.
Grammatical rules:
Command type
execute
command
grammar
backward
+++
Attention:+++ no other character at front or back
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 36 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
5.3.15 Application example
Module can work as STATION on WIFI level, also can work as AP, and AP+ STATION. Module can work as SERVER on
transmission level. While on application level, it can work as non-transparent data transmission and transparent data
transmission also.
Examples:
command
example
explanation and demonstration
(→) /
backward
(←)
1)Module works in STATION mode(mode=1):
The following words in light blue are the same common premise steps in this mode:
Step1: check WIFI level working mode
→
AT+CWMODE?
←
+CWMODE::3
Default mode is 3: AP+STA mode
OK
→
AT+CWMODE=1
←
OK
→
AT+RST
Step2: Set as Station mode
→
AT+CWLAP
Step3: Need reboot after setting operation
mode.
Note: Step2 and Step 3 can be ignored if
after booting AT+CWMODE? is already
Step 1.
Step 4: check current available access point
←
+CWLAP:(3,"yh_taihdhad",-45,"54:e6:fc:52:36:e6",9)
search result
←
OK
+CWLAP:(4,"lemon",-86,"6c:e8:73:69:4b:76",10)
+CWLAP:(4,"Xiaomi_yu",-85,"8c:be:be:2c:46:ea",11)
OK
→
AT+CWJAP="yh_taihdhad","UUU02339"
Step 5: add into one AP
Note: After finishing this step, it will
automatically save the original mode after
module reboot. It will be STA also if it is
OK
STA
mode
before
reboot,
and
automatically add in hot spots of before
reboot.
1.1)Module work as CLIENT, single way connection, non-transparent transmission:
←
→
AT+CIPSTATUS
Check current WIFI connected status
←
OK
Already joined up AP.
STATE:IP STATUS
→
AT+CWJAP?
←
+CWJAP:"yh_taihdhad"
Check current joined AP.
OK
→
AT+CIFSR
←
172.168.1.114
→
AT+CIPSTART="TCP","172.168.1.119",4321
←
OK
←
CONNECT OK
Shanghai AirM2M Communication Technology Co., Ltd
Check current module IP address
Set up one TCP link
Means connection success.
http://www.airm2m.com
Page 37 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
→
→
AT+CIPSEND=5
>hello
←
SEND OK
←
+IPD,14:hello,thisispc
→
AT+CIPCLOSE
←
OK
Set sending length to 5, module will
automatically send data after data up to 5
ones.
After > comes up, send 5 characters hello to
serial port, module will automatically send
data.
means sending is successful
Module receives server’s data and send to
serial port directly.
Turn off connection
1.2)Module work as CLIENT, single way connection, data transparent transmission:
set module to transparent transmission mode
→
AT+CIPMODE=1
←
OK
→
AT+CIPSTART="TCP","172.168.1.119",4321
←
OK
←
CONNECT OK
means connection is successful
→
AT+CIPSCON=1
Save
parameter(link
parameter
transparent transmission mode)
←
OK
→
AT+CIPSEND
←
←
SSSSAAAAAAAA
→
Reboot module
connect to one server
and
Enter transparent transmission.
Enter transparent transmission directly
without reboot.
After enter AT+CIPSEND, it will go back
to >, then upper computer can send data to
module from serial port, module can
automatically send out data.
After server sending “SSSSAAAAAAAA”,
module will display directly. Note: No data
head when received by transparent
transmission.
Module
will
enter
transparent
transmission directly after reboot and
set up connection according to
"TCP","172.168.1.119",4321.
→
+++
→
AT+CIPSCON
←
C:0,"TCP","172.168.1.119",4321,1793
C:1,"","", ,
quit transparent transmission state
Note: there should be no character in
front or behind +++.
Inquire
transparent
transmission
parameter and state
Inquire result is status and parameter of
the last time when AT+CIPSCON=1.
C:2,"","", ,
C:3,"","", ,
S:0, ,
S:1, ,
DATA_MODE:1
OK
→
AT+CIPSTATUS
←
OK
STATE:CONNECT OK
C:0,"TCP","172.168.1.119",4321,"CONNECTED"
C:1,"","",,"INITIAL"
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 38 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
C:2,"","",,"INITIAL"
C:3,"","",,"INITIAL"
→
AT+CIPMODE=1
←
OK
→
Reboot module. Reenter transparent transmission after reboot
and set up one connection automatically. Connection parameter
is the same as saved last time.
1.3)Module work as CLIENT, single way connection, data transparent transmission.
→
AT+CIPMUX=1
←
OK
→
AT+CIPMODE=1
←
OK
→
AT+CIPSTART=0,"TCP","172.168.1.119",4321
←
OK
After CIPMUX=1, module can do
transparent transmits only.
Transparent transmission mode
This is outer net server.
CONNECT OK
→
AT+CIPSCON=1
←
OK
Save parameter(connect parameter and
transparent transmission mode)
Reboot module. Reenter transparent transmission after reboot
and set up two connections automatically. Connection parameter
is the same as saved last time when +CIPSCON .
1.4) Module work as SERVER, multi-way connection, non-transparent transmission.
AT+CIPMUX=1
→
←
OK
→
AT+CIPSERVER=1,8800
Module works as SERVER
OK
configuration is successful,
Can monitor TCP and UDP link at the same
time
←
→
AT+CIPSTATUS
←
OK
STATE:IP STATUS
S:0,8800,LISTENING
C:0,"","",,"INITIAL"
C:1,"","",,"INITIAL"
C:2,"","",,"INITIAL"
C:3,"","",,"INITIAL"
←
0,CONNECT OK
CLIENT link to module (TCP),linkid = 0
CLIENT link to module (UDP),linkid = 1
←
1,CONNECT OK
→
AT+CIPSTATUS
←
OK
Note: No matter TCP or UDP, 4 links can
be set up most.
Inquire TCPIP level status
STATE:IP STATUS
S:0,8800,LISTENING
C:0,UDP,192.168.2.112,65074,CONNECTED
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 39 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
C:1,TCP,192.168.2.112,50114,CONNECTED
C:2,"","",,"INITIAL"
C:3,"","",,"INITIAL"
←
Receive data from CLIENT,content is:
0123456789
+RECEIVE,0,10:
0123456789
→
AT+CIPSEND=0,6
←
←
0,SEND OK
←
0,CLOSE OK
→
AT+CIPSERVER=0
←
OK
Now data can be input. Input 6 characters,
data will send initiatively.
Data sending successfully.
Opposite terminal ( CLIENT )
connection initiatively.
break
Need reboot module after shut down server.
we must restart
1.5)Module works as SERVER, single way and multi-way connection, data
transparent transmission.
→
AT+CIPMUX=1
←
OK
→
AT+CIPSERVER=1,8800
Module works as SERVER
OK
Configuration is successful.
can monitor TCP and UDP connection at the
same time
←
→
AT+CIPMODE=1
←
OK
→
AT+CIPSCON=1
←
OK
Enter transparent transmission mode after reboot. And wait for
setting up CLIENT connection. There will be nothing reminder
模块作为SERVER可最多同时监听4条链接
(TCP+UDP)
after connection set up successfully. Now data can be two-way
transmitted.
2)Module operates in AP mode:
The following words in light blue are the same common premise steps in this mode:
→
AT+CWMODE?
Step 1: check WIFI level operation mode
←
+CWMODE::3
Default mode is 3: AP+STA mode
OK
OK
Ste[ 2: Set as AP mode
→
AT+CWMODE=2
←
OK
→
AT+RST
Step 3: Need reboot after setting mode.
OK
Note: Step2 and Step 3 can be ignored
if after booting AT+CWMODE it is
already Step 1.
←
→
AT+CWSAP="aptest","123456",1,0
←
OK
Step4: Set mode to AP and configure AP
parameters.
Note: After finishing this step, it will
automatically save the original mode after
module reboot. It will be AP also if it is AP
mode before reboot, and keeps the same
AP parameters (SSID, password and so on)
as before reboot.
STATION join uo aptest AP
Shanghai AirM2M Communication Technology Co., Ltd
+CWMODE:
http://www.airm2m.com
Page 40 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
2.1)CLIENT,single way connection,
non-transparent transmission data:
Please refer to 1.1) partial examples
2.2)CLIENT,single way connection,
transparent transmission data:
Please refer to 1.2) partial examples
2.3)SERVER,multi-way connection,
non-transparent transmission data:
Please refer to 1.3) partial examples, different part is all
connections are internet connection under this application.
2.4) SERVER,multi-way connection,
non-transparent transmission data:
Please refer to 1.4) partial examples
2.5) SERVER,single way and multi-way connection, transparent transmission data:
Please refer to 1.5) partial examples
3)Module work in AP+STATION mode :
The following words in light blue are the same common premise steps in this mode::
Set as AP + STA mode
→
AT+CWMODE=3
←
OK
→
AT+RST
←
OK
→
AT+CWJAP="yh_taihdhad","UUU02339"
←
OK
→
AT+CWSAP="aptest","123456",1,0
←
OK
Need reboot after configuring mode.
Add into one AP which is a router can access
outer net.
Configure module as (name as aptest),and
configure AP parameter
There is one computer(name as user) using WIFI to join this
aptest AP.
→
AT+CIPMUX=1
←
OK
→
AT+CIPSTART=1,"TCP","120.209.197.145",8000
←
OK
Start multi-way connection mode
Set up TCP connection with one SERVER of
outer net. Connection number is 1.
Successfully connect to outer net SERVER.
1,CONNECT OK
3.1) Module works as CLIENT to link local server, meanwhile works as CLIENT to link outer net server.
→
AT+CIFSR
192.168.2.110 is the allocated IP address
←
192.168.4.1
when joins router which can surf outer net.
192.168.2.110
192.168.4.1 is the IP address and module
OK
works as AP itself.
→
←
AT+CIPSTART=2,"TCP","192.168.4.100",7777
To set up one connection with USER’s
server, connection number is 2.
OK
2,CONNECT OK
←
+RECEIVE,2,11:
receive one pack of data from USER
hhhhhhfdddd
→
AT+CIPSEND=1,11
Receive data from USER’s server (link 2) and
send to outer net’s server (link 1)
←
input hhhhhhfdddd
When character’s number is up to 11, it will
send out by itself.
3.2)Besides linking to outer net’s server, module also works as CLIENT to link local server, service including: multi-way
link and transparent transmission.
←
1,SEND OK
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 41 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
→
AT+CIPSTART=2,"TCP","192.168.4.100",7777
←
OK
To set up one connection with USER’s
server, connection number is 2.
2,CONNECT OK
→
AT+CIPMODE=1
←
OK
→
AT+CIPSCON=1
←
OK
Reboot module. Module will enter transparent transmission after
reboot and automatically sets up 1 and 2 connections at the same
time.
→
+++
→
AT+CIPSTATUS
←
STATE:IP STATUS
Linking status can be checked after quiting
transparent transmission mode
C:0,"","",,"INITIAL"
C:1,"TCP","120.209.197.145",8000,"CONNECTED"
C:2,"TCP","192.168.4.100",7777,"CONNECTED"
C:3,"","",,"INITIAL"
3.3 Besides linking to outer net’s server, module also works as server to monitor local connection, service including:
multi-way link and non- transparent transmission.
→
AT+CIPSERVER=1,3366
←
←
←
OK
0,CONNECT OK
2,CONNECT OK
→
AT+CIPSEND=0,8
←
←
0,SEND OK
→
←
AT+CIPSTATUS
Working as CLIENT, USER set up one UDP
connection joining up module’s AP,
linking number is 0.
Working as CLIENT, USER set up one TCP
connection joining up module’s AP, linking
number is 1.
After input 12345678, then data can send out
by itself.
Inquire TCPIP status
OK
STATE:IP STATUS
S:0,3366,LISTENING
C:0,UDP,192.168.4.100,51733,CONNECTED
C:1,TCP,120.209.197.156,8000,CONNECTED
C:2,TCP,192.168.4.100,57957,CONNECTED
3.4)Besides linking to outer net’s server, module also works as server to monitor local connection , service including:
multi-way link and transparent transmission.
→
AT+CIPSERVER=1,3366
←
OK
→
AT+CIPMODE=1
←
OK
→
AT+CIPSCON=1
←
OK
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 42 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
Reboot module. It will enter transparent transmission mode
automatically
and
set
up
connection
1,"TCP","120.209.197.145",8000. Module works as SERVER at
the same time to monitor port 3366, waiting for setting up
connection.
FCC Caution: Any changes or modifications not expressly
approved by the party responsible for compliance could void the user's
authority to operate this equipment.
This device complies with Part 15 of the FCC Rules.
Operation is subject to the following two conditions: (1) This device may not
cause harmful interference, and (2) this device must accept any interference
received, including interference that may cause undesired operation.
This device and its antenna(s) must not be co-located or operating in conjunction
with any other antenna or transmitter.
This equipment should be installed and operated with minimum distance 20cm
between the radiator and your body.
15.105 Information to the user.
(b) For a Class B digital device or peripheral, the instructions furnished the
user shall include the following or similar statement, placed in a prominent
location in the text of the manual:
Note: This equipment has been tested and found to comply
with the limits for a Class B digital device, pursuant to part 15 of the FCC Rules.
These limits are designed to provide reasonable protection against harmful
interference in a residential installation. This equipment generates, uses and
can radiate radio frequency energy and, if not installed and used in
accordance with the instructions, may cause harmful interference to radio
communications. However, there is no guarantee that interference will not
occur in a particular installation. If this equipment does cause harmful
interference to radio or television reception, which can be determined by
turning the equipment off and on, the user is encouraged to try to correct the
interference by one or more of the following measures:
—Reorient or relocate the receiving antenna.
—Increase the separation between the equipment and receiver.
—Connect the equipment into an outlet on a circuit different from that to which
the receiver is connected.
—Consult the dealer or an experienced radio/TV technician for help.
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 43 of 48
AirM2M_ESP8266_WiFi module user's manual V2.3
Radiation Exposure Statement:
This equipment complies with FCC radiation exposure limits set forth for an
uncontrolled environment.
This transmitter must not be co-located or operating in conjunction with any other
antenna or transmitter.
The availability of some specific channels and/or operational frequency bands
are country dependent and are firmware programmed at the factory to match
the intended destination.
The firmware setting is not accessible by the end user.
The final end product must be labelled in a visible area with the following:
“Contains Transmitter Module 2AEGGA6501”
”
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 44 of 48

Source Exif Data:
File Type                       : PDF
File Type Extension             : pdf
MIME Type                       : application/pdf
PDF Version                     : 1.4
Linearized                      : Yes
XMP Toolkit                     : 3.1-701
Producer                        : Acrobat Distiller 7.0 (Windows)
Creator Tool                    : PScript5.dll Version 5.2
Modify Date                     : 2015:04:14 10:50:08+08:00
Create Date                     : 2015:04:14 10:50:08+08:00
Format                          : application/pdf
Title                           : Microsoft Word - AirM2M_ESP8266_WiFi module user's manual V2.3
Creator                         : Administrator
Document ID                     : uuid:d5832235-539d-45ce-973b-c558c420a553
Instance ID                     : uuid:9cd648e4-ddd1-4b6b-8d0c-735e087a507b
Page Count                      : 44
Author                          : Administrator
EXIF Metadata provided by EXIF.tools
FCC ID Filing: 2AEGGA6501

Navigation menu