Article directory
Notice
This article really does not belong to the headline party. It is said that 70% of people do not know because many people ignore an instruction:
AT+WEBSERVER
If you have read the previous article " [Engineer is free] Anxin can realize web distribution network with AT commands of ESP8266 series and ESP32 series modules - one more network distribution method ", students must have some understanding. At the end of the article, We mentioned the OTA question about this command:
There are some prerequisites for the function of this OTA:
- The OTA file uses the bin of the AT firmware
- The OTA of ESP32 and ESP8266 should be distinct
- This function can only be used for version upgrade, not for version replacement, such as upgrading to non-AT firmware
- Only LAN OTA upgrade
After understanding, we will start this simple OTA upgrade of fried chicken
1. Upgrade preparation
For experiments, you always need some experimental equipment:
- Essence ESP8266 (2M Flash) module/development board or ESP32 module or development board - this article uses Essence ESP-12S development board
- Serial debugging tool
- Web-enabled AT firmware - can be downloaded from the link below
- The OTA file required for the upgrade, the AT version is greater than the current version - you need to compile, or download the test file below
- ESP8266 AT Web OTA Test Firmware: https://docs.ai-thinker.com/_media/esp8266_rxio3_txio1_at_web_ota.rar
- ESP32 AT Web OTA test firmware: https://docs.ai-thinker.com/_media/esp32_at_web_rx16_tx17_ota.rar
2. Firmware burning
Use: flash_download_tool
tool to burn.
1. ESP8266 programming configuration
2. ESP32 programming configuration
3. OTA upgrade test
According to the following instructions:
Then connect the computer to the AP of ESP8266, enter 192.168.4.1
to enter the web page, and you can perform OTA upgrade:
4. Frequently Asked Questions
1. When OTA uploads a file, it prompts that the file is too large
Q: The uploaded file is not an OTA file, you can re-upload the OTA file
2. OTA upgrade failed
Q: The currently running AT version of the mod is greater than the OTA version
5. Links
Official website: https://www.ai-thinker.com
Development of DOCS: https://docs.ai-thinker.com
Official forum: http://bbs.ai-thinker.com
Technical support: [email protected]