完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
Hello - wrt BLE广告的最大总大小或31字节的扫描响应:
BlueNRG-MS v7.2c外设可以产生最大预期长度。 但是当我运行BlueNRG-MS v7.2c Central时,如果任一数据包的总长度> 18字节,然后相应的ADV_IND或SCAN_RSP事件从未作为EVT_LE_ADVERtiSING_REPORT事件接收。 除了iOS和Android设备上的BLE堆栈之外,我评估的其他3个供应商平台的嵌入式BLE堆栈的中央设备都可以接收广告或扫描响应的最大总长度。 这种观察是由我在实施ST BlueNRG Central中的错误引起的,还是已知且有记录的限制?怀疑BlueNRG-MS外设可以产生最大长度为31个字节,但中心总共限制为18个字节。更可疑的是,观察到的18的限制小于20字节的全长通知,我的BlueNRG Central实现一旦连接就可以接收。 可以肯定的是,bluenrg_gap.h包含这个常量: & sharpdefine MAX_ADV_DATA_LEN(31) #bluenrg-MS-ADV_IND-SCAN_RSP-max_adv_data_len 以上来自于谷歌翻译 以下为原文 Hello - wrt the maximum total size of a BLE advertisement or scan response of 31 bytes: The BlueNRG-MS v7.2c Peripheral can generate either at max expected length. But when I run the BlueNRG-MS v7.2c Central, if the total length of either packet is > 18 bytes, then the corresponding ADV_IND or SCAN_RSP event is never received as a EVT_LE_ADVERTISING_REPORT event. The Central device of the embedded BLE stack of the 3 other vendor platforms I have evaluated can all receive up to the maximum total length of either the advertisement or scan response in addition to the BLE stacks on the iOS and Android devices. Is this observation caused by an error in my implementation of the ST BlueNRG Central, or is it a known and documented limitation? It is suspicious that the BlueNRG-MS Peripheral can produce either at the max length of 31 bytes, but the Central is limited to 18 bytes total. Even more suspicious is that the observed limit of 18 is less than a full length Notification of 20 bytes, which my implementation of the BlueNRG Central can receive once connected. To be sure, bluenrg_gap.h contains this constant: &sharpdefine MAX_ADV_DATA_LEN (31) #bluenrg-ms-adv_ind-scan_rsp-max_adv_data_len |
|
相关推荐
2个回答
|
|
请注意,今天我已经更改了这个问题的标题,因为它可能看起来像我在询问社区广告数据或扫描响应的最大长度是多少。为了清楚起见,我知道它总共有31个字节并且记录得非常好。我正在报告一个观察结果,当使用v7.2c运行ST BlueNRG-MS时,在模式4中配置为GAP_CENTRAL_ROLE_IDB05A1(模式4:主/从,4个连接,RAM1和RAM2同时扫描和广告),如果BLE外设实现的话一个超过18个字节的广告或扫描响应(是的,我知道,那些字节必须根据规范仔细构造为长度字节,数据类型,数据;长度字节,数据类型,数据......)然后ST BlueNRG-MS Central设备从不为应用程序生成相应的ADV_IND或SCAN_RSP事件。我注意到使用配置为GAP_PERIPHERAL_ROLE_IDB05A1的带有v7.2c的BlueNRG-MS,ST BlueNRG-MS外设可以使用MAX_ADV_DATA_LEN字节生成通告和扫描响应,并使用其他供应商的嵌入式BLE Central演示,中央可以获得此最大值长度。
因此,我要求社区寻求帮助: - 你可以复制这个观察吗? - 如果没有,你能想象我正在使用可能导致这种限制的ST BLE Central示例应用程序的错误吗? - 如果是,是否将ST BLE Central的限制记录为错误和/或计划在BlueNRG-MS即将发布的f / w版本中修复? 以上来自于谷歌翻译 以下为原文 Note that today I have changed the title of this question since it may have looked like I was asking the community what is the max length of the advertising data or scan response. To be clear, I understand that it is 31 bytes total and very well documented. I am reporting an observation that when running the ST BlueNRG-MS with v7.2c, configured as a GAP_CENTRAL_ROLE_IDB05A1 in Mode 4 (Mode 4: master/slave, 4 connections, RAM1 and RAM2 simultaneous scanning and advertising), if a BLE Peripheral implements an advertisement or scan response that is longer than 18 total bytes (yes, I know, those bytes have to be carefully constructed according to specification as length byte, data type, data; length byte, data type, data...) then the ST BlueNRG-MS Central device never generates the corresponding ADV_IND or SCAN_RSP event to the application. I note that using the BlueNRG-MS with v7.2c, configured as GAP_PERIPHERAL_ROLE_IDB05A1, the ST BlueNRG-MS Peripheral can generate advertisements and scan response with MAX_ADV_DATA_LEN bytes, and using the embedded BLE Central demos of other vendors, the Central can receive this max length. Thus I am asking the community for help with this: - can you duplicate this observation? - if not, can you imagine the mistake that I am making working with the ST BLE Central sample application that could cause this limitation? - if yes, is this limitation of the ST BLE Central documented as an erratum and/or scheduled to be fixed in an imminent f/w release for the BlueNRG-MS? |
|
|
|
多么尴尬 - 我甚至不能删除这篇文章(只对帖子发表评论): - /
无论如何,当我最初移植ACI示例应用程序代码〜2年前,我只专注于BLE外设,而我见过的最大数据包是22 + 3字节,所以我向上舍入并设置了最大预期数据包大小从BlueNRG-MS到FreeRTOS队列的30 + 3字节,我将它们推入BlueNRG-IRQ中断,以便在任务级别进行后续处理。嗯,这个最大尺寸足以让很多有用的东西工作,即使是作为一个BLE Central ...当然,直到现在,当我遇到这个无法找到广告外围设备更广告的问题/扫描响应数据大小。 现在是一个hci_uart_pckt - > hci_event_pckt - > evt_le_meta_event - > le_advertising_info具有31字节的广告/扫描响应有效载荷(以及BlueNRG-MS一次只能传递1个广告/扫描响应的经验结果,即使#of消息的字节意味着可能有更多,但从未有过)所有这些都需要至少43 + 3字节的接收缓冲区。因此,我会相应地提高最大Rx buf尺寸,看看在我做另一个令人尴尬的帖子寻求帮助之前可以持续多少年......或者我可能仍然能够找到这一个并且仁慈地提醒我在哪里看: - 0 以上来自于谷歌翻译 以下为原文 How embarrassing - and I cannot even delete this post (only comments to posts) :-/ Anyway, when I originally ported the ACI sample app code ~2 years ago, I was only focused on the BLE Peripheral, and the biggest packet I had ever seen was 22+3 bytes, so I rounded up and set a max expected packet size from the BlueNRG-MS to 30+3 bytes for the FreeRTOS queues that I push them into in the BlueNRG-IRQ interrupt for later processing at the task level. Well, that max size has been good enough to get a lot of useful stuff working, even as a BLE Central ... until now, of course, when I ran into this issue of not being able to find an advertising Peripheral with bigger advertisement/scan response data sizes. Now a hci_uart_pckt --> hci_event_pckt --> evt_le_meta_event --> le_advertising_info with a 31-byte advertising/scan response payload (and the empirical result that BlueNRG-MS only ever passes 1 advertisement/scan response at a time even though the byte for #of messages implies that there could be more, there never is) all of this requires a receive buffer of at least 43+3 bytes. So I will bump up the max Rx buf size accordingly and see how many years I can last before I make another embarrassing post for help ... or maybe I will still be able find this one and mercifully be reminded of where to look :-0 |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2725 浏览 1 评论
3237 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1807 浏览 1 评论
3646 浏览 6 评论
6034 浏览 21 评论
1336浏览 4评论
197浏览 3评论
对H747I-DISCO写程序时将CN2的st-link复用为usart1,再次烧录时无法检测到stlink怎么解决?
350浏览 2评论
STM32G474RE芯片只是串口发个数据就发烫严重是怎么回事?
442浏览 2评论
STM32处理增量式编码器Z信号如何判断中断是正转的还是反向转的?
268浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-22 13:32 , Processed in 1.169853 second(s), Total 77, Slave 60 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号