pm5: hw bwm wifipower, WiFi off or the modem power-save type
New `hw bwm wifipower [off|none|min|max]`. `off` turns the BWM's WiFi fully off (BLE-only, persisted; the same path as `hw bwm wifi stop`, and the module's default state). The other three set the ESP's persisted WiFi modem power-save type (CMD_PM5_BWM_WIFI_PS 0x0182, module commands 2052/2053, esp_wifi_set_ps()) used while WiFi is up: min (the ESP-IDF default, the modem sleeps between DTIM beacons), max (sleeps for the whole listen interval, lowest current, slower to react), none (modem always on, lowest latency). With no argument it reports whether WiFi is up at all and the stored type. Independent of `hw bwm powersave`. The link helper's "cmd failed" diagnostic is now printed only at debug level: a status query while WiFi is off fails by design and was cluttering every call. Verified on hardware: default reads min with WiFi off; none, max and min each set and read back; off tears WiFi down; an unknown value is rejected; max survives a module reboot. Not measured with WiFi associated. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
552276c75f
commit
5e1b04def1
8 files changed
+190
-25
No files matched your search
+18
-2
@@ -11145,6 +11145,22 @@
|
||||
],
|
||||
"usage": "hw bwm wifi [-h] [--ssid <ssid>] [--pwd <pwd>] [--port <dec>] [--hostname <name>]"
|
||||
},
|
||||
"hw bwm wifipower": {
|
||||
"command": "hw bwm wifipower",
|
||||
"description": "Show or set how much power the BWM (ESP32) spends on WiFi. off turns WiFi fully off (BLE-only, persisted; the default state, same as `hw bwm wifi stop`). Bring it back with hw bwm wifi --ssid <ssid> --pwd <pwd>. The other three set the modem power-save type while WiFi is up, stored on the BWM: min (default) sleeps between DTIM beacons, max for the whole listen interval, none never. Independent of hw bwm powersave. PM5 only.",
|
||||
"notes": [
|
||||
"hw bwm wifipower -> show whether WiFi is up and the power-save type",
|
||||
"hw bwm wifipower off -> WiFi fully off, BLE-only",
|
||||
"hw bwm wifipower none -> modem always on while WiFi is up",
|
||||
"hw bwm wifipower min -> ESP-IDF default (DTIM sleep)",
|
||||
"hw bwm wifipower max -> deepest modem sleep"
|
||||
],
|
||||
"offline": false,
|
||||
"options": [
|
||||
"-h, --help This help"
|
||||
],
|
||||
"usage": "hw bwm wifipower [-h]"
|
||||
},
|
||||
"hw connect": {
|
||||
"command": "hw connect",
|
||||
"description": "Connects to a Proxmark3 device via specified serial port. Baudrate here is only for physical UART or UART-BT, NOT for USB-CDC or blue shark add-on",
|
||||
@@ -16678,8 +16694,8 @@
|
||||
}
|
||||
},
|
||||
"metadata": {
|
||||
"commands_extracted": 928,
|
||||
"commands_extracted": 929,
|
||||
"extracted_by": "PM3Help2JSON v1.00",
|
||||
"extracted_on": "2026-09-24T08:30:13+00:00"
|
||||
"extracted_on": "2026-09-24T08:30:49+00:00"
|
||||
}
|
||||
}
|
||||
@@ -1056,6 +1056,7 @@ Check column "offline" for their availability.
|
||||
|`hw bwm upgrade `|N |`Reflash BWM (ESP32) firmware over the BWM link, no header`
|
||||
|`hw bwm vchg `|N |`Set charger charge-voltage target (default 4100 mV)`
|
||||
|`hw bwm wifi `|N |`Bring up WiFi (STA + TCP server) for a tcp: connection`
|
||||
|`hw bwm wifipower `|N |`WiFi fully off, or the modem power-save type (none/min/max)`
|
||||
|
||||
|
||||
### lf
|
||||
|
||||
Reference in new issue
Block a user