-
Notifications
You must be signed in to change notification settings - Fork 8
Adding basic BLE Notify example for sending GPS data #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Adding basic BLE Notify example for sending GPS data #19
Conversation
|
@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? |
|
@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. |
|
@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 |
|
@brentpicasso It's updated now with the baud rate and GPS frequency change. Unfortunately, it's untested on my end right now. |
|
Got it. Are you able to test it soon on your end? |
|
Yes, I just need to solder my board together. I'll report back when it's done unless you all get to it first. |
|
@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? |
|
@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. |
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.