API for the bluetooth Attys DAQ box (www.attys.tech)
Project description
Attys is a lightweight wearable bluetooth data acquisition box which can measure anything from temperature to ECG.
It’s cross platform and runs under Linux and Windows
It has two 24 bit analogue channels, an accelerometer and a magnetometer.
Required packages under Linux
For Ubuntu Linux install libbluetooth-dev and swig:
sudo apt-get install libbluetooth-dev swig
Quick start guide
Here are the basic steps how to use the API:
# load the module import pyattyscomm # Gets the AttysScan class which scans for Attys via bluetooth s = pyattyscomm.AttysScan() # Scan for Attys s.scan() # get the 1st Attys c = s.getAttysComm(0) # create a datacallback class AttysCommCallback(pyattyscomm.SampleCallback): def hasSample(self,t,v): print(t,v) # so more than just printing! cb = AttysCommCallback() pyattyscomm.connectCallback(c,cb) # Start data acquisition in the background c.start() # sleep here or start a GUI # end the acqu c.quit()
API documentation
Query it via the python help system:
import pyattyscomm help(pyattyscomm)
The Python classes have been generated with SWIG. The header files AttysComm.h, AttysCommBase,h and AttysScan.h provide detailed info about the classes:
Demos
On github are python examples which show you how to plot realtime data from the Attys: https://github.com/glasgowneuro/attys-comm/tree/master/examples
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for pyattyscomm-2.1.1-py3.11-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 093d1ccf6604f564b6f499dcdf56f1e96a97fadb5e1c12e872b4908d532ec385 |
|
MD5 | e90b88d169204f45b3a9c0772bf073ef |
|
BLAKE2b-256 | 3c4ae484ea711bfa59fef3d0b589dd6795a71d95c266b2bc0a497e44387edef9 |
Hashes for pyattyscomm-2.1.1-py3.10-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 721fb6d161209cf6ef6ff1e1dbd4f2c1d0f9c356db513d9fd6aa166817f253cd |
|
MD5 | 1a605044bdb0e6b8832f93288b36045e |
|
BLAKE2b-256 | db980bec689190e2e8611509e13567b2627e1c444a990b9ca20ace44e11a7cc1 |
Hashes for pyattyscomm-2.1.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3a7a40483ee48fcadc0ae904fea97520859f8fa140a4a2ee7a8ce0d8c8fdfc7 |
|
MD5 | 55d2c95bb01811c3962fb388b98e4038 |
|
BLAKE2b-256 | fe6c5768f34052d8f0487a28c2de29da83bc86311e132f4c6284b3b44ab590a9 |
Hashes for pyattyscomm-2.1.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 178bc5f4dcca345d1f44e0e94315e4e84d830d954dc2bef984e843305837f7ea |
|
MD5 | 325c6963843d9594de1a7240393e90c0 |
|
BLAKE2b-256 | 454287b6a3b098dbf534d1fc298145bc7c99dbe79c57a1d4781c9f699a319521 |