mcumgr
More info
- Owner
- Apache Software Foundation
- Type
- Management protocol and library
- License
- Apache 2.0
- Source
- github.com/apache/mynewt-mcumgr
A small management protocol for microcontrollers: upload a new firmware image, reboot, read statistics and fetch files over Bluetooth, UART or UDP.
It grew out of newtmgr in Apache Mynewt and was later adopted by Zephyr, where it's now the standard route for field updates. The wire format is SMP, the Simple Management Protocol: an eight-byte header followed by a CBOR-encoded body. Commands are organised into groups, and the most important one talks to MCUboot: upload an image to the secondary slot, mark it for testing and let the bootloader swap on the next reset.
The protocol doesn't care about transport, so a phone app over BLE and a script over UART speak the same commands. The name covers the protocol, the firmware library and the command-line tool all at once, which makes bug reports more confusing than they need to be.