gpsd-users
[Top][All Lists]
Advanced

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

Re: [gpsd-users] Is a GPS devices present?


From: Gary E. Miller
Subject: Re: [gpsd-users] Is a GPS devices present?
Date: Thu, 28 Sep 2017 12:23:55 -0700

Yo v.kalachikhin!

On Wed, 27 Sep 2017 19:38:27 +0300
"v.kalachikhin" <address@hidden> wrote:

> 22.09.2017 21:46, Gary E. Miller пишет:
> > 
> > Right there, each one of "devices" is a GPS:
> >   
> But no right there?
> I smoked man's, but no reached an enlightenment.

Clearly we have a language barrier here.  

> On this case:
> gpsd started, he is given some devices, no clients say WATCH.

I always tell people to START gpsd with devices, do not add them later.
But I'm unclear if that is your point.

> My client connected:
> {"class":"VERSION","release":"3.15","rev":"3.15-2build1","proto_major":3,"proto_minor":11}
> 
> ?WATCH={"enable":true};
> 
> {"class":"DEVICES","devices":[{"class":"DEVICE","path":"/tmp/ttyS21","activated":"2017-09-27T15:48:24.821Z","native":0,"bps":38400,"parity":"N","stopbits":1,"cycle":1.00}]}
> {"class":"WATCH","enable":true,"json":false,"nmea":false,"raw":0,"scaled":false,"timing":false,"split24":false,"pps":false}
> 
> ?POLL;
> 
> {"class":"POLL","time":"2017-09-27T15:48:45.548Z","active":0,"tpv":[],"gst":[],"sky":[]}
> 
> Ooops... What  do I have to do?

I do not understand what you are trying to do?

Maybe the best way to understand the protocol is to look at how
gpsd and cgps talk together.

> If device on /tmp/ttyS21 is a GPS - I 
> have to wait.

Of course.

> If it no GPS (compass, as example) - I have to alarmed, 
> because to wait - is a loss a time before disaster.

GPS, or compass, you still need to wait for data.  No difference there.

If the GPS stops talking, the gpsd has nothing to pass on, so you
need an alarm there too.

> At what moment becomes available "flags" property of DEVICE object,
> or "mode" property of TPV object?

That is very device dependent.  gpsd has to read many different types
of protocol inputs, each behaves different.  You just need to ask
for the data you want, and wait for it.

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

Attachment: pgpdLdcSSpOmh.pgp
Description: OpenPGP digital signature


reply via email to

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