
Page 52 of 117
G.FIT User Guide and Specification, Rev 2.0_Alpha.14
thisisant.
com
7.3.7
gfit_hrp_disconnect_device (0xD7)
Control Command: Commands the module to disconnect from an already paired/connected heart rate monitor.
Valid State: READY, IN USE, FINISHED
Table 7-15. gfit_hrp_disconnect_device 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 0xD7 (gfit_hrp_disconnect_device)
4
Checksum
1 byte
XOR of all previous bytes including the sync byte.
Table 7-16. gfit_hrp_disconnect_device 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
0xD7 (gfit_hrp_disconnect_device)
6
Response Code
1 byte
0x00 - GFIT_SUCCESS
0x01 - GFIT_ERROR_INCORRECT_STATE
0x08 - GFIT_ERROR_NO_SENSOR
0x12 - GFIT_ERROR_INVALID_LENGTH
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.