gpsd-users
[Top][All Lists]
Advanced

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

Re: What’s the purpose of device-hook file


From: raaj lokanathan
Subject: Re: What’s the purpose of device-hook file
Date: Thu, 20 Feb 2020 11:36:03 +0800

Hey Gary,

Got that point now. 

Btw just a quick question. 

Is there a way to start gpsd with specific driver and baudrate? I don’t want to go through the guessing the baudrate. 

For example. I have my driver name as lgit. And I know it’s baudrate is 115200

Can I pass in something like this?

./gpsd -D 6 -N -n lgit 115200 /dev/usb1


On Thu, 20 Feb 2020 at 10:14 AM, Gary E. Miller <address@hidden> wrote:
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
--
Thanks and regards,

Raaj Lokanathan

reply via email to

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