
G.FIT User Guide and Specification, Rev 2.0_Alpha.14
Page 95 of 117
thisisant.
com
7.5.2
Session command event (0xB4)
Event: An event that is sent to the MCU when G.FIT receives commands over BLE FTMS to reset,
start/resume, stop and pause the current session. The application can use the session command events as a
cue to change the G.FIT state (e.g., on receiving a start command, the application can instruct G.FIT to
switch to IN USE state), or manage session data (e.g., reset timers and clear targets when a reset command
is received).
Requires Response: Yes, see section 4.4.2.
Depends on Controllable Feature: Reset and/or Start/Stop/Pause
Corresponding G.FIT library functions: This serial message relates to gfit_event_reset,
gfit_event_start_or_resume, gfit_event_stop and gfit_event_pause in the G.FIT library.
Table 7-63. Session command event message
Byte #
Name
Length
Description
0
Sync
1 byte
Fixed value of 10100100 or 10100101
(Refer to the
Interfacing with ANT General Purpose Chipsets and
Modules document for details.)
1
Length
1 byte
0x02
2
Message ID
1 byte
0xE0 (event)
3
Sub-Message ID
1 byte
0xB4 (Session Command Event)
4
Command Type
1 byte
Indicates the type of session command
0x01
–
Reset
0x02
–
Start/Resume
0x03
–
Stop
0x04 - Pause
All other values are reserved for future use.
5
Checksum
1 byte
XOR of all previous bytes including the sync byte.