Wifi Log Message meaning

dedvalson
Posts: 22
Joined: Fri Feb 16, 2018 8:21 pm

Wifi Log Message meaning

Postby dedvalson » Tue Jul 07, 2020 7:47 pm

Hi,

I am debugging a WiFi issue and would like some understanding of the following message that comes out of the log:

Code: Select all

 wifi: new:<6,0>, old:<1,0>, ap:<255,255>, sta:<6,0>, prof:1
Is there a document somewhere that describes what the various values mean?

On the system that fails I get this. It would help a lot to understand what the 1,0 means.

Code: Select all

I (68993232) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (68993242) wifi:state: init -> auth (b0)
I (68993242) wifi:state: auth -> assoc (0)
I (68993252) wifi:state: assoc -> run (10)
I (68997302) wifi:state: run -> init (2c0)
I (68997302) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (68997302) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Wifi Log Message meaning

Postby WiFive » Tue Jul 07, 2020 9:20 pm

It means primary channel 1 secondary channel 0 (none). 2c0 might give some useful info but I don't know what it means.

Neil.Macmullen
Posts: 11
Joined: Sun Mar 10, 2019 12:48 pm

Re: Wifi Log Message meaning

Postby Neil.Macmullen » Fri Jul 23, 2021 2:15 pm

I had a search through the IDF source code (https://github.com/espressif/esp-idf) and couldn't find source for these error messages. I'm not sure if they are emitted from the ROM or included in the IDF as binaries but it's pretty frustrating. There seem to be quite a lot of google hits for
wifi: state: run -> init (2c0)
but this looks like a fairly generic failure code. Would be nice to know for sure though....

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Wifi Log Message meaning

Postby WiFive » Fri Jul 23, 2021 8:03 pm

I believe the upper byte is disconnection reason which is 2 WIFI_REASON_AUTH_EXPIRE

Who is online

Users browsing this forum: Corand, Google [Bot] and 92 guests