> ## Documentation Index
> Fetch the complete documentation index at: https://dragonwingdocs.qualcomm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 验证 HOGP 功能

> HOGP 定义了 Bluetooth Low Energy 无线通信设备如何使用 GATT 在 Bluetooth Low Energy 协议栈上支持 HID 服务。

<a id="bluez-hogp" />

## 前提条件

* 启用 SSH 以访问您的主机设备。有关说明，请参阅<a href="https://dragonwingdocs.qualcomm.com/Key-Documents/Flash-Guide/how-to-sign-in-with-ssh" target="_self">使用 SSH 登录</a>。

* 将 DUT 和远程设备放置在蓝牙有效范围内。

## 设置设备以使用 HOGP 功能

1. 在命令提示符中使用以下命令运行 SSH：

   ```text theme={null}
   ssh root@<device_IP_address>
   ```

   **示例**

   如果设备的 IP 地址为 `10.92.160.222`，运行以下命令：

   ```text theme={null}
   ssh root@10.92.160.222
   ```

2. 输入以下密码以连接到 SSH：

   ```text theme={null}
   oelinux123
   ```

3. 运行以下命令打开蓝牙测试应用程序：

   ```text theme={null}
   bluetoothctl
   ```

   您可以通过 **bluetoothctl** 的主菜单选项执行一些 GATT 功能，例如连接和扫描。

   **示例输出**

   ```text theme={null}
   sh-5.1# bluetoothctl
   Agent registered        uetoothd...
   [CHG] Controller 22:22:F1:C1:99:C0 Pairable: yes
   ```

4. 运行以下命令启用蓝牙：

   ```text theme={null}
   power on
   ```

   **示例输出**

   ```text theme={null}
   [bluetooth]# power on
   [CHG] Controller 22:22:F1:C1:99:C0 Class: 0x007c0000
   Changing power on succeeded
   [CHG] Controller 22:22:F1:C1:99:C0 Powered: yes
   ```

   有关 HOGP 功能，请参阅<a href="perform-bluetooth-hogp-functions" target="_self">执行蓝牙 HOGP 功能</a>。

## 后续步骤

### <a href="perform-bluetooth-hogp-functions" target="_self">执行蓝牙 HOGP 功能</a>

您可以使用 **bluetoothctl** 选项和 **evtest** 工具执行 HOGP 功能。蓝牙 HoGP 功能允许您连接到远程设备、验证 HoGP 功能以及断开与设备的连接。
