mesh是否支持smart config功能
mesh是否支持smart config功能
Postby joinlink » Wed Jun 08, 2016 2:05 pm
/*
* you can use esp-touch(smart configure) to sent information about router AP to mesh node
* if you donn't use esp-touch, you should use espconn_mesh_set_router to set router for mesh node
*/
if (!espconn_mesh_set_router(&config))
{
MESH_DEMO_PRINT("set_router fail\n");
return false;
}
尝试将此段代码注释掉,但运行后仍无法配置。后来又尝试将有关smartconfig功能(如:smartconfig_start(smartconfig_done)等)代码加入项目中。但编译却无法通过,错误显示:
.output/eagle/debug/image/eagle.app.v6.out section `.irom0.text' will not fit in region `irom0_0_seg' ESP8266_MESH_DEMO-master。
尝试过将smart config相关代码加入ESP8266_NONOS_SDK_V1.5.3_16_04_18与ESP8266_RTOS_SDK_V1.4.0中均能正常编译与运行。
Re: mesh是否支持smart config功能
Postby ESP_Alen » Wed Jun 08, 2016 2:41 pm
joinlink wrote:请问目前的mesh项目是否支持smart config功能?我安装了安卓APP(IOT_Espressif_EspTouch),项目运行后无法配置成功。我查看项目中文件名为mesh_demo.c的esp_mesh_demo_init函数有下以代码:
/*
* you can use esp-touch(smart configure) to sent information about router AP to mesh node
* if you donn't use esp-touch, you should use espconn_mesh_set_router to set router for mesh node
*/
if (!espconn_mesh_set_router(&config))
{
MESH_DEMO_PRINT("set_router fail\n");
return false;
}
尝试将此段代码注释掉,但运行后仍无法配置。后来又尝试将有关smartconfig功能(如:smartconfig_start(smartconfig_done)等)代码加入项目中。但编译却无法通过,错误显示:
.output/eagle/debug/image/eagle.app.v6.out section `.irom0.text' will not fit in region `irom0_0_seg' ESP8266_MESH_DEMO-master。
尝试过将smart config相关代码加入ESP8266_NONOS_SDK_V1.5.3_16_04_18与ESP8266_RTOS_SDK_V1.4.0中均能正常编译与运行。
mesh demo中已经添加了smart config的功能,我们再自己确认一下。
Re: mesh是否支持smart config功能
Postby ESP_Alen » Fri Jun 17, 2016 4:46 pm
joinlink wrote:在等待确认中......
你好,我们确认有smart configure
Re: mesh是否支持smart config功能
Postby joinlink » Fri Jun 17, 2016 6:39 pm
if (!espconn_mesh_set_router(&config))
{
MESH_DEMO_PRINT("set_router fail\n");
return false;
}
Re: mesh是否支持smart config功能
Postby ESP_Alen » Mon Jun 20, 2016 6:19 pm
joinlink wrote:请问以下这段代码是否需要去掉?还有,是否与使用的APP不对有关?我安装的是EspTouchAndroid_v0.3.4.3.apk,而在官网下载的IOT-Espressif-Android_v0.9.10.apk无法打开。
if (!espconn_mesh_set_router(&config))
{
MESH_DEMO_PRINT("set_router fail\n");
return false;
}
一定不能去掉,关于APP版本的问题,这个我目前不太清楚,需要测试。我们测试用的APP的版本是:IOT-Espressif-Android_v1.1.6.apk.
OT-Espressif-Android_v0.9.10.apk是非常旧的版本。
最新的APP:https://github.com/EspressifApp/IOT-Espressif-Android
Re: mesh是否支持smart config功能
Postby joinlink » Tue Jun 21, 2016 11:01 am
Re: mesh是否支持smart config功能
Postby ESP_Alen » Tue Jun 21, 2016 11:48 am
joinlink wrote:将MESH_ROUTER_SSID与MESH_ROUTER_PASSWD设置好是可以直接连接路由器的,没有任何问题。但如果不设置这两个参数,或者故意设置成与路由器不一致,再使用APP执行smart config功能,试过数次,结果均是配置失败。使用过的APP有EspTouchAndroid_v0.3.4.3.apk、iot-espressif-android_v0.9.1_0项目中的IOT_Espressif_beta.apk,连IOS版的EsptouchForIOS-master和微信Airkiss都试过(至于最新的IOT-Espressif-Android-master项目中找不到apk文件,所以没试)。实在是搞不清楚是什么问题?是否能将你们实测过的mesh项目文件与安卓端的apk文件发到我邮箱(ZLIT@163.com)?谢谢!
请确认你是在smart configure状态下配置路由器的?
Re: mesh是否支持smart config功能
Postby ESP_Alen » Sun Jun 26, 2016 5:08 pm
joinlink wrote:不明白如何确认是在smart configure状态下配置路由器?在mesh项目中不是底层已经封装好的吗?我们应用层需要处理吗?
开机上电,等待用户进行smart configure, 如果用户不配置,直接使用默认AP
Who is online
Users browsing this forum: No registered users and 15 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.