BLE 4.0广告本地名称的最小设备名称长度是否完整? [英] Is there a minimum device name length for BLE 4.0 advertising local name complete?

查看:117
本文介绍了BLE 4.0广告本地名称的最小设备名称长度是否完整?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于BLE广告类型LOCAL_NAME_COMPLETE,是否有最小长度要求?

For BLE advertising type LOCAL_NAME_COMPLETE, is there a minimum length requirement?

我在规范中找不到任何长度规格(除了它需要适合31字节的广告包减去广告包中已经存在的其他内容),但是似乎遇到了一个问题.我想在这里确认.

I could not find any length specification in the spec (other than it needs to fit in the advertising packet of 31 bytes minus anything else already in the advertisement packet), but am running into an issue where it may seem that there is. I wanted to confirm here.

推荐答案

根据

According to the BLUETOOTH SPECIFICATION Version 4.0 [Vol 3] section 12.1:

...设备名称"特征值的长度应为0到248个八位位组.一种设备应仅具有设备名称特征的一个实例.

...The Device Name characteristic value shall be 0 to 248 octets in length. A device shall have only one instance of the Device Name characteristic.

但是由于AD数据包被限制为31个字节,所以我想如果它太大,则应该广播简称而不是全名(不同的AD类型)

But since the AD packet is limited to 31 bytes then I guess that if it's too big then one should broadcast the shortened name instead of full name (different AD types)

因此,似乎对最小大小没有限制.希望能有所帮助.

So it seems like there is no limitations on a minimum size. Hope it helped.

这篇关于BLE 4.0广告本地名称的最小设备名称长度是否完整?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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