Estimating accuracy from raw NMEA data

Discussion in 'General GPS Discussion' started by fahad, Sep 19, 2016.

  1. fahad

    fahad

    Joined:
    Sep 19, 2016
    Messages:
    3
    Likes Received:
    0
    I am developing an android app for a usb GPS module of UBLOX. Is there any accuracy information in the raw NMEA data which i can use in my GUI? or do I have to use any algorithm to calculate the accuracy?
     
    fahad, Sep 19, 2016
    #1
  2. fahad

    Nuvi-Nebie Moderator

    Joined:
    Aug 16, 2015
    Messages:
    2,329
    Likes Received:
    198
    Location:
    UK
    Although I found some info. stating that Ublox use NMEA sentences, I couldn't find info. about which sentences they output. Some GPS modules supply a single sentence, whereas others output many. Here is a link showing what is contained in a selection of sentences: -

    http://www.gpsinformation.org/dale/nmea.htm#PGRME

    EDIT
    Having examined the link above a little closer, it looks like Ublox sends out the GSA sentence which contains DOP data, so the calculations have already been done for you

    ublox.jpg
     
    Nuvi-Nebie, Sep 23, 2016
    #2
    fahad likes this.
  3. fahad

    fahad

    Joined:
    Sep 19, 2016
    Messages:
    3
    Likes Received:
    0

    Thanks for the reply, how can I get accuracy in meters/cm from that?
     
    fahad, Sep 23, 2016
    #3
  4. fahad

    Nuvi-Nebie Moderator

    Joined:
    Aug 16, 2015
    Messages:
    2,329
    Likes Received:
    198
    Location:
    UK
    Some GPS manufacturers add their own 'extra' NMEA sentences to their products I.e. Garmin use GPRME, this gives an accuracy figure in metres, I haven't seen a formula detailing how they arrive at these figures, although I would guess that they use the info. in GSA and GGA, here is a link that may help :-
    http://edu-observatory.org/gps/gps_accuracy.html

    If you have access to a Garmin unit, you could examine the HDOP, VDOP, PDOP, number of satellites in view etc. and compare them to the HPE and VPE figures presented in the PGRME sentence, in that way it may be possible to determine values similar to their's
     
    Nuvi-Nebie, Sep 24, 2016
    #4
  5. fahad

    fahad

    Joined:
    Sep 19, 2016
    Messages:
    3
    Likes Received:
    0
    Yeah in case of Garmin it's already done in GPRME but in Ublox there is no such sentence which gives accuracy in meters, I have gone through this link but I didn't succeed to find a solution. However I read in forum that multiplying 'hdop' with the "best accuracy" of your GPS receiver can give you accuracy in meters, and for an RTK this 'best accuracy' is between 1-5 cm ... I am not sure how accurate is this approach?
     
    fahad, Sep 25, 2016
    #5
  6. fahad

    semuadmin

    Joined:
    Oct 26, 2020
    Messages:
    1
    Likes Received:
    0
    Sorry for very late reply, but if it's a u-blox device you can enable the proprietary NMEA "UBX,00" sentence which includes accuracy in meters (it's the 'hAcc' field). Derivations based on HDOP alone are arbitrary at best. Alternatively you could of course switch the device to UBX protocol instead of (or as well as) NMEA - you then have access to the UBX "NAV-PVT" & "NAV-VELNED" message types, both of which include horizontal accuracy in meters.

    By the way, if you're after a free, open source cross-platform utility which supports u-blox device configuration, you might like to check out :-

    Code:
    https://github.com/semuconsulting/PyGPSClient
     
    semuadmin, Oct 26, 2020
    #6
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.