pm5: hw bwm powersave
New `hw bwm powersave [on|off]` (CMD_PM5_BWM_POWERSAVE 0x0181) shows or sets the ESP's persisted power-save switch (companion Proxmark5_BWM_esp32 PR: DFS, light sleep and slow advertising after a 30 s fast phase, or the stock always-on behaviour), so the two can be A/B measured and the saving turned off when chasing a link problem. `hw status` prints the state next to the BWM firmware version. Both module queries in `hw status` are time-bounded (version 2 x 800 ms, power save 300 ms): a module that is silent, or a firmware without the command, cannot push the report past the client's timeout. Verified on hardware: state read/set/persist across an ESP reboot, `hw status` after 4, 15 and 40 s idle in power-save mode and after 6 s idle with it off. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
4f4acedbdd
commit
552276c75f
8 files changed
+148
-11
No files matched your search
+2
-1
@@ -1047,10 +1047,11 @@ Check column "offline" for their availability.
|
||||
|
||||
|command |offline |description
|
||||
|------- |------- |-----------
|
||||
|`hw bwm help `|N |`This help`
|
||||
|`hw bwm help `|Y |`This help`
|
||||
|`hw bwm autooff `|N |`Toggle auto power-off on USB unplug`
|
||||
|`hw bwm charge `|N |`Enable/disable battery charging (one-shot)`
|
||||
|`hw bwm name `|N |`Get/set the BWM BLE advertising name`
|
||||
|`hw bwm powersave `|N |`Show/set the BWM power-save switch (DFS, light sleep, slow adv)`
|
||||
|`hw bwm setcap `|N |`Set fuel-gauge design capacity (run once after battery change)`
|
||||
|`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)`
|
||||
|
||||
Reference in new issue
Block a user