gpsd-users
[Top][All Lists]
Advanced

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

Re: 3.22 not sending PPS to SHM


From: David Taylor
Subject: Re: 3.22 not sending PPS to SHM
Date: Fri, 15 Jan 2021 09:01:37 +0000
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1

On 12/01/2021 18:43, Gary E. Miller wrote:
Yo David!

On Tue, 12 Jan 2021 15:10:09 +0000
David Taylor<gm8arv@yahoo.co.uk>  wrote:

Yes, I see two PPS devices:

    pi@RasPi-22:~ $ ls /dev/pps*
    /dev/pps0  /dev/pps1
As you should expect.

These appear after some boot-time configuration commands.
As you provided elsewhere.

I am only running gpsd from the command line right now.
Fine, just don't use systemd(umb) to start gpsd.

I've had issues with
automating this in the past so I thought to start the easier way!
Trivial, just add the one line you use on the command line to
your start script.  On gentoo:

# echo "gpsd /dev/ttyAMA0 -s 115200 -n /dev/pps0" >> /etc/local.d/local.start


    sudo gpsd /dev/ttyS0 -s 115200 -n -F /var/run/gpsd.sock
Uh, the serial port on a RasPi is /dev/ttyAMA0, not /dev/ttyS0.  So the
/dev/ttyS0 might be a symlink to /dv/ttyAMA0, but do not count on thar.
Use the primary device (ttyAMA0).

so I'm unsure how gpsd knows about the PPS device.
Because you tell it.

sudo ppstest /dev/pps0
trying PPS source "/dev/pps0"
found PPS source "/dev/pps0"
ok, found 1 source(s), now start fetching data...
source 0 - assert 1610463934.000000417, sequence: 31086 - clear  0.000000000, 
sequence: 0
And there it is, you just forgot to tell gpsd where it was.

RGDS
GARY

Thanks, Gary.

I didn't know that gpsd could accept more than one source! All the examples I've seen to date just show the serial port.

Thanks for the note about how to start - obviously I can add similar commands to the service file in systemd.

There's a discussion on Raspberry Pi modems here. It seems that you need to make changes if you want the fixed-speed modem on the GPIO pins - hence the ttyS0 and ttyAMA0 confusion.

  https://www.raspberrypi.org/documentation/configuration/uart.md

Now resolved on my test system.

Cheers,
David
--
SatSignal Software - Quality software for you
Web: https://www.satsignal.eu
Email: david-taylor@blueyonder.co.uk
Twitter: @gm8arv


reply via email to

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