ESP8266 AT-Command firmware

From ElectroDragon
(Redirected from ESP8266 AT Commands)
Jump to navigation Jump to search


Flashing combind bin.png

Upload the combined bin file to 0x0000, see the image.

Firmware Description -
File:AT V1.1 on ESP8266 NONOS SDK May 20, 2016 official espressif - ai-thinker mod 1.3 version -
File:At firmware 1.54-201606 -

AI Mod Added Commands

description Header text return
Set GPIO value, 12 is gpio, 1 is set value AT+CIOWRITE=12,1 OK
Read GPIO value, 13 is gpio AT+CIOREAD=13 1:HIGH -
Read ADC AT+CIOADC Example
Set serial baud:

AT+CIOBAUD =<baudrate>,<databits>,<stopbits>,<parity>,<flow control>

  • AT+CIOBAUD =115200
  • AT+CIOBAUD =115200,8
  • AT+CIOBAUD =115200,8,1,0,0
Check rams: AT+CSYSHEAP
smart start: AT+CWSMARTSTART =<method>, AT+CWSMARTSTART to stop it * 0: use AI-LINK
  • 1: use ESP-TOUCH
  • 2: use AIR-KISS

Espressif AT Commands Firmware

Flashing AT 0.6.png


  • You can find the bin file at \ESP8266_NONOS_SDK_V1.5.2_16_01_29\esp_iot_sdk_v1.5.2\bin\at
Options Position
Flash size 32Mbit 512KB+512KB
boot_v1.2+.bin 0x00000 0x01000
esp_init_data_default.bin 0x3fc000 (optional)
blank.bin 0x7e000 & 0x3fe000

Use Guide of AT Commands

At Commands Header text Header text
Reset AT+RST restart the module, received some strange data, and "ready"
Set Work Mode AP+STA AT+CWMODE=3 change the working mode to 3, AP+STA, only use the most versatile mode 3, AT+RST may be necessary when this is done
Join Network AT+CWLAP search available wifi spot
Join Network AT+CWJAP=you ssid, password join my mercury router spot, e.g. AT+CWJAP=“TP-LINK_4226”,“1234567890”, password length must be correct, remove all the empty space in the command
Join Network AT+CWJAP? check if connected successfully, or use AT+CWJAP=?, or use AT+CIFSR to find your ip address
Cloud Update AT+GMR check current version, output AT+GMR AT version: 3 2015 19:35:49) / SDK version:1.2.0 / Ai-Thinker Technology Co.,Ltd. / Build:1.2.0.A Aug 7 2015 17:21:44 / OK
TCP Client AT+CIPMUX=1 turn on multiple connection
TCP Client AT+CIPSTART=4,"TCP","192,168.1.104",9999 connect to remote TCP server (the PC)
TCP Client AT+CIPMODE=1 optionally enter into data transmission mode
TCP Client AT+CIPSEND=4,5 send data via channel 4, 5 bytes length (see socket test result below, only "elect" received), link will be "unlink" when no data go through
TCP Server AT+CIPSERVER=1,9999 setup TCP server, on port 9999, 1 means enable
TCP Server AT+CIFSR check module IP address
  • Test, PC as a TCP client connect to module using socket test, send data
  • Socket test running result, In the sockettest, do not tick the "secure" in TCP client, it causes unstable