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

Custom HID

Hi,

I'm trying to build a custom HID device. I'm not able to receive any bytes on the host machine (I'm using an HID API). The Nordic board connects to the bluetooth of the computer, but fails to send any data.

Some numbers are displayed when I press SetReport & GetReport buttons.

When I press a button, I can see change in values as per the logic in the event handler.

So is anything missing here?

Parents Reply
  • Hi Hakon,

    Thankyou for your reply. You are correct it is sending caps on & off information to the host (PC) but does not output a report. But the OUTPUT_REPORT_BIT_MASK_CAPS_LOCK uses the default value in HID table. What if it was an arbitrary value? So instead of caps lock should I keep polling for a value from host and then may be light an led?

    Currently I'm able to send arbitrary information to the host using generic HID descriptor (uses vendor defined page). There is no driver issue. I'm also able to connect to the bluetooth of host. But I'm not able to receive data from host. How do I change on_hid_rep_char_write() in order to receive data?

Children
Related