ESP8266-01S connected to Gizwits IoT platform
[Copy link]
To access the Gizwits IoT platform, you first need to burn the Gizwits firmware. You can download it for free on the official website and use it directly!
Download the corresponding firmware package
ESP8266-01s module enters burning mode connection diagram
GPIO0 is used for firmware burning mode, low level is burning mode, high level is running mode (default state)
ESP8266-01S USB-TTL Serial Port
3v3--------------3v3
GND--------------GND
TX----------------RX
RX----------------TX
RST---------------3V3
EN----------------3V3
GPIO0-------------GND
GPIO0 should be grounded in programming mode and left floating in normal mode
Just leave GPIO2 floating
Open the burning software
Select firmware package ESP8266-01S 8M flash Select the corresponding package
Because it is MCU development, DoNotChgBIN should be checked
Another one is the mode selection SPI MODE
The ESP8266-01S we use is from the brand of Anxinke
Here you can select QIO or DOUT (already tested)
Other configurations are as shown in the figure, then click START to start downloading
Download completed
After the download is complete, unplug the GND connected to GPIO0 to enter normal mode, then close the firmware software and perform network configuration.
1. WIFI configuration network
Download the Serial Port Debug Assistant from the Gizwits website
After downloading, double-click the exe file to enter the application
Follow the sequence
The key and secret above are in the personal project created on the Gizwits official website
The first time you configure the network, you need to enter the SoftAP mode first, and then the module will automatically enter the Airlink mode after the connection is successful. Do not enter the Airlink mode directly for the first time, otherwise it will always be "Configuration timeout (others say)
Connect your phone to ESP8266's wireless (name: XPG-GAgent-xxxx; password: 123456789)
Enter the App - One-click network configuration - Enter the name and password of your home router
The router should use 2.4GHz
Select the model as Espressif and then configure it with one click
If the connection fails for the first time, you will be redirected to the following page, then click on "Completed" and select the discovered device. The second connection will be successful.
Finally enter the configuration success page
GAgent Protocol
GAgent is mainly used for data forwarding and is a data exchange bridge between device data, Gizwits Cloud, and application terminals (APP). GAgent can be transplanted to WiFi modules, GPRS modules, PC terminals, etc.
We flashed this GAgent firmware to ESP8266-01S
Configuration and access to the network: Connect the device to the router. There are three main ways to configure the network: airkiss (WeChat), Airlink, and SoftAP. (1) Airlink mode: When the device is in this mode, it will continuously receive specifically encoded WIFI broadcast packets. After the mobile phone connects to an available WIFI network, it will broadcast the encoded SSID and password of the WIFI network through the specified App. After receiving it, the device will automatically try to connect to this WIFI network. If the connection is successful, the configuration is complete.
(2) SoftAP mode: When the device is in AP mode, it is equivalent to a hotspot. The mobile phone can directly connect to the device and send the available WIFI network SSID and password to the device. After receiving the configuration information, the device will automatically try to connect to the router. If the connection is successful, it will automatically switch to the mode used by Zhengcheng.
This mode allows ESP8266-01S to connect to the server of the corresponding data point in the set network. After ESP8266-01S is connected to the corresponding network, it can upload the data collected by MCU to the server, and can also transmit the control instructions of the server to MCU, thereby controlling various peripherals. The mobile phone APP is directly connected to the Gizwits Cloud server and can be controlled through any network 4G and WIFI. After the mobile phone APP is bound to this device, the device is connected to the corresponding WIFI, the device is online, and then the control event can be sent and data received and displayed through the control app.
|