Skip to content

Power management (nRF52)

BOOTLOADER · POWER SOURCE · BOOT REASON · BOOT VOLTAGE

Five read commands for nRF52 boards. The official documentation lists them under Bridge, but in the firmware they depend on the platform: NRF52_PLATFORM and NRF52_POWER_MANAGEMENT (CommonCLI.cpp r.884–928).

[!NOTE] Source. This page was verified against the firmware itself: MeshCore v1.16.0, commit 03b6ef4, 28 July 2026 — files src/helpers/CommonCLI.cpp, src/helpers/NRF52Board.cpp, variants/sensecap_solar/platformio.ini, and the official docs/cli_commands.md. Line numbers refer to this commit and can be reproduced with tools/cli-commands.py.

Overview

The markers in the Role column are explained in the CLI reference. An empty cell means: works on repeater, room server and sensor.

Command Role Default Serial only Source
get bootloader.ver build flag CommonCLI.cpp r.884
get pwrmgt.support build flag CommonCLI.cpp r.903
get pwrmgt.source build flag CommonCLI.cpp r.909
get pwrmgt.bootreason build flag CommonCLI.cpp r.915
get pwrmgt.bootmv build flag CommonCLI.cpp r.923

Commands

bootloader.ver

Bootloader version, or > unknown. On other platforms: ERROR: unsupported.

Example (ESP32):

get bootloader.ver
  -> ERROR: unsupported

pwrmgt.support

> supported if the build sets NRF52_POWER_MANAGEMENT, such as the SenseCap Solar (variants/sensecap_solar/platformio.ini r.13), otherwise > unsupported.

Example (SenseCap Solar):

get pwrmgt.support
  -> > supported

pwrmgt.source

> external or > battery. Without power management: ERROR: Power management not supported.

Example:

get pwrmgt.source
  -> > battery

pwrmgt.bootreason

Reason for the last reset and the last shutdown, as text (NRF52Board.cpp r.69 onwards).

Example (board without power management):

get pwrmgt.bootreason
  -> ERROR: Power management not supported

With power management the form is > Reset: <reason>; Shutdown: <reason>, for example with reset reason Reset Pin.

pwrmgt.bootmv

Voltage at start-up, as > <n> mV.

Example (board without power management):

get pwrmgt.bootmv
  -> ERROR: Power management not supported

Sources

Translated from Dutch by Anthropic Claude