Unofficial Nooploop LinkTrack UWB Devices Python API. It parses Nooploop LinkTrack UWB Protocols.
- Nooploop Homepage: https://www.nooploop.com/
Product | Supported? | Protocols |
---|---|---|
LinkTrack | NO | - |
LinkTrack AOA | Partial | NLink_LinkTrack_AOA_Node_Frame0 |
Ubuntu20.04 (Ubuntu18.04, Windows Should also work fine.)
- Setuptools,
- Wheel
Install with one line.
(your terminal)$: pip install --upgrade pip setuptools wheel
pyserial >= 3.5 (Tested with 3.5. Lower version should works fine.)
- 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.
- 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
}
}
}
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
}
This project is licensed under the MIT License. Copyright 2021 JaySurplus