ESP8266: Difference between revisions
No edit summary |
updates to project |
||
Line 12: | Line 12: | ||
<div class="toccolours mw-collapsible mw-collapsed" style="width: | <div class="toccolours mw-collapsible mw-collapsed" style="width:100%"> | ||
'''resulting conversation with the module''' | '''resulting conversation with the module''' | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
Line 134: | Line 134: | ||
</div> | </div> | ||
</div> | </div> | ||
Some things i have noticed already: | |||
# I get some gibberish when i reset the module (probably data at a higher baud-rate) before it starts talking on 9600. <br /> | |||
This could also be the bootloader. | |||
# This module is running a later version (0018000902-AI03 vs 00160901) of the AT firmware than the one in the [http://www.labradoc.com/i/follower/p/notes-esp8266 documentation] that i followed.<br /> | |||
<code> | |||
AT+GMR | |||
0018000902-AI03 | |||
OK | |||
</code> | |||
this seemst to be a failry recent build (current version is 9.4, installed is 9.2 | |||
== Installing SDK toolchain == | |||
http://www.esp8266.com/wiki/doku.php?id=setup-linux-compiler-esp8266 | |||
<pre> | |||
Xtensa toolchain is built, to use it: | |||
export PATH=/home/bwitha/dev/esp-open-sdk/xtensa-lx106-elf/bin:$PATH | |||
Espressif ESP8266 SDK is installed. Toolchain contains only Open Source components | |||
To link external proprietary libraries add: | |||
xtensa-lx106-elf-gcc -I/home/bwitha/dev/esp-open-sdk/sdk/include -L/home/bwitha/dev/esp-open-sdk/sdk/lib | |||
</pre> |
Latest revision as of 23:38, 18 January 2015
ESP8266
Getting the hardware to run
This page is about athe adventure of oredering a set of 5 ESP-03 modules housing the increasingly popular ESP8266 module. and at $3 a piece, free shipping and no customs involved.... What could go wrong no?
The modules came nicely packed in a folded piece of paperbubble wrapped and individually packed in anti-static bags.
I used the following discussion to get my module set up.
http://www.esp8266.com/viewtopic.php?f=13&t=475
i actually went straight for the cloud of resistors recommended by this post.
resulting conversation with the module
AT+RST OK [Vendor:www.ai-thinker.com Version:0.9.2.4] ready AT+CWLAP ERROR AT+CWLAP ERROR AT+CWLAP ERROR AT+CWJAP="","" ERROR AT+CWMODE=3 OK AT+CWLAP ERROR AT+CWJAP="","" FAIL AT+CWJAP? enter error AT+CWJAP? ERROR AT+RST OK [Vendor:www.ai-thinker.com Version:0.9.2.4] ready AT+CWJAP? ERROR AT+CWMODE? +CWMODE:3 OK AT+CWLAP +CWLAP:(4,"Nova4G-73911",-73,"d0:2d:b3:19:fb:af",1) +CWLAP:(3,"Viool19",-80,"a8:40:41:13:61:dc",1) +CWLAP:(3,"KK",-77,"24:a2:e1:ef:4a:38",6) +CWLAP:(3,"KK",-87,"7c:d1:c3:cc:4d:d4",6) +CWLAP:(3,"KK",-90,"40:3c:fc:07:03:e1",6) +CWLAP:(4,"Hringdu_14263",-90,"80:1f:02:9a:32:06",11) +CWLAP:(1,"vodafone_WEP_6E3F",-86,"00:0c:c3:59:6e:31",13) OK AT+CWJAP="Viool19","***********" OK AT+CIFSR 192.168.4.1 10.130.1.232 OK AT+CIPMUX=1 OK AT+CIPSTART=4,"TCP","google.com",80 OK Linked AT+CIPSEND=4,18 > GET / HTTP/1.0 SEND OK +IPD,4,1090:HTTP/1.0 302 Found Location: http://www.google.is/?gws_rd=cr&ei=Jw28VO-6HMnFPbvvgLAD Cache-Control: private Content-Type: text/html; charset=UTF-8 Set-Cookie: PREF=ID=3c9b3f7e6032da0a:FF=0:TM=1421610279:LM=1421610279:S=PWLUBPguKyU0KBAB; expires=Tue, 17-Jan-2017 19:44:39 GMT; path=/; domain=.google.com Set-Cookie: NID=67=Pl7NVXshFidDEzc1OQgS7ku7urFk3BjtDEITZ_gymrxm3biGiHYb0t2sgTEeHTzKHHHa-oujth2et1XJ1MfabrIZABEWwzMeVKBgcLALCHlqhXdgwNm4UV3LZtao3B6i; expires=Mon, 20-Jul-2015 19:44:39 GMT; path=/; domain=.google.com; HttpOnly P3P: CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 for more info." Date: Sun, 18 Jan 2015 19:44:39 GMT Server: gws Content-Length: 256 X-XSS-Protection: 1; mode=block X-Frame-Options: SAMEORIGIN Alternate-Protocol: 80:quic,p=0.02 <HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8"> <TITLE>302 Moved</TITLE></HEAD><BODY> <H1>302 Moved</H1> The document has moved <A HREF="http://www.google.is/?gws_rd=cr&ei=Jw28VO-6HMnFPbvvgLAD">here</A>. </BODY></HTML> OK OK Unlink
Some things i have noticed already:
- I get some gibberish when i reset the module (probably data at a higher baud-rate) before it starts talking on 9600.
This could also be the bootloader.
- This module is running a later version (0018000902-AI03 vs 00160901) of the AT firmware than the one in the documentation that i followed.
AT+GMR
0018000902-AI03
OK
this seemst to be a failry recent build (current version is 9.4, installed is 9.2
Installing SDK toolchain
http://www.esp8266.com/wiki/doku.php?id=setup-linux-compiler-esp8266
Xtensa toolchain is built, to use it: export PATH=/home/bwitha/dev/esp-open-sdk/xtensa-lx106-elf/bin:$PATH Espressif ESP8266 SDK is installed. Toolchain contains only Open Source components To link external proprietary libraries add: xtensa-lx106-elf-gcc -I/home/bwitha/dev/esp-open-sdk/sdk/include -L/home/bwitha/dev/esp-open-sdk/sdk/lib