Wifi warnings log output decoding

AshUK_
Posts: 3
Joined: Tue Jul 28, 2020 1:00 pm

Wifi warnings log output decoding

Postby AshUK_ » Tue Apr 13, 2021 5:26 pm

Is there any information on the meaning or decoding of the wifi log messages.

When starting an application you see some obvious debug output:

Code: Select all

I (1426) wifi:wifi driver task: 3ffdfbec, prio:23, stack:6656, core=0
I (1454) wifi:wifi firmware version: 4809a2e
I (1454) wifi:wifi certification version: v7.0
I (1454) wifi:config NVS flash: enabled
I (1454) wifi:config nano formating: disabled
I (1458) wifi:Init data frame dynamic rx buffer num: 16
I (1463) wifi:Init management frame dynamic rx buffer num: 16
I (1468) wifi:Init management short buffer num: 32
I (1473) wifi:Init static tx buffer num: 8
I (1477) wifi:Init static rx buffer size: 1600
I (1481) wifi:Init static rx buffer num: 8
I (1484) wifi:Init dynamic rx buffer num: 16
I (00:00:00.693) wifi_init: rx ba win: 6
I (00:00:00.696) wifi_init: tcpip mbox: 32
I (00:00:00.701) wifi_init: udp mbox: 6
I (00:00:00.705) wifi_init: tcp mbox: 6
I (00:00:00.710) wifi_init: tcp tx win: 5744
I (00:00:00.714) wifi_init: tcp rx win: 5744
I (00:00:00.719) wifi_init: tcp mss: 1436
I (00:00:00.724) wifi_init: WiFi IRAM OP enabled
I (1621) wifi:mode : sta (c4:dd:57:62:55:0c)
I (1621) wifi:enable tsf
I (3737) wifi:new:<10,0>, old:<1,0>, ap:<255,255>, sta:<10,0>, prof:1
I (3738) wifi:state: init -> auth (b0)
I (3743) wifi:state: auth -> assoc (0)
I (3748) wifi:state: assoc -> run (10)
W (4294) wifi:<ba-add>idx:0 (ifx:0, 70:4f:57:ef:ec:a1), tid:7, ssn:2, winSize:64
I (4296) wifi:connected with OvonDevice, aid = 1, channel 10, BW20, bssid = 70:4f:57:ef:ec:a1
I (4299) wifi:security: WPA2-PSK, phy: bgn, rssi: -50
I (4308) wifi:pm start, type: 1
The majority of the above information output is self explanatory to anyone who has some knowledge of esp wifi chips and 802.11 tech.

Code: Select all

W (124044) wifi:<ba-del>idx
W (124046) wifi:<ba-del>idx
W (144947) wifi:<ba-add>idx:0 (ifx:0, 70:4f:57:ef:ec:a1), tid:0, ssn:344, winSize:64
W (196889) wifi:<ba-del>idx
W (256737) wifi:<ba-add>idx:0 (ifx:0, 70:4f:57:ef:ec:a1), tid:0, ssn:580, winSize:64
W (268262) wifi:<ba-add>idx:1 (ifx:0, 70:4f:57:ef:ec:a1), tid:7, ssn:4, winSize:64
W (327482) wifi:<ba-del>idx
W (327485) wifi:<ba-del>idx
W (776687) wifi:<ba-add>idx:0 (ifx:0, 70:4f:57:ef:ec:a1), tid:0, ssn:915, winSize:64
W (871815) wifi:<ba-add>idx:1 (ifx:0, 70:4f:57:ef:ec:a1), tid:6, ssn:7, winSize:64
W (893321) wifi:<ba-add>idx:2 (ifx:0, 70:4f:57:ef:ec:a1), tid:7, ssn:9, winSize:64
W (1018870) wifi:<ba-del>idx
W (1018872) wifi:<ba-del>idx
W (1018874) wifi:<ba-del>idx
W (1191684) wifi:<ba-add>idx:0 (ifx:0, 70:4f:57:ef:ec:a1), tid:0, ssn:1155, winSize:64
W (1231697) wifi:<ba-del>idx
I am curious as to what these warnings mean but also on a more general note, is there any documentation provided that helps decode the log output of the wifi module ?

rafalino
Posts: 4
Joined: Fri Dec 20, 2019 8:13 am

Re: Wifi warnings log output decoding

Postby rafalino » Tue Jun 29, 2021 11:59 am

Hello ,
Does anyone know where we can get this info ?
I have my ESP32 board with IDF V4.3 disconnecting randomly from the AP.
I want to debug this issue but can't understand the ESP32 Wi-Fi logs.

Thanks in advance ,
Rafalino

talijancic
Posts: 3
Joined: Mon Jan 18, 2021 1:37 pm

Re: Wifi warnings log output decoding

Postby talijancic » Wed Jul 28, 2021 10:19 pm

Hello:

I have the same problem. My code works fine on idf v4.2. But on idf v4.3, I get the same new warning messages:

[Codebox]
I (7212) wifi:mode : sta (cc:50:e3:82:f1:14)
I (7212) wifi:enable tsf
I (7212) [app_main]: Waiting for wifi connection...
I (7212) [wifi_event_handler]: WIFI_EVENT_STA_START

I (7222) [wifi_event_handler]: Scan trigered

W (10372) [wifi_event_handler]: SYSTEM_EVENT_SCAN_DONE

I (10402) wifi:new:<2,0>, old:<1,0>, ap:<255,255>, sta:<2,0>, prof:1
I (10402) wifi:state: init -> auth (b0)
I (10412) wifi:state: auth -> assoc (0)
I (10422) wifi:state: assoc -> run (10)
I (10442) wifi:connected with Agenpia, aid = 3, channel 2, BW20, bssid = 58:c1:7a:d7:1b:f0
I (10442) wifi:security: WPA2-PSK, phy: bgn, rssi: -59
I (10452) wifi:pm start, type: 1

I (10452) [wifi_event_handler]: WIFI_EVENT_STA_CONNECTED
W (10452) wifi:<ba-add>idx:0 (ifx:0, 58:c1:7a:d7:1b:f0), tid:6, ssn:2, winSize:64
I (10492) wifi:AP's beacon interval = 102400 us, DTIM period = 1
I (11022) esp_netif_handlers: sta ip: 192.168.10.214, mask: 255.255.255.0, gw: 192.168.10.1
W (11022) [wifi_event_handler]: WIFI_EVENT_STA_GOT_IP - ip:192.168.10.214

I (12032) [SNTP_ServerInit]: Initializing SNTP server...

W (15032) wifi:<ba-add>idx:1 (ifx:0, 58:c1:7a:d7:1b:f0), tid:0, ssn:0, winSize:64
W (15112) wifi:<ba-add>idx:2 (ifx:0, 58:c1:7a:d7:1b:f0), tid:5, ssn:0, winSize:64

[/Codebox]

I can't already solve this problem. Could you fix it?

Best regards!

Ivan Talijancic

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

Re: Wifi warnings log output decoding

Postby WiFive » Thu Jul 29, 2021 3:14 am

These block ack related messages should probably be at debug log level

Who is online

Users browsing this forum: No registered users and 328 guests