TI论坛
直播中

乔军

7年用户 222经验值
私信 关注
[问答]

如何设置CC2541广播间隔时间?

设置广播间隔为1秒
如下
#define DEFAULT_ADVERtiSING_INTERVAL 1600//广播间隔 (units of 625us, 160=100ms)
#define DEFAULT_DISCOVERABLE_MODE GAP_ADTYPE_FLAGS_GENERAL //普通发现模式
假如广播持续时间为3毫秒,那这个3毫秒是在这1秒里吗? 还是说   广播间隔+广播持续时间   整个周期为1003毫秒?

回帖(2)

何丽

2019-10-30 06:36:18
广播间隔是不包含广播持续时间的, 如下图

A beacon achieves low-power consumption by residing in sleep most of the operating time, only waking up briefly to broadcast data. The time between these broadcast events are referred to as advertising interval, which is illustrated in Figure 4. For non-connectable beacons, the interval cannot be smaller than 100 ms. For connectable beacons, it cannot be smaller than 20 ms.
To this interval, a 0-10 ms pseudorandom delay is added to ensure that beacons can coexist, even if they might start broadcasting at the same time.
举报

乔军

2019-10-30 06:48:49
引用: 广陵云峰 发表于 2019-10-30 06:36
广播间隔是不包含广播持续时间的, 如下图

A beacon achieves low-power consumption by residing in sleep most of the operating time, only waking up briefly to broadcast data. The time between these broadcast events are referred to as advertising interval, which is illustrated in Figure 4. For non-conn ...

太感谢您了  非常有帮助
举报

更多回帖

发帖
×
20
完善资料,
赚取积分