[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gpsfake usage
From: |
Владимир Калачихин |
Subject: |
Re: gpsfake usage |
Date: |
Tue, 28 Apr 2020 02:27:22 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 |
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:
>> kalach@kalach1:~/gpsd$ export GPSD_HOME=/home/kalach/gpsd/
>> kalach@kalach1:~/gpsd$ ./gpsd -N gpsd://192.168.10.10
stager@StagerServer:~$ ps 6137
PID TTY STAT TIME COMMAND
6137 pts/0 S+ 0:00 /home/stager/gpsd//gpsd -b -N -S 2947 -F
/tmp/gpsfake-6136.sock
```
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
I start gpsd on client as:
```
kalach@kalach1:~/gpsd$ export GPSD_HOME=/home/kalach/gpsd/
kalach@kalach1:~/gpsd$ ./gpsd -N gpsd://192.168.10.10
```
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
And maybe recheck why this is worth doing at all?
What other tool is there for simulating data flow with AIS sentences
support?
And, there is no easy way to start gpsfake on the same testing platform
- it is not included in the firmware.
Владимир Калачихин