串口不停提示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!
有谁知道是哪个步骤出问题了? 你程序是不是一直在上报数据呢,你检查一下你移植的代码 static void A_Task (void *p_arg)
{
u8 t=0;
OS_ERR err;
while(1)
{
t++;
gizwitsHandle((dataPoint_t *)¤tDataPoint);
if((t%50)==0)
{
if(t==150)t=0;
LED0=!LED0;
}
OSTimeDly ( 10, OS_OPT_TIME_DLY, & err );
}
}
ucos中程序是这样
有时候正常,但是会重复提示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!
boboP 发表于 2017-9-26 12:01
你程序是不是一直在上报数据呢,你检查一下你移植的代码
我把打印得东西复制出来了,你看看 Trstary 发表于 2017-9-26 20:19
我把打印得东西复制出来了,你看看
楼主我跟你一样的问题,怎么解决
页:
[1]