Hello all,
I recently acquired a Sparkfun SAM-M10Q board and I’m utilizing the SparkFun_u-blox_GNSS_v3 library from GitHub. The SAM-M10Q is connected to an ESP32 devkit via I2C.
My current M10Q configuration is as follows:
GNSS.setI2COutput(COM_TYPE_UBX); // Set the I2C port to output UBX only (turn off NMEA noise)
GNSS.setNavigationFrequency(10); // Produce 10 solutions per second
GNSS.setAutoPVT(true);
I’m unsure about the specific effects of these three lines of code at the M10Q level. My objective is to minimize the data transmitted via I2C for two reasons:
-
Free up bandwidth for other I2C devices on the bus.
-
Minimize “blocking” time of the “SparkFun_u-blox_GNSS_v3” library during I2C read operations.
I am reading the GPS data through the following call:
if (GNSS.getPVT() == true)
{
double latitude = GNSS.getLatitude() * 0.0000001;
...
}
Since I only need (lat, lon, alt) [as far as I understand that’s PVT] from the GPS, I want to disable all other UBX messages sent by the SAM-M10Q. Is there a way to achieve this?