From 166cc16e2f436d4b565d15875e960c4fdeee3b95 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E8=83=A1=E4=BC=A0=E5=86=9B?= <1224667075@qq.com> Date: Sun, 2 Nov 2025 08:00:46 +0000 Subject: [PATCH] Merge #2655 into sdk650pathc0423 from refs/changes/2655/head MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Code review from 胡传军 * refs/changes/2655/head: (7 commits squashed) - 修改活动界面UI显示问题 - Merge branch 'sdk650pathc0423' of https://codeup.aliyun.com/64191456b9581d62e8f81ac0/FD230 into sdk650pathc0423 - VAD修改 - 优化部分雷鸟代码 - tcp 升级 - Merge branch 'sdk650pathc0423' of https://codeup.aliyun.com/64191456b9581d62e8f81ac0/FD230 into sdk650pathc0423 - Merge branch 'sdk650pathc0423' of https://codeup.aliyun.com/64191456b9581d62e8f81ac0/FD230 into sdk650pathc0423 Signed-off-by: aliyun8003852482 <1224667075@qq.com> Merged-by: 罗正 <1732036298@qq.com> CR-link: https://codeup.aliyun.com/64191456b9581d62e8f81ac0/FD230/change/2655 --- code/sdk/zhihui/4gTest/cat1_at_cmd.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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