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

usb hid to increase byte transfer from kit to pc

Dear freind,

i want to develop application to read adc value from stm32 kit to pc through usb.

for that i have transfer more bytes from kit to pc.

i have been using STM32_USBHID on kit side and HID_Client on host side.

also the application note below giving example to send more bytes from pc to kit.

http://www.keil.com/appnotes/docs/apnt_195.asp

my need is vice versa. to transfer 8/16/32/64 bytes from kit to pc instead of byte.

so please help me by providing sample application code to transfer more bytes from kit to pc

with regards

S.Venugopal

Parents
  • hi Tamir Michael,

    i'd modified the hid report size to 64 through Inreport size. it highlighted in Bold

    /* HID Report Descriptor */
    const BYTE HID_ReportDescriptor[] = {
      HID_UsagePageVendor(0x00),
      HID_Usage(0x01),
      HID_Collection(HID_Application),
        HID_UsagePage(HID_USAGE_PAGE_BUTTON),
        HID_UsageMin(1),
        HID_UsageMax(2),
        HID_LogicalMin(0),
        HID_LogicalMax(0xff),
    //  HID_ReportCount(8),
    //  HID_ReportSize(2),
     HID_ReportCount(8),
        HID_ReportSize(INREPORT_SIZE), 
        HID_Input(HID_Data | HID_Variable | HID_Absolute),
    

    only the output(Led indication) is 1 byte.

    with regards

    S.Venugopal

Reply
  • hi Tamir Michael,

    i'd modified the hid report size to 64 through Inreport size. it highlighted in Bold

    /* HID Report Descriptor */
    const BYTE HID_ReportDescriptor[] = {
      HID_UsagePageVendor(0x00),
      HID_Usage(0x01),
      HID_Collection(HID_Application),
        HID_UsagePage(HID_USAGE_PAGE_BUTTON),
        HID_UsageMin(1),
        HID_UsageMax(2),
        HID_LogicalMin(0),
        HID_LogicalMax(0xff),
    //  HID_ReportCount(8),
    //  HID_ReportSize(2),
     HID_ReportCount(8),
        HID_ReportSize(INREPORT_SIZE), 
        HID_Input(HID_Data | HID_Variable | HID_Absolute),
    

    only the output(Led indication) is 1 byte.

    with regards

    S.Venugopal

Children
No data