文章目录
一、简介
The Human Interface Device (HID) ,即人机交互设备。定义了蓝牙在人机接口设备中的协议、特征和使用规程。典型的应用包括蓝牙鼠标、蓝牙键盘、蓝牙游戏手柄等。该协议改编自USB HID Protocol。
host和device
是USB中的角色概念
- H OST相当于PC主机,device相当于鼠标、键盘这些USB外设
- ble hid中,可以看做蓝牙设备就是device,手机就是host
二、HID Reports
Bluetooth HID devices支持三种Report:Input, Output, and Feature。
1. Input Reports 输入报告
表示Bluetooth HID device发送数据给 Bluetooth HID Host。
2. Output Reports 输出报告
表示Ble HID host 发送数据给 Ble HID device
3. Feature Reports 特征报告
Ble中双向数据通道
三、HID Channel
HID建立Control Channel和Interrupt Channel两个通道。
- report可以在这两条channel上传输,在Control channel上传输的report称为synchronous reports ;
- 在Interrupt channel上传输的report称为asynchronous reports。