BLE HID设备的连接过程

通过HCI log进行分析,了解每个层次对应的主要事件,特此记录一下,ATT层目前没有完全搞明白,等后续再进行补充。

HCI主要command交互:

	1	Command	0x200d	Low Energy	HCI_LE_Create_Connection
	2	Command	0x2016	Low Energy	HCI_LE_Read_Remote_Used_Features
	3	Command	0x041d	Lnk Ctrl	Read_Remote_Version_Information

L2CAP–SMP 加密

	104		Pairing Request
	108		Pairing Response
	113		Pairing Confirm
	115		Pairing Confirm
	116		Pairing Random
	118		Pairing Random
	123		Encryption Information
	124		Master Identification
	125		Identity Information
	126		Identity Address Information
	131		Encryption Information
	132		Master Identification
	133		Identity Information
	134		Identity Address Information

L2CAP–ATT

服务发现,挨着去遍历service、characterastic

HID OVER GATT

HID设备的属性 设备描述符

你可能感兴趣的:(蓝牙)