Skip to main content

Driver for Septentrio GPS, posting messages to mqtt

Project description

Septentrio GPS

Source Code: https://gitlab.com/roxautomation/components/septentrio-gps

Usage

get docker image (use tag for version)

registry.gitlab.com/roxautomation/components/septentrio-gps:latest

Environment Variables

Configuration is defined in config.py Set these environment variables to configure MQTT and GPS settings:

MQTT

  • MQTT_HOST: MQTT server host (default: "localhost").
  • MQTT_PORT: MQTT server port (default: 1883).
  • MQTT_POSITION_TOPIC: MQTT topic for GPS positions (default: "/gps/position").
  • MQTT_DIRECTION_TOPIC: MQTT topic for GPS directions (default: "/gps/direction").

GPS

  • GPS_NODE_TYPE: "serial" or "ip".
  • GPS_SERIAL_PORT: Serial port for GPS (default: "/dev/gps_nmea").
  • GPS_SERIAL_BAUD: Baud rate for GPS serial communication (default: 115200).
  • GPS_IP_HOST : ip server address (default localhost)
  • GPS_IP_PORT : ip port (default 28000)
  • GPS_REF: gps reference point, provide lat,lon, example: GPS_REF="51.123,6.456"

Precision

  • DIGITS_POSITION : meter position accuracy, defaults to 3
  • DIGITS_LATLON : digits latitude and longitude, defaults to 8
  • DIGITS_ANGLE : angle accuracy, defaults to 4

Example launch with custom parameters

docker run \
-e MQTT_HOST=192.168.1.100 \
-e MQTT_PORT=8883 \
-e GPS_PORT=/dev/ttyS0 \
registry.gitlab.com/roxautomation/components/septentrio-gps:latest

Documentation

The documentation is automatically generated from the content of the docs directory and from the docstrings of the public signatures of the source code.

Online documentation: https://roxautomation.gitlab.io/components/septentrio-gps/

Development

There should be mqtt broker available on the host system. If not, there is a docker image for that:

docker run -d --name mosquitto --restart unless-stopped -p 1883:1883 registry.gitlab.com/roxautomation/images/mosquitto:latest
  • Open in VSCode devcontainer. Virtual com port is located at /tty/tty_nmea_rx
  • Pre-recorded nmea stream can be sent to com port with replay_data.py in integration/data folder.

TODO

Current setup works, but it can always be made better.

  • add tests
  • Use uart ports instead of usb. This will make system more robust.

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

rox_septentrio-0.4.1.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

rox_septentrio-0.4.1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file rox_septentrio-0.4.1.tar.gz.

File metadata

  • Download URL: rox_septentrio-0.4.1.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for rox_septentrio-0.4.1.tar.gz
Algorithm Hash digest
SHA256 f12c023177bf9ce9d20bd9698d99e8deb2b1c3ac80684fe46f2aaa1ea33ac156
MD5 30015cc7e5e9f0606c8f126ff079cd77
BLAKE2b-256 d8d7260c6ebb1d89bd500ae9b3ef30d43b8aaec06842a8aa160208480cbb8e08

See more details on using hashes here.

File details

Details for the file rox_septentrio-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for rox_septentrio-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1b8f9c0e8e0a91979f9c1371d6ad80dd9771b7d29a320da257e5f820c5bf9741
MD5 07294ff55a5f37aef21d24c63990169b
BLAKE2b-256 3eaf69d2c405be39648ea86f49e925378f9d845f1685e6899355545aead55cd6

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