Jiangyafeng

Results 49 comments of Jiangyafeng

Hi @fzboffice 请在 event_loop_cb 事件里面添加如下代码: ` 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; ` 请测试一下如何?

@fzboffice 方便描述一下你是怎么复现的吗?我这边基于你说的情况,在router例程下测试,是没有复现的,他是能正常切换的。 正常情况下 root节点切换信道的话,node节点会有如下时间发生的: _W (1159144) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:2, 1200 ms timeout, seqno:0, xseqno:72, no_wnd_count:0, t imeout_count:7 I (1159481) wifi:switch to channel 2 I (1159481) wifi:ap channel adjust o:8,2 n:2,1...

Hi @yeqinggui 你是否有添加如下: set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common) 对了,还有你IDF路径是否配置过那?这个按照正常cmakelist是可以找到对应的路径的。 如果还是不行的话,你可以在你的 mian里面的cmakelist文件里面添加 idf_component_register{ REQUIRES tcp_transport } 看一下如何?

wifi mesh 网络是有关于如果重新选择 root 节点的 esp_mesh_waive_root APi,从而实现wifi mesh的重新选举。 而对于你使用 mwifi_restart 也是不会引起设备端的重启的。这个是将其mesh stop 之后重新 start开始组网了。 你是怎么引起设备重启的,方便提供一下设备端的log吗?

@fzboffice 非常感谢你的提议。你可以先将其 加一个宏定义来进行控制,后面更新会将其这部分代码里加上的。 1. 'g_waive_root_timer' defined but not used - 这个你是将其kconfig 配置[https://github.com/espressif/esp-mdf/blob/master/components/mwifi/Kconfig#L155](url)取消使能了,从而导致的这样的警告。 3. 'combine_ap_mesh_password' defined but not used - 这个是因为你将其 mesh_password加密取消使能了,从而导致了这样的警告发生。 如果你不想要这样的功能的话,是可以将其直接代码里面屏蔽掉的,从而既不会再有这样的警告了。

您好 @heyangxinmei 第一个是:RSSI 阈值,高于该阈值与父级的连接被认为是强的 第二个是:父选择的 RSSI 阈值。 它的值应该大于 switch_rssi 第三个是:RSSI 阈值,低于该阈值节点选择具有更好 RSSI 的父节点。这个也就是决定了你的设备低于这个阈值,将会断开父节点的链接,重新寻找新的节点(信号更好的)为父节点。 其最主要决定的是第三个阈值,不建议你设置这么低的阈值-98, 这个会影响到wifi mesh数据的传输的,造成数据发送不成功等等问题。所以建议你恢复默认值就好。 对于你出现的断线问题,这个你可以打印设备端的rssi,应该是设备之间干扰什么太大,导致了信号很差。

Hi @mmrein There is nothing wrong with this, you can look at the link: https://github.com/espressif/esp-mdf/blob/master/components/mcommon/include/mdf_err.h#L115, the print here, ‘err’ print is the reason for the error. Did you compile any...

Well, thank you very much for the offer. You made the code clearer. This will be updated later.

@peterNodens You can do such a test to shield it from the inspection of the firmware header, so that the upgrade can proceed normally. But there may be a certain...

@zhuangqingshu 对于路由器 WIFI “信道13,隐藏SSID”,这个时候的话, 如果路由器设置为隐藏 ssid 并且处于 12 13 14 信道 默认情况下确实是连不上的。需要将国家码配置成手动,CN 1-13。 你可以通过 esp_wifi_set_country 这个API来设置。 更为详细的文档描述,可以查看链接:[https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/wifi.html#wi-fi-country-code](url),这里的说明。