Skip to main content

Aceinna Navigation System Open Devices Library

Project description

python-openimu

A message communication tool for OpenIMU, OpenRTK and other devices of Aceinna

Working Environment

  • Windows10: python 3.7
  • Mac OS: 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 environment before to do it.

python 3.x

$ pip install -r requirements.txt

A. From source code

Run

Please use this way if you want to contribute the project.

$ python main.py

B. Work as execution file

Build

The executable will be generated in dist folder.

$ pyinstaller build.spec
Run
$ cd dist
$ ./ans-devices
Startup Arguments

You can specify some arguments while run the tool

Arguments:

Name Type Default Description
--cli Boolean False Work as command line mode
-p, --port Number '8000' Value should be an available port
--device-type String 'auto' Value should be one of IMU, RTK, DMU
-b, --baudrate String None Value should be a valid baudrate. The valid value should be one of 38400, 57600, 115200, 230400, 460800
-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)
-s, --set-user-para Boolean False Set uesr parameters (OpenRTK only)
-n, --ntrip-client Boolean False Enable ntrip client (OpenRTK only)
-l, --protocol String 'uart' Value should be uart, lan. Depends on device type

2. Connect Aceinna device

Link device to your pc or mac. The tool will auto detect the linked device by default.

More Usage

Work Mode

Default Mode

Normally, python-openimu works as default mode. It will establish a websocket server, then exchange messages through the websocket protocol. And it should work with aceinna developers site, it allows user to do data monitor, configuration and firmware management.

Command Line Mode

You can specify the startup argument --cli to switch to Command Line Mode. Command Line Mode helps you interact with device directly. And it also supply command to start a websocket server, so that you can use the full features of Default Mode.

Command Line Mode supports some commands for using, below is a list of commands description,

Help

Show help menu. It would show a list of description for all supported commands.

$ help

Get Device Info

Show information of connected device.

$ connect

Get Parameter (OpenIMU Only)

Retrieve current value of specified parameter.

$ get param_name

Set Parameter (OpenIMU Only)

Update the value of specified parameter. The value would be recoverd after device power off.

$ set param_name param_value

Save Configuration

Save the configuration into EEPROM. The value would be permanently saved.

$ save

Record Data (OpenIMU Only)

Log the device output data in path /data. It is not supported for OpenRTK, because OpenRTK device will automatically log data when it is connected.

$ record

Upgrade Firmware

Upgrade firmware from a specified path. The binary file should match with the device. This is a high risk command.

$ upgrade path/to/bin

Start Server

Establish a websocket server.

$ server_start

Stop Server

Stop the websocket server. If there is websocket server runing, it has to stop it when you want to use other command.

$ stop

Exit

Quit from Command Line Mode

$ exit

Protocol

Aceinna Device could be connected with your PC via UART or LAN. The supported protocol is depended on the device type.

Device Type Supported Protocols Description
DMU uart
OpenIMU uart
OpenRTK uart, lan The startup argument -l lan is supported
RTK330L uart

Changelogs and Release Notes

Please refer to HISTORY.md

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openimu-2.3.2.tar.gz (95.2 kB view details)

Uploaded Source

Built Distribution

openimu-2.3.2-py3-none-any.whl (127.7 kB view details)

Uploaded Python 3

File details

Details for the file openimu-2.3.2.tar.gz.

File metadata

  • Download URL: openimu-2.3.2.tar.gz
  • Upload date:
  • Size: 95.2 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

Hashes for openimu-2.3.2.tar.gz
Algorithm Hash digest
SHA256 ab18b601e07340f3c770b8397f6b886803ace55b7f16048d247e401d5958c57b
MD5 b77acb1daf5ede0e0080324a0c4b1f74
BLAKE2b-256 c5b97583ed3671b58abfcd6167734d67e88c633f1e1cd1d5839f70d688b7421e

See more details on using hashes here.

File details

Details for the file openimu-2.3.2-py3-none-any.whl.

File metadata

  • Download URL: openimu-2.3.2-py3-none-any.whl
  • Upload date:
  • Size: 127.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

Hashes for openimu-2.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c4fd96302963d5f75f9cdb6402329d6fb5be0fef5adc2b04ba5176885d5a51ed
MD5 2941537c6e2f6d5cb9c7a82590403f01
BLAKE2b-256 845af7770584fcd9ee52415138bd0e8b3bd6e8748ed2a21d9a07e6d26ac8d0c6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page