From a0dff738ef5998786b3fe857672ebf74a77ecd66 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E5=AD=99=E6=98=A5=E9=98=B3?= Date: Tue, 14 Oct 2025 12:28:08 +0800 Subject: [PATCH] =?utf8?q?=E8=A1=A5=E5=85=85=E6=8F=90=E4=BA=A4ppp=E6=89=93?= =?utf8?q?=E5=8D=B0=E4=BF=A1=E6=81=AF=E5=8F=8A16m=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../acore/brandy_ssb_native_js_lnppp.config | 18 ++++++++++++++++++ code/sdk/zhihui/ppp/src/ppp_api.c | 18 +++++++++--------- 2 files changed, 27 insertions(+), 9 deletions(-) create mode 100644 code/sdk/build/config/target_config/brandy/menuconfig/acore/brandy_ssb_native_js_lnppp.config 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 index 000000000..b4b1e2685 --- /dev/null +++ b/code/sdk/build/config/target_config/brandy/menuconfig/acore/brandy_ssb_native_js_lnppp.config @@ -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 diff --git a/code/sdk/zhihui/ppp/src/ppp_api.c b/code/sdk/zhihui/ppp/src/ppp_api.c index 3d24246d8..c5cdd1e14 100644 --- a/code/sdk/zhihui/ppp/src/ppp_api.c +++ b/code/sdk/zhihui/ppp/src/ppp_api.c @@ -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; } -- 2.17.1