Das Rtl_power ist ein unix-hacker’s Tool für die Annäherung an den Wasserfall mit folgenden Features, ldt. Kyle Keen:
- Unlimited frequency range. You can do the whole 1.7GHz of a dongle
- Unlimited time. At least until you run out of disk for logging
- Unlimited FFT bins.
- Quantitative rendering. Exact power levels are logged.
- Runs on anything. A slower computer will use less samples to keep up.
Wer folgenden Abbruch
rtl_power: symbol lookup error: rtl_power: undefined symbol: rtlsdr_set_bias_tee
auf dem Raspberry Pi bei rtl-power bekommt, der kann die librtlsdr0 entfernen mit
1 |
sudo apt-get remove librtlsdr0 |
dann läufts.
Hier die Online Hilfe für rtl_power -h
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
rtl_power -h rtl_power, a simple FFT logger for RTL2832 based DVB-T receivers Use: rtl_power -f freq_range [-options] [filename] -f lower:upper:bin_size [Hz] (bin size is a maximum, smaller more convenient bins will be used. valid range 1Hz - 2.8MHz) [-i integration_interval (default: 10 seconds)] (buggy if a full sweep takes longer than the interval) [-1 enables single-shot mode (default: off)] [-e exit_timer (default: off/0)] [-d device_index (default: 0)] [-g tuner_gain (default: automatic)] [-p ppm_error (default: 0)] [-T enable bias-T on GPIO PIN 0 (works for rtl-sdr.com v3 dongles)] filename (a '-' dumps samples to stdout) (omitting the filename also uses stdout) Experimental options: [-w window (default: rectangle)] (hamming, blackman, blackman-harris, hann-poisson, bartlett, youssef) [-c crop_percent (default: 0%, recommended: 20%-50%)] (discards data at the edges, 100% discards everything) (has no effect for bins larger than 1MHz) [-F fir_size (default: disabled)] (enables low-leakage downsample filter, fir_size can be 0 or 9. 0 has bad roll off, try with '-c 50%') [-P enables peak hold (default: off)] [-D enable direct sampling (default: off)] [-O enable offset tuning (default: off)] CSV FFT output columns: date, time, Hz low, Hz high, Hz step, samples, dbm, dbm, ... Examples: rtl_power -f 88M:108M:125k fm_stations.csv (creates 160 bins across the FM band, individual stations should be visible) rtl_power -f 100M:1G:1M -i 5m -1 survey.csv (a five minute low res scan of nearly everything) rtl_power -f ... -i 15m -1 log.csv (integrate for 15 minutes and exit afterwards) rtl_power -f ... -e 1h | gzip > log.csv.gz (collect data for one hour and compress it on the fly) Convert CSV to a waterfall graphic with: http://kmkeen.com/tmp/heatmap.py.txt |
Ein Beispiel lauf:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
rtl_power -f 950M:1450M:3.2M -g 30 -i 1 | awk 'BEGIN {t=0} {if (t==0) {t=$2; n=0; s=0}; if (t==$2) {s+=$7; n++} else {print s/n; t=0}}' Number of frequency hops: 156 Dongle bandwidth: 3200000Hz Downsampling by: 1x Cropping by: 0.00% Total FFT bins: 156 Logged FFT bins: 156 FFT bin size: 1396648.00Hz Buffer size: 16384 bytes (2.56ms) Reporting every 1 seconds Found 1 device(s): 0: Realtek, RTL2838UHIDIR, SN: 00000001 Using device 0: Generic RTL2832U OEM Found Rafael Micro R820T tuner Tuner gain set to 29.70 dB. [R82XX] PLL not locked! -29.0534 -29.1021 -29.0906 -29.0941 -29.0894 |
Oder in eine data.csv Datei speichern:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
sudo rtl_power -f 24M:1700M:1M -i 100 -g 50 -e 24h data.csv Number of frequency hops: 1676 Dongle bandwidth: 1000000Hz Downsampling by: 1x Cropping by: 0.00% Total FFT bins: 1676 Logged FFT bins: 1676 FFT bin size: 699499.00Hz Buffer size: 16384 bytes (8.19ms) Reporting every 100 seconds Found 1 device(s): 0: Realtek, RTL2838UHIDIR, SN: 00000001 Using device 0: Generic RTL2832U OEM Found Rafael Micro R820T tuner Tuner gain set to 49.60 dB. Exact sample rate is: 1000000.026491 Hz [R82XX] PLL not locked! |
Und noch in die airband.csv Datei:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
rtl_power -f 118M:137M:8k -g 50 -i 10 -e 1h airband.csv Number of frequency hops: 7 Dongle bandwidth: 2714285Hz Downsampling by: 1x Cropping by: 0.00% Total FFT bins: 3584 Logged FFT bins: 3584 FFT bin size: 5301.34Hz Buffer size: 16384 bytes (3.02ms) Reporting every 10 seconds Found 1 device(s): 0: Realtek, RTL2838UHIDIR, SN: 00000001 Using device 0: Generic RTL2832U OEM Found Rafael Micro R820T tuner Tuner gain set to 49.60 dB. Exact sample rate is: 2714285.041470 Hz [R82XX] PLL not locked! |