CN112286512B - UI management subsystem of avionic simulation test platform - Google Patents

UI management subsystem of avionic simulation test platform Download PDF

Info

Publication number
CN112286512B
CN112286512B CN202011190459.4A CN202011190459A CN112286512B CN 112286512 B CN112286512 B CN 112286512B CN 202011190459 A CN202011190459 A CN 202011190459A CN 112286512 B CN112286512 B CN 112286512B
Authority
CN
China
Prior art keywords
icd
control
signal
interface
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011190459.4A
Other languages
Chinese (zh)
Other versions
CN112286512A (en
Inventor
赵强
荣建刚
雷婉琦
陈亨利
张钰婧
吴军锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Southwest Electronic Technology Institute No 10 Institute of Cetc
Original Assignee
Southwest Electronic Technology Institute No 10 Institute of Cetc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Southwest Electronic Technology Institute No 10 Institute of Cetc filed Critical Southwest Electronic Technology Institute No 10 Institute of Cetc
Priority to CN202011190459.4A priority Critical patent/CN112286512B/en
Publication of CN112286512A publication Critical patent/CN112286512A/en
Application granted granted Critical
Publication of CN112286512B publication Critical patent/CN112286512B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/33Intelligent editors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a UI management subsystem of an avionic simulation test platform, and aims to provide a UI management system with strong simulation and test capabilities. The invention is realized by the following technical scheme: ICD signal analyzer analyzes ICD signal group and signal obtained by ICD file of xml format interface control document, interface control automatic generator automatically generates different types of control and control group according to ICD signal group and signal and attribute corresponding relation; organizing in a combined frame window control provided with a title in a one-column or multi-column mode, organizing in a Qt designer window file in a grid layout mode, and outputting a visual UI file; the ICD data group package and the unpacker are mapped to the user interface UI files of the corresponding controls through the attribute relation of the ICD units, so that automatic package and unpacking of the interface control file ICD data are automatically realized, and data transmission, receiving display and data storage of the user interface UI are realized.

Description

UI management subsystem of avionic simulation test platform
Technical Field
The invention relates to a simulation test platform software design mainly used for supporting a simulation test platform, which is applied to a UI management subsystem of an avionic simulation test platform.
Background
The system simulation is based on theory such as control theory, similarity theory, information processing technology and computing technology, uses a computer and other special physical effect equipment as tools, tests a real or imaginary system by using a system model, analyzes and researches test results by means of expert experience knowledge, statistical data and information data, and further makes a comprehensive and experimental discipline of decision. Simulations were performed using real objects or models thereof before no computer was available. The physical model has visual simulation image, high fidelity, high cost and long period. The object-oriented simulation technology breaks through the concept of the traditional simulation method based on object-oriented simulation in theory, constructs a simulation model according to objects forming a system and interaction relations thereof, and the objects of the model generally represent corresponding entities in an actual system, so that the gap between the model and the actual system is made up, and the intuitiveness and the understandability of simulation research are enhanced because the natural thinking modes of the knowledge objective world are extremely consistent. Object-oriented simulation has inherent expandability and repeatability, and provides a very convenient means for simulating large-scale complex systems. The object-oriented simulation is easy to realize the combination with computer graphics, artificial intelligence/expert system and management decision science, thereby forming a new generation of object-oriented simulation modeling environment and being more convenient for popularizing and popularizing simulation decision-making technology in decision support and auxiliary management. In order to provide the software under test with the peripheral environment required for operation, the emulated system provides the software under test with inputs equivalent to the actual peripheral environment. The simulation system can be divided into physical simulation, semi-physical simulation, mathematical simulation, man-in-loop simulation and software-in-loop simulation according to different simulation system structures and implementation means. A physical model of the system is constructed according to physical properties of an actual system, and experimental study is performed on the physical model. Some are described in mathematical models and some are physically introduced into the simulation loop. Such simulations must be used for situations where there are subsystems for which it is difficult to build a mathematical model, such as in the aerospace field. Mathematical simulation is computer simulation. Firstly, a mathematical model of the system is established, the mathematical model is converted into a simulation calculation model, and the purpose of running the system is achieved through running of the simulation model. Modern computer simulation consists of software/hardware environment of simulation system, animation and graphic display, input/output, etc. From a similar base level, the system simulation has two layers of structural similarity and behavioral similarity. In the system design optimization development stage, the system simulation focuses on the similarity of two aspects of structure and behavior: in software testing, attention is paid mainly to similar behavior. This is mainly the difference caused by the different subjects. The former studies the performance of the system itself; the latter is to provide the software under test with the peripheral environment required for operation. ICD-based avionic simulation test platform system research comprises simulation environments such as vision, hearing, dynamic sense and force feedback. A typical human-in-loop simulation is a visual simulation. The software is special software on the real object. Such simulations are also referred to as embedded simulations. According to the above-mentioned simulation classification concept, the system simulation belongs to mathematical simulation, i.e. the equipment of software and hardware environment, animation and graphic display and input/output, etc. of computer simulation system. The electronic simulation test system is used for most functions of management of the avionic simulation test platform in the process of carrying out desktop electrical performance joint test and software test in the development process of the avionic simulation test platform, and comprises data collection, data dispatch, instruction control, communication and the like, and interface environments of the electronic system and the electronic system during the desktop electrical performance joint test of attitude and orbit control, energy, thermal control, measurement and control, payload and the like. Therefore, the simulation of the electronic system is an essential component in the development process of the avionics system, and the establishment of an extensible and easily-configured simulation test platform of the electronic system according to the requirements is a key for forming an integrated avionics simulation test platform. The complete electronic simulation test platform with the unified interface can enable the avionic comprehensive simulation system to achieve the purposes of effective interconnection, expansion and configuration and improvement of the development efficiency and the development quality of the avionic system. The avionics simulation equipment can solve the coordination problem among subsystems in the scheme design, is beneficial to development and debugging of airborne software in the avionics design and reduces test time. The simulation test platform is built to a certain extent, so that the time of the simulation test platform can be shortened, the efficiency of simulation test of other systems is improved, a method for realizing the simulation test platform with good universality is hoped to be provided while the simulation test platform is built, the efficiency and reliability of simulation test of other systems are improved, and a foundation is laid for obtaining the effect of half effort for the whole development work. Conventionally, a software system of a simulation test platform mainly adopts a customized development mode, and a User Interface (UI) displayed on an interface needs to be drawn. The UI refers to the overall design of man-machine interaction, operation logic and attractive interface of software, and is a medium for interaction and information exchange between a system and a user. The user interface is widely defined, comprises a man-machine interaction and a graphic user interface, and is used in the field of human and mechanical information communication. The UI design refers to the overall design of attractive interfaces such as man-machine interaction, operation logic, organization business logic, configuration bus drive and the like of software. The good UI design not only enables the software to have individuality and taste, but also enables the operation of the software to be comfortable, simple and free, and fully embodies the positioning and characteristics of the software. Since UI design involves discipline, the degree of expertise and scale of design companies are important conditions for determining the quality of works as the main body of UI design. One product has no UI or is bad in UI, has no friendly operability, and cannot meet the requirements of users.
When the flight control system is checked, the test platform supplies power to all the flight control system components, the platform checks the self-checking information of all the flight control components, under the condition that the power-on self-checking work is normal, the excitation unit simulates signals of systems such as avionics, control stability augmentation and flap control and the like to the flight control computer, the loading platform is controlled to load the steering engine and the balancing system, the flight control operating states are set on the operation of all the flight control operating platforms and the handles by combining the simulation excitation signals and the loading condition, the flight control system enters the corresponding operating mode to work normally, the test platform acquires the operating data of the flight control system, the interface control file ICD reflects the data flow structure of a comprehensive system, and for complex systems, ICD design usually needs multiple times of verification, evaluation and correction, and the process is reflected. After being analyzed by ICD, the test results are output to a software interface of a test platform, a tester can observe whether the flight control system works normally or not on an EFIS/EICAS simulation interface and a data monitoring interface, test results of each test item can be judged by test software, and finally all test data are stored in a database. ICD data management design ICD refers to an avionic interface control file, and defines the input and output data formats between devices. Due to the large number of avionics, the data volume is large, ICDs are often very bulky and cumbersome, and present difficulties for querying and use. Therefore, the database is designed to store ICD data and construct ICD management software to manage all ICD data. The ICD definitions for the various types of on-board electronics are managed using a database. ICD definitions in the database should be able to map with platform hardware. After the corresponding ICDs are input, the test platform can call ICD related information through accessing the database, and the functions of data package, analysis and the like are completed. The formulation of ICD files is an important item of avionics integrated system design. In the manual drawing interface display, the types of connection interfaces are diversified due to the complexity and diversity of the signals of the device under test (UUT). The number of bus control files (ICDs) in one simulator is up to hundreds, and a single ICD (interface control file) contains a plurality of data items, each data item corresponds to one control, thousands of controls need to be drawn, and the data items occupy more than half of the development time of the simulator; meanwhile, the drawing control belongs to repetitive work, and each person draws different styles of interfaces, and is customized manual drawing, so that difficulty is caused in later maintenance and upgrading of the simulator, and a large amount of manpower and financial resources are consumed.
With the increase of the types of avionics and airborne avionics equipment equipped with the avionics, the requirements for testing the avionics system are higher and higher, and the avionics system has stronger universality and expandability and becomes a main performance index of the testing system. However, most of existing avionics system testing equipment is special for special machines, namely different testing platforms are built for different models, so that the problems of repeated design and processing of each set of testing platform, low equipment utilization efficiency, large resource waste and the like are caused, and the requirements of avionics testing in a new period cannot be met. In order to improve the test efficiency of an avionic system, increase the universality and save the scientific research cost, the existing interface automatic generation technology generally adopts the following three implementation modes:
based on the MFC framework, an rc file is generated according to the ICD file, then the generated rc file is loaded in a resource view of the visual studio development platform, a software developer carries out fine adjustment on an interface control in a visual mode in the resource view, and then the rest development work is completed manually.
Based on the WPF framework, describing the control type and control layout corresponding to the ICD by using XAML language to generate an XAML file, then loading the generated XAML file in a visual studio development platform, and performing fine adjustment on the interface control by a software developer in a visual mode, and then manually completing the rest development work.
Based on the self-defined interface configuration file, describing the control type, control data item information, control layout and the like corresponding to the ICD in an interface configuration file mode, analyzing the configuration file by adopting a specific interface control automatic generator, and automatically generating an interface.
In the three implementation modes, the rc file and the XAML file only provide description of the interface control, can not describe information (including data types, data lengths, coding modes and the like) of the ICD internal data item, still requires manual coding of a developer to establish the relation between the ICD internal data item and the interface control, and has larger subsequent workload; the interface configuration file contains the information of the data items in the ICD, but the interface effect can only be seen after the interface configuration file is loaded, the preview effect can not be achieved, and the ideal interface layout effect is difficult to achieve. All the three implementation modes only partially solve the problem of time consumption in developing the interface control on the surface, and do not really realize the automatic generation of the interface control.
Disclosure of Invention
Aiming at the defects of huge manual workload, difficult maintenance and upgrading in the later period, lack of generality and the like exposed in the process of customizing and developing an interface by using the traditional simulation test platform software, the invention provides the UI management system of the avionic simulation test platform, which has the advantages of simple structure, light and fast operation, good instantaneity, high reliability, stronger simulation and test capability and is based on an interface control document ICD.
The object of the present invention can be achieved by the following means. An avionics simulation test platform UI management subsystem comprising: ICD signal analyzer, interface control automatic generator, ICD data group package and unpacker, its characterized in that: the ICD signal analyzer analyzes the ICD file in the xml format to obtain an ICD signal set and a signal of the interface control file, and the interface control automatic generator automatically generates different types of controls and control sets under the QT platform according to the ICD signal set and the signal of the interface control file and the attribute corresponding relation; the control and the control group are organized in a combined frame window control QGroupBox providing a title in a one-row or multi-row mode according to the structure nesting relation in the signal group, the combined frame window control QGroupBox is organized in a Qt designer window file in a grid layout mode, and a visual UI file is output; the ICD data package and the unpacker are mapped to the UI files of the corresponding controls through the attribute relation of the ICD units, the UI data of the user interface is processed into binary data streams to interact with the parameter values of the UI controls, the simulator automatically performs mapping and mutual conversion of the binary data streams and the parameter values of the UI controls according to the attribute of the controls when in operation, automatic package and unpacking of the ICD data of the interface control files are automatically realized, the information of the data items in the ICD of the interface control files is combined with the information of the interface controls, a data channel between the data items in the ICD and the interface controls is automatically established, and data transmission, receiving display and data storage of the UI of the user interface are realized. The ICD data group package and the unpacker are mainly realized in a general code mode in a class file of a Qt designer interface class.
Compared with the prior art, the invention has the following beneficial effects:
the structure is simple, and the operation is light and fast. According to the invention, an ICD signal analyzer, an interface control automatic generator, an ICD data group package and an unpacker are adopted to form an avionic simulation test platform UI management subsystem, the interface control automatic generator automatically generates different types of controls and control groups under a QT platform according to attribute correspondence according to the ICD signal groups and signals obtained by analyzing an XML format ICD file by the ICD signal analyzer, the interface control automatic generator sends interface parameters, the controls and the control groups in a Qt designer window file according to a simulation test platform software and according to a data organization mode defined by ICD, a visual UI file is output, and the interface parameter interface controls the ICD signal attribute of a document.
The real-time performance is good, and the reliability is high. According to the interface control document ICD (InterfacedControlDocument), dynamic interaction is carried out with data on a bus through a communication port, a UI is automatically generated based on the ICD file, the ICD file in an xml format is used as input, a visual UI file is output, and the control positions in the UI file can be pre-laid, so that the effect of obtaining the interface is achieved, the manual writing of interface drawing codes is not needed, and the software development time is greatly shortened; and the upgrade and maintenance of the UI file are realized by a visual updating mode, so that the development and maintenance work of the simulation test platform software system can be effectively supported. The UI management subsystem of the avionic simulation test platform is formed by three basic elements of ICD signals, UI mapping and UI data processing, and the processes of interface control generation, ICD data unpacking, packing, ICD data analysis and the like are automated, so that the repetitive mental labor in the development process of avionic simulation test software is greatly reduced, the software quality is ensured, the development period is shortened, the reliability and consistency of system operation are ensured, and the system development time is greatly saved; the reusability of avionics simulation test software in various model projects is increased. Tests show that the system has good real-time performance, high reliability and good expansibility for different systems.
Has stronger simulation and test capability. According to the invention, the ICD data group package and the unpacker are adopted, the ICD unit attribute relationship is mapped to the UI to serve as corresponding controls, the UI data is processed into the conversion between the binary data stream and the UI control parameter value, the interaction between the binary data stream and the UI control parameter value is realized, the ICD data group package and the unpacking are automatically carried out, the mutual mapping conversion between the interface parameter and the data is completed, the mutual conversion between the binary data stream and the UI control parameter value is automatically carried out by the simulator according to the control attribute during operation, the automatic group package and the unpacking of the ICD data are realized, the development time of UI data processing in the development process is greatly reduced, and the high efficiency and the high reliability of UI data exchange are realized by adopting the universal data processing code. The ICD file is converted into a UI file through UI mapping, the UI management subsystem has strong simulation and test capabilities, and the UI management subsystem obtains attribute information of signals, including attributes such as signal types, names, marks, bit domain widths and the like, by analyzing the ICD file in an XML format; multiple control types are supported, including QLineEdit, QTextEdit, QComboBox, QRadioButton, QCheckBox, QTableWidget and the like, and the use requirements of various scenes are met.
The maintainability is good, and the expansibility is high. The UI files of the ICDs in the simulator software are uniformly maintained and updated in the UI management system. The automatic generation process carries out system management, and when the ICD file is updated, the corresponding UI file is only updated in the UI management system; when the ICD is added, the corresponding Qt designer interface class file is added in the UI management system, so that the UI file is convenient to expand and maintain. And combining the information of the ICD internal data item with the information of the interface control, automatically establishing a data channel between the ICD internal data item and the interface control, and carrying out system management on the automatic generation process of the interface control. The UI can be generalized by previewing, re-laying and obtaining the effect of the generated interface.
Compared with the existing three interface control automatic generation technologies, the interface control automatic generation technology of the invention realizes automatic association between ICD internal data items and interface controls by storing ICD signal attributes into control dynamic attribute modes, and automatic processing of data group package and unbinding; and directly generating a visual user interface UI file and carrying out interface pre-layout, and simultaneously, carrying out visual re-layout on the user interface in a dragging control mode so as to achieve the requirements of different scenes.
The patent of the invention is further described below with reference to the accompanying drawings.
Drawings
FIG. 1 is a schematic diagram of the architecture of the UI management system of the avionics simulation test platform of the present invention;
FIG. 2 is a schematic diagram of the operating principle of FIG. 1; ICD file structure diagram;
FIG. 3 is a diagram of the CD file structure of FIG. 1;
FIG. 4 is a schematic diagram of signal attribute information of the present invention;
FIG. 5 is a schematic diagram of the UI mapping principle of the UI management system;
fig. 6 is a UI type schematic diagram of the ICD file ICD signal group of fig. 5;
fig. 7 is a schematic diagram of the transceiving principle of UI data flows;
FIG. 8 is a diagram illustrating UI binary code flow operation;
fig. 9 is a UI structure organization diagram.
Detailed Description
See fig. 1 and 2. In the embodiments described below, an avionics simulation test platform UI management subsystem comprises: ICD signal parser, interface control automatic generator, ICD data group package and unpacker, wherein: the ICD signal analyzer analyzes the ICD file in the xml format to obtain an ICD signal set and a signal of the interface control file, and the interface control automatic generator automatically generates different types of controls and control sets under the QT platform according to the ICD signal set and the signal of the interface control file and the attribute corresponding relation; the control and the control group are organized in a combined frame window control QGroupBox providing a title in a one-row or multi-row mode according to the structure nesting relation in the signal group, the combined frame window control QGroupBox is organized in a Qt designer window file in a grid layout mode, and a visual UI file is output; the ICD data package and the unpacker are mapped to the UI files of the corresponding controls through the attribute relation of the ICD units, the UI data of the user interface is processed into binary data streams to interact with the parameter values of the UI controls, the simulator automatically performs mapping and mutual conversion of the binary data streams and the parameter values of the UI controls according to the attribute of the controls when in operation, automatic package and unpacking of the ICD data of the interface control files are automatically realized, the information of the data items in the ICD of the interface control files is combined with the information of the interface controls, a data channel between the data items in the ICD and the interface controls is automatically established, and data transmission, receiving display and data storage of the UI of the user interface are realized. The ICD data group package and the unpacker are mainly realized in a general code mode in a class file of a Qt designer interface class.
And the ICD signal analyzer analyzes the xml format ICD file input by the system to obtain ICD signals such as signal types, names, identifications, bit domain widths and the like, signal groups and related signal attributes. The CD signal analyzer automatically generates controls such as different types of line text boxes QLineEdit, rich text boxes QTextEdit, drop-down boxes QComboBox, single selection boxes QRADIO button, check boxes QHeckBox, tables QTableWidget and the like and control groups containing a plurality of signals according to attribute corresponding relations; organizing a plurality of different types of controls mapped to the UI into a combo-box control QGroupBox in a grid layout mode; the control and the control group are organized in a combined frame control QGroupBox in a mode of selecting one or more columns according to the structure nesting relation in the signal group, the combined frame control QGroupBox is organized in a Qt designer window file according to a grid layout mode, and a visualized ui file is output. The designer window file is typically a UI suffix file, abbreviated UI file. The UI files are important components of the design interface class under the QT platform, and the QT designer interface class also contains corresponding class files (c++ header files and source files). ICD data group package and unpacker map to UI file through ICD signal attribute relation for corresponding control, process UI data into binary data stream and UI interface control parameter value interaction.
See fig. 3. The ICD file is an XML format original input file of the UI management system, the interface control document ICD file comprises an interface and ICD content, wherein the interface provides a standardized packaging mode for a port of a data bus hardware module, signals and functions of the interface are packaged by the interface, and the interface comprises a bus type, a signal source, a signal destination and a message ID number which are used as unique identifiers of the interface control file ICD, and the four elements form names of the ICD. The ICD content comprises signal groups and signals of the most basic functional elements, the signal groups refer to a plurality of signals and other signal groups, the ICD content refers to the signals and the signal groups, and the ICD refers to an interface and ICD content. The signals, signal groups can be defined multiple times by multiplexing to avoid duplicate data items.
See fig. 4. The signal is used as the most basic functional element, and the signal contains a plurality of attribute information. The signals comprise attribute information of names (names), identifications (identifications), types (attributes), bit field widths (width), whether to display (visual), signal numbers (array), resolutions (lsb), units (uinit), system (radix) and display types (display) of all data types and display requirements in the application; the signal types are further classified into the following according to the data display type mode: string type (char), signed integer (int), unsigned integer (uint), unsigned integer array (uintarray), single precision floating point type (float), double precision floating point type (double), enumerated type (enum), BCD type (BCD). When the signal type is unsigned integer, the signal contains a binary attribute (radix), and interface display can be performed according to different binary requirements, wherein the binary attribute is classified into hexadecimal (hex), decimal (dec), octal (oct) and binary (bin).
See fig. 5. The ICD signal analyzer analyzes an xml format ICD file input by the system to obtain the most basic functional element signal of the ICD, the interface control automatic generator automatically generates a control and a control group of a corresponding type under the QT platform according to the type attribute of the ICD signal, the ICD signal is mapped to the UI to form a label control (Qcable) containing a signal identifier and a variable setting control, the label control (Qcable) displays the identifier (alias) named as the ICD signal, and the variable setting control is according to the type (attribute) of the signal when the type is: string type (char), signed integer (int), unsigned integer (uint), single precision floating point (float), and double precision floating point (double), the variable setting control is a line text box QLineEdit; when the types are: enumerating types, wherein the variable setting control is a drop-down frame QComboBox; when the attribute is: unsigned integer array type (ui array), the variable setting control is a rich text box QtextEdit, and multi-line display can be performed.
In the process of generating the control, the interface control automatic generator automatically generates the interface control from front to back according to the signal arrangement sequence in the ICD, and performs accumulation processing on the bit field width (width) of the signals to obtain the start byte (byte) and the start bit (bit) of each signal in the ICD, thereby obtaining the position offset in the binary data stream. In generating the control, the start byte (byte), start bit (bit), and other attributes of the ICD signal: the identification (alias), the type (attribute), the bit field width (width), the resolution (lsb), the group number (array), the system (radix), and the unit (uinit) are all stored in the dynamic attribute of the variable setting control; if the signal type (attribute) is an enumeration type, then the following "attribute name: enumerating value_enumerating item; attribute value: the enumeration item is stored in the dynamic attribute of the drop-down frame Qcombobox; the mapping between the ICD signal and the UI control is completed by storing the signal attribute into the control dynamic attribute mode, so that the conversion between the ICD and the UI is realized, and all information in the ICD can be embodied in the UI.
See fig. 6. The ICD content comprises a plurality of signals and signal groups, and the signal groups comprise a plurality of signals and signal groups in a nested form. The information group is mapped to the UI to form a combined frame control QGroupBox, the display name of the combined frame control QGroupBox is Chinese identification (alias) of the information group, the signals in the signal group are mapped to the UI to form a control group in the QGroupBox, the control group can be configured into a single-column form or a multi-column form according to a layout mode, and a grid layout mode provided by QT is adopted to design layout intervals, so that the use requirements of different scenes are met. All the controls of one ICD are organized in a combined frame control QGroupBox in a grid layout mode, the combined frame control QGroupBox is organized in a Qt designer window file in a grid layout mode, and a visual UI file is output.
See fig. 7. The UI is divided into a transmission UI capable of performing functions such as parameter setting and editing and a reception UI mainly used for interface parameter display. All control groups in the send UI and the receive UI are organized in one QGroupBox. The sending UI carries out data sending through a sending button arranged on the right lower side of the UI interface, the Qt designer window type file automatically completes the sending button response of the sending UI, and the function UiToStream provided by the designer type file realizes the conversion from interface parameters to binary data streams and sends the interface parameters to the bus. And after the bus receives the data, identifying a receiving UI according to the ICD name, and realizing refreshing display of the data through an interface refreshing function streamToUi provided by a Qt designer window class file.
See fig. 8 and 9. The ICD data group package and the unpacker mainly complete UI data processing, and comprise UiToStream and StreamToUi. Uitopstream completes conversion from UI to binary data stream, firstly obtains control parameter values, and then obtains dynamic properties of the control: the method comprises the steps of classifying types (attribute), starting bytes (byte), starting bit (bit), bit field width (width), resolution (lsb), group number (array) and binary system (radix), obtaining parameter values of a control, obtaining bit offset of a control mapping signal in an ICD (interface control device) through dynamic properties of the control, namely the starting byte (byte), the starting bit (bit) and the bit field width (width), and converting the control parameter values into corresponding bit values in a binary code stream. StreamToUi completes conversion of binary data stream to UI, through dynamic properties of control: a start byte (byte), a start bit (bit) and a bit field width (width), acquiring bit offset of a signal mapped by the control in the ICD, acquiring a value of a corresponding bit in a binary data stream of the ICD, acquiring a parameter value of the control, and according to dynamic properties of the control: type (attribute), resolution (lsb), group number (array), binary (radix), etc., are converted into control parameter values for the interface display.
Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the spirit and scope of the invention as defined by the appended claims and their equivalents.

Claims (10)

1. An avionics simulation test platform UI management subsystem comprising: ICD signal analyzer, interface control automatic generator, ICD data group package and unpacker, its characterized in that: the ICD signal analyzer analyzes the XML format ICD file to obtain an interface control file ICD signal set and a signal, and the interface control automatic generator automatically generates different types of controls and control sets under the QT platform according to the interface control file ICD signal set and the signal and the attribute corresponding relation; the control and the control group are organized in a combined frame window control QGroupBox providing a title in a one-row or multi-row mode according to the structure nesting relation in the signal group, the combined frame window control QGroupBox is organized in a Qt designer window file in a grid layout mode, and a visual UI file is output; the ICD data group package and the unpacker are mapped to the UI files of the corresponding controls through the attribute relation of the ICD units, the UI data of the user interface is processed into binary data streams to interact with the parameter values of the UI controls, when the simulator runs, the binary data streams and the parameter values of the UI controls are automatically mapped and mutually converted according to the attribute of the controls, automatic group package and unpacking of the ICD data of the interface control files are automatically realized, the information of the data items in the ICD of the interface control files is combined with the information of the interface controls, a data channel between the data items in the ICD and the interface controls is automatically established, and the data transmission, the receiving display and the data storage of the UI of the user interface are realized; ICD data group package and unpacker are realized in a general code mode in class files of Qt designer interface classes.
2. The avionics simulation test platform UI management subsystem of claim 1, wherein: and the ICD signal analyzer analyzes the xml format ICD file input by the system to obtain ICD signals of signal types, names, identifications and bit domain widths, signal groups and related signal attributes.
3. The avionics simulation test platform UI management subsystem of claim 1, wherein: the ICD signal analyzer automatically generates different types of line text boxes QLineEdit, rich text boxes QTextEdit, drop-down boxes QComboBox, single selection boxes QRADIO button, check boxes QHeckBox, table QTableWidget controls and control groups containing a plurality of signals under the QT platform according to attribute correspondence; organizing a plurality of different types of controls mapped to the UI into a combo-box control QGroupBox in a grid layout mode; the control and the control group are organized in a combined frame control QGroupBox in a mode of selecting one or more columns according to the structure nesting relation in the signal group, the combined frame control QGroupBox is organized in a Qt designer window file according to a grid layout mode, and a visualized ui file is output.
4. The avionics simulation test platform UI management subsystem of claim 1, wherein: ICD data group package and unpacker map to UI file through ICD signal attribute relation for corresponding control, process UI data into binary data stream and UI interface control parameter value interaction.
5. The avionics simulation test platform UI management subsystem of claim 1, wherein: the ICD file is an XML format original input file of the UI management system, the interface control file ICD file comprises an interface and ICD content, wherein the interface provides a standardized packaging mode for a port of a data bus hardware module, signals and functions of the interface are packaged by the interface, and the interface comprises a bus type, a signal source, a signal destination and a message ID number which are used as unique identifiers of the interface control file ICD, and the four elements form names of the ICD.
6. The avionics simulation test platform UI management subsystem of claim 1, wherein: the signals comprise attribute information of names (names), identifications (identifications), types (attributes), bit field widths (width), whether to display (visual), signal numbers (array), resolutions (lsb), units (uinit), system (radix) and display types (display) of all data types and display requirements in the application; the signal types are further classified into the following according to the data display type mode: string type (char), signed integer (int), unsigned integer (uint), unsigned integer array (uintarray), single precision floating point type (float), double precision floating point type (double), enumerated type (enum), BCD type (BCD).
7. The avionics simulation test platform UI management subsystem of claim 1, wherein: the ICD signal analyzer analyzes an XML format ICD file input by the system to obtain the most basic functional element signal of the ICD, the interface control automatic generator automatically generates a control and a control group of a corresponding type under the QT platform according to the type attribute of the ICD signal, the ICD signal is mapped to the UI to form a label control (Qtable) containing a signal identifier and a variable setting control, the label control (Qtable) displays the name of the signal, and the variable setting control is a control of different types according to the type (attribute) of the signal.
8. The avionics simulation test platform UI management subsystem of claim 1, wherein: in the process of generating the control, the interface control automatic generator automatically generates the interface control from front to back according to the signal arrangement sequence in the ICD, and performs accumulation processing on the bit field width (width) of the signals to obtain the starting byte (byte) and the starting bit (bit) of each signal in the ICD, so as to obtain the position offset in the binary data stream; in generating the control, the start byte (byte), start bit (bit), and other attributes of the ICD signal: the identification (alias), the type (attribute), the bit field width (width), the resolution (lsb), the group number (array), the system (radix), and the unit (uinit) are all stored in the dynamic attribute of the variable setting control; if the signal type (attribute) is an enumeration type, then the following "attribute name: enumerating value_enumerating item; attribute value: the enumeration item is stored in the dynamic attribute of the drop-down frame QComboBox; and the mapping between the ICD signal and the UI control is completed by storing the signal attribute into the control dynamic attribute mode, so that the conversion between the ICD and the UI is realized.
9. The avionics simulation test platform UI management subsystem of claim 1, wherein: the ICD content comprises a plurality of signals and signal groups, wherein the signal groups comprise a plurality of signals and signal groups in a nested form; the information group is mapped to the UI to form a combined frame control QGroupBox, the display name of the combined frame control QGroupBox is the Chinese identifier (alias) of the signal group, the signals in the signal group are mapped to the UI to form the control group in the QGroupBox, the control group can be configured into a single-column form or a multi-column form according to a layout mode, and the layout interval is designed by adopting a grid layout mode provided by QT, so that the use requirements of different scenes are met.
10. The avionics simulation test platform UI management subsystem of claim 1, wherein: the UI is divided into a sending UI capable of performing parameter setting and editing functions and a receiving UI for displaying interface parameters, all control groups in the sending UI and the receiving UI are organized in one QGroupBox, the sending UI performs data sending through a sending button arranged on the right lower side of the UI interface, and a Qt designer window type file automatically completes the sending button response of the sending UI.
CN202011190459.4A 2020-10-30 2020-10-30 UI management subsystem of avionic simulation test platform Active CN112286512B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011190459.4A CN112286512B (en) 2020-10-30 2020-10-30 UI management subsystem of avionic simulation test platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011190459.4A CN112286512B (en) 2020-10-30 2020-10-30 UI management subsystem of avionic simulation test platform

Publications (2)

Publication Number Publication Date
CN112286512A CN112286512A (en) 2021-01-29
CN112286512B true CN112286512B (en) 2024-02-23

Family

ID=74353287

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011190459.4A Active CN112286512B (en) 2020-10-30 2020-10-30 UI management subsystem of avionic simulation test platform

Country Status (1)

Country Link
CN (1) CN112286512B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113010359B (en) * 2021-03-26 2023-03-17 西安航空电子科技有限公司 Bus test system generation method, system, device and storage medium
CN113645082B (en) * 2021-08-26 2024-07-09 北京润科通用技术有限公司 AS5643 network dynamic simulation test method and device
CN113778449B (en) * 2021-08-31 2023-12-19 西南电子技术研究所(中国电子科技集团公司第十研究所) Avionic interface data adaptation conversion system
CN113949438B (en) * 2021-09-24 2022-11-18 成都飞机工业(集团)有限责任公司 Unmanned aerial vehicle communication method, device, equipment and storage medium
CN113965501A (en) * 2021-09-30 2022-01-21 西南电子技术研究所(中国电子科技集团公司第十研究所) Communication navigation recognition system module test platform
CN114415626B (en) * 2021-12-23 2023-12-19 商飞软件有限公司 Modularized aviation data testing system and testing method thereof
CN115019595B (en) * 2022-05-23 2023-06-06 中国电子科技集团公司第十研究所 Training simulator implementation method and system based on avionics simulation I/O management
CN115499520B (en) * 2022-11-21 2023-03-10 北京蓝天航空科技股份有限公司 Interface control file updating method and device, electronic equipment and storage medium
CN115904353B (en) * 2023-03-02 2023-06-23 上海合见工业软件集团有限公司 Method and system for generating target source file of user interface

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523129A (en) * 2011-12-05 2012-06-27 西北工业大学 Universal avionics bus test analysis method and device
CN105468366A (en) * 2015-11-21 2016-04-06 成都飞机工业(集团)有限责任公司 Intelligent interface based on Qt ground station
CN106354027A (en) * 2015-07-17 2017-01-25 陕西千山航空电子有限责任公司 ICD (interface control document)-oriented RS422 bus signal simulation testing method
CN106940642A (en) * 2017-01-13 2017-07-11 西南电子技术研究所(中国电子科技集团公司第十研究所) The simulated-bus device system of dynamic I CD configurations
CN107229584A (en) * 2017-06-01 2017-10-03 西南电子技术研究所(中国电子科技集团公司第十研究所) Aviation electronics simulation test platform I/O management systems
CN109032577A (en) * 2018-06-27 2018-12-18 中国直升机设计研究所 A kind of data simulation method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016073479A1 (en) * 2014-11-03 2016-05-12 Automated Clinical Guidelines, Llc Method and platform/system for creating a web-based form that incorporates an embedded knowledge base, wherein the form provides automatic feedback to a user during and following completion of the form

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523129A (en) * 2011-12-05 2012-06-27 西北工业大学 Universal avionics bus test analysis method and device
CN106354027A (en) * 2015-07-17 2017-01-25 陕西千山航空电子有限责任公司 ICD (interface control document)-oriented RS422 bus signal simulation testing method
CN105468366A (en) * 2015-11-21 2016-04-06 成都飞机工业(集团)有限责任公司 Intelligent interface based on Qt ground station
CN106940642A (en) * 2017-01-13 2017-07-11 西南电子技术研究所(中国电子科技集团公司第十研究所) The simulated-bus device system of dynamic I CD configurations
CN107229584A (en) * 2017-06-01 2017-10-03 西南电子技术研究所(中国电子科技集团公司第十研究所) Aviation electronics simulation test platform I/O management systems
CN109032577A (en) * 2018-06-27 2018-12-18 中国直升机设计研究所 A kind of data simulation method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于总线配置文件的仿真测试软件通用化设计;周健等;《信息系统工程》;37-39 *
基于综合化航电系统的测试性仿真分析;张钰婧等;《电子产品可靠性与环境试验》;第31卷(第6期);41-44 *

Also Published As

Publication number Publication date
CN112286512A (en) 2021-01-29

Similar Documents

Publication Publication Date Title
CN112286512B (en) UI management subsystem of avionic simulation test platform
CN110007917B (en) Visual page generation and browsing method based on browser
CN108631854B (en) Apparatus and method for testing design of satellite payload transponder
US7926024B2 (en) Method and apparatus for managing complex processes
CN112199086B (en) Automatic programming control system, method, device, electronic equipment and storage medium
CN106445536B (en) Automatic business design management system
CN106469140A (en) A kind of report generating system and its method
CN111241349A (en) Wiring diagram data display method and system based on graph conversion
Bento IoT of Nextion X TFT ILI9341: Experimental Results and Comparative Survey
Muslim et al. A modular and extensible framework for open learning analytics
CN112435072A (en) Model creating method and device, electronic equipment and storage medium
CN113448678A (en) Application information generation method, deployment method, device, system and storage medium
CN101794223B (en) Design method of WADE service message architecture
CN113919158A (en) Simulation method and device for flight control panel and storage medium
CN105824684B (en) A kind of implementation method of multi-mode big data software simulator
US11010140B2 (en) Integration of workflow and logical data objects using visual programming
CN115019595B (en) Training simulator implementation method and system based on avionics simulation I/O management
CN115495362A (en) Method, device, storage medium and computer equipment for generating test code
CN112667202B (en) Software design method and device combining MDA and BPMN
Khan et al. Design and development of android performance testing tool
CN115035044A (en) Be applied to intelligent AI platform of industry quality inspection
CN114816972A (en) Coloring language testing method and device, electronic equipment and storage medium
CN108628606A (en) A kind of the WEB webmaster application program generation methods and system of embedded device
Liu et al. A new concept of a generic co-simulation platform for energy systems modeling
CN116470968B (en) Ground test method and device for communication function of aerospace science system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant