-
Notifications
You must be signed in to change notification settings - Fork 104
Inconsistent data logging #23
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
Comments
Head-scratcher is right... |
Hi Paul, Strangely, the log files contain 165 KB of 0x02 0x15 RAWX messages and no SFRBX. RTKLIB doesn't recognize the .UBX file as valid and can't convert it to RINEX. What is really perplexing is that the received data is randomly starting/stopping in the middle of the logging periods. I'm currently running a shorter, 30-minute duration test with code that has improved debugging (i.e. it tracks microSD writes, syncs, closes, etc.). Ideally, I'd log all of the u-blox debugging information over serial but it's not possible to do so outdoors. Can you recommend any specific u-blox flags I should track and log to the debug file to help determine what could be happening? On a side note, should I be disabling Cheers,
|
RTKLIB will fail if there are no SFRBX messages in the UBX files. |
Morning Paul, Well, this is interesting. I ran another test overnight without
The only real major change in the code was the omission of the Regarding the integrity of the 165 KB file, it looks like there was simply a lot of empty RAWX messages. No message larger than 16 bytes, which is not much bigger than the basic UBX frame.
Cheers, |
Here's a theory... |
Maybe try using individual calls to |
It does seem like the u-blox stops tracking the satellite constellations, but does the In my code, I only configure the satellite signals once when the program runs for the first time. If I recall correctly, doesn't the
Quick edit, if I'm not mistaken, the |
Correct, newCfgValset defaults to all layers (VAL_LAYER_ALL), so the constellations settings should be being saved in BBR. |
Final suggestion for now: |
Ignore that... I see you're waiting 2.5seconds already |
I wonder if it could be due to a faulty antenna: https://www.sparkfun.com/products/17751 or cable https://www.sparkfun.com/products/17833 |
Seems unlikely. But, that said, I did manage to mate an SMA antenna connection slightly off-angle the other day and, as I tightened it, pushed the central pin back up into the cable. The lack of signal had me scratching my head for a while... |
Ugh! I did that to one of my u-blox ANN-MB antennas. Gosh, this problem is a real tough nut to crack. Perhaps what I'll do is try to run three receivers with the exact same code and see if they all experience the same temporary loss of signal at the same time. My thought is that if it were a code issue, it would work or it wouldn't. I can't see any way that the satellite tracking could stop in the middle of a logging window, and then magically start again several hours later. I suppose there is always a risk that the u-blox could have been damaged by ESD, but it is a new module. Cheers, |
Please investigate .end a bit more. It is entirely possible there's a gotcha in there... |
As a quick update, I conducted another test overnight. I paired the code that had previously experienced the signal loss (
I also uploaded the new code to the receiver and TOP106 antenna that had experienced the signal losses ( 🤔 |
Happy days! Many thanks Adam, |
Maybe it was space weather! Joking aside, I'll continue testing and keep this issue updated with my findings. Cheers, |
Honestly guys you are great, a big thank you to you! As a beginner it's great to be able to benefit from your hindsight! |
Hi Adam (@adamgarbo ), |
Hi Paul, I haven't been able to replicate the issue again after the initial two instances (on back-to-back days). It looks like it will remain a mystery for now, so I'm happy to close this issue and revisit it again if I re-encounter it. Cheers, |
Good man - thank you! |
Hi @PaulZC,
Here's a Monday head-scratcher for you.
I've been testing the most recent release of the u-blox library. The tests were configured with rolling alarms that would log RAWX/SFRBX for 2 hours and sleep for 1 hour. After letting it run overnight, I discovered some very strange behaviour.
In the initial test, the first 2-hour logging period at 22:00 executes as normal. However, at 1:00, data stopped being received 45 minutes into the 2-hour period. The sleep/wake cycles continued as normal, but no data was received over the next 12 hours. Upon each wake cycle, the RTC synchronization function would also fail to obtain a GNSS fix, timing out after 5 minutes, and only 165 KB would be written to the SD card. However, magically at 16:00, data began being received again.
I use a flag to record initialization success/failure and the u-blox showed as successfully initializing at each power cycle. I thought perhaps the issue was due to low battery voltage, so I replaced the battery and repeated the test with the same firmware. As you can see in the results of Test 2, the same behaviour was observed.
I should note that I am using the
gnss.end()
function before powering down the u-blox. Could this in any way explain the issues described here? I am also wondering if this could also be somehow related to the file buffer or how data is being processed.Test 1
Test 2
Cheers,
Adam
The text was updated successfully, but these errors were encountered: