acarsdec

an ACARS decoder
git clone git://r-36.net/acarsdec
Log | Files | Refs | README

README (2939B)


      1 
      2 ACARSDEC
      3 
      4 Acarsdec is an open source, realtime  ACARS demodulator and position decoder for Linux.
      5 
      6 Aircraft Communication Addressing and Reporting System (or ACARS) is a digital datalink system for transmission of small messages between aircraft and ground stations via VHF radio.
      7 
      8 HOW DOES IT WORK ?
      9 
     10 To receive ACARS you need at least an AM VHF air band receiver tuned to one of these frequencies :
     11 
     12 131.725	Europe primary
     13 131.525	European secondary
     14 131.550	USA primary
     15 130.025	USA secondary
     16 131.450 Japan primary
     17 (these are the most common, google is your friend for other frequencies)
     18 
     19 Audio output from this receiver is send to the soundcard input of your PC under Linux.
     20 Then, acarsdec will demodulate the signals sent by aircrafts and print the received messages on its standart output in airnav log text format.
     21 
     22 BUILDING IT
     23 On a Linux system, you will need libsnd librairy, alsa audio system and gcc/make installed.
     24 Then just type :
     25 make
     26 
     27 USING IT
     28 acarsdec could be called with the following options :
     29 acarsdec [-LR][-s noport] -d alsapcmdevice | -f sndfile 
     30  -f sndfile :           decode from file sndfile (ie: a .wav file)
     31  -d alsapcmdevice :     decode from soundcard input alsapcmdevice (ie: hw:0,0)
     32  [-LR] :                diseable left or right channel decoding of stereo signal (save cpu)
     33  [-s noport ] :         "xastir" mode : act as an APRS local server, on port : noport (see below)
     34 
     35 Input could be mono or stereo but with 48Khz sampling frequency.
     36 If stereo, acarsdec will demod the 2 channels independantly (if no L ou R options specified)
     37 
     38 Typical usage for realtime decoding is :
     39 acarsdec -d hw:0 
     40 
     41 Be sure that correct record level is set for the used soundcard input.
     42 For testing, you could try to record your receiver output at 48khz sampling frequency with any audio recording tool.
     43 Save as wav file, then decode it by :
     44 acarsdec -f audiofile.wav.
     45 
     46 
     47 USING IT WITH XASTIR
     48 acarsdec have a special output mode to use it with APRS position reporting plotting program : xastir (www.xastir.org).
     49 In this mode, acarsdec acts as a very basic local aprsd server.
     50 ACARS messages, and in particular, position report messages are converted to APRS format, so you can plot aircraft positions on a map.
     51 
     52 PS: position decoding is in experimental stage. Mail me if you find errors or lack of position reporting.
     53 
     54 start acarsdec with the following option :
     55 acarsdec -d hw:0 -s 14000
     56 
     57 Then in xastir, choose : Interface->Interface Control->Add
     58 Select : Internet Server, then Add
     59 Set Host at 127.0.0.1, Port 14000, Don't allow transmitting, then Ok.
     60 This will add an interface in the Interface Control dialog.
     61 
     62 Then select this interface and press start.
     63 To check that acarsdec send messages to xastir, select View->Incoming traffic
     64 ACARS messages look like that in xastir :
     65 F-XXYZ>ACARS:>Fid:AFXXXX Lbl:Q0
     66 
     67 Lots of ACARS messages are messages without position report, so be patient before seeing aircraft plotted on the map.
     68 
     69