Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ESP-WIFI-MESH] When the root node is turn ON/OFF random time, Mesh switch will go into a hung state after some time, triggering the watchdog or permanently hanging. (IDFGH-14434) #15214

Open
3 tasks done
andy-danieal opened this issue Jan 15, 2025 · 10 comments
Assignees
Labels
Status: Reviewing Issue is being reviewed Type: Bug bugs in IDF

Comments

@andy-danieal
Copy link

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

v5.3.2-1-g9a6aba7401

Operating System used.

Windows

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

CMD

What is the expected behavior?


�[0;33mW (02:03:31.931) [MESH-EVENT]: <MESH_EVENT_ROUTING_TABLE_ADD>add 1, new:4, layer:4�[0m
W (7414911) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:225, xseqno:187, no_wnd_count:0, timeout_count:0
W (7416712) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:225, xseqno:187, no_wnd_count:0, timeout_count:1
W (7418513) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:225, xseqno:187, no_wnd_count:0, timeout_count:2
W (7420314) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:225, xseqno:187, no_wnd_count:0, timeout_count:3
W (7422115) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:225, xseqno:187, no_wnd_count:0, timeout_count:4
W (7423916) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:225, xseqno:187, no_wnd_count:0, timeout_count:5
W (7425717) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:225, xseqno:187, no_wnd_count:0, timeout_count:6
W (7427520) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:225, xseqno:187, no_wnd_count:0, timeout_count:7
W (7429321) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:225, xseqno:187, no_wnd_count:0, timeout_count:8
W (7431122) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:225, xseqno:187, no_wnd_count:0, timeout_count:9
W (7432923) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:225, xseqno:187, no_wnd_count:0, timeout_count:10
W (7434724) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:225, xseqno:187, no_wnd_count:0, timeout_count:11
W (7436525) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:225, xseqno:187, no_wnd_count:0, timeout_count:12
W (7438326) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:225, xseqno:187, no_wnd_count:0, timeout_count:13
W (7440127) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:225, xseqno:187, no_wnd_count:0, timeout_count:14
W (7441928) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:225, xseqno:187, no_wnd_count:0, timeout_count:15
W (7443729) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:225, xseqno:187, no_wnd_count:0, timeout_count:16
W (7445530) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:225, xseqno:187, no_wnd_count:0, timeout_count:17
W (7447331) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:225, xseqno:187, no_wnd_count:0, timeout_count:18
W (7449132) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:225, xseqno:187, no_wnd_count:0, timeout_count:19
W (7450933) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:225, xseqno:187, no_wnd_count:0, timeout_count:20
W (7452734) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:225, xseqno:187, no_wnd_count:0, timeout_count:21
W (7454535) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:225, xseqno:187, no_wnd_count:0, timeout_count:22
�[0;33mW (02:04:36.389) [MESH-EVENT]: <MESH_EVENT_ROUTING_TABLE_REMOVE>remove 1, new:3, layer:4�[0m
�[0;33mW (02:05:31.447) [PACKET]: Send command to gateway :- a0:76:4e:8c:e9:33 �[0m
Touch Invalid
�[0;33mW (02:05:31.998) [PACKET]: Send command to gateway :- a0:76:4e:8c:e9:33 �[0m
�[0;33mW (02:05:32.162) [PACKET]: Send command to gateway :- a0:76:4e:8c:e9:33 �[0m
�[0;33mW (02:05:32.476) [PACKET]: Send command to gateway :- a0:76:4e:8c:e9:33 �[0m
Touch Invalid
Touch Invalid
Touch Invalid
�[0;33mW (02:05:33.193) [PACKET]: Send command to gateway :- a0:76:4e:8c:e9:33 �[0m
Touch Invalid
�[0;33mW (02:05:34.984) [PACKET]: Send command to gateway :- a0:76:4e:8c:e9:33 �[0m
�[0;33mW (02:05:35.693) [PACKET]: Send command to gateway :- a0:76:4e:8c:e9:33 �[0m
�[0;33mW (02:05:35.882) [PACKET]: Send command to gateway :- a0:76:4e:8c:e9:33 �[0m
�[0;33mW (02:05:36.227) [PACKET]: Send command to gateway :- a0:76:4e:8c:e9:33 �[0m
�[0;33mW (02:05:36.434) [PACKET]: Send command to gateway :- a0:76:4e:8c:e9:33 �[0m
�[0;33mW (02:05:36.925) [PACKET]: Send command to gateway :- a0:76:4e:8c:e9:33 �[0m
�[0;33mW (02:05:37.295) [PACKET]: Send command to gateway :- a0:76:4e:8c:e9:33 �[0m
�[0;33mW (02:05:37.531) [PACKET]: Send command to gateway :- a0:76:4e:8c:e9:33 �[0m
�[0;33mW (02:05:37.797) [PACKET]: Send command to gateway :- a0:76:4e:8c:e9:33 �[0m
W (7540360) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:0, xseqno:201, no_wnd_count:0, timeout_count:0
W (7542160) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:0, xseqno:201, no_wnd_count:0, timeout_count:1
�[0;31mE (02:05:41.399) [PACKET]: MESH ERROR:- 0x400A�[0m
�[0;33mW (02:05:41.514) [APP_UTILS]: Device was not connected to MESH Network.�[0m
�[0;33mW (02:05:41.723) [APP_UTILS]: Device was not connected to MESH Network.�[0m
�[0;33mW (02:05:42.053) [APP_UTILS]: Device was not connected to MESH Network.�[0m
�[0;33mW (02:05:42.365) [APP_UTILS]: Device was not connected to MESH Network.�[0m
�[0;33mW (02:05:42.665) [APP_UTILS]: Device was not connected to MESH Network.�[0m
�[0;33mW (02:05:42.980) [APP_UTILS]: Device was not connected to MESH Network.�[0m
�[0;33mW (02:05:43.260) [APP_UTILS]: Device was not connected to MESH Network.�[0m
�[0;33mW (02:05:43.514) [APP_UTILS]: Device was not connected to MESH Network.�[0m
�[0;33mW (02:05:43.835) [APP_UTILS]: Device was not connected to MESH Network.�[0m
�[0;33mW (02:05:44.129) [APP_UTILS]: Device was not connected to MESH Network.�[0m
�[0;33mW (02:05:44.469) [APP_UTILS]: Device was not connected to MESH Network.�[0m
Touch Invalid
�[0;33mW (02:05:45.153) [APP_UTILS]: Device was not connected to MESH Network.�[0m
�[0;33mW (02:05:45.498) [APP_UTILS]: Device was not connected to MESH Network.�[0m
�[0;33mW (02:05:45.849) [APP_UTILS]: Device was not connected to MESH Network.�[0m
�[0;33mW (02:05:46.373) [APP_UTILS]: Device was not connected to MESH Network.�[0m
�[0;33mW (02:05:46.716) [APP_UTILS]: Device was not connected to MESH Network.�[0m
�[0;33mW (02:05:46.958) [APP_UTILS]: Device was not connected to MESH Network.�[0m
�[0;33mW (02:05:47.168) [APP_UTILS]: Device was not connected to MESH Network.�[0m
�[0;33mW (02:05:47.358) [APP_UTILS]: Device was not connected to MESH Network.�[0m
�[0;33mW (02:05:47.549) [APP_UTILS]: Device was not connected to MESH Network.�[0m
�[0;33mW (02:05:47.729) [APP_UTILS]: Device was not connected to MESH Network.�[0m
�[0;33mW (02:05:48.069) [APP_UTILS]: Device was not connected to MESH Network.�[0m
W (7553778) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:2
W (7555579) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:3
W (7557380) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:4
W (7559181) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:5
W (7560982) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:6
�[0;33mW (02:06:00.887) [APP_UTILS]: Device was not connected to MESH Network.�[0m
�[0;33mW (02:06:01.187) [APP_UTILS]: Device was not connected to MESH Network.�[0m
�[0;33mW (02:06:01.422) [APP_UTILS]: Device was not connected to MESH Network.�[0m
�[0;33mW (02:06:01.673) [APP_UTILS]: Device was not connected to MESH Network.�[0m
�[0;33mW (02:06:01.873) [APP_UTILS]: Device was not connected to MESH Network.�[0m
W (7562783) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:7
�[0;33mW (02:06:02.053) [APP_UTILS]: Device was not connected to MESH Network.�[0m
�[0;33mW (02:06:02.244) [APP_UTILS]: Device was not connected to MESH Network.�[0m
�[0;33mW (02:06:02.413) [APP_UTILS]: Device was not connected to MESH Network.�[0m
Touch Invalid
�[0;33mW (02:06:02.803) [APP_UTILS]: Device was not connected to MESH Network.�[0m
�[0;33mW (02:06:03.547) [APP_UTILS]: Device was not connected to MESH Network.�[0m
W (7564584) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:8
W (7566385) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:9
W (7568186) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:10
W (7569987) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:11
W (7571788) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:12
W (7573589) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:13
W (7575390) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:14
W (7577191) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:15
�[0;33mW (02:06:18.211) [APP]: Writing Flash...�[0m
W (7578992) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:16
W (7580793) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:17
W (7582594) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:18
W (7584395) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:19
W (7586196) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:20
W (7587997) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:21
W (7589798) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:22
W (7591599) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:23
W (7593400) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:24
W (7595201) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:25
�[0;33mW (02:06:34.495) [APP]: Retrying Mesh connection ...�[0m
�[0;33mW (02:06:34.496) [MESH-EVENT]: <MESH_EVENT_PARENT_DISCONNECTED>reason:0�[0m
�[0;33mW (02:06:34.504) [MESH-EVENT]: <MESH_EVENT_PARENT_DISCONNECTED>reason:8�[0m
�[0;33mW (02:06:34.534) [MESH-EVENT]: <MESH_EVENT_ROOT_ADDRESS>root address:a0:76:4e:8c:e9:33�[0m
�[0;33mW (02:06:34.535) [APP_UTILS]: Device was not connected to MESH Network.�[0m
�[0;33mW (02:06:34.554) [MESH-EVENT]: <MESH_EVENT_PARENT_CONNECTED>layer:4-->4, parent:a0:76:4e:8c:ee:95<Layer>, ID:56:49:42:45:e9:32, duty:50�[0m
�[0;33mW (02:06:34.556) [MESH-EVENT]: <MESH_EVENT_TODS_REACHABLE>state:0�[0m
�[0;33mW (02:06:34.563) [MESH-EVENT]: <MESH_EVENT_ROOT_ADDRESS>root address:a0:76:4e:8c:e9:33�[0m
�[0;33mW (02:06:34.572) [PACKET]: Send command to gateway :- a0:76:4e:8c:e9:33 �[0m
W (7597002) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:26
W (7598803) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:27
W (7600604) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:28
W (7602405) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:29
W (7604206) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:30
W (7606007) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:31
W (7607808) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:32
W (7609609) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:33
W (7611410) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:34
W (7613211) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:35
W (7615012) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:36
W (7616813) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:37
W (7618614) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:38
W (7620415) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:39
W (7622216) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:40
W (7624017) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:41
W (7625818) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:42
W (7627619) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:43
W (7629420) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:44
W (7631221) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:45
W (7633022) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:46
W (7634823) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:47
W (7636624) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:48
W (7638425) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:49
W (7640226) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:50
W (7642027) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:51
W (7643828) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:52
W (7645629) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:53
W (7647430) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:54
W (7649231) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:55
W (7651032) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:56
W (7652833) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:57
W (7654634) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:58
W (7656435) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:59
W (7658236) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:60
W (7660037) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:61
W (7661838) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:62
W (7663639) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:63
W (7665440) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:64
W (7667241) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:65
W (7669042) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:66
W (7670843) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:67
W (7672644) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:68
W (7674445) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:69
W (7676246) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:70
W (7678047) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:71
W (7679848) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:72
W (7681649) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:73
W (7683450) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:74
W (7685251) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:75
W (7687052) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:76
W (7688853) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:77
W (7690654) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:78
W (7692455) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:79
W (7694256) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:80
W (7696057) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:81
W (7697858) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:82
W (7699659) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:83
W (7701460) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:84
W (7703261) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:85
W (7705062) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:86
W (7706863) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:87
W (7708664) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:88
W (7710465) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:89
W (7712266) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:90
W (7714067) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:91
W (7715868) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:92
W (7717669) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:93
W (7719470) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:94
W (7721271) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:95
W (7723072) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:96
W (7724873) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:97
W (7726674) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:98
W (7728475) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:99
W (7730276) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:100
W (7732077) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:101
W (7733878) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:102
W (7735679) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:103
W (7737480) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:104
W (7739281) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:105
W (7741082) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:106
Touch Invalid
�[0;33mW (02:09:02.072) [PACKET]: Send command to gateway :- a0:76:4e:8c:e9:33 �[0m
W (7742883) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:107
W (7744684) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:108
W (7746485) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:109
W (7748286) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:110
W (7750087) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:111
Touch Invalid
Touch Invalid
Touch Invalid
Touch Invalid
Touch Invalid
W (7751888) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:112
W (7753689) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:113
Touch Invalid
W (7755490) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:114
W (7757291) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:115
Touch Invalid
W (7759092) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:116
W (7760893) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:117
W (7762694) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:118
W (7764495) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:119
W (7766296) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:120
W (7768097) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:121
W (7769898) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:122
Touch Invalid
W (7771699) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:123
W (7773500) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:124
W (7775301) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:125
W (7777102) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:126
W (7778903) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:127
W (7780704) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:128
W (7782505) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:129
W (7784306) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:130
W (7786107) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:131
W (7787908) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:132
W (7789709) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:133
W (7791510) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:134
W (7793311) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:135
W (7795112) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:136
W (7796913) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:137
W (7798714) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:138
W (7800515) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:139
W (7802316) mesh: [mesh_schedule.c,3130] [WND-RX]max_wnd:7, 1800 ms timeout, seqno:923, xseqno:202, no_wnd_count:0, timeout_count:140
�[0;31mE (7802832) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:�[0m
�[0;31mE (7802832) task_wdt:  - main (CPU 0)�[0m
�[0;31mE (7802832) task_wdt: Tasks currently running:�[0m
�[0;31mE (7802832) task_wdt: CPU 0: IDLE�[0m
�[0;31mE (7802832) task_wdt: Aborting.�[0m
�[0;31mE (7802832) task_wdt: Print CPU 0 (current core) backtrace�[0m




Backtrace: 0x4002b80b:0x3ffdab10 0x4009bd4b:0x3ffdab30 0x4002ebbd:0x3ffdab50 0x4002dc42:0x3ffdab70
``

### What is the actual behavior?

If we set block time 2 sec then why is triggering happening in watchdog state.

### Steps to reproduce.

Mesh root node power on/off sometime

### Build or installation Logs.

_No response_

### More Information.

_No response_
@andy-danieal andy-danieal added the Type: Bug bugs in IDF label Jan 15, 2025
@github-actions github-actions bot changed the title [ESP-WIFI-MESH] When the root node is turn ON/OFF random time, Mesh switch will go into a hung state after some time, triggering the watchdog or permanently hanging. [ESP-WIFI-MESH] When the root node is turn ON/OFF random time, Mesh switch will go into a hung state after some time, triggering the watchdog or permanently hanging. (IDFGH-14434) Jan 15, 2025
@espressif-bot espressif-bot added the Status: Opened Issue is new label Jan 15, 2025
@zhangyanjiaoesp
Copy link
Collaborator

@andy-danieal

If we set block time 2 sec then why is triggering happening in watchdog state.

Please take a look at this line:

* - Suggest to set the blocking time to at least 5s when the environment is poor. Otherwise, esp_mesh_send() may timeout frequently.

Please increase the block time and try again.

@espressif-bot espressif-bot added Status: In Progress Work is in progress and removed Status: Opened Issue is new labels Jan 16, 2025
@andy-danieal
Copy link
Author

andy-danieal commented Jan 16, 2025

@zhangyanjiaoesp, Watchdog timer set at one minute and esp block time is only 2 seconds. and MESH_TIMEOUT is ok for us but why does WDT timeout trigger ?

If increased timing Block time then other application process was impacted. Can you please provide other alternative non-blocking way to send packet on root node.

@zhangyanjiaoesp
Copy link
Collaborator

@zhangyanjiaoesp, Watchdog timer set at one minute and esp block time is only 2 seconds. then why does WDT timeout trigger ?

It seems that esp_mesh_send() did not return in time, causing the watchdog to trigger.

If increased timing Block time then other application process was impacted. Can you other alternative way non-blocking way to send packet on root node.

If you want to set the mesh send to non-blocking, you can set the data.tos = MESH_TOS_DEF

@andy-danieal
Copy link
Author

andy-danieal commented Jan 17, 2025

@zhangyanjiaoesp, I have replaced MESH_TOS_P2P to MESH_TOS_DEF. but getting MESH ERROR:- 0x4008

    mesh_data_t data_out;

    data_out.data  = (uint8_t *)data;
    data_out.size  = data_length;
    data_out.proto = MESH_PROTO_BIN;
    data_out.tos   = MESH_TOS_DEF; //MESH_TOS_P2P

   return esp_mesh_send(NULL, &data_out, MESH_DATA_P2P | MESH_DATA_NONBLOCK, NULL, 0);

Can you explain why, if block time is two seconds, the esp_mesh_send() function doesn't return?

@zhangyanjiaoesp
Copy link
Collaborator

  1. If you set the to address to NULL, then data.tos must be MESH_TOS_P2P. Please read the description section of the API carefully.

    * - If the packet is to the root, set this parameter to NULL.

    * - If the packet is to the root, MESH_TOS_P2P must be set to ensure reliable transmission.

  2. if block time is two seconds, the esp_mesh_send() function doesn't return?

I don’t know why there was no return in your case. We need to find the root cause of the issue.

@andy-danieal
Copy link
Author

@zhangyanjiaoesp, At the end, we can't send ROOT device Non-block packets via esp_mesh_send function.

On field device was freezed state. We need your help to debug this scenario to identify main issue?

@zhangyanjiaoesp
Copy link
Collaborator

@andy-danieal

  1. What does your mesh network structure look like ?
  2. How is your mesh configured ?
  3. When do you call esp_mesh_send ?
  4. Can you describe the scenario when the issue occurs ?

It would be even better if you could provide a demo to reproduce the issue.

@andy-danieal
Copy link
Author

@zhangyanjiaoesp

1. What does your mesh network structure look like ?

Image

2. How is your mesh configured ?
Fixed Root Node and No Router settings

3. When do you call esp_mesh_send ?
When touch switch then send esp_mesh_send package

4.Can you describe the scenario when the issue occurs ?
Random time ON/OFF gateway and switch touch then observe that issue.

@zhangyanjiaoesp
Copy link
Collaborator

@andy-danieal can you provide a demo to reproduce the issue?

@espressif-bot espressif-bot added Status: Reviewing Issue is being reviewed and removed Status: In Progress Work is in progress labels Jan 24, 2025
@zhangyanjiaoesp
Copy link
Collaborator

@andy-danieal
Do you still have this issue? If no, can we close it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Reviewing Issue is being reviewed Type: Bug bugs in IDF
Projects
None yet
Development

No branches or pull requests

3 participants