ACARS transmission as XML
From Acarsd
[edit]
ACARS transmission as XML string
Every ACARS transmission is encapsulated in XML. Here is a small example of such an XML string:
<?xml version="1.0" encoding="ISO-8859-1"?>
<acarsd version="1.03">
<ACARS>
<MessageDate>
<Timestamp>1093679759</Timestamp>
<Day>28</Day>
<Month>8</Month>
<Monthname>August</Monthname>
<Year>2004</Year>
<Hour>9</Hour>
<Minute>55</Minute>
<Second>59</Second>
<ZuluTime>0</ZuluTime>
</MessageDate>
<BlockID>3</BlockID>
<ACARSMode>E</ACARSMode>
<MessageLabel>Q0</MessageLabel>
<AircraftReg>G-BPEI</AircraftReg>
<MessageNumber>S22A</MessageNumber>
<FlightNumber>BA0675</FlightNumber>
<Uplink>0</Uplink>
<Squitter>0</Squitter>
<CRCOK>1</CRCOK>
<Authorized>
<MessageContent></MessageContent>
</Authorized>
</ACARS>
<FlightRouting>
<From>IST</From>
<To>LHR</To>
<Via></Via>
<DepCoords></DepCoords>
<ArrCoords></ArrCoords>
<Distance></Distance>
</FlightRouting>
<Position>
<North></North>
<South></South>
<East></East>
<West></West>
</Position>
<Extended>
<Display>B752 :- B757-236 [G-BPEI]</Display>
<ACDisplay>Boeing B757-236 :- 25806</ACDisplay>
<Aircraft>B757-236</Aircraft>
<CN>25806</CN>
<AircraftShort>B752</AircraftShort>
<Manufacturer>Boeing</Manufacturer>
<Remarks></Remarks>
<Flight>Istanbul, Turkey-London-Heathrow, UK</Flight>
<Operator>British Air</Operator>
<Label>ACARS link test</Label>
<Groundstation></Groundstation>
<IATA></IATA>
<ICAO>BAW</ICAO>
<DBCode></DBCode>
<Translated>0</Translated>
<TransData>
<OrigReg></OrigReg>
<OrigFlight></OrigFlight>
</TransData>
</Extended>
<SystemInfo>
<SoundCardNo>0</SoundCardNo>
<CardsInUse>1</CardsInUse>
<SoundCard>/dev/dsp2</SoundCard>
<SampleTwoInOne>1</SampleTwoInOne>
<OnChannel>1</OnChannel>
<ChannelName>-</ChannelName>
</SystemInfo>
<ContactData>
<Good>60</Good>
<Uplinks>0</Uplinks>
<Dupes>26</Dupes>
<BlockErrors>34</BlockErrors>
<CRCErrors>24</CRCErrors>
<ParityErrors>67</ParityErrors>
<DailyFlights>41</DailyFlights>
<AllTimeFlights>386</AllTimeFlights>
</ContactData>
<Contacts>3 contacts with this aircraft. First contact: 30/05/2004 12:12 as flight BA0868</Contacts>
</acarsd>
You can use all the fields from this structure to display the ACARS transmission within your acarsd client in different styles. Please note that this sample above can be changed (extended) with every acarsd version. BUT, the example above is the basis XML version and all the listed elements are never removed in further versions!
The Position tree is available from acarsd 1.65. Also the child elements DepCoords, ArrCoords and Distance.
From acarsd > 1.65 the Extended tree will also contain the ICAO24 child element to send the ICAO24 identifier of the contacted aircraft.

