完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
嗨,
我的BlueNRG-MS,运行7.2c,既可作为中央也可作为外设(模式4)。我应该如何选择外设的广告最小和最大间隔以及中心的连接最小和最大间隔?它们之间似乎存在关系,但我不确定我是否理解它。 我正在尝试获得中心角色的最小连接间隔,同时确保外围设备的正确连接。 LE_Scan_Interval和LE_Scan_Window似乎也开始发挥作用...... 现在,我正在通过反复试验测试不同的值,但如果它们之间存在数学关系,我想知道它。 谢谢! #bluenrg-MS 以上来自于谷歌翻译 以下为原文 Hi, My BlueNRG-MS, running 7.2c, acts both as a central and a peripheral (mode 4). How should I select the advertizing min and max intervals for the peripheral as well as the connection min and max intervals for the central? There seem to be a relationship between them, but I'm not sure I understand it. I'm trying to get the minimal connection interval for the central role, while ensuring proper connectivity for the peripheral. LE_Scan_Interval and LE_Scan_Window seems also to come into play... Right now, I'm testing different values through trial and error, but if there is a mathematical relationship between those, I'd like to know it. Thanks! #bluenrg-ms |
|
相关推荐
2个回答
|
|
|
嗨,
上 https://github.com/ARMmbed/ble-x-nucleo-idb0xa1 您可以找到BlueNRG-MS的包装器库。特别是,BlueNRGGap类处理与广告相关的参数的计算: BlueNRGGap :: setAdvParameters() 和连接: BlueNRGGap :: setConnectionParameters () 希望有所帮助。 以上来自于谷歌翻译 以下为原文 Hi, On https://github.com/ARMmbed/ble-x-nucleo-idb0xa1 you can find a wrapper library for BlueNRG-MS.In particular, the BlueNRGGap class handles the computation of parameters related to Advertising: BlueNRGGap::setAdvParameters() and Connection: BlueNRGGap::setConnectionParameters () Hope that helps. |
|
|
|
|
|
我也一直在尝试不同的连接/扫描间隔组合,并在BlueNRG编程手册中找到了一些有用的指导(
http://www.st.com/content/ccc/resource/technical/document/programming_manual/1c/7e/d3/a6/d0/52/4a/35/DM00141271.pdf/files/DM00141271.pdf/jcr:内容/翻译/ en.DM00141271.pdf 例如,这来自第4.3节: 4.每次开始做广告时: a)如果是直接广告,请选择Advertising_Interval_Min = Advertising_Interval_Max =最短分配连接间隔的整数倍 b)如果不是直接广告,请选择Advertising_Interval_Min = Advertising_Interval_Max使得(Advertising_Interval_Min + 5ms)是整数 多个最短的分配连接间隔希望这有帮助 以上来自于谷歌翻译 以下为原文 I have also been experimenting with different connection / scan interval combinations and found some useful guidelines in the BlueNRG programming manual ( http://www.st.com/content/ccc/resource/technical/document/programming_manual/1c/7e/d3/a6/d0/52/4a/35/DM00141271.pdf/files/DM00141271.pdf/jcr:content/translations/en.DM00141271.pdf For Example, this is from section 4.3: 4. Every time you start Advertising: a) If Direct Advertising, choose Advertising_Interval_Min = Advertising_Interval_Max = integer multiple of the shortest allocated connection interval b) If not Direct Advertising, choose Advertising_Interval_Min = Advertising_Interval_Max such that (Advertising_Interval_Min + 5ms) is an integer multiple of the shortest allocated connection intervalHope this helps |
|
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
1453 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
1502 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3649 浏览 1 评论
3842 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2461 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
727浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
661浏览 5评论
710浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
941浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
745浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 00:25 , Processed in 1.193970 second(s), Total 76, Slave 59 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
3070