• Android蓝牙UUID


    android 蓝牙UUID,蓝牙开发必备居家良药。
    ServiceDiscoveryServerServiceClassID_UUID = '{00001000-0000-1000-8000-00805F9B34FB}'
    BrowseGroupDescriptorServiceClassID_UUID = '{00001001-0000-1000-8000-00805F9B34FB}'
    PublicBrowseGroupServiceClass_UUID = '{00001002-0000-1000-8000-00805F9B34FB}'
    #蓝牙串口服务
    SerialPortServiceClass_UUID = '{00001101-0000-1000-8000-00805F9B34FB}'
    LANAccessUsingPPPServiceClass_UUID = '{00001102-0000-1000-8000-00805F9B34FB}'
    #拨号网络服务
    DialupNetworkingServiceClass_UUID = '{00001103-0000-1000-8000-00805F9B34FB}'
    #信息同步服务
    IrMCSyncServiceClass_UUID = '{00001104-0000-1000-8000-00805F9B34FB}'
    SDP_OBEXObjectPushServiceClass_UUID = '{00001105-0000-1000-8000-00805F9B34FB}'
    #文件传输服务
    OBEXFileTransferServiceClass_UUID = '{00001106-0000-1000-8000-00805F9B34FB}'
    IrMCSyncCommandServiceClass_UUID = '{00001107-0000-1000-8000-00805F9B34FB}'
    SDP_HeadsetServiceClass_UUID = '{00001108-0000-1000-8000-00805F9B34FB}'
    CordlessTelephonyServiceClass_UUID = '{00001109-0000-1000-8000-00805F9B34FB}'
    SDP_AudioSourceServiceClass_UUID = '{0000110A-0000-1000-8000-00805F9B34FB}'
    SDP_AudioSinkServiceClass_UUID = '{0000110B-0000-1000-8000-00805F9B34FB}'
    SDP_AVRemoteControlTargetServiceClass_UUID = '{0000110C-0000-1000-8000-00805F9B34FB}'
    SDP_AdvancedAudioDistributionServiceClass_UUID = '{0000110D-0000-1000-8000-00805F9B34FB}'
    SDP_AVRemoteControlServiceClass_UUID = '{0000110E-0000-1000-8000-00805F9B34FB}'
    VideoConferencingServiceClass_UUID = '{0000110F-0000-1000-8000-00805F9B34FB}'
    IntercomServiceClass_UUID = '{00001110-0000-1000-8000-00805F9B34FB}'
    #蓝牙传真服务
    FaxServiceClass_UUID = '{00001111-0000-1000-8000-00805F9B34FB}'
    HeadsetAudioGatewayServiceClass_UUID = '{00001112-0000-1000-8000-00805F9B34FB}'
    WAPServiceClass_UUID = '{00001113-0000-1000-8000-00805F9B34FB}'
    WAPClientServiceClass_UUID = '{00001114-0000-1000-8000-00805F9B34FB}'
    #个人局域网服务
    PANUServiceClass_UUID = '{00001115-0000-1000-8000-00805F9B34FB}'
    #个人局域网服务
    NAPServiceClass_UUID = '{00001116-0000-1000-8000-00805F9B34FB}'
    #个人局域网服务
    GNServiceClass_UUID = '{00001117-0000-1000-8000-00805F9B34FB}'
    DirectPrintingServiceClass_UUID = '{00001118-0000-1000-8000-00805F9B34FB}'
    ReferencePrintingServiceClass_UUID = '{00001119-0000-1000-8000-00805F9B34FB}'
    ImagingServiceClass_UUID = '{0000111A-0000-1000-8000-00805F9B34FB}'
    ImagingResponderServiceClass_UUID = '{0000111B-0000-1000-8000-00805F9B34FB}'
    ImagingAutomaticArchiveServiceClass_UUID = '{0000111C-0000-1000-8000-00805F9B34FB}'
    ImagingReferenceObjectsServiceClass_UUID = '{0000111D-0000-1000-8000-00805F9B34FB}'
    SDP_HandsfreeServiceClass_UUID = '{0000111E-0000-1000-8000-00805F9B34FB}'
    HandsfreeAudioGatewayServiceClass_UUID = '{0000111F-0000-1000-8000-00805F9B34FB}'
    DirectPrintingReferenceObjectsServiceClass_UUID = '{00001120-0000-1000-8000-00805F9B34FB}'
    ReflectedUIServiceClass_UUID = '{00001121-0000-1000-8000-00805F9B34FB}'
    BasicPringingServiceClass_UUID = '{00001122-0000-1000-8000-00805F9B34FB}'
    PrintingStatusServiceClass_UUID = '{00001123-0000-1000-8000-00805F9B34FB}'
    #人机输入服务
    HumanInterfaceDeviceServiceClass_UUID = '{00001124-0000-1000-8000-00805F9B34FB}'
    HardcopyCableReplacementServiceClass_UUID = '{00001125-0000-1000-8000-00805F9B34FB}'
    #蓝牙打印服务
    HCRPrintServiceClass_UUID = '{00001126-0000-1000-8000-00805F9B34FB}'
    HCRScanServiceClass_UUID = '{00001127-0000-1000-8000-00805F9B34FB}'
    CommonISDNAccessServiceClass_UUID = '{00001128-0000-1000-8000-00805F9B34FB}'
    VideoConferencingGWServiceClass_UUID = '{00001129-0000-1000-8000-00805F9B34FB}'
    UDIMTServiceClass_UUID = '{0000112A-0000-1000-8000-00805F9B34FB}'
    UDITAServiceClass_UUID = '{0000112B-0000-1000-8000-00805F9B34FB}'
    AudioVideoServiceClass_UUID = '{0000112C-0000-1000-8000-00805F9B34FB}'
    SIMAccessServiceClass_UUID = '{0000112D-0000-1000-8000-00805F9B34FB}'
    PnPInformationServiceClass_UUID = '{00001200-0000-1000-8000-00805F9B34FB}'
    GenericNetworkingServiceClass_UUID = '{00001201-0000-1000-8000-00805F9B34FB}'
    GenericFileTransferServiceClass_UUID = '{00001202-0000-1000-8000-00805F9B34FB}'
    GenericAudioServiceClass_UUID = '{00001203-0000-1000-8000-00805F9B34FB}'
    GenericTelephonyServiceClass_UUID = '{00001204-0000-1000-8000-00805F9B34FB}'
    ==========================================
    今天找了一下 關於 Bluetooth 的標準 Service/Profile 的 UUID ,但是看了一下 Specification Doucments 都只有 16bits 長,這是所謂的UUID16格式
    後來才了解,原來Bluetooth 將UUID 的部份固定,只取16bits 作為各種 Service 的區分,這樣可以節省分析 SDP Record and 與程式空間,避免增加 Bluetooth Device 的成本。
    地下的值可以從 windows XP or Server 2003 SDK 的 bt_sdp.h or BlueZ 的 sdp.h(UUID16) 中找到定義,可以觀察出 下列的固定序列除了替換 XXXX部份
    '{0000xxxx-0000-1000-8000-00805F9B34FB}',而XXXX 部份就是 所謂的 UUID16 定義。
    Protocols UUID http://www.bluetooth.org/assigned-numbers/sdp.htm
    BASE UUID 00000000-0000-1000-8000-00805F9B34FB
    SDP_PROTOCOL_UUID         = '{00000001-0000-1000-8000-00805F9B34FB}';
    UDP_PROTOCOL_UUID         = '{00000002-0000-1000-8000-00805F9B34FB}';
    RFCOMM_PROTOCOL_UUID      = '{00000003-0000-1000-8000-00805F9B34FB}';
    TCP_PROTOCOL_UUID         = '{00000004-0000-1000-8000-00805F9B34FB}';
    TCSBIN_PROTOCOL_UUID      = '{00000005-0000-1000-8000-00805F9B34FB}';
    TCSAT_PROTOCOL_UUID       = '{00000006-0000-1000-8000-00805F9B34FB}';
    OBEX_PROTOCOL_UUID        = '{00000008-0000-1000-8000-00805F9B34FB}';
    IP_PROTOCOL_UUID          = '{00000009-0000-1000-8000-00805F9B34FB}';
    FTP_PROTOCOL_UUID         = '{0000000A-0000-1000-8000-00805F9B34FB}';
    HTTP_PROTOCOL_UUID        = '{0000000C-0000-1000-8000-00805F9B34FB}';
    WSP_PROTOCOL_UUID         = '{0000000E-0000-1000-8000-00805F9B34FB}';
    BNEP_PROTOCOL_UUID        = '{0000000F-0000-1000-8000-00805F9B34FB}';
    UPNP_PROTOCOL_UUID        = '{00000010-0000-1000-8000-00805F9B34FB}';
    HID_PROTOCOL_UUID         = '{00000011-0000-1000-8000-00805F9B34FB}';
    HCCC_PROTOCOL_UUID        = '{00000012-0000-1000-8000-00805F9B34FB}';
    HCDC_PROTOCOL_UUID        = '{00000014-0000-1000-8000-00805F9B34FB}';
    HN_PROTOCOL_UUID          = '{00000016-0000-1000-8000-00805F9B34FB}';
    AVCTP_PROTOCOL_UUID       = '{00000017-0000-1000-8000-00805F9B34FB}';
    AVDTP_PROTOCOL_UUID       = '{00000019-0000-1000-8000-00805F9B34FB}';
    CMPT_PROTOCOL_UUID        = '{0000001B-0000-1000-8000-00805F9B34FB}';
    UDI_C_PLANE_PROTOCOL_UUID = '{0000001D-0000-1000-8000-00805F9B34FB}';
    L2CAP_PROTOCOL_UUID       = '{00000100-0000-1000-8000-00805F9B34FB}';
    Ref. Service class IDs http://www.bluetooth.org/assigned-numbers/sdp.htm
    ServiceDiscoveryServerServiceClassID_UUID       = '{00001000-0000-1000-8000-00805F9B34FB}';
    BrowseGroupDescriptorServiceClassID_UUID        = '{00001001-0000-1000-8000-00805F9B34FB}';
    PublicBrowseGroupServiceClass_UUID              = '{00001002-0000-1000-8000-00805F9B34FB}';
    SerialPortServiceClass_UUID                     = '{00001101-0000-1000-8000-00805F9B34FB}';
    LANAccessUsingPPPServiceClass_UUID              = '{00001102-0000-1000-8000-00805F9B34FB}';
    DialupNetworkingServiceClass_UUID               = '{00001103-0000-1000-8000-00805F9B34FB}';
    IrMCSyncServiceClass_UUID                       = '{00001104-0000-1000-8000-00805F9B34FB}';
    OBEXObjectPushServiceClass_UUID                 = '{00001105-0000-1000-8000-00805F9B34FB}';
    OBEXFileTransferServiceClass_UUID               = '{00001106-0000-1000-8000-00805F9B34FB}';
    IrMCSyncCommandServiceClass_UUID                = '{00001107-0000-1000-8000-00805F9B34FB}';
    HeadsetServiceClass_UUID                        = '{00001108-0000-1000-8000-00805F9B34FB}';
    CordlessTelephonyServiceClass_UUID              = '{00001109-0000-1000-8000-00805F9B34FB}';
    AudioSourceServiceClass_UUID                    = '{0000110A-0000-1000-8000-00805F9B34FB}';
    AudioSinkServiceClass_UUID                      = '{0000110B-0000-1000-8000-00805F9B34FB}';
    AVRemoteControlTargetServiceClass_UUID          = '{0000110C-0000-1000-8000-00805F9B34FB}';
    AdvancedAudioDistributionServiceClass_UUID      = '{0000110D-0000-1000-8000-00805F9B34FB}';
    AVRemoteControlServiceClass_UUID                = '{0000110E-0000-1000-8000-00805F9B34FB}';
    VideoConferencingServiceClass_UUID              = '{0000110F-0000-1000-8000-00805F9B34FB}';
    IntercomServiceClass_UUID                       = '{00001110-0000-1000-8000-00805F9B34FB}';
    FaxServiceClass_UUID                            = '{00001111-0000-1000-8000-00805F9B34FB}';
    HeadsetAudioGatewayServiceClass_UUID            = '{00001112-0000-1000-8000-00805F9B34FB}';
    WAPServiceClass_UUID                            = '{00001113-0000-1000-8000-00805F9B34FB}';
    WAPClientServiceClass_UUID                      = '{00001114-0000-1000-8000-00805F9B34FB}';
    PANUServiceClass_UUID                           = '{00001115-0000-1000-8000-00805F9B34FB}';
    NAPServiceClass_UUID                            = '{00001116-0000-1000-8000-00805F9B34FB}';
    GNServiceClass_UUID                             = '{00001117-0000-1000-8000-00805F9B34FB}';
    DirectPrintingServiceClass_UUID                 = '{00001118-0000-1000-8000-00805F9B34FB}';
    ReferencePrintingServiceClass_UUID              = '{00001119-0000-1000-8000-00805F9B34FB}';
    ImagingServiceClass_UUID                        = '{0000111A-0000-1000-8000-00805F9B34FB}';
    ImagingResponderServiceClass_UUID               = '{0000111B-0000-1000-8000-00805F9B34FB}';
    ImagingAutomaticArchiveServiceClass_UUID        = '{0000111C-0000-1000-8000-00805F9B34FB}';
    ImagingReferenceObjectsServiceClass_UUID        = '{0000111D-0000-1000-8000-00805F9B34FB}';
    HandsfreeServiceClass_UUID                      = '{0000111E-0000-1000-8000-00805F9B34FB}';
    HandsfreeAudioGatewayServiceClass_UUID          = '{0000111F-0000-1000-8000-00805F9B34FB}';
    DirectPrintingReferenceObjectsServiceClass_UUID = '{00001120-0000-1000-8000-00805F9B34FB}';
    ReflectedUIServiceClass_UUID                    = '{00001121-0000-1000-8000-00805F9B34FB}';
    BasicPringingServiceClass_UUID                  = '{00001122-0000-1000-8000-00805F9B34FB}';
    PrintingStatusServiceClass_UUID                 = '{00001123-0000-1000-8000-00805F9B34FB}';
    HumanInterfaceDeviceServiceClass_UUID           = '{00001124-0000-1000-8000-00805F9B34FB}';
    HardcopyCableReplacementServiceClass_UUID       = '{00001125-0000-1000-8000-00805F9B34FB}';
    HCRPrintServiceClass_UUID                       = '{00001126-0000-1000-8000-00805F9B34FB}';
    HCRScanServiceClass_UUID                        = '{00001127-0000-1000-8000-00805F9B34FB}';
    CommonISDNAccessServiceClass_UUID               = '{00001128-0000-1000-8000-00805F9B34FB}';
    VideoConferencingGWServiceClass_UUID            = '{00001129-0000-1000-8000-00805F9B34FB}';
    UDIMTServiceClass_UUID                          = '{0000112A-0000-1000-8000-00805F9B34FB}';
    UDITAServiceClass_UUID                          = '{0000112B-0000-1000-8000-00805F9B34FB}';
    AudioVideoServiceClass_UUID                     = '{0000112C-0000-1000-8000-00805F9B34FB}';
    PnPInformationServiceClass_UUID                 = '{00001200-0000-1000-8000-00805F9B34FB}';
    GenericNetworkingServiceClass_UUID              = '{00001201-0000-1000-8000-00805F9B34FB}';
    GenericFileTransferServiceClass_UUID            = '{00001202-0000-1000-8000-00805F9B34FB}';
    GenericAudioServiceClass_UUID                   = '{00001203-0000-1000-8000-00805F9B34FB}';
    GenericAudioServiceClass_UUID                   = '{00001203-0000-1000-8000-00805F9B34FB}';
    GenericTelephonyServiceClass_UUID               = '{00001204-0000-1000-8000-00805F9B34FB}';
    UPnPServiceClass_UUID                           = '{00001205-0000-1000-8000-00805F9B34FB}';
    UPnPIpServiceClass_UUID                         = '{00001206-0000-1000-8000-00805F9B34FB}';
    ESdpUPnPIpPanServiceClass_UUID                  = '{00001300-0000-1000-8000-00805F9B34FB}';
    ESdpUPnPIpLapServiceClass_UUID                  = '{00001301-0000-1000-8000-00805F9B34FB}';
    EdpUPnpIpL2CAPServiceClass_UUID                 = '{00001302-0000-1000-8000-00805F9B34FB}';
    ============================================================
    http://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 .
    Documents
    SpecificationName
    SpecificationType
    AssignedNumber
    SpecificationLevel
    Alert Notification Service org.bluetooth.service.alert_notification 0x1811 Adopted
    Battery Service org.bluetooth.service.battery_service 0x180F Adopted
    Blood Pressure org.bluetooth.service.blood_pressure 0x1810 Adopted
    Current Time Service org.bluetooth.service.current_time 0x1805 Adopted
    Device Information org.bluetooth.service.device_information 0x180A Adopted
    Generic Access org.bluetooth.service.generic_access 0x1800 Adopted
    Generic Attribute org.bluetooth.service.generic_attribute 0x1801 Adopted
    Glucose org.bluetooth.service.glucose 0x1808 Adopted
    Health Thermometer org.bluetooth.service.health_thermometer 0x1809 Adopted
    Heart Rate org.bluetooth.service.heart_rate 0x180D Adopted
    Human Interface Device org.bluetooth.service.human_interface_device 0x1812 Adopted
    Immediate Alert org.bluetooth.service.immediate_alert 0x1802 Adopted
    Link Loss org.bluetooth.service.link_loss 0x1803 Adopted
    Next DST Change Service org.bluetooth.service.next_dst_change 0x1807 Adopted
    Phone Alert Status Service org.bluetooth.service.phone_alert_status 0x180E Adopted
    Reference Time Update Service org.bluetooth.service.reference_time_update 0x1806 Adopted
    Scan Parameters org.bluetooth.service.scan_parameters 0x1813 Adopted
    Tx Power org.bluetooth.service.tx_power 0x1804 Adopted

  • 相关阅读:
    设计模式-代理模式
    设计模式-策略模式
    设计模式-单例模式
    优先队列
    n!中质因子个数
    计算组合数
    高精度
    memset用法
    质因子分解
    素数筛法
  • 原文地址:https://www.cnblogs.com/luwenbin/p/3092720.html
Copyright © 2020-2023  润新知