1.概述 The Human InterfaceDevice(HID)定义了蓝牙在人机接口设备中的协议、特征和使用规程。典型的应用包括蓝牙鼠标、蓝牙键盘、蓝牙游戏手柄等。该协议改编自USBHID Protocol。 2.一些概念(1)HID Reports:Bluetooth HID devices支持三种Report:Input, Output,and Feature。(2)HID建立Control Channel和InterruptChannel两个通道,report可以在这两条channel上传输,在Controlchannel上传输的report称为synchronous reports ;在Interruptchannel上传输的report称为asynchronous reports。(3)Feature reports are always transferred synchronously usingGET_REPORT or SET_REPORT requests。(4)Report Protocol Mode和Boot Protocol Mode。Bluetooth HIDHosts至少支持一种,Bluetooth HID Device则需要支持Report Protocol Mode,并且ReportProtocol Mode是Bluetooth HID Device的默认Mode。
3.Bluetooth HID Protocol Messages这些message不能超过L2CAP的MTU,大小超过MTU的message将被忽略。Message Header的格式如下:
(1)HANDSHAKE该Message用来acknowledgeSET_REPORT, SET_IDLE andSET_PROTOCOL等request。只在Control Channel上传输,只由Bluetooth HIDdevice。Parameter部分定义如下:
(2)HID_CONTROL控制Bluetooth HID device改变状态。Parameter部分定义如下:
(3)GET_REPORTBluetooth HID Host用来请求Bluetooth HID device的传输。定义如下:
(4)SET_REPORTBluetooth HID Host用来向Bluetooth HID device发起传输。格式如下:
(5)GET_PROTOCOL用来获取Bluetooth HID device的Protocol Mode,然后Bluetooth HID deviceresponse一个DATA payload说明当前的Protocol Mode。格式如下:
GET_PROTOCOL Data Definition格式如下:

(6)SET_PROTOCOL用来设置Bluetooth HID device的Bluetooth HID device。格式如下:
(7)DATA代表一个a HID payload。格式如下:
4.Transfers以HID Protocol messages的形式传输。(1)Control Channel Transfers分为Acknowledged和Unacknowledged两种,格式如下:
(2)Interrupt Channel TransfersInterrupt IN和Interrupt OUT两种,可以在任意时刻发送。【中断嘛】
5.其余各层对于HID的要求HID与L2CAP的交互如下:
爱华网本文地址 » http://www.aihuau.com/a/25101017/359733.html
更多阅读

?????? 无线蓝牙扫描枪有哪些品牌?首先我们要知道,什么是无线蓝牙扫描枪,大多数人可能会误以为无线蓝牙扫描枪就是无线扫描枪,其实不然,二者还是有很大区别的。无线蓝牙扫描枪是无线扫描枪的一种,采用蓝牙技术来实现无线传输数据,广泛应用

无线蓝牙耳机怎么用——简介蓝牙(Bluetooth)是短距离无线传输的通信界面,基本型通讯距离约10米、传输率721kbps左右,工作在2.4GHz的频带上,支援一对多资料传输及语音通讯。由于蓝牙不是为传输大流量负载而设计的,因此并不适于替代LAN或WAN

iphone4蓝牙怎么用——简介苹果的用户约来越广泛了。很多朋友都在疑问它的蓝牙怎么连接没有反应呢?下面说说几个小方法,希望能够帮到大家。 iphone4蓝牙怎么用——方法/步骤iphone4蓝牙怎么用 1、在设置——通用——蓝牙, 然后你把

使用蓝牙耳机的人数越多,其出现的问题也就越多,但是大多数都不是蓝牙耳机自身的问题,大多是人们不会使用的缘故。现在由QCY蓝牙耳机的客服来总结说一下手机无法搜索到蓝牙耳机的可能原因以及相对应的解决方法吧。1、蓝牙耳机不是开机

手机蓝牙如何连接电脑蓝牙来互传文件——简介没有手机数据线,没有网络,安卓手机和笔记本电脑如何共享文件呢?可以使用手机蓝牙和电脑蓝牙来互传文件手机蓝牙如何连接电脑蓝牙来互传文件——工具/原料手机:三星GT-S5660电脑:ThinkPad E4