
G.FIT User Guide and Specification, Rev 2.0_Alpha.14
Page 75 of 117
thisisant.
com
7.3.17
gfit_fep_abort_pending_commands (0xE7)
Control Command: This command can be used to abort any pending non -acknowledged events requiring a
response.
When a pending command is aborted using gfit_fep_abort_pending_commands:
ANT+: The command status on requestable data page 71 is set to
‘
Rejected
’
BLE: Response sent over Fitness Machine Control Point with Response Value =
‘
Op Code Not Supported
’
Valid State: READY, IN USE, FINISHED
Table 7-45. gfit_fep_abort_pending_commands command 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
Set to 0x01
2
Message ID
1 byte
Set to 0xE2 (command)
3
Sub-Message ID
1 byte
Set to 0xE7 (gfit_fep_abort_pending_commands)
4
Checksum
1 byte
XOR of all previous bytes including the sync byte.
Table 7-46. gfit_fep_abort_pending_commands response 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
0x05
2
Response ID
2 bytes
0xE0 (response)
3
0xFE (G.FIT response)
4
Command ID
2 bytes
0xE2 (command)
5
0xE7 (gfit_fep_abort_pending_commands)
6
Response Code
1 byte
0x00 - GFIT_SUCCESS
0x01 - GFIT_ERROR_INCORRECT_STATE
0x12 - GFIT_ERROR_INVALID_LENGTH
0x14 - GFIT_ERROR_NO_COMMAND_IN_PROGRESS
See Table 7-1 for descriptions.
7
Payload
1 byte
Current State:
0x00
–
State is INVALID
0x01
–
State is OFF
0x02
–
State is READY
0x03
–
State is IN USE
0x04
–
State is PAUSED/FINISHED
8
Checksum
1 byte
XOR of all previous bytes including the sync byte.