"Turn" Android low-Power Bluetooth application development gets the service UUID

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.