ESP_MESH V1.3.2
-
- Posts: 8
- Joined: Thu Apr 21, 2016 12:00 pm
ESP_MESH V1.3.2
Postby angeliacfq » Mon Oct 31, 2016 11:21 am
你好:
ESP_MESH V1.3.2 添加了下面这条特性。
1. Root candidate to fix limited capacity of router
When more than 20 devices connect router simultaneously, the router will crash sometimes.
We limit the count of root candidates according to RSSI from router.
在测试 ESP_MESH V1.3.2 demo的时候,总是espconn_mesh_is_root_candidate()返回的总是flash。尽管我所要连接的路由器与设备的距离很短,路由器上的设备也仅只有两三个。ESP8266 的频偏也都校准过了。请问这是什么原因导致的呢
ESP_MESH V1.3.2 添加了下面这条特性。
1. Root candidate to fix limited capacity of router
When more than 20 devices connect router simultaneously, the router will crash sometimes.
We limit the count of root candidates according to RSSI from router.
在测试 ESP_MESH V1.3.2 demo的时候,总是espconn_mesh_is_root_candidate()返回的总是flash。尽管我所要连接的路由器与设备的距离很短,路由器上的设备也仅只有两三个。ESP8266 的频偏也都校准过了。请问这是什么原因导致的呢
Re: ESP_MESH V1.3.2
Postby ESP_Alen » Wed Nov 02, 2016 10:12 pm
angeliacfq wrote:你好:
ESP_MESH V1.3.2 添加了下面这条特性。
1. Root candidate to fix limited capacity of router
When more than 20 devices connect router simultaneously, the router will crash sometimes.
We limit the count of root candidates according to RSSI from router.
在测试 ESP_MESH V1.3.2 demo的时候,总是espconn_mesh_is_root_candidate()返回的总是flash。尽管我所要连接的路由器与设备的距离很短,路由器上的设备也仅只有两三个。ESP8266 的频偏也都校准过了。请问这是什么原因导致的呢
Please describe detail information about the issue.
-
- Posts: 8
- Joined: Thu Apr 21, 2016 12:00 pm
Re: ESP_MESH V1.3.2
Postby angeliacfq » Thu Nov 03, 2016 9:42 am
你好:
在mesh_demo里,调用espconn_mesh_is_root_candidate(),返回的都是false,如下:
static bool ICACHE_FLASH_ATTR router_init()
{
struct station_config config;
if (!espconn_mesh_is_root_candidate())
{
MESH_DEMO_PRINT("!espconn_mesh_is_root_candidate\r\n");
goto INIT_SMARTCONFIG;
}
MESH_DEMO_MEMSET(&config, 0, sizeof(config));
espconn_mesh_get_router(&config);
if (config.ssid[0] == 0xff ||
config.ssid[0] == 0x00) {
MESH_DEMO_PRINT(" please change MESH_ROUTER_SSID and MESH_ROUTER_PASSWD according to your router\r\n");
/*
* please change MESH_ROUTER_SSID and MESH_ROUTER_PASSWD according to your router
*/
MESH_DEMO_MEMSET(&config, 0, sizeof(config));
MESH_DEMO_MEMCPY(config.ssid, MESH_ROUTER_SSID, MESH_DEMO_STRLEN(MESH_ROUTER_SSID));
MESH_DEMO_MEMCPY(config.password, MESH_ROUTER_PASSWD, MESH_DEMO_STRLEN(MESH_ROUTER_PASSWD));
/*
* if you use router with hide ssid, you MUST set bssid in config,
* otherwise, node will fail to connect router.
*
* if you use normal router, please pay no attention to the bssid,
* and you don't need to modify the bssid, mesh will ignore the bssid.
*/
// config.bssid_set = 1;
// MESH_DEMO_MEMCPY(config.bssid, MESH_ROUTER_BSSID, sizeof(config.bssid));
}
/*
* 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;
}
INIT_SMARTCONFIG:
/*
* use esp-touch(smart configure) to sent information about router AP to mesh node
*/
esptouch_init();
MESH_DEMO_PRINT("flush ssid:%s pwd:%s\n", config.ssid, config.password);
return true;
}
在mesh_demo里,调用espconn_mesh_is_root_candidate(),返回的都是false,如下:
static bool ICACHE_FLASH_ATTR router_init()
{
struct station_config config;
if (!espconn_mesh_is_root_candidate())
{
MESH_DEMO_PRINT("!espconn_mesh_is_root_candidate\r\n");
goto INIT_SMARTCONFIG;
}
MESH_DEMO_MEMSET(&config, 0, sizeof(config));
espconn_mesh_get_router(&config);
if (config.ssid[0] == 0xff ||
config.ssid[0] == 0x00) {
MESH_DEMO_PRINT(" please change MESH_ROUTER_SSID and MESH_ROUTER_PASSWD according to your router\r\n");
/*
* please change MESH_ROUTER_SSID and MESH_ROUTER_PASSWD according to your router
*/
MESH_DEMO_MEMSET(&config, 0, sizeof(config));
MESH_DEMO_MEMCPY(config.ssid, MESH_ROUTER_SSID, MESH_DEMO_STRLEN(MESH_ROUTER_SSID));
MESH_DEMO_MEMCPY(config.password, MESH_ROUTER_PASSWD, MESH_DEMO_STRLEN(MESH_ROUTER_PASSWD));
/*
* if you use router with hide ssid, you MUST set bssid in config,
* otherwise, node will fail to connect router.
*
* if you use normal router, please pay no attention to the bssid,
* and you don't need to modify the bssid, mesh will ignore the bssid.
*/
// config.bssid_set = 1;
// MESH_DEMO_MEMCPY(config.bssid, MESH_ROUTER_BSSID, sizeof(config.bssid));
}
/*
* 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;
}
INIT_SMARTCONFIG:
/*
* use esp-touch(smart configure) to sent information about router AP to mesh node
*/
esptouch_init();
MESH_DEMO_PRINT("flush ssid:%s pwd:%s\n", config.ssid, config.password);
return true;
}
Re: ESP_MESH V1.3.2
Postby ESP_Alen » Mon Dec 05, 2016 10:37 am
angeliacfq wrote:你好:
在mesh_demo里,调用espconn_mesh_is_root_candidate(),返回的都是false,如下:
static bool ICACHE_FLASH_ATTR router_init()
{
struct station_config config;
if (!espconn_mesh_is_root_candidate())
{
MESH_DEMO_PRINT("!espconn_mesh_is_root_candidate\r\n");
goto INIT_SMARTCONFIG;
}
MESH_DEMO_MEMSET(&config, 0, sizeof(config));
espconn_mesh_get_router(&config);
if (config.ssid[0] == 0xff ||
config.ssid[0] == 0x00) {
MESH_DEMO_PRINT(" please change MESH_ROUTER_SSID and MESH_ROUTER_PASSWD according to your router\r\n");
/*
* please change MESH_ROUTER_SSID and MESH_ROUTER_PASSWD according to your router
*/
MESH_DEMO_MEMSET(&config, 0, sizeof(config));
MESH_DEMO_MEMCPY(config.ssid, MESH_ROUTER_SSID, MESH_DEMO_STRLEN(MESH_ROUTER_SSID));
MESH_DEMO_MEMCPY(config.password, MESH_ROUTER_PASSWD, MESH_DEMO_STRLEN(MESH_ROUTER_PASSWD));
/*
* if you use router with hide ssid, you MUST set bssid in config,
* otherwise, node will fail to connect router.
*
* if you use normal router, please pay no attention to the bssid,
* and you don't need to modify the bssid, mesh will ignore the bssid.
*/
// config.bssid_set = 1;
// MESH_DEMO_MEMCPY(config.bssid, MESH_ROUTER_BSSID, sizeof(config.bssid));
}
/*
* 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;
}
INIT_SMARTCONFIG:
/*
* use esp-touch(smart configure) to sent information about router AP to mesh node
*/
esptouch_init();
MESH_DEMO_PRINT("flush ssid:%s pwd:%s\n", config.ssid, config.password);
return true;
}
please use espconn_mesh_set_router before root_candidate.
Who is online
Users browsing this forum: No registered users and 58 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.