alexz said:
tkbits said:
You would need to tap into the USB bus and directly monitor the USB traffic to determine if this is happening or not. Or add more debugging code in the device SW.
Does it influence on the speed?
Adding code? Yes, that will slow down your device.
If possible, you may want to see if you're getting an IN token before sending the SET_CONFIGURATION status (zero length) packet. The SIE will send data immediately in response to an IN token. So the best possible scenario is that you create a zero length packet before the first IN token arrives.
For a stab-in-the-dark approach, you may want to speed up your response to SET_CONFIGURATION. Measure the time from when you get a SETUP packet, not from the time you determine it's a SET_CONFIGURATION command.