产测软件适配
authorxue <2144439972@qq.com>
Wed, 1 Apr 2026 09:27:02 +0000 (17:27 +0800)
committerxue <2144439972@qq.com>
Wed, 1 Apr 2026 09:27:02 +0000 (17:27 +0800)
code/sdk/zhihui/UI/producttest/src/testPresenter.cpp
code/sdk/zhihui/utils/custom_cmd_service.c
code/sdk/zhihui/utils/custom_utils_at_cmd.c

index 71ee5ac..8c4b3c4 100644 (file)
@@ -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) {
index 9463b1c..5610cc5 100644 (file)
@@ -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
index 3e79daa..50f1f7e 100644 (file)
@@ -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=<item>\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=<item>\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" },