Android低功耗蓝牙应用程序开始时获取到的蓝牙血压计所有服务的UUID如下所示:

08-28 09:05:48.488: D/BluetoothGatt(4251): onGetService() - Device=08:7C:BE:21:D1:24 UUID=00001800-0000-1000-8000-00805f9b34fb

08-28 09:05:48.489: D/BluetoothGatt(4251): onGetService() - Device=08:7C:BE:21:D1:24 UUID=0000 1801-0000-1000-8000-00805f9b34fb

08-28 09:05:48.490: D/BluetoothGatt(4251): onGetService() - Device=08:7C:BE:21:D1:24 UUID=ba11f08c-5f14-0b0d-10a0-007cbe21d124

08-28 09:05:48.491: D/BluetoothGatt(4251): onGetService() - Device=08:7C:BE:21:D1:24 UUID=0000cc03-0000-1000-8000-00805f9b34fb

总共4个服务UUID,其中“ba11f08c-5f14-0b0d-10a0-007cbe21d124”为血压测量服务的UUID,通过该UUID可获取其拥有的characteristics。

而1800和1801服务UUID为TI蓝牙协议栈的GATT层服务。TI协议栈在Components/ble/include/gatt_uuid.h文件中对应定义如下:


GATT的1800和1801服务的characteristic值如下:

08-28 09:05:48.492: D/BluetoothGatt(4251): onGetCharacteristic() - Device=08:7C:BE:21:D1:24 UUID=00002a00-0000-1000-8000-00805f9b34fb
08-28 09:05:48.494: D/BluetoothGatt(4251): onGetCharacteristic() - Device=08:7C:BE:21:D1:24 UUID=00002a01-0000-1000-8000-00805f9b34fb
08-28 09:05:48.495: D/BluetoothGatt(4251): onGetCharacteristic() - Device=08:7C:BE:21:D1:24 UUID=00002a02-0000-1000-8000-00805f9b34fb
08-28 09:05:48.495: D/BluetoothGatt(4251): onGetCharacteristic() - Device=08:7C:BE:21:D1:24 UUID=00002a04-0000-1000-8000-00805f9b34fb
08-28 09:05:48.496: D/BluetoothGatt(4251): onGetCharacteristic() - Device=08:7C:BE:21:D1:24 UUID=00002a03-0000-1000-8000-00805f9b34fb
08-28 09:05:48.498: D/BluetoothGatt(4251): onGetCharacteristic() - Device=08:7C:BE:21:D1:24 UUID=00002a05-0000-1000-8000-00805f9b34fb

其中0x2a05特征值为1801服务的characteristic,其余为1800服务的characteristic


对应在gatt_uuid.h文件中characteristics定义如下:



更多相关文章

  1. 使用BleLib的轻松搞定Android低功耗蓝牙Ble 4.0开发详解
  2. Android(安卓)系统服务的两种注册方式
  3. android全屏去掉title栏的多种实现方法
  4. Android输入管理_InputManager服务启动
  5. Android根据 uri 获得文件真实路径
  6. [Android(安卓)M] Bluedroid修改蓝牙默认名称
  7. Android中替换ExpandableListView控件前面的箭头图标
  8. Android官方命令深入分析之Device Monitor
  9. Android命令行测试BT,WIFI,Sensor工作状态

随机推荐

  1. MySQL binlog格式解析
  2. PostgreSQL自动备份批处理脚本
  3. 一步一步学MySQL----13 多表数据记录查询
  4. 解决用户 'sa' 登录失败。原因: 未与信任
  5. 如何首次配置postgresql ?
  6. 请问mysql中有没有类似math.max(1,2)这种
  7. RedHat6.0下源码安装MySQL5.5.27
  8. PB怎么将动态的sql语句以及数组。传给dat
  9. CentOS 6.7 x64 MySQL 5.7.9 编译安装
  10. mysql 中show 命令用法详细介绍 mysql过