gpsd-dev
[Top][All Lists]
Advanced

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

Re: [gpsd-dev] gpsd-dev Digest, Vol 94, Issue 13 (Gary E. Miller)


From: Gary E. Miller
Subject: Re: [gpsd-dev] gpsd-dev Digest, Vol 94, Issue 13 (Gary E. Miller)
Date: Tue, 24 Sep 2019 00:37:09 -0700

Yo Sharmila!

On Tue, 24 Sep 2019 12:23:19 +0530
Sharmila <address@hidden> wrote:

> I am using gpsd deamon for getting the gps data. I have to get the 
> software and hardware version in my client application.

I assume you are looking for the firmware and hardware versions
of a u-blox device?

What version of gpsd?

What model of u-blox?

Is the u-blox in NMEA or binary mode?

> Steps I followed:
> 
> 1. query UBX-MON command

I assume you mean UBX-MON-VER?

How do you issue that?  With ubxtool?  That should display the
answer.

> 2. read the data

How do you read the data?

One easy way is just to use gpspipe on a running gpsd.  Like this:

 # gpspipe -w -n 4
{"class":"VERSION","release":"3.19.1~dev","rev":"release-3.19-533-g6fe12474d","proto_major":3,"proto_minor":14}
{"class":"DEVICES","devices":[{"class":"DEVICE","path":"/dev/ttyAMA0","driver":"u-blox","subtype":"SW
 2.01 (75331),HW 00080000,PROTVER 
15.00,GPS;SBAS;GLO;BDS;QZSS","activated":"2019-09-24T07:32:40.321Z","flags":1,"native":1,"bps":9600,"parity":"N","stopbits":1,"cycle":1.00,"mincycle":0.25}]}

As you can see the "driver" and "subtype" tell you what UBX-MON-VER would.

Do you get similar?

> According to my observation*ubx_msg_mon_ver* function is calculating
> the version and copying to server side subtype field as shown below
> 
> /* save what we can */
>  ______ (void)strlcpy(session->subtype, obuf, sizeof(session->subtype));

Yes, but it is just a message decoder.  Something has to ask the u-blox
to send that message.  If your u-blox is in binary mode then a request
for UBX-MON-VER is made, then decoded when the receiver replies.

> The *json_devicelist_read* and *json_device_dump *is for copying to
> client json buffer.

Yes, but all you need to know is how to decode the JSON as it is sent
to you.

> But as I told before I am not receiving any data in client side ie
> gps_data_t.devices.list[0].subtype

Hard to debug your program without seeing it.  So first verify that
gpspipe see the subtype.

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: pgprfLzltyJii.pgp
Description: OpenPGP digital signature


reply via email to

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