ESP8266 study notes 4:esp8266 's Smartconfig

Source: Internet
Author: User
Tags bssid

Today it took nearly a day to study ESP8266 's smartconfig function, which should be considered as standard for WiFi cloud products. This article first smartconfig operation, and later I write an article to comb the physical layer of the specific protocol.

Reprint Please specify: http://blog.csdn.net/sadshen/article/details/46883245

First, prepare

ESP8266 's current sdk_v1.2.0 supports smartconfig. Will Esp_iot_sdk_v1.2.0\examples\smart_config

\ Directory sample routines code copy to the app directory.


Esp-touch 's APP is available for download on the Espressif website.


Official airkiss preliminary introduction ( http://iot.weixin.qq.com/document-7 _1.html ) esp sdk_v1.2.0 has supported airkiss We just need to call smartconfig interface is OK.

A big limitation is that only the function Permissions of Airkiss are open to the Enterprise service number, and the subscription number of the individual application cannot apply for this permission. But it still gives the DEMO (http://iot.weixin.qq.com/download.html) to facilitate the debugging of developers.

TwoEsp-touch

The following is the print information for ESP8266 at Esp-touch :

<time:2015-07-14 19:01:13:078 len:0099>:?  SDK ver:1.2.0 compiled @ Jul 3 19:36:17phy ver:356, pp ver:8.7 SDK version:1.2.0 <time:2015-07-14 19:01:13:218 Len:0045>:mode:sta (18:FE:34:F8:8F:CF) Add if0f 0, <time:2015-07-14 19:01:15:296 len:0015>:scandonef 0, < time:2015-07-14 19:01:17:484 len:0034>:scandonesc_status_find_channel <time:2015-07-14 19:02:07:484 Len:0136 >:type:esptouch v2.4t| PHONE mac:b4 B 1 6 5t| AP mac:0 c4 0 5esc_status_getting_ssid_pswdsc_type:sc_type_esptouch <time:2015-07-14 19:02:08:531 Len:0030&gt ;: t| SCAN SSID: http 瀢 ifi_2.4g å? <time:2015-07-14 19:02:09:593 len:0088>:t|pswd:12345678t|ssid: http 瀢 ifi_2.4g å? t|bssid:00 C4 5e sc_status_link <time:2015-07-14 19:02:09:671 len:0008>:f-240, <time:2015-07-14 19:02: 11:906 len:0072>:scandoneno http 瀢 ifi_2.4g å? found, reconnect after 1SRECONNECTF 0, <time:2015-07-14 19:02:14:093 Len : 0123>:scandoneadd 0aid 2pm Open phy_2,type:2 0 0 connected with HTTP 瀢 ifi_2.4g Å? Channel 3DHCP client start...cnt <time:2015-07-1419:02:17:109 len:0052>:ip:192.168.4.232,mask:255.255.255.0, gw:192.168.4.1 <time:2015-07-14 19:02:19:937 Len:0046>:sc_status_link_overphone ip:192.168.4.199

ThreeAirkiss

The following is the print information for ESP8266 at Airkiss :

<time:2015-07-14 19:20:00:968 len:0159>:? SDK ver:1.2.0 compiled @ Jul 3 19:36:17phy ver:356, pp ver:8.7 SDK version:1.2.0mode:sta (18:FE:34:F8:8F:CF) add if0f 0, Scandonef 0, <time:2015-07-14 19:20:03:046 len:0015>:scandonef 0, <time:2015-07-14 19:20:05:234 Len:0 034>:scandonesc_status_find_channel <time:2015-07-14 19:20:16:421 Len:0185>:type:airkiss V2.4T|sniffer on Ch:3t| PHONE mac:b4 B 1 6 5t| AP mac:0 C4 0 5et| Head len:66 sc_status_getting_ssid_pswdsc_type:sc_type_airkisst|sync:wait <time:2015-07-14 19:20:16:812 Len:0052 >:t|retain data:0t|all data:24 T|SYNC:MGC end <time:2015-07-14 19:20:17:406 len:0250>:t|ssid len15T| SSID: http 瀢 ifi_2.4g å? T| SCAN CRC ssid:1t|index:2, Remain:1t|password len:8t|sync:pfx endt|seq:0t|seq:1t|seq:2t| I Get it! T|pswd:12345678t|ssid: http 瀢 ifi_2.4g å? t|bssid:00 C4 5e sc_status_linkf 0, <time:2015-07-14 19:20:19:562 len:0123>:scandoneadd 0aid 2pm Open Phy_ 2,type:2 0 0 connected with HTTP 瀢 ifi_2.4g Å? Channel 3DHCP client start...cnt <time:2015-07-14 19:20:20:343 len:0052>:ip:192.168.4.232,mask:255.255.255.0, gw:192.168.4.1 <time:2015-07-14 19:20:24:171 Len:0021>:sc_status_link_over



Iv. Summary

ESP8266 in the V1.2.0 version is already compatible with Esp-touch and Airkiss, tested for good results.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

ESP8266 study notes 4:esp8266 's Smartconfig

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.