arinc 429 tutorial - readapter usb arinc 429 … 429 protocol tutorial

14
ARINC 429 Protocol Tutorial ReAdapter Tel: (913)735-3784 www.readapter.com [email protected] Copyright 2015 ReAdapter, LLC

Upload: ledat

Post on 15-Apr-2018

382 views

Category:

Documents


19 download

TRANSCRIPT

Page 1: ARINC 429 Tutorial - ReAdapter USB ARINC 429 … 429 Protocol Tutorial

ARINC 429 Protocol Tutorial

ReAdapter Tel: (913)735-3784 www.readapter.com [email protected]

Copyright 2015 ReAdapter, LLC

Page 2: ARINC 429 Tutorial - ReAdapter USB ARINC 429 … 429 Protocol Tutorial

ARINC 429 Protocol Tutorial

Page 2

Version Date Author Comment 1.0 March 16, 2015 Aaron Taylor Initial Creation 1.1 August 10, 2015 Andrew Langford Additional content, formatting

Page 3: ARINC 429 Tutorial - ReAdapter USB ARINC 429 … 429 Protocol Tutorial

ARINC 429 Protocol Tutorial

Page 3

Table of Contents Purpose ..................................................................................................................................... 4 Specification Overview and Use ................................................................................................. 4

Overview ................................................................................................................................ 4 Use ......................................................................................................................................... 4

Physical Characteristics ............................................................................................................. 5 Label Format .............................................................................................................................. 5

Overview ................................................................................................................................ 5 Label Field – Bits 1-8 .............................................................................................................. 6 Source/Destination Identifier (SDI) – Bits 9-10 ........................................................................ 7 Sign/Status Matrix (SSM) – Bits 30-31.................................................................................... 7

Binary Labels (BNR) ........................................................................................................... 8 Discrete Labels ................................................................................................................... 8 Binary-Coded Decimal (BCD) ............................................................................................. 8

Data – Bits 11-29 .................................................................................................................... 9 Binary Data (BNR) .............................................................................................................. 9 Discrete Data .....................................................................................................................11 Binary Coded Decimal (BCD) Data ....................................................................................12

Parity .....................................................................................................................................12 Quick Reference .......................................................................................................................13 About ReAdapter ......................................................................................................................14

Page 4: ARINC 429 Tutorial - ReAdapter USB ARINC 429 … 429 Protocol Tutorial

ARINC 429 Protocol Tutorial

Page 4

Purpose This manual is designed to provide an overview of the ARINC 429 Specification along with typical characteristics and application. This is intended as a quick primer or reference guide, but not a complete document. The ARINC 429 Specification is a copy written document owned and distributed by Aeronautical Radio, Inc. A copy of the complete specification can be purchased at www.arinc.com. Disclaimer: All information below is provided as a guide, ReAdapter, LLC provides no guarantee to the accuracy or use of the information. Specification Overview and Use Overview The ARINC 429 Specification defines a protocol used to transfer data between systems on commercial aircraft. Electrical, timing, signal levels and other characteristics are defined to allow for wide interoperability across avionics subsystems. Manufacturers are encouraged to follow the standard data sets and definitions in the ARINC 429 Specification, though there is no requirement to do so. Following the data sets in the standard allows for greater interoperability across manufacturers and more standard interactions between equipment from different manufacturers. Use The current implementation of the ARINC 429 Specification, last updated in 1983, is composed of three parts: Specification Part Description ARINC Specification 429, Part 1-15: Functional Description, Electrical Interface, Label Assignments and Word Formats

Describes physical and electrical components as well as labels, addresses, and word formats

ARINC Specification 429, Part 2-15: Discrete Word Data Standards

Describes how discrete data is stored with bit fields

ARINC Specification 429, Part 3-15: File Data Transfer Techniques

Describes the link layer protocol used for data and file transfer

Standard formats are described in greater detail later in this tutorial.

Page 5: ARINC 429 Tutorial - ReAdapter USB ARINC 429 … 429 Protocol Tutorial

ARINC 429 Protocol Tutorial

Page 5

Physical Characteristics The ARINC 429 Specification describes how avionic subsystems communicate and transfer data on commercial aircraft. ARINC 429 can be wired with only one transmitter per network, but supports up to 20 receivers. Data is half-duplex, meaning data only flows in one direction, from transmitter to receiver(s). Two channels are required for bi-direction communication. Each subsystem may contain any number of transmitters or receivers, and it is not uncommon to have a 'data concentrator' which can receive streams of data from multiple ARINC 429 transmitters. ARINC 429 data payloads are referred to as labels. Each ARINC 429 label is composed of 32 bits of data, each with a specific meaning. The standard requires at least 4 bit-times of zero voltage between sequential labels. There are two supported data rates

1. Low speed – 12.5 kilobits per second (tolerant in the range 12.0-14.5 kbps) 2. High speed – 100 kilobits per second ±1%

Both speeds cannot be used on the same data bus, so LRUs typically pick one or the other, depending on bandwidth or latency requirements. Label Format Overview Each ARINC 429 label is made of 32-bits, with each bit having a specific meaning. Generally each label is composed of the following fields:

8-bit label ID 2-bit Source Data Indicator (SDI) 19-bit Data Section 2-bit Sign Status Matrix (SSM) 1-bit Parity

32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 P SSM Data SDI Label ID

MSB LSB Table 1-ARINC 429 Label Description

Unlike most other protocols, ARINC describes each bit starting with 1. Most references to bit numbers in other protocols or computer science literature starts counting with bit 0. ARINC 429 is very consistent in counting from 1 to 32. Bit 32 is the most significant bit, Bit 1 is the least significant bit. The fields described show the typical uses of each bit, but the only required fields are the Parity and the Label fields. All other

Page 6: ARINC 429 Tutorial - ReAdapter USB ARINC 429 … 429 Protocol Tutorial

ARINC 429 Protocol Tutorial

Page 6

fields can be defined by the equipment manufacturer. While there is some variation, the vast majority of labels conform to this standard. Label Field – Bits 1-8 Labels are used to determine how the data in the label can be interpreted. In a data stream, each label is typically used to denote a specific type of data with a specific definition. For example, label 150 is commonly used to represent time of day. Each label on a bus for a specific device has a predefined meaning. The eight label bits are interpreted as ‘reverse octal.’ The reverse means that the MSB and LSB are reversed from the rest of the data in the label. The octal means that eight bits are interpreted as octal. The data is described in the following table.

LSB MSB Bit 8 7 6 5 4 3 2 1

Octal Digit Ones Tens Hundreds Table 2-Label Field Description

For example, Label 273 would be written with the following bits

Page 7: ARINC 429 Tutorial - ReAdapter USB ARINC 429 … 429 Protocol Tutorial

ARINC 429 Protocol Tutorial

Page 7

LSB MSB Bit 8 7 6 5 4 3 2 1

Octal Digit 3 7 2 Binary 273 1 1 0 1 1 1 0 1

Table 3-Label Field Example Another way to translate the data is to give each bit a value and add the values

Bit 1 = 200 Bit 2 = 100 Bit 3 = 40 Bit 4 = 20 Bit 5 = 10 Bit 6 = 4 Bit 7 = 2 Bit 8 = 1

So, using the same example as above,

Label 273 = (200) + (40 + 20 + 10) + (2 + 1) Using this encoding, labels can be in the range from 0 to 377, with no 8’s or 9’s. Source/Destination Identifier (SDI) – Bits 9-10 The SDI (Source Destination Identifier) is represented through bits 9 and 10 on a standard label. This field is optional. These bits are typically used when there is more than one instance of the same data on a data bus. For example, the same device may have two sensors for temperature, temperature_1 and temperature_2. The SDI bits could be used to distinguish which sensor was the source for a label by setting bits 9 and 10 to

binary 1 (‘01’) for temperature_1 binary 2 (’10’) for temperature_2

This standard scheme limits the use of SDI to 4 values. This limitation has led some manufacturers to use an ‘extended SDI’ scheme where bits from the Data field are used to extend the available bits in the SDI field. Adding a bit, for example bit 11, doubles the number of available SDI sources. The SDI field can also be used to extend resolution for the data field. For higher precision, these bits can become part of the data field. Sign/Status Matrix (SSM) – Bits 30-31 The meaning of the Sign/Status Matrix (SSM) varies with the type of data the label contains. Generally this field contains the validity or state of the data. Each SSM may be set to

Page 8: ARINC 429 Tutorial - ReAdapter USB ARINC 429 … 429 Protocol Tutorial

ARINC 429 Protocol Tutorial

Page 8

a valid value, indicating the data encoded is good a bad value, indicating the data cannot be used or the unit has failed No Computed Data (NCD), indicating the data cannot be computed currently, though the

unit has not failed. Functional Test, indicating the unit is performing a test, and the data is representative of

the test, not the normal functioning of the unit. There are three types of SSM, each with a slightly different encoding scheme, as described in this section. Binary Labels (BNR) Binary Labels use the SSM to describe the state of the data, as described by the table below.

31 30 Interpretation Failure 0 0 Data or unit has failed

No Computed Data (NCD) 0 1 Data cannot be computed Functional Test 1 0 Data is from a test and is not normal data

Valid 1 1 Data is valid, normal operation Table 4-Binary (BNR) SSM

Discrete Labels Discrete Labels use the SSM to describe the state of the data, similar to Binary Labels, but with inverted states.

31 30 Interpretation Valid 0 0 Data is valid, normal operation

No Computed Data (NCD) 0 1 Data cannot be computed Functional Test 1 0 Data is from a test and is not normal data

Failure 1 1 Data or unit has failed Table 5-Discrete SSM

Binary-Coded Decimal (BCD) Binary-Coded Decimal Labels (BCD) use the SSM to indicate the sign or direction of the BCD data in the data field as well as the status of the data. The meaning of the value fluctuates with the type of data encoded.

Page 9: ARINC 429 Tutorial - ReAdapter USB ARINC 429 … 429 Protocol Tutorial

ARINC 429 Protocol Tutorial

Page 9

31 30 Interpretation Plus 0 0 Positive, North, East, Right, To, Above

No Computed Data (NCD) 0 1 Data cannot be computed Test 1 0 Data is from a test and is not normal data

Minus 1 1 Negative, South, West, Left, From, Below Table 6-Binary-Coded Decimal (BCD) SSM

Data – Bits 11-29 Data is not transmitted as a series of integers or floating-point numbers as is more common with other data transmission protocols. This is often a source of confusion. Instead, ARINC 429 data is packed in one of three ways. Binary Data (BNR) Binary data starts are bit 29. This bit can be treated as the sign (±) bit, with a zero indicating positive and 1 indicating negative. Unsigned data typically leaves bit 29 as zero. The data is encoded as 2’s compliment data, not sign-magnitude. An easy way to interpret the data is to treat bit 29 as negative twice the value of bit 28. Examples to illustrate this are below. The next bit, bit 28, is then the Most Significant Bit (MSB) of the data. Typically this is picked to be a round number for convenience, though this is not required. Each bit from then on represents a value half that of the bit before it. This continues until an adequate level of precision is achieved. Remaining bits up to the SDI field, bit 10, are then pad bits unless otherwise defined. BNR labels typically encode both their Data and SSM fields using BNR formatting.

Page 10: ARINC 429 Tutorial - ReAdapter USB ARINC 429 … 429 Protocol Tutorial

ARINC 429 Protocol Tutorial

Page 10

Examples The value of the data in this example is 512 + 1 + 0.5 + 0.25 = 513.75

The value of the data in this example is -(2*90) + 90 + 45 = -45

1 Label ID

1 Label ID

8 8 9 SDI 9 SDI

10 10 11 pad 0 11 pad 0 12 pad 0 12 pad 0 13 pad 0 13 pad 0 14 pad 0 14 pad 0 15 pad 0 15 pad 0 16 0.125 0 LSB 16 pad 0 17 0.25 1 17 pad 0 18 0.5 1 18 pad 0 19 1 1 19 0.175781 0 LSB 20 2 0 20 0.351563 0 21 4 0 21 0.703125 0 22 8 0 22 1.40625 0 23 16 0 23 2.8125 0 24 32 0 24 5.625 0 25 64 0 25 11.25 0 26 128 0 26 22.5 0 27 256 0 27 45 1 28 512 1 MSB 28 90 1 MSB 29 +/- 0 Sign 29 +/- 1 Sign 30 SSM 30 SSM 31 31 32 Parity 32 Parity

Table 7-Binary Label Examples

Page 11: ARINC 429 Tutorial - ReAdapter USB ARINC 429 … 429 Protocol Tutorial

ARINC 429 Protocol Tutorial

Page 11

Discrete Data In a Discrete label, each bit in the Data field represents a separate True/False condition. Typically bit 29 is not used in a discrete label, though its use is acceptable. The data in a discrete label is often used to represent information such as the status of a system, a fault, or a physical switch state. Labels in the 270s are typically used for discrete data. Discrete labels typically encode their Data and SSM fields using Discrete formatting. An example is below showing bit 28, “Receiver Fault,” set to True (1).

1 Label ID

8 9 SDI

10 11 pad 0 12 pad 0 13 pad 0 14 pad 0 15 pad 0 16 pad 0 LSB 17 pad 0 18 pad 0 19 pad 0 20 pad 0 21 pad 0 22 Reserved 2 0 23 Reserved 1 0 24 Weight on Wheels 0 25 Power Valid 0 26 Analog Fault 0 27 Digital Fault 0 28 Receiver Fault 1 MSB 29 +/- 0 Sign (unused) 30 SSM 31 32 Parity

Table 8-Discrete Label Example

Page 12: ARINC 429 Tutorial - ReAdapter USB ARINC 429 … 429 Protocol Tutorial

ARINC 429 Protocol Tutorial

Page 12

Binary Coded Decimal (BCD) Data Binary Coded Decimal (BCD) labels are designed to provide a fixed precision up to a specific number of decimal digits. Where Binary labels can provide more precision, it is frequently only possible to represent a value within the resolution of the label and not an exact decimal value. BCD labels can provide an exact decimal representation at the expense of resolution. A BCD label splits the Data field up into 4-digit segments, each with a fixed precision. 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 P SSM Digit 1 Digit 2 Digit 3 Digit 4 Digit 5 SDI Label ID

Table 9-BCD Label Description A BCD label defines the value of each digit and how many digits are used. There is no standard. Each digit to the left is the next decimal digit, i.e. ten times the previous digit. Each four-bit digit can be in the range from 0 to 9, with values greater than 9 being invalid. BCD labels typically encode their Data and SSM fields using BCD formatting, meaning the SSM is used to describe the sign of the data. Examples In the example below, all five digits are used, with a resolution of 0.01. The value being encoded is 704.93. 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 P SSM Digit 1 Digit 2 Digit 3 Digit 4 Digit 5 SDI Label ID 0 0 1 1 1 0 0 0 0 0 1 0 0 1 0 0 1 0 0 1 1 + 7 0 4 9 3

Table 10-BCD Label Example 1 In the example below, only four digits of precision are used, with a resolution of 1. The value encoded is -2800. 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 P SSM pad Digit 1 Digit 2 Digit 3 Digit 4 SDI Label ID 1 1 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 - n/a 2 8 0 0

Table 11-BCD Label Example 2 Parity ARINC 429 labels use the most significant bit, bit 32, as a parity check for error detection. Labels use an odd parity, meaning bit 32 is always set or cleared to ensure the total number of bits at logic 1 in the label is an odd number. This check provides for very simple, efficient error detection.

Page 13: ARINC 429 Tutorial - ReAdapter USB ARINC 429 … 429 Protocol Tutorial

ARINC 429 Protocol Tutorial

Page 13

Quick Reference This section is intended to provide the most used reference data for quick access. Print and pin this up to refer to. 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 P SSM Data SDI Label ID

MSB LSB 31 30 BNR Dis BCD

0 0 Fail Valid Pos, N, E, Right, To 0 1 NCD 1 0 Test 1 1 Valid Fail Neg, S, W, Left, From

Bit 8 7 6 5 4 3 2 1 Octal Digit Ones Tens Hundreds

Page 14: ARINC 429 Tutorial - ReAdapter USB ARINC 429 … 429 Protocol Tutorial

ARINC 429 Protocol Tutorial

Page 14

About ReAdapter ReAdapter was started to create simple, user friendly tools and equipment. Our belief is tools should be available and intuitive. At ReAdapter we believe you need quality equipment to build quality products. We want to build the kind of tools we’d want to use. Our mission is to make your mission easier. If you like this document and want more information, please contact us. We accept product requests, custom flight-worthy hardware and software. Our mission is to make you mission easier, so if you have a request or any sort, please contact us. ReAdapter Tel: (913)735-3784 www.readapter.com [email protected]