From: xue <2144439972@qq.com> Date: Wed, 1 Apr 2026 09:27:02 +0000 (+0800) Subject: 产测软件适配 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=f20dd5c28921713c31dc116af6921319d55bd287;p=mirrors%2FFD230.git 产测软件适配 --- diff --git a/code/sdk/zhihui/UI/producttest/src/testPresenter.cpp b/code/sdk/zhihui/UI/producttest/src/testPresenter.cpp index 71ee5ac2e..8c4b3c462 100644 --- a/code/sdk/zhihui/UI/producttest/src/testPresenter.cpp +++ b/code/sdk/zhihui/UI/producttest/src/testPresenter.cpp @@ -670,6 +670,8 @@ extern "C" target = SEChipTest; } else if (strcasecmp(item, "GPS") == 0) { target = GPSTEST; + } else if (strcasecmp(item, "DEEPSLEEP") == 0) { + target = DEEPSLEEP; } if (target < 0) { diff --git a/code/sdk/zhihui/utils/custom_cmd_service.c b/code/sdk/zhihui/utils/custom_cmd_service.c index 9463b1c8a..5610cc54e 100644 --- a/code/sdk/zhihui/utils/custom_cmd_service.c +++ b/code/sdk/zhihui/utils/custom_cmd_service.c @@ -333,6 +333,7 @@ static void custom_cmd_service_check_task(void const *arg) case 9: uapi_factorytest_jump_to_subview("SE"); break; case 10: uapi_factorytest_jump_to_subview("GPS"); break; case 11: uapi_factorytest_jump_to_subview("LCD"); break; + case 12: uapi_factorytest_jump_to_subview("DEEPSLEEP"); break; default: break; } #endif diff --git a/code/sdk/zhihui/utils/custom_utils_at_cmd.c b/code/sdk/zhihui/utils/custom_utils_at_cmd.c index 3e79daac5..50f1f7e01 100644 --- a/code/sdk/zhihui/utils/custom_utils_at_cmd.c +++ b/code/sdk/zhihui/utils/custom_utils_at_cmd.c @@ -1080,7 +1080,7 @@ static uint32_t custom_producttest_jump(uint8_t *para, uint32_t paraLen, char *s if (argc != 1 || strcmp((char*)argv[0], "?") == 0) { wstp_print("Usage: AT^TESTJUMP=\r\n"); - wstp_print(" item: TP|LCD|BRIGHT|CHARGE|MOTOR|KEY|BUTTON|LEAKLIGHT|GSENSOR|BT|SE|GPS\r\n"); + wstp_print(" item: TP|LCD|BRIGHT|CHARGE|MOTOR|KEY|BUTTON|LEAKLIGHT|GSENSOR|BT|SE|GPS|DEEPSLEEP\r\n"); return ERRCODE_SUCC; } @@ -1110,10 +1110,12 @@ static uint32_t custom_producttest_jump(uint8_t *para, uint32_t paraLen, char *s code = 9; } else if (strcasecmp(item, "GPS") == 0) { code = 10; + } else if (strcasecmp(item, "DEEPSLEEP") == 0) { + code = 12; } else { wstp_print("TESTJUMP: unknown item=%s\r\n", item); wstp_print("Usage: AT^TESTJUMP=\r\n"); - wstp_print(" item: TP|LCD|BRIGHT|CHARGE|MOTOR|KEY|BUTTON|LEAKLIGHT|GSENSOR|BT|SE|GPS\r\n"); + wstp_print(" item: TP|LCD|BRIGHT|CHARGE|MOTOR|KEY|BUTTON|LEAKLIGHT|GSENSOR|BT|SE|GPS|DEEPSLEEP\r\n"); return ERRCODE_FAIL; } @@ -2740,7 +2742,7 @@ static const at_cmd_table_t g_custom_utils_cmd[] = { { (char *)"AT^STARTOTA", custom_start_ota, (char *)" " }, { (char *)"AT^GETFWVER", custom_get_fw_version, (char *)"get firmware version (buildversion)" }, { (char *)"AT^ENTERTESTVIEW", custom_enter_producttest_view, (char *)"enter/exit producttest UI: AT^ENTERTESTVIEW[=1|0]" }, - { (char *)"AT^TESTJUMP", custom_producttest_jump, (char *)"jump producttest subview: AT^TESTJUMP=TP|LCD|BRIGHT|CHARGE|MOTOR|KEY|BUTTON|LEAKLIGHT|GSENSOR|BT|SE|GPS" }, + { (char *)"AT^TESTJUMP", custom_producttest_jump, (char *)"jump producttest subview: AT^TESTJUMP=TP|LCD|BRIGHT|CHARGE|MOTOR|KEY|BUTTON|LEAKLIGHT|GSENSOR|BT|SE|GPS|DEEPSLEEP" }, #ifdef SUPPORT_GNSS { (char *)"AT^GPSVIEW", custom_gps_view, (char *)"enter gps test subview (need AT^ENTERTESTVIEW first)" }, { (char *)"AT^GPS", custom_gps_switch, (char *)"gps switch (sync UI button): AT^GPS=1/0" },