Aceinna Navigation System Open Devices Library
Project description
python-openimu
Python driver for OpenIMU and OpenRTK
Working Environment
- Windows10: python2.7 and python 3.7
- Mac OS: python2.7 and python 3.7
Steps
1. Start the tool
There are 2 ways to run the tool
Prepare
Install the dependency library. It is better to create a virtual environments before to do it.
python 3.x
pip install -r requirements.txt
python 2.x
pip install -r requirements-2.x.txt
A. From source code
Run
Please use this way if you want to develop the project.
python main.py
B. Work as execution file
Build
It will be generated in dist
folder.
pyinstaller build.spec
Run it
./ans-devices
Startup Arguments
You can specify some arguments while run the tool
parameters:
Name | Type | Default | Description |
---|---|---|---|
-p, --port | Number | '8000' | Value should be an available port |
--device-type | String | 'auto' | Value should be IMU , RTK |
-b, --baudrate | String | None | Value should be baudrate |
-c, --com-port | String | 'auto' | Value should be a COM port |
--console-log | Boolean | False | Output log on console |
--debug | Boolean | False | Log debug information |
--with-data-log | Boolean | False | Contains internal data log (OpenIMU only) |
-r, --with-raw-log | Boolean | False | Contains raw data log (OpenRTK only) |
-s, --set-user-para | Boolean | False | Set uesr parameters (OpenRTK only) |
-n, --ntrip-client | Boolean | False | Enable ntrip client (OpenRTK only) |
--cli | Boolean | False | Work as command line mode |
2. Connect Aceinna device
Link device to your pc or mac. And the tool will auto detect the linked device.
Work Mode
Normally, python-openimu works as Web mode. It will auto start a websocket server after device is detected. And it can works with acinna developers site to do monitor and set configuration of connected device.
You can specify the startup parameter --cli
to switch to Command Line Mode. Command Line Mode helps you to interact with device without open the brower.
Commnad List:
Name | Description |
---|---|
help | CLI help menu |
exit | Exit Command Line Mode |
run | Operations defined by users |
save | Save thee configuration into EEPROM |
connect | Show information of connected device |
upgrade | Upgrade firmware |
record | Record output data of device |
stop | Stop recording outputs |
server_start | Start server thread and must use exit command to quit |
get | Read the current configuration and output data |
set | Write parameters to device |
Changelogs and Release Notes
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 Distribution
File details
Details for the file openimu-2.2.3.tar.gz
.
File metadata
- Download URL: openimu-2.2.3.tar.gz
- Upload date:
- Size: 87.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.4.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57ab358c49b391dc2523bbd3eb5fac5c9d864d88b9cce246a73601b092c1b3b8 |
|
MD5 | 3125eb16aa4cb06d83ed35aed78e502e |
|
BLAKE2b-256 | 423303ecaedcda0ddfd51a3a1f37aa50bf9903d7be15368e71cc9c0d5b94db2a |
File details
Details for the file openimu-2.2.3-py3-none-any.whl
.
File metadata
- Download URL: openimu-2.2.3-py3-none-any.whl
- Upload date:
- Size: 129.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.4.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b6896027472b5a44f06b15aae2e3b837944b3845750f8ab926598e7daaec6b6 |
|
MD5 | ce0b6670bfe6553e83ae33a289aa98a6 |
|
BLAKE2b-256 | 3a974052f8618ccff887b50f7e096d6b5d48447f033358b5bae212b02b921a39 |