辅助定位dsp指令崩溃问题
This commit is contained in:
parent
a6c486f9f3
commit
0c095505ca
@ -278,7 +278,7 @@ static int uart485_dma_sample(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* 创建 serial 线程 */
|
/* 创建 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)
|
if (thread != RT_NULL)
|
||||||
{
|
{
|
||||||
|
@ -572,7 +572,7 @@ static void chkAndSendFile_thread_entry()
|
|||||||
{
|
{
|
||||||
LOG_I("TT准备就绪");
|
LOG_I("TT准备就绪");
|
||||||
//当前固件底层未缓存待发数据,导致前几包数据可能丢失,暂时用延时规避
|
//当前固件底层未缓存待发数据,导致前几包数据可能丢失,暂时用延时规避
|
||||||
rt_thread_mdelay(2*60*1000);
|
rt_thread_mdelay(1*60*1000);
|
||||||
getAndSendFile();
|
getAndSendFile();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -515,7 +515,7 @@ static int getAndCheckLoc(uint8_t *dout, size_t pairCnt)
|
|||||||
|
|
||||||
//定位故障,临时填充数据
|
//定位故障,临时填充数据
|
||||||
if (!cnt) {
|
if (!cnt) {
|
||||||
LOG_W("NONE Loc data, using 0x37 replaced");
|
// LOG_W("NONE Loc data, using 0x37 replaced");
|
||||||
cnt = pairCnt*10;
|
cnt = pairCnt*10;
|
||||||
memset(loc,0x37,cnt);
|
memset(loc,0x37,cnt);
|
||||||
}
|
}
|
||||||
|
@ -437,7 +437,7 @@ void recTT_thread_entry()
|
|||||||
// LOG_D("TT server is ready.");
|
// LOG_D("TT server is ready.");
|
||||||
static TTRx_MSG msg;
|
static TTRx_MSG msg;
|
||||||
static uint8_t bf[1024];
|
static uint8_t bf[1024];
|
||||||
static dlen=0;
|
static size_t dlen=0;
|
||||||
rt_memset(bf,0,1024);
|
rt_memset(bf,0,1024);
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
@ -460,7 +460,7 @@ void recTT_thread_entry()
|
|||||||
memcpy(bf,msg.data,msg.size);
|
memcpy(bf,msg.data,msg.size);
|
||||||
dlen=msg.size;
|
dlen=msg.size;
|
||||||
//存入log
|
//存入log
|
||||||
char tmp[200]="";//接收的数据不会很长,200足矣
|
char tmp[1024]="";//接收的数据不会很长,200足矣
|
||||||
trDataTolog(bytes2str(bf, dlen, 16, " ", tmp), strlen(tmp), 0);
|
trDataTolog(bytes2str(bf, dlen, 16, " ", tmp), strlen(tmp), 0);
|
||||||
//此处调用处理函数
|
//此处调用处理函数
|
||||||
parseTTData(bf,dlen);
|
parseTTData(bf,dlen);
|
||||||
|
@ -313,7 +313,7 @@
|
|||||||
#define SYSWATCH_EXCEPT_CONFIRM_TMO 15
|
#define SYSWATCH_EXCEPT_CONFIRM_TMO 15
|
||||||
#define SYSWATCH_EXCEPT_RESUME_DLY 15
|
#define SYSWATCH_EXCEPT_RESUME_DLY 15
|
||||||
#define SYSWATCH_THREAD_PRIO 0
|
#define SYSWATCH_THREAD_PRIO 0
|
||||||
#define SYSWATCH_THREAD_STK_SIZE 1024
|
#define SYSWATCH_THREAD_STK_SIZE 2048
|
||||||
#define SYSWATCH_THREAD_NAME "syswatch"
|
#define SYSWATCH_THREAD_NAME "syswatch"
|
||||||
#define SYSWATCH_WDT_NAME "wdt"
|
#define SYSWATCH_WDT_NAME "wdt"
|
||||||
#define SYSWATCH_WDT_TIMEOUT 5
|
#define SYSWATCH_WDT_TIMEOUT 5
|
||||||
|
Loading…
Reference in New Issue
Block a user