Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zephyrproject-rtos/mcumgr
Upstream repo is https://github.com/apache/mynewt-mcumgr
https://github.com/zephyrproject-rtos/mcumgr
management module
Last synced: 2 months ago
JSON representation
Upstream repo is https://github.com/apache/mynewt-mcumgr
- Host: GitHub
- URL: https://github.com/zephyrproject-rtos/mcumgr
- Owner: zephyrproject-rtos
- Created: 2019-05-23T02:31:03.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-11-16T10:41:08.000Z (about 2 years ago)
- Last Synced: 2024-11-14T10:38:27.380Z (2 months ago)
- Topics: management, module
- Language: C
- Homepage:
- Size: 199 KB
- Stars: 27
- Watchers: 16
- Forks: 30
- Open Issues: 0
-
Metadata Files:
- Readme: README-mynewt.md
Awesome Lists containing this project
- awesome-zephyr-rtos - mcumgr
README
## Building and using mcumgr with Apache Mynewt
NOTE: The *mcumgr* library consists of functionality that is already present in
the `apache-mynewt-core` repo. There is currently no need to use the external
*mcumgr* library with Mynewt, as the functionality is already built in to the
OS. To use this library with a Mynewt application, you will need to remove the
duplicate functionality from your copy of the `apache-mynewt-core` repo.### Configuration
To use *mcumgr*, your Mynewt app needs to be configured to use:
1. An mcumgr transfer encoding
2. An mcumgr transport
3. (optional) Command handlers.This is done by adding the necessary dependencies to your app or target. The following list of dependencies adds support for the SMP transfer encoding, the Bluetooth and shell transports, and all the built-in command handlers:
```
- '@apache-mynewt-core/mgmt/smp/transport/ble'
- '@apache-mynewt-core/mgmt/smp/transport/smp_shell'
- '@mynewt-mcumgr/cmd/fs_mgmt'
- '@mynewt-mcumgr/cmd/img_mgmt'
- '@mynewt-mcumgr/cmd/os_mgmt'
- '@mynewt-mcumgr/smp'
```For an example of an app that uses mcumgr, see the `smp_svr` sample app in `samples/smp_svr/mynewt`.
### Building
With the necessary dependencies in place, your project can be built using the usual `newt build ` or `newt run `