[ntp:questions] Ublox binary commands via gpsctl

Anthony Stirk upuaut at gmail.com
Mon Aug 19 20:28:26 UTC 2013


Sort of. My initial issue seems to be my spacing between the hex of the binary command. 

So :

sudo gpsctl -t "uBlox UBX binary" -D 5 /dev/ttyAMA0 -x \xB5\x62\x06\x04\x04\x00\xFF\x87\x00\x00\x94\xF5

Does run but I can't see it actually issuing this command I get the following output none of which indicates the module has cold booted (which is what the command above should do). My location information is still in there so its certainly not cold booting the module :

pi at socrates ~ $ sudo gpsctl -t "uBlox UBX binary" -D 5 /dev/ttyAMA0 -x \xB5\x62\x06\x04\x04\x00\xFF\x87\x00\x00\x94\xF5
gpsctl:PROG: uBlox UBX binary driver selected.
gpsctl:INFO: startup at 2013-08-19T20:26:00.000Z (1376943960)
gpsctl:PROG: initialization passed.
gpsctl:PROG: no etc/gpsd/device-hook present, skipped running ACTIVATE hook
gpsctl:INFO: opening GPS data source type 2 at '/dev/ttyAMA0'
gpsctl:INFO: speed 9600, 8N1
gpsctl:IO: => GPS: $PASHQ,RID*28

gpsctl:IO: => GPS: @F0.3=1*67

gpsctl:IO: => GPS: @F2.2=1*64

gpsctl:IO: writing oncore control type Cj
gpsctl:IO: => GPS: @@Cj)
RID*28

gpsctl:PROG: Probing "Garmin USB binary" driver...
gpsctl:PROG: Probe not found "Garmin USB binary" driver...
gpsctl:PROG: Probing "GeoStar binary" driver...
gpsctl:IO: Sent GeoStar packet id 0xc1
gpsctl:IO: => GPS: 5053474700c100010000000050924746
gpsctl:PROG: Probe not found "GeoStar binary" driver...
gpsctl:PROG: Probing "Trimble TSIP" driver...
gpsctl:INFO: speed 9600, 8O1
gpsctl:IO: => GPS: $PASHQ,RID*28

gpsctl:IO: => GPS: @F0.3=1*67

gpsctl:IO: => GPS: @F2.2=1*64

gpsctl:IO: writing oncore control type Cj
gpsctl:IO: => GPS: @@Cj)
RID*28

gpsctl:INFO: speed 9600, 8N1
gpsctl:IO: => GPS: $PASHQ,RID*28

gpsctl:IO: => GPS: @F0.3=1*67

gpsctl:IO: => GPS: @F2.2=1*64

gpsctl:IO: writing oncore control type Cj
gpsctl:IO: => GPS: @@Cj)
RID*28

gpsctl:PROG: Probe not found "Trimble TSIP" driver...
gpsctl:PROG: no probe matched...
gpsctl:INFO: gpsd_activate(): activated GPS (fd 3)
gpsctl:PROG: switch_driver(Generic NMEA) called...
gpsctl:PROG: selecting Generic NMEA driver...
gpsctl:INFO: /dev/ttyAMA0 identified as type Generic NMEA (2.002945 sec @ 9600bps)
gpsctl:PROG: => Probing for Garmin NMEA
gpsctl:IO: => GPS: $PGRMCE*0E

gpsctl:IO: <= GPS: $GPVTG,,T,,M,0.026,N,0.048,K,A*2B
gpsctl:DATA: packet mask = {ONLINE|PACKET|DRIVER}
gpsctl:IO: autodetection after 0 reads finds packet type 1.
gpsctl:PROG: /dev/ttyAMA0 looks like a Generic NMEA at 9600.
gpsctl:PROG: => Probing for SiRF
gpsctl:IO: => GPS: $PSRF100,0,9600,8,1,0*0C

gpsctl:IO: <= GPS: $GPGGA,202601.00,5345.15018,N,00149.07821,W,1,09,1.12,261.3,M,48.1,M,,*43
gpsctl:DATA: GPGGA: registers fractional time 202601.00
gpsctl:WARN: can't use GGA time until after ZDA or RMC has supplied a year.
gpsctl:DATA: GGA: hhmmss=202601.00 lat=53.75 lon=-1.82 alt=261.30 mode=3 status=1
gpsctl:PROG: GPGGA sentence timestamped 202601.00.
gpsctl:PROG: GPGGA starts a reporting cycle.
gpsctl:DATA: packet mask = {ONLINE|LATLON|ALTITUDE|STATUS|MODE|PACKET|CLEAR}
gpsctl:PROG: => Probing for FV-18
gpsctl:IO: => GPS: $PFEC,GPint*58

gpsctl:IO: <= GPS: $GPGSA,A,3,31,32,11,01,17,14,23,20,28,,,,1.55,1.12,1.08*00
gpsctl:PROG: GPGSA sets mode 3
gpsctl:DATA: GPGSA: mode=3 used=9 pdop=1.55 hdop=1.12 vdop=1.08
gpsctl:DATA: packet mask = {ONLINE|MODE|DOP|PACKET|USED}
gpsctl:PROG: => Probing for Trimble Copernicus
gpsctl:IO: => GPS: $PTNLSNM,0139,01*5C

gpsctl:IO: <= GPS: $GPGSV,3,1,12,01,72,117,35,11,45,137,36,12,00,001,,14,22,041,33*7E
gpsctl:PROG: Partial satellite data (1 of 3).
gpsctl:DATA: packet mask = {ONLINE|PACKET}
gpsctl:PROG: => Probing for Evermore
gpsctl:IO: => GPS: 1002128e7f0101000101010001000000000000131003
gpsctl:IO: <= GPS: $GPGSV,3,2,12,17,43,299,29,19,03,158,10,20,66,233,42,23,17,180,44*7D
gpsctl:PROG: Partial satellite data (2 of 3).
gpsctl:DATA: packet mask = {ONLINE|PACKET}
gpsctl:PROG: => Probing for GPSClock
gpsctl:IO: => GPS: $PFEC,GPsrq*5B

gpsctl:IO: <= GPS: $GPGSV,3,3,12,28,12,250,38,31,09,084,29,32,77,090,28,33,27,196,33*7A
gpsctl:DATA: GSV: Satellite data OK (3 of 3).
gpsctl:DATA: DOPS computed/reported: X=0.677977/nan, Y=0.519559/nan, H=0.854163/nan, V=0.985512/nan, P=1.304158/nan, T=0.566565/nan, G=1.421909/nan
gpsctl:DATA: packet mask = {ONLINE|DOP|SATELLITE|PACKET}
gpsctl:PROG: => Probing for Ashtech
gpsctl:IO: => GPS: $PASHQ,RID*28

gpsctl:IO: <= GPS: $GPGLL,5345.15018,N,00149.07821,W,202601.00,A,A*76
gpsctl:DATA: GPGLL: registers fractional time 202601.00
gpsctl:WARN: can't use GLL time until after ZDA or RMC has supplied a year.
gpsctl:DATA: GLL: hhmmss=202601.00 lat=53.75 lon=-1.82 mode=2 status=1
gpsctl:PROG: GPGLL sentence timestamped 202601.00.
gpsctl:DATA: packet mask = {ONLINE|LATLON|STATUS|PACKET}
gpsctl:PROG: => Probing for UBX
gpsctl:IO: => GPS: UBX class: 0a, id: 04, len: 0, crc: 0e34
gpsctl:IO: => GPS: b5620a0400000e34
gpsctl:IO: <= GPS: $GPTXT,01,01,01,PASH inv format*36
gpsctl:WARN: unknown sentence: "$GPTXT,01,01,01,PASH inv format*36
"
gpsctl:DATA: packet mask = {ONLINE|PACKET}
gpsctl:PROG: => Probing for MediaTek
gpsctl:IO: => GPS: $PMTK605*31

gpsctl:IO: <= GPS: $GPRMC,202602.00,A,5345.15017,N,00149.07821,W,0.048,,190813,,,A*6D
gpsctl:DATA: merge_ddmmyy(190813) sets year 2013
gpsctl:DATA: GPRMC: registers fractional time 202602.00
gpsctl:DATA: RMC: ddmmyy=190813 hhmmss=202602.00 lat=53.75 lon=-1.82 speed=0.02 track=0.00 mode=2 status=1
gpsctl:DATA: GPRMC time is 1376943962.000000 = 2013-08-19T20:26:2.00Z
gpsctl:PROG: GPRMC sentence timestamped 202602.00.
gpsctl:PROG: GPRMC starts a reporting cycle.
gpsctl:PROG: tagged GLL as a cycle ender.
gpsctl:DATA: packet mask = {ONLINE|TIME|LATLON|SPEED|TRACK|MODE|PACKET|CLEAR}
gpsctl:IO: <= GPS: $GPVTG,,T,,M,0.048,N,0.089,K,A*2E
gpsctl:DATA: packet mask = {ONLINE|PACKET}
gpsctl:IO: <= GPS: $GPGGA,202602.00,5345.15017,N,00149.07821,W,1,08,1.12,261.3,M,48.1,M,,*4E
gpsctl:DATA: GPGGA: registers fractional time 202602.00
gpsctl:DATA: GGA: hhmmss=202602.00 lat=53.75 lon=-1.82 alt=261.30 mode=3 status=1
gpsctl:DATA: GPGGA time is 1376943962.000000 = 2013-08-19T20:26:2.00Z
gpsctl:PROG: GPGGA sentence timestamped 202602.00.
gpsctl:DATA: packet mask = {ONLINE|TIME|LATLON|ALTITUDE|STATUS|MODE|PACKET}
gpsctl:IO: <= GPS: $GPGSA,A,3,31,32,11,01,14,23,20,28,,,,,1.55,1.12,1.08*06
gpsctl:PROG: GPGSA sets mode 3
gpsctl:DATA: GPGSA: mode=3 used=8 pdop=1.55 hdop=1.12 vdop=1.08
gpsctl:DATA: packet mask = {ONLINE|MODE|DOP|PACKET|USED}
gpsctl:IO: <= GPS: $GPGSV,3,1,12,01,72,117,35,11,45,137,36,12,00,001,,14,22,041,33*7E
gpsctl:PROG: Partial satellite data (1 of 3).
gpsctl:DATA: packet mask = {ONLINE|PACKET}
gpsctl:IO: <= GPS: $GPGSV,3,2,12,17,43,299,,19,03,158,10,20,66,233,42,23,17,180,44*76
gpsctl:PROG: Partial satellite data (2 of 3).
gpsctl:DATA: packet mask = {ONLINE|PACKET}
gpsctl:IO: <= GPS: $GPGSV,3,3,12,28,12,250,38,31,09,084,30,32,77,090,28,33,27,196,33*72
gpsctl:DATA: GSV: Satellite data OK (3 of 3).
gpsctl:DATA: DOPS computed/reported: X=0.933723/nan, Y=0.531104/nan, H=1.074202/nan, V=1.064563/nan, P=1.512350/nan, T=0.658262/nan, G=1.649398/nan
gpsctl:DATA: packet mask = {ONLINE|DOP|SATELLITE|PACKET}
gpsctl:IO: <= GPS: $GPGLL,5345.15017,N,00149.07821,W,202602.00,A,A*7A
gpsctl:DATA: GPGLL: registers fractional time 202602.00
gpsctl:DATA: GLL: hhmmss=202602.00 lat=53.75 lon=-1.82 mode=2 status=1
gpsctl:DATA: GPGLL time is 1376943962.000000 = 2013-08-19T20:26:2.00Z
gpsctl:PROG: GPGLL sentence timestamped 202602.00.
gpsctl:PROG: GPGLL ends a reporting cycle.
gpsctl:DATA: packet mask = {ONLINE|TIME|LATLON|STATUS|PACKET|REPORT|PPSTIME}
gpsctl:SHOUT: /dev/ttyAMA0 identified as a Generic NMEA at 9600.
gpsctl:PROG: switch_driver(uBlox UBX binary) called...
gpsctl:PROG: selecting uBlox UBX binary driver...
gpsctl:IO: => GPS: UBX class: 78, id: 42, len: 34, crc: d27d
gpsctl:IO: => GPS: b5627842220035783632783036783034783034783030784646783837783030783030783934784635d27d
pi at socrates ~ $



More information about the questions mailing list