gpsd-users
[Top][All Lists]
Advanced

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

RE: Adafruit USB and PPS


From: Neal Dillman
Subject: RE: Adafruit USB and PPS
Date: Fri, 29 Nov 2019 07:50:13 +0000

Anders,

 

After reading your message about timeservice I noticed that it is not enabled by default, so I did so and recompiled.  The results appeared to be the same.

 

One important note is that timeservice will not compile clean on the pi without modifying SConstruct – in a manner that is likely not cross-platform.  I am not that familiar with scons so I took what is most certainly the wrong approach and added the flag as such:

gpsflags = ["-lm", "-lpthread"] + rtlibs + dbusflags

 

At any rate, -lpthread is needed for pi.

 

I should have mentioned prior:  ppscheck fails too…

 

root@ATIS-Box:/home/pi/gpsd-3.19# dmesg | grep pps

[    5.069524] pps_core: LinuxPPS API ver. 1 registered

[    5.069535] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <address@hidden>

[    5.100595] pps_ldisc: PPS line discipline registered

[    5.102134] pps pps0: new PPS source usbserial0

[    5.102346] pps pps0: source "/dev/ttyUSB0" added

root@ATIS-Box:/home/pi/gpsd-3.19# ./ppscheck /dev/ttyUSB0

# Seconds  nanoSecs   Signals

PPS ioctl(TIOCMIWAIT) failed: 25 Inappropriate ioctl for device

root@ATIS-Box:/home/pi/gpsd-3.19# ldattach PPS /dev/ttyUSB0

root@ATIS-Box:/home/pi/gpsd-3.19# ./ppscheck /dev/pps0

# Seconds  nanoSecs   Signals

PPS ioctl(TIOCMIWAIT) failed: 25 Inappropriate ioctl for device

 

If you have any pointers to get past the IOCTL issue it would be appreciated.

 

Regards,

Neal

 

From: gpsd-users <gpsd-users-bounces+ndillman=address@hidden> On Behalf Of Anders Wallin
Sent: Tuesday, November 26, 2019 2:55 AM
To: address@hidden
Subject: Re: Adafruit USB and PPS

 

ppstest and ppswatch should show if your hardware (and kernel?) configuration is working, something like this:

 

getting that kernel PPS into gpsd was a stumbling block for me - at least gpsd needs to be built with pps-support ('timeservice'?) - documenting this better would be good.

 

AW

 

 

On Tue, Nov 26, 2019 at 10:45 AM Neal Dillman <address@hidden> wrote:

Gary,

That device purports to support PPS output on RI (Ring Indicator) serial control pin via USB (3rd bullet down in the description).  That is what I would like to take advantage of.  My impression is that gpsd should be able to work with that.  No?

Regards,
Neal

-----Original Message-----
From: gpsd-users <gpsd-users-bounces+ndillman=address@hidden> On Behalf Of Gary E. Miller
Sent: Monday, November 25, 2019 11:28 PM
To: address@hidden
Subject: Re: Adafruit USB and PPS

Yo Neal!

On Mon, 25 Nov 2019 21:14:08 +0000
Neal Dillman <address@hidden> wrote:

> I have what appears to be an unusual configuration that trying to make
> work:
>
>
>   *   Raspberry PI CM:
> https://www.raspberrypi.org/products/compute-module-3/
>   *   Adafruit USB GPS: https://www.adafruit.com/product/4279

That GPS does not serve PPS over USB.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        address@hidden  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin


reply via email to

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