为什么CC2541在启动广播不久后自动关闭?

2019-07-18 15:00发布

我发现CC2541板子在启动广播30秒后,就会收到事件:
GAP_END_DISCOVERABLE_DONE_EVENT

这个是蓝牙协议的规定,还是ti 协议栈里面的规定?

谢谢。

友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
2条回答
广电总局
2019-07-18 18:54
可以设置为无限制广播

static uint8 advertData[] =
{
// Flags; this sets the device to use limited discoverable
// mode (advertises for 30 seconds at a time) instead of general
// discoverable mode (advertises indefinitely)
0x02, // length of this data
GAP_ADTYPE_FLAGS,              //无限广播
DEFAULT_DISCOVERABLE_MODE | GAP_ADTYPE_FLAGS_BREDR_NOT_SUPPORTED,

// service UUID, to notify central devices what services are included
// in this peripheral
0x03, // length of this data
GAP_ADTYPE_16BIT_MORE, // some of the UUID's, but not all
LO_UINT16( SIMPLEPROFILE_SERV_UUID ),
HI_UINT16( SIMPLEPROFILE_SERV_UUID ),

};

一周热门 更多>