esp8266透傳8266學(xué)習(xí)固件開發(fā)環(huán)境at_第1頁
esp8266透傳8266學(xué)習(xí)固件開發(fā)環(huán)境at_第2頁
esp8266透傳8266學(xué)習(xí)固件開發(fā)環(huán)境at_第3頁
esp8266透傳8266學(xué)習(xí)固件開發(fā)環(huán)境at_第4頁
esp8266透傳8266學(xué)習(xí)固件開發(fā)環(huán)境at_第5頁
已閱讀5頁,還剩13頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)

文檔簡介

1、ESP8266 AT Ver0.5Espressif Systems IOT TeamCopyright (c) 2015ESP8266 ATEspressif Systemsd ExlesURL“”Wi-FiWi-Fi 2015 Espressif Systems Confidential2/18Friday, July 3, 2015ESP8266 ATEspressif Systemsd ExlesTable of Contents.41.2. TCP Cnt53.UDP 73.1.3.2. UDP 8 UDP 94.104.1.4.2.TCP cnt 10UDP 135.6. TCP

2、Server16 .18Espressif Systems Confidential3/18Friday, July 3, 2015ESP8266 ATEspressif Systemsd Exles1. Espressif AT AT “ 4A-ESP8266 AT Instruction Set ”AT bin esp_iot_sdkbinat “readme.txt” PC 115200 AT AT Espressif Systems Confidential4/18Friday, July 3, 2015ESP8266 AT TCP CEspressif Systemsd Exles2

3、.nt WiFi : IP :PC ESP8266 PC TCP Espressif Systems Confidential5/18Friday, July 3, 2015AT+CIFSRResponse :192.168.3.106/ Device got an IP from router.AT+CWJAP=, password/and password of router Response :OKAT+CWMODE=3/ softAP+sion mode Response :OKESP8266 ATEspressif Systemsd ExlesESP8266 cnt TCP serv

4、er: (n) busy n SEND OK.:Espressif Systems Confidential6/18Friday, July 3, 2015+IPD, n:x/ received n bytes, data=xxAT+CIPSEND=4/ set daength which will be sent, such as 4 bytesDGFY/ enter the data, no CR Response :SEND OKAT+CIPSTART=TCP, 192.168.3.116, 8080 /protocolserver IP & port Response :OKESP82

5、66 ATEspressif Systemsd Exles3.UDP UDP server cnt AT+CIPSTART “ 4A-ESP8266 AT Instruction Set ” WiFi : IP :PC ESP8266 PC UDP UDP Espressif Systems Confidential7/18Friday, July 3, 2015AT+CIFSRResponse :+CIFSR: STAIP, 192.168.101.104 / IP address of ESP8266 sionAT+CWJAP=, password/and password of rout

6、er Response :OKAT+CWMODE=3/ softAP+sion mode Response :OKESP8266 ATEspressif Systemsd Exles3.1. UDP UDP ”AT+CIPSTART“ 0 : UDP ID 4 :192.168.101.110, 8080 UDP IP port PC UDP 1112 ESP8266 UDP 0 UDP UDP UDP ESP8266 UDP 1112ESP8266 4 UDP “AT+CIPSEND=4, X” PC : (n) busy n SEND OK.: UDP :Espressif Systems

7、 Confidential8/18Friday, July 3, 2015AT+CIPCLOSE=4Response :4, CLOSEDOK+IPD, 4, n:x/ received n bytes, data=xxAT+CIPSEND=4, 5/ Send 5 bytes to transmisNO.4DGFYQ/ enter the data, no CR Response :SEND OKAT+CIPSTART=4, UDP, 192.168.101.110, 8080, 1112, 0Response :4, CONNECTOKAT+CIPMUX=1Response :OKESP8

8、266 ATEspressif Systemsd Exles3.2. UDP UDP “2”. :192.168.101.110, 8080 UDP IP port PC UDP 1112 ESP8266 UDP 2 UDP UDP UDP ESP8266 UDP : (n) busy n SEND OK. UDP UDP IP port : UDP :Espressif Systems Confidential9/18Friday, July 3, 2015AT+CIPCLOSEResponse :CLOSEDOK+IPD, n:x/ received n bytes, data=xxAT+

9、CIPSEND=6, ”192.168.101.111”, 1000/ Send 6 bytesabcdef/ enter the data, no CR Response :SEND OKAT+CIPSEND=5/ Send 5 bytesDGFYQ/ enter the data, no CR Response :SEND OKAT+CIPSTART=UDP, 192.168.101.110, 8080, 1112, 2Response :CONNECTOKESP8266 ATEspressif Systemsd Exles4.AT Demo ESP8266 TCP cnt UDP 4.1

10、.TCP cnt ESP8266 sion TCP cnt ESP8266 softAP “ 4A-ESP8266 AT Instruction Set ” WiFi : IP :PC ESP8266 PC TCP Espressif Systems Confidential10/18Friday, July 3, 2015AT+CIFSRResponse :192.168.101.105/ DeviIPt got from router.AT+CWJAP=, password/and password of router Response :OKAT+CWMODE=3/ softAP+sio

11、n mode Response :OKESP8266 ATEspressif Systemsd Exles TCP cnt TCP server: : “+”Espressif Systems Confidential11/18Friday, July 3, 2015AT+CIPSENDResponse: /From now on, data received from UART will be transparent transmitted to server.AT+CIPMODE=1Response :OKAT+CIPSTART=TCP, 192.168.101.110, 8080 / p

12、rotocolserver IP & port Response :OKLinkedESP8266 ATEspressif Systemsd Exles “+” “+” + “”:“+“ AT TCP AT+CIPSEND: TCP :Espressif Systems Confidential12/18Friday, July 3, 2015AT+CIPCLOSEResponse :CLOSEDOKAT+CIPMODE=0Response : OKESP8266 ATEspressif Systemsd Exles4.2.UDP ESP8266 soft-AP UDP ESP8266 s E

13、SP8266 AT Instruction Set ” ion “ 4A- WiFi :PC ESP8266 soft-AP PC UDPESP8266 PC UDP Espressif Systems Confidential13/18Friday, July 3, 2015AT+CIPSTART=UDP,192.168.4.2,1001,2233,0Response :OKAT+CWMODE=3/ softAP+sion mode Response :OKESP8266 ATEspressif Systems:d Exles : “+”Espressif Systems Confident

14、ial14/18Friday, July 3, 2015AT+CIPSENDResponse: /From now on, data received from UART will be transparent transmitted to server.AT+CIPMODE=1Response :OKESP8266 ATEspressif Systemsd Exles “+” “+” + “”:“+“ AT UDP AT+CIPSEND : UDP :Espressif Systems Confidential15/18Friday, July 3, 2015AT+CIPCLOSERespo

15、nse :CLOSEDOKAT+CIPMODE=0Response : OKESP8266 ATEspressif Systemsd Exles5. TCP Server AT Demo ESP8266 TCP TCP cnt ESP8266 softAP TCP ESP8266 s:ion WiFi : TCP server:PC ESP8266 soft-APPC TCP cnt Espressif Systems Confidential16/18Friday, July 3, 2015AT+CIPSERVER=1/ default port = 333 Response :OKAT+C

16、IPMUX=1Response :OKAT+CWMODE=3/ softAP+sion mode Response :OKESP8266 ATEspressif Systemsd Exles:ESP8266 TCP server ESP8266 TCP server TCP cnt PC ESP8266 2s : (n) busy n SEND OK.: TCP :Espressif Systems Confidential17/18Friday, July 3, 2015AT+CIPCLOSE=0/ Delete NO.0 connection. Response :0, CLOSEDOK+

17、IPD, 0, n:x/ received n bytes, data =x/ ID number of connection is defaulted to be 0.AT+CIPSEND=0, 4/ send 4 bytes to connection NO.0iopd/ enter the data, no CR Response :SEND OKESP8266 ATEspressif Systemsd Exles6. AT suppor AT : “AT+GMR” ESP-01 log log ets Jan8 2013,rst cause: 1,boot mode: (3,3)load 0 x40100000, tail 0chksum 0 xdeload 0 x3ffe8000,

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論