BV1AL 之無所不記

2020-01-31

RTL airband掃描程式

很多RTL SDR相關程式出來很多年都沒再更新,忽然發現這支才更新沒幾天,
就來介紹一下。它除了RTL-SDR之外還支援SoapySDR, SDRPlay RSP1,
Airspy, MiriSDR.

https://github.com/szpajder/RTLSDR-Airband
最新update 2020 一月19日

這是一個很實用的飛航頻道掃描程式,
這一版要安裝以下幾項library for development:
libconfig++-dev, libfftw3-dev, libmp3lame-dev, libogg-dev,
libshout3-dev, libvorbis-dev, libpulse-dev

local直接聽的話就要用到 pulse server, 請修改設定以便接受這個掃描程式的聲音
/etc/pulse/default.pa
加入以下這一行
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.20.0/24 auth-anonymous=1
上面的192.168.20.0/24要按照你實際的ip範圍來寫

config 檔可以想成 C 語法來處理格式以及分隔號
我是在x86上使用pulse來聽,所以用以下參數compile
make PLATFORM=x86 PULSE=1

用pulse的話可以讓接收的電腦跟播放聲音的電腦分別在不同地方,只要網路tcp
有相連就能聽。

RTL-SDR頻寬只有2.56MHz,而飛航通訊在VHF部份大約有15MHz範圍,RTL-SDR
無法同時包含,
config用"scan"的話就可以掃描所有範圍,不過rtl_airband內定是每秒五個頻率。

以下是 config檔內容,你可以用任何檔名,也可以放在任何地方,只要在執行時
告訴它路徑
rtl_airband -f -c /PATH/myconfig

各機場頻率有所不同,你可以從ICAO找出各機場主頻率,從收聽主頻率可以記下
塔台跟飛行員告知的其他頻率,寫在
freqs = ( xxx, xxx, xxx );

devices:
(
 {
  type = "rtlsdr";
  #serial = "00000012"; /* for identify which "index" */
  index = 0;   /* (integer) - indicates which RTL device */
  gain = 25.0;  /* Typical gain range for RTLSDR is from 0.0 to 49.6 dB, between 20.0 and 40.0; */
  #centerfreq = 120.0;  # required in multichannel mode
  /* The default for RTLSDR is 2.56 Msps. It gives about 2.56 MHz of bandwidth
  (ie. plus and minus 1.28 MHz from the center frequency) */
  mode = "scan";
  /* Scanning speed in RTLSDR-Airband is currently hardcoded to 5 frequencies per second */
  #mode = "multichannel";
  #correction = 80;
  /*
  buffers = 10
  (integer, optional) - number of memory buffers to allocate for USB transfers.
  The default is 10. If you use more than three dongles simultaneously or you get error
  messages like "Failed to submit transfer 12!" you may need to lower this value. */
  afc = 1;
  # afc: automatic frequency correction 0 or positive int
  channels:
  (
    {
      freqs = ( 118.1, 118.7, 119.7, 121.5, 121.9, 123.6, 125.1, 125.5, 126.7 );
      outputs: (
        {
      type = "pulse";
          server = "127.0.0.1";
          #server = "192.168.20.16";
          /* type = "file";
          directory = "/home/ubuntu";
          filename_template = "TWR-scan1"; */
    }
      );
    }
  );
 }
);

標籤: , ,

0 Comments:

張貼留言

<< Home