Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7530

SDK • Re: Strange picow wifi router problem

$
0
0
This is straight C and sdk:cyw43 and LWIP so I don't think MicroPython is involved in my failure case.
True. The problem is we don't know if the issues seen using MicroPython are because of MicroPython, or CYW43 drivers or LwIP which could also affect Pico SDK apps.
I don't know how to disable cyw43 power operation...
The MicroPython community appears to have settled on wlan.config(pm=0xA11140) to disable power save mode - and that has worked for me. I believe the Pico SDK equivalent would be -

Code:

cyw43_wifi_pm( &cyw43_state, 0xA11140 );
One challenge is it's not entirely clear what value should be used. I recall this 0xA11140 is not a value used by MicroPython, Pico SDK or CYW43 drivers, is not provided as a named constant. I don't know if 0xA11140 is equivalent to what MicroPython or Pico SDK use as their disabled values even though different.

I can't find the full details but my notes show the following -

Code:

  ┌───────────────┬────────────┐ ┌─────┬────────┬─────┬─────┬──────┐  │  Default      │  0xA11142  │ │  2  │   200  │  1  │  1  │  10  │  │  Aggressive   │  0xA11C82  │ │  2  │  2000  │  1  │  1  │  10  │  │  Performance  │  0x111022  │ │  2  │    20  │  1  │  1  │   1  │  │  Disabled     │  0xA11140  │ │  0  │   200  │  1  │  1  │  10  │  └───────────────┴────────────┘ └─────┴────────┴─────┴─────┴──────┘
I am not sure the bit fields are in the same order as Raspberry Pi specify them, nor as they appear in the data value.

Statistics: Posted by hippy — Wed Jun 25, 2025 1:13 pm



Viewing all articles
Browse latest Browse all 7530

Trending Articles