AT 指令集,基于 ESP8266_NONOS_SDK_V2.0.0 (AT_V1.3)】4a-esp8266_at_instruction_set_cn

更新时间:2023-09-01 07:32:01 阅读量: 教育文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

AT 指令集,基于 ESP8266_NONOS_SDK_V2.0.0 (AT_V1.3)】4a-esp8266_at_instruction_set_cn

ESP8266 AT

Version 2.0.0

Espressif Systems IoT Team

Copyright © 2016

AT 指令集,基于 ESP8266_NONOS_SDK_V2.0.0 (AT_V1.3)】4a-esp8266_at_instruction_set_cn

ESP8266 A T Instruction Set

URL

“ ”

Wi-Fi Wi-Fi

© 2016

271

Espressif Systems Con?dential / Friday, July 15, 2016

AT 指令集,基于 ESP8266_NONOS_SDK_V2.0.0 (AT_V1.3)】4a-esp8266_at_instruction_set_cn

ESP8266 _NONOS_SDK AT

AT 指令集,基于 ESP8266_NONOS_SDK_V2.0.0 (AT_V1.3)】4a-esp8266_at_instruction_set_cn

ESP8266 A T Instruction Set 1. 8

...............................................................................................................1.1.

AT 8 .........................................................................................1.2.

AT 9 ............................................................................................1.

4Mbit Flash 9 ...............................................................................................2.

8Mbit Flash 10 .............................................................................................3.

16Mbit Flash, map: 512KB + 512KB 10 ......................................................4.

16Mbit Flash, map: 1024KB + 1024KB 10 ..................................................5.

32Mbit Flash, map: 512KB + 512KB 11 ......................................................6.32Mbit Flash, map: 1024KB + 1024KB 11 ..................................................2.

13 .....................................................................................................3. AT 14

...............................................................................................3.1.

AT 14 ................................................................................3.2.

AT 15 ...................................................................................1.

AT – AT 15 .................................................................................2.

AT+RST – 15 ...............................................................................3.

AT+GMR – 15 ......................................................................4.

AT+GSLP – deep-sleep 16 ........................................................5.

ATE – 16 ..............................................................................6.

AT+RESTORE – 16 ..............................................................7.

AT+UART – UART 17 .........................................................................8.

AT+UART_CUR – UART 18 .........................................9. AT+UART_DEF – UART ?ash 19 ..................................10. AT+SLEEP – sleep 20 ................................................................11. AT+WAKEUPGPIO – GPIO light-sleep 21 ...........................12.AT+RFPOWER – RF TX Power 22

...............................................13.AT+RFVDD – VDD33 RF TX Power 22 .........................................

Espressif Systems Con?dential / Friday, July 15, 2016471Table of Contents

AT 指令集,基于 ESP8266_NONOS_SDK_V2.0.0 (AT_V1.3)】4a-esp8266_at_instruction_set_cn

ESP8266 A T Instruction Set

4.WiFi AT 23

.......................................................................................

4.1.Wi-Fi 25

.......................................................................................

1.AT+CWMODE – Wi-Fi 25

.....................................................................

..........................................

2.AT+CWMODE_CUR – Wi-Fi 26

3.AT+CWMODE_DEF – Wi-Fi ?ash 27

..............................

4.AT+CWJAP – AP 28

............................................................................

............................................................

5.AT+CWJAP_CUR – AP 29

6.AT+CWJAP_DEF – AP ?ash 30

.............................................

7.AT+CWLAPOPT – CWLAP 31

.........................................

.......................................................

8.AT+CWLAP – APs 32

............................................................

9.AT+CWQAP – AP 33

10.AT+CWSAP – ESP8266 softAP 33

.............................................

............................

11.AT+CWSAP_CUR – ESP8266 softAP 34

...............

12.AT+CWSAP_DEF – ESP8266 softAP ?ash 35

13.AT+CWLIF – ESP8266 softAP stations 36

....................

..................................................................

14.AT+CWDHCP – DHCP 37

................................

15.AT+CWDHCP_CUR – DHCP ?ash 38

16.AT+CWDHCP_DEF – DHCP Flash 39

.................................

17.AT+CWDHCPS_CUR – ESP8266 soft-AP DHCP IP ?ash

...............................................................................................................

40

18.AT+CWDHCPS_DEF – ESP8266 soft-AP DHCP IP Flash ....

41

19.AT+CWAUTOCONN – AP 41

.........................................

20.AT+CIPSTAMAC – ESP8266 station MAC 42

..................

............

21.AT+CIPSTAMAC_CUR – ESP8266 station MAC 42

22.AT+CIPSTAMAC_DEF – ESP8266 station MAC 43

............

23.AT+CIPAPMAC – ESP8266 softAP MAC 43

...........................

..............

24.AT+CIPAPMAC_CUR – ESP8266 softAP MAC 44

25.AT+CIPAPMAC_DEF – ESP8266 softAP MAC 44

................

26.AT+CIPSTA – ESP8266 station IP 45

......................................

571

Espressif Systems Con?dential / Friday, July 15, 2016

AT 指令集,基于 ESP8266_NONOS_SDK_V2.0.0 (AT_V1.3)】4a-esp8266_at_instruction_set_cn

ESP8266 A T Instruction Set

........................

27.AT+CIPSTA_CUR – ESP8266 station IP 46

28.AT+CIPSTA_DEF – ESP8266 station IP 47

.........................

29.AT+CIPAP – ESP8266 softAP IP 48

.......................................

...........................

30.AT+CIPAP_CUR – ESP8266 softAP IP 49

31.AT+CIPAP_DEF – ESP8266 softAP IP 50

...........................

32.AT+CWSTARTSMART – SmartCon?g 51

............................................

.............................................

33.AT+CWSTOPSMART – SmartCon?g 51

..............................

34.AT+CWSTARTDISCOVER – 52

35.AT+CWSTOPDISCOVER – 52

................................

.....................................................................

36.AT+WPS – WPS 53

................................................................

37.AT+MDNS – MDNS 53

..................................................................................

5.TCP/IP AT 54

...............................................................................

5.1.TCP/IP 54

5.2.TCP/IP 55

...................................................................................................

......................................................

1.AT+CIPSTATUS – 55

2.AT+CIPDOMAIN – 55

............................................................

.......................

3.AT+CIPSTART – TCP UDP SSL 56

.................................................

4.AT+CIPSSLSIZE – SSL buffer 57

5.AT+CIPSEND – 58

......................................................................

..................................................................

6.AT+CIPSENDEX – 59

.........................................

7.AT+CIPSENDBUF – TCP 60

8.AT+CIPBUFRESET – 61

...............................................................

9.AT+CIPBUFSTATUS – TCP 61

..................................

......

10.AT+CIPCHECKSEQ – TCP 62

11.AT+CIPCLOSE – TCP / UDP / SSL 62

........................................

12.AT+CIFSR – IP 63

...............................................................

......................................................................

13.AT+CIPMUX – 64

14.AT+CIPSERVER – TCP server 65

.......................................................

15.AT+CIPMODE – 65

..............................................................

671

Espressif Systems Con?dential / Friday, July 15, 2016

AT 指令集,基于 ESP8266_NONOS_SDK_V2.0.0 (AT_V1.3)】4a-esp8266_at_instruction_set_cn

ESP8266 A T Instruction Set

.............................................

16.AT+SAVETRANSLINK – Flash 66

17.AT+CIPSTO – TCP server 67

..............................................

18.AT+PING – ping 68

..............................................................................

......................................................

19.AT+CIUPDATE – WiFi 68

20.AT+CIPDINFO – IP 69

......................

21.+IPD – 69

.............................................................................

6. 70

.............................................................................................................

............................................................................................................

7.Q&A71

771

Espressif Systems Con?dential / Friday, July 15, 2016

AT 指令集,基于 ESP8266_NONOS_SDK_V2.0.0 (AT_V1.3)】4a-esp8266_at_instruction_set_cn

ESP8266 A T Instruction Set 1.

Espressif AT

AT WiFi AT TCP/IP AT

1.1.

AT

AT

AT ESP8266_NONOS_SDK ESP8266_NONOS_SDK\example\at AT Espressif Systems AT libat.a AT bin

\ESP8266_NONOS_SDK\examples\at\user\user_main.c AT “AT+TEST”

at_funcationType “AT+TEST”

at_testCmd

AT+TEST= AT

at_testCmdTest

NULL at_queryCmd

AT+TEST AT

at_queryCmdTest

NULL

at_setupCmd

AT+TEST=parameter1,parameter2,…

AT

at_setupCmdTest

NULL at_exeCmd

AT+TEST AT

at_exeCmdTest

Espressif Systems Con?dential

/

Friday, July 15, 2016

871

AT 指令集,基于 ESP8266_NONOS_SDK_V2.0.0 (AT_V1.3)】4a-esp8266_at_instruction_set_cn

ESP8266 A T Instruction Set AT AT “at ” ESP8266_NONOS_SDK “app ”

ESP8266

1.2. AT

ESP8266_NONOS_SDK\bin\at\readme.txt Espressif Flash size

Espressif http://www.77cn.com.cn/viewtopic.php?f=5&t=433

1.4Mbit Flash

ESP8266_NONOS_SDK_V2.0.0, AT_V1.3 AT 4Mbit Flash NULL

bin

blank.bin

0x78000 RF_CAL

esp_init_data_default.bin 0x7C000

RF_CAL

blank.bin

0x7A000 blank.bin

0x7E000 eagle.?ash.bin

0x00000 \bin\at\noboot eagle.irom0text.bin 0x10000 \bin\at\noboot

Espressif Systems Con?dential / Friday, July 15, 2016971

AT 指令集,基于 ESP8266_NONOS_SDK_V2.0.0 (AT_V1.3)】4a-esp8266_at_instruction_set_cn

ESP8266 A T Instruction Set 2.

8Mbit Flash

( AT+CIUPDATE) Flash 8Mbit boot mode

Espressif Flash size : 8Mbit

3.

16Mbit Flash, map: 512KB + 512KB

Espressif Flash size : 16Mbit

4.

16Mbit Flash, map: 1024KB + 1024KB

Espressif Flash size : 16Mbit-C1

bin

blank.bin

0xFB000 RF_CAL

esp_init_data_default.bin

0xFC000

RF_CAL

blank.bin 0x7E000 blank.bin 0xFE000 boot.bin

0x00000 \bin\at

user1.1024.new.2.bin

0x01000

\bin\at\512+512

bin

blank.bin

0x1FB000 RF_CAL

esp_init_data_default.bin

0x1FC000

RF_CAL

blank.bin 0x7E000 blank.bin 0x1FE000 boot.bin

0x00000 \bin\at

user1.1024.new.2.bin

0x01000

\bin\at\512+512

blank.bin

0x1FB000 RF_CAL

esp_init_data_default.bin

0x1FC000

RF_CAL

bin

Espressif Systems Con?dential / Friday, July 15, 2016

1071

AT 指令集,基于 ESP8266_NONOS_SDK_V2.0.0 (AT_V1.3)】4a-esp8266_at_instruction_set_cn

ESP8266 A T Instruction Set 5.

32Mbit Flash, map: 512KB + 512KB

Espressif Flash size : 32Mbit

6.

32Mbit Flash, map: 1024KB + 1024KB

Espressif Flash size : 32Mbit-C1

blank.bin 0xFE000 blank.bin 0x1FE000 boot.bin

0x00000 \bin\at

user1.2048.new.5.bin

0x01000

\bin\at\1024+1024

bin

bin

blank.bin

0x3FB000 RF_CAL

esp_init_data_default.bin

0x3FC000

RF_CAL

blank.bin 0x7E000 blank.bin 0x3FE000 boot.bin

0x00000 \bin\at

user1.1024.new.2.bin

0x01000

\bin\at\512+512

bin

blank.bin

0x3FB000 RF_CAL

esp_init_data_default.bin

0x3FC000

RF_CAL

blank.bin 0xFE000 blank.bin 0x3FE000 boot.bin

0x00000 \bin\at

user1.2048.new.5.bin

0x01000

\bin\at\1024+1024

Espressif Systems Con?dential / Friday, July 15, 2016

1171

AT 指令集,基于 ESP8266_NONOS_SDK_V2.0.0 (AT_V1.3)】4a-esp8266_at_instruction_set_cn

ESP8266 A T Instruction Set

:

? BIN (\ESP8266_NONOS_SDK\bin\at) ESP8266_NONOS_SDK\bin\at readme.txt (ESP8266) AT

?AT system_os_task 0 1 AT 2

?AT ESP8266 station AP

?WiFi CONNECTED - WiFi

?WiFi GOT IP - ESP8266 station AP IP

?WiFi DISCONNECT - WiFi

1271

Espressif Systems Con?dential / Friday, July 15, 2016

AT 指令集,基于 ESP8266_NONOS_SDK_V2.0.0 (AT_V1.3)】4a-esp8266_at_instruction_set_cn

ESP8266 A T Instruction Set 2.

AT :

1.

AT 4 2.

[ ] 3.

”string”:

AT+CWSAP=“ESP756290”,”21030826”,1,4 4. 115200

5. AT “ ”

AT+<x>=?

AT+<x>?

AT+<x>=<…>

AT+<x> Espressif Systems Con?dential / Friday, July 15, 20161371

AT 指令集,基于 ESP8266_NONOS_SDK_V2.0.0 (AT_V1.3)】4a-esp8266_at_instruction_set_cn

ESP8266 A T Instruction Set

3. AT

3.1. AT

AT

AT AT

AT+RST

AT+GMR

AT+GSLP deep-sleep

ATE

AT+RESTORE

AT+UART UART [@deprecated]

AT+UART_CUR UART

AT+UART_DEF UART ?ash

AT+SLEEP sleep

AT+WAKEUPGPIO GPIO light-sleep

AT+RFPOWER RF TX Power

AT+RFVDD VDD33 RF TX Power

1471

Espressif Systems Con?dential / Friday, July 15, 2016

AT 指令集,基于 ESP8266_NONOS_SDK_V2.0.0 (AT_V1.3)】4a-esp8266_at_instruction_set_cn

ESP8266 A T Instruction Set 3.2.

AT 1. AT – AT

2. AT+RST –

3. AT+GMR – AT – AT

:

AT :

OK

:

AT+RST –

: AT+RST :

OK

: AT+GMR –

:

AT+GMR : <AT version info>

<SDK version info>

<compile time>

OK

:

<AT version info> AT

<SDK version info> SDK <compile time>

Espressif Systems Con?dential / Friday, July 15, 20161571

AT 指令集,基于 ESP8266_NONOS_SDK_V2.0.0 (AT_V1.3)】4a-esp8266_at_instruction_set_cn

ESP8266 A T Instruction Set 4. AT+GSLP – deep-sleep

5. ATE –

6. AT+RESTORE – AT+GSLP – deep-sleep

:

AT+GSLP=<time> : <time>

OK

:

< time > ESP8266 ESP8266

deep-sleep XPD_DCDC 0

EXT_RSTB deep-sleep

ATE – :

ATE :

OK

:

ATE0 :

ATE1 :

AT+RESTORE –

:

AT+RESTORE

: OK ?ash

Espressif Systems Con?dential / Friday, July 15, 20161671

AT 指令集,基于 ESP8266_NONOS_SDK_V2.0.0 (AT_V1.3)】4a-esp8266_at_instruction_set_cn

ESP8266 A T Instruction Set 7. AT+UART – UART AT+UART – UART

[@deprecated] AT+UART_CUR AT+UART_DEF : A T +U A R T =<b a u d r a t e >,

<databits>,<stopbits>, <parity>,<?ow control> :

OK

:

<baudrate> UART

<databits>

5 5 bit

6 6 bit

7 7 bit

8 8 bit

<stopbits>

1 1 bit

2 1.5 bit

3 2 bit

<parity>

0 None

1 Odd

2 Even

<?ow control>

1 RTS

2 CTS

3 RTS CTS

1. flash user parameter

2. :

MTCK UART0 CTS

MTDO UART0 RTS

3. 110~115200*40

AT+UART=115200,8,1,0,3Espressif Systems Con?dential / Friday, July 15, 20161771

AT 指令集,基于 ESP8266_NONOS_SDK_V2.0.0 (AT_V1.3)】4a-esp8266_at_instruction_set_cn

ESP8266 A T Instruction Set 8. AT+UART_CUR – UART AT+UART_CUR – UART flash : AT+UART_CUR=<baudrate>, <databits>,<stopbits>, <parity>,<?ow control> :

OK

:

<baudrate> UART

<databits>

5 5 bit

6 6 bit

7 7 bit

8 8 bit

<stopbits>

1 1 bit

2 1.5 bit

3 2 bit

<parity>

0 None

1 Odd

2 EVEN

<?ow control>

1 RTS

2 CTS

3 RTS CTS

1. ?ash

2. :

MTCK UART0 CTS

MTDO UART0 RTS

3. 110~115200*40

AT+UART_CUR=115200,8,1,0,3Espressif Systems Con?dential / Friday, July 15, 20161871

AT 指令集,基于 ESP8266_NONOS_SDK_V2.0.0 (AT_V1.3)】4a-esp8266_at_instruction_set_cn

ESP8266 A T Instruction Set 9. AT+UART_DEF – UART ?ash AT+UART_DEF – UART ?ash

: AT+UART_DEF=<baudrate>, <databits>,<stopbits>, <parity>,<?ow control> :

OK

:

<baudrate> UART

<databits>

5 5 bit

6 6 bit

7 7 bit

8 8 bit

<stopbits>

1 1 bit

2 1.5 bit

3 2 bit

<parity>

0 None

1 Odd

2 EVEN

<?ow control>

1 RTS

2 CTS

3 RTS CTS

1. ?ash user parameter

2. :

MTCK UART0 CTS

MTDO UART0 RTS

3. 110~115200*40

AT+UART_DEF=115200,8,1,0,3Espressif Systems Con?dential / Friday, July 15, 20161971

本文来源:https://www.bwwdw.com/article/tuoi.html

Top