jvde-github / AIS-catcher

AIS receiver for RTL SDR dongles, Airspy R2, Airspy Mini, Airspy HF+, HackRF, SDRplay and SoapySDR

Home Page:https://aiscatcher.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not detect usb device

jnovos opened this issue · comments

Hi,
When I put the command AIS-catcher -l it does not detect any device installed in the usb although the lsusb command detects it.

Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

If I run the following command rtl_sdr -s 288K -f 162M - | AIS-catcher -r . -s 288K -v it works

I think it's because of the usb dock.

Thanks,

it is a very good job

Hi, weird, underlying it is the same library. Can you run AIS-catcher -L?

We can check if there is RTL-SDR support built-in as a first step

thanks Jasper

AIS-catcher -L
AIS-catcher (build Mar 21 2024) v0.58-30-g209db558
(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: SOXR SSL

CMakeLists.txt

option(SOAPYSDR "Include Soapy SDR support" OFF)
option(RTLSDR "Include RTLSDR support" ON)
option(AIRSPY "Include Airspy support" OFF)
option(SDRPLAY "Include SDRPLAY support" OFF)
option(AIRSPYHF "Include Airspy HF+ support" OFF)
option(HACKRF "Include HackRF support" OFF)
option(SOXR "Include SOXR support" ON)
option(CURL "Include CURL support" ON)
option(ZLIB "Include ZLIB support" ON)
option(SAMPLERATE "Include SAMPLERATE support" OFF)
option(ZMQ "Include ZMQ support" ON)
option(PSQL "Include PSQL support" OFF)
option(OPENSSL "Include OPENSSL support" ON)
option(NMEA2000 "Include NMEA2000 support" ON)

Yep, so something went wrong in the build as it has not included rtlsdr support.

Is this a raspberry? Did you install librtlsdr-dev?

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
librtlsdr-dev is already the newest version (0.6.0-3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

rtl applications were compiled from source code.

Orangepi Zero 2W 4Gb
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye

Oh, can you show the output of cmake .. in a fresh build? Maybe that gives a clue

Ok, I was doing that

-- The C compiler identification is GNU 10.2.1
-- The CXX compiler identification is GNU 10.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for linux/can.h
-- Looking for linux/can.h - found
-- Looking for linux/can/raw.h
-- Looking for linux/can/raw.h - found
-- NMEA2000: not found NMEA2000_LIB-NOTFOUND NMEA2000_INCLUDE-NOTFOUND
-- Checking for module 'libusb-1.0'
-- Found libusb-1.0, version 1.0.24
-- Checking for module 'libssl'
-- Found libssl, version 1.1.1w
-- OPENSSL: found - /usr/include, /usr/lib/aarch64-linux-gnu/libssl.so, /usr/lib/aarch64-linux-gnu/libcrypto.so
-- Checking for module 'libcurl'
-- No package 'libcurl' found
-- CURL: not found - CURL_INCLUDE_DIR-NOTFOUND, CURL_LIBRARY-NOTFOUND
-- Checking for module 'zlib'
-- Found zlib, version 1.2.11
-- ZLIB: found - /usr/include, /usr/lib/aarch64-linux-gnu/libz.so
-- Checking for module 'soxr'
-- Found soxr, version 0.1.3
-- SOXR: found - /usr/include, /usr/lib/aarch64-linux-gnu/libsoxr.so
-- Checking for module 'samplerate'
-- No package 'samplerate' found
-- libsamplerate: not found.
-- Checking for module 'librtlsdr'
-- Found librtlsdr, version 2.0.1
-- RTLSDR: found - /usr/local/include, /usr/local/lib/librtlsdr.so
-- Looking for rtlsdr_set_bias_tee
-- Looking for rtlsdr_set_bias_tee - found
-- RTLSDR: bias-tee support included.
-- Looking for rtlsdr_set_tuner_bandwidth
-- Looking for rtlsdr_set_tuner_bandwidth - found
-- RTLSDR: tuner badwidth support included.
-- Checking for module 'libzmq'
-- Found libzmq, version 4.3.4
-- ZMQ: found - /usr/include, /usr/lib/aarch64-linux-gnu/libzmq.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/orangepi/AIS-catcher/build

This looks ok actually, can you make again in this directory and then ./AIS-catcher -L

It has worked
but the SPYSERVER is not set to ON into CMakeLists.txt

./AIS-catcher -L
AIS-catcher (build Mar 21 2024) v0.58-30-g209db558
(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 RTLTCP SPYSERVER ZMQ
Other support: SOXR NMEA2000 SSL ZLIB RTLSDR-BIASTEE RTLSDR-TUNERBW

It looks like it is working now. Great!

Why your comment about SPYSERVER on? SPYSERVER is always included (same as RTLTCP) as it does not require external libraries so have included it by default.

Does this resolve it?

Kind regards, Jasper

I am recreating the same initial situation before opening the issue. :-)

Hi Jorge, I am sorry...what do you mean? AIS-catcher -l does not show the RTL-SDR yet?

No, everything is ok, I just want to know why before I didn't go and now I do. You can close the issue.
Thank you very much @jvde-github

Yeah, it is a bit odd, but glad that it is resolved. Enjoy the program and consider feeding with -X :-)