Error on setup RTL-SDR (Error code -12)
이전 댓글 표시
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
shakthivel s saravanan
2022년 2월 2일
Friend,did you find a solution??.. Share it please. Thanks
답변 (3개)
Edwin Wilson
2020년 9월 25일
5 개 추천
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!
For reference : https://www.rtl-sdr.com/forum/viewtopic.php?f=7&t=1797
댓글 수: 5
DANIEL BURZEK
2021년 2월 6일
Hi Edwin,
I tried the method you mentioned and it didn't seem to fix my error code -12 issue. Did you happen to come across any other tips? I'm coming up blank right now. I can get my RTL to run using the SDRSharp software, but Matlab doesn't seem to want to communicate with it.
Ziv Glaser
2021년 3월 3일
I've got the same problem ):
shakthivel s saravanan
2022년 2월 2일
Can anyone help me with this problem??.. If anyone found a working solution... Thanks and regards
Kevin Epson
2022년 7월 1일
This solution works! Thanks for posting
RUI
2024년 5월 13일
very useful solution! really works. Great appreciated
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:
- C:\ProgramData\MATLAB\SupportPackages\R2025a\toolbox\shared\sdr\sdrr\bin\win64\rtlsdr.dll
- C:\ProgramData\MATLAB\SupportPackages\R2025a\3P.instrset\rtlsdrradio.instrset\rtl-sdr\lib\win64\rtlsdr.dll
- 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
2024년 6월 22일
0 개 추천
I have the same problem.
I can work with sdr sharp and ... but in matlab in "Test radio connection" it fail to find SDR.

카테고리
도움말 센터 및 File Exchange에서 Communications Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!