Please note: We are aware of an issue affecting replies on the Arm Community forums, which may not be loading as expected.

We apologize for any inconvenience and appreciate your patience while we investigate and work to resolve the issue.

Thank you for your understanding.


This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

2 HIDs in one composite USB code

I need to write 2HIds in one composite device in STM32 microcontrollers.One for pointer mouse operation and other one for keypad operation.So i wish to know is it possible to do so?If yes will I need to write 2 separate report descriptors.I am using 2 interfaces and 2 ENDPOINTS (enp1 and enp2). Please help...

Parents
  • Hi Tsuneo ,

    I tried doing as you said , I wrote report id (1) , then copied Mouse HID and Report id(2) ,then copied keyboard HID and changed descriptor size accordingly . Thats it . However this time my PC is not detecting the new HID, It shows an exclamation mark along side and noew i am stuck .Is there anything else to do . Can you once again explain in detail how to sending both mouse and keyboard data through the same interface and same endpoint . Because I didnt understand the idea.How OS understands that which is report id and which is data.

    The actual mouse data sends 4 bytes ,So now iam sending 5 bytes i.e reportid + 4byte mouse data
    It seems that I am doing something wrong somewhere.. ;)

    Dhanush

Reply
  • Hi Tsuneo ,

    I tried doing as you said , I wrote report id (1) , then copied Mouse HID and Report id(2) ,then copied keyboard HID and changed descriptor size accordingly . Thats it . However this time my PC is not detecting the new HID, It shows an exclamation mark along side and noew i am stuck .Is there anything else to do . Can you once again explain in detail how to sending both mouse and keyboard data through the same interface and same endpoint . Because I didnt understand the idea.How OS understands that which is report id and which is data.

    The actual mouse data sends 4 bytes ,So now iam sending 5 bytes i.e reportid + 4byte mouse data
    It seems that I am doing something wrong somewhere.. ;)

    Dhanush

Children