hackrf_sweep not working (Windows)

473 views
Skip to first unread message

vempir...@gmail.com

unread,
Nov 30, 2017, 5:22:51 AM11/30/17
to Pothos Users
Hi,

PothosSDR includes support for HackRF One and thus provides the hackrf tools.

Unfortunately, hackrf_sweep.exe is broken and will crash immediatly when called from command shell or from a program like qspectrumanalyzer.

Apparently the bug has been found and it was submitted: https://github.com/mossmann/hackrf/issues/361

It would be great if the fix could be implemented and included in PothosSDR.

Regards,
Vitor



Josh Blum

unread,
Nov 30, 2017, 6:37:07 PM11/30/17
to pothos...@googlegroups.com
Yea, that's a pretty strait-forward bug, the types don't match and they
are different sizes on some platforms. Seems like an issue in general,
windows x64 might not be the only problem platform, but who knows. --
Its simple enough that I'm surprised no one has fixed it already.

In any case, I can keep patches in PothosSDR/patches, but it seems like
maybe we can just get a pull request in first. I do build from hackrf
master branch FWIW. So whatever comes first when I rebuild.

-josh

>
> Regards,
> Vitor
>
>
>

vempir...@gmail.com

unread,
Dec 1, 2017, 4:51:24 AM12/1/17
to Pothos Users
Unfortunatly I don't seem to be able to compile it myself... :( 
Tried with MinGW, but got a LOT of errors with all kind of libraries missing. Was able to fix the FFTW ones, but then the final obstacle was the pthread.h missing...

I would really appreciate if someone could send me the corrected "hackrf_sweep.exe".

Regards,
Vitor
 

Josh Blum

unread,
Dec 4, 2017, 11:49:21 AM12/4/17
to pothos...@googlegroups.com
The patch got merged, but interestingly there is some issue with how
qspectrum analyser scans timestamps:
https://github.com/mossmann/hackrf/commit/a1f9361f78df45c69cfac725b2249a0fd9f147e1

I'm not really sure that I understand that, but with this in mind, you
should be able to rebuild and debug some python code hopefully.


On 12/01/2017 03:51 AM, vempir...@gmail.com wrote:
> Unfortunatly I don't seem to be able to compile it myself... :(
> Tried with MinGW, but got a LOT of errors with all kind of libraries
> missing. Was able to fix the FFTW ones, but then the final obstacle was the
> pthread.h missing...
FWIW, I build hackrf with cmake and msvc (community) and the PothosSDR
installer should have include/pthread.h and lib/pthreadVC2.lib pre
compiled if that helps (and same with the other hackrf dependencies like
fftw and libusb)

-josh
Reply all
Reply to author
Forward
0 new messages