Open krupis opened 2 years ago
@krupis has the DUT lost power during the weeks it was up.Next time this issue occurs can we have a sniffer capture to see where the issue is.
Yes the device had lost the power multiple times as I was messing around with the device. I have rebooted it a couple of times, powercycled and etc... Can you clarify what exactly do you refer to as a sniffer capture? How can I do that?
@krupis by sniffer capture,I meant the wireless sniffer,We will be able to see the packets that are going in the air.
If you have a linux laptop,we can take the capture.
You will have to install wireshark on your laptop and run the following script.
killall wpa_supplicant
ifconfig
@nishanth-radja I think it is possible that the Wi-Fi NVS broken when power down suddenly. @nishanth-radja I think we can do some power down test, and dump the SSID, password, PMK every time.
@jack0c sure, will try to repro this issue.
@krupis can you also pls mention the IDF version used?
this is def related to NVS, I had the same issue and then I erased NVS using the nvs_flash_erase() function on startup and it seems to work fine
I have been using my device in AP_STA mode for a few weeks and did not have any issues. Today, I have turned ON the device and noticed that my phone can no longer connect to the AP. Nothing has changed in the code. I get the following logs on the serial monitor:
I have tried multiple phones and computers and none of them could connect to the AP.
The function that I use to initialise the wifi in AP_STA mode:
I have decided to change the wifi password
After chaning the password I was able to connect to the AP without any issues.
What is the possible cause of this error? Is it possible that wifi messed up if the device had lost power during the wifi initialization once? What are other possible reasons?