蓝牙低功耗通知间隔 [英] Bluetooth Low Energy Notification Interval

查看:251
本文介绍了蓝牙低功耗通知间隔的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对蓝牙LE协议有疑问.

我有一个Android设备和一个外围设备.
用嗅探器和电线电缆看传输,每40毫秒+/-有一个空的PDU消息.据我了解,协议意味着这些设备选择的连接间隔为40ms.

为了进行测试,我使用一个简单的"UART"应用程序,其中android设备启用外围设备属性的通知,并在属性更改时得到通知.

现在,如果我通过此设置发送"多个20字节数据包,wireshark会向我显示这些值通知之间的间隔仅为7-10毫秒.每个通知包含20个字节

就是说,连接间隔不适用于通知,并且每个通知最多可以容纳. 20个字节?

I have a question regarding the bluetooth LE protocol.

I have an Android Device and a peripheral device.
Looking at the transmission with a sniffer and wireshark there is +/- every 40ms an empty PDU message. As I understood the protocol this means the connection interval those device chose is 40ms.

For testing I am using a simple "UART" application where the android device enables the notification on an antribute of the peripheral device and gets notified whenever the attribute changes.

Now, if I "send" multiple 20 byte packets through this setup, wireshark shows me, that those value notifications are just about 7-10 ms apart. Each Notification contains 20 Bytes

Does that mean, that the connection interval does not apply for notifications and that each notification can hold max. 20 Bytes?

感谢&问候!

推荐答案

每个连接间隔只有一个连接事件.在每个连接事件中,可以彼此直接直接发送多个数据包.当没有一方可发送任何东西时,连接事件将关闭,并且下一个交换将在下一个连接间隔点进行.因此,可以在一个连接间隔内发送许多通知.

There is one connection event per connection interval. In each connection event multiple packets can be sent directly after each other. When no side has anything left to send, the connection event is closed and next exchange will occur at the next connection interval point. So yes, many notifications can be sent in one connection interval.

这篇关于蓝牙低功耗通知间隔的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆