
Page 48 of 117
G.FIT User Guide and Specification, Rev 2.0_Alpha.14
thisisant.
com
7.3.4
gfit_hrp_set_inuse_scan_timeout (0xD3)
Configuration Command: Sets the scanning timeout for the scan channels once the module transitions to the
IN USE state. After the timeout, the scan channels will close. Setting a timeout allows G.FIT to continue
searching for a monitor while in state IN USE for the specified time. The pairing behavior during the search
depends on the configured HR pairing mode. Avoid running additional scans on other channels or doing flash
writes during this time.
Valid State: OFF
Default: 30 second in use scan timeout.
Table 7-8. gfit_hrp_set_inuse_scan_timeout 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 0x02
2
Message ID
1 byte
Set to 0xE2 (command)
3
Sub-Message ID
1 byte
Set to 0xD3 (gfit_hrp_set_inuse_scan_timeout)
4
Payload
1 byte
Timeout Value:
Set to 0 for no timeout (Scan channels stop when transitioning to IN
USE state).
Set to a value from 1-254 to set a timeout in units of 2.5 seconds
Set to 255 for infinite timeout.
5
Checksum
1 byte
XOR of all previous bytes including the sync byte.
Table 7-9. gfit_hrp_set_inuse_scan_timeout 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
0xD3 (gfit_hrp_set_inuse_scan_timeout)
6
Response Code
1 byte
0x00 - GFIT_SUCCESS
0x01 - GFIT_ERROR_INCORRECT_STATE
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.