From 85b8b3cc099806616b1e6c32b1caebf6c11fb0dd Mon Sep 17 00:00:00 2001 From: payton Date: Tue, 22 Aug 2023 17:59:26 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=A2=9E=E5=8A=A0cping=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E5=A4=84=E7=90=86=EF=BC=9B2.eg915q=E4=B8=8D=E5=81=9A=E5=88=87?= =?UTF-8?q?=E5=8D=A1at=E6=8C=87=E4=BB=A4=E5=8C=BA=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../source/sf_app/code/source/4gMng/sf_eg91_sim.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/code/application/source/sf_app/code/source/4gMng/sf_eg91_sim.c b/code/application/source/sf_app/code/source/4gMng/sf_eg91_sim.c index 42ea7be92..c0d677c84 100755 --- a/code/application/source/sf_app/code/source/4gMng/sf_eg91_sim.c +++ b/code/application/source/sf_app/code/source/4gMng/sf_eg91_sim.c @@ -2870,6 +2870,14 @@ SINT32 sf_module_complete_init(void) SLOGE(logStr); goto SF_MODULE_END; } + else if(strstr((const char *)gsmPara, "ERROR")) + { + ret = SF_SIM_ERROR_AT_TIMEOUT; + SLOGE(gsmPara); + sprintf((char *)logStr, "Error Code:0x%08X\n", ret); + SLOGE(logStr); + goto SF_MODULE_END; + } else { if(time % 10 == 0) @@ -3150,7 +3158,7 @@ SINT32 sf_net_regist_manual(void) SF_LOG("operation info manual set,default success.\n"); } - if(strstr((const char *)puiPara->Sim4gApn, APN_4G_VERIZON)) + if((strstr((const char *)puiPara->Sim4gApn, APN_4G_VERIZON)) && ((SF_STRNCMP(puiPara->ModuleVer, GPRS_MODULE_TYPE_EG915Q, 6) != 0))) { eNetRegLocation = QUECTEL_NETREG_QNVFW; sprintf((char *)gsmPara, "%s", "at+qnvfr=\"/nv/item_files/modem/uim/gstk/feature_bmsk\"\r");