pavsa / hackrf-spectrum-analyzer

GNU General Public License v3.0
618 stars 96 forks source link

hackrf-spectrum-analyzer not working in windows 11 #53

Open sohmee opened 1 year ago

sohmee commented 1 year ago

Hello,

It seams impossible to get this working.

Just done a fresh reinstall of windows 11 with all the updates

latest java is installed

hackrf firware release 2023.01.1

i used zadig to install hackrf driver to winusb v 6.1.72...

the hackrf works just fine with other sofware such as sdr console or sdr sharp

but when I launch hackrf_sweep_spectrum_analyzer_windows.cmd script the software opens but I dont get any spectrum.

no errors are shown in the cmd window

What could the problem be?

Thanks

sohmee commented 1 year ago

update: I just tested it on a windows 10 pc and it did not work either so I downgraded the hackrf firmware to 2018 version and it works OK but only on the windows 10 computer not on the windows 11 computer. anyone have any ideas how to get this working on windows 11? I have tried executing the cmd under administrator but that did not work. thanks

NetJump commented 1 year ago

Exactly the same problem here.

sohmee commented 1 year ago

@NetJump Further update:

I reinstalled Windows 11 again, the only difference this time I did not use zadig to load the driver, it was left as default and now it works just fine. I dont know if the problem was related to the hackrf driver or some other problem relating to the windows installation but one thing for sure it would not work for me with the latest hackrf firmware, it does work with the 2018 version. and you can execute the cmd under user, no need for administrator privilege. what version of firmware are you using and did you use zadig?

Another thing to note is that if you have the hackrf plugged directly into a usb port on your computer sometimes it will not work, if you still have trouble you could try using a powered usb hub. maybe you could try a different firmware, 2018 if you dont already have it. https://github.com/greatscottgadgets/hackrf/releases

NetJump commented 1 year ago

@sohmee , thanks for your update. In my case that did not solve the issue. I've used an older firmware and the (very) old exe file to run the spectrum analyzer. I've found those files in my Google Drive. A later build is not working anymore. HackRF shows as disconnected.

sohmee commented 1 year ago

@NetJump try the following. https://pypi.org/project/QSpectrumAnalyzer/

pavsa commented 1 year ago

on Windows 11 it seems to work without zadig - just tested it - the system uses WinUSB for hackrf device by default, which libusb then uses. I'll update the documentation.