Is there a way to configure the OLA to allow the gps module to get a signal before activating the qwiic power saving feature? The gps works fine once it can hot start from the battery, but there isn’t enough time from reset to power saving to allow for a gps fix.
Hi John (@zeevo234 ),
I think you would need to customize the OLA firmware to add this feature. I don’t think there is a way to fool the firmware into staying awake while the GNSS gets a fix.
There is a “minimum awake time” option, but it only applies when the sampling interval (usBetweenReadings
) is long enough to make the OLA sleep between samples. If the “minimum awake time” is set, the firmware takes one and only one sample and then stays awake for the required time - giving the user time to open the serial menu if needed. You would need to change the logic of that so it continued to sample until the awake timer expires. Or change the logic so the sample is taken just before the OLA goes to sleep, instead of when it wakes.
There is also a fast and slow logging option, controlled by either GPIO pin 11 or the RTC. But the RTC control works on a 24 hour cycle, not user-defined intervals.
If you only want to log GNSS data, there is separate GNSS Logger firmware for the OLA which does do what you need. With that, you can set separate logging and sleep durations. You can make the logging duration long enough to ensure the GNSS gets a fix before sleeping. You also have the option to use a power management task to put the GNSS to sleep, allowing it to hot start quickly just before the OLA wakes.
Best wishes,
Paul
I wasn’t aware of the bespoke firmware, thank you for the info!