Human Interface Device(GATT)

Name: Human Interface Device

Type: org.bluetooth.service.human_interface_device 

Assigned Number: 0x1812


Abstract:

This service exposes the HID reports and other HID data intended for HID Hosts and HID Devices.

Summary:

The HID Service exposes characteristics required for a HID Device to transfer HID report descriptors and reports to a HID Host. This also exposes the characteristics for a HID Host to write to a Device. The Human Interface Device Service is instantiated as a Primary Service.

Service Dependencies

This service has no dependencies on other GATT-based services.

GATT Requirements

Sub-ProcedureServer Requirement
Read Long Characteristic ValueMandatory
Write Without ResponseMandatory
Write Characteristic ValueMandatory
NotificationsMandatory
Read Characteristic DescriptorsMandatory
Write Characteristic DescriptorsMandatory

Transport Dependencies

TransportSupported
Classicfalse
Low Energytrue
High Speed 

Error Codes

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

Service Characteristics

OverviewPropertiesSecurityDescriptors
Name:
Protocol Mode
Description:
The Protocol Mode characteristic is used to expose the current protocol mode of the HID Service with which it is associated, or to set the desired protocol mode of the HID Service

Only a single instance of this characteristic shall exist as part of the HID Service.

C4: Mandatory for HID Devices supporting Boot Protocol Mode, otherwise optional.

Type:
org.bluetooth.characteristic.protocol_mode
Requirement:
C4
PropertyRequirement
ReadMandatory
WriteExcluded
WriteWithoutResponseMandatory
SignedWriteExcluded
NotifyExcluded
IndicateExcluded
WritableAuxiliariesExcluded
BroadcastExcluded
ExtendedProperties 
NoneNone
Name:
Report
Description:

The Report characteristic is used to exchange data between a HID Device and a HID Host.

Note: Mandatory to support at least one Report Type (Input Report, Output Report, or Feature Report) if the Report characteristic is supported.

Type:
org.bluetooth.characteristic.report
Requirement:
Optional
Conditional Description:
For Input Reports:
PropertyRequirement
ReadMandatory
WriteOptional
WriteWithoutResponseExcluded
SignedWriteExcluded
NotifyMandatory
IndicateExcluded
WritableAuxiliariesExcluded
BroadcastExcluded
ExtendedProperties 
Conditional Description:
For Output Reports:
PropertyRequirement
ReadMandatory
WriteMandatory
WriteWithoutResponseMandatory
SignedWriteExcluded
NotifyExcluded
IndicateExcluded
WritableAuxiliariesExcluded
BroadcastExcluded
ExtendedProperties 
Conditional Description:
For Feature Reports:
PropertyRequirement
ReadMandatory
WriteMandatory
WriteWithoutResponseExcluded
SignedWriteExcluded
NotifyExcluded
IndicateExcluded
WritableAuxiliariesExcluded
BroadcastExcluded
ExtendedProperties 
None
OverviewPermissions
Name:
Client Characteristic Configuration
Type:
org.bluetooth.descriptor.gatt.client_characteristic_configuration
Requirement:
if_notify_or_indicate_supported
PermissionRequirement
ReadMandatory
WriteMandatory
Name:
Report Reference
Type:
org.bluetooth.descriptor.report_reference
Description:
The Report Reference characteristic descriptor is used to provide the Report ID and Report Type for the Report characteristic value.
Requirement:
if_characteristic_supported
PermissionRequirement
ReadMandatory
WriteExcluded
Name:
Report Map
Description:
The Report Map characteristic value contains formatting and other information for Input Report, Output Report and Feature Report data transferred between a HID Device and HID Host.
Type:
org.bluetooth.characteristic.report_map
Requirement:
Mandatory
PropertyRequirement
ReadMandatory
WriteExcluded
WriteWithoutResponseExcluded
SignedWriteExcluded
NotifyExcluded
IndicateExcluded
WritableAuxiliariesExcluded
BroadcastExcluded
ExtendedProperties 
None
OverviewPermissions
Name:
External Report Reference
Type:
org.bluetooth.descriptor.external_report_reference
Requirement:
Optional
PermissionRequirement
ReadMandatory
WriteExcluded
Name:
Boot Keyboard Input Report
Description:

The Boot Report Reference characteristic is used to provide HID Hosts operating in Boot Protocol Mode with a simplified method of discovering certain HID Service characteristics. Only a single instance of this characteristic exists as part of the HID Service.

C2: Mandatory for HID Devices operating as keyboards, else excluded.

Type:
org.bluetooth.characteristic.boot_keyboard_input_report
Requirement:
C2
PropertyRequirement
ReadMandatory
WriteOptional
WriteWithoutResponseExcluded
SignedWriteExcluded
NotifyMandatory
IndicateExcluded
WritableAuxiliariesExcluded
BroadcastExcluded
ExtendedProperties 
None
OverviewPermissions
Name:
Client Characteristic Configuration
Type:
org.bluetooth.descriptor.gatt.client_characteristic_configuration
Requirement:
Mandatory
PermissionRequirement
ReadMandatory
WriteMandatory
Name:
Boot Keyboard Output Report
Description:

The Boot Report Reference characteristic is used to provide HID Hosts operating in Boot Protocol Mode with a simplified method of discovering certain HID Service characteristics. Only a single instance of this characteristic exists as part of the HID Service.

C2: Mandatory for HID Devices operating as keyboards, else excluded.

Type:
org.bluetooth.characteristic.boot_keyboard_output_report
Requirement:
C2
PropertyRequirement
ReadMandatory
WriteMandatory
WriteWithoutResponseMandatory
SignedWriteExcluded
NotifyExcluded
IndicateExcluded
WritableAuxiliariesExcluded
BroadcastExcluded
ExtendedProperties 
NoneNone
Name:
Boot Mouse Input Report
Description:

The Boot Report Reference characteristic is used to provide HID Hosts operating in Boot Protocol Mode with a simplified method of discovering certain HID Service characteristics. Only a single instance of this characteristic exists as part of the HID Service.

C3:Mandatory for HID Devices operating as mice, else excluded.

Type:
org.bluetooth.characteristic.boot_mouse_input_report
Requirement:
C3
PropertyRequirement
ReadMandatory
WriteOptional
WriteWithoutResponseExcluded
SignedWriteExcluded
NotifyMandatory
IndicateExcluded
WritableAuxiliariesExcluded
BroadcastExcluded
ExtendedProperties 
None
OverviewPermissions
Name:
Client Characteristic Configuration
Type:
org.bluetooth.descriptor.gatt.client_characteristic_configuration
Requirement:
Mandatory
PermissionRequirement
ReadMandatory
WriteMandatory
Name:
HID Information
Description:
The HID Information characteristic is used to hold a set of values known as the HID Device’s HID Attributes
Type:
org.bluetooth.characteristic.hid_information
Requirement:
Mandatory
PropertyRequirement
ReadMandatory
WriteExcluded
WriteWithoutResponseExcluded
SignedWriteExcluded
NotifyExcluded
IndicateExcluded
WritableAuxiliariesExcluded
BroadcastExcluded
ExtendedProperties 
NoneNone
Name:
HID Control Point
Description:
The HID Control Point characteristic is a control-point attribute that defines the following HID Commands when written:

• Suspend ( Refer to Section 7.4.2, Bluetooth HID Profile Specification 1.0)

• Exit Suspend (Refer to Section 7.4.2, Bluetooth HID Profile Specification 1.0)

There are no response codes defined for the Suspend and Exit Suspend commands.
Type:
org.bluetooth.characteristic.hid_control_point
Requirement:
Mandatory
PropertyRequirement
ReadExcluded
WriteExcluded
WriteWithoutResponseMandatory
SignedWriteExcluded
NotifyExcluded
IndicateExcluded
WritableAuxiliariesExcluded
BroadcastExcluded
ExtendedProperties 
NoneNone


Name: Protocol Mode

Type: org.bluetooth.characteristic.protocol_mode 

Assigned Number: 0x2A4E

Summary:

The Protocol Mode characteristic is used to expose the current protocol mode of the HID Service with which it is associated, or to set the desired protocol mode of the HID Service.

Value Fields

NamesField RequirementFormatMinimum ValueMaximum ValueAdditional Information
Protocol Mode Value
Mandatory
uint8N/AN/A
Enumerations
KeyValue
0Boot Protocol Mode
1Report Protocol Mode
2 - 255Reserved for future use

Name: Report

Type: org.bluetooth.characteristic.report 

Assigned Number: 0x2A4D

Abstract:

The Report characteristic is used to exchange data between a HID Device and a HID Host.

Summary:

The Report characteristic value contains Input Report, Output Report or Feature Report data to be transferred between the HID Device and HID Host.

Value Fields

NamesField RequirementFormatMinimum ValueMaximum ValueAdditional Information
Report Value
Mandatory
uint8N/AN/AThis field may be repeated.

Name: Report Map

Type: org.bluetooth.characteristic.report_map 

Assigned Number: 0x2A4B

Summary:

The Report Map characteristic is used to define formatting information for Input Report, Output Report, and Feature Report data transferred between a HID Device and HID Host, information on how this data can be used, and other information regarding physical aspects of the device (i.e. that the device functions as a keyboard, for example, or has multiple functions such as a keyboard and volume controls).

Only a single instance of this characteristic exists as part of a HID Service.

Value Fields

NamesField RequirementFormatMinimum ValueMaximum ValueAdditional Information
Report Map Value
Mandatory
uint8N/AN/AThis field may be repeated.

Name: Boot Keyboard Input Report

Type: org.bluetooth.characteristic.boot_keyboard_input_report 

Assigned Number: 0x2A22

Summary:

The Boot Keyboard Input Report characteristic is used to transfer fixed format and length Input Report data between a HID Host operating in Boot Protocol Mode and a HID Service corresponding to a boot keyboard.

Value Fields

NamesField RequirementFormatMinimum ValueMaximum ValueAdditional Information
Boot Keyboard Input Report Value
Mandatory
uint8N/AN/AThis field may be repeated.

Name: Boot Keyboard Output Report

Type: org.bluetooth.characteristic.boot_keyboard_output_report 

Assigned Number: 0x2A32

Summary:

The Boot Keyboard Output Report characteristic is used to transfer fixed format and length Output Report data between a HID Host operating in Boot Protocol Mode and a HID Service corresponding to a boot keyboard.

Value Fields

NamesField RequirementFormatMinimum ValueMaximum ValueAdditional Information
Boot Keyboard Output Report Value
Mandatory
uint8N/AN/AThis field may be repeated.

Name: Boot Mouse Input Report

Type: org.bluetooth.characteristic.boot_mouse_input_report 

Assigned Number: 0x2A33

Summary:

The Boot Mouse Input Report characteristic is used to transfer fixed format and length Input Report data between a HID Host operating in Boot Protocol Mode and a HID Service corresponding to a boot mouse.

Value Fields

NamesField RequirementFormatMinimum ValueMaximum ValueAdditional Information
Boot Mouse Input Report Value
Mandatory
uint8N/AN/AThis field may be repeated.

Name: HID Information

Type: org.bluetooth.characteristic.hid_information 

Assigned Number: 0x2A4A

Abstract:

The HID Information Characteristic returns the HID attributes when read.

Summary:

The HID Information Characteristic contains the HID attributes. The value of this Characteristic is static and can be cached for the lifetime of the bond between the HID device and the HID host.

Value Fields

NamesField RequirementFormatMinimum ValueMaximum ValueAdditional Information
bcdHID
Information:
16-bit unsigned integer representing version number of base USB HID Specification implemented by HID Device
Mandatory
uint16N/AN/ANone
bCountryCode
Information:
Identifies which country the hardware is localized for. Most hardware is not localized and thus this value would be zero (0).
Mandatory
8bitN/AN/ANone
Flags
Mandatory
8bitN/AN/A
Bit Field
BitSizeName
Definition
KeyValue
01RemoteWake
0The device is not designed to be capable of providing wake-up signal to a HID host
1The device is designed to be capable of providing wake-up signal to a HID host
11NormallyConnectable
0The device is not normally connectable
1The device is normally connectable
26Reserved for future use

Note:

The fields in the above table are in the order of LSO to MSO. Where LSO = Least Significant Octet and MSO = Most Significant Octet.

Name: HID Control Point

Type: org.bluetooth.characteristic.hid_control_point 

Assigned Number: 0x2A4C

Summary:

The HID Control Point characteristic is a control-point attribute that defines the following HID Commands when written:

• Suspend ( Refer to Section 7.4.2, Bluetooth HID Profile Specification 1.0

• Exit Suspend (Refer to Section 7.4.2, Bluetooth HID Profile Specification 1.0

Value Fields

NamesField RequirementFormatMinimum ValueMaximum ValueAdditional Information
HID Control Point Command
Information:
There are no response codes defined for the Suspend and Exit Suspend commands.
Mandatory
uint8N/AN/A
Enumerations
KeyValue
0Suspend
1Exit Suspend
2 - 255Reserved for future use



Name: HID OVER GATT

Type: org.bluetooth.profile.hid_over_gattDownload / View

Abstract:

This profile defines how a device with Bluetooth low energy wireless communications can support HID services over the Bluetooth low energy protocol stack using the Generic Attribute Profile.

Summary:

The HID over GATT profile defines the procedures and features to be used by Bluetooth low energy HID Devices using GATT and Bluetooth HID Hosts using GATT.

Role: HID Device

ServiceDeclarationRequirementAdditional Information
org.bluetooth.service.human_interface_devicePrimaryMandatory
  
None
org.bluetooth.service.device_informationPrimarySingleInstanceMandatoryNone
org.bluetooth.service.scan_parametersPrimarySingleInstanceOptionalNone

Role: Boot Host

ServiceRequirement
org.bluetooth.service.human_interface_deviceMandatory
org.bluetooth.service.device_informationMandatory
org.bluetooth.service.scan_parametersOptional
org.bluetooth.service.battery_serviceMandatory

Role: Report Host

ServiceRequirement
org.bluetooth.service.human_interface_deviceMandatory
org.bluetooth.service.device_informationMandatory
org.bluetooth.service.scan_parametersOptional
org.bluetooth.service.battery_serviceMandatory





  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值