BLE UUID
2015-11-04 20:01
525 查看
2.5.1 UUID
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 transferring 128-bit UUID values, a range of UUID values has been pre-allocated for assignment to often-used, registered purposes. The first UUID in this pre-allocated range is known as the
Bluetooth Base UUID and hasthe value 00000000-0000-1000-8000-00805F9B34FB, from the Bluetooth Assigned Numbers document. UUID values in the pre-allocated range have aliases that are represented as 16-bit or
32-bit values. These aliases are often called 16-bit and 32-bit UUIDs, but it is important to note that each actually represents a 128-bit UUID value.
The full 128-bit value of a 16-bit or 32-bit UUID may be computed by a simple arithmetic operation.
A 16-bit UUID may be converted to 32-bit UUID format by zero-extending the 16-bit value to 32-bits. Anequivalent method is to add the 16-bit UUID value to a zero-valued 32-bit UUID.
Note that two 16-bit UUIDs may be compared directly, as may two 32-bit UUIDs or two 128-bit UUIDs. If two UUIDs of differing sizes are to be compared, the shorter UUID must be converted to the longer UUID format before comparison.
资源:
Core_V4.0.pdf
gatt_uuid.h
低功耗蓝牙开发权威指南.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 transferring 128-bit UUID values, a range of UUID values has been pre-allocated for assignment to often-used, registered purposes. The first UUID in this pre-allocated range is known as the
Bluetooth Base UUID and hasthe value 00000000-0000-1000-8000-00805F9B34FB, from the Bluetooth Assigned Numbers document. UUID values in the pre-allocated range have aliases that are represented as 16-bit or
32-bit values. These aliases are often called 16-bit and 32-bit UUIDs, but it is important to note that each actually represents a 128-bit UUID value.
The full 128-bit value of a 16-bit or 32-bit UUID may be computed by a simple arithmetic operation.
128_bit_value = 16_bit_value * 2^96 + Bluetooth_Base_UUID 128_bit_value = 32_bit_value * 2^96 + Bluetooth_Base_UUID
A 16-bit UUID may be converted to 32-bit UUID format by zero-extending the 16-bit value to 32-bits. Anequivalent method is to add the 16-bit UUID value to a zero-valued 32-bit UUID.
Note that two 16-bit UUIDs may be compared directly, as may two 32-bit UUIDs or two 128-bit UUIDs. If two UUIDs of differing sizes are to be compared, the shorter UUID must be converted to the longer UUID format before comparison.
资源:
Core_V4.0.pdf
gatt_uuid.h
低功耗蓝牙开发权威指南.pdf
相关文章推荐
- iOS求生之路(四)UICollectionView的用法
- hdoj--1171--Number Sequence(KMP)
- hdoj--1171--Number Sequence(KMP)
- 修改IOS中UISearchBar的取消按钮背景、搜索内容输入文本框背景和UISearchBar的背景
- 《iOS Human Interface Guidelines》——Interactivity and Feedback
- 反射访问属性或方法时将Accessible设置为true
- UIView 实例方法 Instance Methods(转)
- UITableViewCell高亮时,其子视图中有高亮的对象也高亮了
- Fuel 多台物理机组成单控制节点
- java集合源码解读---Queu和Stack的数组和链式实现
- POJ1679-The Unique MST
- iOS监听UITextView、UITextField键盘删除键
- iOS--错误集锦--UI控件不显示原因之一
- 3D-Touch Home Screen Quick Actions 使用
- 移动UI/UX设计师和PM使用的原型工具
- iOS求生之路(三)(UIAlertView的用法)
- iphone 与 iPad在开发中的区别以及iPad中的UIPopoverController的使用
- iOS9 UIPopoverViewController
- Archive 创建报错问题
- iOS_通过UIBezierPath实现简单的画板功能