3 Replies Latest reply on Sep 10, 2018 11:10 PM by AbhinavG_21

    timeout problems

    water.zch_3575871

      Could somebody give me a help.

       

      I want to set the timeout of BulkInEndPt, but it seems that it doesn't work normally.

      For example, I set timeout to 5ms, m_pCyUSBDevice->BulkInEndPt->TimeOut = 5;

      If XferData returns and fails, it takes about 55ms. I think It should be 5ms or just a little more than 5ms. Am I wrong?

       

      And if XferData returns and succeeds, if will takes much more than 5ms sometimes. I think it should be timeout.

       

      What's more, I repeat reading data from USB device, and I am sure USB device have data, but it will stop reading data for more than 30ms sometimes. I find it by wireshark.

       

      Thanks!