gpsd-dev
[Top][All Lists]
Advanced

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

Re: [gpsd-dev] Adding additional parameters to gps_data_t structure


From: sharmila . devadas
Subject: Re: [gpsd-dev] Adding additional parameters to gps_data_t structure
Date: Wed, 03 Jul 2019 23:19:27 -0500
User-agent: Roundcube Webmail/1.2.4

Hi,
I have removed the 3 parameters (velN, velE,height) from fix_t structure and added in separate structure which i created inside the gps_data_t structure. Now in application I am able to receive all the data but not my 3 parameters which is always 0.

As i told before I am able to get the value for 3 parameters in client buffer. But if i read in application it is always zero.

gpsd:CLIENT:=> client(0): {"class":"TPV","device":"/dev/ttyLP2","mode":3,"time":"2019-07-03T14:46:51.000Z","ept":0.005,"lat":12.912552367,"lon":77.615069416,"alt":910.134,"epx":13.902,"epy":13.902,"epv":17.850,"track":300.1925,"speed":0.395,"climb":0.028,"eps":0.99,"epc":35.70,"velN":0.23,"velE":-0.25,"height":824.98}\x0d\x0a


Then json_tpv_dump() in gpsd_json.c needs to be modified to send the data
along when valid (not NAN).  Then json_tpv_read() in libgps_json.c need
to be able to decode the new JSON items and put back in gpsd_fix_t.

I have already done all the above steps , sharing patch for your understanding.

Waiting for your valuable reply

Thanks and regards,
Sharmila





On 2019-07-03 11:00, address@hidden wrote:
Send gpsd-dev mailing list submissions to
        address@hidden

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.nongnu.org/mailman/listinfo/gpsd-dev
or, via email, send a message with subject or body 'help' to
        address@hidden

You can reach the person managing the list at
        address@hidden

When replying, please edit your Subject line so it is more specific
than "Re: Contents of gpsd-dev digest..."


Today's Topics:

   1. Re: Adding additional parameters to gps_data_t structure
      (Gary E. Miller)
   2. Re: ubxtool and remote gpsd (Gary E. Miller)
   3. Re: ubxtool and remote gpsd (Ken McGuire)
   4. Re: ubxtool and remote gpsd (Gary E. Miller)


----------------------------------------------------------------------

Message: 1
Date: Tue, 2 Jul 2019 11:34:31 -0700
From: "Gary E. Miller" <address@hidden>
To: address@hidden
Subject: Re: [gpsd-dev] Adding additional parameters to gps_data_t
        structure
Message-ID: <address@hidden>
Content-Type: text/plain; charset="utf-8"

Yo Sharmila!

On Tue, 2 Jul 2019 21:00:29 +0530
Sharmila <address@hidden> wrote:

I am using gpsd deamon for fetching the GPS data from ublox module. I
have added velN (
North velocity component) , velE (East velocity component) and height
(Height above ellipsoid) parameter in gps_data_t fix structure.

Interesting. First time I ever heard someone wants velN, velE and velU.
Sounds worthy of adding for version 3.20.  What is your use case?

Except it does not belong in gps_data_t, but in gps_fix_t, as it is
part of a fix.

Then json_tpv_dump() in gpsd_json.c needs to be modified to send the data
along when valid (not NAN).  Then json_tpv_read() in libgps_json.c need
to be able to decode the new JSON items and put back in gpsd_fix_t.

After adding the above mentioned parameters and increased the debug
level I got the below prints from driver.

Well, a lot more to do that just adding thing. But that is a start, can
you send a patch with that part?  The new parameters need to be set to
NAN is not valid, likely in gps_clear_fix() in gpsutils.c

But the data doesn't seem to be transfer or handled in application as
expected since I am getting unexpected values in the application.

Hard to say what went wrong without seeing what you did.  Send a patch
and I'll tell you what to add to it. We can do this one step at at time.

Also as a part of debugging process we tried to enable
libgps_debug_trace() , but I am not able to get the prints from
libgps_sock.c and libgps_core.c file. Kindly help us to enable the
libgps_debug_trace().

And how did you try to enable it? I can't guess what you missed without
knowing what you did.

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: OpenPGP digital signature
URL:
<https://lists.nongnu.org/archive/html/gpsd-dev/attachments/20190702/f817dabc/attachment.sig>

------------------------------

Message: 2
Date: Tue, 2 Jul 2019 11:53:13 -0700
From: "Gary E. Miller" <address@hidden>
To: address@hidden
Subject: Re: [gpsd-dev] ubxtool and remote gpsd
Message-ID: <address@hidden>
Content-Type: text/plain; charset="utf-8"

Yo Ken!

Seems like our private messages crossed before the list serve send
your list messages.  We already determined the problem solved, but
I'll mention a few things.

On Mon, 1 Jul 2019 19:42:51 -0600
Ken McGuire <address@hidden> wrote:

> Doubly odd.  Can you confirm your UBXOPTS environment variable is
> empty?

env

[...]
USER=kenm

Careful!  Sometimes gpsd needs root.

Missing $PYTHONPATH!

The easy way:

$ echo $UBXOPTS
$

python --version
Python 2.7.15+

But gpsd doesn't use python in it's normal operation.

But the issue here is ubxtool.  ubxtool is 100% Python.

Since it now works for, this is just forensics now.

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: OpenPGP digital signature
URL:
<https://lists.nongnu.org/archive/html/gpsd-dev/attachments/20190702/368db78e/attachment.sig>

------------------------------

Message: 3
Date: Tue, 2 Jul 2019 14:32:29 -0600
From: Ken McGuire <address@hidden>
To: address@hidden
Subject: Re: [gpsd-dev] ubxtool and remote gpsd
Message-ID: <address@hidden>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

Hi Gary,

Yo Ken!

Seems like our private messages crossed before the list serve send
your list messages.  We already determined the problem solved, but
I'll mention a few things.

On Mon, 1 Jul 2019 19:42:51 -0600
Ken McGuire <address@hidden> wrote:

>/> Doubly odd. Can you confirm your UBXOPTS environment variable is/
>/> empty? /
>//
>/env/

[...]
>/USER=kenm/

That is the environment from where ubxtool was run on my desktop and I
was not root at that time.

Careful!  Sometimes gpsd needs root.
And on the OPi0 system, gpsd is run as root.
Missing $PYTHONPATH!

The easy way:

$ echo $UBXOPTS
$
echo $UBXOPTS

^^^^^ empty...
>/python --version/
>/Python 2.7.15+/
>//
>/But gpsd doesn't use python in it's normal operation./

ubxtool on the desktop of course needs python, on the OPi0, gpsd does
not need python, but ubxtool and some of the other .py examples do.

But the issue here is ubxtool.  ubxtool is 100% Python.

Since it now works for, this is just forensics now.

Yep, glad the issue is resolved, and that 3.19 is released.

I can now "install" gpsd and continue development of my system

RGDS
GARY

-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<https://lists.nongnu.org/archive/html/gpsd-dev/attachments/20190702/8633250c/attachment.html>

------------------------------

Message: 4
Date: Tue, 2 Jul 2019 13:42:33 -0700
From: "Gary E. Miller" <address@hidden>
To: address@hidden
Subject: Re: [gpsd-dev] ubxtool and remote gpsd
Message-ID: <address@hidden>
Content-Type: text/plain; charset="utf-8"

Yo Ken!

On Tue, 2 Jul 2019 14:32:29 -0600
Ken McGuire <address@hidden> wrote:

Hi Gary,

> Yo Ken!
>
> Seems like our private messages crossed before the list serve send
> your list messages.  We already determined the problem solved, but
> I'll mention a few things.
>
> On Mon, 1 Jul 2019 19:42:51 -0600
> Ken McGuire <address@hidden> wrote:
>
> >/> Doubly odd. Can you confirm your UBXOPTS environment variable
> >is/ /> empty? /
> >//
> >/env/
>
> [...]
> >/USER=kenm/

That is the environment from where ubxtool was run on my desktop and
I was not root at that time.

Yes. as I was expecting. For some reaxson people that switch in and out
of root using gpsd have more issues.

> Careful!  Sometimes gpsd needs root.
And on the OPi0 system, gpsd is run as root.
> Missing $PYTHONPATH!

No comment?  Serious problem.

>
> The easy way:
>
> $ echo $UBXOPTS
> $
echo $UBXOPTS

^^^^^ empty...

Yes, we knew that.

> >/But gpsd doesn't use python in it's normal operation./

ubxtool on the desktop of course needs python, on the OPi0, gpsd does
not need python, but ubxtool and some of the other .py examples do.

Yes.  Important to keep in mind.

Python 2 is EOL in under 6 months.  Time to move on.

> But the issue here is ubxtool.  ubxtool is 100% Python.
>
> Since it now works for, this is just forensics now.

Yep, glad the issue is resolved, and that 3.19 is released.

Good.  Moving on to the next bugs and features.

I can now "install" gpsd and continue development of my system

That's the point.  Let us know what you find, a lot of new stuff
from the ZED's.

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: OpenPGP digital signature
URL:
<https://lists.nongnu.org/archive/html/gpsd-dev/attachments/20190702/4124ab3d/attachment.sig>

------------------------------

Subject: Digest Footer

_______________________________________________
gpsd-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/gpsd-dev


------------------------------

End of gpsd-dev Digest, Vol 94, Issue 4
***************************************

Attachment: gps_ubx_28June.patch
Description: Text Data


reply via email to

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