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

HID

I wanted to send data with different sizes using HID. Does the USB breaks up my data into sizes that fit the report descriptor and sends it serially so I can get my data on the other side of the USB?

Parents
  • "I wanted to send data with different sizes using HID."

    You have two options,

    a) Report IDs
    Define a separate report format for each report size on the report descriptor. These report formats are identified by unique report ID for each format.

    b) Single large report format with padding
    Define single report format which fits to the greatest size of the data.
    The report is filled as follows,
    - The first byte is the number of bytes in the contents
    - Follows the contents bytes
    - Fill the rest with padding

    You may have interest on this topic of USB-IF
    - Just I'm bored to write on it again and again. :-)

    "Change ReportCount after enumeration" on USB-IF
    www.usb.org/.../viewtopic.php

    Tsuneo

Reply
  • "I wanted to send data with different sizes using HID."

    You have two options,

    a) Report IDs
    Define a separate report format for each report size on the report descriptor. These report formats are identified by unique report ID for each format.

    b) Single large report format with padding
    Define single report format which fits to the greatest size of the data.
    The report is filled as follows,
    - The first byte is the number of bytes in the contents
    - Follows the contents bytes
    - Fill the rest with padding

    You may have interest on this topic of USB-IF
    - Just I'm bored to write on it again and again. :-)

    "Change ReportCount after enumeration" on USB-IF
    www.usb.org/.../viewtopic.php

    Tsuneo

Children