Giter Site home page Giter Site logo

neural75 / gqrx-scanner Goto Github PK

View Code? Open in Web Editor NEW
251.0 251.0 35.0 418 KB

A frequency scanner for Gqrx Software Defined Radio receiver

License: MIT License

CMake 4.37% C 95.63%
band frequencies gqrx ham-radio linux radio-frequency rtl-sdr scanner sdr signal-detection sweep

gqrx-scanner's People

Contributors

grappas avatar l29ah avatar lwvmobile avatar neural75 avatar rabarar avatar simonachmueller avatar t-geindre avatar theulings avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gqrx-scanner's Issues

Scan and create bookmarks

This is a feature request. I would like to start a scan of the fm-broadcast band in the us, which is 88Mz to 108mhz, and make bookmarks of all the active stations it finds. Then be be able to save he bookmarks by name/geographical location.

For example, do a scan in my home town and save it as home. Do another scan when in Chicago and save the list as Chicago.

Now a simpler bookmark display could be displayed that show a bunch of buttons/presets for that area. Then have the saved locations shown so can call up the bookmarks for that location.

It appears that this gqrx-scanner can already do the scanning but I see no way to have it build a bookmark list.

Step size option

Feature Request:
-s option for step size in hz

Would be useful for air band and marine band scanning.

Sweep Speed

First, I want to say that the software is excellent and it has been a lot of fun to use!
When I am experimenting with different SDR's, I am curious what is the limitation on sweep speed in the program?

Is it feasible to be able to sweep faster to take full advantage hardware that supports faster sweeps?

Thanks!

Cmake errors

Linux Mint 19.1 based on Ubuntu 18.04.

Cmake . Cmake run from directory '~/gqrx-addons/gqrx-scanner-master' I created that 'gqrx-addons' in /home/den. Cmake . failed with errors (should I have posted error log?--many lines but each says 'The output was: No such file or directory'.

make then failed with output of 'make: *** No targets specified and no makefile found. Stop.'

For whatever it is worth, I had to install cmake with recommended 'sudo apt install cmake'.
Dennis E.

Scanner Slip

When scanning three channels, I often find that though the scanner does detect the signal, it will cause the scanner to stop on the following channel. For example, the scanner will pick up a signal on channel 1 and then stop on channel two. This is the command I'm using.

gqrx-scanner ./gqrx-scanner -m bookmark -t "Emergency" -d 7

I'm running it on my Manjaro arch install of linux with the command running non sudo in terminal.

I am not a coder, but I suspect from seeing the issue it may be caused by the code not checking which channel the signal was detected on before halting the scan and going into delay. In other words the code may not be verifying the frequency of the signal which caused it to issue the halt command, so when a signal comes through near the end of the listen period the scanner can tend to slip off the desired frequency.

Hopefully I have made my self understood. Great work on this, I use it much.

uninstall target

hi
this is not an issue... I know.
but how do I uninstall this package from my machine? you haven't provided a uninstall target
I'm on ubuntu18 by the way
thank you

broken bookmark search

The option opt_min_freq and opt_max_freq can be 0 (it is a valid default), in that case they are calculated later from the tuned frequency, this line introduced a regression due to the early malloc allocation of the Frequencies:
https://github.com/neural75/gqrx-scanner/blame/b4264a6055cb1e9ecec5c57d148142c2e76e6ac3/gqrx-scan.c#L1562

The min max are calculated here:
https://github.com/neural75/gqrx-scanner/blame/b4264a6055cb1e9ecec5c57d148142c2e76e6ac3/gqrx-scan.c#L1589

@grappas please move the malloc after this condition to avoid the segfault (https://github.com/neural75/gqrx-scanner/blame/b4264a6055cb1e9ecec5c57d148142c2e76e6ac3/gqrx-scan.c#L1574)

Steps to reproduce:
gqrx-scanner -m bookmark

Make error: initializer element is not constant

Building on Ubuntu 18.04 I get the following error at the make stage:

$ cmake .
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jon/git/gqrx-scanner
jon@joncomp:~/git/gqrx-scanner$ make
[ 33%] Building C object CMakeFiles/gqrx-scanner.dir/gqrx-scan.c.o
/home/jon/git/gqrx-scanner/gqrx-scan.c:123:31: error: initializer element is not constant
freq_t opt_scan_bw = g_default_scan_bw;
^~~~~~~~~~~~~~~~~
CMakeFiles/gqrx-scanner.dir/build.make:75: recipe for target 'CMakeFiles/gqrx-scanner.dir/gqrx-scan.c.o' failed
make[2]: *** [CMakeFiles/gqrx-scanner.dir/gqrx-scan.c.o] Error 1
CMakeFiles/Makefile2:83: recipe for target 'CMakeFiles/gqrx-scanner.dir/all' failed
make[1]: *** [CMakeFiles/gqrx-scanner.dir/all] Error 2
Makefile:135: recipe for target 'all' failed
make: *** [all] Error 2

Squelch modifier

Is your feature request related to a problem? Please describe.
Random signal spikes causes loop breaking or audible signals are choked by squelch.

Describe the solution you'd like
Squelch modifier - lets say --top_squelch <value in -dB> <-- that's a value that breaks the loop and let us hear an audio signal. After --top_squelch is broken gqrx-scanner immediately sets squelch to --bottom_squelch (have to be lower value than --top_squelch) and let us hear audible signal until it's below --bottom_squelch. After that squelch is set again as --top_squelch.

Describe alternatives you've considered
n/a

Additional context
Idea is from frequency-scanner plugin from SDR#. It was a workaround as "mute" (still measuring SNR and double squelch floor as the whole idea). It worked out pretty well.

Using Squelch & Using Mode Saved in Bookmarks

How do you set the squelch exactly? I assume it is the -q option, but how do you set a negative value? I like to run the scanner at -60.0 dB. I tried this but it gives me the "Error: -q: option requires an argument":

-q -60.0

Now if I use this, the scanner works, but on activity it resets the squelch to -110.0 dB:

-q 60.0

Also, how do you tell the scanner to use the mode saved to the bookmark? I have a mix of AM and NFM frequencies I scan. The mode doesn't switch on activity.

DMR detector add

it would be good to add DMR signal detection to the scanner for at least two reasons
1.in the case of scanning, it would not stop on the idling DMR networks

2.on the other hand, in case of scanning DMR networks it would be good if it would stop on the active network, find out if there is a call and if there is no call it would continue.

the actual decoding and all necessary features can be solved by a third party application in the standard way (virtial audio or TCP audio link) and it doesn't have to be a part of it because of the unclear license to AMBE, or it can be solved with the help of ambesticks etc etc...

Bookmarks file required

Describe the bug
After a new install of gqrx without adding any bookmarks, gqrx-scanner fails to run a scan. This is inclusive of sweep scans which shouldn't require any bookmarks.

To Reproduce
Steps to reproduce the behavior:

  1. Install fresh gqrx or delete ~/.config/gqrx/bookmarks.csv
  2. Start gqrx
  3. Enable remote control
  4. run gqrx-scanner
  5. See error: 'Error opening gqrx bookmarks file: No such file or directory'

Expected behavior
Run a sweep scan of the current frequencies in gqrx (See https://github.com/neural75/gqrx-scanner#description)
Sweep scan is listed as the default for -m

Desktop (please complete the following information):

  • OS: Raspbian 11 (bullseye)
  • Browser N/A ?
  • Version: e3a0e56 (master)

MacOs compiling problems

This is my setup:

Apples-MacBook-Pro:gqrx-scanner-master mauro$ uname -a
Darwin Apples-MacBook-Pro.local 16.6.0 Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64 x86_64
Apples-MacBook-Pro:gqrx-scanner-master mauro$ make -v
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0
Apples-MacBook-Pro:gqrx-scanner-master mauro$ gcc -v
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

This is my test:

gqrx-scanner-master mauro$ cmake .
-- The C compiler identification is AppleClang 8.1.0.8020042
-- The CXX compiler identification is AppleClang 8.1.0.8020042
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/mauro/Downloads/gqrx-scanner-master
Apples-MacBook-Pro:gqrx-scanner-master mauro$ make
Scanning dependencies of target gqrx-scanner
[ 33%] Building C object CMakeFiles/gqrx-scanner.dir/gqrx-scan.c.o
/Users/mauro/Downloads/gqrx-scanner-master/gqrx-scan.c:38:10: fatal error: 'stdio_ext.h' file not found
#include <stdio_ext.h>
^
1 error generated.
make[2]: *** [CMakeFiles/gqrx-scanner.dir/gqrx-scan.c.o] Error 1
make[1]: *** [CMakeFiles/gqrx-scanner.dir/all] Error 2
make: *** [all] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.