Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upWindows: libusb Windows hotplug support #86
Comments
mcuee
added
the
enhancement
label
Aug 17, 2015
This comment has been minimized.
This comment has been minimized.
|
Last known tree back in the libusbx time. |
mcuee
changed the title
libusb Windows hotplug support
Windows: libusb Windows hotplug support
Feb 25, 2016
This comment has been minimized.
This comment has been minimized.
changyp6
commented
Mar 2, 2016
|
libusb hotplug for Windows is really important. But if I unplug the device and plug it back to the same USB port very quickly, and Windows's driver searching program is disabled(to make system recognize device faster), my program can get device remove and device add event correctly, but libusb_get_device_list() will get a usb device list the same as the previous saved one. Here is the reason: Because my program is event driven, this causes 2 events missing. I really hope that hotplug feature can be implemented for Windows. |
This comment has been minimized.
This comment has been minimized.
|
https://github.com/dickens/libusbx-hp/tree/windows-hotplug-3
You may want to try the above old branch to see the hotplug code there
works for your application. I am not so sure how much efforts need to bring
that branch up to date though.
|
This comment has been minimized.
This comment has been minimized.
changyp6
commented
Mar 3, 2016
|
I tried that before, I even tried to merge the change into libusb 1.0.19, but I failed to merge it to newer code. I still need to use latest branch, because there are tons of bug/leak fixes for Windows platform. Hope Windows hotplug support can be implemented soon. |
This comment has been minimized.
This comment has been minimized.
|
Will be part of the next release. Unfortunately it is a complicated set of Regards, |
This comment has been minimized.
This comment has been minimized.
changyp6
commented
Mar 3, 2016
|
This is a great news! |
hjelmn
added
the
windows
label
Mar 5, 2016
mcuee
added this to the 1.0.22 milestone
Mar 6, 2016
This comment has been minimized.
This comment has been minimized.
chrisba77
commented
Sep 2, 2016
•
|
were there any changes regarding the hotplug issue since then? Currently having the problem with LibUsbDotNet that communication with an unplugged-replugged device is only possible again after reinstalling the driver using the Inf-Wizard OR restarting Windows. This device is a CardReader. On the other hand, i dont have issues hotplugging a USB Keyboard. Does anyone have suggestions? |
This comment has been minimized.
This comment has been minimized.
diabolo38
commented
Sep 3, 2016
|
@chrisba77 strange w/o any "hotplug" support you should be able to re-use the device without driver re-install reboot etc then run again lib usb init , device detect ,re-open re claim etc .. That is what i do to get control again of unplugged and re-pluged device |
This comment has been minimized.
This comment has been minimized.
chrisba77
commented
Sep 5, 2016
|
@diabolo38 I do all this. And actually after plugging in the device again, communication is possible. BUT the read values coming from the device are not valid anymore. |
This comment has been minimized.
This comment has been minimized.
diabolo38
commented
Sep 5, 2016
|
@chrisba77 if device is hid using standard os hid device driver then the issue could be os driver or the device itlsef. I can't see such issue with non hid device at least. |
This comment has been minimized.
This comment has been minimized.
tony--
commented
Jan 5, 2017
•
|
It looks like this didn't make it into 1.0.21 as planned. Edit: I see now that it is included in the 1.0.22 milestone. I'll also take a look at the mailing list archives to see if there is recent discussion. Any additional info would still be welcome! |
tony--
referenced this issue
Jan 5, 2017
Open
Plans to switch from forked libusb to upstream libusb? #161
radhermit
referenced this issue
Feb 14, 2017
Open
switch to upstream libusb for windows once hotplugging support is merged #96
mcuee
modified the milestones:
1.0.23,
1.0.22
Apr 24, 2017
This comment has been minimized.
This comment has been minimized.
Jam-Nibi
commented
Sep 13, 2017
|
Hi guys, what's the status of this issue ? |
This comment has been minimized.
This comment has been minimized.
leileigong
commented
Sep 25, 2017
|
Did the hotplug supported on windows? |
This comment has been minimized.
This comment has been minimized.
jazzy-crane
commented
Nov 15, 2017
|
Has this now been moved to 1.0.23? :( |
This comment has been minimized.
This comment has been minimized.
changyp6
commented
Jan 2, 2018
|
I just checked the latest code, it seems that windows hotplug hasn't been implemented. |
This comment has been minimized.
This comment has been minimized.
njk42
commented
Jan 5, 2018
|
+1 for Windows hotplug support. Without hotplug support, what are the standard ways of determining when a device connects or disconnects on Windows? Does one just repeatedly poll a device list and determine when there are changes detected? |
This comment has been minimized.
This comment has been minimized.
ryxuli
commented
Jan 11, 2018
|
It's really inconvenient that libusb doesn't support hotplug capability on Windows. I finely turn to libusbK. It can be downloaded from https://sourceforge.net/projects/libusbk/, after setting up, you can download the whole src zip in https://sourceforge.net/projects/libusbk/files/libusbK-release/3.0.7.0/libusbK-3.0.7.0-src.zip/download which includes an example hot-plug-monitor.c shows the hotplug ability. |
This comment has been minimized.
This comment has been minimized.
rjgc2015
commented
Mar 20, 2018
|
Hi all, did it support on Windows now? |
This comment has been minimized.
This comment has been minimized.
|
Unfortunately not. Right now only Chris is working on the Windows side and
it will take some time to get this.
--
Xiaofan
|
gary-rowe
referenced this issue
Apr 27, 2018
Open
Add support for Windows attach/detach detection #1
This comment has been minimized.
This comment has been minimized.
cor3ntin
commented
Jul 20, 2018
|
Is there any update on that? Thanks a lot |
qmfrederik
referenced this issue
Sep 25, 2018
Open
DeviceNotifier with .NetCore and using .NetStandard libs #32
This comment has been minimized.
This comment has been minimized.
|
Is anybody working on this? |
This comment has been minimized.
This comment has been minimized.
changyp6
commented
May 21, 2019
|
Now, this Hotplug has become my 2019 new year wish. |
1 similar comment
This comment has been minimized.
This comment has been minimized.
wanpp
commented
Jun 6, 2019
|
Now, this Hotplug has become my 2019 new year wish. |
mcuee commentedAug 10, 2015
This is one of the long standing missing feature for Windows.