Nooploop LinkTrack UWB Products Python API.
Project description
Nooploop LinkTrack UWB
Overview
Unofficial Nooploop LinkTrack UWB Devices Python API. It parses Nooploop LinkTrack UWB Protocols.
- Nooploop Homepage: https://www.nooploop.com/
Supported Devices
Product | Supported? | Protocols |
---|---|---|
LinkTrack | NO | - |
LinkTrack AOA | Partial | NLink_LinkTrack_AOA_Node_Frame0 |
Installation
System
Ubuntu20.04 (Ubuntu18.04, Windows Should also work fine.)
Prerequisites (If you want to build from source)
- Setuptools,
- Wheel
Install with one line.
(your terminal)$: pip install --upgrade pip setuptools wheel
Dependencies
pyserial >= 3.5 (Tested with 3.5. Lower version should works fine.)
Install
- Build From Source
- Download Source Code.
- Change directory to source code root.
- Running Command in your terminal
$: python setup.py sdist bdist_wheel
- Change directory to
(source code root)/dist
. Run
(source code root)$: pip install ./Nooploop_UWB-0.0.1-py3-none-any.whl
- You are all set.
- Install From Release
- Download
Nooploop_UWB-0.0.1-py3-none-any.whl
- Change directory to
(Your downloads directory)
. Run
(Your downloads directory)$: pip install ./Nooploop_UWB-0.0.1-py3-none-any.whl
- You are all set.
Run Example
- Change directory to
(source code root)/examples
. Run
(source code root)$:python example.py
- Outputs:
{
"role": 2,
"id": 0,
"voltage": 4.364,
"node_quantity": 1,
"nodes": {
"0": {
"role": 1,
"id": 0,
"distance": 1.327,
"angle": 57.66,
"fp_rssi": -84.5,
"rx_rssi": -80.0
}
}
}
Usage
from nooploop_uwb import aoa
if __name__ == '__main__':
# Create AOA Instance with `config.json`
UWB_AOA = aoa.AOA('config.json')
# or create instance by passing port, baudrate parameters.
# UWB_AOA = aoa.AOA(port='/dev/ttyUSB1', baudrate=9216000)
try:
while True:
# __str__ method.
print(UWB_AOA)
# Get data in JSON format.
json_data = UWB_AOA.get_data_json()
# Get data in dictionary format.
dic_data = UWB_AOA.get_data()
except KeyboardInterrupt:
print("Press Ctrl-C to terminate while statement")
UWB_AOA.terminate()
# config.json
{
"port": "/dev/ttyUSB1",
"baudrate": 921600
}
License
This project is licensed under the MIT License. Copyright 2021 JaySurplus
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
nooploop-uwb-0.0.1.tar.gz
(4.8 kB
view details)
Built Distribution
File details
Details for the file nooploop-uwb-0.0.1.tar.gz
.
File metadata
- Download URL: nooploop-uwb-0.0.1.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab800b211c5298c17dd5312cbdb8b34198f31fe84c685ede4b19822488b12717 |
|
MD5 | 1359dabc06b317dd0b92fc6a411c90b1 |
|
BLAKE2b-256 | 674dca5403ad44f00c4219529f6542fa8958c076b7280028377feeca8b27f8b8 |
File details
Details for the file nooploop_uwb-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: nooploop_uwb-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0150419aa89898a8e85198e203e9fe1c6e0838586195a43d893abd944183c93 |
|
MD5 | f3d4e40a7b9aa6257d15ee592d10c662 |
|
BLAKE2b-256 | dfd4878f223420c0a8e35040f1a56cd3b44629dc905a082736af35f9cbfc35c1 |