From 7ae81495747450418ec3525d4d074bc00638700a Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Sun, 2 Nov 2025 13:00:59 +0800 Subject: [PATCH] =?utf8?q?tcp=20=E5=8D=87=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- cat1modem/src/LeiNiao/cat1Service.py | 2 +- code/sdk/zhihui/4gTest/cat1_at_cmd.c | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/cat1modem/src/LeiNiao/cat1Service.py b/cat1modem/src/LeiNiao/cat1Service.py index 62dc37368..623a797f1 100644 --- a/cat1modem/src/LeiNiao/cat1Service.py +++ b/cat1modem/src/LeiNiao/cat1Service.py @@ -82,7 +82,7 @@ sms.setCallback(msg_cb)#sms注册回调 CAT1_SERVICE_HEAD = 'FE' #固定head PROJECT_NAME = "Cat1SlipUDPService" -PROJECT_VERSION = "PY_SRV_V25" +PROJECT_VERSION = "PY_SRV_V26" CONFIG_JSON="/usr/system_config.json" CURRENT_APP_TYPE="pysrv" diff --git a/code/sdk/zhihui/4gTest/cat1_at_cmd.c b/code/sdk/zhihui/4gTest/cat1_at_cmd.c index c51825f40..8ad2aeb13 100644 --- a/code/sdk/zhihui/4gTest/cat1_at_cmd.c +++ b/code/sdk/zhihui/4gTest/cat1_at_cmd.c @@ -992,6 +992,24 @@ static errcode_t at_cat1_resume_protocol(uint8_t *para, uint32_t paraLen, char * return ERRCODE_SUCC; } + +static errcode_t at_cat1_TCP_init(uint8_t *para, uint32_t paraLen, char *strCommonCmd) +{ + UNUSED(para); + UNUSED(paraLen); + UNUSED(strCommonCmd); + + printf("=== AT^CAT1TCPINIT: Resuming CAT1 protocol stack ===\n"); + + cat1_start_tcp_ota_init(); + cat1_tcp_server_init(); + + return ERRCODE_SUCC; +} + + + + static const at_cmd_table_t g_cat1_cmd[] = { { (char *)"AT^CAT1POWER", cat1_power, (char *)"1" }, { (char *)"AT^CAT1DIAL", at_cat1_dial, (char *)"1" }, @@ -1024,6 +1042,8 @@ static const at_cmd_table_t g_cat1_cmd[] = { { (char *)"AT^PPPTCPPERF", at_4g_tcp_performance_test, (char *)"host,port,connections,time" }, { (char *)"AT^PPPTCPSTOP", at_4g_tcp_test_stop, (char *)" " }, { (char *)"AT^PPPTCPSTATS", at_4g_tcp_test_stats, (char *)" " }, + { (char *)"AT^CAT1TCPINIT", at_cat1_TCP_init, (char *)" " }, + }; at_cmd_table_t *get_cat1_cmd_table(uint32_t *cmd_count) -- 2.17.1