Metro ESP32-P4 wifi issue/packet loss
Les mainteneurs répondent en général sous 1 jour
@dhalbert y travaille déjà.
Depuis le 3/11/2026.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 45/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Active
- Domaine
- embedded-iot, networking
Piste de recherche
The report names CircuitPython 11.0.0-alpha.2 on the Metro ESP32-P4 and shows intermittent ping, DNS, and HTTPS failures, but it does not identify a failing source file or test. Start by locating the ESP32-P4 Wi-Fi driver and its networking tests, then compare connection and request behavior with the ESP32-S2 results in the issue. Done when the cause is isolated and the reported network operations work reliably on the Metro.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
CircuitPython version and board name
Adafruit CircuitPython 11.0.0-alpha.2-22-gbe6f0a678b on 2026-10-27; Adafruit Metro ESP32-P4 with ESP32P4
Code/REPL
import os
import ipaddress
import ssl
import wifi
import socketpool
import adafruit_requests
# URLs to fetch from
TEXT_URL = "http://wifitest.adafruit.com/testwifi/index.html"
JSON_QUOTES_URL = "https://www.adafruit.com/api/quotes.php"
JSON_STARS_URL = "https://api.github.com/repos/adafruit/circuitpython"
print(f"My MAC address: {[hex(i) for i in wifi.radio.mac_address]}")
print("Available WiFi networks:")
for network in wifi.radio.start_scanning_networks():
print("\t%s\t\tRSSI: %d\tChannel: %d" % (str(network.ssid, "utf-8"),
network.rssi, network.channel))
wifi.radio.stop_scanning_networks()
print(f"Connecting to {os.getenv('CIRCUITPY_WIFI_SSID')}")
wifi.radio.connect(os.getenv("CIRCUITPY_WIFI_SSID"), os.getenv("CIRCUITPY_WIFI_PASSWORD"))
print(f"Connected to {os.getenv('CIRCUITPY_WIFI_SSID')}")
print(f"My IP address: {wifi.radio.ipv4_address}")
ping_ip = ipaddress.IPv4Address("8.8.8.8")
ping = wifi.radio.ping(ip=ping_ip)
# retry once if timed out
if ping is None:
ping = wifi.radio.ping(ip=ping_ip)
if ping is None:
print("Couldn't ping 'google.com' successfully")
else:
# convert s to ms
print(f"Pinging 'google.com' took: {ping * 1000} ms")
pool = socketpool.SocketPool(wifi.radio)
requests = adafruit_requests.Session(pool, ssl.create_default_context())
print(f"Fetching text from {TEXT_URL}")
response = requests.get(TEXT_URL)
print("-" * 40)
print(response.text)
print("-" * 40)
print(f"Fetching json from {JSON_QUOTES_URL}")
response = requests.get(JSON_QUOTES_URL)
print("-" * 40)
print(response.json())
print("-" * 40)
print()
print(f"Fetching and parsing json from {JSON_STARS_URL}")
response = requests.get(JSON_STARS_URL)
print("-" * 40)
print(f"CircuitPython GitHub Stars: {response.json()['stargazers_count']}")
print("-" * 40)
print("Done")
Behavior
the Metro is able to connect to wifi, but when it tries to fetch data it throws errors or can be extremely slow. here is the result from our usual circuitpython wifi test (the two networks are my local ones):
My MAC address: ['0xd4', '0x5', '0x92', '0x9', '0xc', '0x8c']
Available WiFi networks:
**** RSSI: -62 Channel: 11
****-IoT RSSI: -62 Channel: 11
Connecting to ****
Connected to ****
My IP address: 192.168.1.249
Pinging 'google.com' took: 316.9999 ms
Fetching text from http://wifitest.adafruit.com/testwifi/index.html
----------------------------------------
This is a test of Adafruit WiFi!
If you can read this, its working :)
----------------------------------------
Fetching json from https://www.adafruit.com/api/quotes.php
Traceback (most recent call last):
File "code.py", line 55, in <module>
File "adafruit_requests.py", line 718, in get
File "adafruit_requests.py", line 646, in request
File "adafruit_connection_manager.py", line 331, in get_socket
File "adafruit_connection_manager.py", line 248, in _get_connected_socket
OSError: (-29312, 'MBEDTLS_ERR_SSL_CONN_EOF')
My MAC address: ['0xd4', '0x5', '0x92', '0x9', '0xc', '0x8c']
Available WiFi networks:
**** RSSI: -64 Channel: 11
****-IoT RSSI: -64 Channel: 11
Connecting to ****-IoT
Connected to ****-IoT
My IP address: 192.168.1.249
Couldn't ping 'google.com' successfully
Fetching text from http://wifitest.adafruit.com/testwifi/index.html
----------------------------------------
This is a test of Adafruit WiFi!
If you can read this, its working :)
----------------------------------------
Fetching json from https://www.adafruit.com/api/quotes.php
Traceback (most recent call last):
File "code.py", line 55, in <module>
File "adafruit_requests.py", line 718, in get
File "adafruit_requests.py", line 646, in request
File "adafruit_connection_manager.py", line 328, in get_socket
gaierror: (-2, 'Name or service not known')
Description
i also ran the same code on a feather esp32-s2 and got these results (same location, router is right outside open office door)
My MAC address: ['0x7c', '0xdf', '0xa1', '0x9d', '0x7c', '0x8a']
Available WiFi networks:
**** RSSI: -55 Channel: 11
****-IoT RSSI: -55 Channel: 11
Connecting to ****-IoT
Connected to ****-IoT
My IP address: 192.168.1.239
Pinging 'google.com' took: 29.0 ms
Fetching text from http://wifitest.adafruit.com/testwifi/index.html
----------------------------------------
This is a test of Adafruit WiFi!
If you can read this, its working :)
----------------------------------------
Fetching json from https://www.adafruit.com/api/quotes.php
----------------------------------------
[{'text': 'Propel, propel, propel your craft softly down liquid solution. Ecstatically, ecstatically, ecstatically, ecstatically, existence is simply illusion', 'author': 'Fred Rogers'}]
----------------------------------------
Fetching and parsing json from https://api.github.com/repos/adafruit/circuitpython
----------------------------------------
CircuitPython GitHub Stars: 4572
----------------------------------------
Done
i also tried an adafruit io example (https://learn.adafruit.com/pico-w-wifi-with-circuitpython/pico-w-with-adafruit-io), replacing sensor data with ints and timed how long it took to fetch feeds with time.monotonic():
connected to io
now: 184.887, from start: 0.004974366
feeds created
now: 357.666, from start: 172.784
was also seeing the same OSError: (-29312, 'MBEDTLS_ERR_SSL_CONN_EOF') from the IO test or a timeout error
Additional information
i did try switching between my 5ghz network and 2.4ghz iot network, same results. also turned off web workflow to rule that out.
- Langage dominant
- C
- Étoiles
- 4.6k
- Forks
- 1.4k
- Merge moyen
- 1 j 7 h
- PR mergées (30 j)
- 187
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de adafruit/circuitpython
-
documentation enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 67/100
adafruit/circuitpython#11689 ·
Les mainteneurs répondent en général sous 1 jour
-
Hard fault with combination of ESP32SPI and wifi monitorPeut-être pris @dhalbert l’a pris il y a 4 jours. Ouvertebug network
adafruit/circuitpython#11710 · 6 commentaires · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
Feather RP2350: MAX3421E instead of PIO USB host, or a second build?Peut-être pris @mikeysklar l’a pris il y a 6 jours. Ouverterp2 usb
adafruit/circuitpython#11697 · 5 commentaires · 2 personnes assignées ·
Les mainteneurs répondent en général sous 1 jour
-
rp2040 zephyr
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
adafruit/circuitpython#11690 ·
Les mainteneurs répondent en général sous 1 jour
-
alarms and sleep bug esp32-c3
Difficulté 4/5 3-5 jours Accessibilité débutants 52/100
adafruit/circuitpython#11680 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de adafruit/circuitpython
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 83/100
Les mainteneurs répondent en général sous 4 jours
-
area/docs
Difficulté 1/5 Moins d'une heure Accessibilité débutants 83/100
Clodmony/starship-coop#72 ·
Les mainteneurs répondent en général sous 1 jour
-
ospf6d: heap-use-after-free in seqnumber_mismatch()/bad_lsreq() when a neighbor is deleted with events pendingPeut-être pris @lichenlang89 l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 61/100
Les mainteneurs répondent en général sous 2 jours
-
5700模组网络优先级问题Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
Les mainteneurs répondent en général sous 1 jour