API for the Attys DAQ box (www.attys.tech)
Project description
Attys is a lightweight bluetooth DAQ box which can measure anything from temperature to ECG.
Required packages under Linux
For Ubuntu Linux install libbluetooth-dev:
sudo apt-get install libbluetooth-dev
For other Linux flavours install them from souce:
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) # if an attys has been found c points to it. Otherwise it's None. # Start data acquisition in the background c.start() # Now we just read data at our convenience in a loop or timer or thread # if data is available you can read it from the ringBuffer while (not c.hasSampleAvilabale()): # do something else or nothing # getting a sample (array of all Attys channels) sample = c.getSampleFromBuffer() # do something with the sample print(sample) # rinse and repeat!
API documentation
Query it via the python help system:
import pyattyscomm help(pyattyscomm.AttysScan) help(pyattyscomm.AttysComm)
The Python classes have been generated with SWIG. The header files AttysComm.h and AttysScan.h provide detailed info about the classes:
Demos
On github are two python examples which print the ADC data to the screen and plots it.
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
pyattyscomm-2.0.7.0.tar.gz
(24.5 kB
view hashes)
Built Distributions
Close
Hashes for pyattyscomm-2.0.7.0-py3.7-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa66ac8c669c985c4709b830e2ba811427d97e4f504e7db6d7a8548fe273ba3e |
|
MD5 | e128f2dc14a1d660106f0a32815c7ac5 |
|
BLAKE2b-256 | 84cd596baa0e48347bf3acfbac14c52f94cc97db3adbf03644f7b22b621aa253 |
Close
Hashes for pyattyscomm-2.0.7.0-py3.7-macosx-10.15-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | f05a09038b03af0bfd21f483ea4cf151959803afba58471c4138e09903e286e0 |
|
MD5 | ee39d435ab199d86d6091d953069b528 |
|
BLAKE2b-256 | 38a4071aa27c3e43946d382d2bc385362dc5846393bff9e992b59043fe911832 |
Close
Hashes for pyattyscomm-2.0.7.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5b997523f8d9a07be5cff0daa16bd172a44c51078531692d29dd0785f9b8b18 |
|
MD5 | 1a1c702b7a6274ee0b09a2e5cc318849 |
|
BLAKE2b-256 | 7d52752ffdf7da3c3bd15ad5f337b191b30f4fdffe28ebf69d75a91d1ec08cbd |
Close
Hashes for pyattyscomm-2.0.7.0-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 223cba02c5f0267ad7207c955438afdedc66f282da2fec98065af5cce4691436 |
|
MD5 | fdab06a99cbb7f138b534d663a261953 |
|
BLAKE2b-256 | f0e85a51f2bf604e311c5d2f54345c4fe96793d29e4feb0173d009adee21a896 |