Hi,
I have worked on various descriptors for mouse, keyboard, consumer controls, game pad,.. How do I write a descriptor for glove? (VR Controls Page -> Glove) Please help!!
Hi,
I have worked on various descriptors for mouse, keyboard, consumer controls, game pad,.. How do I write a descriptor for glove? (VR Controls Page -> Glove) Please help!!
Not sure exactly what you are trying to do. The descriptor you want depends on what exactly your glove does. What are the features and how is this related to HID?
It is as mentioned in the USB HID usage table. I'm sending 10 angular values (degree of freedom). For now I just want to be able to read these values on the computer using some HID utility/API.
Hmm, looking at the spec, it does not look like our ble_hids module is designed to work with kind of data unfortunately.
Ohh why is that?
because the services are designed to handle only keyboard and mouse data for now. You can look into the ble_hids.h->ble_hids_init_t to see that there are only two bools is_kb or is_mouse to show that the rest of the structure is designed to handle only two of this models. If you want to handle more use cases from the HID class, then you need to expand this structure yourself and modify the library.
But when I implemented gamepad descriptor, I disabled both boolean variables used for keyboard & mouse
& it worked perfectly fine. So I'm not getting your point exactly? Could you elaborate?
But when I implemented gamepad descriptor, I disabled both boolean variables used for keyboard & mouse
& it worked perfectly fine. So I'm not getting your point exactly? Could you elaborate?
Hi Sonal, I am sorry, my understanding of this descriptor was not correct.
You need to define HID report map for Glove to describe the structure of HIDS report that you want to send and I thinks that's it from HIDS module usage perspective. However, I have no idea how to construct such a map (you need to look at HID descriptor in USB specification). Sorry for the confusion.
Hi Aryan,
Thankyou for your reply. 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 arbitrary data?
I am sorry Sonal, not my area of expertise but it very much looks like you need add your logic of handling data inside this block changing it from doing nothing to what you want to do with this data
else { // The report received is not supported by this application. Do nothing. }