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?
Ignoring the USB reports for a fixed time
Re: Ignoring the USB reports for a fixed time
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.
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.