Is there a minimum device name length for BLE 4.0 advertising local name complete?

前提是你 提交于 2021-01-28 22:44:24

问题


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

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.


回答1:


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

...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.

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.



来源:https://stackoverflow.com/questions/39629289/is-there-a-minimum-device-name-length-for-ble-4-0-advertising-local-name-complet

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!