Page 1 of 1

Ignoring the USB reports for a fixed time

Posted: Tue Sep 08, 2009 10:20 pm
by ikalogic
Hello

I am building a logic analyzer and i need - when the system is waiting for the trigger - to ignore the activity on the USB lines, so that no interrupts are generated when the PC software is pooling the device.

I am using HID communication, and it is working perfectly, and i am not very comfortable changing the way of communication.

Is it ennough to call 'usbDeviceDisconnect()' and then call back 'usbDeviceConnect()' when i want to device back online? This will porbably cause undesired plugin/pllugoff sound on windows, Is there another softer way to ignore Ext Int 0 while i am waiting for the trigger for my logic analyzer?

Re: Ignoring the USB reports for a fixed time

Posted: Tue Sep 22, 2009 10:49 am
by christian
As far as I know, there is no other way. Please note that when you disconnect, you must stay disconnected for at least 300 ms. Otherwise the host may not detect the disconnect.

As an alternative, you may trigger the reconnect only when you know that the connection to the PC was lost. E.g. if the host stops polling the interrupt endpoint.