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.6.0.tar.gz
(22.8 kB
view hashes)
Built Distributions
Close
Hashes for pyattyscomm-2.0.6.0-py3.7-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44cab93085e5cfb2827727d1a41831644c5beeec8ebc036d775f1f658094cfc5 |
|
MD5 | e7a1c30774338551331a6491c286bf12 |
|
BLAKE2b-256 | 77a962af23edb369062e508b10ccd13a6ea7353823ed80f148b912bedbf53600 |
Close
Hashes for pyattyscomm-2.0.6.0-py3.7-macosx-10.15-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 487ddd210ce1f1f6252ff7a902478d4cbc5bc58a49f5219663fe9818ef42c6ac |
|
MD5 | 953f43343bb7c7f1218da37cea352cb5 |
|
BLAKE2b-256 | 6c58e4c77ef94c9fe94d52cb077a16df21f4acd40eba8aad9971374e42edb9a3 |
Close
Hashes for pyattyscomm-2.0.6.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b7a91bf9bcc1eb26c4522936c30ba0e50fee180d58fee48059dc9c853ad8520 |
|
MD5 | 2a81be07ebf4d0e895ca43d362abf5ca |
|
BLAKE2b-256 | 34b151213d141e7b214fb944ad4516674aad5b3dae86638d3a4aba5152636bfa |
Close
Hashes for pyattyscomm-2.0.6.0-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 030663e345a827ec7a8530aaf11ffea5f00291ddd1bfce33c8e60910c1bff59a |
|
MD5 | 15f0eb7c9aded383ec151d878f8a9598 |
|
BLAKE2b-256 | 9825d95d5df681d56769624a3fe76a8fa9771fe3711af8d6d4e43947dd6a7f33 |