Wifi AP crash when activated (ESP32 DEVKIT V1 board)
Wifi AP crash when activated (ESP32 DEVKIT V1 board)
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
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)
Can you connect to your network using STA mode?
Re: Wifi AP crash when activated (ESP32 DEVKIT V1 board)
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
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)
Look at the wlan.status() codes
Re: Wifi AP crash when activated (ESP32 DEVKIT V1 board)
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 ?
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 ?
Last edited by dan76 on Sat Sep 18, 2021 7:34 am, edited 2 times in total.
Re: Wifi AP crash when activated (ESP32 DEVKIT V1 board)
Are you using an IDE? Are you connecting using a USB cable?n console the following message appears : Connection lost(EOF) Use Stop/Resrtart to reconnect
Can you run rshell on a Linux platform?
Re: Wifi AP crash when activated (ESP32 DEVKIT V1 board)
With micropython i am using Thonny connected to ESP32 board with USB cable
Re: Wifi AP crash when activated (ESP32 DEVKIT V1 board)
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
Good luck
Re: Wifi AP crash when activated (ESP32 DEVKIT V1 board)
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)
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.