From dd10501e7c01c455efb63eedb70a5e626e7f9357 Mon Sep 17 00:00:00 2001 From: payton Date: Mon, 19 Feb 2024 10:02:01 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BC=98=E5=8C=96=E6=A8=A1=E5=9D=97=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=EF=BC=8C=E6=A8=A1=E5=9D=97=E5=9B=9E=E5=A4=8D?= =?UTF-8?q?QUSIM=E5=92=8CQIND=E6=97=B6=E8=BF=9B=E8=A1=8C=E9=87=8D=E8=AF=95?= 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 | 8 +++++++- 1 file changed, 7 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 3074ac9e9..b12e3e2b1 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 @@ -3218,7 +3218,13 @@ SINT32 sf_module_complete_init(void) else { callTime++; - + if((strstr((const char *)gsmPara, "QUSIM")) || (strstr((const char *)gsmPara, "QIND"))) + { + strcpy((char *)gsmPara, "AT+QCCID\r"); + ttyRet = sf_hal_ttyusb2_write(gsmPara, strlen(gsmPara)); + SF_CHECK_RETURN(ttyRet, SF_GPRS_MODULE_ERROR_WRITE); + } + if(callTime > 10) { ret = SF_SIM_ERROR_AT_TIMEOUT;