Error on setup RTL-SDR (Error code -12)

43 visualizaciones (últimos 30 días)
David Castrillo Martínez
David Castrillo Martínez el 25 de Jul. de 2020
Editada: John el 13 de Ag. de 2025
I found this error when i try to setup my RTL-SDR on my PC. I use this same RTL-SDR on a laptop and works properly, indeed, i can use SDRsharp on this same PC and works.
When i try to setup on Matlab Hardware Setup, if fails on search ad connect and that error code -12 is displayed in the command window. I dont know what to do.
Thank you
  1 comentario
shakthivel s saravanan
shakthivel s saravanan el 2 de Feb. de 2022
Friend,did you find a solution??.. Share it please. Thanks

Iniciar sesión para comentar.

Respuestas (3)

Edwin Wilson
Edwin Wilson el 25 de Sept. de 2020
I found the fix after hours of scouring the Internet!
Install zadig -> Run it as administrator
In Options Check List All Devices >> Uncheck Ignore Hubs or Composite Devices
In drop down menu select the device saying RTL2838UHIDIR >> Click Replace Driver
Voila!
  5 comentarios
Kevin Epson
Kevin Epson el 1 de Jul. de 2022
This solution works! Thanks for posting
RUI
RUI el 13 de Mayo de 2024
very useful solution! really works. Great appreciated

Iniciar sesión para comentar.


John
John el 13 de Ag. de 2025
Editada: John el 13 de Ag. de 2025
If you're using an RTL-SDR v4, what worked for me is updating the dongle driver inside the files for Mathworks's Communications Toolbox Support Package for RTL-SDR Radio after having already gone through the RTL-SDR v4 Quick Start Guide. In particular, I'm on Windows 11 x64, and I just replaced rtlsdr.dll at the following locations with the x64 version of the new driver:
  1. C:\ProgramData\MATLAB\SupportPackages\R2025a\toolbox\shared\sdr\sdrr\bin\win64\rtlsdr.dll
  2. C:\ProgramData\MATLAB\SupportPackages\R2025a\3P.instrset\rtlsdrradio.instrset\rtl-sdr\lib\win64\rtlsdr.dll
  3. C:\ProgramData\MATLAB\SupportPackages\R2025a\3P.instrset\rtlsdrprecompiledlib.instrset\lib\rtlsdr.dll
I got my copy of the new driver from the SDR# x64 installation; note that I had to run "install-rtlsdr.bat" for the installer to download the driver first. You can also download the new driver for Windows/Linux/Mac at https://github.com/rtlsdrblog/rtl-sdr-blog.

sadeq ebrahimi
sadeq ebrahimi el 22 de Jun. de 2024
I have the same problem.
I can work with sdr sharp and ... but in matlab in "Test radio connection" it fail to find SDR.

Categorías

Más información sobre Communications Toolbox en Help Center y File Exchange.

Productos


Versión

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by