rtl_fm 安裝在樹(shù)莓派上

更新下軟件源

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

創(chuàng)建生成目錄:

mkdir buildcd

build

讓我們制作并安裝軟件:

cmake ../ -DINSTALL_UDEV_RULES=ONmakesudo

進(jìn)行安裝

運(yùn)行以下命令:

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

sudo ldconfigBlacklist

以下內(nèi)容:

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

復(fù)制并粘貼以下 3 行

blacklist dvb_usb_rtl28xxu

blacklist rtl2832

blacklist rtl2830

保存并退出

執(zhí)行 sudo 重新啟動(dòng) “確保已將 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 –

選項(xiàng):

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

實(shí)驗(yàn)選項(xiàng):

[-r resample_rate(默認(rèn)值:無(wú)/與 -s 相同)]

[-t squelch_delay(默認(rèn)值:10)]

+值將靜音/掃描,-值將退出

[-F fir_size(默認(rèn)值:關(guān)閉)]

啟用低泄漏下采樣濾波器

大小可以是 0 或 9。0 有錯(cuò)誤的滾降

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

生成有符號(hào)的 16 位 int,使用 Sox 或 aplay 來(lái)收聽(tīng)它們。

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

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

友情鏈接更多精彩內(nèi)容