- Please explain how you have confirmed the timeout value.
- Kindly, share USB traces captured using a protocol analyzer to debug.
I use QTime::currentTime to record the time,and then call XferData to read data from USB Device. After XferData returns, I use QTime::currentTime to substract the time I recorded before. That is the mothed to confirm the timeout value.
Try to measure the function time using clock(). Here is the snippet of the code:
clock_t start, end;
start = clock();
... /* Do the work. */
end = clock();
cpu_time_used = ((double) (end - start)) / CLOCKS_PER_SEC;
Please test and update on the forum.
Thanks & Regards