This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52 as a HID keyboard

Hello all,

I wanna ask smth related to the use of the nRF52 as a HID keyboard (USB host).

I have already played around with the SDK example ble_app_hids_keyboard and tried to understand it as much as I could. It works very good.

However, what I wanna do now, is to be able to use the nRF52 as a bluetooth dongle, that is, on one hand it has to be able to connect to another device (another nRF52 - serving as the keyboard) via bluetooth and on the other hand transfer this data to a PC as a USB.

So the question is whether the nRF52 can be configured like that, act as a USB host and communicate via bluetooth to another device at the same time?

If so, I would appreciate any help on how to realize that. I have some knowledge on how the USB and HID protocols works, however it is not enough to manage to succeed on this issue.

Thanks in advance for your support.

Bests,
Gazi

Parents
  • Hello,

    I suggest to look at the nRF52840, which have an USB interface and support BLE.

    You would need to merge the USB composite example:
    \nRF5_SDK_15.0.0_a53641a\examples\peripheral\usbd_hid_composite 

    With the HRS central example (this must be changed from enabling heart rate service to hid service):
    \nRF5_SDK_15.0.0_a53641a\examples\ble_central\ble_app_hrs_c 

    Best regards,
    Kenneth

Reply
  • Hello,

    I suggest to look at the nRF52840, which have an USB interface and support BLE.

    You would need to merge the USB composite example:
    \nRF5_SDK_15.0.0_a53641a\examples\peripheral\usbd_hid_composite 

    With the HRS central example (this must be changed from enabling heart rate service to hid service):
    \nRF5_SDK_15.0.0_a53641a\examples\ble_central\ble_app_hrs_c 

    Best regards,
    Kenneth

Children
Related