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: 2765
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

getontoit
Posts: 1
Joined: Tue Nov 19, 2019 3:45 am

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

Post by getontoit » Tue Nov 19, 2019 3:48 am

I have also registered here just to express my thanks, for the information you posted. I would never have got there on my own!

oldengineer
Posts: 1
Joined: Mon Dec 23, 2019 11:37 pm

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

Post by oldengineer » Mon Dec 23, 2019 11:47 pm

As like the two responses before me. I registered to send my thanks and kudos for the solution that I searched for some time. I was trying to run the "RTLSDR Scanner" from " http://eartoearoak.com/software/rtlsdr-scanner" as an improvement to the SDRSharp scanner that doesn't seem to serve my needs for wanting a method to check my antenna cable connections on outside mounted TV antennas on a Win10 laptop but I was stymied until seeing your solution. It worked immediately the first time. Thank you very much

subguy
Posts: 1
Joined: Fri Jan 10, 2020 5:57 pm

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

Post by subguy » Fri Jan 10, 2020 6:02 pm

badgenes,
Your solution worked perfectly! Easy to follow explanation. Took only a few minutes, and I was in business! (laptop running win10) Thank you. :D

Farrout
Posts: 13
Joined: Wed Mar 02, 2016 7:34 pm

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

Post by Farrout » Mon Apr 27, 2020 4:06 pm

Your post is still helping people.
Thanks
Dennis

praneeth9666
Posts: 1
Joined: Mon Jun 15, 2020 10:16 pm

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

Post by praneeth9666 » Mon Jun 15, 2020 10:38 pm

I am not getting the composite option for my RTLSDR. I uninstalled the previous driver and continued with the process. The error still persists.
Can anyone please help? Thanks
Attachments
Annotation 2020-06-16 040156.jpg
Annotation 2020-06-16 040156.jpg (45.97 KiB) Viewed 2925 times

crm911
Posts: 1
Joined: Fri Oct 23, 2020 6:35 am

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

Post by crm911 » Fri Oct 23, 2020 6:45 am

praneeth9666 wrote:
Mon Jun 15, 2020 10:38 pm
I am not getting the composite option for my RTLSDR. I uninstalled the previous driver and continued with the process. The error still persists.
Can anyone please help? Thanks
I too signed up to thank badgenes. His instructions worked for me first time. Do read carefully, as I had to more than once before I started. First remove the device Bulk Interface (0) in Device Manager.

Then run Zadig and uncheck Options > Ignore Hubs etc. Then select RTL2838UHIDIR - which is for RTL-SDR.com v3 in my case.

It worked for me. Thanks, badgenes.

73 de VK3BT

Post Reply