Activity Profile data-screen field IDs -- mesg 14 is undocumented

The FIT SDK documents data_screen as mesg_num 14 but not its fields,
and the data-field IDs inside it are not in the SDK at all. I have
been reverse-engineering the Edge Activity Profile files for a few
months and have 213 of those IDs mapped to the names the device itself
shows. I will post the table as a reply below due to what seems to be an
initial posting size limit.

Everything here is measured on both an Edge 530 and an Edge 840 on
current 
firmware.

WHERE THE IDS LIVE

In a profile file under Garmin/Sports/, each data screen is one
data_screen record, mesg_num 14. The fields I have identified:

f1     - configured flag
f3     - FIELD COUNT -- how many of the ten slots below are live
f7     - the data fields: ALWAYS 20 bytes = 10 x uint16 field IDs
f8     - layout variant
f9     - display order
f10   - screen type / identity
f12   - 0 = shown, 1 = hidden
f254 - message_index

F7 IS ALWAYS TEN SLOTS AND THE TAIL IS STALE

f7 is a fixed 20 bytes whether the screen shows one field or ten. The
device reads only the first f3 entries. Everything past the count is
whatever was in those bytes before -- the device never clears it.

This catches people parsing these files. Someone working on a viewer
asked me about a mysterious field ID 111 he kept seeing. It came from
rows where his own output said 2 fields while printing ten values,
with 111 sitting in slot ten of the leftovers. The same file also had
11176 in a tail, which is not a field ID at all, and another screen
had Timer repeated seven times -- the footprint of a screen that used
to have more fields.

So honor f3, or you will invent field IDs that do not exist.

TWO DIFFERENT FALLBACKS FOR A FIELD THE DEVICE CANNOT RENDER

These are not the same rule, which I had assumed they were.

A Connect IQ field, ID 216, with the app missing, displays Timer.
Any field ID the model does not support displays Speed.

I confirmed the second by deploying an 840 profile to a 530. Four
fields the 530 has no support for -- 331, 358, 371 and 395 -- all
rendered as Speed. The stored IDs were untouched: pulled back off the
530, the array still read 331, 358, 371, 395. So the substitution is
at display time only, and a cross-model transfer does not destroy the
field assignments.

AVAILABILITY IS PER-MODEL, AND SO ARE THE NAMES

Those same four IDs appear in none of my 34 Edge 530 profiles and in
my 840 ones. The 840 shows "in data field" labels for three of them --
Elevation 
Asc/Desc, [SOG] - Speed Over Ground, Battery Hours -- and
nothing at all for 
331. Its field editor leaves that label blank. The Garmin
Connect 
phone app shows the field number for all four with a blank
description.

So Garmin string tables have gaps that differ by surface, not just by
device generation. If a field has no name on your device, that may be
the firmware rather than your parsing.

  • Here's part 2 with the table of identified Data Field ID#'s with their descriptions:

    id

    name

    id

    name

    id

    name

    0

    Calories

    96

    Battery Level

    346

    Power Graph

    2

    Course Pt Dist.

    97

    GPS Signal Strength

    347

    HR Bars

    3

    Cadence

    98

    Watts/kg

    348

    Speed Bars

    4

    Avg Cadence

    99

    Aerobic Training Effect

    349

    Cadence Bars

    5

    Lap Cadence

    100

    Last Lap Power

    350

    Power Bars

    6

    Distance

    146

    10s Power

    351

    Heart Rate (Avg/Max)

    7

    Lap Dist.

    147

    Lap NP

    352

    Speed (Avg/Max)

    9

    Elevation (ft)

    148

    Last Lap NP

    353

    Cadence (Avg/Max)

    11

    Percent Grade

    149

    Balance

    354

    Power (Avg/Max)

    12

    Heading

    150

    Avg Balance

    358

    Elevation (Asc/Desc)

    13

    Heart Rate

    151

    Lap Balance

    368

    Elevation Graph

    14

    Avg Heart Rate

    159

    3s Balance

    371

    Speed Over Ground

    15

    Lap HR

    160

    10s Balance

    395

    Battery Hours

    16

    %Max Heart Rate

    161

    30s Balance

    408

    Di2 Battery

    17

    Avg %Max Heart Rate

    165

    Last Lap HR

    409

    Gear Combo

    18

    Lap %Max HR

    176

    Pedal Smoothness

    411

    Di2 Shift Mode

    19

    %Heart Rate Reserve

    177

    Torque Effect

    418

    Power Z8

    20

    Avg %HRR

    178

    Gears

    419

    Power Z9

    21

    Lap %HRR

    179

    Front Gear

    433

    Anaerobic TE

    22

    Heart Rate Zone

    180

    Rear Gear

    437

    Avg W/kg

    23

    HR Zone Graph

    181

    Gear Battery

    438

    Lap Watts/kg

    24

    Laps

    182

    Gear Ratio

    439

    3s W/kg

    27

    Distance to Destination

    199

    HR Zone 1 (time)

    440

    10s W/kg

    28

    Time to Destination

    200

    HR Zone 2 (time)

    441

    30s W/kg

    29

    Distance to Next

    201

    HR Zone 3 (time)

    442

    Lap VAM

    30

    Time to Next

    202

    HR Zone 4 (time)

    443

    Avg VAM

    31

    Dest. Location

    203

    HR Zone 5 (time)

    444

    Ascent Remaining

    32

    Next Pt Location

    207

    Power Z1

    445

    Asc to Next Crs Pt

    36

    Power

    208

    Power Z2

    452

    Respiration

    37

    Avg Power

    209

    Power Z3

    478

    EPOC

    38

    Kilojoules

    210

    Power Z4

    486

    Grit

    39

    Lap Power

    211

    Power Z5

    487

    Lap Grit

    40

    Max Power

    212

    Power Z6

    488

    Flow

    41

    Max Lap Power

    213

    Power Z7

    489

    Lap Flow

    42

    %FTP

    214

    24-Hour Maximum Temperature

    491

    Assist Mode

    43

    Power Zone

    215

    24-Hour Minimum Temperature

    492

    Shifting Advice

    45

    Workout Step

    216

    CIQ Data Field

    493

    eBike Battery

    48

    Speed

    220

    Avg. Vertical Descent Speed

    494

    Travel Range

    49

    Avg Speed

    223

    Lap Ascent

    495

    60s Grit

    50

    Lap Speed

    224

    Lap Descent

    497

    60s Flow

    53

    Sunrise

    240

    Location

    511

    Workout Comparison

    54

    Sunset

    257

    Time Standing

    520

    Primary Target

    55

    Elapsed Time

    258

    Lap Time Standing

    521

    Target

    56

    Timer

    259

    Time Seated

    522

    Duration

    57

    Avg Lap Time

    260

    Lap Time Seated

    523

    Step Time

    58

    Lap Time

    263

    Platform Center Offset

    529

    Compass

    59

    Time of Day (TOD)

    264

    Avg PCO

    578

    Secondary Target

    60

    Total Ascent

    265

    Lap PCO

    579

    Smart Travel Range

    61

    Total Descent

    266

    Power Phase Right

    580

    Potential

    62

    Dest. Ahead

    267

    Avg Right PP

    581

    Stamina

    63

    Time Ahead

    268

    Lap Right PP

    582

    Estimated Distance

    64

    Calories to Go

    269

    Right PPP

    583

    Estimated Time

    65

    Distance to Go

    270

    Avg R. Peak Pwr Phase

    595

    Dist. to Point

    66

    Heart Rate to Go

    271

    Lap Right PPP

    596

    Time to Point

    67

    Reps to Go

    272

    Power Phase Left

    654

    Segment Time

    68

    Time to Go

    273

    Avg Left PP

    725

    Map

    77

    VAM

    274

    Lap Left PP

    786

    Vertical Descent Speed

    78

    Temperature

    275

    Left PPP

    787

    30s Vertical Descent Speed

    79

    3s Power

    276

    Avg L. Peak Pwr Phase

    788

    Lap Vertical Descent Speed

    80

    30s Power

    277

    Lap Left PPP

    847

    Avg Force

    81

    Normalized Power

    294

    Resistance

    848

    Lap Force

    82

    TSS

    295

    Target Power

    849

    Max. Force

    83

    Intensity Factor (IF)

    302

    Step Distance

    850

    Max. Lap Force

    84

    Last Lap Dist

    316

    Lights Connected

    851

    3s Force

    86

    Last Lap Speed

    317

    Light Battery

    852

    10s Force

    87

    Last Lap Time

    318

    Beam Angle Status

    853

    30s Force

    88

    30s VAM

    319

    Light Mode

    854

    Last Lap Force

    91

    Max Speed

    320

    Perf. Conditioning

    856

    Normalized Force

    93

    ETA at Destination

    343

    Heart Rate Graph

    857

    Lap Norm. Force

    94

    ETA to Next

    344

    Speed Graph

    858

    Last Lap Norm. Force

    95

    Odometer

    345

    Cadence Graph

    860

    Force

  • Here's part 3, with some additional details:

     HOW THESE WERE OBTAINED, SO YOU CAN JUDGE THE TABLE

    Fill a screen with candidate IDs via a profile file, import it, and
    read the labels off the device own field editor. Ten at a time,
    consecutive IDs, which is why a screen full of 330, 331, 332 shows up
    in my test profiles.

    CAVEATS

    Two devices, one firmware generation each. Field availability is
    per-model, so an ID present here may not exist on older models
    and newer models may have IDs I have never seen.

    Names are the device own display strings, transcribed by hand.

    Gaps in the ID range are mostly IDs I have simply never encountered.
    Do not read a gap as unused by Garmin.

    IDs 0 to 860 is the observed range. I make no claim beyond that.

    The measurements came out of a small Python toolkit I built for editing
    these profiles: github.com/.../Activity-Profile-Editor
    Happy to point at it if useful, though the table above does not depend
    on it.