业余无线电 bi4jgm 62℃ 0评论

sudo apt update
sudo apt install git cmake pkg-config libusb-1.0-0-dev sox

Let’s Clone The Software:

git clone git://git.osmocom.org/rtl-sdr.git
cd rtl-sdr

Make The Build Dir:

mkdir build
cd build

Let’s Make And Install The Software:

sudo make install

Run The Following Commands:

sudo cp ../rtl-sdr.rules /etc/udev/rules.d/
sudo ldconfig
Blacklist The Following:

sudo nano /etc/modprobe.d/blacklist-rtl.conf

Copy and paste the following 3 lines

blacklist dvb_usb_rtl28xxu
blacklist rtl2832
blacklist rtl2830

Save and exit
Then do a sudo reboot “Make Sure You Have The RTL Dongle Plugged Into The Pi.

rtl_fm -M wbfm -f 92.0M | play -r 32k -t raw -e s -b 16 -c 1 -V1 –

rtl_fm -f 92.0M -M fm -s 170k -A fast -r 32k -l 0 -E deemp | play -r 32k …

rtl_fm -M fm -f 154.42M -f 154.75M -f 154.89M -s 12k -g 50 -l 70 | play -r 12k -t raw -e s -b 16 -c 1 -V1 –

rtl_fm -M am -f 118M:137M:25k -s 12k -g 50 -l 280 | play -r 12k -t raw -e s -b 16 -c 1 -V1 –

rtl_fm -f freq [-options] [filename]
-f frequency_to_tune_to [Hz]
    use multiple -f for scanning (requires squelch)
    ranges supported, -f 118M:137M:25k
[-M modulation (default: fm)]
    fm, wbfm, raw, am, usb, lsb
    wbfm == -M fm -s 170k -o 4 -A fast -r 32k -l 0 -E deemp
    raw mode outputs 2x16 bit IQ pairs
[-s sample_rate (default: 24k)]
[-d device_index (default: 0)]
[-T enable bias-T on GPIO PIN 0 (works for rtl-sdr.com v3 dongles)]
[-g tuner_gain (default: automatic)]
[-l squelch_level (default: 0/off)]
[-p ppm_error (default: 0)]
[-E enable_option (default: none)]
    use multiple -E to enable multiple options
    edge:    enable lower edge tuning
    dc:      enable dc blocking filter
    deemp:   enable de-emphasis filter
    direct:  enable direct sampling 1 (usually I)
    direct2: enable direct sampling 2 (usually Q)
    offset:  enable offset tuning
filename ('-' means stdout)
    omitting the filename also uses stdout

Experimental options:
[-r resample_rate (default: none / same as -s)]
[-t squelch_delay (default: 10)]
+values will mute/scan, -values will exit
[-F fir_size (default: off)]
enables low-leakage downsample filter
size can be 0 or 9. 0 has bad roll off
[-A std/fast/lut choose atan math (default: std)]

Produces signed 16 bit ints, use Sox or aplay to hear them.
rtl_fm … | play -t raw -r 24k -es -b 16 -c 1 -V1 –
| aplay -r 24k -f S16_LE -t raw -c 1
-M wbfm | play -r 32k …
-s 22050 | multimon -t raw /dev/stdin

转载请注明:静谧的海 » RTL_FM On A Pi

喜欢 (3)



  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址