Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP V2.5.2 AP WiFi is not seen on just one mobile (V2.5.0 is OK) #6249

Closed
caipifrosch opened this issue Jul 3, 2019 · 6 comments
Closed

Comments

@caipifrosch
Copy link

caipifrosch commented Jul 3, 2019

Platform

  • Hardware: [ESP-12]
  • Core Version: [V2.5.2 Release]
  • Development Env: [Arduino IDE]
  • Operating System: [Windows]

Settings in IDE

  • Module: [Generic ESP8266 Module]
  • Flash Mode: [qio]
  • Flash Size: [4MB]
  • lwip Variant: [v2 Higher Bandwidth]
  • Reset Method: [nodemcu]
  • Flash Frequency: [40Mhz]
  • CPU Frequency: [80Mhz]
  • Upload Using: [OTA|SERIAL]
  • Upload Speed: [other] (serial upload only)

Problem Description

WiFi Setup of XIAOMI Mi A2 (Android one) does not find the ESP AP with Versions 2.5.2 and 2.5.1, while other mobile, PC or iPad devices will show ESP SSID. Same applies to latest Git (03.07.2019).

Reverting back to V2.5.0 always fixes this issue.

Tested back and forth multiple times:
ESP is not seen by Mi A2 mobile on any Version above V2.5.0.

Thanks a lot for your help/advice in advance.

Sketch / AP Setup

void setupAP(void) {

  Serial.print("WLAN: Starting Access Point... SSID: ");
  Serial.println(network.apSSID);

  WiFi.persistent(false);

  WiFi.disconnect();
  WiFi.softAPdisconnect(true);
  WiFi.hostname(network.apSSID);

  wifi_set_opmode(STATIONAP_MODE);

  WiFi.softAPConfig((IPAddress)network.apIP, (IPAddress)network.apIP, (IPAddress)network.wlanNM);

  // start AP
  Serial.print("WLAN: Starting SoftAP on Channel ");
  Serial.print(String(network.apCH,DEC));

  if (!WiFi.softAP(network.apSSID, network.apPass, network.apCH, 0, MAX_AP_CONS))
  {

    // AP setup failed
    Serial.println("... failed!");

    ESP.restart();

  }
  else {

    // AP setup and running...
    Serial.println(" ... started.");

    launchWeb(1);

  }

}
@TD-er
Copy link
Contributor

TD-er commented Jul 4, 2019

Is it unable to spot the AP's SSID of the node, or is it not capable of making (or maintaining) a connection?

@caipifrosch
Copy link
Author

This specific mobile is unable to spot the AP SSID. Other devices will see AP SSID.

@TD-er
Copy link
Contributor

TD-er commented Jul 4, 2019

Have you also tried using some network analyzer app?
Not that such an app will help you connect, but it may be some indication of the layer where the problems arise.

Also, do you have any idea on the SDK version used? (2.2.x or 3.0.x)

@caipifrosch
Copy link
Author

SDK is pre3 in V2.5.0 and SDK V2.2.1 in core V2.5.2

My best guesss is, that this may be related to:

#5784 - SDK issues (SDK reverted from pre3 to 2.2.1)

What kind of tool do you suggest?

@TD-er
Copy link
Contributor

TD-er commented Jul 4, 2019

I have several on my phone.
The one I use the most for WiFi issues is WiFiAnalyzer (open-source)
But there are several, also with the same name ;)

@devyte
Copy link
Collaborator

devyte commented Jul 5, 2019

Given that this is specific to that phone, I'd say it's a compatibility issue in Espressif's SDK, especially since the ssid visibility is due to the beacon broadcast.
I suppose you could try to tweak some parameters, like the beacon time etc, and see if that helps you. See the SoftAP source and Espressif doc 2c api reference for details on which AP parameters can be given to the sdk.
I'm closing this, because I don't think it's a core issue, but feel free to discuss further. If you do find a core issue, @ me or just open a new issue and fill in the required info.

@devyte devyte closed this as completed Jul 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants