Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Garmin Descent and fēnix dive watches

Garmin’s dive-capable watches (Descent Mk1/Mk2/Mk3/G1/G2/X50i and the fēnix 8 range) do not expose a memory-dump protocol. Each dive is stored as one FIT activity file. A host reads these files either from the watch’s file system over USB (USB mass storage on the Descent Mk1, MTP on later models) or, over Bluetooth Low Energy, through Garmin’s GFDI message protocol, which offers a file-transfer service. The dive content is the same in every case, so this document has two halves: transports that deliver FIT files, and the FIT messages and fields that carry dive data.

Devices

Model codes are FIT garmin_product values. They appear in file_id.product (field 2) and device_info.product (field 4, for device_index 0) of every activity file.

VendorModelModel codeUSB modeNotes
GarminDescent Mk12859mass storageAlso has BLE GFDI
GarminDescent Mk1 (Asia/Pacific)2991mass storageNot in the public FIT profile
GarminDescent Mk2 / Mk2i3258MTP
GarminDescent Mk2S3542MTP
GarminDescent Mk2 / Mk2i (Asia)3702MTP
GarminDescent Mk2S (Asia)3930MTP
GarminDescent G1 / G1 Solar4005MTP
GarminDescent G1 (Asia)4132MTP (assumed)In the FIT profile only
GarminDescent Mk3 (43 mm)4222MTPFIT profile name: Mk3
GarminDescent Mk3i (51 mm)4223MTPFIT profile name: Mk3i
GarminDescent X50i4518MTPNot in the public FIT profile
Garminfēnix 8 Solar 47 mm4532MTP
Garminfēnix 8 Solar 51 mm (tactix 8 Solar)4533MTP
Garminfēnix 8 43 mm4534MTP
Garminfēnix 8 47/51 mm (also tactix/quatix 8)4536MTPSee open question 3
GarminDescent G24588MTP
Garminfēnix 8 Pro (also quatix 8 Pro)4631MTP
Garminfēnix 8 47/51 mm AMOLED (tactix 8)4775MTPSee open question 3
Garminfēnix 8 Solar 51 mm (tactix 8 Solar)4776MTP

Other dive-related products in the FIT profile, not dive computers that store dives themselves: Descent T1 transceiver (3143), Descent T2 (4442), Descent X10 (5026, not characterised). The fēnix E is a dive-capable model with no known model code.

FIT files may also come from other manufacturers. For example, file_id.manufacturer 23 is Suunto, whose EON Core, EON Steel and D5 FIT exports can use the same dive messages.

Confidence: verified for codes that are in the public FIT profile (garmin_product type); likely for 2991 and 4518 (one open-source reference only).

Identification per transport

  • USB: vendor ID 091E (Garmin).
    • MTP mode: product ID = 0x4000 | model code. Examples: Descent Mk2 3258 = 0x0CBA → PID 4CBA. fēnix 8 43 mm 4534 = 0x11B6 → PID 51B6. Both PIDs also appear independently in a second source. likely
    • Mass-storage mode: two PIDs are known for the Descent Mk1, 2B2B and 0003. 2B2B = 0x2000 | 2859 suggests that mass-storage PIDs are formed as 0x2000 | model code. 0003 may be a generic Garmin mass-storage ID. uncertain
    • A host that reads MTP SHOULD accept only VID 091E with bit 0x4000 set in the PID, and MAY additionally check the model code against the table above.
  • BLE: Descent Mk1 advertises the name Descent, and a Mk2 variant advertises Descent Mk2. The service UUIDs are listed under Transport parameters. The watch must already be bonded with the host (pairing happens through the phone OS). likely

Transport parameters

USB mass storage

The watch presents a FAT-formatted volume. The host mounts it, or reads it through its own SCSI/FAT stack. See ../transports/ for the shared USB mass storage details. Nothing Garmin-specific is sent. likely

MTP

Standard PTP/MTP: OpenSession, GetStorageIDs, GetObjectHandles, GetObjectInfo, GetObject. Folders are association objects (format 0x3001), and FIT files have format 0x3000 (undefined). See ../transports/. likely

Variants seen in hosts:

  • One host searches every storage for a Garmin folder.
  • Another host uses only the first storage, and if nothing is found, retries the path with a Primary/ prefix.

A robust host searches all storages and both paths.

BLE GFDI

ItemValue
Service (GFDI “V1”)6a4e2401-667b-11e3-949a-0800200c9a66
Alternative service seen on Descent Mk26a4e8022-667b-11e3-949a-0800200c9a66
Write characteristic (H→D)6a4e4c80-667b-11e3-949a-0800200c9a66
Notify characteristic (D→H)6a4ecd28-667b-11e3-949a-0800200c9a66
Older “V0” service9b012401-bc30-ce9a-e111-0f67e491abde, write df334c80-e6a7-d082-274d-78fc66f85e16, notify 4acbcd28-7425-868e-f447-915c8f00d0cb
Newer multi-link service6a4e2800-667b-11e3-949a-0800200c9a66 (RX 6a4e2810…2814, same suffix). Not covered here.
Write typeWrite with response
Write sizeFrames are split into ATT-sized pieces: 20 bytes at the default MTU, larger after an MTU exchange. The receiver reassembles them by looking for the 0x00 delimiters.
EncryptionNone on the V0/V1 service (beyond BLE bonding)

Confidence: likely for the V1 UUIDs and write behaviour (two independent sources); uncertain for 6a4e8022… (one source) and for the multi-link service (one source, not used by any dive host).

Newer firmware may require an authentication handshake (message IDs 5101–5112) before file transfer. This is not described here (open question 6).

Session

Over USB there is no session: the host lists and reads files.

Over BLE the watch initiates the GFDI conversation after notifications are enabled. The host plays the “phone” role and MUST acknowledge each device message with a RESPONSE (5000), or the watch stalls. The sequence used by one dive-log host (likely):

StepDirectionMessageContent
1D→H5024 device informationProtocol version, product, unit id, software version, max packet size, three strings
2H→D5000 response to 5024Status 0 plus the host’s own identity (see below)
3D→H5050 configurationCapability bitmap
4H→D5000 response to 5050Status 0
5H→D5050 configurationHost capability bitmap: length 0A, then F9 FF DF FF FF FF FE CC DF 01. One host appends 11 00 bytes.
6H→D5031 supported file types requestEmpty payload
7H→D5030 system eventPayload 00 01 00 (event type 0 = sync complete, followed by 01 00; see open question 5)
8D→H5043 protobuf requestHost acknowledges it (see below)
9H→D5007 filterPayload 03
10H→D5002 download requestFile index 0 (the directory)

Payload of the 5024 response (after the generic response header described under Commands), all integers little-endian:

OffsetTypeExampleMeaning
0u16le0070 = 112Host GFDI protocol version
2u16leFFFFHost product number
4u32le12345Host unit id
8u16le4050Host software version
10u16le4000Host maximum packet size
12string ×3Bluetooth name, manufacturer, model. Each string is a u8 length followed by that many bytes.
…u801Protocol flags

The device’s own 5024 message has the same layout from offset 0 up to and including the three strings. It may be followed by a “has MAC” byte and two 6-byte addresses.

The host must keep answering device-initiated messages for the whole session. Messages seen during a download, all answered with a 5000 response with status 0 (ACK):

    1. One source names it “current time request” and another “notification subscription”. The canned reply is just a status. Message 5052 is the real current-time request in the newer source.
  • 5042 (music control capabilities).
  • 5014 (weather request).
  • 5043 and 5044 (protobuf request and response). The ack is followed by <request id:u16le> <offset:u32le=0> <chunk status:u8=0> <status code:u8=0>.

Confidence: likely. Byte sequences are from one source and checked with the CRC below; the message names are from a second source.

Commands

Every GFDI message, before COBS encoding, has this layout (all integers little-endian):

OffsetTypeMeaning
0u16leTotal message length in bytes, counting this field, the id, the payload and the CRC
2u16leMessage id. If bit 15 is set, the id is in compact form: id = 5000 + low byte, and bits 8–14 are a sequence number.
4…Payload
len−2u16leCRC (see Framing and integrity)

A response (id 5000) payload always starts with <original id:u16le> <status:u8>. Status values: 0 ACK, 1 NAK, 2 unsupported, 3 decode error, 4 CRC error, 5 length error.

Messages used for log download:

IdNameDirPayload (after id)
5000Responsebothorig_id:u16 status:u8, then message-specific data
5002Download requestH→Dfile_index:u16 offset:u32 request_type:u8 crc_seed:u16 size:u32, optionally followed by flags:u8 (bit 0 = compressed transfer; newer firmware)
5000/5002Download responseD→H8A 13 status:u8 download_status:u8 file_size:u32
5004File transfer dataD→Hflags:u8 crc:u16 offset:u32 data[n]
5000/5004Data acknowledgementH→D8C 13 status:u8 transfer_status:u8 next_offset:u32
5007FilterH→Dfilter_type:u8 (3 used)
5024Device informationD→HSee Session
5030System eventH→Devent_type:u8 value…
5031Supported file types requestH→DEmpty
5050Configurationbothcount:u8 bitmap[count]

Download request fields:

  • request_type: 0 = continue, 1 = new. One host sends 1 for the directory and 0 for activity files. Another host sends 1 for both.
  • crc_seed and size: 0 for a whole-file download.

Download status values: 0 OK, 1 index not found, 2 not readable, 3 not ready, 4 invalid request, 5 CRC mismatch, 6 range exceeds file.

Transfer status values: 0 OK, 1 resend, 2 abort, 3 CRC mismatch, 4 offset mismatch, 5 sync paused.

The 5004 crc is a running CRC-16/ARC over the file data: seeded with the previous chunk’s CRC (0 before the first chunk) and run over this chunk’s data. The value after the last chunk is therefore the CRC of the whole file. Hosts SHOULD check it and check that offset equals the number of bytes received so far. A dive-log host was seen that checks neither.

Confidence: likely. The layouts agree between two sources; the optional flags byte and the compact id are from one source only.

Framing and integrity

BLE framing. Each message is COBS-encoded and wrapped in delimiters: 00 <COBS(message)> 00.

The COBS variant is standard (code byte 0xFF marks a 254-byte run with no implied zero). The leading 00 is not part of standard COBS framing but is always present.

A frame can span several notifications, and the receiver reassembles it up to the trailing 00. Data frames carry up to about 500 data bytes, so the encoder will emit 0xFF codes only if a chunk contains 254 consecutive non-zero bytes. A decoder MUST handle 0xFF codes correctly. One host’s in-place decoder does not, and is wrong in that case.

CRC. CRC-16/ARC (../common/checksums.md#crc-16-arc):

ParameterValue
width16
poly0x8005 (reflected form 0xA001)
init0x0000
refin / refouttrue / true
xorout0x0000
check (“123456789”)0xBB3D
Covered bytesMessage bytes from the length field up to the last payload byte (before COBS)

This is the same CRC as the FIT file CRC. Garmin publishes it as a nibble-table algorithm with table 0000 CC01 D801 1400 F001 3C00 2800 E401 A001 6C00 7800 B401 5000 9C01 8801 4400. Hosts SHOULD verify received CRCs. Responding with status 4 (CRC error) is allowed.

Worked example 1: supported-file-types request (5031).

message      06 00 A7 13 3B 75
             len=6, id=0x13A7 (5031), no payload, CRC-16/ARC(06 00 A7 13) = 0x753B
on the air   00 02 06 05 A7 13 3B 75 00

Worked example 2: download request for the directory (file index 0, type new).

message      13 00 8A 13 00 00 00 00 00 00 01 00 00 00 00 00 00 F5 41
             len=19, id=5002, index=0, offset=0, type=1, seed=0, size=0, CRC=0x41F5
on the air   00 02 13 03 8A 13 01 01 01 01 01 02 01 01 01 01 01 01 03 F5 41 00

Worked example 3: acknowledgement of the first 502-byte chunk.

message      0E 00 88 13 8C 13 00 00 F6 01 00 00 FE 59
             response to 5004, ACK, transfer OK, next offset 0x1F6 = 502, CRC 0x59FE
on the air   00 02 0E 05 88 13 8C 13 01 03 F6 01 01 03 FE 59 00

All three were recomputed with an independent CRC-16/ARC and COBS implementation.

Confidence: verified for the CRC algorithm (published in the FIT SDK) and for the example frames (recomputed); likely for the framing rules.

Memory layout

Files on the USB volume

PathContents
Garmin/Activity/*.fitOne FIT activity file per activity (dives and other sports alike)
Primary/Garmin/Activity/*.fitSame, on some MTP devices (one source)

Directory and file names are matched case-insensitively: GARMIN/ACTIVITY/…FIT occurs.

File names are either of these:

  • Long: YYYY-MM-DD-HH-MM-SS.fit (23 characters).
  • 8.3 short: e.g. C4ND0302.FIT. The first four characters are base-36 digits (0–9, then A–Z = 10–35): year − 2010, month, day, hour. They are followed by the minute and second as two decimal digits each. Example: C4ND0302 = 2022-04-23 13:03:02.

The name appears to give the start time of the activity. Whether that time is local or UTC is not confirmed (uncertain). Hosts should take dive times from the FIT content, not from the name.

Directory file over GFDI

File index 0 is the directory. Its content is a sequence of 16-byte entries:

OffsetTypeMeaning
0x00u16leFile index (use in download request)
0x02u8Data type (128 = FIT file)
0x03u8Sub-type (for FIT, the FIT file type: 4 = activity)
0x04u16leFile number
0x06u8Type-specific flags
0x07u8File flags
0x08u32leFile size in bytes
0x0Cu32leFile date, seconds since the FIT epoch (1989-12-31 00:00 UTC)

The directory length is a multiple of 16. Dive logs are entries with data type 128 and sub-type 4. Index 0xFFFD is a special device XML file.

Confidence: likely (two sources agree on the layout).

Download procedure

USB (mass storage or MTP)

list all files in Garmin/Activity whose name ends in ".fit" (any case)
sort by start time, newest first
    (for short names, decode the base-36 timestamp before comparing)
for each file:
    if file name == stored fingerprint: stop
    read whole file
    if not a dive (see "Dive detection"): skip
    deliver file; first delivered file's name becomes the new fingerprint

Fingerprint: one implementation uses the file name as the fingerprint, in a 24-byte zero-padded field (YYYY-MM-DD-HH-MM-SS.fit + NUL). Another stores the start time of the dive (from the first record timestamp or lap.start_time) and drops files whose start is not later. Both work. The name-based variant needs no FIT parsing to skip old files. likely

BLE

handshake (see Session)
download file index 0 (the directory), collecting 5004 chunks
for each 16-byte entry with data type 128 and sub-type 4, index > 0:
    optionally skip by date (entry offset 0x0C) against the fingerprint
    send 5002 download request for that index
    expect 5000 response: status 0, download status 0, file_size
    repeat until file_size bytes received:
        receive 5004 (skip and ack unrelated device messages in between)
        check offset and running CRC
        send 5000 ack with next_offset = bytes received so far
    parse file as FIT; keep if it is a dive

One host ignores the last directory entry because of an off-by-one bound. Hosts MUST process all entries. likely

Dive detection

A FIT activity is a dive if its sport message (12), or its session message (18), has:

  • sport = 53 (diving), or
  • sub_sport in {53 single-gas, 54 multi-gas, 55 gauge, 56 apnea, 57 apnea hunting, 63 CCR}.

These values are in the public FIT profile.

A fallback used by one host: treat the file as a dive if a dive_summary message has a valid avg_depth. verified (values from the FIT profile)

Dive data format

FIT file structure

All facts in this subsection are from the public FIT protocol and SDK (verified), except where marked.

File header:

OffsetTypeMeaning
0x00u8Header size: 12 or 14
0x01u8Protocol version
0x02u16leProfile version: up to 2199 it is major × 100 + minor; above that, major × 1000 + minor (e.g. 21222 = 21.222)
0x04u32leData size: bytes of records after the header, excluding the file CRC
0x084 bytesASCII .FIT
0x0Cu16leHeader CRC over bytes 0–11 (14-byte header only; 0 = not computed)

The file ends with a u16le CRC over everything before it (header and records). It uses the same CRC-16/ARC as GFDI. Running that CRC over the whole file including the trailing CRC gives 0.

Each record starts with a header byte:

BitsNormal header (bit 7 = 0)Compressed-timestamp header (bit 7 = 1)
701
61 = definition message, 0 = data messageBits 6–5: local message type (0–3)
5Definition only: 1 = developer fields follow(part of local type)
4ReservedBits 4–0: time offset in seconds
3–0Local message type (0–15)(part of offset)

Garmin’s reference decoders reject compressed-timestamp headers. Rollover rule for an offset o against the last full timestamp t (likely, from an open-source decoder): new time = (t & ~0x1F) | o, plus 0x20 if that is less than t.

Definition message, after the header byte:

OffsetTypeMeaning
0u8Reserved
1u8Architecture: 0 = little-endian, 1 = big-endian. Applies to this message’s multi-byte fields.
2u16Global message number (in the stated byte order)
4u8Number of fields N
5N × 3Per field: field number, size in bytes, base type
…u8 + M × 3Only if header bit 5 is set: M developer fields (field number, size, developer data index)

Data messages contain the field values in definition order, then the developer field bytes. A field’s size may be a multiple of the base-type size (an array). Unknown messages and fields MUST be skipped using the sizes from the definition.

Base types (low 5 bits of the base-type byte; bit 7 marks multi-byte types):

IdTypeSizeInvalid value
0x00enum10xFF
0x01sint810x7F
0x02uint810xFF
0x03sint1620x7FFF
0x04uint1620xFFFF
0x05sint3240x7FFFFFFF
0x06uint3240xFFFFFFFF
0x07string10x00 (NUL-terminated, UTF-8)
0x08float3240xFFFFFFFF
0x09float648all ones
0x0Auint8z10x00
0x0Buint16z20x0000
0x0Cuint32z40x00000000
0x0Dbyte10xFF
0x0Esint6480x7FFF…FF
0x0Fuint648all ones
0x10uint64z80

A field holding its invalid value is absent. Field numbers 253 (timestamp, uint32), 254 (message_index, uint16) and 250 (part_index) have the same meaning in every message.

Worked example: a minimal FIT file with one record (timestamp 2024-06-01 10:00:00 UTC, depth 12.345 m, 18 °C):

0E 20 54 08 19 00 00 00 2E 46 49 54 78 B7    header: size 14, proto 0x20, profile 2132,
                                             data 25 bytes, ".FIT", header CRC 0xB778
40 00 00 14 00 03 FD 04 86 5C 04 86 0D 01 01 definition, local 0, LE, mesg 20, 3 fields:
                                             253/4/uint32, 92/4/uint32, 13/1/sint8
00 20 A5 BD 40 39 30 00 00 12                data, local 0: ts 0x40BDA520, depth 12345, temp 18
AB 93                                        file CRC 0x93AB

Header (summary values)

Message and field numbers, types and scales are from the public FIT profile (verified). “Use” notes how dive-log hosts map them.

file_id (0):

FieldTypeScale / unitUse
0 typeenum4 = activityFile kind
1 manufactureruint161 = Garmin, 23 = Suunto
2 productuint16garmin_productModel code
3 serial_numberuint32zSerial
4 time_createduint32FIT time

device_info (23):

  • device_index 0 is the watch itself.
  • Fields: 3 serial_number (uint32z), 4 product (uint16), 5 software_version (uint16, scale 100, e.g. 1234 = 12.34).

sport (12): 0 sport (53 = diving), 1 sub_sport (see Dive detection).

session (18): 2 start_time (FIT time; one host uses this as dive start), 3/4 start position lat/long, 38/39 end position lat/long (sint32 semicircles), 5 sport, 6 sub_sport, 7 total_elapsed_time (uint32, 1/1000 s). Dive-specific: 143 start_cns, 144 end_cns (uint8 %), 145 start_n2, 146 end_n2 (uint16 %), 150 min_temperature (sint8 °C), 155 o2_toxicity (uint16 OTU), 156 dive_number (uint32).

lap (19): 2 start_time, 3/4 start and 5/6 end position. One host uses lap start_time as the dive start.

dive_settings (258):

FieldTypeScale / unitMeaning
1 modelenum0 = Bühlmann ZHL-16CDeco model
2 gf_low, 3 gf_highuint8%Gradient factors
4 water_typeenum0 fresh, 1 salt, 2 EN 13319, 3 customSalinity
5 water_densityfloat32kg/m³For custom water (fresh is usually 1000, salt 1025)
6 po2_warn, 7 po2_critical, 8 po2_decouint81/100 barppO₂ limits
9 safety_stop_enabledenum (bool)
12 apnea_countdown_enabled, 13 apnea_countdown_timebool, uint32 s
17 repeat_dive_intervaluint16sSurface time before the activity ends
18 safety_stop_timeuint16s
19 heart_rate_source_typeenum5 = wrist, 1 = ANT+
21 travel_gasuint16message_index of a dive_gas
22 / 25 ccr_low / high_setpoint_switch_modeenum0 manual, 1 automatic
23 / 26 ccr_low / high_setpointuint81/100 barCCR setpoints
24 / 27 ccr_low / high_setpoint_depthuint321/1000 mAuto-switch depths
36 last_stop_multipleuint81/10 (1.0 = 3 m)

dive_gas (259), one message per gas, indexed by field 254 message_index:

FieldTypeUnitMeaning
0 helium_contentuint8%He fraction × 100
1 oxygen_contentuint8%O₂ fraction × 100
2 statusenum0 disabled, 1 enabled, 2 backup only
3 modeenum0 open circuit, 1 CCR diluent

Hosts differ: one keeps only status 1, another keeps status 1 and 2. Keeping both is RECOMMENDED. Use the message_index as the gas number, because event 57 refers to it.

dive_alarm (262) and dive_apnea_alarm (393) (configuration, not occurrences):

  • 0 depth (uint32, 1/1000 m)
  • 1 time (sint32 s)
  • 2 enabled
  • 3 alarm_type (0 depth, 1 time, 2 speed)
  • 4 sound
  • 5 dive_types (array of sub_sport)
  • 6 id, 7 popup_enabled, 8 trigger_on_descent, 9 trigger_on_ascent, 10 repeating

dive_summary (268): one message per dive. There may be a further one summarising the whole activity: field 0 reference_mesg says whether it refers to a lap or a session, and field 1 reference_index says which one.

FieldTypeScale / unitMeaning
2 avg_depthuint321/1000 m
3 max_depthuint321/1000 m
4 surface_intervaluint32sSince previous dive
5 start_cns, 6 end_cnsuint8%
7 start_n2, 8 end_n2uint16%Tissue load
9 o2_toxicityuint16OTU
10 dive_numberuint32
11 bottom_timeuint321/1000 sDive time
12 avg_pressure_sacuint161/100 bar/min
13 avg_volume_sacuint161/100 L/min
14 avg_rmvuint161/100 L/min
15 descent_time, 16 ascent_time, 25 hang_timeuint321/1000 s
17 avg_ascent_ratesint321/1000 m/s
22 avg_descent_rate, 23 max_ascent_rate, 24 max_descent_rateuint321/1000 m/s

tank_summary (323): 0 sensor (uint32z ANT channel id of the tank pod), 1 start_pressure, 2 end_pressure (uint16, 1/100 bar), 3 volume_used (uint32, 1/100 L).

Tank pod configuration: message 147, sensor settings (likely, not in the public profile):

  • 0 sensor id (uint32z)
  • 2 name (string)
  • 3 enabled
  • 52 sensor type (28 = tank pod)
  • 74 pressure units (0 psi, 1 kPa, 2 bar)
  • 75 rated pressure, 76 reserve pressure (uint16)
  • 77 volume (uint16, 1/10 L or 1/10 ft³)
  • 78 used for gas-consumption calculation

The order of the tank pods gives the tank index.

Samples

Samples are record (20) messages, normally once per second. Each sample’s time is its timestamp (field 253, or a compressed-timestamp header). The time offset into the dive is the timestamp minus the dive start. A field that is absent or holds its invalid value in a record keeps its previous value.

FieldTypeScale / unitMeaning
0 / 1 position_lat / longsint32semicircles: deg = v × 180 / 2³¹Surface GPS fix
3 heart_rateuint8bpm
13 temperaturesint8°CWater temperature, 1 °C resolution
91 absolute_pressureuint32PaIncludes atmosphere
92 depthuint321/1000 m0 above water
93 next_stop_depthuint321/1000 mDeco ceiling / next stop
94 next_stop_timeuint32s
95 time_to_surfaceuint32sTTS
96 ndl_timeuint32sNo-deco limit
97 cns_loaduint8%CNS
98 n2_loaduint16%Leading tissue N₂ load
123 air_time_remaininguint32s
124 pressure_sacuint161/100 bar/min
125 volume_sacuint161/100 L/min
126 rmvuint161/100 L/min
127 ascent_ratesint321/1000 m/s
129 po2uint81/100 barCurrent ppO₂

Field 129 is recent in the profile, and neither open-source reference reads it.

tank_update (319): tank pressure samples.

  • Fields: 253 timestamp, 0 sensor (uint32z, matches the tank pod id), 1 pressure (uint16, 1/100 bar).
  • Use the timestamp to place the value in the profile.
  • The sensor id selects the tank. One host ignores it and assigns the pressure to the current gas.

event (21) carries dive events and gas switches:

event (field 0)Meaningdata (field 3, uint32)
56 dive alertAlert (marker)Alert code, see below
57 dive gas switchedGas switchdive_gas message_index of the new gas
71 tank pressure reserveTank reached reserveSensor id
72 tank pressure criticalSensor id
73 tank lostTank pod signal lostSensor id
76 tank battery lowSensor id
0 timerStart/stop of the activity (field 1 event_type: 0 start, 1 stop, 4 stop all)

One open-source reference also reads tank sensor ids from event fields 71–73. Those fields are not in the public profile (uncertain). Field 15 is start_timestamp.

Dive alert codes (value of data with event 56):

CodeMeaningCodeMeaning
0NDL reached / deco required20Battery low
1Gas switch prompted21Battery critical
2Near surface22Safety stop started
3Approaching NDL23Approaching first deco stop
4ppO₂ warning24Setpoint auto-switch to low
5ppO₂ critical high25Setpoint auto-switch to high
6ppO₂ critical low26Setpoint manual switch to low
7Time alert27Setpoint manual switch to high
8Depth alert28Auto setpoint switch ignored
9Deco ceiling broken29Switched to open circuit (bailout)
10Deco complete30Switched to closed circuit
11Safety stop ceiling broken32Tank battery low
12Safety stop complete33ppO₂ low on CCR diluent
13CNS warning34Deco stop cleared
14CNS critical35Apnea neutral buoyancy
15OTU warning36Apnea target depth
16OTU critical37Apnea surface
17Ascent speed critical38Apnea high speed
18Alert dismissed by key39Apnea low speed
19Alert dismissed by timeout

Codes 24–27 change the active CCR setpoint: low/high values come from dive_settings 23/26. The dive starts on the low setpoint. (verified for the codes; likely for the setpoint interpretation.)

Several dives in one file: apnea sessions record many dives in one activity. Each dive is closed by a dive_summary. Records that follow a dive_summary belong to the next dive. One host splits the file there. Another reports the file as one dive. likely

Date and time

  • FIT date_time (uint32) = seconds since 1989-12-31 00:00:00 UTC. Unix time = value + 631065600. Values below 0x10000000 are not absolute: they are seconds since the device was powered on. verified
  • Dive start: session.start_time. Alternatives in use: lap.start_time, or the first record timestamp. All are UTC.
  • Local time. Sources, in order of preference:
    • activity (34) field 5 local_timestamp (type local_date_time): offset = local − the message’s own timestamp.
    • timestamp_correlation (162) field 3 local_timestamp: same rule.
    • device_settings (2): field 1 utc_offset and field 2 time_offset (uint32, used as signed seconds). Field 2 may be 0 even when local time differs.
  • One host accepts the resulting zone offset only if it is a multiple of 900 s between −12 h and +14 h. likely

Model-specific variations

  • Descent Mk1: USB mass storage plus BLE GFDI. Every later model: MTP.
  • Air-integrated models write tank pods (sensor settings, tank_update, tank_summary) and the SAC/RMV fields.
  • CCR-capable firmware writes sub_sport 63, setpoint fields 22–27 and alerts 24–30. Which models support CCR is not established here.
  • The fields present vary with firmware. Hosts MUST rely on FIT definitions, never on fixed offsets.

Open questions

  1. Mass-storage PID rule (0x2000 | model code?) and the meaning of PID 0003.
  2. Whether the Primary/ folder prefix is real on any device, or an artefact of one host.
  3. Product codes 4536 and 4775: one source names 4536 the Asia/Pacific fēnix 8 47/51 mm and 4775 the regular model. The FIT profile names 4536 “fenix8” and 4775 “tactix8 AMOLED”. The same disagreement exists for 4776.
  4. GFDI message 5036: current-time request (one source) or notification subscription (other source). Its correct reply payload is unknown. A bare ACK appears to suffice.
  5. Meaning of the 5030 system-event payload 00 01 00, the 5007 filter value 3, and the host capability bitmap.
  6. Which firmware requires GFDI authentication (5101+) or the multi-link service 6a4e2800…. Whether a Descent Mk2 or later accepts the V1 flow described here.
  7. Whether compressed (flag bit 0) download transfers are offered by dive watches, and their format.
  8. Exact rule for splitting multi-dive (apnea) activities.

References

  • Garmin FIT SDK and FIT protocol documentation, https://developer.garmin.com/fit/ (protocol, file types and the Profile.xlsx message/type definitions; the same profile is in Garmin’s public SDK repositories, e.g. https://github.com/garmin/fit-javascript-sdk, profile version 21.222).
  • libdivecomputer, Subsurface fork (LGPL-2.1), https://github.com/subsurface/libdc. Used as a factual reference only; no code copied.
  • Gadgetbridge (AGPL-3.0), https://codeberg.org/Freeyourgadget/Gadgetbridge. Its Garmin GFDI support was used as a factual reference only; no code copied.
  • RevEng CRC catalogue, CRC-16/ARC, https://reveng.sourceforge.io/crc-catalogue/16.htm