acarsdec

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

PROTOCOL (504B)


      1 PROTOCOL FOR -p FLAG
      2 
      3 Format:
      4 
      5 msg ::= "MESG\n" + descs + content + "END MESG\n";
      6 descs ::= n * desc;
      7 desc ::= name + ": " + value + "\n";
      8 name ::= UTF-8-String;
      9 value ::= UTF-8-String;
     10 content ::= "CONTENT: " + UTF-8-String + "\n.\n";
     11 
     12 The content can be multi-line, so parse for "\n.\n".
     13 
     14 Example: 
     15 
     16 ---[START]---
     17 MESG
     18 Mode: G
     19 REG: .ZK-OKB
     20 LABEL: BA
     21 BLKID: 55
     22 MSGNO: L34A
     23 FLIGHTID: NZ0039
     24 CONTENT: /MSTEC7X.DR1.ZK-OKB6A40B74740B55EBD70E7E2
     25 .
     26 TIMESTAMP: 2010-06-26T11:29:35+00:00
     27 END MESG
     28 
     29 ---[END]---
     30