0 Preface/Foreword
HID:Human Interface Device,人机接口设备,包括鼠标(Mouse)、键盘(Keyboard)、游戏柄(GamePad)等等。
人机接口设备包括有线和无线方式,基本类型如下:
- 有线方式,比如USB HID
- 无线方式,比如 Bluetooht HID
BLE HID是基于USB HID基础,这样可以规避兼容性问题。
BLE HID包含的协议包含两类:
- HID profile
- HOGP profile
对于USB HID,包含的角色如下:
- Host,比如电脑PC
- Device,比如USB设备,USB鼠标,USB键盘
对于蓝牙HID,device上报report属于input report(对于Host而言,属于input,所以就命名为input report),而 Host上报的是output report。
1 基本介绍
BLE HID:HID UUID is 0x1812
蓝牙中包含的report类型和基本的权限如下:
report characteristics:
- input report ,notify permission
- output report,write permission
- feature report,read/write permission