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

nRF52840(PCA10056), Using bluetooth in the usbd_hid_generic example

Hi,

I am asking questions through Google Translator. The context may not be smooth.


I am planning one project.

Simply put, the usbd_hid_generic example uses bluetooth.

What does this mean, for example, A: Device / B: Board (nRF52840) / C: Computer / Assume as above.

When usbd_hid_generic example shows HID operation of B and C via USB, A and B are in bluetooth communication.

So I send the X, Y coordinate or motion value from A to B via bluetooth communication, and B wants to parse the value and do HID operation in C.

The usbd_hid_generic example prevents the softdevice from being able to load the bluetooth stack. Is there a way to use bluetooth in the usbd_hid_generic example?

I wonder what kind of approach you should approach.

Thank you.

Parents
  • Hi,

    It should be no problems with using USB and BLE together. But you must be a bit careful with the order you enable things and what you enable, e.g. so you don't overwrite the button functionality used for the USBD part of the code, with some buttons_leds_init() code that is used by the BLE part of the code.

    • What BLE example did you try to combine with the usbd_hid_generic example ?
    • What SDK version are you using?
Reply
  • Hi,

    It should be no problems with using USB and BLE together. But you must be a bit careful with the order you enable things and what you enable, e.g. so you don't overwrite the button functionality used for the USBD part of the code, with some buttons_leds_init() code that is used by the BLE part of the code.

    • What BLE example did you try to combine with the usbd_hid_generic example ?
    • What SDK version are you using?
Children
No Data
Related