pavels / spektrum

rtl-sdr spectrum analyzer
BSD 3-Clause "New" or "Revised" License
577 stars 91 forks source link

Can not open RTL sdr device on startup #8

Closed wa3tfs closed 3 years ago

wa3tfs commented 6 years ago

I get error when trying to open program. Running win 10 64 bit on laptop. I use the dongle on HDSDR and SDR# with no problem but it will not work with this program for some reason. Any ideas?

willydp commented 6 years ago

Same problem here: Gray screen at startup and message can't connect device: RTL SDR working fine in other programs and Visual ++ 64 is installed. No one??????

radiojitter commented 6 years ago

yes , i have same issue

iotlearner0level commented 6 years ago

same problem here.

pavels commented 6 years ago

Hi unfortunately i have very little time for this project now - gray screen means that something crashed during initialization - the only way to debug this is to install processing, open the project there and run it, you will have console with exceptions there and you will see some errors If somebody can provide me with some exception log, i can take a look, without anything it is hard for me to debug

iotlearner0level commented 6 years ago

i've spent some more time with this. looks like there are two rtlsdr devices listed #0 a bogus one and #1 the real hardware. rtlsharp selects the correct one... commandline utility also lists two devices. maybe that could be the cause.

pavels commented 6 years ago

Hmm so we would need the device selection - i will try to find some time and add some way to select which device is used

RCZevallos commented 6 years ago

Pavel. Please i will appreciate if you also let Spektrum to work further than 2.147 GHz. At least up to 2.3 GHz to work with the NESDR XTR+ dongle. Thanks in advance.

NB: I have the same message "Can´t open rtl-sdr device" on Windows 10 64 bits. SDR# and Touchtone works fine in the same laptop.

tdbone1 commented 6 years ago

could really use that device selection please.

pavels commented 6 years ago

Device selection done

BTW on Win10 - if you get can't open device, get zadiag and reinstall winusb for your dongle

girogiacomo commented 6 years ago

Hi, it's my first post on GitHub, so tell me if I'm breaking some rules :D I've tried your software both on windows 10 and windows 7 and on w7 it works perfectly fine but in w10, i'm able to select the device throw the library swap tib but i'm still unable to access the device because when I select one of the two devices (why 2.. I've a single SDR dondle...) I'm unable to get it work because appears a warning message.... If I try to select the other device, same story.... immagine Very thanks for this amazing project and best of luck! (Sorry for my poor english :))

wa3tfs commented 6 years ago

I had the same problem, downloaded the latest software version and re-installed Zadig and it now works.

radiojitter commented 6 years ago

I had same issue, I downloaded latest version of Zadig ( mine is 64 bit) ,re installed the Zadig ,reinstslled the rtl SDR kernel driver, now spectrum is working fine. I wanted to use it for swr measurement , anyway it works good as simple spectrum analyser. Regards Priyasloka Arya

On Sat 19 May, 2018, 2:14 AM wa3tfs, notifications@github.com wrote:

I had the same problem, downloaded the latest software version and re-installed Zadig and it now works.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pavels/spektrum/issues/8#issuecomment-390327047, or mute the thread https://github.com/notifications/unsubscribe-auth/AGVgGzs2WZBBkZvvVKf_6B8P8OfLURfxks5tzzKlgaJpZM4P53Ko .

kghill commented 5 years ago

Hi All: On my computer I have had success running version 1.0.2 of Spectrum on Windows 10 64 bit. What I have done is: 1). put the Spectrum folder on my desktop, 2) Shutdown all other apps and turned off my WiFi and bluetooth. (I have had to do this with other apps.. I think my computer runs a little slow). 3) Unplug all other USB devices 4) plug in my RTL-SDR Usb device and check in device manager that it is recognized. 5) Launch Spectrum. It will come up with a grey screen and a few seconds later the screen comes up.

So far I have analyzed two antennas using the above method. (See enclosed)

I would to thank the author for the work he has done on this project.

1qtr wave ground plian

tjt263 commented 5 years ago

Debian

Error:

user@debian:~$ ~/Desktop/spektrum/spektrum 

Loading libs from /user/Desktop/spektrum/lib.
Library rtlsdr file /user/Desktop/spektrum/lib/librtlsdr.so.
Library rtlpower file /user/Desktop/spektrum/lib/librtlpower.so.
Generic RTL2832U OEM
ControlP5 2.2.5 infos, comments, questions at http://www.sojamo.de/libraries/controlP5
Reached end of setup.
Loading libs from /user/Desktop/spektrum/lib.
Library rtlsdr file /user/Desktop/spektrum/lib/librtlsdr.so.
Library rtlpower file /user/Desktop/spektrum/lib/librtlpower.so.

Kernel driver is active, or device is claimed by second instance of librtlsdr.
In the first case, please either detach or blacklist the kernel module
(dvb_usb_rtl28xxu), or enable automatic detaching at compile time.

usb_claim_interface error -6
File /user/Desktop/spektrum/data/config.csv
File /user/Desktop/spektrum/data/config.csv exists.
Reached end of makeconfig
Config table config.csv loaded.
startFreq = 88000000 stopFreq = 108000000 binStep = 1000 scaleMin = -110 scaleMax =  40 vertCusorFreq = 88000000

Workaround:

rmmod -f dvb_usb_rtl28xxu
rmmod -f dvb_usb_v2
rmmod -f rc_core
laurencedv commented 4 years ago

same problem as @tjt263 mentionned in LM19.3 (ubuntu 18.04 based) basicly just ensure the rtl_sdr module is the only one currently active for the dongle.

Thanks to @pavels and @tjt263

rag2 commented 4 years ago

On Ubuntu 18.04 system with standard repository librtlsdr, unloading kernel modules didn't help, since repository librtlsdr kept seizing the dongle when plugged in, and wouldn't release the dvb_usb_rtl28xxu module when plugged in.

However, using VirtualBox (plus extension pack and guest additions) worked with a VM consisting of vanilla Ubuntu 18.04 plus Spektrum install, including setting a USB filter to seize the RTL-SDR USB. (Loading an OS in to a VM (virtual machine) was very fast, so easy to set up!) Then the modified librtlsdr takes control of the RTL-SDR dongle and all seems to work as it should.

pavels commented 4 years ago

@rag2 there is some output to the console when spektrum is started from command line - can you pleas post this output? Looks like the wrong version of the librtlsdr is picked up - that should have been fixed in latest version but maybe a messed something up