Page 1 of 1

Station device joins and immediately leaves or is deleted

Posted: Tue Feb 22, 2022 5:41 am
by happyCow08
I have created my app based on the Wifi softAP example and am seeing an issue when the device I am working with joins the network. The device is a non-esp32 device and it seems like it either immediately leaves or is kicked off the wifi network a couple of seconds after it joins.

This device can stay connected to other wifi networks such as my router and the mobile hotspot on my PC. Also, other wifi devices can stay connected to the softAP based application, just not the device I have to work with :-(

Here is the log output:

Code: Select all

I (1781) wifiAP: wifi_init_softap finished. SSID:ABCDEF password:abcdefghijkl channel:1
D (3241) wifi:ap recv assoc/reassoc request
I (3241) wifi:new:<1,0>, old:<1,1>, ap:<1,1>, sta:<255,255>, prof:1
V (3241) wifi:ht20 freq=2412, chan=1
D (3241) wifi:bss=0x3fc99200, resp=16 join
I (3241) wifi:station: 00:0a:bc:de:12:34 join, AID=1, bgn, 20
D (3251) wifi:join success, ap send assoc response
D (3291) event: running post WIFI_EVENT:14 with handler 0x4200767c and context 0x3fca643c on loop 0x3fc9d8e0

I (3291) wifiAP: station 00:0a:bc:de:12:34 join, AID=1
W (3471) wifi:<ba-add>idx:2 (ifx:1, 00:0a:bc:de:12:34), tid:0, ssn:0, winSize:64
D (3481) esp_netif_lwip: esp_netif_get_ip_info esp_netif:0x3fc9e808
D (3541) esp_netif_lwip: esp_netif_get_ip_info esp_netif:0x3fc9e808
I (3541) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2
D (3551) event: running post IP_EVENT:2 with handler 0x4200763a and context 0x3fca6470 on loop 0x3fc9d8e0

I (3561) wifiAP: IP Event 1007184200 2
W (13711) wifi:<ba-del>idx
D (202941) wifi:ap recv assoc/reassoc request
I (202941) wifi:new:<1,1>, old:<1,0>, ap:<1,1>, sta:<255,255>, prof:1
V (202941) wifi:ht40u freq=2422, chan=1
D (202951) wifi:bss=0x3fc98de4, resp=16 join
I (202951) wifi:station: 11:22:33:44:55:66 join, AID=2, bgn, 40U
D (202961) wifi:join success, ap send assoc response
D (202971) event: running post WIFI_EVENT:14 with handler 0x4200767c and context 0x3fca643c on loop 0x3fc9d8e0

I (202981) wifiAP: station 11:22:33:44:55:66 join, AID=2
D (203111) esp_netif_lwip: esp_netif_get_ip_info esp_netif:0x3fc9e808
D (203311) esp_netif_lwip: esp_netif_get_ip_info esp_netif:0x3fc9e808
I (203311) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.4
D (203311) event: running post IP_EVENT:2 with handler 0x4200763a and context 0x3fca6470 on loop 0x3fc9d8e0

I (203321) wifiAP: IP Event 1007184200 2
W (203911) wifi:<ba-add>idx:2 (ifx:1, 11:22:33:44:55:66), tid:0, ssn:14, winSize:64
The device I am testing with is the first one that connects to the network and then you can see the "<ba-del> idx" message. The second one that joins and it stays connected is my PC.

I am not sure where the "<ba-add>" and "<ba-del>" messages come from. I have been trying to troubleshoot this for days but cannot get a handle on it. Any help or pointers are very much appreciated.

Thanks.

Re: Station device joins and immediately leaves or is deleted

Posted: Sun Feb 04, 2024 6:52 am
by kevin4dhd
any solution? I have the same problem

Re: Station device joins and immediately leaves or is deleted

Posted: Wed Mar 27, 2024 2:09 pm
by DrMickeyLauer
I have the same problems. Note that I have configured the number of simultaneous connections to 1, I don't know whether this is the problem.

It is not limited to one set of peripherals. I have this behavior with both Linux and macOS machines. Usually, everything works stable, but at some point of time, we move into an DEAUTH/AUTH loop, where the station leaves and immediately rejoins.

@the nice folks from Espressif: Is there a way to debug this? Shall I open a bug @ ESP-IDF github?

Re: Station device joins and immediately leaves or is deleted

Posted: Thu Mar 28, 2024 3:51 am
by chegewara
I would suggest to test with different channel. Maybe channel 1 is crowded.
It seems it is working with band ht40u and failing with ht20, maybe thats the clue?

Just an observation.