Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sohmee opened this issue Apr 29, 2023 · 7 comments
Open

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

sohmee opened this issue Apr 29, 2023 · 7 comments

Comments

@sohmee
Copy link

sohmee commented Apr 29, 2023

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
Copy link
Author

sohmee commented Apr 30, 2023

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
Copy link

NetJump commented May 19, 2023

Exactly the same problem here.

@sohmee
Copy link
Author

sohmee commented May 19, 2023

@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
Copy link

NetJump commented May 26, 2023

@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
Copy link
Author

sohmee commented May 27, 2023

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

@pavsa
Copy link
Owner

pavsa commented Jun 4, 2023

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
Copy link
Author

sohmee commented Oct 19, 2024

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants