Skip to content

Conversation

@FlorianMuellerklein
Copy link

Hey ASL! Here's a basic BLE GPS example. It's a simple example will create a BLE notify server and send updates every time the GPS module updates. I don't have the bolt-on that you all sell because I made my own ESP32 GPS device before I was aware of what you all have done. But, I made the changes based on the other scripts and this should run with your hardware (changing baud rate and pins to match your other examples).

A 32 byte payload is created and transfered on each GPS update.

  • bytes 0-7 latitude
  • bytes 8-15 longitude
  • bytes 16-23 speed m/s
  • bytes 24-25 year
  • bytes 26 month
  • bytes 27 day
  • bytes 28 hours
  • bytes 29 minute
  • bytes 30 second
  • bytes 31 centisecond

@brentpicasso
Copy link
Contributor

@FlorianMuellerklein thanks! Looks pretty clean and straightforward; I'll give it a brief whirl and then likely approve/merge.

Can you recommend a generic BTLE android app do you recommend for testing this?

@FlorianMuellerklein
Copy link
Author

@brentpicasso I've used this in the past to test things: https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-for-mobile. It obviously won't parse the bytes but you should be able to confirm that you are receiving 32 bytes on each update when you subscribe to the service.

@brentpicasso brentpicasso self-requested a review April 29, 2025 14:45
@brentpicasso
Copy link
Contributor

@FlorianMuellerklein - See this PR for updates to our standard GPS -> broadcast; there's an improvement where we configure the GPS receiver to update at 10Hz vs the standard 1Hz.

perhaps you'll want to update your PR with this enhancement? #22

@FlorianMuellerklein
Copy link
Author

@brentpicasso It's updated now with the baud rate and GPS frequency change. Unfortunately, it's untested on my end right now.

@brentpicasso
Copy link
Contributor

Got it. Are you able to test it soon on your end?

@FlorianMuellerklein
Copy link
Author

Yes, I just need to solder my board together. I'll report back when it's done unless you all get to it first.

@FlorianMuellerklein
Copy link
Author

@brentpicasso for whatever reason I can't get any readings from the GPS bolt on. Even with this other example from your repo. Tiny GPS just reads 0 for every field.

@brentpicasso
Copy link
Contributor

@brentpicasso for whatever reason I can't get any readings from the GPS bolt on. Even with this other example from your repo. Tiny GPS just reads 0 for every field.

Any update?

@FlorianMuellerklein
Copy link
Author

@brentpicasso Unfortunately not. I believe that I've either broken something when soldering everything together (more likely) or GPS module isn't working for whatever reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants