U-Blox Neo6-M GPS + HC-06 Bluetooth + Laptimer = ???

Discussion related to external and internal GPS / GLONASS / Galileo / BeiDou sensors
Post Reply
Supra^
Fewer than 10 Posts
Fewer than 10 Posts
Posts: 1
Joined: Thu Jun 01, 2017 11:13 am

U-Blox Neo6-M GPS + HC-06 Bluetooth + Laptimer = ???

Post by Supra^ »

Hello!

I was thinking of using an 10Hz GPS instead of the built-in 1Hz on my phone. I found a DIY on the internet regarding a RYN725AI, and inspired from that i checked my electronics box, and i just happened to have a few U-Blox Neo6-M GPS modules left over from some old projects. I did some testing and tweaking, and it seems i can get 10Hz output from the module:

Image


The question is, what sort of data does the Laptimer support and does it need more than coordinates, eg. altitude/speed?

Image



Wouldn't want to use any excess because it seems to cripple the data transmission when in 10Hz mode. (Baudrate of the Ne06-M is 9600 and cannot be changed by software i think)


Datasheets:
https://www.u-blox.com/sites/default/fi ... 09005).pdf
https://www.olimex.com/Products/Compone ... s/hc06.pdf
User avatar
Harry
Site Admin
Site Admin
Posts: 10008
Joined: Sun Sep 12, 2010 10:32 am
Location: Siegum, Germany
Contact:

Re: U-Blox Neo6-M GPS + HC-06 Bluetooth + Laptimer = ???

Post by Harry »

This is the NMEA portion LapTimer supports:

Code: Select all

    //  ***************** Current sentence / value matrix *****************
    //
    //                          VB* RMC GGA GSA GSV VTG ZDA GBS PWR
    //  ------------------------------------------------------------
    //
    //  # satellites            X       X
    //  tracked satellite ids               X
    //  satellites almanac                      X
    //  differential            X       X
    //  positioning             X           X
    //  validity                X   X   X
    //  utc date                X   X                   X
    //  utc time                X   X   X               X   X
    //  latitude                X   X   X
    //  longitude               X   X   X
    //  speed                   X   X               X
    //  heading                 X   X               X
    //  height                  X       X
    //  battery                 X                               X
    //  HDOP                    X       X
    //  GBS accuracy                                        X
    //  ...
    //
    //  # sentences / fix       1   1   1   1-3 1-8
    //
    //  ********************* valid combinations *************************
    //
    //  VB*                     missing satellite almanac but complete otherwise
    //  RMC+GGA+GSA+GSV         complete
    //  GGA+GSA+GSV+ZDA         complete
    //  GGA+GSA+GSV             complete (date reproduced)
    //
    //  GBS                     optional for better accuracy calculation
    //  PWR                     optional, support for additional Dual XGPS firmware v2 sentence
I recommend to enable RMC+GGA+GSA+GSV, with RMC+GGA at 10 Hz and GSA+GSV at 1 Hz or lower.

- Harry
Image Image Image Image
waz664
Fewer than 10 Posts
Fewer than 10 Posts
Posts: 4
Joined: Fri Jun 02, 2017 10:53 pm

Re: U-Blox Neo6-M GPS + HC-06 Bluetooth + Laptimer = ???

Post by waz664 »

I have been working on this as well. The roadblock I have is in using a BLE module for iOS. The option for using BLE for an OBD module seems to work well, but that option doesn't exist for GPS. Is it possible to use a custom BLE setting for GPS?
User avatar
Harry
Site Admin
Site Admin
Posts: 10008
Joined: Sun Sep 12, 2010 10:32 am
Location: Siegum, Germany
Contact:

Re: U-Blox Neo6-M GPS + HC-06 Bluetooth + Laptimer = ???

Post by Harry »

Not currently. The OBD BTLE interface should probably get a better design too - with separate channels for in and out streams. I have that on my list for there planed sensor customization framework.

- Harry
Image Image Image Image
waz664
Fewer than 10 Posts
Fewer than 10 Posts
Posts: 4
Joined: Fri Jun 02, 2017 10:53 pm

Re: U-Blox Neo6-M GPS + HC-06 Bluetooth + Laptimer = ???

Post by waz664 »

Let me know if you need any beta testing. Also I am happy to put together a prototype for testing if you need one. I do have the communication working internally at 115200 so the BTLE can transmit the full compliment of NMEA messages at 10Hz. I did some testing by logging the data to an SD card and the extra precision is very beneficial in turns.
User avatar
rbono459890
10 or more Posts ★
10 or more Posts ★
Posts: 15
Joined: Mon Sep 14, 2020 5:13 am

Re: U-Blox Neo6-M GPS + HC-06 Bluetooth + Laptimer = ???

Post by rbono459890 »

Are GSA+GSV messages needed functionally for anything but the constellation map for satellites?

Since GGA provides the status (fix / not fixed), the number of satellites, and DOP, it looks like it's a nice to have information but not required.

This might be a noob question, nonetheless I have it :)
User avatar
Harry
Site Admin
Site Admin
Posts: 10008
Joined: Sun Sep 12, 2010 10:32 am
Location: Siegum, Germany
Contact:

Re: U-Blox Neo6-M GPS + HC-06 Bluetooth + Laptimer = ???

Post by Harry »

You can find all information in my post above.

GSA+GSV are optional and are used to display satellite information only. But: why cripple a system when the added functionality comes at (nearly) no price? The only reason to skip GSA+GSV is bandwidth. But you can reduce the update rate to 1 or less Hz - which is adding 10 or even less percent in bandwidth!

- Harry
Image Image Image Image
User avatar
Harry
Site Admin
Site Admin
Posts: 10008
Joined: Sun Sep 12, 2010 10:32 am
Location: Siegum, Germany
Contact:

Re: U-Blox Neo6-M GPS + HC-06 Bluetooth + Laptimer = ???

Post by Harry »

P.S. In addition, the device will loose a 5 star rating on our compatibility pages in case it misses sat information. :-) ;-)
Image Image Image Image
User avatar
rbono459890
10 or more Posts ★
10 or more Posts ★
Posts: 15
Joined: Mon Sep 14, 2020 5:13 am

Re: U-Blox Neo6-M GPS + HC-06 Bluetooth + Laptimer = ???

Post by rbono459890 »

For future reference*, the polling commands for GSA and GSV under the ublox M8 protocol are:

GNGSA:

Code: Select all

$EIGNQ,GSA*2D
GNGSV:

Code: Select all

EIGNQ,GSV*3A
This assuming GN (GNSS), if using GPS there is an equivalent EIGPQ option.

For https://github.com/renatobo/bonogps I simply used a scheduled task that requests GSA and GSV (one each time) periodically (1 sec = 1 request each every 500 msec)
The polling commands make this extremely easy.

* finding out how took me more than I expected so I imagine this might be useful for someone else in the future
Reference documentation: https://www.u-blox.com/sites/default/fi ... 221%29.pdf
Post Reply