BLE低功耗蓝牙da14531-蓝牙广播周期和连接间隔设置

1、蓝牙广播周期设置

In user_config.h, change the advertising interval in the user_adv_conf struct from:
在这里插入图片描述
注意:
The recommended advertising pattern and advertising intervals are:

First, advertise at 20 ms intervals for at least 30 seconds
If not discovered after 30 seconds, you may change to one of the following longer intervals: 152.5 ms, 211.25 ms, 318.75 ms, 417.5 ms, 546.25 ms, 760 ms, 852.5 ms, 1022.5 ms, 1285 ms
Important: These specific intervals are the ones to be used exactly! Even the slightest deviation from these actual intervals may dramatically increase your time to discovery.

2、蓝牙连接间隔设置

In user_config.h, change the connection interval in the user_connection_param_conf struct from:
在这里插入图片描述
注意:
There are certain rules and formulae that the parameters must follow. If the parameters do not comply with all of these rules, the parameter request may be rejected, or the stability and the performance of the connection may be compromised.

Interval Min ≥ 15 ms (multiples of 15 ms)
Interval Min + 15 ms ≤ Interval Max (Interval Max == 15 ms is allowed)
Interval Max * (Slave Latency + 1) ≤ 2 seconds
Interval Max * (Slave Latency + 1) * 3 < connSupervisionTimeout
Slave Latency ≤ 30
2 seconds ≤ connSupervisionTimeout ≤ 6 seconds
Important: All of the parameters are in a formulaic relationship. Changing any one of them may necessitate recalculating the others.

参考文献:
1、Technical Q&A QA1931
Using the correct Bluetooth LE Advertising and Connection Parameters for a stable connection
https://developer.apple.com/library/archive/qa/qa1931/_index.html#top

2、蓝牙 BLE连接参数 连接间隔讲解 connection interval Slave latency timeout CH573 CH582 CH579 peripheral通用外设例子讲解四
https://www.cnblogs.com/debugdabiaoge/p/16055963.html

3、SDK6 Getting started
https://lpccs-docs.renesas.com/Tutorial_SDK6/adv_interval.html

  • 6
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值