gpsd-users
[Top][All Lists]
Advanced

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

Help needed with USB GPS device


From: Gavin Davenport
Subject: Help needed with USB GPS device
Date: Wed, 28 Feb 2024 22:17:18 +0000

Hi

 

I’m trying to determine why my GPS device isnt’ feeding a time source to chrony (Fedora release 38 system)

 

Initialisation of gpsd seems to have been wrapped into system and I can see there’s a gpsd service and a gpsd.socket unit file.

 

I don’t think I understand whether this gps is happy feeding data to chrony.

 

Relevant fragments in chrony.conf:

refclock SOCK /run/chrony.ttyS1.sock   refid GPS precision 1e-1 offset 0.9999

refclock SOCK /run/chrony.pps0.sock      refid PPS precision 1e-7

 

(I’m not sure what creates those sock files, gpsd or chronyd)

 

Current output of chronyc -n sources suggests it can’t get anything from gpsd.

[root@roundabout ~]# chronyc -n sources

MS Name/IP address         Stratum Poll Reach LastRx Last sample

===============================================================================

#? GPS                           0   4     0     -     +0ns[   +0ns] +/-    0ns

#? PPS                           0   4     0     -     +0ns[   +0ns] +/-    0ns

^* 2001:8b0:0:23::205            2  10   377   770   +420us[ +575us] +/-   28ms

^- 2001:7b8:3:2b::4              2  10   377   859  +3080us[+3236us] +/-  345ms

^- 2001:7b8:3:2b::5              2  10   377   788  +3008us[+3163us] +/-   34ms

^- 81.187.202.141                1   6   377     2   -110ms[ -110ms] +/- 1000ms

^+ 185.53.45.4                   2   9   377   163   +328us[ +328us] +/-   43ms

^+ 2a00:ed40:4001::12            2  10   377   982   -845us[ -688us] +/-   32ms

^- 2001:418:3ff::53              2  10   377   970  +2653us[+2810us] +/-   90ms

 

 

I found this post:

https://lists.gnu.org/archive/html/gpsd-users/2017-03/msg00025.html

 

ppstest says

[root@roundabout ~]# ppstest /dev/ttyUSB0

trying PPS source "/dev/ttyUSB0"

cannot create a PPS source from device "/dev/ttyUSB0" (Operation not supported)

 

 

Ntpshdmon shows:

[root@roundabout ~]# ntpshmmon

ntpshmmon: version 3.25

#      Name  Seen@                 Clock                 Real                 L Prc

sample NTP0  1709158436.309652512  1709158435.590527351  1709158435.570000000 0  -1

sample NTP0  1709158436.591134833  1709158436.590751043  1709158436.570000000 0  -1

sample NTP0  1709158437.595814658  1709158437.595444907  1709158437.570000000 0  -1

sample NTP0  1709158438.589602935  1709158438.588788209  1709158438.570000000 0  -1

sample NTP0  1709158439.591925098  1709158439.590892930  1709158439.570000000 0  -1

sample NTP0  1709158440.592359659  1709158440.592150149  1709158440.570000000 0  -1

sample NTP0  1709158441.591534194  1709158441.591041269  1709158441.570000000 0  -1

sample NTP0  1709158442.590622931  1709158442.590542907  1709158442.570000000 0  -1

 

And I don’t know if that’s good or bad.

 

 

I don’t understand the output of this:

[root@roundabout ~]# /usr/sbin/gpsd -N -n -D 7 /dev/ttyUSB0

gpsd:INFO: launching (Version 3.25, revision 3.25)

gpsd:INFO: starting uid 0, gid 0

gpsd:INFO: Command line: /usr/sbin/gpsd -N -n -D 7 /dev/ttyUSB0

gpsd:IO: opening IPv4 socket

gpsd:SPIN: passivesock_af() -> 4

gpsd:IO: opening IPv6 socket

gpsd:SPIN: passivesock_af() -> 5

gpsd:INFO: listening on port gpsd

gpsd:PROG: NTP:SHM: shmat(0,0,0) succeeded, unit 0

gpsd:PROG: NTP:SHM: shmat(1,0,0) succeeded, unit 1

gpsd:PROG: NTP:SHM: shmat(2,0,0) succeeded, unit 2

gpsd:PROG: NTP:SHM: shmat(3,0,0) succeeded, unit 3

gpsd:PROG: NTP:SHM: shmat(4,0,0) succeeded, unit 4

gpsd:PROG: NTP:SHM: shmat(5,0,0) succeeded, unit 5

gpsd:PROG: NTP:SHM: shmat(6,0,0) succeeded, unit 6

gpsd:PROG: NTP:SHM: shmat(7,0,0) succeeded, unit 7

gpsd:PROG: NTP:SHM: shmat(8,0,0) succeeded, unit 8

gpsd:PROG: NTP:SHM: shmat(9,0,0) succeeded, unit 9

gpsd:PROG: NTP:SHM: shmat(10,0,0) succeeded, unit 10

gpsd:PROG: NTP:SHM: shmat(11,0,0) succeeded, unit 11

gpsd:PROG: successfully connected to the DBUS system bus

gpsd:PROG: SHM: shmget(0x47505344, 29240, 0666) for SHM export succeeded

gpsd:PROG: SHM: shmat() for SHM export succeeded, segment 12

gpsd:INFO: stashing device /dev/ttyUSB0 at slot 0

gpsd:PROG: CORE: open_device(/dev/ttyUSB0) fd -1

gpsd:PROG: CORE: gpsd_activate(/dev/ttyUSB0, 2) fd -1

gpsd:PROG: CORE: no /etc/gpsd/device-hook present, skipped running ACTIVATE hook. No such file or directory(2)

gpsd:PROG: CORE: gpsd_open(/dev/ttyUSB0) fd -1

gpsd:PROG: SER: gpsd_serial_open(/dev/ttyUSB0) sourcetype 3 fd -1

gpsd:INFO: SER: opening GPS data source type 3 at '/dev/ttyUSB0'

gpsd:IO: SER: fusercount: path /dev/ttyUSB0 fullpath /dev/ttyUSB0 cnt 1

gpsd:IO: SER: fd 7 set speed 9600(13)

gpsd:INFO: SER: fd 7 current speed 9600, 8N1

gpsd:IO: SER: open(/dev/ttyUSB0) -> 7 in gpsd_serial_open()

gpsd:PROG: CORE: Probing "Garmin USB binary" driver...

gpsd:INFO: attempting USB device enumeration.

gpsd:INFO: 1d6b:0003 (bus 2, device 1)

gpsd:INFO: 05e3:0608 (bus 1, device 3)

gpsd:INFO: 067b:2303 (bus 1, device 10)

gpsd:INFO: 1d6b:0002 (bus 1, device 1)

gpsd:INFO: vendor/product match with 091e:0003 not found

gpsd:PROG: CORE: Probe not found "Garmin USB binary" driver...

gpsd:PROG: CORE: Probing "GeoStar" driver...

gpsd:PROG: Sent GeoStar packet id 0xc1

gpsd:IO: SER: => GPS: 5053474700c100010000000050924746

gpsd:PROG: CORE: Probe not found "GeoStar" driver...

gpsd:PROG: CORE: Probing "Trimble TSIP" driver...

gpsd:IO: SER: fd 7 set speed 9600(13)

gpsd:INFO: SER: fd 7 current speed 9600, 8O1

gpsd:IO: SER: fd 7 set speed 9600(13)

gpsd:INFO: SER: fd 7 current speed 9600, 8N1

gpsd:PROG: CORE: Probe not found "Trimble TSIP" driver...

gpsd:PROG: CORE: Probing "iSync" driver...

gpsd:INFO: SER: fd 7 current speed 9600, 8N1

gpsd:IO: SER: => GPS: @@@@

MAW0C0B

 

gpsd:INFO: SER: fd 7 current speed 9600, 8N1

gpsd:PROG: CORE: Probe not found "iSync" driver...

gpsd:PROG: CORE: no probe matched...

gpsd:PROG: CORE: activate fd 7 done

gpsd:PROG: NTP:SHM: ntpshm_link_activate(/dev/ttyUSB0), sourcetype 3 fd 7

gpsd:PROG: NTP:/dev/ttyUSB0 chrony socket /run/chrony.clk.ttyUSB0.sock doesn't exist

gpsd:PROG: NTP:SHM: ntpshm_alloc(/dev/ttyUSB0), sourcetype 3 shm_clock using SHM(0)

gpsd:PROG: NTP:SHM: ntpshm_alloc(/dev/ttyUSB0), sourcetype 3 shm_pps using SHM(1)

gpsd:PROG: NTP:/dev/ttyUSB0 chrony socket /run/chrony.ttyUSB0.sock doesn't exist

gpsd:PROG: KPPS:/dev/ttyUSB0 checking /sys/devices/virtual/pps/pps0/path,

gpsd:PROG: KPPS:/dev/ttyUSB0 checking /sys/devices/virtual/pps/pps1/path,

gpsd:PROG: KPPS:/dev/ttyUSB0 checking /sys/devices/virtual/pps/pps2/path,

gpsd:PROG: KPPS:/dev/ttyUSB0 checking /sys/devices/virtual/pps/pps3/path,

gpsd:PROG: KPPS:/dev/ttyUSB0 checking /sys/devices/virtual/pps/pps4/path, /dev/ttyUSB0

gpsd:INFO: KPPS:/dev/ttyUSB0 RFC2783 path:/dev/pps4, fd 8

gpsd:INFO: KPPS:/dev/ttyUSB0 pps_caps 0x1133

gpsd:INFO: KPPS:/dev/ttyUSB0 have PPS_CANWAIT

gpsd:INFO: KPPS:/dev/ttyUSB0 kernel PPS will be used

gpsd:PROG: PPS:/dev/ttyUSB0 thread launched

gpsd:INFO: SHM: ntpshm_link_activate(/dev/ttyUSB0): NTP NTP activated 7

gpsd:INFO: KPPS:/dev/ttyUSB0 kernel PPS timeout Interrupted system call(4)

gpsd:INFO: KPPS:/dev/ttyUSB0 kernel PPS timeout Interrupted system call(4)

gpsd:INFO: KPPS:/dev/ttyUSB0 kernel PPS timeout Interrupted system call(4)

gpsd:INFO: running with effective group ID 18

gpsd:INFO: running with effective user ID 65534

gpsd:INFO: startup at 2024-02-28T22:16:05.000Z (1709158565)

gpsd:SPIN: CORE: pselect() {4 5 7} -> { 7 } at  1709158566.373726387, Success(0)

gpsd:SPIN: PACKET: packet_get() fd 7 -> 1 Success(0)

gpsd:DATA: gpsd_multipoll(7) = 0

gpsd:SPIN: CORE: pselect() {4 5 7} -> { 7 } at  1709158566.374926416, Success(0)

gpsd:SPIN: PACKET: packet_get() fd 7 -> 1 Success(0)

gpsd:DATA: gpsd_multipoll(7) = 0

gpsd:SPIN: CORE: pselect() {4 5 7} -> { 7 } at  1709158566.376149651, Success(0)

gpsd:SPIN: PACKET: packet_get() fd 7 -> 1 Success(0)

gpsd:IO: SER: gpsd_next_hunt_setting(7) retries 0 diff 0

gpsd:DATA: gpsd_multipoll(7) = 0

gpsd:SPIN: CORE: pselect() {4 5 7} -> { 7 } at  1709158566.378091150, Success(0)

gpsd:SPIN: PACKET: packet_get() fd 7 -> 1 Success(0)

 

(I’ve noticed the above command fails if gpsd is running)

 

Is there an idiots guide of building the relevant components up that I can follow ?

Thanks


reply via email to

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