Page 1 of 2
Wifi AP crash when activated (ESP32 DEVKIT V1 board)
Posted: Fri Sep 17, 2021 4:33 pm
by dan76
Good evening
With this simple code with ESP32 DEVKIT V1 board ( 2 units tested) with esp32-20210902-v1.17.bin
import network
wlan= network.WLAN(network.AP_IF)
wlan.config(essid='MyESP', password='12345678')
wlan.active(True)
In console the following message appears : Connection lost(EOF) Use Stop/Resrtart to reconnect
Previous micropython v1.15 , v1.14, v1.13 exhibit same error
This code works without any problem with ESP32 TTGO T-Display board with esp32-20210902-v1.17.bin
Thanks for any idea about this
Re: Wifi AP crash when activated (ESP32 DEVKIT V1 board)
Posted: Fri Sep 17, 2021 6:53 pm
by davef
Can you connect to your network using STA mode?
Re: Wifi AP crash when activated (ESP32 DEVKIT V1 board)
Posted: Fri Sep 17, 2021 8:25 pm
by dan76
I have tested STA with
import network
wlan= network.WLAN(network.STA_IF)
wlan.active(True)
Same error message
So in AP and STA mode wlan.active(True) instruction do crash
Tomorrow i will test Wifi using C code to see if DEVKIT V1 board Wifi works
Re: Wifi AP crash when activated (ESP32 DEVKIT V1 board)
Posted: Fri Sep 17, 2021 11:06 pm
by davef
Look at the wlan.status() codes
Re: Wifi AP crash when activated (ESP32 DEVKIT V1 board)
Posted: Sat Sep 18, 2021 6:54 am
by dan76
I have tested wifi connexion with esp32 Arduino IDE
Using Wifi library
#include <WiFi.h>
void setup()
{ WiFi.begin("myNetwork","myPassword");
serial.print(WiFi.status());
}
void loop()
Serial.print(".");
}
I can see my ESP32 board connected to myNetwork, but ESP32 never reaches the print instruction serial.print(WiFi.status()); or Serial.print("."); in loop()
This code works as expected with TTGO T-DISPLAY board
So seems to be hardware failure in DEVKIT V1 board ?
Re: Wifi AP crash when activated (ESP32 DEVKIT V1 board)
Posted: Sat Sep 18, 2021 7:16 am
by davef
n console the following message appears : Connection lost(EOF) Use Stop/Resrtart to reconnect
Are you using an IDE? Are you connecting using a USB cable?
Can you run rshell on a Linux platform?
Re: Wifi AP crash when activated (ESP32 DEVKIT V1 board)
Posted: Sat Sep 18, 2021 7:34 am
by dan76
With micropython i am using Thonny connected to ESP32 board with USB cable
Re: Wifi AP crash when activated (ESP32 DEVKIT V1 board)
Posted: Sat Sep 18, 2021 7:55 am
by davef
The guy who developed Thonny seems to respond to related emails here often. I have seen threads here about issues people have had using it.
Good luck
Re: Wifi AP crash when activated (ESP32 DEVKIT V1 board)
Posted: Sat Sep 18, 2021 8:12 am
by dan76
From my point of view it's not related to Thonny as with IDE Arduino ESP32 i get Wifi freeze
Re: Wifi AP crash when activated (ESP32 DEVKIT V1 board)
Posted: Sat Sep 18, 2021 8:36 am
by davef
OK. Have you got a link to the exact boards? I have about 10 of these units but just realised that mine are ESP32_Devkitc_v4. Maybe they have done something different with putting the strapping ports in the right configuration and/or how boot is handled via the USB port.