← index #18597Issue #17300
Off-topic · high · value 1.833
QUERY · ISSUE

WPA3 PSK on Raspberry Pi Pico 2 W (cyw43-driver)

openby pavel-perinaopened 2025-12-20updated 2026-03-09
bugport-rp2

Port, board and/or hardware

RPI_PICO2_W

MicroPython version

MicroPython v1.27.0 on 2025-12-09; Raspberry Pi Pico 2 W with RP2350

Reproduction

Prerequisites:

  • configure only WPA3-PSK on router/AP, disable other methods
  • modify ssid and password according to yours
import network
sta = network.WLAN(network.WLAN.IF_STA)
sta.active(True)
sta.scan()
# [ (b'WirelessNest2', b'\xd4\x01\xc3/Q\r', 5, -64, 5, 3 ]
sta.connect("WirelessNest2", "YOUR_PASSWORD_HERE") # EDIT THIS
print(sta.isconnected())
# False
print(sta.status())
# 1

Expected behaviour

Connects to wifi

Observed behaviour

Returns instantly, does not connect

Additional Information

  • Documentation of scan() result (security, hidden) is incomplete and board/wifi module specific. Raspberry Pico 2 W returns ..., 5, 3) whereas ESP32 returns ..., 6, False) - this is already in multiple open issues
  • My router is Mikrotik C52iG-5HaxD2HaxD
  • WiFi driver is 3rd party repo
  • WPA3 should be supported since 1.25.0, but does not work in 1.26.1 and 1.27.0 (only PSK tested)

Code of Conduct

Yes, I agree

CANDIDATE · ISSUE

Ping responce stops working after several hours

openby bty-1opened 2025-05-14updated 2025-05-31
bugport-rp2

Port, board and/or hardware

Raspberry Pi Pico W with RP2040; Raspberry Pi Pico 2 W with RP2350

MicroPython version

MicroPython v1.24.0; MicroPython v1.25.0;

Reproduction

  1. Install RPI_PICO2_W-20250415-v1.25.0.uf2 on Raspberry Pi Pico 2 W.
  2. Create main.py with script below on device.
  3. Power on device with USB or batery.
  4. Wait 10 hours. Do not access the device over the network.
  5. On PC (in my case Windows 10) run command "ping 192.168.10.241 -t".
# main.py
import network
from time import sleep
from machine import Timer, Pin

led = machine.Pin("LED", machine.Pin.OUT);
wfssid = "xxxxxxxxxx"
wfpass = "xxxxxxxxxx"
wlan = network.WLAN(network.STA_IF);
wlan.active(True);
print(f'Connecting to "{wfssid}" AP. ', end="")
wlan.connect(wfssid, wfpass);
while wlan.isconnected() == False:
    sleep(1.0);
    print('.', end="");
print(' Done !');
print(wlan.ifconfig())

def cb1sec(timer):
    # To be sure that the device is working
    led.on()
    sleep(0.001);
    led.off()

timer1sec = Timer(period=1000, mode=Timer.PERIODIC, callback=cb1sec)

while True:
    sleep(10.0);

Expected behaviour

Starts respond on pings immidiately.

Observed behaviour

Starts to respond after 10...60 unsuccessful pings.

Additional Information

The device stops responding to ping after a few hours of operation.
Powered by USB or battery, no USB connection (with USB connection it also sometimes "hangs")
The device "hangs" after 1...10 hours.
During this time, do not access the device over the network!

During "hanging":

  1. Unable to connect to FTP server on device.
  2. Ping from device continues to work!

When device is "frozen", you can "wake it up" using command:
ping 192.168.10.241 -t
Initially, the device does not respond to pings, but after 10...60 unsuccessful pings, device starts responding and normal operation of network interface is restored.

See:
Raspberry Pi Pico W network becomes inaccessible when not used for some time #9455
With network.PPP device hangs after several hours of operation #16340
#9455 and #16340 probably have the same root cause.

Not Reproducing on:
MicroPython v1.25.0 on 2025-04-15; ESP module with ESP8266. (ESP8266 Wemos D1 mini)

Code of Conduct

Yes, I agree

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied