Jiangyafeng

Results 49 comments of Jiangyafeng

@gomez9656 For print: W (141331) wifi:Haven't to connect to a suitable AP now! This is because of the mwifi_get_parent_rssi API. This is not a problem, just a hint that the...

@yeqinggui 请在 MDF_EVENT_MWIFI_PARENT_CONNECTED 时间里面添加如下操作: ` case MDF_EVENT_MWIFI_PARENT_CONNECTED: MDF_LOGI("Parent is connected on station interface"); if (esp_mesh_is_root()) { esp_netif_dhcpc_stop(netif_sta); esp_netif_dhcpc_start(netif_sta); } break; `

建议您可以直接在 router demo 中加上上面的代码,做一下测试, link:https://github.com/espressif/esp-mdf/tree/master/examples/function_demo/mwifi/router

@IH303 Thank you very much for your feedback, the bottom layer of wifi mesh supports WIFI_AUTH_WPA2_PSK encryption. It's just that mdf currently has this definition dead. You can directly modify...

@fzboffice 方便说明一下复现的流程吗?怎么产生的再次调用 mconfig_chain_master 时会被锁锁住。

能否提供一个比较容易复现的 demo 或者你复现时候的 log 发送一下。更希望你能提供一下比较容易复现的大概环境和demo流程,我这边可以基于你的压测一下,复现的话比较容易找到问题所在。

@fzboffice 你的意思是 ram 剩余内存极低的情况下,发生的吗?能否提供一下设备端的log?

@fzboffice 你那边有复现的demo吗?我可以具体看一下什么原因。我害怕你将其剩余内存没有了,导致程序crash了吧?还有你的剩余内存还有多少?发送一下你的设备端log? 内存剩余过少是不行的,因为wifi在运行的时候是需要留下一定余量的动态内存的。

@fzboffice 非常感谢你的反馈,确实存在这个问题。这里一直被阻塞在那里是因为信号量一直没有获取到,而且设置的是 portMAX_DELAY。 阻塞位置:https://github.com/espressif/esp-mdf/blob/master/components/mconfig/mconfig_chain.c#L598 你可以在 https://github.com/espressif/esp-mdf/blob/master/components/mconfig/mconfig_chain.c#L588 下,添加如下修改: ` if (!g_chain_master_exit_sem) { g_chain_master_exit_sem = xSemaphoreCreateBinary(); } ` 将其 https://github.com/espressif/esp-mdf/blob/master/components/mconfig/mconfig_chain.c#L595,这个删除掉就可以了。

对于 mconfig_chain_master_task 无法运行的原因是因为剩余内存太少了,从而导致 xTaskCreate 无法创建成功导致的,位置:https://github.com/espressif/esp-mdf/blob/master/components/mconfig/mconfig_chain.c#L613, 这个你可以通过 uxTaskGetStackHighWaterMark 来具体看到每个 task 的剩余可用情况。