GPS: Format Gartrip Trackfiles

Format Trackfiles Gartrip (*.t):

Example- Data:

Header:

01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f       Byte-Nr.
47 41 52 74 72 69 70 20 74 72 61 63 6B CB 00       Code
 G  A  R  t  r  i  p     t  r  a  c  k  ?  ?       Meaning
10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f    Byte-Nr.
0e 00 54 65 73 74 2D 20 54 72 61 63 6B 20 31 35    Code
Numchr T  e  s  t  -     T  r  a  c  k     1  5    Meaning

Trackpoint- Data:

20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f    Byte-Nr.
54 00 80 BF 20 00 C4 9D 05 D7 2E 98 16 03 0D 00    Code
 T |--Latt.--| |--Long.--| |---Time--| Md NumZ     Meaning
30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f    Byte-Nr.
50 69 73 74 65 3A 20 41 6C 6C 61 6C 69 6E D9 0D    Code
 P  i  s  t  e  :     A  l  l  a  l  i  n Height   Meaning


Format of the Header:

13 Byte:

Text "GARtrip track"

2 Byte:

CB 00 (meaning unknown, perhaps version information)

2 Byte:

number n of following characters for the description of the file

n Byte:

descripting text

 

Format of the Track- data:

1 Byte:

"T" begin of trackpoint data

4 Byte:

latitude, first byte is LSB, information in minutes multiplied with 308B9(Hex) (to get the minutes you have to divide the value by 198841(dez)

4 Byte:

Longitude, same format as latitude

4 Byte:

Time, first byte is LSB, counts the seconds since 31.12.1989, 00:00:00 for GMT
eg. For VB:

tim = value / 24 / 3600 + 32873 + 1 / 24
datum$ = FormatDateTime(tim, vbShortDate)
ClkTime$ = FormatDateTime(tim, vbLongTime)

1 Byte:

Mode: if lowest bit (Bit0) is set (‘1’): start of new segment
Bit 1-3: color of track

02

automatic color

04

black

06

green

08

blue

0A

red

0C

cyan

0E

magenta

 

2 Byte:

number m of following textcharacters

m Byte:

text

2 Byte:

Height in meter, first byte is LSB: eg: 0DD9(Hex) = 3545 m