cc2540做成的蓝牙遥控器连接时出现0X3F错误
hi 各位:
我在使用cc2540芯片做的蓝牙遥控器连接的过程中,发现有时候会连接断掉,打印断掉的原因是:HCI_ERROR_CODE_MAC_CONN_FAILED,它对应的数据
0X3F,是连接mac地址失败,请问各位大侠,出现这种失败的原因是什么?从软件设计方面怎么样处理这样的bug?
谢谢您的回复
在cc2540的芯片资料里面有这样的介绍,请求个位帮忙解释一下:
The bit index of the least-significant 1 in SRCRESMASK, or 0x3F when
there is no source match. On a match, bit 5 is 0 when the match is
on a short address and 1 when it is on an extended address. On a
match, bit 6 is 1 when the conditions for automatic pending bit in
0x6163 SRCRESINDEX acknowledgment have been met (see the description of
SRCMATCH.AUTOPEND). The bit gives no indication of whether or not
the acknowledgment actually is transmitted, and does not take the
PENDING_OR register bit and the SACK/SACKPEND/SNACK strobes
into account.
谢谢各位