Set Heart Rate Mode V3

Function: setSmartHeartRate【setSetV3HeartInterval,v3HeartSetRateModeCustom】

Flutter Example:

// Set heart rate mode event number
setHeartMode(
  evtBase: _VBusEvtBase.base_app_set,
  evtType: _VBusEvtType.func_v3_set_hr_mode),

/// Set heart rate mode
libManager.send(evt: CmdEvtType.setHeartMode, json: jsonEncode(json));

JSON Fields Sent by the App:

Field Name Field Type Field Description
update_time int Update time as a Unix timestamp in seconds. If equal to 0, it means to get the current UTC timestamp.
mode int Mode
0: Off
1: Auto (5 minutes)
2: Continuous monitoring (5 seconds)
3: Manual mode (disables auto)
4: Default type, firmware automatically sets to default mode after setting
5: Set the corresponding measurement interval
6: Intelligent Heart Rate Mode (ID206)
Note:
1. If the function setSetV3HeartInterval is configured, Mode 0, Mode 1, and Mode 2 will be ineffective.
2. When configuring with fast settings, setting setSetV3HeartInterval will activate Mode 5
3. When setting continuous heart rate, if the function setSetV3HeartInterval is configured, the corresponding mode is Mode 5.
has_time_range int Whether there is a time range. 0: No, 1: Yes
start_hour int Start time (hour)
start_minute int Start time (minute)
end_hour int End time (hour)
end_minute int End time (minute)
measurement_interval int Measurement interval in seconds
notify_flag int Notification type:
0: Invalid
1: Allow notifications
2: Silent notifications
3: Close notifications
Note: This is ineffective if the firmware does not enable v3HeartSetRateModeCustom
high_heart_mode int 1: Enable smart high heart rate reminder
0: Off
Note: This is ineffective if the firmware does not enable v3HeartSetRateModeCustom
low_heart_mode int 1: Enable smart low heart rate reminder
0: Off
Note: This is ineffective if the firmware does not enable v3HeartSetRateModeCustom
high_heart_value int Smart high heart rate reminder threshold
Note: This is ineffective if the firmware does not enable v3HeartSetRateModeCustom
low_heart_value int Smart low heart rate reminder threshold
Note: This is ineffective if the firmware does not enable v3HeartSetRateModeCustom

Example of querying the heart rate mode by APP:

{
  "update_time": 0,
  "mode": 0,
  "has_time_range": 0,
  "start_hour": 0,
  "start_minute": 0,
  "end_hour": 0,
  "end_minute": 0,
  "measurement_interval": 0,
  "notify_flag": 0,
  "high_heart_mode": 0,
  "low_heart_mode": 0,
  "high_heart_value": 0,
  "low_heart_value": 0
}

JSON Fields Received by the App:

Field Name Field Type Field Description
update_time int Update time as a Unix timestamp in seconds. If equal to 0, it means to get the current UTC timestamp.
mode int Mode
0: Off
1: Auto (5 minutes)
2: Continuous monitoring (5 seconds)
3: Manual mode (disables auto)
4: Default type, firmware automatically sets to default mode after setting
5: Set the corresponding measurement interval
6: Intelligent Heart Rate Mode (ID206)
-1:invalid
Note:
1. If the function setSetV3HeartInterval is configured, Mode 0, Mode 1, and Mode 2 will be ineffective.
2. When configuring with fast settings, setting setSetV3HeartInterval will activate Mode 5
3. When setting continuous heart rate, if the function setSetV3HeartInterval is configured, the corresponding mode is Mode 5.
has_time_range int Whether there is a time range. 0: No, 1: Yes
start_hour int Start time (hour)
start_minute int Start time (minute)
end_hour int End time (hour)
end_minute int End time (minute)
measurementInterval int Measurement interval in seconds
get_sec_mode int Currently supported heart rate types by the watch
all 0 invalid values
Bit0: 5s mode
Note: This is returned as 0 if setSetV3HeartInterval is not enabled in the firmware
get_min_mode int Currently supported heart rate types by the watch,
all 0:invalid values
Bit0: 1 minute
bit1: 3 minutes
bit2: 5 minutes
bit3: 10 minutes
bit4: 30 minutes
bit5: 285 mode,
bit6: 15 minute mode
Note: This is returned as 0 if setSetV3HeartInterval is not enabled in the firmware
notify_flag int Notification type:
0: Invalid
1: Allow notifications
2: Silent notifications
3: Close notifications
Note: This is returned as 0 if v3HeartSetRateModeCustom is not enabled in the firmware
high_heart_mode int 1: Enable smart high heart rate reminder
0: Off
-1:invalid
Note: This is returned as 0 if v3HeartSetRateModeCustom is not enabled in the firmware
low_heart_mode int 1: Enable smart low heart rate reminder
0: Off
-1:invalid
Note: This is returned as 0 if v3HeartSetRateModeCustom is not enabled in the firmware
high_heart_value int Smart high heart rate reminder threshold
Note: This is returned as 0 if v3HeartSetRateModeCustom is not enabled in the firmware
low_heart_value Int Smart low heart rate reminder threshold
Note: This is returned as 0 if v3HeartSetRateModeCustom is not enabled in the firmware

Example:

{
  "update_time": 0,
  "mode": 5,
  "has_time_range": 1,
  "start_hour": 9,
  "start_minute": 0,
  "end_hour": 12,
  "end_minute": 19,
  "measurement_interval": 5,
  "notify_flag": 2,
  "high_heart_mode": 0,
  "low_heart_mode": 0,
  "high_heart_value": 0,
  "low_heart_value": 0
}
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by GitbookModify Date: 2025-04-30 09:32:44

results matching ""

    No results matching ""