Tian Sen Wen
Tian Sen Wen
The examples in rainmaker require the use of **Nova Home** APP for network configuration. If you do not have access to the Rainmaker cloud and want to use the BLE...
Please check again whether the esp-mesh-lite repository you are using is the latest version. I haven't encountered the mentioned issue when using rainmaker/led_light from the latest esp-mesh-lite. Additionally, the version...
可以参考如下文档章节: https://github.com/tswen/esp-mesh-lite/blob/docs/mesh_lite_LAN_OTA/components/mesh_lite/User_Guide_CN.md#esp-mesh-lite-lan-ota
其实 esp_mesh_lite_ota_from_extern_url 是一个你需要自己实现的函数,函数的用处是设备独立地从外部 URL 直接获取新版本固件并进行 OTA 的流程。 在执行 esp_mesh_lite_ota_start() 时,将该函数指针传递进去,设备会优先执行局域网 OTA(即向其上级节点请求固件),如果请求不到则会通过您传递的函数指针执行原有的 OTA 流程。 参考链接:https://github.com/espressif/esp-mesh-lite/blob/master/examples/rainmaker_led_light/components/app_rainmaker/app_rainmaker_ota_topic.c#L34
根据日志看出来是,这个根节点在 OTA 更新完成之后重启且连接了路由器,但是由于路由器下同时仍存在相同 mesh id 的其他根节点设备(有可能是有别的设备意外连接到了路由器),经过 “竞争融合” 机制,该 ROOT 相对于路由器信号强度弱于另一个根节点,所以其与路由器断开,重新去寻找新的父节点了。 如果你一定要求其作为根节点,可以在固件中使用 esp_mesh_lite_set_allowed_level(1),将其固定为根节点,它就不会因为某些机制而动态变化了。
这样还是会有可能出现根节点切换的问题。因为 esp_restart 属于软重启,软重启节点会先去连接源父节点(对于根节点来说也就是路由器),所以重启之前不管是否设置 esp_mesh_lite_set_allowed_level(1) 根节点都还是会连接路由器。之后再恢复不固定,还是有可能因为别的信号强度更好的设备连接到路由器触发融合,让这个根节点设备变成子节点。不过这种机制也是为了让拓扑更加稳定,毕竟根节点相对于路由器的信号强度越强越好嘛!
Can you provide the following information to help us better analyze: idf version and commit id: Chip used:
Currently, the esp-mesh-lite solution does not support idf5.1. You can compile with idf5.0 first. We are already working on supporting idf5.1 and will release it soon.
Hello, because Mesh nodes internally have some communication to synchronize information and maintain the Mesh network state, communication failures may occur when the network structure changes. However, there is no...
你是直接使用 mesh_local_control demo 跑的吗,外部 tcp server 的 ip 和 port 配置正确吗?如果是自己移植的 mesh_lite 组件到自己的工程,需要注意是否开启以下配置项: # LWIP CONFIG_LWIP_IP_FORWARD=y CONFIG_LWIP_IPV4_NAPT=y CONFIG_MESH_LITE_ENABLE=y