[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-users] Mystery error message
From: |
Gary E. Miller |
Subject: |
Re: [gpsd-users] Mystery error message |
Date: |
Wed, 3 Jul 2013 23:11:21 -0700 |
Yo Roy!
I'm not the person to ask on AUVDM stuff, so I'm readding, again,
gpsd-users to this exchange. Maybe someone can answer.
On Thu, 4 Jul 2013 13:42:35 +1000
Roy Barkas <address@hidden> wrote:
> I have a task that connects to an external server and downloads
> sentences that have a bunch of metadata wrapped around the AIVDM's
> that I'm interested in.
>
> My external task strips the metadata and sends the AIVDM sentence
> through the pipe to GPSD for processing.
> The metadata includes things like timestamp, data source that are
> useful to my application. I process them within the front end task
> before sending the AIVDM sentences to gpsd via the named pipe. When
> I do this the error occurs as soon as an external task invokes a
> watch on gpsd port 2947.
>
> Since I posted the question I've discovered that gpsd is smart enough
> that if I don't strip the metadata from the incoming packets it just
> ignores the metadata and processes the AIVDM, so until / unless I
> resolve the issue with the pipe I've changed the gpsd command so that
> it connects directly to the external data source via a tcp
> connection. That seems to work well. There are no errors occurring
> using tcp as the input.
>
> Do you happen to know how (or if) gpsd handles reconnects to an
> external tcp data source in the event that the connection
> disappears? Does gpsd attempt to reconnect or do I need to monitor
> and command a reconnect?
>
>
>
> On Thu, Jul 4, 2013 at 12:43 PM, Gary E. Miller <address@hidden>
> wrote:
>
> > Yo Roy!
> >
> > On Thu, 4 Jul 2013 12:08:19 +1000
> > Roy Barkas <address@hidden> wrote:
> >
> > > /usr/sbin/gpsd -b -D1
> > > -F /home/gpsd.sock /var/www/pipes/Q_server_pipe
> >
> > For now I'll assume you are running as root and using a new version
> > of gpsd.
> >
> > Why are you using a socket and a pipe? The usual reason to use a
> > socket is just to add GPS devices without restarting gpsd. You
> > should also be using -n to avoid repeated open/closes of the pipe.
> >
> > What are te file permissions on /var/www/pipes/Q_server_pipe?
> > What is conected to the other end of /var/www/pipes/Q_server_pipe?
> >
> > RGDS
> > GARY
> > ---------------------------------------------------------------------------
> > Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR
> > 97701 address@hidden Tel:+1(541)382-8588
> >
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97701
address@hidden Tel:+1(541)382-8588
signature.asc
Description: PGP signature