[Top][All Lists]

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

Re: [gpsd-users] Create fakegpsd input from coordinates

From: Robert Norris
Subject: Re: [gpsd-users] Create fakegpsd input from coordinates
Date: Mon, 6 Mar 2017 19:20:35 +0000

I recommend looking into using gpsbabel for converting files

So on the command line it would be something like this:
    gpsbabel -i unicsv,fields=lat+lon -f originalfile.txt -o nmea -F 

Then you can use the new file with gpsfake

Be Seeing You - Rob.
If at first you don't succeed,
then skydiving isn't for you.

From: gpsd-users <address@hidden> on behalf of Peter Jenik <address@hidden>
Sent: 06 March 2017 13:53:19
To: 'tom schuring'; 'GPSd-users'; 'Salamon Attila'
Subject: Re: [gpsd-users] Create fakegpsd input from coordinates

Hi Attila,

I would build a NMEA File and then feed it to gpsfake. Building a NMEA File 
from your coordinates should be easy:

Geographic Position, Latitude / Longitude and time.
eg1. $GPGLL,3751.65,S,14507.36,E*77
eg2. $GPGLL,4916.45,N,12311.12,W,225444,A

           4916.46,N    Latitude 49 deg. 16.45 min. North
           12311.12,W   Longitude 123 deg. 11.12 min. West
           225444       Fix taken at 22:54:44 UTC
           A            Data valid

eg3. $GPGLL,5133.81,N,00042.25,W*75
               1    2     3    4 5

      1    5133.81   Current latitude
      2    N         North/South
      3    00042.25  Current longitude
      4    W         East/West
      5    *75       checksum
$--GLL,lll.ll,a,yyyyy.yy,a,,A llll.ll = Latitude of position
a = N or S
yyyyy.yy = Longitude of position
a = E or W = UTC of position
A = status: A = valid data

courtesy of

Convert your Lat/Lon accordingly (Degrees*100+Minutes.<point>decimal fraction 
of minute) When omitting the time and using “A” instead of calculating a 
checksum then do not forget to insert the extra comma, it might be needed.


Von: gpsd-users [mailto:address@hidden Im Auftrag von tom schuring
Gesendet: Montag, 06. März 2017 08:25
An: GPSd-users; Salamon Attila
Betreff: Re: [gpsd-users] Create fakegpsd input from coordinates


The logfiles may contain packets in any supported format, including in 
particular NMEA, SiRF, TSIP, or Zodiac. Leading lines beginning with # will be 
treated as comments and ignored, except in the following ......

So I would Google for "generate nmea file"

And try a few of the simulators that come up in the result.

Or dive into the nmea spec and hand generate them.

Perhaps someone else has a quicker way.

On 6 Mar 2017, 5:39 PM +1100, Salamon Attila 
<address@hidden<mailto:address@hidden>>, wrote:


(Sorry for my english.)

I have GPS points of a path in text format:
latitudeN,longitudeN .

Latitude and longitude are floating point numbers.
How can I create an input file for fakegps from the coordinates?

Thanks in advance,
Best Regards,
Attila Salamon

reply via email to

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