bugGPSD - Bugs: bug #55743, POLL doesn't include TPV or SKY...

 
 

bug #55743: POLL doesn't include TPV or SKY items

Submitter:  None
Submitted:  Wed 20 Feb 2019 07:51:27 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 31 May 2019 10:56:35 AM UTC, comment #2: 

This is cirrect behavior of the interface, but I can't tell the user that because the bug was submitted anonymously.  Therefore, closing.


Eric S. Raymond <esr>
Group administrator
Thu 21 Feb 2019 12:16:01 PM UTC, comment #1: 

Sorry to answer my own bug report but from looking through the code I notice that the same client has to be watching before it can issue a poll. This seems very weird to me apart from the WATCH being required to set up the (possibly empty) policy about what you want to POLL.

( echo '?WATCH={"enable":true};' ; echo '?POLL;' ; echo '?WATCH={"enable":false};' ) | nc -N localhost 2947

I have been working with the perl Net::GPSD3 code and notice that it doesn't support this style of operation directly. I don't know if other interfaces do and that this is just a deficiency in the perl code. Alternatively, is this the intended way that the POLL action is really meant to operate (assuming it is there to allow things like web queries to quickly obtain a snapshot).

Thanks.

Anonymous
Wed 20 Feb 2019 07:51:27 AM UTC, original submission:  

I have a GPS device with what appears to me to be a good fix. A watch call shows a series of TPV and SKY records but a poll call indicates that nothing has been cached.

gpsd is running with the '-n' flag.

Am I missing something important here. I have also tried running the poll with a watch running in the background, including with an explicit device name. Nothing seems to change.

ntpd is connected by shared memory and is keeping very good time compared to network servers.

(The information below has had the lat and lon attributes truncated to avoid potential privacy issues)

echo '?WATCH={"enable":true,"json":true};' | nc localhost 2947
{"class":"VERSION","release":"3.17","rev":"3.17","proto_major":3,"proto_minor":12}
{"class":"DEVICES","devices":[{"class":"DEVICE","path":"/dev/cuau0","driver":"u-blox","subtype":"Unknown","activated":"2019-02-20T06:41:03.184Z","flags":1,"native":1,"bps":9600,"parity":"N","stopbits":1,"cycle":1.00,"mincycle":0.25}]}
{"class":"WATCH","enable":true,"json":true,"nmea":false,"raw":0,"scaled":false,"timing":false,"split24":false,"pps":false}
{"class":"TPV","device":"/dev/cuau0","mode":3,"time":"2019-02-20T06:41:04.000Z","ept":0.005,"lat":-36.,"lon":147.,"alt":330.467,"epx":8.900,"epy":11.144,"epv":37.030,"track":89.2804,"speed":0.069,"climb":0.018,"eps":0.61,"epc":74.06}
{"class":"TPV","device":"/dev/cuau0","mode":3,"time":"2019-02-20T06:41:05.000Z","ept":0.005,"lat":-36.,"lon":147.,"alt":330.594,"epx":8.900,"epy":11.144,"epv":37.030,"track":75.7299,"speed":0.122,"climb":0.090,"eps":0.65,"epc":74.06}
{"class":"TPV","device":"/dev/cuau0","mode":3,"time":"2019-02-20T06:41:06.000Z","ept":0.005,"lat":-36.,"lon":147.,"alt":330.816,"epx":8.900,"epy":11.144,"epv":37.030,"track":88.4839,"speed":0.090,"climb":0.104,"eps":0.64,"epc":74.06}
{"class":"TPV","device":"/dev/cuau0","mode":3,"time":"2019-02-20T06:41:07.000Z","ept":0.005,"lat":-36.,"lon":147.,"alt":330.861,"epx":8.900,"epy":11.144,"epv":37.030,"track":271.3024,"speed":0.061,"climb":0.019,"eps":0.45,"epc":74.06}
{"class":"TPV","device":"/dev/cuau0","mode":3,"time":"2019-02-20T06:41:08.000Z","ept":0.005,"lat":-36.,"lon":147.,"alt":330.928,"epx":8.900,"epy":11.144,"epv":37.030,"track":78.1541,"speed":0.070,"climb":0.053,"eps":0.63,"epc":74.06}
{"class":"SKY","device":"/dev/cuau0","xdop":0.59,"ydop":0.74,"vdop":1.61,"tdop":1.05,"hdop":0.95,"gdop":2.14,"pdop":1.87,"satellites":[{"PRN":8,"el":38,"az":254,"ss":26,"used":true},{"PRN":10,"el":60,"az":146,"ss":26,"used":true},{"PRN":11,"el":13,"az":224,"ss":24,"used":false},{"PRN":14,"el":51,"az":337,"ss":28,"used":true},{"PRN":18,"el":24,"az":227,"ss":24,"used":true},{"PRN":20,"el":40,"az":113,"ss":37,"used":true},{"PRN":21,"el":18,"az":49,"ss":37,"used":true},{"PRN":24,"el":16,"az":127,"ss":36,"used":true},{"PRN":27,"el":45,"az":297,"ss":20,"used":true},{"PRN":32,"el":72,"az":344,"ss":31,"used":true},{"PRN":130,"el":-91,"az":0,"ss":30,"used":false}]}
{"class":"TPV","device":"/dev/cuau0","mode":3,"time":"2019-02-20T06:41:09.000Z","ept":0.005,"lat":-36.,"lon":147.,"alt":330.990,"epx":8.884,"epy":11.172,"epv":37.030,"track":85.8417,"speed":0.177,"climb":0.101,"eps":0.62,"epc":74.06}
{"class":"TPV","device":"/dev/cuau0","mode":3,"time":"2019-02-20T06:41:10.000Z","ept":0.005,"lat":-36.,"lon":147.,"alt":331.158,"epx":8.884,"epy":11.172,"epv":37.030,"track":89.7325,"speed":0.079,"climb":0.084,"eps":0.64,"epc":74.06}
{"class":"TPV","device":"/dev/cuau0","mode":3,"time":"2019-02-20T06:41:11.000Z","ept":0.005,"lat":-36.,"lon":147.,"alt":331.209,"epx":8.884,"epy":11.172,"epv":36.800,"track":253.5686,"speed":0.070,"climb":0.024,"eps":0.44,"epc":73.83}
^C

brian@time:~ % echo '?POLL;' | nc localhost 2947
{"class":"VERSION","release":"3.17","rev":"3.17","proto_major":3,"proto_minor":12}
{"class":"POLL","time":"2019-02-20T06:41:30.119Z","active":0,"tpv":[],"gst":[],"sky":[]}
^C

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by esr (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-05-31 esr Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code