Bad connection #578
Replies: 3 comments 5 replies
-
I cannot reproduce the problem in my environment. Generally, when extreme response delays occur with such a mundane and basic sketch, the following conditions should be checked:
Then, Isolate AutoConnect to narrow down the cause of the problem and verify it with some example sketches provided by the ESP32 WebServer library. Then, if AutoConnect behavior is still not stable, please refer to the documentation here and provide the information I need to investigate.
Until I find out that the cause lies in AutoConnect, I will temporarily move to Discussions. |
Beta Was this translation helpful? Give feedback.
-
?? Does your WiFi environment assume the band-steering? Of course the iPhone will connect, since iOS supports 802.11k roaming. But I am not certain where that support currently stands in ESP-IDF. Was this supported in the Arduino core?
What is important is not the rating, but whether the front-stage LDO can withstand the ESP32's sink current. The LM7805 isn't so responsive. In my experiments, the 5V line momentarily drops nearly 600mV, dragged down by the 3.3V line's rapid current sink. It depends on the circuit impedance, so I won't say it explicitly, but I personally don't recommend relying on the LM7805 alone. Your ESP module probably uses the AMS1117 series, and this chip doesn't have the headroom. Using the ADP3338 in front of the LM7805 ensures a stable power line even if the ESP32 eats a lot of food. But, in the end, you can do whatever you like, so just for your reference. |
Beta Was this translation helpful? Give feedback.
-
I am still having some problems. I have this Dream Machine. I have setup a Wifi called "Slottet" with mixed 5 GHZ and 2.4 GHz. I have also made another Wifi called "Slottet IOT" only with 2.4 GHz. I the connect ESP32 to "Slottet IOT". But after a restart of the ESP then it connects itself to "Slottet" again. Why? I thought it could only connect to the last connected wifi. |
Beta Was this translation helpful? Give feedback.
-
I have been testing again. I have a lot of time outs on ping and the http://IP/_ac or http://IP is answering very slowly.
I don't understand what happens.
It seems like it is sometimes running ok.
<
#include <WiFi.h> // Replace with WiFi.h for ESP32
#include <WebServer.h> // Replace with WebServer.h for ESP32
#include <AutoConnect.h> // For AutoConnect Wifi
// INPUTS
int START_ALONE = 15; // Input to start stand alone
int START_DATA = 16; // Input to start with homepage data
int START_NO_WIFI = 18; // Input to start with homepage data
int BUTTON_START_ALONE = LOW;
int BUTTON_START_DATA = LOW;
int BUTTON_NO_WIFI = LOW;
int WIFICONN = LOW;
// AUTOCONNECT
WebServer Server; // Replace with WebServer for ESP32
AutoConnect Portal(Server);
AutoConnectConfig Config;
// Webside fra ESP
void rootPage() {
char content[] = "Kapsejlads.nu - HORN
Afsted med dem!";
Server.send(200, "text/plain", content);
}
void setup() {
Serial.begin(115200);
Serial.println("SETUP START");
// Input Output
// pinMode(START_ALONE, INPUT);
// pinMode(START_DATA, INPUT);
// pinMode(START_NO_WIFI, INPUT);
Serial.println("I/O OK");
// AUTOCONNECT
Config.apid = "Kapsejlads-horn";
Config.psk = "Kapsejlads.nu";
Portal.config(Config);
Serial.println("AUTO CONNECT OK");
BUTTON_START_DATA = digitalRead(START_DATA);
Serial.print(" BUTTON_START_DATA = ");
Serial.println(BUTTON_START_DATA);
// if(BUTTON_START_DATA==HIGH){
//SHOW AUTOCONNECT SCREEN //(OFF with button during startup)
Server.on("/", rootPage);
if (Portal.begin()) { //SWITCH ON NETWORK MAN SCREEN
Serial.println(" WiFi connected: " + WiFi.localIP().toString());
}
Serial.println("ROOTPAGE OK");
// }
Serial.println("BUTTON WIFI START OK");
}
void loop() {
// put your main code here, to run repeatedly:
Portal.handleClient();
Serial.println(millis());
}
Beta Was this translation helpful? Give feedback.
All reactions