MetaWear-SDK-Python

MetaWear Python SDK - Linux / Windows - Python3

OTHER License

Downloads
710
Stars
52
Committers
7

Bot releases are hidden (Show)

MetaWear-SDK-Python - C++ SDK Update Latest Release

Published by lkasso almost 3 years ago

  • Updated C++ SDK to v0.20.6
MetaWear-SDK-Python - MMS Release

Published by lkasso over 3 years ago

Release for MMS support:

  • Updated C++ SDK to v0.20.0
MetaWear-SDK-Python - C++ SDK Update

Published by lkasso almost 4 years ago

  • Updated C++ SDK to v0.19.1
  • Update PyWarble, Warble and LIBBLECPP
  • Python 3 only (Python2 is not supported)
  • Windows is no longer supported
MetaWear-SDK-Python - C++ SDK and Python Feature Update

Published by mbientlab over 5 years ago

Changes

MetaWear-SDK-Python - C++ SDK Update

Published by mbientlab almost 6 years ago

v0.6.2 is a bug fix release that updates the underlying C++ SDK to include a critical fix for the fuser processor (commit db15653)

MetaWear-SDK-Python - C++ SDK 0.17.0 Update

Published by scaryghost almost 6 years ago

v0.6.0 updates the underlying C++ SDK from v0.16.0 to v0.17.0 and fixes a path issue when building the C++ sdk on Win32.

MetaWear-SDK-Python - Update To C++ SDK v0.16.0

Published by mbientlab about 6 years ago

v0.5.0 updates the underlying C++ SDK from v0.13.4 to v0.16.0, and ups the min required PyWarble library to v1.1.0.

MetaWear-SDK-Python - C++ SDK and BLE Lib Update

Published by mbientlab over 6 years ago

v0.4.0 updates the underlying C++ SDK it is binding (v0.13.4) and replaces gattlib with our own BLE wrapper library, enabling the Python SDK to be used on Windows 10 (min FCU) devices as well.

Changes

Due to the aforementioned updates, there are breaking changes in this release.

C++ SDK

C++ SDK v0.12.0 added an extra void* parameter to functions / types containing function pointers (see specifics in the SDK release notes). As this SDK is a wrapper around the underlying C++ code, developers must update their bindings with the new types and parameters. Python does not require use of the new context parameter so it can be set to None.

See the diff for multi_device.py for an example of the change.

MetaWear Class

The new Linux ble library chooses hci devices based on their mac address instead of their name. To accommodate this change, the device option for the MetaWear constructor function has been renamed to hci_mac.

For example, given this hciconfig out:

hci0:	Type: Primary  Bus: USB
	BD Address: 9C:B6:D0:15:FC:A0  ACL MTU: 1024:8  SCO MTU: 50:8
	UP RUNNING 
	RX bytes:71588 acl:18 sco:0 events:2181 errors:0
	TX bytes:2187 acl:18 sco:0 commands:127 errors:0

You would create a MetaWear object for that hci device as follow:

device = MetaWear(address, **{'hci_mac': '9C:B6:D0:15:FC:A0'})

BLE Scanning

As with previous releases, scanning is done using the underlying BLE library. Refer to the updated scan_connect.py and PyWarble's lescan.py scripts for examples.

MetaWear-SDK-Python - Updated C++ SDK Reference

Published by mbientlab almost 7 years ago

Underlying C++ SDK updated to v0.11.4

MetaWear-SDK-Python - Feature and Compatibility Update

Published by mbientlab almost 7 years ago

v0.3.0 is a small update addressing compatibility issues with the MetaCloud SDK and adds device information fields to the MetaWear class.

Changes

  • Added info field which is a dictionary holding the characteristic values of the Device Information GATT service
  • Changed Python SDK serialization format to include device information
    • Old *.bin files will be automatically removed by the SDK after a deserialization
  • Fixed compatibility issue with the MetaCloud SDK where Python would not properly parse two modules with the same parent module
MetaWear-SDK-Python - Support for Cross Device Downloads and Python3

Published by mbientlab almost 7 years ago

Python SDK v0.2.0 incorporates the anonymous datasignal feature from C++ SDK v0.11 for cross platform data downloads and updates the code to work with Python3.

Changes

  • Updated to C++ SDK v0.11.2
  • Added anonymous datasignal example, see anonymous_datasignals.py
  • Updated examples and MetaWear class to work with Python3
  • Use write type to determine what kind of GATT write to use
  • Fixed bug with the parse_value method when casting int32 values
MetaWear-SDK-Python - SDK Improvements

Published by mbientlab about 7 years ago

SDK v0.1.9 addresses a few bugs and improves overall SDK performance, particularly when updating firmware.

Changes

  • Fixed setup.py's build target for ARM machines
  • Fixed dependency_links styling to accommodate both pip2 and pip3
  • Improved DFU times by ~5x
  • Updated gattlib dependency to use latest forked release (0.20171002)
MetaWear-SDK-Python - Python SDK First Release

Published by mbientlab about 7 years ago

This is the first release of MbientLab's Python SDK for its MetaSensors devices. Tutorials and documentation are still being worked on though the examples folder has full, working sample code demonstrating how to use the SDK.

As this project is a wrapper around the C++ SDK, additional examples can be found in the C++ SDK's unit tests with regards to using the ctypes library to call into the C++ library.

Questions about the Python interface can be posted on our community forums.