[Engineer is free] Super simple OTA upgrade of ESP8266 series and ESP32 series modules from Anxin - I heard that 70% of people don't know


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:
insert image description here
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:

2. Firmware burning

      Use: flash_download_tooltool to burn.

1. ESP8266 programming configuration

insert image description here

2. ESP32 programming configuration

insert image description here

3. OTA upgrade test

      According to the following instructions:

Created with Raphaël 2.3.0 开始 AT+RESTORE AT+CWMODE=3 AT+CWSAP="pos_softap","",11,0,3 AT+CIPMUX=1 AT+WEBSERVER=1,80,25 结束

Then connect the computer to the AP of ESP8266, enter 192.168.4.1to enter the web page, and you can perform OTA upgrade:

insert image description here

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]

Guess you like

Origin blog.csdn.net/Boantong_/article/details/121789377