Metro ESP32-P4 wifi issue/packet loss
Maintainer antworten meist innerhalb von 1 Tag
@dhalbert arbeitet bereits daran.
Seit 03.11.2026.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 45/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Bereich
- embedded-iot, networking
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- C
- Sterne
- 4.6k
- Forks
- 1.4k
- Ø Merge
- 1 T. 3 Std.
- Gemergte PRs (30 T.)
- 186
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus adafruit/circuitpython
-
documentation rp2
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 67/100
adafruit/circuitpython#11779 ·
Maintainer antworten meist innerhalb von 1 Tag
-
documentation enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
adafruit/circuitpython#11689 ·
Maintainer antworten meist innerhalb von 1 Tag
-
atmel-samd enhancement
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 56/100
adafruit/circuitpython#11778 ·
Maintainer antworten meist innerhalb von 1 Tag
-
watchdog RAISE without timeout resets on ESP32-S3, hangs on ESP32-C5Evtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offenbug espressif
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
adafruit/circuitpython#11763 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Feather RP2350: MAX3421E instead of PIO USB host, or a second build?Evtl. vergeben @mikeysklar hat das vor 8 Tagen übernommen. Offenrp2 usb
adafruit/circuitpython#11697 · 5 Kommentare · 2 zugewiesene Personen ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in adafruit/circuitpython
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
-
要トリアージ 辞書
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 86/100
yksr-melt/Meltype#1625 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
[yugabyted] xcluster set_up and add_to_replication fail for database names containing - . or (Offenkind/bug priority/medium qa_automation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
yugabyte/yugabyte-db#37324 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Add CMake export targetOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
tree-sitter/tree-sitter#6111 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
joncampbell123/dosbox-x#6797 ·
Maintainer antworten meist innerhalb von 1 Tag