最終更新:2023-10-03 (火) 07:02:23 (69d)
Bluetooth/HCI/コマンド
サポートされたコマンドの取得
Linux/コマンド
HCIのコマンド
仕様
- Bluetooth Core Specification/Volume 4/Part E HCI->HCI Functional Specification -> 7 HCI command and events
Bluetooth/HCI/コマンド/パケット?
- ヘッダ+最大255バイトのデータを含む
- OGF:Opcode Group Field (6bit)
- OCF:Opcode Command Field (10bit)
Opcode パラメータ長 パラメータ0 パラメータn... OCF OGF
種類
7.1 Link Control commands
- OGF:0x01
掲載箇所 OCF コマンド 7.1.1 0x0001 HCI_Inquiry 7.1.2 0x0002 HCI_Inquiry_Cancel 0x0005 HCI_Create_Connection HCI_Link_Key_Request_Reply? 7.1.8 0x0009 HCI_Accept_Connection_Request? 7.1.21 0x001B HCI_Read_Remote_Supported_Features 7.1.22 0x001C HCI_Read_Remote_Extended_Features 7.1.29 0x002B HCI_IO_Capability_Request_Reply?
7.2 Link Policy commands
7.3 Controller & Baseband commands
- OGF:0x03
7.3.1 0x0001 HCI_Set_Event_Mask? 7.3.2 0x0003 HCI_Reset? 7.3.8 0x000D HCI_Read_Stored_Link_Key? 7.3.18 0x001A HCI_Write_Scan_Enable? 7.3.59 0x0056 HCI_Write_Simple_Pairing_Mode
7.4 Informational parameters
- OGF is defined as 0x04
7.4.1 0x0001 HCI_Read_Local_Version_Information? 7.4.2 0x0002 HCI_Read_Local_Supported_Commands 7.4.3 0x0003 HCI_Read_Local_Supported_Features 7.4.4 0x0004 HCI_Read_Local_Extended_Features? 7.4.5 0x0005 HCI_Read_Buffer_Size? 7.4.6 0x0009 HCI_Read_BD_ADDR? 7.4.8 0x000D HCI_Read_Local_Supported_Codecs? (v2) 7.4.8 0x000B HCI_Read_Local_Supported_Codecs? (v1) 7.4.9 0x000C HCI_Read_Local_Simple_Pairing_Options HCI_Read_Local_Supported_Codec_Capabilities?
7.5 Status parameters
7.6 Testing command
7.7 Events
7.8 LE Controller commands
- OGF:0x08
7.8.1 0x0001 HCI_LE_Set_Event_Mask? 7.8.2 0x0002 HCI_Read_Buffer_Size? v1 7.8.3 0x0003 HCI_LE_Read_Local_Supported_Features 7.8.4 0x0005 HCI_LE_Set_Random_Address? 7.8.5 0x0006 HCI_LE_Set_Advertising_Parameters 7.8.7 0x0008 HCI_LE_Set_Advertising_Data? 7.8.9 0x000A HCI_LE_Set_Advertise_Enable (~4.2)
HCI_LE_Set_Advertising_Enable (5.0~)7.8.10 0x000B HCI_LE_Set_Scan_Parameters 7.8.25 0x001A HCI_LE_Long_Term_Key_Request_Reply? 7.8.26 0x001B HCI_LE_Long_Term_Key_Request_Negative_Reply? 7.8.31 0x0020 HCI_LE_Remote_Connection_Parameter_Request_Reply? 7.8.2 0x0060 HCI_Read_Buffer_Size? v2 - ...
メモ
- HCI_Accept_Connection_Request?
- HCI_Reject_Connection_Request?
- HCI_Remote_Name_Request?
- HCI_Reset?
- HCI_Write_Scan_Enable?
- HCI_Read_Buffer_Size?
- HCI_Read_BD_ADDR?
- HCI_Read_Local_Version_Info?
- HCI_Create_Connection
- HCI_Disconnect?
- HCI_Link_Key_Request_Reply?
- HCI_Link_Key_Request_Negative_Reply?
- HCI_PIN_Code_Request_Reply?
- HCI_PIN_Code_Request_Negative_Reply?
- HCI_Inquiry
- HCI_Inquiry_Cancel
- HCI_Write_Inquiry_Transmit_Power_Level?
- HCI_Write_Inquiry_Mode?
- HCI_Write_Simple_Pairing_Mode
- HCI_Write_Simple_Pairing_Debug_Mode?
- HCI_Write_Authentication_Enable?
- HCI_Write_Page_Timeout?
- HCI_Write_Page_Scan_Activity?
- HCI_Write_Page_Scan_Type?
- HCI_Write_Inquiry_Scan_Activity?
- HCI_Write_Inquiry_Scan_Type?
- HCI_Write_Class_of_Device?
- HCI_Write_Extended_Inquiry_Response?
- HCI_Write_Local_Name?
- HCI_Set_Event_Mask?
- HCI_IO_Capability_Request_Reply?
- HCI_User_Confirmation_Request_Reply?
- HCI_Set_Connection_Encryption?
- HCI_Authentication_Requested?
- HCI_Change_Connection_Link_Key?
- HCI_Read_Stored_Link_Key?
- HCI_Write_Stored_Link_Key?