Summary of the invention
The object of the invention is to solve the problems referred to above of existing avionics system simulation method, realize the comprehensive simulating of real-time, dynamic, multidisciplinary, the high fidelity of avionics system.
In order to achieve the above object, the invention provides following technical scheme: the distributed real time comprehensive emulation mode of a kind of avionics system, it comprises: on the basis of equipment, port, logic and interface control document of in earlier stage designing the avionics system obtaining, based on System C, with C++, define the Code Template of excitation model, device model and monitoring model, and with C++, define simulation kernel based on System C; On the basis of interface control document, system architecture data and apparatus logic data of in earlier stage designing the avionics system obtaining, according to the Code Template of defined good excitation model, device model and monitoring model, excitation model, device model and monitoring model that generation can emulation; For concrete emulation demand, configure corresponding emulation driving source, and produce by emulation driving source the pumping signal that emulation needs, meanwhile, the pumping signal settling signal that excitation model reads in real time from emulation driving source refreshes; By the signal transitive relation of describing in interface control document, a plurality of device models, the port of excitation model and monitoring model couples together, by simulation kernel based on unified time axle carry out controlling equipment model, excitation model and monitoring model, carry out the signal transmission between model, thereby realize the emulation of avionics system; Utilize simulative surveillance equipment that simulation result is processed in real time and shown, with this, reach the object of signal monitoring.
Further, wherein, in simulation process, model by aircraft exterior model resolves, simulation produces some coherent signals under the true running status of aircraft, and making these coherent signals, by simulation kernel and device model, signal exchange occur in real time, the real-time effectiveness that keeps the signal of each device model with this, makes the signal that transmits in simulation process truer.
Further, wherein, the signal of each transmission has corresponding signal bag in simulation kernel, when signal transmits, the output port of each model and input port be all with simulation kernel in signal bag carry out alternately; Meanwhile, output port write signal bag each time all can have corresponding time mark, and same, input port read signal bag each time also all can have corresponding time mark, with this, completes the signal transmission between model.
Again further, the distributed real time comprehensive emulation mode of described avionics system further comprises by simulation kernel obtains the signal in simulation process, and by the Flight scene of flight scene system displays aircraft.
In the present invention, on the one hand, described emulation driving source comprises pilot operator module, analog capsule cabin opertaing device and self-defined inputting interface, wherein, described pilot operator module, for the various operations of pilot to aircraft under Reality simulation flight environment of vehicle, produces operation pumping signal; Described analog capsule cabin opertaing device, for the passenger cabin opertaing device of Reality simulation aircraft, produces passenger cabin and controls pumping signal; The patterned input control of described self-defined inputting interface for customizing according to emulation demand, produces the pumping signal of customization.
Further, described simulative surveillance equipment comprises signal monitoring module, simulation cabin display equipment and self-defined output interface, and wherein, described signal monitoring module is for monitoring in real time the signal changing at simulation process, preserve its data file, and with the formal output of waveform; Described simulation cabin display equipment is for the output signal of the various cockpit display equipment of avionics system under the true running status of display simulation aircraft; The patterned output control of described self-defined output interface for customizing according to emulation demand, the output signal of displaying format customization.
Meanwhile, in the present invention, can adopt Data distributing (DDS) or CORBA flexible bus technology to realize the signal transmission between each device model of avionics system.
In the present invention, by each device abstract of avionics system become can emulation device model, by simulation kernel, can realize I reaches the precision clock in the 10ps time interval and dispatches, thereby make the design data in early stage just can carry out simulating, verifying in this stage, early find the logical problem existing in design, and then reduction project cost, shorten the whole R&D cycle.In addition, in the present invention, by driving source and the simulative surveillance equipment of Reality simulation aircraft operation, can realize closed-loop simulation; And, utilize passenger cabin control display device and flight scene system to carry out Dynamic Display to simulation process, promoted the verisimilitude of emulation.And, in the present invention, can customize the input/output signal of emulation, greatly promoted the man-machine interaction of emulation.Finally, comprehensive simulating system of the present invention also has aircraft exterior model, vehicle dynamics model for example, aircraft electrical subset model, flight environment of vehicle model etc., can produce more real aircraft exterior signal and carry out signal with realistic model and dock, thereby on the basis of signal dispatching, under the support of multiple model, realize the distributed multidisciplinary synthesis emulation of avionics system.
Embodiment
Below in conjunction with accompanying drawing, describe the specific embodiment of the present invention in detail.
The distributed real time comprehensive emulation mode of avionics system of the present invention is for realizing the comprehensive simulating analysis of avionics system, and it realizes with simulation kernel the scheduling that signal transmission in the avionics system under unified time axle and logic event are controlled.Utilize EM equipment module formula framework and flexible bus technology etc., realize the distributed emulation of avionics system.Can carry out in early days the functional performance in system logic emulation and later stage in avionics system research and development confirms.
Before introducing the distributed real time comprehensive method of avionics system of the present invention, first introduce the analogue system that the distributed real time comprehensive emulation mode of avionics system of the present invention is used.As shown in Figure 1, described analogue system comprises realistic model 1, emulation driving source 2, simulative surveillance equipment 3 and aircraft exterior model 4.Described realistic model 1 comprises excitation model 11, device model 12, monitoring model 13 and simulation kernel 14.Wherein, described excitation model 11 provides excitation for whole simulation process, and it comprises pumping signal and incentive logic.The various pumping signals that described pumping signal passes over for the emulation driving source that will introduce from behind.Described incentive logic is the logical relation of excitation model based on pumping signal input and output.Described device model 12 is for simulating each equipment of avionics system, and it comprises device signal and apparatus logic.Device signal refers to the more producible signals of this equipment self, GPS for example, and its signal generally can comprise longitude, latitude etc.Apparatus logic refers to the logical relation of equipment based on signal input and output, and for example platform computing machine, when receiving self check order, returns to its self check state after platform computer self-test, and whole process is exactly its certain logical relation.In general avionics system, have a plurality of device models, for example, three device models have been shown in Fig. 2, be respectively device model 1, device model 2 122 and device model 3 123.Described monitoring model 13 is for obtaining the variation of the various signals of simulation process, and it comprises pilot signal and monitoring logic.Described pilot signal is for monitoring the various signals in the simulation process obtaining.Described monitoring logic is the logical relation of monitoring model based on signal input and output.In the present invention, by designing the signal transitive relation of describing in the interface control document obtaining early stage, determine described incentive logic, apparatus logic and monitoring logic.As shown in Figure 2, described simulation kernel 14 comprises time shaft 141 and the signal library 142 consisting of various signal bags, for under the United Dispatching of time shaft 141, the signal between realization excitation model 11, each device model 12 and monitoring model 13 and the Parallel Scheduling of logic.
In the present invention, realistic model 1 can be realized based on System C.System C is a kind of system-level modeling language based on C++, belongs to IEEE1666 standard.As everyone knows, before carrying out the emulation of avionics system, carried out the design of avionics system, therefore, can, according to information such as the equipment of design in early stage, port, logic, interface control document (ICD)s, based on System C, with C++, define the Code Template of excitation model 11, device model 12 and monitoring model 13.Described Code Template refers to according to information such as the equipment of design in early stage, port, logic, ICD, the specific code regulation of realizing based on C++, it has embodied the basic framework of model, fills signal and the logic of relevant device within it, can obtain corresponding device model.After having had Code Template, the interface control document (ICD) of the whole avionics system obtaining in the time of just can utilizing design early stage, system architecture data, apparatus logic data etc., according to defined device model Code Template, for each equipment generate can emulation device model; According to defined excitation model Code Template, for each driving source generate can emulation excitation model; According to defined monitoring model Code Template, for each simulative surveillance equipment, the monitoring model that generation can emulation.Meanwhile, can with C++, define described simulation kernel 4 based on System C, comprise time shaft and signal library.
The various excitations of avionics system in described emulation driving source 2 Reality simulation flight situations, and carry out signal with described excitation model 11 and dock.In the present invention, described emulation driving source 2 comprises pilot operator module 21, analog capsule cabin opertaing device 22 and self-defined inputting interface 23.Wherein, described pilot operator module 21 is the various operations to aircraft for pilot under Reality simulation flight environment of vehicle, produce operation pumping signal.Generally, operation pumping signal mainly refers to airplane throttle control signal and aircraft six degree of freedom control signal.Described analog capsule cabin opertaing device 22, for the passenger cabin opertaing device of Reality simulation aircraft, produces conventional passenger cabin and controls pumping signal.Generally, described analog capsule cabin opertaing device 22 mainly refers to the various control knobs of passenger cabin, power switch for example, self-test switch etc.The patterned input control of described self-defined inputting interface 23 for customizing according to emulation demand, produces the pumping signal of customization.Utilize described self-defined inputting interface 23, for can be according to emulation demand, produce the pumping signal of customization, the pumping signal of this customization can be, such as switching signal, aircraft rocking bar signal etc.By described self-defined inputting interface 23, make user's more self-defined comprehensive simulating pumping signals as required, greatly improved the man-machine interaction of emulation.When described emulation driving source 2 starts to produce excitation, excitation model 11 reads the pumping signal from emulation driving source 2 in real time, complete the refreshing of pumping signal in excitation model 11, guarantee that simulation process carries out under current excitation, thereby guaranteed the real-time of emulation.
In simulation process, described aircraft exterior model 4 obtains the external signal relevant to corresponding simulated flight by resolving of self model.Described aircraft exterior model 4 comprises aircraft electrical subset model 41, vehicle dynamics model 42 and flight environment of vehicle model 43.Wherein, described aircraft electrical subset model 41, for the various electronic equipments of simulated flight device, obtains the signal of the various electronic equipments generations of aircraft.Described vehicle dynamics model 42, for the state of flight of simulated flight device, obtains the status signal of aircraft.Described flight environment of vehicle model 43, for the flight environment of vehicle of simulated flight device, obtains flight environment of vehicle signal.In the present invention, by flight simulation software FLSIM, provide described aircraft electrical subset model 41, vehicle dynamics model 42 and flight environment of vehicle model 43.FLSIM be the exploitation of Canadian PRESAGI company for realizing the business software of high precision flight simulation, it comprises the multiple module for flight simulation, such as pneumatic coefficient module, equation of motion module, atmosphere module, control surface change in location module, the motor power module etc. led of aircraft.By this FLSIM, aircraft state signal, each electronic equipment signal and outside flight environment of vehicle signal in the time of can obtaining the operation of aircraft under Reality simulation flight environment of vehicle, for example every flight signal of flying height, longitude and latitude, atmosphere data etc.The flight signal obtaining by FLSIM carries out signal with device model and docks, and gets final product the flight condition in Reality simulation flight environment of vehicle.Certainly, in the present invention, also can not adopt flight simulation software FLSIM, but the various analog machines of design simulation aircraft electrical subset, vehicle dynamics and flight environment of vehicle, and with signal pickup assembly, gather the signal of each analog machine, thereby state of flight signal, each electronic equipment signal and outside flight environment of vehicle signal while obtaining aircraft operation under Reality simulation flight environment of vehicle.
Described simulative surveillance equipment 3 carries out signal with described monitoring model 13 and docks, in order to show the content of simulation process.In the present invention, described simulative surveillance equipment 3 can comprise signal monitoring module 31, simulation cabin display equipment 32 and self-defined output interface 33.Wherein, described signal monitoring module 31, for the signal that in real time monitoring changes at simulation process, is preserved its data file, and with the formal output of waveform.By described signal monitoring module 31, the signal transmission between can watch-dog, for example cited self-test signal above.Described simulation cabin display equipment 32, for the output signal of the various cockpit display equipment of avionics system under the true running status of display simulation aircraft, comprises status signal, continuous signal etc.Described simulation cabin display equipment 32 can be multifunction display, head-up display etc.; Also can be the Graphical output interface of desktop emulation instrument.The patterned output control of described self-defined output interface 33 for customizing according to emulation demand, the output signal of displaying format customization.Utilize described self-defined output interface 33, for can be according to emulation demand, the signal of output customization, the signal of this customization can be, such as switching signal, aircraft rocking bar signal etc.By described self-defined output interface 33, make user's more self-defined integrated output signals as required, greatly improved the man-machine interaction of emulation.In simulation process, simulative surveillance equipment 3 can obtain pilot signal and monitoring logic from monitoring module 13 in real time, guarantees the real-time of simulation data.
Introduce the signal transmission between each model in simulation process below.Fig. 2 shows the schematic diagram that the signal in exemplary simulation process transmits.In order to simplify and clear, in Fig. 2, only show three device models, certainly, real avionics system can comprise more device models.In like manner, in Fig. 2, only show the signal transmission between device model two and device model three, certainly, in real avionics system, between miscellaneous equipment model and between excitation model and device model, also there is signal transmission between device model and monitoring model, but the signal transfer mode between them and device model two are identical with the signal transfer mode between device model three, the signal transfer mode of therefore, here only take between device model two and device model three is introduced the signal transfer mode between each model as example.As shown in Figure 2, in the present invention, between excitation model 11, device model 1, device model 2 122, device model 3 123 and monitoring model 13, by port, be connected to each other settling signal transmission under the support of simulation kernel 14.Under the United Dispatching of time shaft 141, between different models, by the signal bag in signal library 142, write the mode of reading and carry out signal transmission.Particularly, when emulation, according to the excitation incentive logic 112 of model 11, the apparatus logic 1222 of the apparatus logic 1212 of device model 1, device model 2 122, the port that the monitoring logic 132 of the apparatus logic 1232 of device model 3 123 and monitoring model 13 is set up between excitation model 11, device model 1, device model 2 122, device model 3 123 and monitoring model 13 connect.Then, under the United Dispatching of simulation kernel 14, based on axle 141 unified time, realize the signal transmission between excitation model 11, device model 1, device model 2 122, device model 3 123 and monitoring model 13.For example, if the device model 2 122 in Fig. 2 is master control computer model, device model 3 123 is platform computer model.For total control computer, to platform computing machine, send this process of self-test signal, owing to there being the logical relation of signal input and output between them, so their port is connected to each other, and after their port is connected to each other, first by total control computer at previous moment output signal bag 1421 signal library 142 to simulation kernel 4, this signal bag 1421 not only comprises the signal 1 of master control computer export, the time 1 while also comprising the output signal obtaining based on time shaft 141; By platform computing machine, rear one, constantly from the signal library 142 of simulation kernel 4, read self-test signal bag 1422 again, this self-test signal bag 1422 not only comprises the signal 2 that platform computing machine reads, time 2 while also comprising the read signal obtaining based on time shaft 141, then complete the transmission of self-test signal.Due in the transmittance process of signal, not only comprise signal itself, also comprise and the time of signal correction, therefore can realize the real-time simulation of avionics system.
Described analogue system further comprises flight scene system 5.Described flight scene system 5 is obtained some signals in simulation process by simulation kernel 14, comprises signal and the aircraft exterior signal of each equipment of avionics system, shows the simulated flight what comes into a driver's of aircraft.
In addition, in the present invention, can adopt the existing flexible bus technology such as Data distributing (DDS) or CORBA to realize the signal transmission between each device model 12 of avionics system, thereby can realize better the distributed emulation between each model.
Introduce the distributed real time comprehensive emulation mode of avionics system of the present invention below.
Fig. 3 shows the process flow diagram of the distributed real time comprehensive emulation mode of avionics system of the present invention.As shown in Figure 3, in this comprehensive simulating method, first, through the design of early stage to avionics system, can obtain the information such as each equipment, port, logic, interface control document (ICD).On the basis of these information, can with C++, define based on System C the Code Template of excitation model, device model and monitoring model; And with C++, define simulation kernel based on System C.
Secondly, through the design of early stage to each equipment interface of avionics system, can obtain interface control document (ICD), system architecture data and the apparatus logic data of whole avionics system.On the basis of these data, according to the Code Template of defined good excitation model, device model and monitoring model, excitation model, device model and monitoring model that generation can emulation.
Again, for concrete emulation demand, configure corresponding emulation driving source, and produce by emulation driving source the pumping signal that emulation needs, meanwhile, the pumping signal settling signal that excitation model reads in real time from emulation driving source refreshes.
Then, by the signal transitive relation of describing in the interface control document (ICD) designing early stage, a plurality of device models, excitation model and monitoring model couple together by port.By simulation kernel based on unified time axle carry out controlling equipment model, excitation model and monitoring model, carry out the signal transmission between model, thereby realize the emulation of avionics system.
Finally, utilize simulative surveillance equipment that simulation result is processed in real time and shown, with this, reach the object of signal monitoring.
In addition, in the present invention, in simulation process, can utilize some aircraft exterior models, comprise flight dynamics model, flight environment of vehicle model, aircraft electrical subset model, resolves by model, simulation produces some coherent signals under the true running status of aircraft, there is signal exchange by simulation kernel and device model in these coherent signals, the real-time effectiveness that keeps the signal of each device model with this makes the signal that transmits in simulation process truer in real time.
And in the present invention, preferably, the signal of each transmission has corresponding signal bag in simulation kernel, when signal transmits, the output port of each model and input port be all with simulation kernel in signal bag carry out alternately; Meanwhile, output port write signal bag each time all can have corresponding time mark, and same, input port read signal bag each time also all can have corresponding time mark, with this, completes the signal transmission between model.
Meanwhile, in the present invention, can adopt Data distributing (DDS) or CORBA flexible bus technology to realize the signal transmission between each device model of avionics system, thereby realize better distributed emulation.
The content of embodiment is understood for the ease of those skilled in the art and is used the present invention and describe, and does not form the restriction of the present invention being protected to content.Those skilled in the art, after having read content of the present invention, can carry out suitable modification to the present invention.Protection content of the present invention is as the criterion with the content of claim.In the situation that do not depart from flesh and blood and the protection domain of claim, various modifications, change and replacement etc. that the present invention is carried out are all within protection scope of the present invention.