How to simulate HOME key value in HID?

Hi,

I'm using HID mouse example in SDK17.02.

How to simulate HOME key in HID when the device connected with a phone?

Parents
  • Hi,

    In HID there are modifer keys that potentially can be helpful here, though I am not sure if they will work with any phone or OS. In any case I would likely have started googling for modifier keys bluetooth and see if that give you any pointers. Typically you can find in the nRF5 SDK and nRF Connect SDK that there is HID over GATT example project, so if you find that modifier keys can work, then it should simply be mapping keys to send the right combination of modifier keys to the phone. But as mentioned, you may need to look at the OS of the phone and what they support, I will assume others have tried something similar before. 

    HID Usage table:
    https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf
     

    Best regards,
    Kenneth

Reply
  • Hi,

    In HID there are modifer keys that potentially can be helpful here, though I am not sure if they will work with any phone or OS. In any case I would likely have started googling for modifier keys bluetooth and see if that give you any pointers. Typically you can find in the nRF5 SDK and nRF Connect SDK that there is HID over GATT example project, so if you find that modifier keys can work, then it should simply be mapping keys to send the right combination of modifier keys to the phone. But as mentioned, you may need to look at the OS of the phone and what they support, I will assume others have tried something similar before. 

    HID Usage table:
    https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf
     

    Best regards,
    Kenneth

Children
Related