补充提交ppp打印信息及16m config 2501/2 2501/head
author孙春阳 <snickersun@163.com>
Tue, 14 Oct 2025 04:28:08 +0000 (12:28 +0800)
committer孙春阳 <snickersun@163.com>
Tue, 14 Oct 2025 04:28:08 +0000 (12:28 +0800)
code/sdk/build/config/target_config/brandy/menuconfig/acore/brandy_ssb_native_js_lnppp.config [new file with mode: 0644]
code/sdk/zhihui/ppp/src/ppp_api.c

diff --git a/code/sdk/build/config/target_config/brandy/menuconfig/acore/brandy_ssb_native_js_lnppp.config b/code/sdk/build/config/target_config/brandy/menuconfig/acore/brandy_ssb_native_js_lnppp.config
new file mode 100644 (file)
index 0000000..b4b1e26
--- /dev/null
@@ -0,0 +1,18 @@
+# Generated by Kconfig Tool.
+# Note: !!!This file can not be modify manually!!!
+
+#
+# Main menu description, show how to use this configuration system.
+#
+
+#
+# Product
+#
+
+#
+# Config the product.
+#
+CONFIG_NORFLASH_SIZE=16
+
+CONFIG_PSRAM_DENSITY_MB=32
+# end of Product
index 3d24246..c5cdd1e 100644 (file)
@@ -1458,7 +1458,7 @@ errcode_t ppp_api_update_imei(void)
     
     // 更新runtime状态
     cat1_api_runtime_set_cat1_imei(imei_temp);
-    PPP_DEBUG_INFO("Updated IMEI: %s", imei_temp);
+    PPP_DEBUG_CRITICAL("Updated IMEI: %s", imei_temp);
     
     return ERRCODE_SUCC;
 }
@@ -1502,7 +1502,7 @@ errcode_t ppp_api_update_signal(void)
     
     // 更新runtime状态
     cat1_api_runtime_set_cat1_signal(signal);
-    PPP_DEBUG_INFO("Updated signal strength: %d", signal);
+    PPP_DEBUG_CRITICAL("Updated signal strength: %d", signal);
     
     return ERRCODE_SUCC;
 }
@@ -1546,7 +1546,7 @@ errcode_t ppp_api_update_operator(void)
     
     // 更新runtime状态
     cat1_api_runtime_set_cat1_operator(operator_temp);
-    PPP_DEBUG_INFO("Updated operator: %s", operator_temp);
+    PPP_DEBUG_CRITICAL("Updated operator: %s", operator_temp);
     
     return ERRCODE_SUCC;
 }
@@ -1590,7 +1590,7 @@ errcode_t ppp_api_update_iccid(void)
     
     // 更新runtime状态
     cat1_api_runtime_set_cat1_iccid(iccid_temp);
-    PPP_DEBUG_INFO("Updated ICCID: %s", iccid_temp);
+    PPP_DEBUG_CRITICAL("Updated ICCID: %s", iccid_temp);
     
     return ERRCODE_SUCC;
 }
@@ -1634,7 +1634,7 @@ errcode_t ppp_api_update_version(void)
     
     // 更新runtime状态
     cat1_api_runtime_set_cat1_modemver(version_temp);
-    PPP_DEBUG_INFO("Updated modem version: %s", version_temp);
+    PPP_DEBUG_CRITICAL("Updated modem version: %s", version_temp);
     
     return ERRCODE_SUCC;
 }
@@ -1668,9 +1668,9 @@ errcode_t ppp_api_update_network_status(void)
         if (ret == ERRCODE_SUCC) {
             // 根据网络注册状态设置网络连接状态
             uint8_t network_on = (network_status == 1 || network_status == 5) ? 1 : 0;
-            cat1_api_runtime_set_cat1_networkstat(network_on);
+            // cat1_api_runtime_set_cat1_networkstat(network_on);
             cat1_api_runtime_set_cat1_networktype(network_status);
-            PPP_DEBUG_INFO("Updated network status (CREG): %d, network_on: %d", network_status, network_on);
+            PPP_DEBUG_CRITICAL("Updated network status (CREG): %d, network_on: %d", network_status, network_on);
             free(response);
             return ERRCODE_SUCC;
         }
@@ -1696,7 +1696,7 @@ errcode_t ppp_api_update_network_status(void)
     uint8_t network_on = (network_status == 1 || network_status == 5) ? 1 : 0;
     // cat1_api_runtime_set_cat1_networkstat(network_on);
     cat1_api_runtime_set_cat1_networktype(network_status);
-    PPP_DEBUG_INFO("Updated network status (CEREG): %d, network_on: %d", network_status, network_on);
+    PPP_DEBUG_CRITICAL("Updated network status (CEREG): %d, network_on: %d", network_status, network_on);
     
     return ERRCODE_SUCC;
 }
@@ -1743,7 +1743,7 @@ errcode_t ppp_api_update_sim_status(void)
     
     // 如果CCID命令成功,说明SIM卡正常
     cat1_api_runtime_set_cat1_simstat(1); // 1表示SIM卡正常
-    PPP_DEBUG_INFO("SIM card detected and normal");
+    PPP_DEBUG_CRITICAL("SIM card detected and normal");
     
     return ERRCODE_SUCC;
 }