Original URL: http://blog.csdn.net/zhangjs0322/article/details/39048939
Android Low power Bluetooth app get started when getting to the Bluetooth sphygmomanometer all the services of the UUID are as follows:
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= 00001801-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
A total of 4 service uuid, where "ba11f08c-5f14-0b0d-10a0-007cbe21d124" is the uuid of the blood pressure measurement service, through which the UUID can obtain its own characteristics.
The 1800 and 1801 service UUID is the GATT layer service of TI Bluetooth protocol stack. The TI protocol stack corresponds to the following definition in the Components/ble/include/gatt_uuid.h file:
The characteristic values for the 1800 and 1801 services of GATT are as follows:
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
Where the 0x2a05 eigenvalues are 1801 service characteristic, the remainder is the characteristic of the 1800 service.
The corresponding characteristics definition in the Gatt_uuid.h file is as follows:
"Turn" Android low-Power Bluetooth application development gets the service UUID