[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to get raw data from gpsd?
From: |
Gary E. Miller |
Subject: |
Re: How to get raw data from gpsd? |
Date: |
Fri, 22 Mar 2024 11:53:11 -0700 |
Yo 张延涛!
On Fri, 22 Mar 2024 22:52:33 +0800
张延涛 <zh6tao@gmail.com> wrote:
> I am currently working on gpsd 3.25
Cool. What GNSS receiver?
> and want to get the raw data that
> gpsd reads from the serial port. The raw data includes binary data,
> NMEA data, and other non-NMEA type textual data. I would like to know
> if gpsd has an API that allows me to call and obtain the raw data?
The quick way is "gpspipe -R". The API way it to do a ?WATCH and
ask for superraw mode.
> Before asking this question, I have already tried the following:
>
> - Using `gpspipe -R` I found that I could not get any data types
> other than NMEA sentences;
"gpspipe -R" sends whatever come in the serial port. If all you see
is NMEA, then that is all your receiver is sending.
You can use wireshark to confirm
> - Using the `gps_read()` function, I could not obtain the raw data
> either.
Ditto my last comment.
If you can send ut the first 60 seconds of your gpsd log that will
answer many questions. Do it this way:
gpsd -nND 6 /dev/ttyS0 > gpsd.log 2>&1
Let that run 60 seconds, the send us gpsd.log.
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
gem@rellim.com Tel:+1 541 382 8588
Veritas liberabit vos. -- Quid est veritas?
"If you can't measure it, you can't improve it." - Lord Kelvin
pgpDvA9wUSrQZ.pgp
Description: OpenPGP digital signature