pavsa / hackrf-spectrum-analyzer

GNU General Public License v3.0
684 stars 101 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.

sohmee commented 1 month ago

@NetJump

I dont know if you finally got hackrf-spectrum-analyze working in windows 11?

I found that it works with mayhem firmware even if you dont have a portapack

Install via device manager the mayhem driver winusb v1 or with zadig install winusb v6.1

Install Firmware Version: mayhem n_241018 (API:1.08) or latest

Install java -version java version "11.0.25" 2024-10-15 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.25+9-LTS-256)

hackrf is also working with sdrsharp and sdr console

I noticed hackrf_info just froze in the command line if running winusb v1 driver and a way around it was to install driver winusb v6.1 using zadig or via the device manager.