Hi Dario,
Thanks for your reply. I didn't know that you could use bulk transfers with HID, but I think that it may not be required for my application. My file size is around 38kB, and if I can transfer that file in about 3s, it should be enough. Right now I seem to have a problem getting the proper throughput for HID interrupt transfers. I will explain the code in a bit more detail, the working flow is like this:
loop_start
1. Host sends Request_File_Report command on the OUT_EP
2. Device receives it, reads 64 bytes from the file and puts it on the IN_EP, until the EOF.
loop_end
I want to modify this so that it is like this:
1. Host sends Request_File_Report command on the OUT_EP
2. Device receives it, enters the below loop
loop_start
if(HIDTxHandleBusy(USBInHandle) == FALSE ) //IN_EP is free to write?
{
3. Device reads 64 bytes from the file and puts it on the IN_EP, until the EOF.
}
loop_end
This modification does not work, the Tx handle becomes busy after the 2nd report transfer. So I'm not sure if there is something wrong in my logic for the device code or it is related to the PC application not processing the HID IN packets fast enough..
post edited by govind_mukundan - 2013/05/28 03:13:17