BLE UUID记录

来源:互联网 发布:淘宝多少天可换货 编辑:程序博客网 时间:2024/06/05 16:05

// Simple Profile Service UUID#define SIMPLEPROFILE_SERV_UUID               0xFFF0    // Key Pressed UUID#define SIMPLEPROFILE_CHAR1_UUID            0xFFF1#define SIMPLEPROFILE_CHAR2_UUID            0xFFF2#define SIMPLEPROFILE_CHAR3_UUID            0xFFF3#define SIMPLEPROFILE_CHAR4_UUID            0xFFF4#define SIMPLEPROFILE_CHAR5_UUID            0xFFF5



// Device Information Service UUIDs#define DEVINFO_SERV_UUID                 0x180A    // Service UUID#define DEVINFO_SYSTEM_ID_UUID            0x2A23    // System ID#define DEVINFO_MODEL_NUMBER_UUID         0x2A24    // Model Number String#define DEVINFO_SERIAL_NUMBER_UUID        0x2A25    // Serial Number String#define DEVINFO_FIRMWARE_REV_UUID         0x2A26    // Firmware Revision String#define DEVINFO_HARDWARE_REV_UUID         0x2A27    // Hardware Revision String#define DEVINFO_SOFTWARE_REV_UUID         0x2A28    // Software Revision String#define DEVINFO_MANUFACTURER_NAME_UUID    0x2A29    // Manufacturer Name String#define DEVINFO_11073_CERT_DATA_UUID      0x2A2A    // IEEE 11073-20601 Regulatory Certification Data List#define DEVINFO_PNP_ID_UUID               0x2A50    // PnP ID



在CC2541写的简单例程里,看到UUID,

在iOS开发中又需要用到,所以查询了下蓝牙官网内容,贴在下图:


https://developer.bluetooth.org/gatt/services/Pages/ServicesHome.aspx

Services

Services are collections of characteristics and relationships to other services that encapsulate the behavior of part of a device.

The material contained on this page is informative only. Authoritative compliance information is contained in the applicable Bluetooth specification .

Single XML Download

SpecificationType
SpecificationLevel
Open Menu
Alert Notification Serviceorg.bluetooth.service.alert_notification0x1811AdoptedBattery Serviceorg.bluetooth.service.battery_service0x180FAdoptedBlood Pressureorg.bluetooth.service.blood_pressure0x1810AdoptedBody Compositionorg.bluetooth.service.body_composition0x181BAdoptedBond Managementorg.bluetooth.service.bond_management0x181EAdoptedContinuous Glucose Monitoringorg.bluetooth.service.continuous_glucose_monitoring0x181FAdoptedCurrent Time Serviceorg.bluetooth.service.current_time0x1805AdoptedCycling Powerorg.bluetooth.service.cycling_power0x1818AdoptedCycling Speed and Cadenceorg.bluetooth.service.cycling_speed_and_cadence0x1816AdoptedDevice Informationorg.bluetooth.service.device_information0x180AAdoptedEnvironmental Sensingorg.bluetooth.service.environmental_sensing0x181AAdoptedGeneric Accessorg.bluetooth.service.generic_access0x1800AdoptedGeneric Attributeorg.bluetooth.service.generic_attribute0x1801AdoptedGlucoseorg.bluetooth.service.glucose0x1808AdoptedHealth Thermometerorg.bluetooth.service.health_thermometer0x1809AdoptedHeart Rateorg.bluetooth.service.heart_rate0x180DAdoptedHuman Interface Deviceorg.bluetooth.service.human_interface_device0x1812AdoptedImmediate Alertorg.bluetooth.service.immediate_alert0x1802AdoptedInternet Protocol Supportorg.bluetooth.service.internet_protocol_support0x1820AdoptedLink Lossorg.bluetooth.service.link_loss0x1803AdoptedLocation and Navigationorg.bluetooth.service.location_and_navigation0x1819AdoptedNext DST Change Serviceorg.bluetooth.service.next_dst_change0x1807AdoptedPhone Alert Status Serviceorg.bluetooth.service.phone_alert_status0x180EAdoptedReference Time Update Serviceorg.bluetooth.service.reference_time_update0x1806AdoptedRunning Speed and Cadenceorg.bluetooth.service.running_speed_and_cadence0x1814AdoptedScan Parametersorg.bluetooth.service.scan_parameters0x1813AdoptedTx Powerorg.bluetooth.service.tx_power0x1804AdoptedUser Dataorg.bluetooth.service.user_data0x181CAdoptedWeight Scaleorg.bluetooth.service.weight_scale0x181DAdopted
点击之后会有详情,比如:

Name: Device Information

Type: org.bluetooth.service.device_informationDownload / View

Assigned Number: 0x180A


Abstract:

The Device Information Service exposes manufacturer and/or vendor information about a device.

Summary:

This service exposes manufacturer information about a device. The Device Information Service is instantiated as a Primary Service. Only one instance of the Device Information Service is exposed on a device.

Service Dependencies

This service is not dependent upon any other services.

Transport Dependencies

TransportSupportedClassictrueLow Energytrue

Error Codes

This service does not define any application error codes that are used in Attribute Protocol.

Service Characteristics

OverviewPropertiesSecurityDescriptorsName:Manufacturer Name StringDescription:This characteristic represents the name of the manufacturer of the device.Type:org.bluetooth.characteristic.manufacturer_name_stringRequirement:OptionalPropertyRequirementReadMandatoryWriteExcludedWriteWithoutResponseExcludedSignedWriteExcludedNotifyExcludedIndicateExcludedWritableAuxiliariesExcludedBroadcastExcludedExtendedProperties NoneNoneName:Model Number StringDescription:This characteristic represents the model number that is assigned by the device vendor.Type:org.bluetooth.characteristic.model_number_stringRequirement:OptionalPropertyRequirementReadMandatoryWriteExcludedWriteWithoutResponseExcludedSignedWriteExcludedNotifyExcludedIndicateExcludedWritableAuxiliariesExcludedBroadcastExcludedExtendedProperties NoneNoneName:Serial Number StringDescription:This characteristic represents the serial number for a particular instance of the device.Type:org.bluetooth.characteristic.serial_number_stringRequirement:OptionalPropertyRequirementReadMandatoryWriteExcludedWriteWithoutResponseExcludedSignedWriteExcludedNotifyExcludedIndicateExcludedWritableAuxiliariesExcludedBroadcastExcludedExtendedProperties NoneNoneName:Hardware Revision StringDescription:This characteristic represents the hardware revision for the hardware within the device.Type:org.bluetooth.characteristic.hardware_revision_stringRequirement:OptionalPropertyRequirementReadMandatoryWriteExcludedWriteWithoutResponseExcludedSignedWriteExcludedNotifyExcludedIndicateExcludedWritableAuxiliariesExcludedBroadcastExcludedExtendedProperties NoneNoneName:Firmware Revision StringDescription:This characteristic represents the firmware revision for the firmware within the device.Type:org.bluetooth.characteristic.firmware_revision_stringRequirement:OptionalPropertyRequirementReadMandatoryWriteExcludedWriteWithoutResponseExcludedSignedWriteExcludedNotifyExcludedIndicateExcludedWritableAuxiliariesExcludedBroadcastExcludedExtendedProperties NoneNoneName:Software Revision StringDescription:This characteristic represents the software revision for the software within the device.Type:org.bluetooth.characteristic.software_revision_stringRequirement:OptionalPropertyRequirementReadMandatoryWriteExcludedWriteWithoutResponseExcludedSignedWriteExcludedNotifyExcludedIndicateExcludedWritableAuxiliariesExcludedBroadcastExcludedExtendedProperties NoneNoneName:System IDDescription:This characteristic represents a structure containing an Organizationally Unique Identifier (OUI) followed by a manufacturer-defined identifier and is unique for each individual instance of the product.Type:org.bluetooth.characteristic.system_idRequirement:OptionalPropertyRequirementReadMandatoryWriteExcludedWriteWithoutResponseExcludedSignedWriteExcludedNotifyExcludedIndicateExcludedWritableAuxiliariesExcludedBroadcastExcludedExtendedProperties NoneNoneName:IEEE 11073-20601 Regulatory Certification Data ListDescription:This characteristic represents regulatory and certification information for the product in a list defined in IEEE 11073-20601.Type:org.bluetooth.characteristic.ieee_11073-20601_regulatory_certification_data_listRequirement:OptionalPropertyRequirementReadMandatoryWriteExcludedWriteWithoutResponseExcludedSignedWriteExcludedNotifyExcludedIndicateExcludedWritableAuxiliariesExcludedBroadcastExcludedExtendedProperties NoneNoneName:PnP IDDescription:The PnP_ID characteristic is a set of values used to create a device ID value that is unique for this device.Type:org.bluetooth.characteristic.pnp_idRequirement:OptionalPropertyRequirementReadMandatoryWriteExcludedWriteWithoutResponseExcludedSignedWriteExcludedNotifyExcludedIndicateExcludedWritableAuxiliariesExcludedBroadcastExcludedExtendedProperties NoneNone

// Device Information Service UUIDs#define DEVINFO_SERV_UUID                 0x180A    // Service UUID#define DEVINFO_SYSTEM_ID_UUID            0x2A23    // System ID#define DEVINFO_MODEL_NUMBER_UUID         0x2A24    // Model Number String#define DEVINFO_SERIAL_NUMBER_UUID        0x2A25    // Serial Number String#define DEVINFO_FIRMWARE_REV_UUID         0x2A26    // Firmware Revision String#define DEVINFO_HARDWARE_REV_UUID         0x2A27    // Hardware Revision String#define DEVINFO_SOFTWARE_REV_UUID         0x2A28    // Software Revision String#define DEVINFO_MANUFACTURER_NAME_UUID    0x2A29    // Manufacturer Name String#define DEVINFO_11073_CERT_DATA_UUID      0x2A2A    // IEEE 11073-20601 Regulatory Certification Data List#define DEVINFO_PNP_ID_UUID               0x2A50    // PnP ID

0 0
原创粉丝点击