Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LIBUSB_ERROR_NOT_SUPPORTED on windows 10 #5

Closed
bschmitlin opened this issue Sep 22, 2016 · 7 comments
Closed

LIBUSB_ERROR_NOT_SUPPORTED on windows 10 #5

bschmitlin opened this issue Sep 22, 2016 · 7 comments

Comments

@bschmitlin
Copy link

bschmitlin commented Sep 22, 2016

Repro steps on Windows 10 64bit:

  • in new folder run: npm install uvc-control (which runs fine, including node-gyp compile steps)
  • node node_modules/list-devices.js

result: Error: LIBUSB_ERROR_NOT_SUPPORTED

are there any extra dependencies to install or is windows not supported? Since you mention the device manager I assumed that it was.

Thanks!

@mattapperson
Copy link

@bschmitlin this lib uses node-usb and node-usb requires a WinUSB driver be installed on widows

@bschmitlin
Copy link
Author

thank you @mattapperson, I'll give it a try. Could we add that information to the readme? Just a sentence or 2 in the "installation" section would go a long way to avoid confusion for others.

@positlabs
Copy link
Collaborator

Ideally we would install the dependencies when the user runs npm install.

We can make a preinstall script that will install deps based on OS.
https://docs.npmjs.com/misc/scripts

@positlabs
Copy link
Collaborator

Nevermind... I think dependency installation should be handled by the usb module, and not node-uvc-control.

I do agree about documenting it, though. I'm going to add this snippet to the readme. Taken from usb

Use Zadig to install the WinUSB driver.

@positlabs
Copy link
Collaborator

OK, it's been documented. bc8bb83

@nospam2k
Copy link

nospam2k commented Jul 9, 2020

Sorry to reopen this but is there a way to confirm the WinUSB is installed correctly. I actually compiled Zadig from libwdi so I was sure to use x64 (I didn't know if that would make a difference on the install of the driver itself but to be safe), ran Zadig and followed these directions I found elseware:

Connect your camera
Start Zadig
In Zadig under ‘Options’ check the ‘List All Devices’ option
In the drop down box select your camera
Select the WinUSB driver
Press the ‘Replace Driver’ button to install the WinUSB driver

On my camera there are two USB device drivers hidusb and usbvideo so I replaced usbvideo with WinUSB and now in the device manager I see in driver file details winusb.sys.

I cloned the repo and just did npm install.

When I run test/discover.js I get LIBUSB_ERROR_NOT_SUPPORTED.

This is Windows 10 x64

@Chris2011
Copy link

I had the same problem, with the LIBUSB_ERROR_NOT_SUPPORTED. After googling I find the solution.

  • Open Zadig
  • Go to options -> List all devices
  • Select the usb flash drive in the DropDownListBox
  • See the driver, which is installed for that device

For me it was a different one and I've overwritten it with WinUSB. After this, I don't get the error anymore, just undefined, but this could be from my code. Maybe didn't open the connection to the device, dunno. But maybe it helps someone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants