




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
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)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 系統(tǒng)分析師考試細節(jié)與技巧試題及答案
- 電氣工程造價咨詢協(xié)議
- 按需課程開發(fā)協(xié)議
- 人教版九年級信息技術全第一單元2.4VB程序設計-編寫程序代碼教學設計
- 農業(yè)職業(yè)經理人考試個人成長與學習相輔相成的關系分析試題及答案
- 七年級生物上冊 第三單元 生物圈中的綠色植物 第一章 生物圈中有哪些綠色植物第二節(jié) 種子植物教學設計 (新版)新人教版
- 農民合作社土地聯(lián)營協(xié)議
- 報刊雜志采購協(xié)議
- 七年級語文下冊 第六單元 比較 探究《山海經》兩篇 精衛(wèi)填海教學設計 北師大版
- 農技員考試試題及答案
- 魯教版七年級概率初步練習50題及參考答案(難度系數(shù)0.8)
- 荊楚文化之楚國歷史文化省公開課一等獎全國示范課微課金獎
- 北京市師范大學附屬實驗中學2023-2024學年八年級下學期期中考試語文試題
- 上海2019年高三春考英語卷(帶參考答案作文答案圖片版)
- 2024年山東省濟南市市中區(qū)中考一模道德與法治試題
- 2024ABB IRB 1100產品手冊指南
- 南通市教育局直屬學校暨部分市屬事業(yè)單位委托招聘教師筆試真題2023
- 籃球比賽記錄表
- 施工隊長培訓課件
- 消防安全評定等級
- 生產加工型小微企業(yè)安全管理考試(含答案)
評論
0/150
提交評論