gpsd-users
[Top][All Lists]
Advanced

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

[gpsd-users] Gpsdecode: missing comma in json


From: Stéphane Péneau
Subject: [gpsd-users] Gpsdecode: missing comma in json
Date: Thu, 4 Jul 2019 15:53:39 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2

Hi,

I have a GNSS base station connected to a Ntrip caster: centipede.fr

https://github.com/jancelin/centipede

Centipede use gpsdecode to extract some information from the rtcm stream, and there is a problem with the json returned from the MSM 1004. Here is an extract :

{"class":"RTCM3","device":"stdin","type":1004,"length":149,"station_id":0,"tow":382951000,"sync":"true","smoothing":"false","interval":"1","satellites":[{"ident":5,"L1":{"ind":0,"prange":264427.50,"delta":4.4120,"lockt":255,"amb":80,"CNR":44.25}"L2":{"ind":3,"prange": 322.54,"delta":0.9810,"lockt":255,"CNR":36.00}}

There is no comma before "L2" so the json parser fails.

Here is a MSM 1012 message extract, which is ok :

{"class":"RTCM3","device":"stdin","type":1012,"length":122,"station_id":0,"tow":47654000,"sync":"false","smoothing":"false","interval":"1","satellites":[{"ident":3,"channel":5,"L1":{"ind":0,"prange":514697.34,"delta":2.9025,"lockt":127,"amb":39,"CNR":39.75},"L2":{"ind":1,"prange": 325.80,"delta":0.1450,"lockt":255,"CNR":38.75},}


I've tested gpsdecode 3.19-dev with the same result. I didn't test the latest release but I didn't see any update in gpsdecode since 2019.


Best,

Stéphane




reply via email to

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