Wifi AP crash when activated (ESP32 DEVKIT V1 board)

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
dan76
Posts: 8
Joined: Thu Jan 21, 2021 1:52 pm

Wifi AP crash when activated (ESP32 DEVKIT V1 board)

Post by dan76 » Fri Sep 17, 2021 4:33 pm

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

Online
davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: Wifi AP crash when activated (ESP32 DEVKIT V1 board)

Post by davef » Fri Sep 17, 2021 6:53 pm

Can you connect to your network using STA mode?

dan76
Posts: 8
Joined: Thu Jan 21, 2021 1:52 pm

Re: Wifi AP crash when activated (ESP32 DEVKIT V1 board)

Post by dan76 » Fri Sep 17, 2021 8:25 pm

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

Online
davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: Wifi AP crash when activated (ESP32 DEVKIT V1 board)

Post by davef » Fri Sep 17, 2021 11:06 pm

Look at the wlan.status() codes

dan76
Posts: 8
Joined: Thu Jan 21, 2021 1:52 pm

Re: Wifi AP crash when activated (ESP32 DEVKIT V1 board)

Post by dan76 » Sat Sep 18, 2021 6:54 am

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 ?
Last edited by dan76 on Sat Sep 18, 2021 7:34 am, edited 2 times in total.

Online
davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: Wifi AP crash when activated (ESP32 DEVKIT V1 board)

Post by davef » Sat Sep 18, 2021 7:16 am

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?

dan76
Posts: 8
Joined: Thu Jan 21, 2021 1:52 pm

Re: Wifi AP crash when activated (ESP32 DEVKIT V1 board)

Post by dan76 » Sat Sep 18, 2021 7:34 am

With micropython i am using Thonny connected to ESP32 board with USB cable

Online
davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: Wifi AP crash when activated (ESP32 DEVKIT V1 board)

Post by davef » Sat Sep 18, 2021 7:55 am

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

dan76
Posts: 8
Joined: Thu Jan 21, 2021 1:52 pm

Re: Wifi AP crash when activated (ESP32 DEVKIT V1 board)

Post by dan76 » Sat Sep 18, 2021 8:12 am

From my point of view it's not related to Thonny as with IDE Arduino ESP32 i get Wifi freeze

Online
davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: Wifi AP crash when activated (ESP32 DEVKIT V1 board)

Post by davef » Sat Sep 18, 2021 8:36 am

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.

Post Reply