Search found 68 matches

by ESP_yudong
Thu Feb 21, 2019 1:20 pm
Forum: ESP-MDF
Topic: BUG / Workaround : Mesh and smart config
Replies: 8
Views: 14705

Re: BUG / Workaround : Mesh and smart config

Hi lee,

Mesh event cb is belong to mesh_nwk_task, it should be non-block .

I'll try to reproduce your issue.
by ESP_yudong
Thu Feb 21, 2019 1:10 pm
Forum: ESP-MDF
Topic: BUG/ Workaround: ESP Mesh and ESP Now interoperability issues
Replies: 12
Views: 16185

Re: ESP Mesh and ESP Now interoperability issues

Hi Lee,
I have some guesses.

Maybe you should move esp_mesh_send from esp_now callback to another task, since esp_now callback belong to wifi task so it can't handle events from other task such as mesh task. That's why esp_mesh_send never succeed.
by ESP_yudong
Mon Feb 18, 2019 7:55 am
Forum: ESP-MDF
Topic: BUG/ Workaround: ESP Mesh and ESP Now interoperability issues
Replies: 12
Views: 16185

Re: ESP Mesh and ESP Now interoperability issues

Hi Lee,
ESP Now and ESP Mesh should be able to work together.
Have you tried with data.tos=MESH_TOS_P2P and flag=MESH_DATA_P2P ?
And can you provide all parameters and return values if esp_mesh_send failed?
by ESP_yudong
Mon Feb 18, 2019 7:44 am
Forum: ESP-MDF
Topic: BUG - v3..3 beta : esp_mesh_set_router doesn't seem to work
Replies: 12
Views: 15785

Re: BUG - v3..3 beta : esp_mesh_set_router doesn't seem to work

Hi Lee,

We know what the problem is. There's code to compare ssid with memcmp and len=32.
Will correct it during the next update.

Thanks
by ESP_yudong
Fri Feb 15, 2019 1:17 pm
Forum: ESP-MDF
Topic: BUG - v3..3 beta : esp_mesh_set_router doesn't seem to work
Replies: 12
Views: 15785

Re: BUG - v3..3 beta : esp_mesh_set_router doesn't seem to work

Hi Lee, Yeah, if you remove " = {0} ", items in mesh_router_t are going to have random value. This makes the behavior uncertainty. Settiing the channel could reduce the connection time. The bssid is usually used when there are more than one router with same ssid. The device will try to connect anoth...
by ESP_yudong
Fri Feb 15, 2019 12:30 pm
Forum: ESP-MDF
Topic: WiFi mesh : broadcast & multicast policy
Replies: 3
Views: 6788

Re: WiFi mesh : broadcast & multicast policy

Hi Ankit,
In my mind, the policy in document is for ESP_MESH only. It only works in mesh layer,although the Multicast-Group Address is same as WiFi specification.
by ESP_yudong
Fri Feb 15, 2019 8:13 am
Forum: ESP-MDF
Topic: BUG - v3..3 beta : esp_mesh_set_router doesn't seem to work
Replies: 12
Views: 15785

Re: BUG - v3..3 beta : esp_mesh_set_router doesn't seem to work

Hi Lee, Have you previously started the mesh with the wrong ssid and then this code is what is run when parent not found is triggered? Also, I noticed you have set the bsid but in my case I wouldn't know what that was. Could you try running it without setting bssid place. Yes, that's what I did. It ...
by ESP_yudong
Wed Feb 13, 2019 7:15 am
Forum: ESP-MDF
Topic: BUG - v3..3 beta : esp_mesh_set_router doesn't seem to work
Replies: 12
Views: 15785

Re: BUG - v3..3 beta : esp_mesh_set_router doesn't seem to work

Hi Lee, I can successfully change router using esp_mesh_set_router if the channel is not set or the channel is right. Would you like try again using example?Is there something wrong with my operation? I use the internal_communication example and here's my code in NO_PARENT_FOUND handler: IDF v3.3-be...
by ESP_yudong
Mon Feb 11, 2019 10:37 am
Forum: ESP-MDF
Topic: BUG / Workaround : Mesh and smart config
Replies: 8
Views: 14705

Re: Mesh and smart config

Hi leenowell,
We will have a discussion on this API.
Currently, you can try `esp_mesh_set_self_organized(true,true)` after set router, and allow channel switch when set config.
by ESP_yudong
Mon Feb 11, 2019 10:14 am
Forum: ESP-MDF
Topic: BUG - v3..3 beta : esp_mesh_set_router doesn't seem to work
Replies: 12
Views: 15785

Re: esp_mesh_set_router doesn't seem to work

Hi leenowell,
Thanks, I agree with you.
This API can never switch channels. We will have a discussion on this API.