Last updated
Last updated
ESP8266 series module is a series of low-power UART-WiFi chip modules based on Loxin ESP8266EX developed by Shenzhen Ansinko Technology Co., Ltd, which can be conveniently used for secondary development and access to cloud services to achieve mobile phone 3/4G global anytime-anywhere control and accelerate product prototyping.
The module's core processor, ESP8266, integrates the industry-leading Tensilica L106 ultra-low-power 32-bit micro MCU with 16-bit lite mode in a smaller package with 80 MHz and 160 MHz main frequency support, RTOS support, integrated Wi-Fi MAC/ BB/RF/PA/LNA, and on-board antenna. It supports standard IEEE802.11 b/g/n protocols and complete TCP/IP stack. Users can use the module to add networking capabilities to existing devices or build standalone network controllers.
The ESP8266 is a high-performance wireless SoC that offers maximum utility at minimum cost, providing unlimited possibilities for embedding Wi-Fi functionality into other systems.
802.11 b/g/n
Built-in Tensilica L106 ultra-low-power 32-bit micro MCU, 80 MHz and 160 MHz, RTOS support
Built-in 10 bit high precision ADC
Built-in TCP/IP stack
Built-in TR switch, balun, LNA, power amplifier and matching network
Built-in PLL, regulator and power management components, +18 dBm output power in 802.11b mode
A-MPDU, A-MSDU aggregation and 0.4 s guard interval
Wi-Fi @ 2.4 GHz with WPA/WPA2 security mode support
Support AT local upgrade and cloud OTA upgrade
Supports STA/AP/STA+AP operating modes Support
Smart Config function (including Android and IOS devices)
HSPI, UART, I2C, I2S, IR Remote Control, PWM, GPIO
Deep sleep hold current of 20 uA, shutdown current less than 5 uA
Wake up, connect and pass packets within 2 ms
Standby power consumption less than 1.0 mW (DTIM3)
Operating temperature range: see specifications for details
Connect the WIFI module to the computer with USB-TTL, install the driver, install the serial port debugging assistant and network debugging assistant, and use the Wildfire multifunctional debugging assistant for this process.
Serial debugging assistant to set the serial port parameters, see Figure 1 below
AT: test AT development mode start
AT+GMR :View the firmware version information
AT+CWMODE=1: set WIFI application mode 1Station mode 2 AP mode 3 AP cum Station mode, AP means as access point, station means as client station
AT+RST: Reboot
AT+CWLAP: list the available access points
AT+CWJAP="TP-LINK_6FFA", "123456789": join access point
AT+CIFSR :Get local IP address
PC connects to the router, the network debugging assistant uses the IP address of the computer to create a server, the IP settings are shown in Figure 2 below;
AT+CIPSTART="TCP", "192.168.101.110",8080 :Establish TCP connection with the server.
AT+CIPMODE=1: set up transmitting mode (that is, you can send all the time, otherwise you have to set up the number of bytes to be sent with AT+CIPSEND=4; as a server mode, you can't use the transmitting mode)
AT+CIPSEND: start the pass-through, serial debugging assistant sends data, network debugging assistant sends data.
Receive data format: serial tuning: +IPD,n:xxxxxxxxxxxx Received data Length is n bytes, xxxxxx is data; network tuning: [Tcp client 192.168.1.108 2872] 123, TCP mode, client IP address, port number, 123 is data;
End pass-through: there is a programme to enter 3 + signs to exit pass-through, I didn't implement it, I directly power off the module, after a few minutes it can be reset;
AT+CWMODE=1 :Set WIFI application mode 1Station mode 2 AP mode 3 AP cum Station mode, AP means as access point, station means as client station
AT+RST: Reboot
AT+CWJAP="TP-LINK_6FFA", "123456789": join access point
PC connects to the router, the network debugging assistant uses the IP address of the computer to create a server, IP settings see Figure 2 above;
AT+CIPSTART="TCP", "192.168.101.110",8080 :Establish TCP connection with the server.
AT+CIPSEND=4 :Send four bytes of data, input the four bytes to be sent, no need to enter.
If the number of bytes sent exceeds the set length n of the command, it will respond busy and send the first n bytes of the data, and respond SEND OK when finished. The nettune can be sent over arbitrarily.
AT+CWMODE=2 :Set WIFI application mode 1 Station mode 2 AP mode 3 AP cum Station mode, AP means as access point, station means as client station
AT+RST: Reboot
AT+CWSAP="ESP_664843", "123456789", "11,3,4,0", "CWSAP="ESP_664843", "123456789", "123456789", "123456789", "123456789",11,3,4,0".
AT+CWSAP="ESP_664843", "123456789",11,3 : modify access point name, password and 3 is encryption mode. 11 is channel number, need to reboot after modify, not used, not look into.
AT+CIPMUX=1:Start multiple connections.
AT+CIPSERVER=1:set up server, default port 333, tried it, can't change it.
AT+CIPSTO=300: set server timeout time 0~28800, unit is s, over time will kick client off.
AT+CIFSR :Get local IP address for setting network assistant, there are two kinds of display: AP mode, AP and Station mode.
First of all, PC should be connected to the WIFI module hotspot, PC network debugging assistant as a client connected to the AP, setup see Figure 3 below.
AT+CWLIF: view the accessed devices.
AT+CIPSEND=4: (command report error, serial can not be sent, network can be sent)
Receive data: serial tuning can receive data from net tuning assistant, net tuning assistant can't receive serial tuning data.