BLE(Bluetooth Low Energy)---first part
来源:互联网 发布:人工智能与机器人技术 编辑:程序博客网 时间:2024/05/01 19:39
原文地址: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
- BLE/Bluetooth Low Energy
- Android:BLE(Bluetooth Low Energy)开发
- 蓝牙 BlueTooth Low Energy (BLE)
- 低功耗蓝牙Bluetooth Low Energy(BLE)
- Android-低功耗蓝牙BLE(Bluetooth Low Energy)开发
- Bluetooth Low Energy Advertising Bluetooth Low Energy (BLE) conserves power by remaining in sleep m
- Android5.0(Lollipop) 蓝牙BLE(Bluetooth Low Energy)
- 蓝牙低功耗(Bluetooth Low Energy)
- Bluetooth Low Energy(蓝牙低功耗)
- Android Bluetooth Low Energy
- Bluetooth Low Energy介绍
- Bluetooth Low Energy链路层
- Android-Bluetooth Low Energy
- Bluetooth Low Energy 嗅探
- BLE4.0-->Bluetooth low energy
- Linux and Bluetooth Low-Energy
- 《inside Bluetooth low energy》note_01
- C++ 11新特性 thread开放线程
- 正则表达式java实例
- 【转】Awesome Awesomeness
- 如何在命令行用mysqldump从远程数据库拷贝数据库中的所有数据以及用命令行运行拷贝出来的.sql文件
- Genymontion下载镜像慢的问题
- BLE(Bluetooth Low Energy)---first part
- 【Java数据结构与算法01】 | 第1章--综述(Java与C++区别)
- JSON数据简介
- 面试14:调整数组顺序使奇数位于偶数前面
- Release LIB is huge compared to debug
- 44. Wildcard Matching
- leetcode 44. Wildcard Matching
- 05.Spring 资源加载 - Resource
- 刮奖效果控件--ScratchView