-
Notifications
You must be signed in to change notification settings - Fork 32
I2C held up for over 1sec #62
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
Hi @pitchuk , By default, the u-blox GNSS calculates a solution every second. With the code above, you are polling (requesting) the Position Velocity Time with To prevent the stall, you need to make PVT periodic - set the module to output PVT every second automatically. In the library we refer to this as "Auto". Once set to "Auto", Closing... Best wishes, |
Thanks Paul, Really useful and speedy response. I will give them a go. If you don't mind and to save me a bit of time. I have a few questions:
Many Thanks |
Hi David,
2a) this won't change the current draw The only way to truly minimise the current is to turn the power to the module off and rely on the battery-backed RAM to maintain the clock. Best, |
Thanks for all the above. All seems to be working well. Will think about turning power off after everythign is working and I am just doing the power optimisations |
Hi There,
I have a SparkFun MAX-M10S wired via i2c to a Pi Pico running earlephilhower core 3.9.4. I am using different I2C lines but confirm this works with all other devices on the circuit.
However when I run my code to get data, the first function (normally myGNSS.getPVT(), but seems to be any function) will take over 1 second to return anything. After which all remaining commands will take 0ms.
It is preventing access to the I2C lines and stalling the processor for too long, preventing button recognition and screen refresh. Making device very laggy.
I have simplified my code as show below, my serial output come back as:
1010 0
1006 0
1005 0
1006 0
1004 0
Got Fix 904 0
Got Fix 906 0
Got Fix 1010 0
Showing that both with and without satellite fix the first poll of the Max10S takes ~1000ms and rest of functions take 0ms
The text was updated successfully, but these errors were encountered: