[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What’s the purpose of device-hook file
From: |
Gary E. Miller |
Subject: |
Re: What’s the purpose of device-hook file |
Date: |
Wed, 19 Feb 2020 18:13:51 -0800 |
Yo raaj!
On Thu, 20 Feb 2020 10:02:57 +0800
raaj lokanathan <address@hidden> wrote:
> Yes opening the serial port is one but how can the gpsd selects my
> driver file?
The point is to run BEFORE gpsd is run, so no drivers involved. Once
gpsd is started, it autodetects the GNSS receiver and selects the
proper driver.
> Because it has to send those AT command before itself
> selecting the driver.
Yes, bu no need for a driver to send to the receiver.
Something as simple as this can work:
stty -F /dev/ttyS0 9600
echo "$ATZ" > /dev/ttyttyS0
Then start gpsd.
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
pgpGNzwwsnWyr.pgp
Description: OpenPGP digital signature