From: penglei <1624952103@qq.com> Date: Thu, 26 Dec 2024 12:34:17 +0000 (+0800) Subject: 去掉测心率退出低功耗,增加功耗脚本解析 X-Git-Tag: v1.3.113-repair_tp~18^2~19^2~1^2~1 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=3284df726c984b663e7531b71949988c03f22f6f;p=mirrors%2FFD230.git 去掉测心率退出低功耗,增加功耗脚本解析 --- diff --git a/code/sdk/drivers/peripheral/ppg/service/ppg_service.cpp b/code/sdk/drivers/peripheral/ppg/service/ppg_service.cpp index 10bf17416..508e25926 100644 --- a/code/sdk/drivers/peripheral/ppg/service/ppg_service.cpp +++ b/code/sdk/drivers/peripheral/ppg/service/ppg_service.cpp @@ -287,11 +287,11 @@ static void ppg_service_check_task(void *arg) uapi_save_runtime_log(RUNTIME_LOG_HEART_DRIVER_MEASURE); cmd = "hrs"; enable = 1; - uint8_t cnt = pm_veto_get_id_cnt(PM_ID_HEART); - if (cnt == 0) - { - uapi_pm_add_sleep_veto(PM_ID_HEART); - } + // uint8_t cnt = pm_veto_get_id_cnt(PM_ID_HEART); + // if (cnt == 0) + // { + // uapi_pm_add_sleep_veto(PM_ID_HEART); + // } }else if (mail == PPG_SERVICE_CMD_TYPE_DO_HRV_TEST){ cmd = "hrv"; @@ -326,11 +326,11 @@ static void ppg_service_check_task(void *arg) uapi_save_runtime_log(RUNTIME_LOG_HEART_DRIVER_MEASURE_END); cmd = "hrs"; enable = 0; - uint8_t cnt = pm_veto_get_id_cnt(PM_ID_HEART); - if (cnt == 1) - { - uapi_pm_remove_sleep_veto(PM_ID_HEART); - } + // uint8_t cnt = pm_veto_get_id_cnt(PM_ID_HEART); + // if (cnt == 1) + // { + // uapi_pm_remove_sleep_veto(PM_ID_HEART); + // } }else if (mail == PPG_SERVICE_CMD_TYPE_STOP_SPO2_TEST){ cmd = "spo2"; diff --git a/tools/log_parser/runtimeanalysis_2.0.py b/tools/log_parser/runtimeanalysis_2.0.py index 3028e54bd..cdeb90caa 100644 --- a/tools/log_parser/runtimeanalysis_2.0.py +++ b/tools/log_parser/runtimeanalysis_2.0.py @@ -44,6 +44,9 @@ str_bin_list =[ ['0001', "开机 "], ['0506',"运动测量心率暂停或结束"], ['0507',"底层检测心率"], ['0508',"底层检测心率结束"], + ['0509',"检测心率结果未佩戴"], + ['050a',"检测心率结果无效值达标"], + ['050b',"检测成功"], ['0601',"开启佩戴检测"], ['0602',"关闭佩戴检测"], ['0701',"主动检测血氧"],