-
Notifications
You must be signed in to change notification settings - Fork 964
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
RAK1910 GPS on RAK5005-0: GPS obtains no location fix after FW 1.2.46.dce2fe4 #998
Comments
@feh123 Do you have device logs for this? |
Hi I have a serial output from platformio. It consists of a lot of lines - the first set show a 4631/1910 with working gps |
@a-f-G-U-C This seems to be related to a number of GPS changes you made, any insight in to why UBLOX stoped working for RAK after your changes? |
Thanks @garthvh - good catch, although at a quick glance I couldn't really spot any problematic code. Unfortunately I don't have a RAK device to test, and no fixed address to order some now, but I should still be able to get a pretty good idea from some good logs. What I'd like to see in the logs:
Thank you |
Hi @a-f-G-U-C I could try but can you give me some instruction on what log you need? The iOS app log is easiest but misses the start up of the rak device. I can connect the rak to my mac and I have meshtastic python running on that. I have not tried platformio on my mac yet nor any other serial type output software (Putty). So I maybe too limited on logging! |
@a-f-G-U-C There is already a log attached above. This (or some of the other changes that went into 1.2.46) are also likely affecting android app functionality per @andrekir and seems to have broken a number of GPS display modes. |
@feh123 Unfortunately I'm not familiar with the RAK platform, but the easiest way to capture the messages is to connect a serial terminal (Putty is an unusual choice, but should work nonetheless), enter the correct port settings, and once you see the log messages correctly, press the reset button on the board. @garthvh If you mean the PDF log, it doesn't really seem to capture the problem, but I may be wrong - can you please let me know which lines you had in mind? |
@a-f-G-U-C you can see on the first page of the log where there is WANT GPS=1 and it is powered on and then there is no response. |
I've attached ~40 minutes' worth of logs from my RAK 5005, hopefully it helps |
Thanks @tropho23 , it does help. I am still not clear why the very first boot messages (with the firmware version, hardware initialization etc) are missing from all the RAK logs I've seen so far, is this normal for the RAK platform? There's an important piece of information in those early stage messages that we're currently missing: https://github.com/meshtastic/Meshtastic-device/blob/7a9450b250e82b53e9f394540785aa447920f9df/src/gps/UBloxGPS.cpp#L57 |
Hmm… That is normal for the nrf family of chips. The usb device needs to be initialized sooner in the startup sequence because they’re not using a usb bridge. This needs to happen before the rest of the M startup or the M startup delayed to accommodate the timing. If a bug can be opened for this, I’ll work on the fix. |
I'm not sure what you mean by working; the RAK seems to function fine IRT LoRa and Bluetooth comms, it just never acquires any satellites. Is there something I should do or try to produce the information you need? |
@tropho23 , thanks for the clarification. Here are the log lines showing the correct operation:
Simply put, this is the correct lifecycle of a position object with timestamp 0x61f17d37 from acquisition ( Can you please give more details of your experience?
|
Connected to radio Owner: RAKed7d (RKd) Preferences: { "phoneTimeoutSecs": 900, "lsSecs": 300, "region": "US", "positionFlags": 35 } Channels: Primary channel URL: https://www.meshtastic.org/d/#CgUYAyIBAQ |
@a-f-G-U-C it works in the 1.2.45 firmware and it looks to me like all of the GPS code 1.2.46 contains is from you. |
I confirmed satellite acquisition works when using firmware 1.2.46; I just shared my results with garthvh to help isolate the bug. |
Interesting, this is starting to look like a bug in, or downstream from updatePosition()
Funny that it only seems to trigger on the RAK, it doesn't seem reproducible on the T-Beam. It also passed everyone else's tests at the time with no issues reported. I'll keep looking and will update if I find anything. Thanks everyone for the info. |
Sadly based on the timeframe involved I don't think much device testing was done. Are your pulls in 1.2.46 and 1.2.47 mostly plumbing for external apps? It seems like it may be necessary to start backing these pulls out and seeing when it starts working again. Is there any new or updated functionality that would be lost by Meshtastic if these changes are backed out? Will any external apps be broken? |
As far as my work is concerned, I work in a private offline repo. All the code that I pushed back to mainline has been with the expectation that it could be further modified, improved, broken, refactored or removed by other devs with no unintended backflow effect to worry about. So feel free to change anything. As far as mainline Meshtastic is concerned, the Position plugin is obviously the one most intertwined with the GPS code. If you're going to rollback the GPS, you will likely need to revert the plugin code to match. As far as external apps are concerned, any app that relies on device-originated Position might also be impacted - unfortunately I have no info about other (published) apps and no easy way to find out. |
I was troubleshooting something that sounds like this with @andrekir . He was having trouble receiving position updates on the android app connected to a tbeam while it worked fine on my end. |
Could be related but I'm reluctant to conflate. I think the key symptom to check for is whether |
For him, it didn't show position in the python cli while it did for me.
Jm Casler
Always Agile & Life Long Maker
https://www.casler.org <http://www.casler.org/>
+1 408 806 8098
…On Tue, Feb 1, 2022 at 7:59 PM a-f-G-U-C ***@***.***> wrote:
position updates on the android app connected to a tbeam
Could be related but I'm reluctant to conflate. I think the key symptom to
check for is whether --info or --nodes shows no position when one is
available (see above)
—
Reply to this email directly, view it on GitHub
<#998 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADBWG7INASUO3K4CZBDMGF3UZCTZ7ANCNFSM5KECR2WQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
@a-f-G-U-C @mc-hamster output for my 2 test nodes below.
|
Hi I have a nodes list (sorry for the poor formatting): |
My RAK just arrived and i am having the same issues on 1.2.55.9db7c62 GPS must be getting a fix as LED on the board is blinking. Owner: Garry 9 (G9) Preferences: { "phoneTimeoutSecs": 900, "lsSecs": 300, "region": "ANZ", "positionFlags": 35 } Channels: Primary channel URL: https://www.meshtastic.org/d/#ChYYAiIBASoKTXkgQ2hhbm5lbFXSBAAA C:\Windows\system32>meshtastic --port COM9 --nodes |
I am having the same issue on my RAK5005-O with RAK1910 |
@andrekir @a-f-G-U-C Ive inspected the log dump from @tropho23 and have found that the RAK device in question, ID a394ed7d, never appears in the following blocks: 16:45:26 1957 [GPS] lookForLocation() new pos@61f17aa7:1 It looks like the RAK device never runs the GPS code, as every single [GPS] block in the log dump is only for other node ID's |
Not too sure about REMOTE and LOCAL (I saw them defined in the code somewhere but forgot) but here is gps information in the same log for the RAK device (a394ed7d), again not sure if REMOTE is it obtaining gps info for another node or for itself: 16:37:38 1488 toRadioWriteCb data 0x20013ca0, len 43 |
How can I generate the type of log that @tropho23 did? I can do it for my RAK5005 and see what it says as well |
|
There's been quite a reshuffle on the GPS code for 1.3, which makes GPS on all supported RAK devices work. |
How can I install this firmware? It isnt shown in the flasher, and I dont see a branch or release on the git repo... |
you have to install the flasher with --pre |
Describe the bug
RAK1910 on RAK5005-0 gets a gps fix on 1.2.46.dce2fe4, later versions do not get a fix.
To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
Expected all versions after 46 to work.
Device: RAK5005-0/RAK4631/RAK1910 set up with gps in slot A.
Additional context
Curiously RAK19003/RAK4631/RAK1910 does not show this problem and gets a GPS fix up to FW 1.2.48.
I only have the iOS app and you can see the missing gps locations in this too. I cannot check the radio function to see if that varies with FW.
I have discussed this on Discord under device.
The text was updated successfully, but these errors were encountered: