glenn20

Results 50 comments of glenn20

> Does this PR allow wifi/bt modems to be completely switched off as described as "modem sleep" here?. This looks like the PS_MIN_MODEM mode described [here](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/wifi.html#esp32-wi-fi-power-saving-mode). That wifi ps mode...

> Thanks @glenn20 I will test this out with a power meter. Reading further I think what I need to call is esp_wifi_stop(); You can see the results of some...

> We need to also consider WiFi modules based on the cyw43. The existing `extmod/network_cyw43.c` driver actually includes an (undocumented) `wlan.config(pm=...)` option. It has 3 predefined power-management settings called `DEFAULT_PM`,...

Aside: The cyw43 docs suggest that DEFAULT_PM saves more power than AGGRESSIVE_PM, which is not what I "expected" from the naming convention.

> I would like to do this. Eg there could be a few options like `pm_mode`, `pm_interval`, `pm_dtim`. Or a single `pm` option that takes an opaque integer which: >...

> > * Or `config(pm=n)` for portable and `config(pm=(tuple...))` for tuning extension. > > Yes, I like that idea. Ok. Just need a naming convention for portable constants. I suggest...

Now supports: ```py WLAN.config(pm=WLAN.PM_NONE) # WIFI_PS_NONE WLAN.config(pm=WLAN.PM_DEFAULT) # WIFI_PS_MIN_MODEM WLAN.config(pm=WLAN.PM_PERFORMANCE) # WIFI_PS_MIN_MODEM WLAN.config(pm=WLAN.PM_POWERSAVE) # WIFI_PS_MAX_MODEM WLAN.config(pm=(WLAN.PM_POWERSAVE, listen_interval)) # WIFI_PS_MAX_MODEM and set listen_address parameter in sta config. ``` Happy to change-up...

> Another requirement is to enable app rollback in the sdkconfig file > > `CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE=y` This is now enabled in the v1.21.0 release. See #12475 (sorry - I missed this...

> I'm very interested in this for CircuitPython. From my understanding LR mode can be enabled in addition to the b/g/n modes (presumably in some time-slicing sense), but I've seen...