Iphone 8 will only occasionally connect to access point
Posted: 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:
The access point is configured as this:
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:
When connection is successful:W (41440) wifi:<ba-del>idx
I (41440) wifi<11,0>, old:<11,0>, ap:<11,2>, sta:<0,0>, prof:11
I (41440) wifi 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
I (1596690) wifi<11,0>, old:<11,0>, ap:<11,2>, sta:<0,0>, prof:11
I (1596690) wifi 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));
}