Page 1 of 1

increase data size for hid data transfer

Posted: Thu Aug 23, 2012 2:36 pm
by himanshu150891
currently i am working on my final year project where i am able to transfer 8 bytes data hid reports but want to extended data size from 8 to 256 bytes or around it or may be more
what modification should i do to increase the size ???

Re: increase data size for hid data transfer

Posted: Sun Aug 26, 2012 10:00 pm
by ulao
Using bulk out you can separate the packed. 1.0 standards does not allow more then 8 at once.

Use bulk you can try this

Code: Select all

while (!usbInterruptIsReady()){usbPoll(); }   usbSetInterrupt((void *)&reportBuffer + 0, 8);
while (!usbInterruptIsReady()){usbPoll(); }   usbSetInterrupt((void *)&reportBuffer + 8, 8);
while (!usbInterruptIsReady()){usbPoll(); }   usbSetInterrupt((void *)&reportBuffer + 16, 8);

etc...