[solved] help with canon eos camera gps file format :) lazarus / 21-General ---------------------------------------------------------------------- speter · 2023-07-05 02:14 G'Day Folks, I am looking at writing a program to convert a bunch of canon eos camera gps log files into a tab delimited text file. I believe each entry is two lines, for exmple: Code: [Select]$GPGGA,231047.539,3450.4091,S,15036.6550,E,1,04,2.2,8.0, M,,,,0000*1B $GPRMC,231047.539,A,3450.4091,S,15036.6550,E,,,271018,,,A*7B This is the last entry in a file dated 2019-01-05 3:06pm (so I think the date/time should be close to that) (see update below).   Lat = 3450.4091,S   Long = 15036.6550,E   Height = 8.0,M (this is a guess) I _think_ the date/time is "231047.539"! But am not sure how that might be decoded (if its correct). Any suggestions would be welcome. cheers S. PS I am attaching the (zipped) log file if that would be helpful. UPDATE: I am able to load the log file into Google Earth. It shows the date/time for the final point (the entry above) as 2018-10-28 9:10:47am I also found at https://gpsd.gitlab.io/gpsd/NMEA.html this info: "Date and time in GPS is represented as number of weeks from the start of zero second of 6 January 1980, plus number of seconds into the week." It goes on to say there is a "10-bit roll-over problem". UPDATE 2: I've just noticed the "271018" text in the sample data. If the time given by google earth was local time and the date/time in the log is standard time (UTC) then then 2018-10-28 would become 2018-10-27. Which is good; I think. ---------------------------------------------------------------------- paweld · 2023-07-05 04:26 The file is in NMEA format - from what I have read the format specification is paid, but here you have the unofficial format specification: https://web.archive.org/web/20191018055548/https://www. gpsinformation.org/dale/nmea.htm ---------------------------------------------------------------------- TRon · 2023-07-05 05:39 Another link to NMEA (unofficial) specification though paweld's link is pretty good. http://aprs.gids.nl/nmea/ ---------------------------------------------------------------------- loaded · 2023-07-05 05:44 Quote from: speter on July 05, 2023, 04:14:05 amG'Day Folks, I am looking at writing a program to convert a bunch of canon eos camera gps log files into a tab delimited text file. Do you have EXIF data in the pictures you took? ---------------------------------------------------------------------- speter · 2023-07-05 08:10 My thanks to paweld, TRon and loaded. Quote from: loaded on July 05, 2023, 07:44:04 amDo you have EXIF data in the pictures you took? I am not sure, but probably; the canon's gps log is independent of the photo-taking functionality though. I found some info about "time" on the site TRon linked. I appears the time information is not encoded but is simply: HHMMSS; so: Code: [Select]$GPRMC,231047.539,A,3450.4091,S,15036.6550,E,,,271018,,,A*7B         ^time=23:10:47                          ^date=2018-10-27 (UTC) cheers S.