Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/neural75/gqrx-scanner

A frequency scanner for Gqrx Software Defined Radio receiver
https://github.com/neural75/gqrx-scanner

band frequencies gqrx ham-radio linux radio-frequency rtl-sdr scanner sdr signal-detection sweep

Last synced: 10 days ago
JSON representation

A frequency scanner for Gqrx Software Defined Radio receiver

Awesome Lists containing this project

README

        

![gqrx-scanner](media/gqrx-scanner-repository.png)
# gqrx-scanner
A frequency scanner for [Gqrx Software Defined Radio](http://gqrx.dk/) receiver

## Description

gqrx-scanner is a frequency scanner written in C that uses [gqrx remote protocol](http://gqrx.dk/doc/remote-control) to perform a fast scan of the band. It can be used in conjunction with the gqrx bookmarks (--mode bookmark) to look for the already stored frequencies or, in a free sweep scan mode (--mode sweep), to explore the band within a specified frequency range (--min, --max options).

The sweep scan uses an adaptive algorithm to remember the active frequencies encountered during the sweep, that prioritizes active stations without stopping to look for new ones.

Gqrx Squelch level is used as the threshold, when the signal is strong enough it stops the scanner on the frequency found.
After the signal is lost the scanner waits a configurable ammount of time and restart the loop (--delay option).

In sweep mode the scan of the band is performed fast (well, as fast as it can), self asjusting the scanning speed. On signal detection a fine tuning is performed to pinpoint the nearest carrier frequency (subdivision of upper and lower limits with increasing precision) and, for the already seen carriers, a previous value is used to avoid fine tuning at every hit. This value is also averaged out with the new one in order to converge eventually to the exact frequency in less time (after 4 hits of the same frequency).

## Features
* Support for Gqrx bookmarks file
* Fast sweep scan with adaptive monitor of the most active stations
* Frequency range constrained scan (also for bookmarks)
* Multiple Tag based search in bookmark scan mode ("Tag1|Tag2|TagX").
* Automatic Frequency Locking in sweep scan mode
* Interactive monitor to skip, ban or pause a frequency manually

## Pre-requisites
Gqrx Remote Protocol must be enabled: Tools->Remote Control. See [this](http://gqrx.dk/doc/remote-control).

## Notes on Gqrx settings
It is advisable to disable AGC during the scan: adjust the fixed gain lowering the noise floor to at least -60/-70 dBFS and set the squelch level to -50/-40 dBFS, depending on the band activities and noise levels.

The best results are obtained in relative quiet frequencies with sporadic transmissions. If the band is cluttered with harmonics and other types of persistent noise, avoid the sweep scan and use the bookmarks mode with a higher squelch level (or use the 'b' key to ban a frequency from the scan).

In sweep mode use a limited bandwidth of about 2 MHz in order to avoid VFO and noise floor levels chainging during the sweep.
If you don't provide the --min, --max option, set the demodulator frequency to the middle of the screen and start from there in order to avoid the panadapter to move during the scan.

You may also consider to adjust FFT options: FFT size and rate (on FFT Settings) to improve performances (and cpu usage).
I have found better result with high fft size (64536) and 17 fps refresh rate, but this depends on your hardware.

## Command line Options
```
Usage:
gqrx-scanner [-h|--host ] [-p|--port ] [-m|--mode ]
[-f ] [-b|--min ] [-e|--max ]
[-d|--delay ]
[-t|--tags <"tag1|tag2|...">]
[-v|--verbose]

-h, --host Name of the host to connect. Default: localhost
-p, --port The number of the port to connect. Default: 7356
-m, --mode Scan mode to be used. Default: sweep
Possible values for : sweep, bookmark
-f, --freq Frequency to scan with a range of +- 1MHz.
Default: the current frequency tuned in Gqrx Incompatible with -b, -e
-s, --step Frequency step in Hz. Default: 10000
-b, --min Frequency range begins with this in Hz. Incompatible with -f
-e, --max Frequency range ends with this in Hz. Incompatible with -f
-d, --delay

```

## Interactive Commands
These keyboard shortcuts are available during scan:
```
[space] OR [enter] : Skips a locked frequency (listening to the next).
'b' : Bans a locked frequency, the bandwidth banned is about 10 Khz from the locked freq.
'c' : Clears all banned frequencies.
'p' : Pauses scan on locked frequency, 'p' again to unpause.
```

## Examples
Performs a sweep scan with a range of +-1Mhz from the demodulator frequency in Gqrx:
```
./gqrx-scanner
```

Search all bookmarks for frequencies in the range +- 1 Mhz from the demodulator frequency in Gqrx:
```
./gqrx-scanner -m bookmark
```

Performs a sweep scan from the central frequency 144.000 MHz using the range 143.000-145.000 MHz:
```
./gqrx-scanner -f 144000000
```

Performs a scan using Gqrx bookmarks, monitoring only the frequencies tagged with "DMR" or "Radio Links" in the range 430MHz-431MHz:

```
./gqrx-scanner -m bookmark --min 430000000 --max 431000000 --tags "DMR|Radio Links"
```

Performs a sweep scan from frequency 430MHz to 431MHz, using a delay of 3 secs as idle time after a signal is lost, restarting the sweep loop when this time expires:
```
./gqrx-scanner --min 430000000 --max 431000000 -d 3000
```

### Sample output

```
$ ./gqrx-scanner -m bookmark -f 430000000
Frequency range set from 429.000 MHz to 431.000 MHz.
[04-08-17 19:51:54] Freq: 430.037 MHz active [ Beigua ], Level: -40.20/-50.70 [elapsed time 03 sec]
[04-08-17 19:51:57] Freq: 430.288 MHz active [ ponte dmr ], Level: -39.00/-50.70 [elapsed time 43 sec]
[04-08-17 19:52:40] Freq: 430.887 MHz active [ DMR ], Level: -30.50/-50.70 [elapsed time 11 sec]
[04-08-17 19:53:23] Freq: 430.900 MHz active [ Genova DMR ], Level: -32.20/-50.70 [elapsed time 14 sec]
```

## Build and Install
```
cmake .
make
sudo make install
```

## To build for Mac-OSX

run `ccmake`, toggle, and set CMAKE_C_FLAGS=-DOSX

```
ccmake .
cmake .
make
sudo make install
```

## Uninstall
```
sudo make uninstall
```

## TODOs
* set modulation in bookmark search
* automatic audio recording on signal detection
* parsable output in csv?