Trstary 发表于 2017-9-26 10:06:34

串口不停提示get one pack

在ucos的基础上移植了机智云的代码,烧进去后wifi蓝灯一直在闪,串口上一直打印出
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
有谁知道是哪个步骤出问题了?

boboP 发表于 2017-9-26 12:01:58

你程序是不是一直在上报数据呢,你检查一下你移植的代码

Trstary 发表于 2017-9-26 20:15:58

static void A_Task (void *p_arg)
{
u8 t=0;
OS_ERR      err;
   while(1)
{
t++;
    gizwitsHandle((dataPoint_t *)&currentDataPoint);
if((t%50)==0)   
{
   if(t==150)t=0;
   LED0=!LED0;   
}
    OSTimeDly ( 10, OS_OPT_TIME_DLY, & err );
}
}
ucos中程序是这样

Trstary 发表于 2017-9-26 20:18:16

有时候正常,但是会重复提示3次一样得信息,然后又开始不正常了
success
rbCreate Success
Get One Packet!
flag 0 0
len = 2 , sDidLen = 0 ,data_len = 7
AckData :
Get One Packet!
flag 0 0
len = 2 , sDidLen = 0 ,data_len = 7
AckData :
Get One Packet!
flag 0 0
len = 2 , sDidLen = 0 ,data_len = 7
AckData :
Get One Packet!
WiFi status: in binding mode
WiFi status: connected router
WiFi status: connected m2m
WiFi status: app connect
RSSI is 7
RSSI 7
Get One Packet!
RSSI is 7
RSSI 7
Get One Packet!
RSSI is 7
RSSI 7
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!
Get One Packet!

Trstary 发表于 2017-9-26 20:19:48

boboP 发表于 2017-9-26 12:01
你程序是不是一直在上报数据呢,你检查一下你移植的代码

我把打印得东西复制出来了,你看看

pzy 发表于 2019-9-9 15:44:08

Trstary 发表于 2017-9-26 20:19
我把打印得东西复制出来了,你看看

楼主我跟你一样的问题,怎么解决
页: [1]
查看完整版本: 串口不停提示get one pack