ESP32 freezed : "wifi: TX Q not empty"

pranava
Posts: 3
Joined: Tue Dec 04, 2018 10:58 am

ESP32 freezed : "wifi: TX Q not empty"

Postby pranava » Tue Dec 04, 2018 11:19 am

Hi,
we are using ESP32 (LOLIN D32 board) for BLE to Wifi gateway application. After running for few hours , some devices are hanging . Upon checking serial logs, we found that it prints message from Wifi library "TX Q not empty". When this situation occurs, we observed that CPU is in dead loop and ESP32 is hot. A simple reset works and ESP will reconnect to Wifi after reboot. Can you explain possible workaround or fix?

1. We searched for whole library, we could not find message "TX Q not empty"
2. when this condition occurs, watchdog does not trigger.
3. if there is no workaround for this, how can we trigger watchdog in this situation so that device simply reboots?


W (150341100) wifi: TX Q not empty: 14888500
W (150346100) wifi: TX Q not empty: 14889000
W (150351100) wifi: TX Q not empty: 14889500
W (150356100) wifi: TX Q not empty: 14890000
W (150361100) wifi: TX Q not empty: 14890500
W (150366100) wifi: TX Q not empty: 14891000
W (150371100) wifi: TX Q not empty: 14891500
W (150376100) wifi: TX Q not empty: 14892000
W (150381100) wifi: TX Q not empty: 14892500
W (150386100) wifi: TX Q not empty: 14893000

anandvilayil
Posts: 22
Joined: Mon Apr 30, 2018 12:14 pm

Re: ESP32 freezed : "wifi: TX Q not empty"

Postby anandvilayil » Fri Dec 28, 2018 5:45 am

hi,

i am also facing the same issue, once the mqtt publish got stuck, then next esp_restart onwards its shows like this "TX Q not empty".
and its not restarting also. how to solve this issue ?? anybody has any idea??

pranava
Posts: 3
Joined: Tue Dec 04, 2018 10:58 am

Re: ESP32 freezed : "wifi: TX Q not empty"

Postby pranava » Fri Dec 28, 2018 6:39 am

anandvilayil wrote:
Fri Dec 28, 2018 5:45 am
hi,

i am also facing the same issue, once the mqtt publish got stuck, then next esp_restart onwards its shows like this "TX Q not empty".
and its not restarting also. how to solve this issue ?? anybody has any idea??
Hi Anand,
We are not getting this error anymore. In menuconfig we gave performance preference of wifi/bluetooth coexistence to wifi. And also in LWIP setting we enabled "Support LWIP socked select() only".

anandvilayil
Posts: 22
Joined: Mon Apr 30, 2018 12:14 pm

Re: ESP32 freezed : "wifi: TX Q not empty"

Postby anandvilayil » Fri Dec 28, 2018 8:33 am

hi pranava,

thanks for your replay,
one more doubt before occurring this situations did your esp32 missed any wifi send event?,
just like mine. once esp32 misses the mqtt publish(it might blocked in some lower layer or queue) then its occuring.

pranava
Posts: 3
Joined: Tue Dec 04, 2018 10:58 am

Re: ESP32 freezed : "wifi: TX Q not empty"

Postby pranava » Fri Dec 28, 2018 10:13 am

anandvilayil wrote:
Fri Dec 28, 2018 8:33 am
hi pranava,

thanks for your replay,
one more doubt before occurring this situations did your esp32 missed any wifi send event?,
just like mine. once esp32 misses the mqtt publish(it might blocked in some lower layer or queue) then its occuring.
Hi anand,
Our esp32 does disconnected from wifi very offen and it will reconnect automatically, Once wifi disconnected, then mqtt will also disconnect. It seems we both have same problem. If you got any solution to this, please let me know.

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], permal and 22 guests