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
Cannot Start HackRF Device Windows 7 x64 #283
Comments
Probably should update your HackRF firmware. |
Did you try updating the HackRF firmware as @vsboost suggested? You can follow this guide for it. I just verified that HackRF works on Win7 with HackRF firmware version 2017.02.1. |
Thank you for checking into that for me, I did update my HackRF from another pc but am unable to get to it at the moment to try again. Tomorrow I will see if it is working and close my ticket it that fixes it. |
Updating the firmware does not seem to have resolved the issue. I get this error: HackRF-SETUP: HACKRF_ERROR_NOT_FOUND (-5) However hackrf_info gives this: Found HackRF board. |
Edited above comment, re-opening |
What does device manager say for the HackRF? |
HackRF One
…On Jun 6, 2017 11:35 PM, "vsboost" ***@***.***> wrote:
What does device manager say for the HackRF?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#283 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ANMlV85ZD8sg2IFUEvPRS7XbkEd_ATePks5sBhptgaJpZM4NvhMz>
.
|
Is it using Winusb driver from Zadig? |
Yes, I also tried the other options to no avail
…On Jun 6, 2017 11:37 PM, "vsboost" ***@***.***> wrote:
Is it using Winusb driver from Zadig?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#283 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ANMlV-8yeXd81U02FkoqsYrksa4WNT_Bks5sBhr_gaJpZM4NvhMz>
.
|
I am using the latest release of zadig |
Can you give full output from command shell like below and try a different USB port. the one below is me starting hackrf without it being connected.Microsoft Windows [Version 6.3.9600] C:\Windows\System32>urh Win32; Microsoft Visual C++ version 14.0; Boost_105900; UHD_003.010.001.001-release [INFO::SettingsProxy.py::get_receive_buffer_size] Initializing receive buffer with size 2.906GB |
Using DLLs from: c:\users\kr0siv\appdata\local\programs\python\python36\lib\site [INFO::SettingsProxy.py::get_receive_buffer_size] Initializing receive buffer wi |
Maybe there went something wrong during the update with pip? Try a fresh install:
|
Same error after the re-installation and attempting to start my hackrf via urh |
Ok, then we have to dig a bit deeper here. Could you please try cloning the repo and building extensions like this: git clone https://github.com/jopohl/urh
cd urh
cd src
python urh/cythonext/build.py Now, stay in the python -c "from urh.dev.native.lib import hackrf; print('hackrf setup', hackrf.setup())"
python -c "from urh.dev.native.lib import hackrf; print('hackrf init', hackrf.init()); print('hackrf open', hackrf.open())"
python -c "from urh.dev.native.lib import hackrf; print('hackrf init', hackrf.init()); import time; time.sleep(1); print('slept 1 sec'); print('hackrf open', hackrf.open())" |
I will close here, as this seems to has stalled. Drop a comment if the problem persists and I will reopen. |
Perhaps some additional information would help. I am encountering a similar problem (on Win10 Creators) and additionally was unable to use pre-build hackrf-tools. hackrf_info returned the same above error (from libhackrf); I rebuilt libusb-1.0 and hackrf_info (not sure it matters, but I statically linked libusb-1.0) and also changed two lines in hackrf.c (only because I could not get pthread to build and hackrf.c only used 'create' and 'join' which are both one-liners in WinAPIs so replaced them with:
and
(yeah, I also changed device.transfer_thread to HANDLE but again I don't think that would make any difference to what is happening) AND yes, after rebuilding under VisualStudio 2017 Pro, my rebuilt version of hackrf_info successfully reported on the connected status of the USB device. My first suspicion leans towards something in libusb-1.0 and a change in something maybe in the WinAPI headers... but just a first guess. |
Thanks for the hints @win10IoT ! |
Works fine for me on Windows 10 Creators Update. I will merge it into master. |
Please use this template for bug reports. If you have a feature request or question just delete everything and write as you like.
Expected Behavior
Start the HackRF successfully
Actual Behavior
I get this error:
HackRF-SETUP: HACKRF_ERROR_NOT_FOUND (-5)
I found this odd because I have the HackRF works under SDR# and gnuradio.
I have hackrf tools installed here is the output of 'hackrf_info'
Steps to Reproduce the Problem
Platform Specifications
The text was updated successfully, but these errors were encountered: