Connection with Apple devices not working in AP mode

ScottR
Posts: 14
Joined: Wed Dec 03, 2014 10:29 pm

Connection with Apple devices not working in AP mode

Postby ScottR » Mon Mar 02, 2015 12:32 pm

I have noticed in my testing of the IoT_Demo code that SDK0.9.3 was the last version that would connect to mobile Apple devices in AP mode. Since SDK0.9.4 I cannot get Apple mobile devices to connect in AP mode. They show the familiar blue check mark beside the network name "ESPXXXX", but the wifi symbol on the Apple device does not appear, indicating that the actual wifi connection is not being used.

SDK0.9.3 and lower OK

SDK0.9.4 and higher
iPhone 5c, 4, iPad2, iPod5 will not connect in AP mode.
iPhone 3GS (with old OS - not sure which version right now) works OK.

Feedback on UART does not indicate any problems and shows a connection, but it doesn't work.

Scott.

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: Connection with Apple devices not working in AP mode

Postby ESP_Faye » Tue Mar 03, 2015 7:26 pm

Hi,

Thanks for bug reporting !

we will fix it ASAP.

Anki
Posts: 25
Joined: Thu Apr 09, 2015 3:00 am

Re: Connection with Apple devices not working in AP mode

Postby Anki » Sat Apr 18, 2015 3:08 am

This bug still exists in SDK 1.0.1 B2

Apple devices trying to associate with the ESP in AP mode report "Incorrect Password" even with the correct password and do not associate. The debug output from the ESP shows the device joining the network.

I'd be happy to conduct any testing or collect any packet logs necessary to help debug this issue.

Anki
Posts: 25
Joined: Thu Apr 09, 2015 3:00 am

Re: Connection with Apple devices not working in AP mode

Postby Anki » Wed Apr 22, 2015 5:04 am

Apple devices will not connect to the network even when encryption is turned off just giving the error "Unable to join the network"

This is a complete show stopper for me and I believe many other people, could we please get some attention from Espressif on this?

Thank you.

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: Connection with Apple devices not working in AP mode

Postby ESP_Faye » Wed Apr 22, 2015 9:39 am

Hi, Anki,

Do you mean the icon problem that apple device connected to ESP8266 softAP may not show the WiFi icon ?

We are still working on it , sorry for the inconvenience.

But we can't replicate your "Incorrect Password" problem, can you offer more details about your test steps ?

which apple device are you using ?

Anki
Posts: 25
Joined: Thu Apr 09, 2015 3:00 am

Re: Connection with Apple devices not working in AP mode

Postby Anki » Wed Apr 22, 2015 10:01 am

The steps to reproduce are as follows.
  1. I am using an AI-Thinker ESP8266MOD AKA ESP-12 module for development
  2. Load the attached firmware onto the Espressif eval board. Code may also be compiled from attached source against the v1.0.1_b2 SDK.
  3. Attempt to connect to the wifi network AnkiEspressif with an Apple device. I have tried using an iPhone 4S, an iPhone 5 and and iPhone 5S all running iOS 8
  4. Apple device says
    Unable to join the network "AnkiEspressif"
    and does not connect to the WiFi.

When I try connecting to the same Espressif AP with a PC, it works fine.

I am in the process of collecting raw network captures with WireShark and will attach once I have them.
Attachments
binaries.zip
Binaries for the test
(133.14 KiB) Downloaded 470 times
esp8266-udp-throughput-test-master.zip
Source code for test
(56.79 KiB) Downloaded 495 times

Anki
Posts: 25
Joined: Thu Apr 09, 2015 3:00 am

Re: Connection with Apple devices not working in AP mode

Postby Anki » Tue Apr 28, 2015 5:42 am

Changing the beacon interval from 100ms to 33ms seems to fix this problem though I don't know why. :ugeek:

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: Connection with Apple devices not working in AP mode

Postby ESP_Faye » Mon May 04, 2015 3:05 pm

Hi,

sorry for the late reply, structure softap_config need to be initialized.

Code: Select all

   struct softap_config ap_config;
   os_memset(&ap_config, 0, sizeof(ap_config));


or

Code: Select all

   struct softap_config config;
   wifi_softap_get_config(&config); // Get config first.


you could refer to softAP config demo http://bbs.espressif.com/viewtopic.php?f=21&t=227

Thanks for your interest in ESP8266 !

Who is online

Users browsing this forum: No registered users and 32 guests