去掉测心率退出低功耗,增加功耗脚本解析
authorpenglei <1624952103@qq.com>
Thu, 26 Dec 2024 12:34:17 +0000 (20:34 +0800)
committerpenglei <1624952103@qq.com>
Thu, 26 Dec 2024 12:34:17 +0000 (20:34 +0800)
code/sdk/drivers/peripheral/ppg/service/ppg_service.cpp
tools/log_parser/runtimeanalysis_2.0.py

index 10bf174..508e259 100644 (file)
@@ -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";
index 3028e54..cdeb90c 100644 (file)
@@ -44,6 +44,9 @@ str_bin_list =[ ['0001', "开机 "],
                 ['0506',"运动测量心率暂停或结束"],\r
                 ['0507',"底层检测心率"],\r
                 ['0508',"底层检测心率结束"],\r
+                ['0509',"检测心率结果未佩戴"],\r
+                ['050a',"检测心率结果无效值达标"],\r
+                ['050b',"检测成功"],\r
                 ['0601',"开启佩戴检测"],\r
                 ['0602',"关闭佩戴检测"],\r
                 ['0701',"主动检测血氧"],\r