Ai Thinker Technology ESP01F WiFi module User Manual

Shenzhen Ai-Thinker Technology co., LTD WiFi module

User Manual

Download: Ai Thinker Technology ESP01F WiFi module User Manual
Mirror Download [FCC.gov]Ai Thinker Technology ESP01F WiFi module User Manual
Document ID4062349
Application IDOqGqsHyWwQhLBuXMV2lDwQ==
Document DescriptionUser Manual
Short Term ConfidentialNo
Permanent ConfidentialNo
SupercedeNo
Document TypeUser Manual
Display FormatAdobe Acrobat PDF - pdf
Filesize101.88kB (1273522 bits)
Date Submitted2018-11-06 00:00:00
Date Available2018-11-06 00:00:00
Creation Date2018-08-20 17:56:35
Producing SoftwarePDF-XChange Printer 2012 (5.0 build 265) [Windows 8 Enterprise x64 (Build 9200)]
Document Lastmod0000-00-00 00:00:00
Document TitleUser Manual
Document Creator吕俊雄
Document Author: 吕俊雄

ink
er
-T
Ai
ESP-01/07/12 Series Modules User's Manual
Version 1.4
Ai-Thinker Inc
Copyright (c) 2017
ESP-01/07/12 Series Modules User's Manual V1.4
Revision Record
Version
Author
Release Notes
2017.07.01
V1.0
Wang Chong
First Version
2017.09.04
V1.1
Wang Chong
Add ESP-01M, Delete ESP-12E
2017.12.18
V1.2
Fang Dongbin
ink
er
Date
Modify the GPIO4 pin description, change
the contact number
V1.3
Lv Junxiong
Add ESP-01F
2018.8.16
V1.4
Lv Junxiong
Add ESP-01E
Ai
-T
2018.3.10
ESP-01/07/12 Series Modules User's Manual V1.4
FCC STATEMENT
Ai
-T
ink
er
Changes or modifications not expressly approved by the party responsible for compliance
could void the user’s authority to operate the 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.
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.
Please notice that if the FCC identification number is not visible when the module is
installed inside another device, then the outside of the device into which the module is installed
must also display a label referring to the enclosed module. This exterior label can use wording
such as the following: “Contains FCC ID:2AHMR-ESP01M” or “Contains FCC
ID:2AHMR-ESP07S”or “Contains FCC ID:2AHMR-ESP12S” or “Contains FCC
ID:2AHMR-ESP12F” or “Contains FCC ID:2AHMR-ESP01E”or “Contains FCC
ID:2AHMR-ESP01F”any similar wording that expresses the same meaning may be used.
This equipment complies with FCC radiation exposure limits set forth for an uncontrolled
environment. This equipment should be installed and operated with a minimum distance of 20cm
between the radiator & your body. This transmitter must not be co-located or operating in
conjunction with any other antenna or transmitter.
The module is limited to OEM installation ONLY.
The OEM integrator is responsible for ensuring that the end-user has no manual instruction t
o remove or install module.
The module is limited to installation in mobile application.
A separate approval is required for all other operating configurations, including portable con
figurations with respect to Part 2.1093 and difference antenna configurations.
There is requirement that the grantee provide guidance to the host manufacturer for complia
nce with Part 15B requirements.
ESP-01/07/12 Series Modules User's Manual V1.4
Table Of Contents
ink
er
1 Product Overview ...........................................................................................1
1.1 Product Features...................................................................................1
1.2 Application Plan...................................................................................1
2 Module Interface.............................................................................................2
2.1 Package Size ........................................................................................2
2.1 Pin Definition.......................................................................................6
2.2 Boot Mode ...........................................................................................7
3 Electrical Characteristics.................................................................................8
3.1 Maximum Ratings ................................................................................8
3.2 Suggested Working Environment .........................................................8
3.3 Digital Port Features ............................................................................8
3.4 Power Consumption .............................................................................8
3.5 Transmit Power .................................................................................. 10
3.6 Receive Sensitivity ............................................................................. 10
-T
4 Hardware Guidance ...................................................................................... 11
4.1 Typical Applications .......................................................................... 11
4.2 PCB Antenna Display Instructions .....................................................13
4.3 Module Peripheral Routing Instructions .............................................14
4.4 GPIO Level Conversion .....................................................................15
4.5 Power Supply Reference Design ........................................................ 15
4.6 ADC Supply Reference Design ..........................................................15
4.7 Automatically Download Reference Design .......................................16
4.8 Reflow oven temperature curve .......................................................... 16
Ai
5 Usage Guide ................................................................................................. 17
5.1 Introduction To The Basic AT Command ...........................................17
5.1.1 AT ........................................................................................... 17
5.1.2 AT+GMR ................................................................................17
5.1.3 AT+RST.................................................................................. 17
ESP-01/07/12 Series Modules User's Manual V1.4
5.1.4 AT+RESTORE........................................................................18
ink
er
5.2 Use Examples ....................................................................................18
5.2.1 TCP Communication Test........................................................ 18
5.2.2 UDP Communication Test ....................................................... 20
6 FAQ .............................................................................................................22
6.1 Garbage Instructions When Power Is On ............................................22
6.2 How To Shield The Power When The Garbled ................................... 22
6.3 Can’t Burn Normally ....................................................................... 22
6.4 SDK Development Environment ........................................................23
6.5 Startup Information Description .........................................................23
7 Module Selection .......................................................................................... 23
Ai
-T
8 Contact US ................................................................................................... 25
ESP-01/07/12 Series Modules User's Manual V1.4
ink
er
1 Product Overview
ESP8266 series wireless module is a series of cost-effective Wi-Fi SOC module
which can be developed independently. The series modules support the standard
IEEE802.11 b/g/n protocol, built-in complete TCP/IP protocol stack. Users can use
this series of modules to add networking capabilities to existing devices, or to build
standalone network controllers.
Ai-Thinker Technology can provide customers with a complete hardware,
software reference program, in order to shorten your product development cycle, for
your cost savings.
1.1 Product Features
The smallest 802.11b/g/n Wi-Fi SOC module
Using low-power 32-bit CPU, can also serve as the application
processor
-T
Clocked at up to 160MHz
Built-in 10 bit high precision ADC
Support UART/GPIO/IIC/PWM/ADC/HSPI and other interfaces
Integrated Wi-Fi MAC/BB/RF/PA/LNA
Supports multiple sleep modes, deep sleep current as low as 20uA
Embedded Lwip protocol stack
Support STA/AP/STA + AP work mode
Supports Smart Config/AirKiss key distribution network
Serial port rate up to 4Mbps
General AT commands can be used quickly
Support SDK secondary development
Supports serial local upgrade and remote firmware upgrade (FOTA)
Ai
1.2 Application Plan
Household appliances
Industrial wireless control
Wearable electronic products
Home automation
Infant Monitor
Wireless location sensing device
Smart socket/intelligent light
IP camera
Security ID tag
Mesh network
Sensor network
Wireless positioning system beacon
Copyright © 2017 Shenzhen Ai-Thinker Technology Co., Ltd All Rights Reserved
Page 1 of 23
ESP-01/07/12 Series Modules User's Manual V1.4
2.1 Package Size
ink
er
2 Module Interface
Ai
-T
Figure 2.1 ESP-01/ESP-01S pin dimensions
Figure 2.2 ESP-01M pin dimensions
Copyright © 2017 Shenzhen Ai-Thinker Technology Co., Ltd All Rights Reserved
Page 2 of 23
ink
er
ESP-01/07/12 Series Modules User's Manual V1.4
-T
Figure 2.3 ESP-01F pin dimensions
Ai
Figure 2.4 ESP-07 pin dimensions
Copyright © 2017 Shenzhen Ai-Thinker Technology Co., Ltd All Rights Reserved
Page 3 of 23
ink
er
ESP-01/07/12 Series Modules User's Manual V1.4
Ai
-T
Figure 2.5 ESP-07S pin dimensions
Figure 2.6 ESP-12F pin dimensions
Copyright © 2017 Shenzhen Ai-Thinker Technology Co., Ltd All Rights Reserved
Page 4 of 23
ink
er
ESP-01/07/12 Series Modules User's Manual V1.4
Ai
-T
Figure 2.7 ESP-12S pin dimensions
Figure 2.7 ESP-01E pin dimensions
Copyright © 2017 Shenzhen Ai-Thinker Technology Co., Ltd All Rights Reserved
Page 5 of 23
ESP-01/07/12 Series Modules User's Manual V1.4
Table 2.1 ESP series module size table
Width
(mm)
ESP-01
ESP-01S
24.7
14.4
ESP-01M
18
18
ESP-01F
11
10
ESP-07
21.2
16.0
ESP-07S
17.0
16.0
ESP-12F
24.0
16.0
ESP-12S
24.0
16.0
2.1 Pin Definition
Height
(mm
PAD size
(mm)
Pin
Spacing
(mm)
Shield
ed
Shell
(mm)
Thickness
(mm)
11.0
1.5 x 1.5
2.54
1.0±0.1
2.8±0.2
1.6
2.0
0.8±0.1
1.1
1.2
0.8±0.1
ink
er
Model
Length
(mm)
2.0±0.2
3.0±0.2
2.0
2.0
0.8±0.1
3.0±0.3
1 x 1.2
2.0
2.0
0.8±0.1
2.0
2.0
0.8±0.1
2.0
2.0
0.8±0.1
3.0±0.2
3.0±0.2
1 x 1.2
Table 2.2 ESP Series Module Pin Function Definitions
-T
Pin Number
Pin
Nam
01
01S
01M
01E
01F
07
07S
12S
18
18
16
RST Reset Pin, Active Low
16
16
ADC
EN
17
17
IO16
15
15
14
14
IO14 HSPI_CLK IR_T
I2C_SCL I2SI_WS
IO12 HSPI_MISO
Ai
12F
Remarks
AD conversiont, Input voltage
range 0~1V, the value range is
Chip Enabled Pin, Active High
Connect with RST pin to wake
up Deep Sleep
IO13 HSPI_MOSI; UART0_CTS
17
VCC Module power supply pin, the
voltage range of 3.0 ~ 3.6V
CS0 Flash chip select signal
10
11
11
11
MIS Slave Output Master Input
IO9 Gpio9 Only ESP-01M/01E Can
Copyright © 2017 Shenzhen Ai-Thinker Technology Co., Ltd All Rights Reserved
Page 6 of 23
ESP-01/07/12 Series Modules User's Manual V1.4
12
12
12
IO10 Gpio10,Only ESP-01M/01E Can
13
2/18
MOS Master Output Slave Input
SCL Clock
GND GND
10
11
10
10
12
13
13
13
14
15
ink
er
14
15
10
16
11
17
IO15 HSPI_CS U0_RTS
I2SO_BCK
IO2 U1_TXD I2C_SDA I2SO_WS
12
18
IO0
13
19
IO4
GPIO0 HSPI_MISO
I2SI_DATA
GPIO4
14
20
IO5
IR_R
15
21
RXD GPIO3
16
22
TXD GPIO1
ANT
I2SO_DATA
Only ESP-01F/01E Can
Note: Only GPIO4 and GPIO5 are low at boot time, the other GPIO are high.
2.2 Boot Mode
Table 2.3 Description of the ESP series module boot mode
CH_PD
(EN)
RST
GPIO15
GPIO0
GPIO2
TXD0
high
high
low
low
high
high
high
high
low
high
high
high
high
high
low
-T
Mode
Ai
Download
mode
Running
mode
Chip Test
mode
Copyright © 2017 Shenzhen Ai-Thinker Technology Co., Ltd All Rights Reserved
Page 7 of 23
ESP-01/07/12 Series Modules User's Manual V1.4
3 Electrical Characteristics
ink
er
3.1 Maximum Ratings
Table 3.1 Maximum Ratings
Rated value
Storage Temperature
Maximum Welding
Temperature
Supply Voltage
condition
Value
Unit
-40 ~ 90
250
IPC/JEDEC
J-STD-020
+3.0 ~ +3.6
3.2 Suggested Working Environment
Table 3.2 Recommended working environment
Work Environment
Name
Operating Temperature
VDD
Typ
Max
-20
20
85
3.0
3.3
3.6
-T
Supply Voltage
Min
Unit
3.3 Digital Port Features
Table 3.3 Digital Port Features
Port
Name
Min
Typ
Max
Unit
Input logic level low
VIL
-0.3
0.25 * VDD
Input logic level high
VIH
0.75 * VDD
VDD + 0.3
Output logic level low
VOL
0.1 * VDD
Output logic level
high
VOH
0.8 * VDD
Ai
Note: Unless otherwise specified, the test conditions are: VDD = 3.3 V and
temperature 20
3.4 Power Consumption
All measurements are made at the antenna interface without SAW filters.
Copyright © 2017 Shenzhen Ai-Thinker Technology Co., Ltd All Rights Reserved
Page 8 of 23
ESP-01/07/12 Series Modules User's Manual V1.4
All transmit data is based on a 90% duty cycle measured in the continuous firing
mode.
Mode
ink
er
Table 3.4 Power consumption
Min
Ty
Ma
Unit
Transmit 802.11b, CCK 11Mbps, POUT = +
17dBm
170
mA
Transmit 802.11g, OFDM 54Mbps, POUT = +
15dBm
140
mA
Transmit 802.11n, MCS7, POUT = + 13dBm
120
mA
Receive 802.11b, packet length 1024 bytes,
-80dBm
50
mA
Receive 802.11g, packet length 1024 bytes,
-70dBm
56
mA
Receive 802.11n, packet length 1024 bytes,
-65dBm
56
mA
Modem-Sleep
20
mA
mA
Deep-Sleep
20
uA
Power Off
uA
-T
Light-Sleep
Ai
Note: Modem-Sleep is used to require the CPU to remain in operation, such as PWM or I2S.
When there is no data transmission while maintaining a WiFi connection, power off the WiFi
Modem circuit according to the 802.11 standard (eg U-APSD). For example, in DTIM3, every
sleep 300mS, wake up 3mS receive AP Beacon package, etc., the overall average current of about
20mA.
Note : Light-Sleep for CPU can be suspended applications, such as WiFi switch. If there
is no data transmission while maintaining a WiFi connection, the WiFi Modem circuit can be
switched off and the CPU is powered down according to the 802.11 standard (eg U-APSD). For
example, at DTIM3, every sleep 300 ms, wake up 3 ms to receive AP's Beacon packets, etc., the
overall average current is about 2 mA.
Note: Deep-Sleep is used for applications that do not have to keep the WiFi connection for a
long time, such as a sensor that measures the temperature once every 100 seconds. Every 300 s
wake up after 0.3s - 1s connected to the AP to send data, the overall average current can be much
smaller than 2mA.
Copyright © 2017 Shenzhen Ai-Thinker Technology Co., Ltd All Rights Reserved
Page 9 of 23
ESP-01/07/12 Series Modules User's Manual V1.4
3.5 Transmit Power
Describe
802.11b@11Mbps
802.11g@54Mbps
802.11n@HT20, MCS7
ink
er
Table 3.5 RF parameters
Min
Typ
Max
Unit
14
16
18
dBm
12
14
16
dBm
11
13
15
dBm
3.6 Receive Sensitivity
Table 3.6 Receiving Sensitivity
Parameter
DSSS, 1 Mbps
CCK, 11 Mbps
6 Mbps (1/2 BPSK)
54 Mbps (3/4 64-QAM)
Min
Max
Unit
-95
dBm
-80
dBm
-88
dBm
-70
dBm
-67
dBm
Ai
-T
HT20, MCS7 (65 Mbps, 72.2 Mbps)
Typ
Copyright © 2017 Shenzhen Ai-Thinker Technology Co., Ltd All Rights Reserved
Page 10 of 23
ESP-01/07/12 Series Modules User's Manual V1.4
4 Hardware Guidance
ink
er
4.1 Typical Applications
Note: You can’t use USB to TTL 3.3V or 5V power supply, it is recommended
to use two dry batteries or after conversion through the LDO 3.3V, it is strongly
recommended to buy a new development board.
-T
Figure 4.1 Typical application of ESP-01
Ai
Figure 4.2 Typical application of ESP-01S
Figure 4.3 Typical application of ESP-01M
Copyright © 2017 Shenzhen Ai-Thinker Technology Co., Ltd All Rights Reserved
Page 11 of 23
ink
er
ESP-01/07/12 Series Modules User's Manual V1.4
-T
Figure 4.4 Typical application of ESP-01F
Ai
Figure 4.5 Typical application of ESP-07
Figure 4.6 Typical application of ESP-07S
Copyright © 2017 Shenzhen Ai-Thinker Technology Co., Ltd All Rights Reserved
Page 12 of 23
ink
er
ESP-01/07/12 Series Modules User's Manual V1.4
Figure 4.7 Typical application of ESP-12E/ESP-12F
-T
Figure 4.8 Typical application of ESP-12S
Ai
Figure 4.9 Typical application of ESP-01E
4.2 PCB Antenna Display Instructions
The ESP8266 series module can be soldered to the PCB board. In order to get
the best RF performance of the end product, please pay attention to the rational
Copyright © 2017 Shenzhen Ai-Thinker Technology Co., Ltd All Rights Reserved
Page 13 of 23
ESP-01/07/12 Series Modules User's Manual V1.4
design of the module and the placement of the antenna on the bottom plate according
Option 1 (recommended):
ink
er
to this guide.
Place the module along the edge of the PCB board, and the antenna is placed
outside the frame or along the board and the bottom is hollowed out;
Option 2:
The module placed along the PCB board side, the antenna placed along the
board and the bottom of the hollow;
Option 3:
Place the module along the board side of the board, the antenna placed along the
-T
board and the bottom are not copper.
Figure 4.7 ESP-12S antenna placement instructions
4.3 Module Peripheral Routing Instructions
The ESP8266 series modules integrates high-speed GPIO and peripheral
interfaces, which can cause severe switching noise. If some applications require high
power and EMI characteristics, it is recommended to connect 10 to 100 ohms in
series on digital I/O lines. This can suppress overshoot when switching power
Ai
supplies and make the signal smooth. Series resistance can also prevent electrostatic
discharge (ESD) to some extent.
Copyright © 2017 Shenzhen Ai-Thinker Technology Co., Ltd All Rights Reserved
Page 14 of 23
ESP-01/07/12 Series Modules User's Manual V1.4
ink
er
4.4 GPIO Level Conversion
Figure 4.8 Transistor level conversion
-T
4.5 Power Supply Reference Design
Figure 4.9 Power supply reference
Ai
4.6 ADC Supply Reference Design
Figure 4.10 ADC supply reference
Copyright © 2017 Shenzhen Ai-Thinker Technology Co., Ltd All Rights Reserved
Page 15 of 23
ESP-01/07/12 Series Modules User's Manual V1.4
ink
er
4.7 Automatically Download Reference Design
Figure 4.11 Automatically Download Reference Design
Ai
-T
4.8 Reflow oven temperature curve
Figure 4.12 Reflow furnace temperature curve
Copyright © 2017 Shenzhen Ai-Thinker Technology Co., Ltd All Rights Reserved
Page 16 of 23
ESP-01/07/12 Series Modules User's Manual V1.4
5 Usage Guide
ink
er
ESP8266 series module factory default built-in AT firmware, and the default
baud rate of 115200, can refer to 4.1 typical application diagram to build the
minimum system circuit, then the AT command operation.
Serial and network debugging tools download: http://wiki.ai-thinker.com/tools
5.1 Introduction To The Basic AT Command
This chapter only describes the common AT commands, please refer to
http://wiki.aithinker.com/esp8266/docs#at
5.1.1 AT
parameters
Description
Example
No
Test AT is OK
AT
OK
-T
5.1.2 AT+GMR
parameters
Description
Example
No
Returns the firmware version information
AT+GMR
AT version:1.2.0.0(Jul 1 2016 20:04:45)
SDK version:1.5.4.1(39cb9a32)
Ai-Thinker Technology Co. Ltd.
Dec 2 2016 14:21:16
OK
5.1.3 AT+RST
No
soft restart module
AT+RST
Ai
parameters
Description
Example
OK
Copyright © 2017 Shenzhen Ai-Thinker Technology Co., Ltd All Rights Reserved
Page 17 of 23
ESP-01/07/12 Series Modules User's Manual V1.4
5.1.4 AT+RESTORE
No
Reset the module to factory settings
AT+RESTORE
Example
OK
5.2 Use Examples
ink
er
parameters
Description
This section explains how to configure two modules through the serial port on
the PC side to communicate with each other over TCP/UDP. For more examples,
please refer to: http://wiki.ai-thinker.com/esp8266/examples/at_demo. Test, through
the PC side instead of one end of the module to establish the appropriate connection.
5.2.1 TCP Communication Test
TCP Server is in AP mode and TCP Client is Station mode.
-T
TCP Server Configuration
Ai-Thinker Technology Co. Ltd.
ready
AT+CWMODE=2
//configured for AP mode
OK
AT+CWSAP_DEF="TCP_Server","12345678",5,4
information
Ai
OK
AT+CIFSR
//Configure AP
//Query the local IP address
+CIFSR:APIP,"192.168.4.1"
+CIFSR:APMAC,"a2:20:a6:19:c7:0a"
OK
AT+CIPMUX=1
//open multiple links
Copyright © 2017 Shenzhen Ai-Thinker Technology Co., Ltd All Rights Reserved
Page 18 of 23
ESP-01/07/12 Series Modules User's Manual V1.4
OK
0,CONNECT
//There is a client connected to the server
+IPD,0,10:Ai-Thinker
AT+CIPSERVER=0
OK
0,CLOSED
//open the server
ink
er
OK
AT+CIPSERVER=1
//received 10 data (Ai-Thinker)
//Close the server
//TCP connection is off
TCP Client Configuration
Ai-Thinker Technology Co. Ltd.
ready
AT+CWMODE=1 //configured for station mode
//Connect to AP
-T
OK
AT+CWJAP_DEF="TCP_Server","12345678"
WIFI CONNECTED
WIFI GOT IP
OK
AT+CIFSR
//Query the local IP address
+CIFSR:STAIP,"192.168.4.2"
+CIFSR:STAMAC,"5c:cf:7f:91:8b:3b"
//open single link
Ai
OK
AT+CIPMUX=0
OK
AT+CIPSTART="TCP","192.168.4.1",333
//Connect to TCP server
CONNECT
OK
AT+CIPSEND=10 //send 10 bytes of data to the server side
Copyright © 2017 Shenzhen Ai-Thinker Technology Co., Ltd All Rights Reserved
Page 19 of 23
ESP-01/07/12 Series Modules User's Manual V1.4
SEND OK
CLOSED
ink
er
OK
//After the emergence of the symbol serial port to send
Ai-Thinker (without carriage return line)
Recv 10 bytes
//The serial port receives the data
//sent successfully
//TCP connection is closed
5.2.2 UDP Communication Test
One is in AP mode , the local port is 8001, and the other is Station mode. the
local port is 8002.
AP Configuration
Ai-Thinker Technology Co. Ltd.
ready
AT+CWMODE=2
//configured for AP mode
-T
OK
AT+CWSAP_DEF="TCP_Server","12345678",5,4
OK
AT+CIFSR
//AP information
//Query the local IP address
+CIFSR:APIP,"192.168.4.1"
+CIFSR:APMAC,"a2:20:a6:19:c7:0a"
OK
AT+CIPSTART="UDP","192.168.4.2",8002,8001,0
connection
//Open UDP
Ai
CONNECT
OK
+IPD,10:Ai-Thinker //received 10 data (Ai-Thinker)
AT+CIPSEND=10 //send 10 bytes of data to the server
OK
Copyright © 2017 Shenzhen Ai-Thinker Technology Co., Ltd All Rights Reserved
Page 20 of 23
ESP-01/07/12 Series Modules User's Manual V1.4
SEND OK
AT+CIPCLOSE
ink
er
//After the emergence of the symbol serial port to send
Ai-Thinker (without carriage return line)
Recv 10 bytes
//The serial port receives the data
//close the UDP connection
CLOSED
OK
Station Configuration
Ai-Thinker Technology Co. Ltd.
ready
AT+CWMODE=2
//configured for station mode
OK
AT+CWSAP_DEF="TCP_Server","12345678",5,4
//Query the local IP address
-T
OK
AT+CIFSR
//Connect to AP
+CIFSR:STAIP,"192.168.4.2"
+CIFSR:STAMAC,"5c:cf:7f:91:8b:3b"
OK
AT+CIPSTART="UDP","192.168.4.1",8001,8002,0 //Open UDP connection
CONNECT
OK
AT+CIPSEND=10 //send 10 bytes of data to the server
Ai
OK
//After the emergence of the symbol serial port to send
Ai-Thinker (without carriage return line)
Recv 10 bytes
//The serial port receives the data
SEND OK
Copyright © 2017 Shenzhen Ai-Thinker Technology Co., Ltd All Rights Reserved
Page 21 of 23
ESP-01/07/12 Series Modules User's Manual V1.4
CLOSED
OK
6 FAQ
ink
er
+IPD,10:Ai-Thinker //received 10 data (Ai-Thinker)
AT+CIPCLOSE //close the UDP connection
6.1 Garbage Instructions When Power Is On
ESP8266 chip itself supports 26MHz and 40MHz crystal, if the use of 40MHz
crystal, the default baud rate of 115200, if the use of 26MHz crystal, the UART0
power after the baud rate = 26 * 115200/40 = 74880, the letter can be ESP8266
Series modules are used 26MHz, because the general serial port tool does not support
the baud rate, so there will be printed on the garbled.
You can use the security serial interface assistant to configure the baud rate
74880 to view the startup information.
-T
Note: part of the USB to TTL does not support 74880 baud rate, the computer
comes with RS232 to TTL does not support 74880 baud rate, recommend the use of
FT232, CP2102, CH340 and other chips.
6.2 How To Shield The Power When The Garbled
U0TXD default power will be system printing, through the UART's internal pin
switching function, user_init () call system_uart_swap () function, the new U0TXD
change to GPIO15, U0RXD change to GPIO13, the hardware connection on the two
cited Feet can be serial communication.
Note: After the exchange, the download pin on the hardware is still the original
Ai
U0TXD and U0RXD.
6.3 Can’t Burn Normally
Refer to http://wiki.ai-thinker.com/esp_download to download, pay attention to
download before the module to ensure that the download mode.
Copyright © 2017 Shenzhen Ai-Thinker Technology Co., Ltd All Rights Reserved
Page 22 of 23
ESP-01/07/12 Series Modules User's Manual V1.4
6.4 SDK Development Environment
ink
er
Refer to http://wiki.ai-thinker.com/ai_ide_install to build the SDK development
environment.
6.5 Startup Information Description
Start, if the power and serial port connection is normal, then the baud rate 74880
to see the first sentence is as follows:
ets Jan 8 2013,rst cause:1, boot mode:(3,6)
The start and start modes of the module can be analyzed based on the print
information:
rst cause
1: Power restart
2: External reset
4: Hardware watchdog reset
-T
boot mode
The second in parentheses has no practical meaning, the first can refer to the
following table to start the information analysis:
Table 6.1 Startup Mode Description
Mode
Download Mode
Run mode
Ai
Value
GPIO0
GPIO2
GPIO15
7 Module Selection
model
ESP-01
Package
DIP-8
ESP-01S ESP-01M ESP-07
DIP-8
ESP-07S ESP-12F ESP-12S
SMD-18 SMD-16 SMD-16 SMD-22 SMD-16
Copyright © 2017 Shenzhen Ai-Thinker Technology Co., Ltd All Rights Reserved
Page 23 of 23
ESP-01/07/12 Series Modules User's Manual V1.4
Size(mm) 24.7*14.4 24.7*14.4
Flash size
8Mbit
8Mbit
Certificati
on
Antenna
PCB
PCB
Indicator TXD0
light
POWER
Available
IO
21.2*16.0 17.0*16.0 24.0*16.0 24.0*16.0
8Mbit
8Mbit
32Mbit
32Mbit
32Mbit
FCC/CE
FCC/CE
FCC/CE
PCB
Ceramic
IPEX
IPEX
PCB
PCB
GPIO2
GPIO2
POWER
GPIO2
GPIO2
GPIO2
11
ink
er
layer
18*18
For more selection information please see http://wiki.ai-thinker.com/esp8266 or
Ai
-T
contact us.
Copyright © 2017 Shenzhen Ai-Thinker Technology Co., Ltd All Rights Reserved
Page 24 of 23
ESP-01/07/12 Series Modules User's Manual V1.4
8 Contact US
ink
er
Official website: https://www.ai-thinker.com
Develop Wiki: http://wiki.ai-thinker.com
Official forum: http://bbs.ai-thinker.com
Sample purchase: https://anxinke.taobao.com
Business cooperation: sales@aithinker.com
Technical support: support@aithinker.com
Telephone: 0755-29162996
Company Address: 6/F, Block C2, Huafeng Industrial Park, Hangcheng Road,
-T
Bao'an Road, Baoan District, Shenzhen ,China
Ai
WeChat
Copyright © 2017 Shenzhen Ai-Thinker Technology Co., Ltd All Rights Reserved
AiSmart APP
Page 25 of 23

Source Exif Data:
File Type                       : PDF
File Type Extension             : pdf
MIME Type                       : application/pdf
PDF Version                     : 1.4
Linearized                      : No
Encryption                      : Standard V1.2 (40-bit)
User Access                     : (none)
Producer                        : PDF-XChange Printer 2012 (5.0 build 265) [Windows 8 Enterprise x64 (Build 9200)]
Author                          : 吕俊雄
Creator                         : 吕俊雄
Create Date                     : 2018:08:20 17:56:35+08:00
Page Count                      : 30
EXIF Metadata provided by EXIF.tools
FCC ID Filing: 2AHMR-ESP01F

Navigation menu