Iphone 8 will only occasionally connect to access point

QlifeDeveloper
Posts: 7
Joined: Wed Nov 09, 2022 9:02 pm

Iphone 8 will only occasionally connect to access point

Postby QlifeDeveloper » Mon May 22, 2023 2:12 pm

Sirs
I am having problems with connecting my iPhone8 to the espressif access point.
Around only one out of five attempts are successful.

I have set logging to "INFO" but the information I get does not make me wiser.

I have traversed the posts and have found an issue from 2015 reassembling this problem (https://bbs.espressif.com/viewtopic.php?t=235 )where the solution was to set beacon interval to 33ms.

Can I enable further logging to detect what is going wrong in the connection phase?

Would it be possible to insert code to dump the WIFI messages?

Thanks in advance!
Best regards
Søren

iPhone 8
IOS version 16.4.1

esp_idf_version: 4.4.3
ESP module ESP32-WROVER-E


Result of INFO logging:

When connection is unsuccessful:
W (41440) wifi:<ba-del>idx
I (41440) wifi:new:<11,0>, old:<11,0>, ap:<11,2>, sta:<0,0>, prof:11
I (41440) wifi:station: 72:33:fc:ff:f3:ef join, AID=1, bgn, 20
I (41490) WIFE: WIFI_EVENT_AP_STADISCONNECTED
I (41490) WIFE: Checking ap clients count
I (41490) WIFE: There are 1 stations connected to AP
I (41500) WIFE: Still not connected, AP mode will remain
I (41560) WIFE: WIFI_EVENT_AP_STACONNECTED
I (41580) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2
I (41590) WIFE: IP_EVENT_AP_STAIPASSIGNED
W (41760) wifi:<ba-add>idx:2 (ifx:1, 72:33:fc:ff:f3:ef), tid:0, ssn:0, winSize:64
When connection is successful:
I (1596690) wifi:new:<11,0>, old:<11,0>, ap:<11,2>, sta:<0,0>, prof:11
I (1596690) wifi:station: 72:33:fc:ff:f3:ef join, AID=1, bgn, 20
W (1596730) wifi:<ba-add>idx:2 (ifx:1, 72:33:fc:ff:f3:ef), tid:0, ssn:0, winSize:64
I (1596750) WIFE: WIFI_EVENT_AP_STACONNECTED
I (1597150) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2
I (1597150) WIFE: IP_EVENT_AP_STAIPASSIGNED

The access point is configured as this:

Code: Select all

void StartWiFiApMode(void) {
  wifi_config_t wifi_config_ap;
  wifi_config_ap.ap.authmode = WIFI_AUTH_OPEN;
  wifi_config_ap.ap.max_connection = 4;
  wifi_config_ap.ap.channel = g_ApChannelMax;
  .. ssid setup
  ESP_ERROR_CHECK_WITHOUT_ABORT(esp_wifi_set_config(WIFI_IF_AP, &wifi_config_ap));
}

QlifeDeveloper
Posts: 7
Joined: Wed Nov 09, 2022 9:02 pm

Re: Iphone 8 will only occasionally connect to access point

Postby QlifeDeveloper » Tue May 23, 2023 8:46 am

Initializing the setup structure seems to fix the problem.
I think it could be the beacon timing that is set to an arbitrary value due to the missing initialization.

Who is online

Users browsing this forum: No registered users and 65 guests