Mesh_demo cannot connect without router in LOCAL mode
Mesh_demo cannot connect without router in LOCAL mode
Postby jamesbong » Mon Jun 27, 2016 1:28 am
I changed mesh mode in user_init to LOCAL mode as follows
espconn_mesh_enable(mesh_enable_cb, MESH_LOCAL); //MESH_ONLINE);
But I find that if I powered off the router, I cannot connect 2 modules together through mesh. Is it true?
The log is :
flush ssid:wec pwd:Jamesbong1
mesh version: v1.2.0
esp_mesh_demo_init OK
mode : sta(5c:cf:7f:88:13:e3) + softAP(5e:cf:7f:88:13:e3)
add if0
add if1
dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
bcn 100
f r0, scandone
f r0, scandone
f r0, scandone
f r0, scandone
no ap to join
f r0, scandone
f r0, scandone
f r0, scandone
no ap to join
reconnect
f r0, scandone
f 0, scandone
f r0, scandone
f r0, scandone
no ap to join
f r0, scandone
f 0, scandone
f r0, scandone
f r0, scandone
no ap to join
f r0, scandone
f 0, scandone
f -180, scandone
f r0, scandone
f r0, scandone
f r0, scandone
no ap to join
f r0, scandone
f r0, scandone
f 0, scandone
f -180, scandone
f r0, scandone
no ap to join
mesh_enable_cb = enable mesh fail
chg_A3:-180
chg_A3:0
chg_A3:-180
chg_A3:0
chg_A3:-180
chg_A3:0
chg_A3:-180
chg_A3:0
espconn_mesh_enable(mesh_enable_cb, MESH_LOCAL); //MESH_ONLINE);
But I find that if I powered off the router, I cannot connect 2 modules together through mesh. Is it true?
The log is :
flush ssid:wec pwd:Jamesbong1
mesh version: v1.2.0
esp_mesh_demo_init OK
mode : sta(5c:cf:7f:88:13:e3) + softAP(5e:cf:7f:88:13:e3)
add if0
add if1
dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
bcn 100
f r0, scandone
f r0, scandone
f r0, scandone
f r0, scandone
no ap to join
f r0, scandone
f r0, scandone
f r0, scandone
no ap to join
reconnect
f r0, scandone
f 0, scandone
f r0, scandone
f r0, scandone
no ap to join
f r0, scandone
f 0, scandone
f r0, scandone
f r0, scandone
no ap to join
f r0, scandone
f 0, scandone
f -180, scandone
f r0, scandone
f r0, scandone
f r0, scandone
no ap to join
f r0, scandone
f r0, scandone
f 0, scandone
f -180, scandone
f r0, scandone
no ap to join
mesh_enable_cb = enable mesh fail
chg_A3:-180
chg_A3:0
chg_A3:-180
chg_A3:0
chg_A3:-180
chg_A3:0
chg_A3:-180
chg_A3:0
Re: Mesh_demo cannot connect without router in LOCAL mode
Postby ESP_Alen » Mon Jun 27, 2016 11:06 am
jamesbong wrote:I changed mesh mode in user_init to LOCAL mode as follows
espconn_mesh_enable(mesh_enable_cb, MESH_LOCAL); //MESH_ONLINE);
But I find that if I powered off the router, I cannot connect 2 modules together through mesh. Is it true?
The log is :
flush ssid:wec pwd:Jamesbong1
mesh version: v1.2.0
esp_mesh_demo_init OK
mode : sta(5c:cf:7f:88:13:e3) + softAP(5e:cf:7f:88:13:e3)
add if0
add if1
dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
bcn 100
f r0, scandone
f r0, scandone
f r0, scandone
f r0, scandone
no ap to join
f r0, scandone
f r0, scandone
f r0, scandone
no ap to join
reconnect
f r0, scandone
f 0, scandone
f r0, scandone
f r0, scandone
no ap to join
f r0, scandone
f 0, scandone
f r0, scandone
f r0, scandone
no ap to join
f r0, scandone
f 0, scandone
f -180, scandone
f r0, scandone
f r0, scandone
f r0, scandone
no ap to join
f r0, scandone
f r0, scandone
f 0, scandone
f -180, scandone
f r0, scandone
no ap to join
mesh_enable_cb = enable mesh fail
chg_A3:-180
chg_A3:0
chg_A3:-180
chg_A3:0
chg_A3:-180
chg_A3:0
chg_A3:-180
chg_A3:0
Yes, please don't power off the router.
Re: Mesh_demo cannot connect without router in LOCAL mode
Postby ESP_Alen » Mon Jun 27, 2016 3:04 pm
jamesbong wrote:If my system does not reqire mobile phone or cloud server, is there any cheap solution, i.e. no router is powered on
Yes, we will fix the problem later.
Re: Mesh_demo cannot connect without router in LOCAL mode
Postby jamesbong » Mon Jun 27, 2016 8:36 pm
I am testing with mesh_json_p2p_test by call mesh_json_p2p_test_init in esp_server_con_cb and replace esp_recv_entrance with mesh_packet_parser.
But mesh_device_get_mac_list alway fail. How can I verify the mesh_device_get_mac_list function?
But mesh_device_get_mac_list alway fail. How can I verify the mesh_device_get_mac_list function?
Re: Mesh_demo cannot connect without router in LOCAL mode
Postby ESP_Alen » Wed Jun 29, 2016 6:18 pm
jamesbong wrote:Please note that I have use 3 modules in my test
Ok.
Who is online
Users browsing this forum: No registered users and 16 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.