gpsd-users
[Top][All Lists]
Advanced

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

Re: gpsfake usage


From: Gary E. Miller
Subject: Re: gpsfake usage
Date: Mon, 27 Apr 2020 16:50:42 -0700

Yo Владимир!

On Tue, 28 Apr 2020 02:27:22 +0300
Владимир Калачихин <address@hidden> wrote:

> Hi Gary!
> 27.04.2020 20:49, Gary E. Miller пишет:
> >> stager@StagerServer:~/gpsd$ export GPSD_HOME=/home/stager/gpsd/
> >> stager@StagerServer:~/gpsd$ ./gpsfake  -v -c 1
> >> test/daemon/ais-nmea.log ```  
> > 
> > OK, but what port will that gpsd slave to gpsfake be using?
> >   
> 
> Default:

No.  gpsfake is not supposed to ever use the default as that would
conflict with a running gosd.

> > That is odd.  gpsfake should not be setting -S to the same port a
> > running gpsd would be using.  Are you sure your gpsfake and gpsd
> > are related?  
> 
> stager@StagerServer:~/gpsd$ pstree -paul 16077
> python,16077,stager ./gpsfake -v -c 1 test/daemon/ais-nmea.log
>    └─gpsd,16078 -b -N -S 2947 -F /tmp/gpsfake-16077.sock

Weird.


> > Also, check "netstat -a" to be sure gpsd is listening on
> > 192.168.10.10  
> 
> stager@StagerServer:~/gpsd$ netstat -a | grep gpsd
> tcp        0      0 localhost:gpsd          0.0.0.0:* 
> LISTEN

Notice it is bound to 127.0.0.1?  You tried to connect with:

> kalach@kalach1:~/gpsd$ ./gpsd -N gpsd://192.168.10.10

But gpsd is not listening on 192.168.10.10!

You need to tell gpsfake to tell gpsd to use the -G option to listen
on an IP that is not localhost.

> What other tool is there for simulating data flow with AIS sentences 
> support?

cat?  sc?

> And, there is no easy way to start gpsfake on the same testing
> platform 

That is a much easier problem to fix.

> - it is not included in the firmware.

Easy to fix.

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


reply via email to

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