jvde-github / AIS-catcher

AIS receiver for RTL SDR dongles, Airspy R2, Airspy Mini, Airspy HF+, HackRF, SDRplay and SoapySDR
https://aiscatcher.org
GNU General Public License v3.0
503 stars 77 forks source link

Invalid device setting LNA #276

Closed tkalfaoglu closed 5 months ago

tkalfaoglu commented 5 months ago

Hi. Just compiled it under Fedora 40, and trying it with HackRF One plugged in:

$ AIS-catcher -gf lna 16 vga 16 preamp OFF AIS-catcher (build May 31 2024) v0.59-60-g089288ab (C) Copyright 2021-2023 jvde-github and other contributors This is free software; see the source for copying conditions.There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Error: Invalid Device setting: "LNA" $

tkalfaoglu commented 5 months ago

Likewise AIS-catcher -l returns no devices found, but it works well with gnu radio

jvde-github commented 5 months ago

Can you run AIS-catcher -L to see if there is actually support for HackRF in your executable?

AIS-catcher (build May 31 2024) v0.59-60-g089288ab
(C) Copyright 2021-2023 jvde-github and other contributors
This is free software; see the source for copying conditions.There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
SDR support: RTLSDR AIRSPY AIRSPYHF+ SDRPLAY RTLTCP SPYSERVER ZMQ HACKRF 

I suspect it is not included.

jvde-github commented 5 months ago

You need to install the development libraries for the hackrf before running cmake. I am just not sure what the instructions are to do this in Fedora.

tkalfaoglu commented 5 months ago

Many thanks it is not included.. turgut@big-laptop:~/AIS-catcher$ ./AIS-catcher -L AIS-catcher (build May 31 2024) v0.59-60-g089288ab (C) Copyright 2021-2023 jvde-github and other contributors This is free software; see the source for copying conditions.There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. SDR support: RTLTCP SPYSERVER ZMQ Other support: CURL SSL ZLIB

jvde-github commented 5 months ago

I see there is a hackrf-devel package for Fedora. Make sure you see something like this when you run cmake:

-- Checking for module 'libhackrf'
--   Found libhackrf, version 0.6
-- HACKRF: found - /usr/include/libhackrf, /usr/lib/x86_64-linux-gnu/libhackrf.so
tkalfaoglu commented 5 months ago

Many thanks! Indeed it was missing it..