Skip to main content

Python library to work with Lenovo HW01

Project description

Lenovo HW01 Build Status

Library to work with Lenovo HW01. To be used in place of Android Lenovo Healthy app.

Dependencies

Traffic analysis

In order to analyse communication between official Android app Lenovo Healthy and Lenovo HW01 device, additional app NordicSemiconductor/Android-nRF-Connect is used to perform traffic logging.

It allows us to write an API library to interact with the watch without using the official Android app.

Debugging

Scan for Bluetooth devices:

$> sudo hcitool lescan
LE Scan ...
XX:XX:XX:XX:XX:XX HW01

Connect to Bluetooth device:

sudo gatttool --device=XX:XX:XX:XX:XX:XX -I -t random
[XX:XX:XX:XX:XX:XX][LE]> connect
Attempting to connect to XX:XX:XX:XX:XX:XX
Connection successful

List device characteristics:

[XX:XX:XX:XX:XX:XX][LE]> primary
attr handle: 0x0001, end grp handle: 0x0007 uuid: 00001800-0000-1000-8000-00805f9b34fb
attr handle: 0x0008, end grp handle: 0x0008 uuid: 00001801-0000-1000-8000-00805f9b34fb
attr handle: 0x0009, end grp handle: 0x000e uuid: 0000190a-0000-1000-8000-00805f9b34fb
attr handle: 0x000f, end grp handle: 0x0014 uuid: 0000190b-0000-1000-8000-00805f9b34fb
attr handle: 0x0015, end grp handle: 0xffff uuid: 0000fee7-0000-1000-8000-00805f9b34fb

Documentation

hw01’s documentation

Test

pip install -r dev-requirements.txt
./setup.py nosetests

References

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for hw01, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size hw01-1.0.0-py2.py3-none-any.whl (5.4 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size hw01-1.0.0.tar.gz (5.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page