|
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 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:
|
[Prev in Thread] | Current Thread | [Next in Thread] |