Skip to main content

Prerequisites

  • Enable SSH to access your host device. For instructions, see Sign in using SSH.
  • Place the DUT and the remote device in the Bluetooth vicinity.

Set up the device for HOGP functions

  1. Run the SSH in command prompt using the following command:
    ssh root@<device_IP_address>
    
    Example If the IP address of the device is 10.92.160.222, run the following command:
    ssh root@10.92.160.222
    
  2. Connect to the SSH by entering the following password:
    oelinux123
    
  3. Open the Bluetooth test application by running the following command:
    bluetoothctl
    
    You can perform a few GATT functions like connecting and scanning through the main menu options of bluetoothctl. Sample output
    sh-5.1# bluetoothctl
    Agent registered        uetoothd...
    [CHG] Controller 22:22:F1:C1:99:C0 Pairable: yes
    
  4. Enable Bluetooth by running the following command:
    power on
    
    Sample output
    [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
    
    For HOGP functions, see Perform Bluetooth HOGP functions.

Next steps

Perform Bluetooth HOGP functions

You can perform HOGP functions using the bluetoothctl options and evtest tool. Bluetooth HoGP functions allow you to connect to a remote device, verify HoGP functionality, and disconnect from a device.