increase data size for hid data transfer

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
himanshu150891
Posts: 2
Joined: Thu Aug 23, 2012 2:28 pm

increase data size for hid data transfer

Post by himanshu150891 » Thu Aug 23, 2012 2:36 pm

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 ???

ulao
Rank 4
Rank 4
Posts: 481
Joined: Mon Aug 25, 2008 8:45 pm

Re: increase data size for hid data transfer

Post by ulao » Sun Aug 26, 2012 10:00 pm

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...

Post Reply