Fix for libusb issue "USB Open error 12"

Need help installing or figuring out something about your SDR? Ask here.
Post Reply
badgenes
Posts: 2
Joined: Tue Jun 13, 2017 2:47 pm

Fix for libusb issue "USB Open error 12"

Post by badgenes » Tue Jun 13, 2017 3:05 pm

Like many newbie rtlsdr enthusiasts, I began my quest for information by reading, reading, reading. Along the way I discovered there are many different packages available to use on Windows and Linux that interested me. Once I had some basics down and realized how little RF knowledge I have I began to look at the more specialized applications available for Windows. The first one I installed was RTLSDR Scanner. This application has many dependencies, one of which is libusb.dll. Several Windows applications have this dependency, URH is another application with this dependency, for example. RTLSDR Scanner was well suited for my purposes but would not run, quitting with the "USB Open Error -12". URH fared no better. I read every forum posting and article I could find but none helped me resolve this issue. I then attempted to get both working on a laptop, same issue. I moved to another laptop and was surprised to find it worked. All the same OS, same build, same drivers. I was at a loss. My son also let me know he was having the same issue on his laptop, but I couldn't easily see his configuration and I believe his OS version to be different. I moved on for a few days until...

It wasn't until I noticed a discrepancy in posted explanations of the Zadig driver installation process that I realized what was different between my laptops and desktop. The laptop that worked had the driver installed for the composite device, while both desktop and second laptop had the driver installed for "Bulk Interface (0)". So far I'd only read one guide mentioning installing for the composite, the one that caused me to go look at all three to begin with. Figuring it would not make my situation worse I removed the device and drivers from my desktop (with SDR plugged in...Device Manager, right-click device, Uninstall, check box to remove drivers). I then ran the Zadig installer, checked the entry for "List All Devices", then cleared the check for "Ignore Hubs or Composite Devices". I then located the RTLSDR???? (Composite) entry and installed the driver for this device only. Zadig installer prompted me that I was replacing a system driver, I accepted and closed the Zadig installer.

I tested the apps dependent on libusb.dll, all work as expected. All of my other Windows applications work as well, including SDR# (uses another version of libusb.dll). While YMMV I can say that I've done this on 3 Windows 10 x64 PCs, and my son has done this on his Windows 8.1 x64 PC and all have had no further issue with libusb.dll or any Windows applications.

I hope this helps someone who has given up on using any of these great applications on Windows. Of course if it would be helpful I can create a nice PDF with screenshots and markup but I do that frequently at work and preferred to wait as I have been procrastinating posting this already.

badgenes

rtlsdrblog
Site Admin
Posts: 1885
Joined: Mon Nov 19, 2012 11:54 pm

Re: Fix for libusb issue "USB Open error 12"

Post by rtlsdrblog » Wed Jun 14, 2017 6:04 am

Thanks for sharing your fix.

tawnyuk
Posts: 1
Joined: Sun Feb 25, 2018 5:13 pm

Re: Fix for libusb issue "USB Open error 12"

Post by tawnyuk » Sun Feb 25, 2018 5:15 pm

badgenes wrote:
Tue Jun 13, 2017 3:05 pm
Like many newbie rtlsdr enthusiasts, I began my quest for information by reading, reading, reading. Along the way I discovered there are many different packages available to use on Windows and Linux that interested me. Once I had some basics down and realized how little RF knowledge I have I began to look at the more specialized applications available for Windows. The first one I installed was RTLSDR Scanner. This application has many dependencies, one of which is libusb.dll. Several Windows applications have this dependency, URH is another application with this dependency, for example. RTLSDR Scanner was well suited for my purposes but would not run, quitting with the "USB Open Error -12". URH fared no better. I read every forum posting and article I could find but none helped me resolve this issue. I then attempted to get both working on a laptop, same issue. I moved to another laptop and was surprised to find it worked. All the same OS, same build, same drivers. I was at a loss. My son also let me know he was having the same issue on his laptop, but I couldn't easily see his configuration and I believe his OS version to be different. I moved on for a few days until...

It wasn't until I noticed a discrepancy in posted explanations of the Zadig driver installation process that I realized what was different between my laptops and desktop. The laptop that worked had the driver installed for the composite device, while both desktop and second laptop had the driver installed for "Bulk Interface (0)". So far I'd only read one guide mentioning installing for the composite, the one that caused me to go look at all three to begin with. Figuring it would not make my situation worse I removed the device and drivers from my desktop (with SDR plugged in...Device Manager, right-click device, Uninstall, check box to remove drivers). I then ran the Zadig installer, checked the entry for "List All Devices", then cleared the check for "Ignore Hubs or Composite Devices". I then located the RTLSDR???? (Composite) entry and installed the driver for this device only. Zadig installer prompted me that I was replacing a system driver, I accepted and closed the Zadig installer.

I tested the apps dependent on libusb.dll, all work as expected. All of my other Windows applications work as well, including SDR# (uses another version of libusb.dll). While YMMV I can say that I've done this on 3 Windows 10 x64 PCs, and my son has done this on his Windows 8.1 x64 PC and all have had no further issue with libusb.dll or any Windows applications.

I hope this helps someone who has given up on using any of these great applications on Windows. Of course if it would be helpful I can create a nice PDF with screenshots and markup but I do that frequently at work and preferred to wait as I have been procrastinating posting this already.

badgenes

Literally made an account to say this. You have single handedly saved my dissertation. Present me the means to buy you a pint and I shall do so. thank you.

skoreanpark
Posts: 1
Joined: Mon Nov 19, 2018 3:34 am

Re: Fix for libusb issue "USB Open error 12"

Post by skoreanpark » Mon Nov 19, 2018 3:39 am

Your tip helped me fix my problem also. Had the same problem with the usb_open error -12 when trying enable the software bias tee driver. Uninstalled the original driver, and then followed your steps (List All Devices >> Ignore Hubs or Composite Devices >> Selected RTL >> Install >> Voila!). Thanks a bunch again for sharing your fix.

OS: Windows 10
Zadig: Zadig 2.4
SDR: RTL-SDR v.3

Post Reply