蓝牙UUID及其128位换算

本文介绍了蓝牙UUID的特性,包括其128位的唯一性以及预分配的16位和32位UUID。蓝牙Base UUID为00000000-0000-1000-8000-00805F9B34FB。16位和32位UUID可以通过特定公式转换为128位值。转换公式为:128_bit_value=short_uuid*2^96+Bluetooth_Base_UUID或128_bit_value=long_uuid*2^96+Bluetooth_Base_UUID。在蓝牙服务和属性验证中,UUID起着关键作用。
摘要由CSDN通过智能技术生成

最近一直在弄BLE设备与手机的连通,学习了uuid读取以及蓝牙UUID的换算。


摘自蓝牙核心规格文档《Core_V4.0.pdf》

A UUID is a universally unique identifier that is guaranteed to be unique across all space and all time.  UUIDs can be independently  created in a distributed fashion. No central registry of assigned UUIDs is required.  A UUID is a 128-bit value.
To reduce the burden of storing and tr ansferring 128-bit UUID values, a range of UUID values has been pre-allocated for assignment to often-used, regis-tered purposes. The first UUID in this  pre-allocated range  is known as the Bluetooth Base UUID and has the value 000000 00-0000-1000-8000-00805F9B34FB, from the Bluetooth  Assigned Numbers document. UUID val-ues in the pre-allocated range have aliases that are r

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值