3 #------------------------------------------------------------------------------
4 # $File: map,v 1.4 2015/08/10 05:18:27 christos Exp $
5 # map: file(1) magic for Map data
8 # Garmin .FIT files http://pub.ks-and-ks.ne.jp/cycling/edge500_fit.shtml
9 8 string .FIT FIT Map data
11 >>35 belong x \b, unit id %d
12 >>39 lelong x \b, serial %u
13 # http://pub.ks-and-ks.ne.jp/cycling/edge500_fit.shtml
14 # 20 years after unix epoch
15 # TZ=GMT date -d '1989-12-31 0:00' +%s
16 >>43 leldate+631065600 x \b, %s
18 >>47 leshort x \b, manufacturer %d
19 >>47 leshort 1 \b (garmin)
20 >>49 leshort x \b, product %d
21 >>53 byte x \b, type %d
22 >>53 byte 1 \b (Device)
23 >>53 byte 2 \b (Settings)
24 >>53 byte 3 \b (Sports/Cycling)
25 >>53 byte 4 \b (Activity)
26 >>53 byte 8 \b (Elevations)
27 >>53 byte 10 \b (Totals)
29 # TOM TOM GPS watches ttbin files:
30 # http://github.com/ryanbinns/ttwatch/tree/master/ttbin
35 >>>0x77 leshort 0x0075 TomTom activity file, v7
37 >>>>3 byte x device firmware %d.
40 >>>>6 leshort x product ID %04d)