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.