WROOM32 wifi connection takes too long

Azaelyus
Posts: 13
Joined: Tue Oct 24, 2017 7:38 pm

WROOM32 wifi connection takes too long

Postby Azaelyus » Mon Mar 19, 2018 4:53 pm

Hello guys,

im working on my latest project and im having some issues. Im trying to connect to wifi with code like this:

Code: Select all

    WiFi.mode(WIFI_STA);
    WiFi.enableSTA(true);
    WiFi.begin(ssid, password);
    while (WiFi.status() != WL_CONNECTED) delay(1);
The problem is that it takes 3200 ms everytime. Im using my own board with WROOM32 revision 1, which is the same as on ESP32 DevkitC. On DevkitC i get 900 in average with the same code and same upload program. Any ideas? I can give u my wiring scheme if needed.

Thank you.

Azaelyus
Posts: 13
Joined: Tue Oct 24, 2017 7:38 pm

Re: WROOM32 wifi connection takes too long

Postby Azaelyus » Tue Mar 20, 2018 10:23 am

Any ideas please? This can help me saving like 200 running days with this module, because im powering ESP with LiFePo4 battery. Any second for me is really important.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: WROOM32 wifi connection takes too long

Postby WiFive » Tue Mar 20, 2018 10:35 am

From the limited information it is most likely an antenna or power problem or bad calibration. Try erasing the flash. Post a photo and a schematic and serial debug output.

Azaelyus
Posts: 13
Joined: Tue Oct 24, 2017 7:38 pm

Re: WROOM32 wifi connection takes too long

Postby Azaelyus » Tue Mar 20, 2018 11:27 am

Heres the schematic:
Image

Battery im using: http://lygte-info.dk/review/batteries20 ... %20UK.html

Heres the PCB layout:
Image

Heres the photo of my product:
Image

Heres the detailed look of Wroom module:
Image

Im running my code like this:

Turning HIGH pin 13, meassuring values (this goes with no problem). Then i turn the pin low and run the WiFi. Heres the critical momment, it takes 3200 ms everytime. Then i send those data to the server, which takes about 800 ms in average (the same as ESP DevkitC V2).

Uploading sketch:
Image

What do you mean by printing serial output? This?
Image

How can I erase the flash please? I have never done this and im not able to find anything for esp32, only ESP8266.

User avatar
luisonoff
Posts: 40
Joined: Fri Feb 09, 2018 12:20 pm

Re: WROOM32 wifi connection takes too long

Postby luisonoff » Tue Mar 20, 2018 12:04 pm


Azaelyus
Posts: 13
Joined: Tue Oct 24, 2017 7:38 pm

Re: WROOM32 wifi connection takes too long

Postby Azaelyus » Tue Mar 20, 2018 1:14 pm

Seems like there is a problem with arduino firmware. I have upload espidf-http-request and its connecting almost immediately (under 1 sec). I dont know what can be wrong tho.

Azaelyus
Posts: 13
Joined: Tue Oct 24, 2017 7:38 pm

Re: WROOM32 wifi connection takes too long

Postby Azaelyus » Tue Mar 20, 2018 3:05 pm

Ok guys, did not know what happend but its working now. I just deleted platformio packages and deleted compiled code from this project. Did clean compile and its working. Strange :D
Thanks tho!

Who is online

Users browsing this forum: Google [Bot], MicroController and 101 guests