On Wed, Mar 13, 2013 at 5:31 PM, Bent Bisballe Nyeng <d...@aasimon.org> wrote:
> In the time I have been using libusb there has always been a single
> feature that I was missing: The ability to get a notification when a new
> device is connected (or disconnected for that matter), and thereby
> remove the need for continuous rescans of the usb bus.
>
> In a specific project that I once made a rescan actually interrupted an
> active filetransfer on a MSD. Probably due to a bug in the MSD (some
> custom thiny, not made by me) but it still points to the fact tha a bus
> rescan is a quite "agrssive" thing to do in order to simply find out if
> a device has been connected.

Is this under Windows or Linux?

As for the hotplug feature, yet it will be the focus of libusbx project
down the road.

Ref:
https://github.com/libusbx/libusbx/issues/9
https://github.com/libusbx/libusbx/issues/milestones

Discussions in libusbx:
http://libusbx.1081486.n5.nabble.com/Libusbx-devel-Hotplug-td718.html

As for the implementations, you may want to refer to the
following two existing implementations.
1) Nokia proposal and enhanced by Pete
https://github.com/pbatard/libusb/commits/hp

2) Nathan's proposal
http://libusb.6.n5.nabble.com/Hotplug-API-feedback-td5710944.html
http://www.cs.unm.edu/~hjelmn/libusb_hotplug_api_alt4/group__hotplug.html
http://git.libusb.org/?p=libusb/libusb-darwin.git


-- 
Xiaofan

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to