Thursday, November 7, 2013

CPDLC - Texting For Pilots

Texting and driving is against the law. Texting and flying, no problem. 

Ok, we aren't talking about your family  asking you to stop by the grocery store pickup some milk on the way home. On most commercial aircraft there is a text based communications system. This is usually the ACARS system, the Aircraft Communications And Reporting System. This display and keyboard is right there usually in the panel, and encouraged to be used in flight.

The ACARS communications start early in the flight. Most airlines participate in the Pre-Departure Clearance (PDC) program where the pilots get the clearance right from the tower on the ACARS screen. The pilot is required to request the clearance before the flight, and the tower will automatically deliver the clearance to the screen.

The ACARS system is also connected to the aircraft maintenance department. The engine and other parts of the aircraft are connected to the computers that are connected to the ACARS system. When the aircraft is in a certain state, an automated message will be delivered to the ground. Engine status will be delivered when the aircraft is in cruise state, and not accelerating (stable cruise report). On ground time will be delivered when the aircraft has main gear down.

Recently, ICAO has standardized the phraseology and the FAA have started delivering ATC messages to the cockpit. The messaging is called Controller Pilot Data Link Communications (CPDLC).  There are some limitations to these messages, generally they will be standard communications. Things like "turn left heading 240 degrees", or "climb and maintain 360". These are normal mundane type messages that the controllers say everyday over and over. The ATC screen has templates of these standard messages, where the controller only need to enter the heading and altitude.

The messages must be acknowledged, or they will be assumed to not be received. The pilot can acknowledge the message or say unable. The controller has the option of using the voice to find out more, or offer a better different message.

There is a huge misnomer, Air Traffic Controllers don't actually control aircraft. The controllers offer suggestions to pilots. Pilots can always do what is needed to operate the aircraft safely, regardless of what the controllers are telling them to do. Normally following the controllers directions will be the safest thing to do, but there is always the option.

The ICAO 4444 document Procedures for Air Navigation Services Air Traffic Management has a chapter on the CPDLC messaging.

    CHAPTER 14. CONTROLLER-PILOT DATA LINK COMMUNICATIONS (CPDLC).


There is another document 9694 Manual of Air Traffic Services Data Link
Applications
that has additional guidance. These CPDLC messages have various levels of urgency, and alerts, and are outlined better in these two manuals.

There is a fear that using CPDLC will prevent pilots from eavesdropping on other pilots. There is a possibility that may occur. CPDLC message are addressed to a specific aircraft, and to a specific ATC center. Normally, when ATC is talking (using voice communications) to the aircraft in an area, they talk on the one frequency that all aircraft can hear. The benefit to that is that if aircraft are near each other, and a command will make another pilot question the intention, the eaves dropping pilot can ask for clarity. Sometimes controllers make mistakes, and pilots can ask. If someone is put on the same altitude and opposite course as another aircraft, the pilot not getting the command make question the controller. With CPDLC addressed messages, other aircraft cannot "hear" those commands.

Mostly the CPDLC systems are in use in the oceanic realm. There is quite a bit of separation going on in that area, and communications has been poor over the ocean. In the past, the oceanic communications, has been over HF voice channel. CPDLC has actually improved the performance of the communication over the ocean.

Long term, some CPDLC messaging will be added to the enroute area. Perhaps to a limited extent, the TRACON will start to get some CPDLC messaging.

Saturday, October 5, 2013

UAT or 1090ES?


If you are considering ADS/B, there is a choice to make. Do you install a Universal Access Transceiver (UAT) or the Mode S transponder that has an extended squitter (1090-ES)? It all depends...

What country are you in? If you aren't in the USA, then the choice is pretty much made. The USA offers the option of a UAT. The rest of the world needs Mode S transponders for ADS/B installations.

If you are in the USA, and you mostly fly above FL180, then the choice is pretty much made again. The FAA doesn't allow aircraft flying above 18,000ft to use the UAT. It just makes sense to get the 1090-ES transponder that will do Mode S if you want take advantage of ADS/B and fly about FL180.

The UAT transmits and receives on 978MHz, the 1090-ES transmits and receives on 1090MHz. The ADS/B system will allow all participating aircraft to see each other. If the two devices work on different frequencies, how does a 1090MHz transceiver see a 978MHz transceiver? The ground stations will repeat the 978MHz messages on 1090MHz, as well as repeat the 1090MHz message on 978MHz. The ground station will also show both messages on the "RADAR" scope, so the air traffic controller knows where everyone is.

The FAA separated the two systems for a couple reasons. The 978MHz devices can handle more data (has more bandwidth), so more aircraft in a concentrated area will work without overloading ground stations or other aircraft. The 1090 Mode S transponders are already on the larger faster aircraft that are flying higher, so the expense should be minimized (I am repeating the FAA here, in reality, most operators will need to replace the transponders they have to get the extended squitter feature).

The UAT's are even more useful, since the FAA will broadcast extra information. The two extra messages that the FAA is broadcasting are the TIS/B and FIS/B. The 1090-ES system will get TIS/B, but not FIS/B.

TIS/B is Traffic Information Service-Broadcast, where non-ADS/B equipped aircraft will show up on the aircraft display, similar to ADS/B equipped aircraft. The ground station will broadcast the position of aircraft that are only visible on RADAR. As a pilot, you will be able to see more of what the controller sees.

FIS/B is Flight Information Service-Broadcast. Flight information includes weather, and aeronautical products. While XM provides some weather, that you must subscribe to, the FIS/B is free to everyone. The XM product may have additional information, or be more timely. The FIS/B data is what the FAA will be looking at, including potentially air traffic control. The aeronautical products appear to be weather like items, such as NOTAMs and SUA status.

Exactly what device to get will depend on the capability of the chosen display. Many of the MFD manufacturers will take either device for input, the displayed information may help make the choice. Some will show the weather RADAR information in great detail, others will show it blocky or not at all. Over the next couple years, the MFDs are sure to get better.

Should you wait, or should you buy today? Today the ADS/B MFD technology is being developed. Over the next 5 years, the technology will surely mature. Having ADS/B in on a tablet computer will allow a pilot to get their feet wet, sooner. By 2020, most aircraft will be required to have ADS/B out, which probably means, unless someone builds an under $1000 solution to ADS/B out only, most aircraft will be equipped with ADS/B in and out.

Can you get rid of your transponder once you have ADS/B? No, the Mode/C component will still be needed for RADAR service and TCAS for non-ADS/B equipped aircraft.

It'll be an interesting couple years going forward. What do you think?


Tuesday, October 1, 2013

DO-178C Reliability



DO-178C quantifies the level of safety needed for an aircraft software system. In an aircraft there are various software systems. Some systems are benign, others are safety critical. Something like a reading light in a passenger compartment would be benign system, if a failure were to occur, the safety of flight is not compromised (unless the passenger throws a tantrum!). In a fly by wire aircraft the control system is generally considered critical to flight.

DO-178C is a standard maintained by the RTCA. The RTCA is a group of aviation professionals that manage standards. It provides a place for manufacturers, user and regulators to come together and provide a consensus of regulations and guidance to managing the technology used in aviation. DO-178C is the guidance the FAA (and other regulation bodies) use to insure avionics and other software systems are certified to the proper level.

DO-178C enhances DO-178B. DO-178C standard was available starting Jan 2012, and was used to update the FAA AC 20-115C during the summer of 2013. There are companion documents related to software, tools, formal methods and testing.

There are 5 safety or Design Assurance Levels (DAL) for DO-178C.
  1. Catastrophic - Failure may cause multiple fatalities, usually with loss of the airplane. (level A)
  2. Hazardous - Failure has a large negative impact on safety or performance, or reduces the ability of the crew to operate the aircraft due to physical distress or a higher workload, or causes serious or fatal injuries among the passengers.  (level B)
  3. Major - Failure significantly reduces the safety margin or significantly increases crew workload. May result in passenger discomfort (or even minor injuries).  (level C)
  4. Minor - Failure slightly reduces the safety margin or slightly increases crew workload. Examples might include causing passenger inconvenience or a routine flight plan change.  (level D)
  5. No Effect - Failure has no impact on safety, aircraft operation, or crew workload.  (level E)

Like any software project safety, security and quality start with planning. It isn't very easy to add security to an existing product, likewise it may not be easy to add safety and redundancy to an existing product.

DO-178 requires documentation. Items such as the Software Requirements Document (SRD) and the Software Design Description (SDD) are a good idea for all software projects they are required for DO-178 certification. Additional documents include Software Verification Cases and Procedures (SVCP) outlines how the software will be tested, and Software Verification Results (SVP) kind of proves that the SVCP was actually done, and the items passed or not.

The typical deliverables for a DO-178 project will include the SRD, SDD, the executables, the SVCP and the SVP. Additionally there may be code coverage test results to insure the test results hits all good and bad situations. If the software product is an upgrade to an existing package, there may be other documents that include Software Configuration Index (SCI) like the source code control system documentation, and the Software life cycle Environment Configuration Index (SECI) to outline the development and improvement process.

Typically a Designated Engineering Representative (DER) will review the deliverable to insure the system meets the level of certification desired. The DER may work for the company developing the product, or be an external consultant.

There are various tools the developers and the testers can use to insure the certification process was followed. Starting with the documentation there are templates.Web based compliance verification tools are available. DO-178 software test suites are also used.

Some vendors will suggest that a level A certification is something to shoot for. Actually, for any system, the lowest possible level should be what the designers should seek. In an ideal situation, any failure should be an inconvenience, not an emergency. If the engines are running, and the flight controls work the aircraft can be flown to a suitable facility where repairs can be made.  

DO-178C is a robust standard that can apply to all software development. DO-178C is required for aviation software systems, and provides customers with piece of mind with regard to systems on the aircraft.

Saturday, September 28, 2013

Here We Go Again



We get to get the threats of the "sequestration" again this fall. Of course we knew about it for most of the last couple years, and who has done anything about it? How about that, the only one who could do something, is congress, the same ones who chose to ignore the trouble.

Congress will play the same game of chicken again this weekend. Nothing new there.  Something will be the pawn, this time it is Obamacare. Fine, whatever, I really don't think we need congress messing with health insurance anyway, I can't see how they can make it better. (this conversation could get recursive about here, so I won't get into congress and health care).

The trouble is, the game of chicken costs everyone more money! Obamacare is in progress, and states have put money into making it work. The money is in the federal budget already, and could be funded. If congress tries to unwind Obamacare, well there will be money wasted by the states, and the fedral government that are working toward the Oct. 1 deadline. Corporations have their HR software ready, the rules were set over a year ago.

So they decide to boot the government out on Oct 1. Well, those government employees just go home, and watch daytime TV and don't get paychecks. Hmmm... they don't buy cars, and limit grocery purchases, and that ripples down to the Best Buy store, and the stock boys at the Albertson's. Yes the whole mess puts a strain on everyone, depending on how long things go on.

Lets see, air traffic control is in play again. Will congress like having their flights delayed? Maybe once, or maybe they have things rigged to not be personally affected this time. If they are delayed, you can bet congress will make a strong effort to adjust budgets to make that part less painful.

How is traffic affected by controllers?

As I wrote in my April Sequestration post, controllers are certified to work a limited section of airspace. If all the people scheduled to work a day can't cover a sector, then planes can't fly in that sector. There are also rules about how long a controller can work a sector without a break (bathroom and lunch breaks are not optional!).

Airspace in IFR conditions is positive control, or only one aircraft can be in a part of airspace until it is known where that aircraft is. I've flown IFR to Livingston Montana in a small airplane before. Livingston is in a valley, and unless you are over 12000ft up, there is no RADAR coverage, and there is no tower at the airport. Once I left Billings MT RADAR area, I was cleared for the approach into Livingston. That meant the controller gave me all that airspace, until I told her that I was on the ground, or back into some other controlled airspace. The controller had to give me exclusive access to that airspace, since she couldn't see me, and she wouldn't know where I would be relative to another aircraft.

If towers are closed the enroute controllers will give the aircraft the airspace around the airport, starting sometimes over 50 miles out. That means only one aircraft can be in that 50 mile area until it is on the ground, or reports that it is going somewhere else. With the tower open, the spacing can be 5 miles between aircraft. With the tower closed it maybe 50 miles of spacing. You can get 10 aircraft on approach with the tower open, and only 1 with the tower closed. Things slow down really fast like that.

Airplanes don't care if the towers are contract or FAA run. If there is proper staffing, then the pilot can fly closer to other aircraft. The aircraft won't have to hold or divert if there are enough people at the tower watching aircraft. There are towers that handle very little traffic, and the staffing could be reduced, and the FAA has tried, but usually some congress person has a special interest in that tower, and it stays open for many hours with few operations.

Again, as flights get late, the second shift or the midnight shift get to work overtime. Congress insures the money saving route actually costs more. If they would just do it right, and leave it alone, they could save real money. You and I have to live within our budget, and changes may cost us money. Congress ignores that whole thought, and let money get spent, knowing that in a year or two they will have to deal with a situation. Waiting until the weekend before will insure things will go bad.

We need a smaller government,  and we could start the cutting with congress.

P.S. Congress will continue to get paid during the shutdown. It is also likely that once the budget is passed, and funding is restored, all the government employees will get retroactive pay. 


Monday, July 29, 2013

Transponders

Surveillance RADAR is very useful, and can be augmented like GPS. RADAR alone can only tell range and azimuth. If the transponder is added, the range and azimuth can be augmented with altitude and identification.
Transponders are transceivers, like DME. When the RADAR interrogation is received, the transponder transmits a specific response. For most GA aircraft, the response will be the identification (mode A), and the altitude (Mode C). The transponder concept comes from a technology developed around WWII, used for positively identifying friend or foe targets (IFF). Early targeting RADAR on aircraft could identify targets, but not who they were. Occasionally people will still call a transponder  an IFF box.

If the transponder is Mode S, the response will include quite a bit more information. The mode  S transponder has a payload capable of holding identification, altitude, and various other information, depending on mode. The message can be 56 or 112 (extended squitter or ES) bytes and include a 24 digit ICAO identifier assigned to each unique aircraft. Location and speed can also be encoded in the response. There are various modes the Mode S transponder will work in. (For a good article that covers much of the ModeS modes, see this EETimes article)

Usually aircraft transponders will transmit on 1090MHz. TCAS receivers and RADAR antennas will all be expecting to receive messages on 1090MHz. The transponder is mostly listening, but can be quite busy in class B airspace, with several TCAS units pinging traffic in the area. 

The code that is entered in the transponder is asigned by ATC. There are only 4096 unique codes, and some are reserved (IE 1200, 0000, etc). The numbers are limited to 0-7 or octal digits (octal = 8, and 0-7 are 8 distinct values). Octal is a throwback to early computers that were used for Air Traffic Control, and numbers were represented in octal values. On a busy day, there may be more than 4000 aircraft in the air at once, how does air traffic control keep conflicts out? Certain ranges of transponder (squawk) codes are reserved for local traffic (staying in the area, like training, or ferry flights). Other ranges are for long distance flying, some east, some west, depending on origin and destination. Occasionally, something unexpected happens, and two aircraft with the same transponder code appear in the same area, and the RADAR display will alert the controller to that.

The altitude that all the transponders send is pressure altitude. Pilots will set the altimeter on the ground to local barometric pressure. The altitude encoder attached to the transponder is not adjusted to local barometer. ATC will set their scope to the local pressure. Having ATC consistently reading the same uncompensated pressure will allow more consistent readings aircraft to aircraft. Sometimes pilots will forget to change their altimeter, or set it wrong, and this would cause trouble for ATC trying to figure out what everyone's altitude is. If ATC is saying the aircraft reporting altitude is significantly different than the pilot thinks they are flying, ATC may ask the pilot to stop reporting altitude, and the pilot will switch to Mode A.
Most Mode S transponders are capable or working in Mode A/C or just Mode A as well. Mode S transponders, with their large payloads can be used for ADS/B as well. ADS/B will require other  transponders in the area to be sending specific payloads, in order to plot the position on the receiving aircraft's display.

Transponders add a great deal to RADAR. Transponders will stay on aircraft even after the aircraft are switched to ADS/B. Eventually, the need for a transponder will be replaced by the ADS/B system, but that may be many years. 

Tuesday, July 16, 2013

Whats wrong with RADAR?

Ever see the news reports about the "World War II RADAR technology"? The headlines are usually provided by the FAA or other vendors when talking about NextGen technologies. RADAR has significantly improved since World War II. It is much more reliable, more consistent, and more accurate. The output now is mostly digital, and requires little adjusting.

All RADAR systems work by sending out a radio signal, and listening for that signal to bounce off a target, and timing the round trip of the signal. A passive RADAR signal is one where dish sends out a signal, and listens for the return. The passive RADAR message can only measure distance from the dish. Knowing the orientation of the antenna when the target distance was measured will allow the operator to know the range and azimuth of the target relative to the antenna.

The radio signal goes about the speed of light through the air, or about one foot per nanosecond, or about 5ms per mile, and remembering to double that for the round trip, will allow the RADAR system to determine the distance.

The RADAR dish is used to focus the transmitted signal, as well as the return signal. The pointy part near the bottom of the dish is the antenna for both the transmitter and receiver. The dish is a parabolic reflector, with the antenna at the focus point. The antennas are aimed at the dish. While the antenna does a good job of focusing the signal, it still goes out in a cone shape.

RADAR will detect various targets. The metal targets reflect the radio signals well. Other material will reflect at different levels. Most aircraft have metal somewhere, including tube and fabric, composite and wooden aircraft. Water also reflects radio signals. A large blob of moisture will show up on RADAR as a target. The processor on the RADAR unit will separate the blobs of moisture from the metal things. The blobs of moisture will be called weather, and the other metal objects will be considered primary targets.  

Many dishes have a secondary surveillance antenna on them as well. Secondary surveillance is used to listen for the transponder that is on many aircraft. The transponder on the aircraft will transmit the aircraft altitude, and some other data. The transponders will automatically transmit when they hear the RADAR interrogation signal.

Mostly there are two types of RADAR in use for civil aviation in the US, enroute and tracon. Enroute RADAR, or ARSR covers a radius of about 250 miles, and the dish rotates in about 12 seconds. Tracon RADAR covers about 60 miles, and the dish rotates in about 4.7 seconds. Both RADAR types can feed computers, that allow different people to see different views of the same data.

Since the RADAR signal go goes out in a cone shape, the exact position of the aircraft is less accurate the farther the target is from the RADAR antenna. The tracon RADAR will be more accurate than the ARSR RADAR since it is turning faster, and only is looking at shorter distances.

The RADAR signal can be blocked by buildings and terrain. Buildings and terrain can also reflect signals. Reflected signals can make the targets appear to be farther away. If an aircraft is opposite terrain relative to the antenna, it won't be picked up by the RADAR. Enroute charts will have a MSA altitude indicating the lowest altitude the RADAR can allow the controllers to see the aircraft.  

The RADAR units will output various channels, weather, secondary, and primary target data.  This data will be collected by computers, and be correlated to determine a track. Correlating the secondary target with the primary data will allow a track to know an aircraft speed, altitude and location. Correlating the signals will also need to remove bogus signals, like reflections, or smallish blobs of weather.

Newer technologies called multilateration is another way to find an aircraft. The multilateration will rely on the transponder on the aircraft. The ground station will have multiple receivers in known locations. A transmitter in the area will send out a signal, the transponder will detect the signal, and respond. The ground stations will measure the time it took to receive the signal,and the difference will tell the range and azimuth of the signal. The signal will contain the altitude.

Building RADAR sites can be expensive, building multilateration sites can be significantly less. If some acreage is available, the multilateral station can be a good choice to cover mountainous terrain, rather than building new RADAR sites in the mountains. The output of the multilateration system can feed the same computer systems that are used for RADAR displays.

Modern RADAR systems are quite flexible. Much different than the "World War II technology" the newscasters present. RADAR also has the advantage of not requiring any technology on the aircraft to work. Should an aircraft have a system failure, or an operator turn off a transponder. The FAA would like to decommission RADAR, but I believe long term, they won't completely. DOD and other organizations will require their existence. 

Is that helpful?

Saturday, July 6, 2013

Measuring or Are We There Yet?

I was going to do a post on Kalman Filters, and how great they are. They are great, and completely useful. A Kalman filter will let us take a bunch of error out of a collection of samples and make something useful out of the information. I was reading an article by Jack Crenshaw about Kalman filters, and he said something very profound:

 Whenever I measure any real-world parameter, there is one thing I can be sure of: the value I read off my meter is almost certainly not the actual value of that parameter.


Jack get things. He worked on getting the Apollo spaceships to the moon with little or no computers. He did most of the work prior to Kennedy saying the US will go to the moon. He was working on trajectories and such in the 1958-1960 time frame. He can present the most complex bit of math in ways that almost anyone can understand if they are willing to read what he says.

Where is got me thinking, though, is we need data to do stuff. When we get a location fix off a GPS for instance, are we sure we are there? My phone and tablet all give a DOP value, Dilution Of Precision. The DOP is the current inaccuracy of the reading I have displayed. It  involved the quality of the data we are getting from the satellites right now.

When we look at the instruments in an aircraft, do we take them as gospel? If you are like me, the altimeter only shows 100ft accurately, so I don't try to interpolate to the nearest foot. The value I can read is good enough. Same with the airspeed, I don't really care if I am going 130kts or 131kts, as long as I am maintaining a margin over stall speed.

How do you convince a computer to say close enough. Computers are a big challenge. The computers measure to the nearest bit, what ever that is measuring. If the sensor is outputting perfect information, and the analog to digital converter is converting this perfect data to bits, life is good. The trouble is, the sensors may not return perfect information, or the A/D converter may have some non-linearity, or there whole system may introduce some noise.

All the data the computer can get is the data the sensors are measuring. It probably isn't exactly the value that is real right now, but it is probably close enough. How can we be sure the values are reasonable? We can correlate them to recent events.

If we have a temperature sensor, and we are reading 100 degrees for example, is this right? We can take the most recent 10 or 100 samples, and see if there is a significant change. If the last 100 samples where 45 degrees, we might question the 100 degree sample. If 50 of the last 100 samples were between 90 and 98 degrees, and the other 50 of the last 100 samples were between 102 and 110 degrees then we should keep this sample, and say it is reasonable. However if we are seeing a trend, and the 100 previous samples were showing a steady climb from 90 degrees to 110 and this sample came in at 100, we might again question it.

We need to consider the source as well. If there is a pressure sensor acting as a pitot sensor, measuring airspeed, and it is reading about 180kts. If the indicated pressure increases relative to the static pressure, as the aircraft climbs, there may be a blockage. The trapped air will maintain the surface pressure, but the static pressure will decrease, making the aircraft seem to accelerate as it is climbing. Accidents have been caused by the pitot tube being blocked.

All measuring devices have inherent limitations. Buying one ruler from one manufacturer will probably show differences in another manufacturers ruler. Electronic sensors coming out of the same factory will have slight differences device to device.

Which answer is right? It probably doesn't matter. We just need to be good enough for the situation we are in. We can use math to make questionable information accurate information.