Establishment problems

blax
Posts: 2
Joined: Fri May 27, 2016 5:25 pm

Establishment problems

Postby blax » Tue May 31, 2016 8:58 pm

Hello. I have same image on all devices https://imgur.com/a/otJBI Why other nodes dont join mesh? This behaviour is random and number of nodes that joined mesh varies.
What does 2 in MSH_2 prefix indicates? Completly new network?
Thanks.

ESP_Alen

Re: Establishment problems

Postby ESP_Alen » Wed Jun 01, 2016 3:10 pm

blax wrote:Hello. I have same image on all devices https://imgur.com/a/otJBI Why other nodes dont join mesh? This behaviour is random and number of nodes that joined mesh varies.
What does 2 in MSH_2 prefix indicates? Completly new network?
Thanks.


1. Please use clean version of mesh demo on github.
2. MSH_2 means the current device has join the mesh network, and works on second layer.
3. There are more than one root device working in mesh network, I don't know what's your scenario.
Could you descript the detail information about your scenario.

blax
Posts: 2
Joined: Fri May 27, 2016 5:25 pm

Re: Establishment problems

Postby blax » Fri Jun 03, 2016 7:37 pm

I always use the latest code from your github. Problem was that the wifi network analyzer can't correctly scan this type of network so I started to use serial for debug. For now I am just trying to run mesh demo in the way its described in a readme with a plans to use it in a sensor network.
Now it seems that my 4 of 5 nodes are connecting well. It takes a bit to much time to establish network, but its ok for now.

Code: Select all

free heap:40224
recv entrance
mesh_none_proto_parser
root's mac:5c:cf:7f:0b:9b:0c
idx: 0, mac:5c:cf:7f:0b:9b:0c
idx: 1, mac:5c:cf:7f:12:1f:09
idx: 2, mac:18:fe:34:d6:32:d3
idx: 3, mac:5c:cf:7f:15:aa:6d
recv entrance
mesh_json_proto_parser
len:27, data:{"req_key":"req_key_val"}


Now problem is with the last device(always the same one). It cant join the mesh. This is output from it

Code: Select all

sssid:MESH_D_1_0B9B0C, ssid:MESH_D_1_0B9B0C, set:1, sbssi:5e:cf:7f:0b:9b:0c  bssid:5e:cf:7f:0b:9b:0clast:0
f r0, espconn_mesh_scan_done connect MESH_D_1_0B9B0C
scandone
f 0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (4)
f -180, scandone
f r0, scandone
f r0, scandone
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 0 (2)
f 0, scandone
state: 0 -> 2 (b0)
state: 2 -> 0 (2)
f -180, scandone
f r0, scandone
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 2
cnt
state: 5 -> 0 (0)
rm 0
f r0, scandone
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (0)
f r0, scandone
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (4)
f 0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (4)
f -180, scandone
f r0, scandone
f r0, scandone
sssid:MESH_D_1_0B9B0C, ssid:MESH_D_1_0B9B0C, set:1, sbssi:5e:cf:7f:0b:9b:0c  bssid:5e:cf:7f:0b:9b:0clast:0
f r0, espconn_mesh_scan_done connect MESH_D_1_0B9B0C
scandone
f 0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (4)
f -180, scandone
f r0, scandone
f r0, scandone
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (4)
f 0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (4)
f -180, scandone
f r0, scandone
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (4)
f 0, scandone
f -180, scandone
f r0, scandone
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (4)
f 0, scandone
f r0, scandone
sssid:MESH_D_1_0B9B0C, ssid:MESH_D_1_0B9B0C, set:1, sbssi:5e:cf:7f:0b:9b:0c  bssid:5e:cf:7f:0b:9b:0clast:0
f r0, espconn_mesh_scan_done connect MESH_D_1_0B9B0C
scandone
f 0, scandone
f r0, scandone
f r0, scandone
f 0, scandone
state: 0 -> 2 (b0)
state: 2 -> 0 (0)
f r0, scandone
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (4)
f 0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (0)
f r0, scandone
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (4)
f 0, scandone
f -180, scandone
f r0, scandone
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (4)
f 0, scandone
f -180, scandone
f r0, scandone
f r0, scandone

Code: Select all

sssid:MESH_D_1_0B9B0C, ssid:MESH_D_1_0B9B0C, set:1, sbssi:5e:cf:7f:0b:9b:0c  bssid:5e:cf:7f:0b:9b:0clast:0
f r0, espconn_mesh_scan_done connect MESH_D_1_0B9B0C
scandone
reconnect
f 0, free heap:44328
mesh is busy
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (4)
no mac in current mac list
mcast get root fail
mesh is busy
free heap:44328
mesh is busy
no mac in current mac list
bcast mesh is busy
free heap:44328
mesh is busy
mesh is busy
free heap:44328
mesh is busy
no mac in current mac list
mcast get root fail
free heap:44328
mesh is busy
bcast mesh is busy
no mac in current mac list
mesh is busy
free heap:44328
mesh is busy
no mac in current mac list
mcast get root fail
free heap:44328
mesh is busy
f r0, scandone
bcast mesh is busy
mesh is busy
free heap:44328
mesh is busy
no mac in current mac list

Any advice? Thanks.

ESP_Alen

Re: Establishment problems

Postby ESP_Alen » Mon Jun 06, 2016 11:22 am

blax wrote:I always use the latest code from your github. Problem was that the wifi network analyzer can't correctly scan this type of network so I started to use serial for debug. For now I am just trying to run mesh demo in the way its described in a readme with a plans to use it in a sensor network.
Now it seems that my 4 of 5 nodes are connecting well. It takes a bit to much time to establish network, but its ok for now.

Code: Select all

free heap:40224
recv entrance
mesh_none_proto_parser
root's mac:5c:cf:7f:0b:9b:0c
idx: 0, mac:5c:cf:7f:0b:9b:0c
idx: 1, mac:5c:cf:7f:12:1f:09
idx: 2, mac:18:fe:34:d6:32:d3
idx: 3, mac:5c:cf:7f:15:aa:6d
recv entrance
mesh_json_proto_parser
len:27, data:{"req_key":"req_key_val"}


We modify the beacon and probe-response, you can just scan root device, but the other device is not visible to user.

ESP_Alen

Re: Establishment problems

Postby ESP_Alen » Mon Jun 06, 2016 11:25 am

blax wrote:Now problem is with the last device(always the same one). It cant join the mesh. This is output from it

Code: Select all

sssid:MESH_D_1_0B9B0C, ssid:MESH_D_1_0B9B0C, set:1, sbssi:5e:cf:7f:0b:9b:0c  bssid:5e:cf:7f:0b:9b:0clast:0
f r0, espconn_mesh_scan_done connect MESH_D_1_0B9B0C
scandone
f 0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (4)
f -180, scandone
f r0, scandone
f r0, scandone
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 0 (2)
f 0, scandone
state: 0 -> 2 (b0)
state: 2 -> 0 (2)
f -180, scandone
f r0, scandone
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 2
cnt
state: 5 -> 0 (0)
rm 0
f r0, scandone
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (0)
f r0, scandone
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (4)
f 0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (4)
f -180, scandone
f r0, scandone
f r0, scandone
sssid:MESH_D_1_0B9B0C, ssid:MESH_D_1_0B9B0C, set:1, sbssi:5e:cf:7f:0b:9b:0c  bssid:5e:cf:7f:0b:9b:0clast:0
f r0, espconn_mesh_scan_done connect MESH_D_1_0B9B0C
scandone
f 0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (4)
f -180, scandone
f r0, scandone
f r0, scandone
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (4)
f 0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (4)
f -180, scandone
f r0, scandone
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (4)
f 0, scandone
f -180, scandone
f r0, scandone
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (4)
f 0, scandone
f r0, scandone
sssid:MESH_D_1_0B9B0C, ssid:MESH_D_1_0B9B0C, set:1, sbssi:5e:cf:7f:0b:9b:0c  bssid:5e:cf:7f:0b:9b:0clast:0
f r0, espconn_mesh_scan_done connect MESH_D_1_0B9B0C
scandone
f 0, scandone
f r0, scandone
f r0, scandone
f 0, scandone
state: 0 -> 2 (b0)
state: 2 -> 0 (0)
f r0, scandone
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (4)
f 0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (0)
f r0, scandone
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (4)
f 0, scandone
f -180, scandone
f r0, scandone
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (4)
f 0, scandone
f -180, scandone
f r0, scandone
f r0, scandone

Code: Select all

sssid:MESH_D_1_0B9B0C, ssid:MESH_D_1_0B9B0C, set:1, sbssi:5e:cf:7f:0b:9b:0c  bssid:5e:cf:7f:0b:9b:0clast:0
f r0, espconn_mesh_scan_done connect MESH_D_1_0B9B0C
scandone
reconnect
f 0, free heap:44328
mesh is busy
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (4)
no mac in current mac list
mcast get root fail
mesh is busy
free heap:44328
mesh is busy
no mac in current mac list
bcast mesh is busy
free heap:44328
mesh is busy
mesh is busy
free heap:44328
mesh is busy
no mac in current mac list
mcast get root fail
free heap:44328
mesh is busy
bcast mesh is busy
no mac in current mac list
mesh is busy
free heap:44328
mesh is busy
no mac in current mac list
mcast get root fail
free heap:44328
mesh is busy
f r0, scandone
bcast mesh is busy
mesh is busy
free heap:44328
mesh is busy
no mac in current mac list

Any advice? Thanks.


Please paste the complete log after device powers on.

Who is online

Users browsing this forum: No registered users and 13 guests