美文网首页
rtl_fm 安装在树莓派上

rtl_fm 安装在树莓派上

作者: 业余无线电卫星爱好者 | 来源:发表于2022-05-07 14:19 被阅读0次

更新下软件源

sudo apt update

安装必要依赖 git cmake pkg_config libusb

sudoapt install git cmake pkg-config libusb-1.0-0-dev sox

让我们克隆软件:

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

cd rtl-sdr

创建生成目录:

mkdir buildcd

build

让我们制作并安装软件:

cmake ../ -DINSTALL_UDEV_RULES=ONmakesudo

进行安装

运行以下命令:

sudo cp ../rtl-sdr.rules /etc/udev/rules.d/

sudo ldconfigBlacklist

以下内容:

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

复制并粘贴以下 3 行

blacklist dvb_usb_rtl28xxu

blacklist rtl2832

blacklist rtl2830

保存并退出

执行 sudo 重新启动 “确保已将 RTL 加密狗插入 Pi。

使用举例:

rtl_fm -M wbfm -f 92.0M |播放 -r 32k -t 原始 -e s -b 16 -c 1 -V1 –

rtl_fm -f 92.0M -M fm -s 170k -A fast -r 32k -l 0 -E dep |播放 -r 32k ...

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

rtl_fm -上午 -f 118M:137M:25k -s 12k -g 50 -l 280 |播放 -r 12k -t 原始 -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

实验选项:

[-r resample_rate(默认值:无/与 -s 相同)]

[-t squelch_delay(默认值:10)]

+值将静音/扫描,-值将退出

[-F fir_size(默认值:关闭)]

启用低泄漏下采样滤波器

大小可以是 0 或 9。0 有错误的滚降

[-A std/fast/lut choose atan math (default: std)]

生成有符号的 16 位 int,使用 Sox 或 aplay 来收听它们。

rtl_fm ... |播放 -t 原始 -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 安装在树莓派上

      本文链接:https://www.haomeiwen.com/subject/dxcxurtx.html