Skip to main content

A Python GNSS/NMEA receiver simulation

Project description

nmeasim

A Python 3 GNSS/NMEA receiver simulation.

A partial rewrite of the Python 2 gpssim project, originally used to generate test data for NMEA consumers.

Overview

The core of the package is nmeasim.simulator, a GNSS simulation library that emits NMEA sentences. The following are supported:

Geospatial (GGA, GLL, RMC, VTG, ZDA) - simulated using a consistent location/velocity model, time using machine time (not NTP, unless the machine happens to be NTP synchronised).

Satellites (GSA, GSV) - faked with random azimuth/elevation.

The library supports GP (GPS) and GL (Glonass) sentences. GN (fused GNSS) sentences are not currently supported. Additional GNSS types could be added without too much difficulty by extending nmeasim.models.

GUI

Also included is nmea.gui, a Tk GUI that supports serial output to emulate a serial GPS modem. Currently this only supports GP (GPS) sentences.

Features:

  • Static / constant velocity / random walk iteration
  • Custom update interval and simulation speed
  • Option to simulate independent RTC (time with no fix)
  • Custom precision all all measurements
  • Custom sentence order and presence
  • Simulate fix/no-fix conditions
  • Simulate changing satellite visibility

This can be run from source using the console script nmeasim. The GUI is also delivered as a standalone Windows application by the build pipeline - this can be downloaded and executed independently without any Python dependencies.

Install

python -m pip install nmeasim

See releases for pre-built Windows GUI binaries.

License

Copyright (c) 2021 Wei Li Jiang

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Includes Public Domain icons from the Tango Desktop Project.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

nmeasim-0.1.0.2-py3-none-any.whl (187.0 kB view details)

Uploaded Python 3

File details

Details for the file nmeasim-0.1.0.2-py3-none-any.whl.

File metadata

  • Download URL: nmeasim-0.1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 187.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for nmeasim-0.1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e46cf12a8592bc549cf6b4662832b86e894a072a0ecd576d16424f05351a7218
MD5 cf4417301147e89238437e0dc6be25b8
BLAKE2b-256 6e00b405cef033aa13fb9d5d8daca25a40a0b3f1dcd2cb859a3d8152bf4bb3e4

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