gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ublox note


From: Charles Curley
Subject: Re: ublox note
Date: Thu, 14 Jan 2021 09:43:36 -0700

On Wed, 13 Jan 2021 18:31:23 -0800
"Gary E. Miller" <gem@rellim.com> wrote:

> Yo Charles!
> 
> On Wed, 13 Jan 2021 19:11:49 -0700
> Charles Curley <charlescurley@charlescurley.com> wrote:
> 
> > I am testing debian Bullseye, which means gpsd 3.22-1. I hit a
> > problem with my ublox receiver I have not seen before.  
> 
> Pretty close to gpsd 3.22.
> 
> > driver u-blox: subtype (if any) SW ROM CORE 3.01 (107888),HW
> > 00080000FWVER=SPG
> > 3.01,PROTVER=18.00,GPS;GLO;GAL;BDS,SBAS;IMES;QZSS  
> 
> So likely a u-blox 8.  You can find out more this way:
> 
>     ubxtool -p MON-VER

charles@white:~/versioned/gpsclient$ ./gpsclient 
gpsclient: Copyright © 2009-2021 Charles Curley
This program is released under the same terms as gpsd itself, i.e
under the BSD License. See the file Copying in the gpsd
distribution.
This program comes with ABSOLUTELY NO WARRANTY.
gpsclient: server is localhost, port is 2947
set 0x12000000, status: no fix, GPSD version: 3.22 Rev: 3.22, Protocol 3.14
set 0x02000000, status: no fix, 1 device found.
Device no. 0: driver : subtype (if any) 
set 0x0205377c, status: no fix,  9 used, 13 seen, mode 3, 
2021-01-14T16:15:20.000Z, No fix.
set 0x0205377c, status: no fix,  9 used, 13 seen, mode 3, 
2021-01-14T16:15:21.000Z, No fix.
set 0x0205377c, status: no fix,  9 used, 13 seen, mode 3, 
2021-01-14T16:15:22.000Z, No fix.
set 0x0205377c, status: no fix,  9 used, 15 seen, mode 3, 
2021-01-14T16:15:23.000Z, No fix.
set 0x0205377c, status: no fix,  9 used, 16 seen, mode 3, 
2021-01-14T16:15:24.000Z, No fix.
set 0x0205377c, status: no fix,  9 used, 16 seen, mode 3, 
2021-01-14T16:15:25.000Z, No fix.
set 0x0205377c, status: no fix,  9 used, 16 seen, mode 3, 
2021-01-14T16:15:26.000Z, No fix.
set 0x0205377c, status: no fix,  9 used, 16 seen, mode 3, 
2021-01-14T16:15:27.000Z, No fix.
set 0x0205377c, status: no fix,  9 used, 16 seen, mode 3, 
2021-01-14T16:15:28.000Z, No fix.
^C  Signal 2 caught!
Bye!

charles@white:~/versioned/gpsclient$ ubxtool -p MON-VER
UBX-MON-VER:
  swVersion ROM CORE 3.01 (107888)
  hwVersion 00080000
  extension FWVER=SPG 3.01
  extension PROTVER=18.00
  extension GPS;GLO;GAL;BDS
  extension SBAS;IMES;QZSS
WARNING:  protVer is 10.00, should be 18.00.  Hint: use option "-P 18.00"

charles@white:~/versioned/gpsclient$ ubxtool -p 18.00
ubxtool: poll 18.00 not found
charles@white:~/versioned/gpsclient$ ubxtool -P 18.00
charles@white:~/versioned/gpsclient$ ubxtool -p MON-VER
UBX-MON-VER:
  swVersion ROM CORE 3.01 (107888)
  hwVersion 00080000
  extension FWVER=SPG 3.01
  extension PROTVER=18.00
  extension GPS;GLO;GAL;BDS
  extension SBAS;IMES;QZSS
WARNING:  protVer is 10.00, should be 18.00.  Hint: use option "-P 18.00"

charles@white:~/versioned/gpsclient$ ubxtool -p MON-VER -P 18.00
UBX-MON-VER:
  swVersion ROM CORE 3.01 (107888)
  hwVersion 00080000
  extension FWVER=SPG 3.01
  extension PROTVER=18.00
  extension GPS;GLO;GAL;BDS
  extension SBAS;IMES;QZSS

charles@white:~/versioned/gpsclient$ ./gpsclient 
gpsclient: Copyright © 2009-2021 Charles Curley
This program is released under the same terms as gpsd itself, i.e
under the BSD License. See the file Copying in the gpsd
distribution.
This program comes with ABSOLUTELY NO WARRANTY.
gpsclient: server is localhost, port is 2947
set 0x12000000, status: no fix, GPSD version: 3.22 Rev: 3.22, Protocol 3.14
set 0x02000000, status: no fix, 1 device found.
Device no. 0: driver u-blox: subtype (if any) SW ROM CORE 3.01 (107888),HW 
00080000FWVER=SPG 3.01,PROTVER=18.00,GPS;GLO;GAL;BDS,SBAS;IMES;QZSS
set 0x0200077c, status: DGPS fix,  0 used,  0 seen, mode 3, 
2021-01-14T16:18:54.000Z, 3D DGPS Fix, la 43.644387, lo -108.214574, 
1307.700000.
set 0x0207377c, status: DGPS fix, 13 used, 23 seen, mode 3, 
2021-01-14T16:18:54.000Z, 3D DGPS Fix, la 43.644387, lo -108.214574, 
1307.700000.
set 0x0205377c, status: DGPS fix, 13 used, 23 seen, mode 3, 
2021-01-14T16:18:55.000Z, 3D DGPS Fix, la 43.644387, lo -108.214573, 
1307.600000.
set 0x0205377c, status: DGPS fix, 13 used, 23 seen, mode 3, 
2021-01-14T16:18:55.000Z, 3D DGPS Fix, la 43.644387, lo -108.214573, 
1307.600000.
set 0x0205377c, status: DGPS fix, 13 used, 23 seen, mode 3, 
2021-01-14T16:18:56.000Z, 3D DGPS Fix, la 43.644388, lo -108.214573, 
1307.500000.
set 0x0205377c, status: DGPS fix, 13 used, 23 seen, mode 3, 
2021-01-14T16:18:56.000Z, 3D DGPS Fix, la 43.644388, lo -108.214573, 
1307.500000.
set 0x0205377c, status: DGPS fix, 13 used, 23 seen, mode 3, 
2021-01-14T16:18:57.000Z, 3D DGPS Fix, la 43.644388, lo -108.214573, 
1307.500000.
set 0x0205377c, status: DGPS fix, 13 used, 23 seen, mode 3, 
2021-01-14T16:18:57.000Z, 3D DGPS Fix, la 43.644388, lo -108.214573, 
1307.500000.
set 0x0205377c, status: DGPS fix, 13 used, 23 seen, mode 3, 
2021-01-14T16:18:58.000Z, 3D DGPS Fix, la 43.644388, lo -108.214572, 
1307.400000.
set 0x0205377c, status: DGPS fix, 14 used, 23 seen, mode 3, 
2021-01-14T16:18:58.000Z, 3D DGPS Fix, la 43.644388, lo -108.214572, 
1307.400000.
set 0x0205377c, status: DGPS fix, 14 used, 23 seen, mode 3, 
2021-01-14T16:18:59.000Z, 3D DGPS Fix, la 43.644388, lo -108.214572, 
1307.300000.
set 0x0205377c, status: DGPS fix, 14 used, 23 seen, mode 3, 
2021-01-14T16:18:59.000Z, 3D DGPS Fix, la 43.644388, lo -108.214572, 
1307.300000.
set 0x0205377c, status: DGPS fix, 14 used, 23 seen, mode 3, 
2021-01-14T16:19:00.000Z, 3D DGPS Fix, la 43.644388, lo -108.214572, 
1307.400000.
set 0x0205377c, status: DGPS fix, 14 used, 23 seen, mode 3, 
2021-01-14T16:19:00.000Z, 3D DGPS Fix, la 43.644388, lo -108.214572, 
1307.400000.
^C  Signal 2 caught!
Bye!

charles@white:~/versioned/gpsclient$ 


> 
> > The new problem is that the device may come up shipping NMEA, and
> > probably broken NMEA.  
> 
> Yup.  Which is why the ubxtool examples doc says to always force your
> u-blox to factory defaults first:
> 
>     https://gpsd.io/ubxtool-examples.html#_default_configuration

Clearly I have some reading to do.

> 
> Remember, broken is in the eyes of the beholder.
> 
> > The solution is to tell it to use the binary
> > protocol:  
> 
> Yes, my preferred solution, but by no means the only one.
> 
> > # ubxtool -e BINARY
> > 
> > # ubxtool -d NMEA
> > 
> > ubxtool is a nice tool, thank you.  
> 
> Glad you like it.  Suggestions welcome.
> 
> > As for the "probably broken NMEA", status always is "STATUS_NO_FIX",
> > or 0, even when other indicators show I should have a fix, like mode
> > set to "MODE_3D".  
> 
> Sadly, that is not in conflict with the NMEA spec.  The "status" and
> the "mode" are two different, and independent, fields that one NMEA
> sentence may have at the same time.

Ah. One reason to prefer the binary protocol?

In any case, logically they should more or less agree with each other.
Should.

> 
> Just to be sure that there is not something else going on, sending
> the NMEA you get here would help me verify what you should see.




root@white:~# gpsmon -a /dev/ttyACM0
gpsmon: white:/dev/ttyACM0 9600 8N1
(68) $GNRMC,163346.00,A,4338.66557,N,10812.87534,W,0.004,,140121,,,D*73
(35) $GNVTG,,T,,M,0.004,N,0.008,K,D*34
(81) 
$GNGGA,163346.00,4338.66557,N,10812.87534,W,2,12,0.70,1328.7,M,-18.9,M,,0000*4C
(62) $GNGSA,A,3,31,22,03,01,32,21,25,26,46,04,,,1.26,0.70,1.05*1D
(54) $GNGSA,A,3,66,76,82,74,83,67,,,,,,,1.26,0.70,1.05*18
(68) $GPGSV,3,1,12,01,39,249,36,03,42,309,35,04,21,273,34,10,03,134,*72
(70) $GPGSV,3,2,12,21,30,228,21,22,66,292,37,25,20,053,42,26,21,147,31*7F
(68) $GPGSV,3,3,12,31,73,083,33,32,31,076,36,46,35,209,34,51,40,179,*77
(66) $GLGSV,3,1,11,65,42,091,,66,56,333,29,67,10,301,25,72,03,107,*64
(68) $GLGSV,3,2,11,74,07,025,21,75,53,059,23,76,48,158,24,77,04,189,*6E
(55) $GLGSV,3,3,11,81,17,258,,82,21,309,33,83,05,352,20*5E
(52) $GNGLL,4338.66557,N,10812.87534,W,163346.00,A,D*69
(68) $GNRMC,163347.00,A,4338.66557,N,10812.87530,W,0.036,,140121,,,D*77
(35) $GNVTG,,T,,M,0.036,N,0.067,K,D*3C
(81) 
$GNGGA,163347.00,4338.66557,N,10812.87530,W,2,12,0.66,1328.6,M,-18.9,M,,0000*4F
(62) $GNGSA,A,3,31,22,03,01,32,21,25,26,46,04,,,1.23,0.66,1.04*1E
(54) $GNGSA,A,3,66,76,82,74,83,67,,,,,,,1.23,0.66,1.04*1B
(68) $GPGSV,3,1,12,01,39,249,36,03,42,309,35,04,21,273,34,10,03,134,*72
(70) $GPGSV,3,2,12,21,30,228,21,22,66,292,37,25,20,053,42,26,21,147,31*7F
(68) $GPGSV,3,3,12,31,73,083,34,32,31,076,37,46,35,209,34,51,40,179,*71
(66) $GLGSV,3,1,11,65,42,091,,66,56,333,30,67,10,301,25,72,03,107,*6C
(68) $GLGSV,3,2,11,74,07,025,21,75,53,059,23,76,48,158,24,77,04,189,*6E
(55) $GLGSV,3,3,11,81,17,258,,82,21,309,33,83,05,352,20*5E
(52) $GNGLL,4338.66557,N,10812.87530,W,163347.00,A,D*6C
(68) $GNRMC,163348.00,A,4338.66557,N,10812.87527,W,0.037,,140121,,,D*7F
(35) $GNVTG,,T,,M,0.037,N,0.069,K,D*33
(81) 
$GNGGA,163348.00,4338.66557,N,10812.87527,W,2,12,0.66,1328.6,M,-18.9,M,,0000*46
(62) $GNGSA,A,3,31,22,03,01,32,21,25,26,46,04,,,1.23,0.66,1.04*1E
(54) $GNGSA,A,3,66,76,82,74,83,67,,,,,,,1.23,0.66,1.04*1B
(68) $GPGSV,3,1,12,01,39,249,36,03,42,309,35,04,21,273,34,10,03,134,*72
(70) $GPGSV,3,2,12,21,30,228,20,22,66,292,37,25,20,053,42,26,21,147,32*7D
(68) $GPGSV,3,3,12,31,73,083,34,32,31,076,37,46,35,209,34,51,40,179,*71
(66) $GLGSV,3,1,11,65,42,091,,66,56,333,30,67,10,301,25,72,03,107,*6C
(68) $GLGSV,3,2,11,74,07,025,21,75,53,059,24,76,48,158,24,77,04,189,*69
(55) $GLGSV,3,3,11,81,17,258,,82,21,309,33,83,05,352,20*5E
(52) $GNGLL,4338.66557,N,10812.87527,W,163348.00,A,D*65
root@white:~# 



> 
> RGDS
> GARY
> ---------------------------------------------------------------------------
> Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
>       gem@rellim.com  Tel:+1 541 382 8588
> 
>           Veritas liberabit vos. -- Quid est veritas?
>     "If you can't measure it, you can't improve it." - Lord Kelvin



-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/

Attachment: pgpPHlQVMVWOs.pgp
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]