Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.raspberry-pi > #10462 > unrolled thread

GPS program module for raspberry.pi

Started byfreeunixbsd@gmail.com
First post2016-01-28 23:37 -0800
Last post2016-02-01 10:07 +0000
Articles 9 — 5 participants

Back to article view | Back to comp.sys.raspberry-pi


Contents

  GPS program module for raspberry.pi freeunixbsd@gmail.com - 2016-01-28 23:37 -0800
    Re: GPS program module for raspberry.pi Martin Gregorie <martin@address-in-sig.invalid> - 2016-01-29 12:03 +0000
      Re: GPS program module for raspberry.pi Roger Bell_West <roger+csrp201601@nospam.firedrake.org> - 2016-01-30 21:11 +0000
        Re: GPS program module for raspberry.pi Martin Gregorie <martin@address-in-sig.invalid> - 2016-01-30 23:03 +0000
      Re: GPS program module for raspberry.pi Rob <nomail@example.com> - 2016-01-30 21:45 +0000
        Re: GPS program module for raspberry.pi Martin Gregorie <martin@address-in-sig.invalid> - 2016-01-30 22:53 +0000
          Re: GPS program module for raspberry.pi Rob <nomail@example.com> - 2016-01-31 10:36 +0000
            Re: GPS program module for raspberry.pi Martin Gregorie <martin@address-in-sig.invalid> - 2016-01-31 19:49 +0000
    Re: GPS program module for raspberry.pi David Taylor <david-taylor@blueyonder.co.uk.invalid> - 2016-02-01 10:07 +0000

#10462 — GPS program module for raspberry.pi

Fromfreeunixbsd@gmail.com
Date2016-01-28 23:37 -0800
SubjectGPS program module for raspberry.pi
Message-ID<bf76a612-edf2-4ffa-afef-b8c2cc4812ae@googlegroups.com>
hi,all
 I wanted to use a gps moudle via the raspberry pi 2B.i download a gpsd program from the debian's website.When i install the progrsam,the system prompt the program don't to be install.
    please give me some advence for the gps  program module.
   Thx

[toc] | [next] | [standalone]


#10466

FromMartin Gregorie <martin@address-in-sig.invalid>
Date2016-01-29 12:03 +0000
Message-ID<n8fkej$rle$2@dont-email.me>
In reply to#10462
On Thu, 28 Jan 2016 23:37:59 -0800, freeunixbsd wrote:

> hi,all
>  I wanted to use a gps moudle via the raspberry pi 2B.i download a gpsd
>  program from the debian's website.When i install the progrsam,the
>  system prompt the program don't to be install.
>     please give me some advence for the gps  program module.
> 
RTFM  - gpsd is a server, not a command line utility.

Why do you need to use gpsd anyway? Its main use is to let other client 
programs, possibly on other computers, share access to the GPS module.

Read this: http://www.catb.org/gpsd/


-- 
martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |

[toc] | [prev] | [next] | [standalone]


#10474

FromRoger Bell_West <roger+csrp201601@nospam.firedrake.org>
Date2016-01-30 21:11 +0000
Message-ID<20160130211004.93555501297033@firedrake.org>
In reply to#10466
On 2016-01-29, Martin Gregorie wrote:
>Why do you need to use gpsd anyway? Its main use is to let other client 
>programs, possibly on other computers, share access to the GPS module.

This is Unix, though: a program which shares data with a remote
computer can also share it locally.

My car track logger uses gpsd/gpspipe as that's the cleanest way of
getting data from an arbitrary GPS receiver into the local machine.

R

[toc] | [prev] | [next] | [standalone]


#10478

FromMartin Gregorie <martin@address-in-sig.invalid>
Date2016-01-30 23:03 +0000
Message-ID<n8jfg1$vo4$2@dont-email.me>
In reply to#10474
On Sat, 30 Jan 2016 21:11:50 +0000, Roger Bell_West wrote:

> On 2016-01-29, Martin Gregorie wrote:
>>Why do you need to use gpsd anyway? Its main use is to let other client
>>programs, possibly on other computers, share access to the GPS module.
> 
> This is Unix, though: a program which shares data with a remote computer
> can also share it locally.
>
Indeed, and I can see uses for myself in my glider. If I was to run the 
LK8000[*] navigation program on an RPi with an attached Adafruit 3.5" toch 
screen and a USB-connected GPS puck, it would make sense to use gpsd 
because this way I could feed one GPS data stream into LK8000 and point a 
second stream into my SDI C4 flight computer.
 
[*] I'm currently running in on a Medion PDA, but it runs under both WM5/6 
and Linux.


-- 
martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |

[toc] | [prev] | [next] | [standalone]


#10475

FromRob <nomail@example.com>
Date2016-01-30 21:45 +0000
Message-ID<slrnnaqbod.cqc.nomail@xs9.xs4all.nl>
In reply to#10466
Martin Gregorie <martin@address-in-sig.invalid> wrote:
> Why do you need to use gpsd anyway? Its main use is to let other client 
> programs, possibly on other computers, share access to the GPS module.

That is a good reason to use it, isn't it?
Without gpsd, only a single program on the computer can access the GPS
module.  So, when you have more than one program that wants to know
the position, or when you want to let the GPS module sync the clock and
you also want to know the position, you are out of luck.

gpsd also translates the output of different types of GPS receiver to
a single common format, so the application program does not need to
do that itself.

[toc] | [prev] | [next] | [standalone]


#10477

FromMartin Gregorie <martin@address-in-sig.invalid>
Date2016-01-30 22:53 +0000
Message-ID<n8jeu0$vo4$1@dont-email.me>
In reply to#10475
On Sat, 30 Jan 2016 21:45:49 +0000, Rob wrote:

> Martin Gregorie <martin@address-in-sig.invalid> wrote:
>> Why do you need to use gpsd anyway? Its main use is to let other client
>> programs, possibly on other computers, share access to the GPS module.
> 
> That is a good reason to use it, isn't it?
>
Maybe, maybe not. We don't know what the OP is trying to achieve, which 
is why I asked him why he wanted to use it. If we knew that we might be 
able to give more directed help.

'RTFM' is intended as advice: since he has succeeded in downloading and 
installing gpsd, but seems not to know how to use it, that's about the 
best advice I can give from what he told us.

> Without gpsd, only a single program on the computer can access the GPS
> module.  So, when you have more than one program that wants to know the
> position, or when you want to let the GPS module sync the clock and you
> also want to know the position, you are out of luck.
> 
> gpsd also translates the output of different types of GPS receiver to a
> single common format, so the application program does not need to do
> that itself.
>
Yeah, all that became obvious as soon as I looked at the gps website. In 
the past I've seen what NMEA-speaking units (Garmin GPS-35) output by 
pointing cat at the serial port it was attached to. It looks as though, 
that by using gpsd the same could be achieved with a generic chain like:

  GPS-->gpsd-->netcat 


-- 
martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |

[toc] | [prev] | [next] | [standalone]


#10482

FromRob <nomail@example.com>
Date2016-01-31 10:36 +0000
Message-ID<slrnnarou2.3pj.nomail@xs9.xs4all.nl>
In reply to#10477
Martin Gregorie <martin@address-in-sig.invalid> wrote:
>> gpsd also translates the output of different types of GPS receiver to a
>> single common format, so the application program does not need to do
>> that itself.
>>
> Yeah, all that became obvious as soon as I looked at the gps website. In 
> the past I've seen what NMEA-speaking units (Garmin GPS-35) output by 
> pointing cat at the serial port it was attached to. It looks as though, 
> that by using gpsd the same could be achieved with a generic chain like:
>
>   GPS-->gpsd-->netcat 

The problem with serial devices is that only a single program can read
them at any time.  So when you have two programs that need the information,
you need a single service that reads the serial port and then many programs
can connect to that service.  That is what gpsd is doing.

Also, NMEA is easily readable and commonly available, but it lacks the
detail available in the binary protocol specific to each manufacturer,
so gpsd can talk to the device in binary protocols.

[toc] | [prev] | [next] | [standalone]


#10489

FromMartin Gregorie <martin@address-in-sig.invalid>
Date2016-01-31 19:49 +0000
Message-ID<n8logq$gma$1@dont-email.me>
In reply to#10482
On Sun, 31 Jan 2016 10:36:50 +0000, Rob wrote:

> Martin Gregorie <martin@address-in-sig.invalid> wrote:
>>> gpsd also translates the output of different types of GPS receiver to
>>> a single common format, so the application program does not need to do
>>> that itself.
>>>
>> Yeah, all that became obvious as soon as I looked at the gps website.
>> In the past I've seen what NMEA-speaking units (Garmin GPS-35) output
>> by pointing cat at the serial port it was attached to. It looks as
>> though, that by using gpsd the same could be achieved with a generic
>> chain like:
>>
>>   GPS-->gpsd-->netcat
> 
> The problem with serial devices is that only a single program can read
> them at any time.  So when you have two programs that need the
> information,
>
Did it occur to you that I was describing a TEST SYSTEM to see exactly 
what data items the GPS was outputting and in what order?

With the documentation standard of some GPS receivers you'd need to do 
that so you'd know what sequence of data items it produces before 
designing and coding the consuming program.  IIRC the GPS-35, which 
defaults to NMEA output, had a manual which lists the NMEA sentences it 
outputs but said nothing about their output ordering, so running it up 
with cat as the data consumer was a worthwhile test. I'd do the same with 
any new type of GPS receiver that I'd expect to be feeding one or more 
data consumers via gpsd, but in this case netcat is the most suitable 
program for displaying the output.
 

-- 
martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |

[toc] | [prev] | [next] | [standalone]


#10491

FromDavid Taylor <david-taylor@blueyonder.co.uk.invalid>
Date2016-02-01 10:07 +0000
Message-ID<n8naiq$37d$2@dont-email.me>
In reply to#10462
On 29/01/2016 07:37, freeunixbsd@gmail.com wrote:
> hi,all
>   I wanted to use a gps moudle via the raspberry pi 2B.i download a gpsd program from the debian's website.When i install the progrsam,the system prompt the program don't to be install.
>      please give me some advence for the gps  program module.
>     Thx

There's some information on using GPS/PPS and a suitable hardware module 
here:

   http://www.satsignal.eu/ntp/Raspberry-Pi-quickstart.html

and some background notes here:

   http://www.satsignal.eu/ntp/Raspberry-Pi-NTP.html

-- 
Cheers,
David
Web: http://www.satsignal.eu

[toc] | [prev] | [standalone]


Back to top | Article view | comp.sys.raspberry-pi


csiph-web