On Wed, 2 Feb 2005, [EMAIL PROTECTED] wrote:

> Thanks for the reply. But I think i asked a wrong question. My question:
> We have a custom board, which has been configured as a USB Modem 
> Device(CDC ACM). The driver used is usb-serial. I wanted to know, can I 
> from the driver send an event to the application(application will issue 
> an ioctl), that there is no activity on the usb bus?(i.e., if there is 
> inactivity for 4mins, the event will be set).

I'm not familiar with the usb-serial driver, but I don't think it has 
such a facility.  In fact, I don't know of any driver that does.

Anyway, the usb-serial driver doesn't know much about activity on the USB
bus.  It doesn't even know about all activity for the devices it manages;
it only knows about the activity that _it_ generates.  Other programs are
capable of sending messages to a USB serial device without usb-serial
being aware.

You asked about getting a notification when there is no activity on the
USB bus -- not just when there is no activity for your particular device.  
In general there will be activity on the bus (SOF packets if nothing else)
so long as the root hub is not suspended.  So to get the information you
want, you would need to communicate with the root hub driver, which is
part of the host controller driver.  However none of the HCDs have any
means of sending notifications to user programs when the root hub is
suspended or resumed.

Alan Stern



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to