Ignoring the USB reports for a fixed time

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
ikalogic
Posts: 4
Joined: Tue Sep 08, 2009 10:13 pm

Ignoring the USB reports for a fixed time

Post by ikalogic » Tue Sep 08, 2009 10:20 pm

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?

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Re: Ignoring the USB reports for a fixed time

Post by christian » Tue Sep 22, 2009 10:49 am

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.

Post Reply