Skip to main content
beammeup
Associate
October 11, 2009
Question

Custom HID data transfer

Posted on October 11, 2009 at 06:00

Custom HID data transfer

    This topic has been closed for replies.

    12 replies

    beammeup
    beammeupAuthor
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 12:40

    I am working on a USB HID Demonstrator.

    I am trying to transfer more data at once in one transaction using the ADC no.7 report. I've modified the CustomHID_ReportDescriptor and CUSTOMHID_SIZ_REPORT_DESC accordingly. I ve also modified the wMaxPacketSize value in the endpoints descriptors. Unfortunately, when I try so send more data than 2 bytes using and set SetEPTxCount with argumenr bigger than 2, the transmission just stops and I can't see any changes in the demo application.

    Is there anything that I should change in order to solve this problem?

    Regards

    LM

    beammeup
    beammeupAuthor
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 12:40

    I have solved the problem some time ago. It seems that in order to make the demo hid app work, the data size sent at once must be equal to the maximum data size in given raport.

    Now, everything is working fine. Max packet size is set to 64, amount of data in the report descriptor to 63 and at once I am sending 64 bytes of data (report number + data).

    abuchholz9
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 12:41

    Quote:

    On 13-08-2008 at 10:37, Anonymous wrote:

    I have solved the problem some time ago. It seems that in order to make the demo hid app work, the data size sent at once must be equal to the maximum data size in given raport.

    Now, everything is working fine. Max packet size is set to 64, amount of data in the report descriptor to 63 and at once I am sending 64 bytes of data (report number + data).

    Hi, i have problems to implement the 63+1 byte communication. Could you post - or email me - your descriptor?

    thanks.

    16-32micros
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 12:41

    Hi,

    Happy to see that you have solved your query easily :) Enjoy it :o

    Cheers,

    STOne-32.

    mcp
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 12:41

    Hi

    May I ask for this firmware too please.

    Thank you

    bluscape@gmail.com

    abuchholz9
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 12:41

    Quote:

    On 25-03-2009 at 15:39, Anonymous wrote:

    I will mail you a last working solution i have(post is pretty old). It sends 64 bytes of data per packet. Just give me your e-mail adress.

    regards

    Lukas

    a_buchholz@gmx.de

    thank you very much..

    :)

    beammeup
    beammeupAuthor
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 12:41

    I will mail you a last working solution i have(post is pretty old). It sends 64 bytes of data per packet. Just give me your e-mail adress.

    regards

    Lukas

    beammeup
    beammeupAuthor
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 12:41

    I have sent you guys the files. I think those should work... But I was messing with shis stuff some time ago, so you can never be shure. Also Alexander wrote to me that he had some problems with it. I dont know if he managed to make it work finally. Hope you will try and post the solution here.

    reagrds

    Lukasz Mosdorf

    lucaontheweb
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 12:41

    Hi guys,

    Could someone please email me that descriptor code too, I am experiencing problems with the HID Demonstrator software when increasing the packet sizes of the end points above 2bytes.

    lucaontheweb@hotmail.com

    [ This message was edited by: lucauwf on 07-05-2009 11:16 ]

    bartek2
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 12:41

    Hi all.

    Currently I am working with Custom HID example, the uC is STM32F107. Ihave changed the descriptor accordingly:

    From:

       

    /* Led 1 */

           

       

    0x85, 0x01,

               

    /*

        

    REPORT_ID (1)

                      

        

    */

       

    0x09, 0x01,

               

    /*

        

    USAGE (LED 1)

          

                

    */

       

    0x15, 0x00,

               

    /*

        

    LOGICAL_MINIMUM (0)

           

    */

             

       

    0x25, 0x01,

               

    /*

        

    LOGICAL_MAXIMUM (1)

           

    */

              

       

    0x75, 0x08,

               

    /*

        

    REPORT_SIZE (8)

               

    */

           

       

    0x95, 0x01,

               

    /*

        

    REPORT_COUNT (1)

              

    */

    To:

       

    /* Led 1 */

           

       

    0x85, 0x01,

               

    /*

        

    REPORT_ID (1)

                      

        

    */

       

    0x09, 0x01,

               

    /*

        

    USAGE (LED 1)

          

                

    */

       

    0x15, 0x00,

               

    /*

        

    LOGICAL_MINIMUM (0)

           

    */

             

       

    0x25, 0x01,

               

    /*

        

    LOGICAL_MAXIMUM (1)

           

    */

            

      

       

    0x75, 0x08,

               

    /*

        

    REPORT_SIZE (8)

               

    */

           

       

    0x95, 0x08,

               

    /*

        

    REPORT_COUNT (8)

              

    */

    Can any tell me why I cannot send this report without error? When I set reportcount to lower than 8 everything is OK.