Mesh_demo cannot connect without router in LOCAL mode

jamesbong
Posts: 8
Joined: Sat May 16, 2015 11:17 pm

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

ESP_Alen

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.

jamesbong
Posts: 8
Joined: Sat May 16, 2015 11:17 pm

Re: Mesh_demo cannot connect without router in LOCAL mode

Postby jamesbong » Mon Jun 27, 2016 12:40 pm

If my system does not reqire mobile phone or cloud server, is there any cheap solution, i.e. no router is powered on

ESP_Alen

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.

jamesbong
Posts: 8
Joined: Sat May 16, 2015 11:17 pm

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?

jamesbong
Posts: 8
Joined: Sat May 16, 2015 11:17 pm

Re: Mesh_demo cannot connect without router in LOCAL mode

Postby jamesbong » Mon Jun 27, 2016 8:38 pm

Please note that I have use 3 modules in my test

ESP_Alen

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