From: hcj <1224667075@qq.com> Date: Sun, 2 Nov 2025 05:00:59 +0000 (+0800) Subject: tcp 升级 X-Git-Tag: V1.0.9_20251128_194606_LN~56^2~26 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=7ae81495747450418ec3525d4d074bc00638700a;p=mirrors%2FFD230.git tcp 升级 --- 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)