BLE(Bluetooth Low Energy)---first part
2016-09-14 00:07
381 查看
原文地址:https://developer.android.com/guide/topics/connectivity/bluetooth-le.html#terms
(本人是技术宅,翻译时候,只要以简洁易懂为准,看过一部分后,如果感觉我翻译的不够文艺,文法,咋样咋样的,请不要往下看了,你可以去看原文了,就别在这儿浪费时间了~)
安卓4.3(api level>=18)引入了内置的平台支持低功耗设备。通过这套API,应用能发现设备,查询设备,读写一些特性(不知道该翻译成啥,先这样)。与传统蓝牙相比,低功耗的BLE提供了明显更少的耗电量。这允许安卓app和BLE设备在低电量要求下,例如,贴身的传感器,心率设备,健身设备等。
Key Terms and Concepts
一些概念性的东西先说下:Generic Attribute Profile (GATT)——GATT是一个发送和接收短距离数据的规范。所有低耗能应用基本上基于GATT。
蓝牙SIG为低耗能设备定义了很多规范。一个规范说明了一个设备该如何工作在应用中。一个设备可以实现很多个规范。例如,一个设备能包含心率设备和一个电池探测器。
Attribute Protocol (ATT)——GATT是构筑在ATT协议上的。经常俩货放在一起玩儿。ATT是被优化后跑在BLE设备上的。到结束的时候,它尽量使用更少的字节。每一个特性都是用UUID唯一标识的,用这个128位做唯一标识。这个特性被规范成了characteristics and services(下面再说这俩货) 。
Characteristic—一个特征包含一个单独的value和一个0-n的描述来描述特性的值。一个特性能被理解为一个类型,类似一个类。
Descriptor—描述被特性定义,用来形容一个特征的值。例如,一个描述可能被指定成一个人类可读的描述,一个特性可以接受的值的段,或者是一个特性的具体的值。
Service—一个服务是一个组特性的集合。例如,你可以有一组服务叫“”心率啥啥啥“”。里面包括心率测量特性。你可以再蓝牙4.0官网找到一些官方提供的服务。
先睡了,等中秋回家养肉的时候,再继续更。
相关文章推荐
- BLE(Bluetooth Low Energy)---first part
- 基于蓝牙4.0的蓝牙打印机 低耗电蓝牙 BLE (Bluetooth Low Energy)
- Android Bluetooth4.0(BLE是Bluetooth Low Energy的简称) 官方API
- 低功耗蓝牙Bluetooth Low Energy(BLE)
- How to Implement Bluetooth Low Energy (BLE) in Ice Cream Sandwich
- Android使用BLE(低功耗蓝牙,Bluetooth Low Energy)
- Android bluetooth low energy (ble) writeCharacteristic delay callback
- BLE/Bluetooth Low Energy
- Android:BLE(Bluetooth Low Energy)开发
- Android5.0(Lollipop) 蓝牙BLE(Bluetooth Low Energy)
- Android-低功耗蓝牙BLE(Bluetooth Low Energy)开发
- 蓝牙 BlueTooth Low Energy (BLE)
- Android-Bluetooth Low Energy(BLE)
- 《inside Bluetooth low energy》note_02
- Android as Bluetooth Low Energy Peripheral (GATT server).
- Android使用Bluetooth和Bluetooth Low Energy实现蓝牙以及蓝牙4.0,一行代码实现
- BLE4.0-->Bluetooth low energy
- Bluetooth Low Energy——蓝牙低功耗
- Bluetooth Low Energy(蓝牙低功耗)
- Bluetooth Low Energy 介绍 低功耗蓝牙介绍