-
Notifications
You must be signed in to change notification settings - Fork 7
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
Latitude always returns as "0"? - ArduinoIDE version with Chirpstack decoder #1
Comments
I skimmed the code and it doesnt appear obvious at first glance. I am using Wisblock 2 kit also (RAK1900 GPS module, so it uses the TinyGPSPlus library). @beegee-tokyo what do you think? |
I guess you are using the latest code from this repo. What payload decoder are you using in Chirpstack? Just run a test and it works as expected. BLE Log:
|
Yes I am using the latest code. However, I used the chirpstack decoder from the decoder folder and not the one you mentioned. I will try the decoder you suggest on Monday and advise. Thankyou for the prompt response. |
Hi @beegee-tokyo I had to modify the decoder you mention slightly such that it would work with latest chirpstack version (decodeUplink method with input and requirement to return 'data'). See below output, as latitude is still reading 0.
|
I have also set "AT+GNSS=1" as well if that helps? |
What do you get in the direct log output of the device?
You can get this through USB and it should be as well available on BLE UART connection. |
OK so firmware confirmed to be 1.1.2 Jan 17 2023 13:24:19 I also tried your RAKwireless_Standardized_Payload decoder. I am still getting latitude of 0, as well as on the local log output of the device via USB, I will screenshot a copy of the output for you. |
That is strange, I know there was a problem with negative lat/long values before, but that was solved. What is the latitude that you would expect to get? |
I have six wisblock kits here all doing the same thing. |
So what is the expected latitude? Testing here with the latest firmware version works fine. |
approx -24.4428XX |
You are testing outside of a building or inside? |
I am outside |
I have honestly no idea what happens. |
The test code reads the latitude perfectly. |
The only relevant difference I can see between the RAK1910_GPS_UBLOX7.ino and the LPWAN-Tracker-Solution.ino is the used library. The first one uses the TinyGPS library, the second one the TinyGPSPlus library. Can you check which version of the TinyGPSPlus library you have installed. My TinyGPSPlus library is version 1.0.3 which seems to be the latest. Can you try to flash this UF2 file on your tracker? This is the code that I am using and I don't see your problem with it. |
I guess you know how to flash the UF2 file, but just in case:
|
Thanks, I am testing this now, will report back shortly. |
No change, I am still seeing latitude as 0 with your UF2 file. |
Still no idea why it does not work for you. Can you give it a try? |
@dvisser Please use this version: |
OK I will test now and report back ASAP |
I changed the code to use the library that is used in the RAK1910_GPS_UBLOX7 example that you tried before. I have no more ideas. It simply works with both libraries for me. |
I have deployed this solution using the ArduinoIDE version and used the chirpstack decoder, however the returned gps latitude is always "0" whilst longitude appears correct.
Please can this issue be addresses?
All other functionality appears to be working correctly.
The text was updated successfully, but these errors were encountered: