diff --git a/applications/RS_485.c b/applications/RS_485.c index 84bd7b6..efaae2d 100644 --- a/applications/RS_485.c +++ b/applications/RS_485.c @@ -278,7 +278,7 @@ static int uart485_dma_sample(int argc, char *argv[]) } /* 创建 serial 线程 */ - thread = rt_thread_create("T485", T485_thread_entry, RT_NULL, 1024*5, 25, 10); + thread = rt_thread_create("T485", T485_thread_entry, RT_NULL, 1024*5, 25+1, 10); /* 创建成功则启动线程 */ if (thread != RT_NULL) { diff --git a/applications/core.c b/applications/core.c index ca2544e..5c4cb2c 100644 --- a/applications/core.c +++ b/applications/core.c @@ -572,7 +572,7 @@ static void chkAndSendFile_thread_entry() { LOG_I("TT准备就绪"); //当前固件底层未缓存待发数据,导致前几包数据可能丢失,暂时用延时规避 - rt_thread_mdelay(2*60*1000); + rt_thread_mdelay(1*60*1000); getAndSendFile(); break; } diff --git a/applications/func/func.c b/applications/func/func.c index 8597283..ac798f5 100644 --- a/applications/func/func.c +++ b/applications/func/func.c @@ -515,7 +515,7 @@ static int getAndCheckLoc(uint8_t *dout, size_t pairCnt) //定位故障,临时填充数据 if (!cnt) { - LOG_W("NONE Loc data, using 0x37 replaced"); +// LOG_W("NONE Loc data, using 0x37 replaced"); cnt = pairCnt*10; memset(loc,0x37,cnt); } diff --git a/applications/ttmsg/ttmsg.c b/applications/ttmsg/ttmsg.c index 1ebccc3..23ba05d 100644 --- a/applications/ttmsg/ttmsg.c +++ b/applications/ttmsg/ttmsg.c @@ -437,7 +437,7 @@ void recTT_thread_entry() // LOG_D("TT server is ready."); static TTRx_MSG msg; static uint8_t bf[1024]; - static dlen=0; + static size_t dlen=0; rt_memset(bf,0,1024); while (1) { @@ -460,7 +460,7 @@ void recTT_thread_entry() memcpy(bf,msg.data,msg.size); dlen=msg.size; //存入log - char tmp[200]="";//接收的数据不会很长,200足矣 + char tmp[1024]="";//接收的数据不会很长,200足矣 trDataTolog(bytes2str(bf, dlen, 16, " ", tmp), strlen(tmp), 0); //此处调用处理函数 parseTTData(bf,dlen); diff --git a/rtconfig.h b/rtconfig.h index f0cf891..a850c60 100644 --- a/rtconfig.h +++ b/rtconfig.h @@ -313,7 +313,7 @@ #define SYSWATCH_EXCEPT_CONFIRM_TMO 15 #define SYSWATCH_EXCEPT_RESUME_DLY 15 #define SYSWATCH_THREAD_PRIO 0 -#define SYSWATCH_THREAD_STK_SIZE 1024 +#define SYSWATCH_THREAD_STK_SIZE 2048 #define SYSWATCH_THREAD_NAME "syswatch" #define SYSWATCH_WDT_NAME "wdt" #define SYSWATCH_WDT_TIMEOUT 5