Closed FaznetSolutions closed 6 years ago
This was most likely due to a parsing bug in the driver code, which will be addressed in the next release of the driver.
If I comment out sat.snr = parseSignal(nmea[i+3]);
within:
// Parse the satellites in this message
for (int i = 4; i < 19; i += 4) {
if (!nmea[i].isEmpty()) {
Satellite sat = new Satellite();
sat.svid = Integer.parseInt(nmea[i]);
sat.elevation = parseTrackAngle(nmea[i+1]);
sat.azimuth = parseTrackAngle(nmea[i+2]);
// Next line commented out due to ArrayIndexOutOfBoundsException
// sat.snr = parseSignal(nmea[i+3]);
then I can run it without the crash for a few hours.
v1.1 of the GPS driver fixes parsing for variable length GSV messages.
Hi,
I am using Android Things v1.0.1 on the Raspberry Pi 3 with a Adafruit Ultimate GPS Breakout v3 and getting the following after running the GPS for a few minutes:
I do get the odd Invalid GSV Message logged but otherwise all messages are being received correctly and logged.
Any ideas?
Thank you,
Paul