Giter VIP home page Giter VIP logo

nmea0183's People

Contributors

iamfromspace avatar nsforth avatar nstaroverov avatar p3zhy avatar timbod7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nmea0183's Issues

Feature Request: Add GSV Sentence Parsing Support

Motivation

I am currently using the nmea0183 crate for my project, which involves GPS data processing for spoofing detection. I've noticed that the crate lacks support for parsing GSV (Satellites in View) sentences.
Spoofing attacks involve the generation of fake GPS signals, and having detailed information about the visible satellites, including their the PRN numbers, elevations, azimuths, and SNR , is crucial for identifying and mitigating such attacks. The addition of GSV parsing support will significantly contribute to the crate's capabilities in the context of spoofing detection.

Proposed Changes

I propose adding a new module for GSV parsing and implementing the necessary logic to parse GSV sentences. This enhancement will not only complete the set of essential NMEA sentences but also empower the nmea0183 crate to play a more critical role in applications focused on GPS data integrity and security.

Checklist

  • Discuss the proposed changes with the community and maintainers.
  • Receive feedback and suggestions.
  • Reach a consensus on the implementation approach.
  • Proceed with implementing the changes and submitting a pull request.

Request for adding MTK NMEA Packet Protocol support.

Issue Summary

This issue is to request the addition of support for MTK NMEA Packet Protocol in the parser.

Proposed Changes

  • Implement parsing logic for MTK-specific NMEA sentences.
  • Add support for the $PMTKSPF sentence to extract jamming detection status.

Context

Currently, the parser lacks compatibility with MTK-based GPS modules, and users cannot access jamming detection status. The proposed changes aim to address this limitation.

Panic "index out of bounds"

fn main() {
    let line = "\u{3}$GPG\u{3}GA,1\u{3}5502\u{3}2.17\u{3}5,53\u{3}50.2\u{3}328,\u{3}N,02\u{3}728.\u{3}5283\u{3},E,1\u{3},5,1\u{2}.4\u{3}0,24\u{3}1.3,\u{3}M,26\u{3}.4,M\u{3},,*5\u{3}1\r\n";

    for result in Parser::new().parse_from_bytes(line.as_bytes()) {
        println!("{:?}", result);
    }
}

thread 'main' panicked at 'index out of bounds: the len is 79 but the index is 79', /Users/vadzim/.cargo/registry/src/github.com-1ecc6299db9ec823/nmea0183-0.2.1/src/lib.rs:355:21

Can't determine number of sattelites until a position is found

Thanks for this library - it's saved me effort in getting a small embedded GPS device up and running.

One issue is that the number of satellites being received is part of the GGA message, but the parser only returns GGA results once a fix is available.

A solution would be to have the parser output 2 types of GGA messages, with and without a fix. ie change to something like:

pub enum ParseResult {
    RMC(Option<RMC>),
    GGA(GGA),
    GGANoFix(GGANoFix),
    GLL(Option<GLL>),
    VTG(Option<VTG>),
}

pub struct GGANoFix {
    pub sat_in_use: u8,
}

Is this a reasonably solution? Would you accept a PR for this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.