You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

mcumgr-client-wrapper

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mcumgr-client-wrapper

Python bindings for the rust library mcumgr-client

0.3.0
pipPyPI
Maintainers
1

mcumgr-client-wrapper

Python bindings for the rust library mcumgr-client. This allows sending MCUmgr commands to a device connected to a serial port from Python.

How to use

import mcumgr_client as mcu

s = mcu.SerialSession(device='/dev/ttyUSB0', baudrate=576000)
# Get a list of dicts containing image properties 
l = s.list()
print(l)

# Upload image to device
s.upload('/path/to/image/bin')

# Set the pending flag on the uploaded image
img_hash = [34, 33, 245]
s.test(img_hash)

# Delete image
s.delete(slot=1)

# Reset the device
s.reset()

see help(mcumgr_client) for more

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts