Use espressif AT COMMAND for esp32



  • When i used the AT command first time,i found it easy to been plagued with some problems. So i make a simple guide,hope it is helpful for everyone.
    Guide is in Windows.For your reference only.
    All the things following are based on espressif`s ESP32 AT firmware.Download here:http://espressif.com/en/support/download/at
    More details are in documentation:esp32_at_instruction_set_and_examples_en.pdf
    Esp32 download tools:http://espressif.com/en/support/download/other-tools

    First erase the flash:
    This way is necessary because it can avoid errors.
    Download a bin file:https://github.com/MHEtLive/ESP32-MINI-KIT/tree/master/AT/erase_flash_bins
    Here we can call this bin file as "erase-file".It can be used for erase the flash when being downloaded to esp32.
    Use esp-download-tool to deal with this "erase-file" as the fllowing guide picture.

    0_1501504435781_图片1.png

    Start and done!

    Then Download ESP32 AT firmware:
    Use esp-download-tool to deal with the "ESP32 AT firmware" as the fllowing guide picture after erasing flash.Make sure the address and config is correct.
    Espressif`s download.config file show"--flash_mode dio --flash_freq 40m --flash_size detect //0x1000 bootloader/bootloader.bin //0xf000 phy_init_data.bin// 0x100000 esp-at.bin// 0x8000 partitions_at.bin".

    0_1501504473231_图片2.png

    Start and done!

    Test AT-Command.
    ***notice:***When testing, serial port sending and receiving command with ESP32`s UART2 , not UART0 which used for downloading firmware, so obviously can't use the USB port on dev-board for the AT command, you should use an external serial port tool.Pin connections are as follows:

    0_1501504493233_图片3.png

    Use sscom or minicom to see the imformation during test.After connecting,open com and RST the esp32, you can see "ready" after a while.

    0_1501504508506_图片4.png

    and AT+RST

    0_1501504516636_图片5.png

    AT+GMR

    0_1501504526339_图片6.png

    Now,you can see you have been into AT-Command Mode.Detailed AT development process and commands are shown in PDF and the espressif`s website.Enjoy!


Log in to reply