TI中文支持网
TI专业的中文技术问题搜集分享网站

cc2540做成的蓝牙遥控器连接时出现0X3F错误

hi 各位:

    我在使用cc2540芯片做的蓝牙遥控器连接的过程中,发现有时候会连接断掉,打印断掉的原因是:HCI_ERROR_CODE_MAC_CONN_FAILED,它对应的数据

0X3F,是连接mac地址失败,请问各位大侠,出现这种失败的原因是什么?从软件设计方面怎么样处理这样的bug?

    谢谢您的回复

langei langfei:

在cc2540的芯片资料里面有这样的介绍,请求个位帮忙解释一下:

The bit index of the least-significant 1 in SRCRESMASK, or 0x3F whenthere is no source match. On a match, bit 5 is 0 when the match ison a short address and 1 when it is on an extended address. On amatch, bit 6 is 1 when the conditions for automatic pending bit in0x6163 SRCRESINDEX acknowledgment have been met (see the description ofSRCMATCH.AUTOPEND). The bit gives no indication of whether or notthe acknowledgment actually is transmitted, and does not take thePENDING_OR register bit and the SACK/SACKPEND/SNACK strobesinto account.

谢谢各位

赞(0)
未经允许不得转载:TI中文支持网 » cc2540做成的蓝牙遥控器连接时出现0X3F错误
分享到: 更多 (0)