Problem with latest commits

iia
Posts: 16
Joined: Sat Oct 15, 2016 11:55 pm

Problem with latest commits

Postby iia » Thu Nov 17, 2016 6:03 am

Hi,

In my project I am integrating mesh feature to existing firmware based on ESP-WROOM-2 module. I use the code from the Git repository (https://github.com/espressif/ESP8266_MESH_DEMO) for mesh feature. I think one of the latest commits has introduced a problem. Station mode connection doesn't work anymore. I get output as follows and it keeps going on but the module never gets IP from the AP. Note that I tried by compiling and testing just the code in the repository as well and it showed same result. Even if I don't enable mesh, still simple station connection doesn't work. I'm guessing one of the updated libraries with *.a file is causing this.

Has anyone else faced this issue? Any help is highly appreciated.

Code: Select all

mesh version: v1.3.3
mode : sta(5c:cf:7f:c6:d0:a6) + softAP(5e:cf:7f:c6:d0:a6)
add if0
add if1
dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
bcn 100
scan-ch:0
scandone
scan-ch:0
scandone
sssid:LisIsh, ssid:LisIsh, set:0, sbssi:00:00:00:00:00:00  bssid:08:95:2a:0d:d5:4blast:1
espconn_mesh_scan_done connect LisIsh
scandone
state: 0 -> 2 (b0)
state: 2 -> 0 (2)
scandone
state: 0 -> 2 (b0)
state: 2 -> 0 (2)
scandone
state: 0 -> 2 (b0)
state: 2 -> 0 (2)
scandone
state: 0 -> 2 (b0)
state: 2 -> 0 (2)
scandone
state: 0 -> 2 (b0)
state: 2 -> 0 (2)
scandone
state: 0 -> 2 (b0)
state: 2 -> 0 (2)
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (4)
scandone
state: 0 -> 2 (b0)
state: 2 -> 0 (0)
scan-ch:1
scandone
scan-ch:1
scandone
scandone
state: 0 -> 2 (b0)
state: 2 -> 0 (2)
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (4)
scandone
state: 0 -> 2 (b0)
state: 2 -> 0 (2)
scandone
state: 0 -> 2 (b0)
state: 2 -> 0 (0)
scan-ch:1
scandone
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 3
cnt

connected with LisIsh, channel 1
dhcp client start...


Cheers.

iia
Posts: 16
Joined: Sat Oct 15, 2016 11:55 pm

Re: Problem with latest commits

Postby iia » Sat Nov 19, 2016 6:03 am

Hi,

Here are a few more details and findings.

For my project I use the latest ESP non-OS open SDK 2.0.0. But the mesh library that comes with this SDK is outdated and I use the mesh lib from the ESP mesh demo Git repo as mentioned in my previous post. To use the latest mesh library it is not enough to just use the libmesh.a and the mesh.h from the Git repo. The libmesh.a has dependencies which are not satisfied by the libraries provided by the SDK. Ultimately I ended up replacing the following libraries with the ones from the Git repo,

  • liblwip.a
  • libmain.a
  • libmesh.a
  • libnet80211.a
  • libpp.a
  • libwpa.a

It turns out the problem mentioned on my previous post is occurring when I'm using these libraries from the ESP mesh demo repo. This problem occurs even if I'm not using mesh at all but only normal station operation.

Cheers.

ESP_Alen

Re: Problem with latest commits

Postby ESP_Alen » Mon Dec 05, 2016 11:58 am

Hi, we shall reproduce the problem you feedback

ESP_Xutao
Posts: 134
Joined: Tue Sep 27, 2016 5:42 pm

Re: Problem with latest commits

Postby ESP_Xutao » Mon Dec 05, 2016 4:19 pm

Hi:
I don't know your test environment .So I user our demo(https://github.com/espressif/ESP8266_MESH_DEMO)with three ESP-WROOM-02,I reproduce you problem,but it's ok.
Our test environment as follows:
1.Our server(demo_server.py)run on ubuntu.
2.Run three ESP-WROOM-02.
module 1 log(according this log,it's mesh-root):
connected with ASUS_N56U, channel 7
dhcp client start...
ip:192.168.102.150,mask:255.255.255.0,gw:192.168.102.1
Got IP, IP:192.168.102.150Mask:255.255.255.0GW:192.168.102.1
bcn 0
del if1
module 2 log:
connected with MESH_DEMO_1_2734F7, channel 7
dhcp client start...
ip:2.255.255.3,mask:255.255.255.0,gw:2.255.255.1
Got IP, IP:2.255.255.3Mask:255.255.255.0GW:2.255.255.1
bcn 0
del if1
module 3 log:
connected with MESH_DEMO_1_2734F7, channel 7
dhcp client start...
ip:2.255.255.2,mask:255.255.255.0,gw:2.255.255.1
Got IP, IP:2.255.255.2Mask:255.255.255.0GW:2.255.255.1
bcn 0
del if1
This process takes about 40 seconds.
If you still can not,you can provide you test environment,include your demo and your server evironment.

Who is online

Users browsing this forum: No registered users and 9 guests