ESP-Mesh-Lite 70个ESP32模块组网进行OTA升级,根节点完成升级并重启后异常

BDTD-WANYAO
Posts: 7
Joined: Mon Sep 26, 2022 7:13 am

ESP-Mesh-Lite 70个ESP32模块组网进行OTA升级,根节点完成升级并重启后异常

Postby BDTD-WANYAO » Thu Dec 07, 2023 9:46 am

ESP-Mesh-Lite 70个ESP32模块组网进行OTA升级,根节点完成升级并重启后异常,网络状态变差,升级速度很慢,完成20个左右的节点升级后几乎停止升级了,请问问题可能出现在哪里。

异常日志如下:
[2023-12-07 17:41:04.517]# RECV ASCII>
[0;32mI (301806) no_router: System information, channel: 1, layer: 1, self mac: 8c:ce:4e:a6:3b:6c, parent bssid: a2:cc:d3:ae:16:af, parent rssi: -30, free heap: 152860[0m
[0;32mI (301811) no_router: child node number: 24[0m
[0;32mI (301816) no_router: Child mac: a4:e5:7c:da:ab:e8[0m
[0;32mI (301821) no_router: Child mac: 24:4c:ab:14:06:50[0m
[0;32mI (301827) no_router: Child mac: 10:97:bd:d2:d9:f8[0m
[0;32mI (301832) no_router: Child mac: 0c:dc:7e:37:70:04[0m
[0;32mI (301838) no_router: Child mac: 10:97:bd:d2:e9:64[0m
[0;32mI (301844) no_router: Child mac: 24:4c:ab:14:ce:dc[0m
[0;32mI (301849) no_router: Child mac: 10:97:bd:d2:df:e0[0m
[0;32mI (301854) no_router: Child mac: 10:97:bd:d2:82:a4[0m

[2023-12-07 17:41:05.046]# RECV ASCII>
[0;31mE (302385) ESP_Mesh_Lite_Comm: [sock=57]: sendto() has failed
error=12: Not enough space[0m
[0;31mE (302387) ESP_Mesh_Lite_Comm: [sock=57]: sendto() has failed
error=12: Not enough space[0m
[0;31mE (302393) ESP_Mesh_Lite_Comm: [sock=57]: sendto() has failed
error=12: Not enough space[0m

[2023-12-07 17:41:10.593]# RECV ASCII>
[0;31mE (307914) ESP_Mesh_Lite_Comm: [sock=57]: sendto() has failed
error=12: Not enough space[0m
[0;31mE (307915) ESP_Mesh_Lite_Comm: [sock=57]: sendto() has failed
error=12: Not enough space[0m
[0;31mE (307922) ESP_Mesh_Lite_Comm: [sock=57]: sendto() has failed
error=12: Not enough space[0m
[0;31mE (307931) ESP_Mesh_Lite_Comm: [sock=57]: sendto() has failed
error=12: Not enough space[0m
[0;31mE (307939) ESP_Mesh_Lite_Comm: [sock=57]: sendto() has failed
error=12: Not enough space[0m

[2023-12-07 17:41:11.701]# RECV ASCII>
[0;31mE (309040) ESP_Mesh_Lite_Comm: [sock=57]: sendto() has failed
error=12: Not enough space[0m
[0;31mE (309041) ESP_Mesh_Lite_Comm: [sock=57]: sendto() has failed
error=12: Not enough space[0m
[0;31mE (309048) ESP_Mesh_Lite_Comm: [sock=57]: sendto() has failed
error=12: Not enough space[0m

[2023-12-07 17:41:12.838]# RECV ASCII>
[0;31mE (310166) ESP_Mesh_Lite_Comm: [sock=57]: sendto() has failed
error=12: Not enough space[0m
[0;31mE (310167) ESP_Mesh_Lite_Comm: [sock=57]: sendto() has failed
error=12: Not enough space[0m
[0;31mE (310174) ESP_Mesh_Lite_Comm: [sock=57]: sendto() has failed
error=12: Not enough space[0m

[2023-12-07 17:41:13.758]# RECV ASCII>
[0;31mE (311098) ESP_Mesh_Lite_Comm: [sock=57]: sendto() has failed
error=12: Not enough space[0m
[0;31mE (311100) ESP_Mesh_Lite_Comm: [sock=57]: sendto() has failed
error=12: Not enough space[0m

[2023-12-07 17:41:14.665]# RECV ASCII>
[0;31mE (312012) ESP_Mesh_Lite_Comm: [sock=57]: sendto() has failed
error=12: Not enough space[0m

[2023-12-07 17:41:16.858]# RECV ASCII>
[0;31mE (314157) ESP_Mesh_Lite_Comm: [sock=57]: sendto() has failed
error=12: Not enough space[0m
[0;31mE (314158) ESP_Mesh_Lite_Comm: [sock=57]: sendto() has failed
error=12: Not enough space[0m
[0;31mE (314165) ESP_Mesh_Lite_Comm: [sock=57]: sendto() has failed
error=12: Not enough space[0m
[0;31mE (314174) ESP_Mesh_Lite_Comm: [sock=57]: sendto() has failed
error=12: Not enough space[0m
[0;31mE (314183) ESP_Mesh_Lite_Comm: [sock=57]: sendto() has failed
error=12: Not enough space[0m
[0;31mE (314192) ESP_Mesh_Lite_Comm: [sock=57]: sendto() has failed
error=12: Not enough space[0m

[2023-12-07 17:41:23.214]# RECV ASCII>
[0;31mE (320511) ESP_Mesh_Lite_Comm: [sock=57]: sendto() has failed
error=12: Not enough space[0m
[0;31mE (320512) ESP_Mesh_Lite_Comm: [sock=57]: sendto() has failed
error=12: Not enough space[0m
[0;31mE (320519) ESP_Mesh_Lite_Comm: [sock=57]: sendto() has failed
error=12: Not enough space[0m
[0;31mE (320528) ESP_Mesh_Lite_Comm: [sock=57]: sendto() has failed
error=12: Not enough space[0m
[0;31mE (320537) ESP_Mesh_Lite_Comm: [sock=57]: sendto() has failed
error=12: Not enough space[0m

ESP_TianSW
Posts: 52
Joined: Wed Sep 23, 2020 12:19 pm

Re: ESP-Mesh-Lite 70个ESP32模块组网进行OTA升级,根节点完成升级并重启后异常

Postby ESP_TianSW » Thu Dec 07, 2023 11:23 am

建议使用 LAN-OTA 进行升级,具体文档请参考:https://github.com/tswen/esp-mesh-lite/ ... te-lan-ota

BDTD-WANYAO
Posts: 7
Joined: Mon Sep 26, 2022 7:13 am

Re: ESP-Mesh-Lite 70个ESP32模块组网进行OTA升级,根节点完成升级并重启后异常

Postby BDTD-WANYAO » Fri Dec 08, 2023 8:18 am

使用的是LAN-OTA升级模式,下面的六个节点同时请求升级时就可能出现这种情况,在不升级时也有可能出现下面的日志提示空间不足,怎么样可以增大这个空间呢?



[0;31mE (9188) ESP_Mesh_Lite_Comm: Error occurred during sending: errno Not enough space[0m
[0;31mE (9198) ESP_Mesh_Lite_Comm: Error occurred during sending: errno Not enough space[0m
[0;31mE (9204) ESP_Mesh_Lite_Comm: Error occurred during sending: errno Not enough space[0m

[0;31mE (1009235) ESP_Mesh_Lite_Comm: [sock=55]: sendto() has failed error=12: Not enough space[0m

BDTD-WANYAO
Posts: 7
Joined: Mon Sep 26, 2022 7:13 am

Re: ESP-Mesh-Lite 70个ESP32模块组网进行OTA升级,根节点完成升级并重启后异常

Postby BDTD-WANYAO » Fri Dec 08, 2023 8:21 am

打开了蓝牙协议栈
[0;32mI (1202025) no_router: System information, channel: 11, layer: 1, self mac: 8c:ce:4e:a6:3b:6c, parent bssid: a2:cc:d3:ae:16:af, parent rssi: -35, free heap: 54156[0m
[0;32mI (1202030) no_router: child node number: 49[0m
[0;32mI (1202035) no_router: Child mac: 24:4c:ab:14:ce:dc[0m
[0;32mI (1202040) no_router: Child mac: 10:97:bd:d2:df:e0[0m
[0;32mI (1202046) no_router: Child mac: 24:4c:ab:14:c1:a0[0m
[0;32mI (1202052) no_router: Child mac: 10:97:bd:d2:e9:64[0m
[0;32mI (1202057) no_router: Child mac: 10:97:bd:d2:d9:f8[0m
[0;32mI (1202063) no_router: Child mac: a4:e5:7c:da:ab:e8[0m

ESP_TianSW
Posts: 52
Joined: Wed Sep 23, 2020 12:19 pm

Re: ESP-Mesh-Lite 70个ESP32模块组网进行OTA升级,根节点完成升级并重启后异常

Postby ESP_TianSW » Mon Dec 11, 2023 9:31 am

你使用的是 no_router 的示例吗,根节点不需要连接路由器的吗?
sendto() has failed
error=12: Not enough space[0m
这个提示可以忽略,一般存在于网络变更过程中,内部的一些 udp 通信失败导致的。

BDTD-WANYAO
Posts: 7
Joined: Mon Sep 26, 2022 7:13 am

Re: ESP-Mesh-Lite 70个ESP32模块组网进行OTA升级,根节点完成升级并重启后异常

Postby BDTD-WANYAO » Tue Dec 12, 2023 12:57 am

用的是 no_router 的示例,根节点连了路由器和TCP Server。
OTA升级时,父结点同时给下一层的6个节点升级就可能频繁出现Not enough space,导致升级速度严重变慢。

ESP_TianSW
Posts: 52
Joined: Wed Sep 23, 2020 12:19 pm

Re: ESP-Mesh-Lite 70个ESP32模块组网进行OTA升级,根节点完成升级并重启后异常

Postby ESP_TianSW » Wed Dec 13, 2023 3:43 am

如果连接路由器的话,建议使用 mesh_local_control 示例。你可以保存完整的日志文件进行上传。

Who is online

Users browsing this forum: No registered users and 12 guests