makenai / node-uvc-control

Control UVC compliant USB webcams from node
80 stars 28 forks source link

LIBUSB_ERROR_NOT_SUPPORTED on windows 10 #5

Closed bschmitlin closed 7 years ago

bschmitlin commented 8 years ago

Repro steps on Windows 10 64bit:

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 commented 7 years ago

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

bschmitlin commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

OK, it's been documented. https://github.com/makenai/node-uvc-control/commit/bc8bb83796e4b55434a389cd2e220aee47425e04

nospam2k commented 4 years ago

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 commented 4 years ago

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

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.