器件型号:CC2540DK
您好!
我将使用 BLE Stack 1.4.2.2随附的 simpleBLEBroadcaster 示例项目。 由于应用要求、我需要在终止广播、等待可编程的时间长度、更新广播负载、然后重新开始过程之前控制广播的广播包数量。 有什么建议吗?
谢谢、
Andy
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
扎希德
我了解根据 BLE 规范对每种广播类型施加的仿造产品。 感谢您的回复。
请回答以下问题部分:
1 -如果广播被禁用、然后又被启用、 则在堆栈再次开始广播之前、GAPROLE_advertise_off_time 中的毫秒数将需要过期。2 -启用后、广播将在 GAPROLE_advertise_off_time (毫秒)后停止。
不确定这些定义中的任何一个是否正确。
感谢您的帮助!
Andy
您好!
第一个问题正确、如 peripheral.c 中所示:
else // GAP_END_DISCOVERAT_DONE_EVENT
{
if (gapRole_AddertOffTime!= 0)
{
if ((gapRole_AdvEnabled)||(gapRole_AdvNonConnEnabled))
{
void osal_start_timerEx (gapRole_TaskID、start_advertising_EVT、gapRole_AddertOffTime);
}
}
此外、在使用外设.h 中提到的有限广播模式时也是如此:
#define GAPROLE_advertise_off_time 0x306 //!<有限广播的广播关闭时间(以毫秒为单位)。
祝你一切顺利