You are on page 1of 6

HARDWARE IN THE LOOP SIMULATOR FOR

A NEW DISTRIBUTED AVIONIC SYSTEM

J.M. Giron-Sierra, M.Seminario, C. Insaurralde, J.F. Jimenez


Dep. Arquitectura de Computadores y Automatica
F. Fisicas. Universidad Complutense de Madrid. 28040 Madrid.
Spain
gironsi@dacya.ucm.es

ABSTRACT any time during the system operations, with no central


Under the auspices of an European Research Project, a coordinator.
new avionic system is being developed. Instead of the
conventional centralized system around a computer with This research requires simulation support along several
point-to-point connections to sensors and actuators, the development steps, before testing on real aircrafts.
new system is completely distributed. The firs application Consequently, a hardware in the loop simulator has been
is aircraft fuel management. A hardware in the loop created using two computers and a laboratory physical
simulator has been developed, to support the development plant. The main topic of this paper is this simulation
of the new avionic system,. This paper focus on the system.
simulator. It consists on a laboratory physical plant, and
two interconnected computers. One of the computers Aircraft fuel management systems are described in
simulates the fuel system, made with tanks, pipes, valves, several books [1] and [2]. The application of fieldbuses in
etc., and the other computer simulates the distributed avionics is a new issue. The book [3] offers a general
control system. The laboratory physical plant reproduces panorama of fieldbuses. The CANbus in particular attracts
the main aspects of the aircraft fuel system. This plant is a lot of attention, and there are some books about it, such
connected to the computers, so at any time parts of the [4]. There are some books, for instance [5] and [6] on
computer simulation can be physical parts. The complete smart components.
simulator, made with the computers and the physical
plant, can be used for several purposes. First for The project Smartfuel involves four industrial partners
functional testing of the distributed control system. makers of components, two companies making aircrafts,
Second for fault and malfunction studies. The paper and three universities providing scientific support. The
introduces the research framework and the purposes of the research started with a requirements phase, then devoted
simulator, and then describes the hardware in the loop long discussions to propose ideas for the new distributed
simulator. system, then made first development and viability tests on
our simulator, then developed a communication protocol,
KEY WORDS then developed smart components with a software core,
Simulation, simulation tools, physically-based modelling. and then arrived to rig testing.

1. Introduction The paper starts with a description of the research


framework and the application field. Then, it considers
Conventional avionic sub-systems have a centralized the system to be simulated and the purposes of the
architecture, with a main computer connected, point-to- simulation. Then it describes the hardware in the loop
point, to sensors and actuators. Modern views advocate in simulator. Finally some conclusions are presented.
favour of local networks or fieldbuses for distributed
solutions. Inspired in this trend to bus based systems, a 2. A Distributed Alternative
research is under way to propose a new avionic solution,
using a fieldbus and eliminating the central computer. A Nowadays an aircraft fuel management system has a
particular application has been selected, which is aircraft central computer connected, point to point, to sensors and
fuel management systems. The European Research actuators. Figure 1 shows some typical components of
project is denoted as “Smartfuel”. The main idea is to such systems. The central computer has an operator
substitute conventional sensors and actuators, such fuel interface with manual switches. In certain aircrafts, seven
gauges, valves, and pumps, by smart components fuel tanks are used. In airplanes, tanks are usually inside
including intelligence, so themselves know what to do at
the wings. Many fuel gauges per tank may be used, due to Every new piece of an avionic system must be certified.
the wing geometry. That means a long and expensive process. For an easier
certification, it was decided in Smartfuel that all smart
components must have the same program inside.

The main idea for reaching the proposed objectives has


been to create a library of local automata. This library is
put in the components program. Each component has an
I.D., so he knows he is the balance pump, or the outer
right tank transfer valve, etc. With his I.D., he selects the
subset of automata describing his functions. When a smart
component do something new, he broadcasts to the
system the change, so every component takes note of the
fuel system new state. This information is used for each
component to decide what to do next.

3. The Fuel Systems to Be Simulated

The Smartfuel project considers two types of aircrafts:


airplanes and helicopters. Two specific examples have
been selected: an airplane with seven tanks and a
Figure 1. Typical fuel management components. helicopter with four tanks.
The point-to-point connections imply a lot of wiring and Figure 3 shows a top view of the airplane fuel system. It
big connectors in the computer. If a fieldbus based system is a simplified diagram showing three tanks in each wing,
is used instead, the system becomes simpler, with less and a trim tank in the tail. The wings inclination allows
weight. This is a main objective of the Smartfuel project. for gravity transfers of fuel to the engines. There are
interconnections between tanks, so it is always possible to
Moreover, the central computer can be avoided, if the transfer fuel from one wing to the other, and to/from the
valves, pumps and sensors know what to do at any trim tank. There are some redundant piping, so there are
moment during aircraft operation. The Smartfuel project alternative paths for the fuel if any valve of pump fails.
proposes the development of smart components for such The main functions of the fuel system are refuelling,
purpose. engine supply, airplane balancing and trimming (cog
management). All functions are done controlling the
Figure 2 shows the main blocks of a smart component. A action of pumps and valves, for adequate routing of the
microcontroller is embedded in each valve, pump and fuel.
sensor of the fuel system. The microcontroller has an
interface to a CANbus, and another interface to the
component itself (to make the pump run or stop, or the
valve to open or close, etc.).

CCC
Programming
CAN bus

Sensor or Micro-
CAN
Actuator
controller
Module

Figure 2. Smart component blocks.


Figure 3. Top view of the aircraft fuel system.
4. A Laboratory Physical Simulator
Figure 4 shows a simplified top view of the helicopter
fuel system. There are two interconnected subsystems.
Each subsystem has two tanks, communicating through a The Smartfuel project involves a long development. In
wide pipe. All tanks are at the floor, below pilot and such kind of projects, the ideas at the beginning, the
passengers. The left-rear subsystem feeds the left engine; fundamental roots of what will be done, are of critical
the right-front subsystem feeds the right engine. There is a importance. So it was a positive contribution to the
bidirectional pump and valve connection between the two project to create a simulation where the viability of the
subsystems, for aircraft balancing purposes. essential ideas was confirmed.

What has been accomplished is a laboratory physical


simulator. In fact, two laboratory systems were built. One
corresponds to the helicopter, with four tanks at the same
horizontal level, and the other corresponds to the airplane,
with seven tanks. Tanks and pipes are scaled down with
respect to the real aircraft fuel systems.

Conventional easy to get valves and pumps, for ¼” pipes,


were used. The fuel system configuration -that is: the
piping connection scheme- for the helicopter and for the
airplane was reproduced. Two external electronic
modules were added for each valve, pump and sensor. In
this way, laboratory smart components were created,
before actual smart components (with embedded
electronics) were made by the Smartfuel industrial
partners. Figure 6 shows a block diagram of a laboratory
smart component. One of the electronic modules contains
Figure 4. Top view of the helicopter fuel system. the microcontroller with the smart component program,
and the other module is an interface between the digital
Figure 5 shows a more detailed diagram of the helicopter electronics and the signals required by valves, pumps and
fuel system. The pressure refuelling input is located at the sensors.
bottom left of the figure; it has one common input to two
valves. There are fuel gauges and level limit sensors, with
some redundancies.

Figure 6. Laboratory smart component block diagram.

Figure 7 shows the general structure of the laboratory


simulators. There are two levels. The upper level is the
physical plant with the fuel, the tanks and pipes, and the
valves, pumps and sensors. The lower level is a set of
Figure 5. Helicopter fuel system diagram. electronic modules, connected to the CANbus. Each
valve, pump and sensor is connected to an interface
The functions of the helicopter fuel management system module, which in turn is connected to a microcontroller
are refuelling, engine supply and aircraft balancing. module. Figure 7 includes a dashed line to visualize that
the two levels interact through the signals coming from Figure 9. Photograph of the helicopter fuel
sensors of going to actuators. system simulator

Figure 10 shows a drawing of the airplane laboratory


simulator, with a front view; notice the wing inclination.
Figure 11 shows a photograph of the airplane fuel system
simulator.

Figure 10. Sketch of the airplane fuel system simulator.


Figure 7. Laboratory simulator structure.

Figure 8 shows a drawing of the helicopter laboratory


simulator, with a lateral view. Figure 9 shows a
photograph of this simulator.

Figure 11. Photograph of the airplane fuel


system simulator

Figure 8. Sketch of the helicopter fuel system simulator. For the initial project studies, the simulator was used in
the following way. A program was developed in a PC, in
C code, with preliminary implementations of the control
distribution idea. A set of local automata was developed,
and a procedure for information broadcasting about the
system state was devised. The C program was translated
to the microcontroller executable code, and put into each
microcontroller in the laboratory simulator. For instance,
the helicopter system has 19 microcontrollers. Then, the
correct working of the fuel system was checked, for all
the functions considered (refuelling, balancing, engine
supply). Several program refinement cycles were
performed. Soon, the main ideas of the project were
proven as viable. The load on the CANbus was
monitored, and the message procedure between smart
components was improved to avoid collisions,
overloading and information missing.
Along the project, the laboratory simulators have been the The computer at the top displays the behaviour of the fuel
main platform for software developing and testing. in the tanks with rich graphic views. The simulation is
Likewise, the laboratory smart component concept, which developed in C++, and it runs under MS-Windows.
is first to test a combination of external electronic Figure 13 shows one of the simulation screens with the
modules and components, before actual embedding, was airplane fuel system; the fuel levels in the tanks are shown
copied in house by the Smartfuel industrial partners. with animated graphics.

5. Simulation by Two Computers

By far, computer simulations are more flexible and rich in


possibilities than physical simulators. In particular,
computer simulations are really useful to make
experiments that are destructive or dangerous in real
conditions. For instance, we could make a pipe to leak in
the laboratory simulator, or make a pump to get blocked,
but it less problematic to simulate this on computers.

A computer simulation was started, to provide the means


for fast and simple simulation of normal operations, and
for malfunction studies.

Along the research, the preoccupation about possible


problems with the fieldbus communication emerged
several times. It is important to include the bus
communication issues into the computer simulation.
However, it is a real time process, with short times
between important events. In parallel, the events in the Figure 13. Simulation screen with the airplane fuel system
fuel system (opening of a valve, tank filling, etc.) are low
speed. There are two time scales to be considered by the
simulation. The computer at the bottom has a more spartan screen.
Everything causing delays is avoided, including graphics.
It was decided to simulate the electronic level of the fuel A real time operating system is used, and the simulation
system (the bottom level in figure 7) in one computer, and of the electronic modules and the CANbus is made
to simulate the fuel physical plant (the top level in figure departing from C++ code. The same C code developed for
7) in another computer. Both computers interact using the the microcontrollers of the laboratory simulator is
same signals that are used in the laboratory simulator to included here as objects.
connect electronic modules to valves, pumps and sensors.
Figure 12 shows a diagram of the two-computer The computer simulation system is useful to study the
simulation system. effect of malfunctions, and to devise functional
reconfigurations of the fuel system
PHYSICAL PLANT
COMPUTER SIMULATION
Slow 6. Hardware in the Loop Simulator
Process

D/A D/A
Both simulation systems, the laboratory physical
Sensors Actuators simulator and the two-computer simulation system, have
(analog signals) (digital signals)
specific advantages. It was seen that both systems can be
combined for several interesting purposes.
A/D A/D

Fast
The key factor here is that the connection between the two
Process computers is made with the same signals as in the
ELECTRONIC LEVEL laboratory smart components (figure 6). But the signal
COMPUTER SIMULATION coming to a valve in the laboratory simulator can be
originated from the corresponding electronic module in
Figure 12. Structure of the two-computer this simulator, or from the computer in charge of real-time
simulation system simulation in the two-computer system. It is just a matter
of putting a switch, that can be electronically or manually
operated. This can be done with any valve, pump or
sensor. Figure 14 shows a view of the combined system,
which we denote as the X-system.

7. Conclusion

Physical Plant A hardware in the loop simulator for a new distributed


(tanks, valves, sensors, etc.) avionic system has been introduced. The simulator gives
an important support for an European Research project,
aiming at a new aircraft fuel management system.

The paper has described the purposes of the simulation


and how several parts of the hardware in the loop
CAN CAN CAN
Module Module Module simulator have been devised, answering to the needs of
the research.
CAN bus
The simulator system combines a two-computer
simulation system with a laboratory physical simulator.
Figure 14. Structure of the hardware-in-the-loop simulator This platform is useful for control software development
for the fuel management systems, and for abnormal
The X-system is useful to study normal and abnormal operation studies.
working of the fuel system. For further increase of
experimental possibilities, other electronic modules can The simulator proved to be an important tool for the kind
be inserted into the laboratory simulator. For instance a of development research considered.
module can be inserted between the interface module and
the valve, pump or sensor. The objective of this new There are several interesting paths to follow in the future
module could be to simulate some faults, such with the simulator. For instance, the study of automatic
connections breaks or intermittent problems. reconfigurations for certain faults, and the improvement
of the smart components program to include such
Part of the Smartfuel project is to develop a new pilot functional changes.
interface to the fuel management system. Figure 15 shows
an extension of the X-system, to include the pilot 8. Acknowledgements
interface for laboratory studies before real application.
The authors want to thank the European Community
support, through the Research Project “Smartfuel”.
Physical Plant
(tanks, valves, sensors, etc.) Likewise, the authors want to thank the collaboration of
the research partners

CAN CAN CAN References:


Module Module Module

CAN bus CAN bus CAN bus [1] D.A. Lombardo, Advanced Aircraft Systems,
C AN bus

McGraw-Hill, 1993
Visualisation
Device
CAN bus
[2] I. Moir, A. Seabridge, Aircraft Systems, AIAA, 2001
(pilot) [3] J.R. Jordan, Serial Networked Instrumentation, John
CAN bus FMC
Wiley & Sons, 1995
[4] L. Wolfhard, CAN System Engineering, Springer-
Verlag, 1997
Figure 15. Extension of the X-system [5] F. Randy, Understanding Smart Sensors, Artech
for the pilot interface House, 2000
[6] N.V. Kirianaki, Y. Yurish, O. Shpak, V.P. Deynega.,
The extension of the system is important to prepare in Data Acquisition and Signal Processing for Smart
laboratory conditions the software for the pilot interface Sensors, John Wiley & Sons, 2002
and the procedures for experiments in the rig. The new
fuel system will be tested in a real-scale rig. This testing
is expensive and time-consuming, so it is good to pave the
way as much as possible in our laboratory.

You might also like