CN112286512A - UI management subsystem of avionics simulation test platform - Google Patents

UI management subsystem of avionics simulation test platform Download PDF

Info

Publication number
CN112286512A
CN112286512A CN202011190459.4A CN202011190459A CN112286512A CN 112286512 A CN112286512 A CN 112286512A CN 202011190459 A CN202011190459 A CN 202011190459A CN 112286512 A CN112286512 A CN 112286512A
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.)
Granted
Application number
CN202011190459.4A
Other languages
Chinese (zh)
Other versions
CN112286512B (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

Images

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)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

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

Description

UI management subsystem of avionics 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 a comprehensive and experimental subject which is established on the basis of control theory, similarity theory, information processing technology, computing technology and other theoretical basis, takes a computer and other special physical effect devices as tools, utilizes a system model to test a real or imaginary system, analyzes and researches test results by means of expert experience knowledge, statistical data and information data, and further makes decisions. Simulations were studied using either material objects or models thereof, until no computer was available. The physical model is visual in simulation image and high in fidelity, but is high in cost and long in period. The object-oriented simulation technology breaks through the concept of the traditional simulation method in theory based on object-oriented simulation, a simulation model is constructed according to objects forming a system and the interaction relation of the objects, the objects of the model usually represent corresponding entities in an actual system, so that the difference between the model and the actual system is made up, and the intuition and the comprehensibility of simulation research are enhanced because the natural thinking modes of an objective world are recognized in a consistent manner. The object-oriented simulation has the inherent expandability and repeatability, and provides a very convenient means for simulating a large-scale complex system. 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 the simulation decision technology in decision support and auxiliary management. In order to provide the peripheral environment required for the operation of the software under test, the simulated system provides the input equivalent to the actual peripheral environment to the software under test. The simulation method can be divided into physical simulation, semi-physical simulation, mathematical simulation, human-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 the actual system, and experimental studies are performed on the physical model. One part is described by a mathematical model, and one part is introduced into a simulation loop in a physical mode. Such simulations must be used for situations where there are subsystems that are difficult to model mathematically, 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 operating the system is achieved through the operation of the simulation model. Modern computer simulation consists of the software/hardware environment of the simulation system, animation and graphic display, input/output and other devices. From a similar basic level, the system simulation has two levels of structure similarity and behavior similarity. In the system design optimization development stage, the system simulation focuses on similarity of two aspects of structure and behavior: in software testing, the main focus is on behavioural similarity. This is mainly the difference caused by the difference between the study subjects. The former studies the performance of the system itself; the latter is to provide the peripheral environment required for the operation of the software under test. The research of the ICD-based avionic simulation test platform system comprises simulation environments such as vision, hearing, sensation of movement, force feedback and the like. A typical human-in-loop simulation is a visual simulation. The software is special software in a real object. Such simulations are also known as embedded simulations. According to the concept of the simulation classification, the system simulation belongs to mathematical simulation, namely, the software and hardware environments, animation and graphic display, input/output and other equipment of a computer simulation system. The electronic simulation test system is used for most functions of the management of the avionic simulation test platform when performing desktop electrical performance joint test and software test in the development process of the avionic simulation test platform, and comprises data collection, data distribution, instruction control, communication and the like, and interface environments of an electronic system and attitude and orbit control, energy, thermal control, measurement and control, effective load and other sub-system desktop electrical performance joint test. Therefore, the simulation of the electronic system is an indispensable important component in the process of developing the avionics system, and the establishment of an extensible and easily-configured electronic system simulation test platform according to requirements is the key of the formation of an integrated avionics simulation test platform. The perfect electronic simulation test platform with the uniform interface can enable the avionics comprehensive simulation system to achieve the purposes of effectively interconnecting, expanding and configuring, and improving the development efficiency and the development quality of the avionics system. The avionics simulation equipment can solve the problem of coordination among subsystems in scheme design, is favorable for development and debugging of airborne software in avionics design and reduces test time. Not only the development of the avionics system can not leave the simulation link, but also the development of other systems of the avionics equipment must firstly establish a simulation test platform to a certain extent, so in order to shorten the time of the link and improve the efficiency of simulation tests of other systems, a method for realizing the simulation test platform with good universality can be provided while establishing the avionics simulation test platform, so that the efficiency and the reliability of the simulation tests of other systems are improved, and a foundation is laid for achieving the effect of twice the result with half the effort of the whole development work. Traditionally, a software system of a simulation test platform mainly adopts a customized development mode, and a user interface (UI for short) for interface display needs to be drawn. The UI refers to the overall design of human-computer interaction, operation logic and attractive interface of software, and is a medium for interaction and information exchange between a system and a user. The purpose is to enable users to conveniently and efficiently operate hardware to achieve bidirectional interaction and complete the work which is expected to be completed by means of the hardware, the user interface definition is wide, the user interface comprises a human-computer interaction and a graphical user interface, and the user interface exists in the field of information communication between human beings and machines. The UI design refers to the integral design with beautiful interfaces such as human-computer interaction, operation logic, organization business logic, configuration bus driving and the like for software. The good UI design not only enables the software to become individual and tasteful, but also enables the operation of the software to become comfortable, simple and free, and fully embodies the positioning and characteristics of the software. Since UI design involves subject matters, the degree of expertise and scale of a design company are important conditions for determining the quality of a product as a subject of UI design. If a product does not have a UI or the UI is not well done, the product does not have friendly operability and cannot meet the requirements of users.
When the flight control system is checked, a test platform supplies power to all flight control system components, the platform checks self-checking information of all the flight control components, under the condition that the power-on self-checking works normally, an excitation unit simulates signals of systems such as avionics, control stability augmentation and flap control and the like to the flight control computer, a loading platform is controlled to load a steering engine and a balancing system, flight control working states are set on operating various flight control consoles and handles by combining simulation excitation signals and loading conditions, the flight control system enters a corresponding working mode to work normally, the test platform acquires working data of the flight control system, an interface control file ICD reflects a data flow structure of a comprehensive system, and for a complex system, ICD design usually needs verification, evaluation and correction for many times, and the process is reflected. The ICD is analyzed and then 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 software can judge test conclusions of various test items, and finally all test data are stored in a database. ICD data management design ICD refers to an avionic interface control file and defines input and output data formats between devices. Because avionics devices are numerous and data volumes are large, ICDs are often very numerous and cumbersome, which brings difficulties for querying and using. Therefore, the design uses the database to store ICD data and constructs ICD management software to manage all ICD data. ICD definitions for various types of onboard electronic devices are managed using a database. The ICD definition in the database should be mapped to the platform hardware. Namely, after the corresponding ICD is input, the test platform can call ICD related information by accessing the database to complete functions of data packaging, analysis and the like. The ICD file is an important content of the design of the avionics integrated system. In the manual drawing interface display, the types of connection interfaces are diversified due to the complexity and diversity of signals of tested equipment (UUT). The number of bus control files (ICDs) in one simulator is as many as hundreds, a single ICD (interface control file) comprises a plurality of data items, each data item corresponds to one control, thousands of controls need to be drawn, and the development time of the simulator is more than half; meanwhile, the drawing control belongs to repetitive work, the style of drawing interfaces of everyone is different, and due to the customized manual drawing, the difficulty is caused in the 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 avionic devices equipped by the avionics, the test requirements on the avionic system are higher and higher, and the avionic system has stronger universality and expandability and becomes a main performance index of the test system. However, most of the existing avionics system test equipment is dedicated to a special plane, that is, different test platforms are established for different models, so that each set of test platform is repeatedly designed and processed, the problems of low equipment utilization efficiency, large resource waste and the like are caused, and the requirement of new-period avionics test cannot be met. In order to improve the efficiency of testing avionics systems, increase the universality and save the scientific research expenditure, 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, the generated rc file is loaded in a resource view of the visual studio development platform, a software developer conducts fine adjustment on an interface control in the resource view in a visual mode, and then the rest of development work is completed manually.
Based on a WPF framework, using XAML language to describe the control type and control layout corresponding to ICD, generating XAML files, then loading the generated XAML files in a visual studio development platform, and a software developer finely adjusts the interface controls in a visual mode and then manually completes the rest development work.
Based on the self-defined interface configuration file, the control type, control data item information, control layout and the like corresponding to the ICD are described in an interface configuration file mode, and a specific interface control automatic generator is adopted to analyze the configuration file and automatically generate an interface.
In the three implementation modes, the rc file and the XAML file only provide description of the interface control, and cannot describe information (including data type, data length, encoding mode and the like) of the ICD internal data item, and developers still need to manually encode to establish the relationship between the ICD internal data item and the interface control, so that the subsequent workload is large; the interface configuration file contains ICD internal data item information, but the interface effect can only be seen after the interface configuration file is loaded, the preview effect cannot be achieved, and the ideal interface layout effect is difficult to realize. The three implementation modes only partially solve the problem of time consumption of interface control development on the surface, and do not really realize automatic generation of the interface control.
Disclosure of Invention
The invention aims to overcome the defects of huge manual workload, difficult later maintenance and upgrade, lack of universality and the like exposed in the process of customizing a development interface of software of a traditional simulation test platform, and provides an avionic simulation test platform UI management system which has a simple structure, light and fast operation, good real-time performance, high reliability and strong 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 package and unpacker, its characterized in that: the ICD signal analyzer analyzes an ICD file with an xml format to obtain an interface control document ICD signal group and signals, and the interface control automatic generator automatically generates different types of controls and control groups under the QT platform according to the interface control document ICD signal group and signals and the attribute corresponding relation; the control and the control group are organized in a combined frame window control QGroupBox provided with a title according to a signal group structure nesting relation in a one-column or multi-column mode, the combined frame window control QGroupBox is organized in a Qt designer window file according to a grid layout mode, and a visual UI file is output; the ICD data package and unpacking device is mapped to a user interface UI file of a corresponding control through an ICD unit attribute relationship, user interface UI data are processed into binary data streams to interact with UI interface control parameter values, a simulator automatically performs mapping and mutual conversion of the binary data streams and the UI interface control parameter values according to control attributes during operation, automatic package and unpacking of the ICD data of the interface control file are automatically realized, information of an ICD internal data item of the interface control file is combined with information of the interface control, a data channel between the ICD internal data item and the interface control is automatically established, and data sending, receiving display and data storage of the UI are realized. The ICD data packing and unpacking device is mainly realized in a generic 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. The invention adopts an avionic simulation test platform UI management subsystem consisting of an ICD signal analyzer, an interface control automatic generator, an ICD data packet and a unpacker, wherein the interface control automatic generator automatically generates ICD signal groups and signals obtained by analyzing an XML format ICD file according to the ICD signal analyzer, and automatically generates different types of controls and control groups under a QT platform according to attribute correspondence, the interface control automatic generator sends interface parameters, controls and control groups to be organized in a Qt designer window file according to simulation test platform software according to a data organization mode defined by an ICD, and outputs a visual UI file, and an interface parameter interface controls the ICD signal attributes of the file, so the interface parameter interface has a simple structure and is easy to operate.
The real-time property is good, and the reliability is high. According to the interface control document ICD (InterfacedControl document), dynamic interaction is carried out on data on a bus through a communication port, a UI is automatically generated based on the ICD, the ICD document in an xml format is used as input, a visual UI document is output, the control position in the UI document can be pre-laid, the WYSIWYG effect is achieved, interface drawing codes do not need to be written manually, and software development time is greatly reduced or shortened; and the upgrading and maintenance of the UI file are realized through a visual updating mode, and the development and maintenance work of a 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 automation of the processes of interface control generation, ICD data unpacking and packaging, ICD data analysis and the like greatly reduces the repetitive mental labor in the development process of avionic simulation test software, ensures the software quality, shortens the development period, ensures the reliability and consistency of system operation and greatly saves the system development time; the reusability of the avionic simulation test software in various model items is improved. Tests show that the method has good real-time performance, high reliability and good expansibility for different systems.
Has stronger simulation and test capability. The invention adopts ICD data package and unpacker, mapping to UI through ICD unit attribute relationship to be corresponding control, processing UI data into conversion between binary data stream and UI interface control parameter value, realizing the interaction between binary data stream and UI interface control parameter value, automatically packaging and unpacking ICD data, completing the mutual mapping conversion between interface parameter and data and UI data processing function, automatically performing the mutual conversion between binary data stream and UI interface control parameter value according to control attribute by simulator during operation, realizing the automatic package and unpack of ICD data, greatly reducing the development time of UI data processing in the development process, and realizing high efficiency and high reliability of UI data exchange by adopting universal data processing code. The ICD file is converted into the UI file through UI mapping, the UI file has strong simulation and test capabilities, and the UI management subsystem obtains attribute information of the signal by analyzing the ICD file in the XML format, wherein the attribute information comprises attributes such as signal type, name, identification, bit domain width and the like; and a plurality of 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 ICDs in the simulator software are uniformly maintained, upgraded and managed in the UI management system. The automatic generation process carries out system management, and when the ICD file is updated, only the corresponding UI file needs to be updated in the UI management system; when the ICD is added, the corresponding Qt designer interface class file is added to 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 performing system management on the automatic generation process of the interface control. The effect that the generated interface can be previewed, rearranged and obtained in a what-you-see way is realized, and the generalization of the UI is realized.
Compared with the three existing automatic interface control generation technologies, the automatic interface control generation technology realizes automatic association between ICD internal data items and interface controls, and automatic processing of data packaging and unbinding through an ICD signal attribute storage control dynamic attribute mode; visual UI files of the user interface are directly generated, interface pre-layout is carried out, and visual re-layout of the user interface can be carried out in a control dragging mode to meet the requirements of different scenes.
The invention is further described with reference to the following figures.
Drawings
FIG. 1 is a schematic diagram of the architecture of a UI management system of an avionics simulation test platform of the present invention;
FIG. 2 is a schematic view of the working principle of FIG. 1; an 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 UI mapping principles of the UI management system;
FIG. 6 is a schematic diagram of the UI type of the ICD signal set of the ICD file in FIG. 5;
FIG. 7 is a schematic diagram of the transceiving principle of UI data flow;
FIG. 8 is a diagram of UI binary code stream operation;
FIG. 9 is a UI structure organization diagram.
Detailed Description
Refer to fig. 1 and 2. In an embodiment described below, an avionics simulation test platform UI management subsystem, comprising: ICD signal analyzer, interface control automatic generator, ICD data package and unpacker, wherein: the ICD signal analyzer analyzes an ICD file with an xml format to obtain an interface control document ICD signal group and signals, and the interface control automatic generator automatically generates different types of controls and control groups under the QT platform according to the interface control document ICD signal group and signals and the attribute corresponding relation; the control and the control group are organized in a combined frame window control QGroupBox provided with a title according to a signal group structure nesting relation in a one-column or multi-column mode, the combined frame window control QGroupBox is organized in a Qt designer window file according to a grid layout mode, and a visual UI file is output; the ICD data package and unpacking device is mapped to a user interface UI file of a corresponding control through an ICD unit attribute relationship, user interface UI data are processed into binary data streams to interact with UI interface control parameter values, a simulator automatically performs mapping and mutual conversion of the binary data streams and the UI interface control parameter values according to control attributes during operation, automatic package and unpacking of the ICD data of the interface control file are automatically realized, information of an ICD internal data item of the interface control file is combined with information of the interface control, a data channel between the ICD internal data item and the interface control is automatically established, and data sending, receiving display and data storage of the UI are realized. The ICD data packing and unpacking device is mainly realized in a generic code mode in a class file of a Qt designer interface class.
The ICD signal analyzer analyzes an ICD file in an xml format input by the system to obtain ICD signals, signal groups and related signal attributes of signal types, names, identifications, bit domain widths and the like. The CD signal analyzer automatically generates different types of controls such as a line text box QLineEdit, a rich text box QTextEdit, a drop-down box QCombobox, a radio box QRAdioButton, a check box QCheckBox, a table QTableWidget and the like under the QT platform according to the attribute corresponding relation, and a control group comprising a plurality of signals; organizing a plurality of different types of controls mapped on the UI in a combined frame control QGroupBox according to a grid layout mode; the control and the control group can be organized in a one-column or multi-column mode in the combined frame control QGroupBox 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 visual ui file is output. The designer window file is typically a UI suffix file, abbreviated as a UI file. The UI file is an important component of the design interface class under the QT platform, and the Qt designer interface class also comprises corresponding class files (a C + + header file and a source file). And the ICD data packet and the unpacking device are mapped to the UI file through the ICD signal attribute relationship to be corresponding controls, and the UI data is processed into binary data streams to interact with the UI interface control parameter values.
See fig. 3. The ICD file is an XML format original input file of the UI management system, and 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, the interface is used for packaging signals and functions of the interface, the interface comprises a bus type, a signal source, a signal purpose and a message ID number which are used as unique identification of the interface control document ICD, and the four elements form the name of the ICD. ICD content includes signal groups and signals of the most basic functional elements, the signal groups refer to several signals and other several signal groups, ICD content refers to the signals and the signal groups, ICD reference interface and ICD content. The signals and the signal groups can avoid multiple definitions of repeated data items through multiplexing.
See fig. 4. The signal is used as the most basic functional element, and the signal contains a plurality of attribute information. The signal includes attribute information covering all data types and display requirements in the application, such as name, identification (alias), type (attribute), bit-field width (width), whether to display (visual), signal number (array), resolution (lsb), unit (uinit), system (radix), and display type (display); the signal types are further divided into: string type (char), signed integer (int), unsigned integer (uint), unsigned integer array (uintarray), single precision floating point (float), double precision floating point (double), enumerated type (enum), BCD code type (BCD). When the signal type is unsigned integer, the signal contains a binary attribute (radix) which can be displayed on an interface according to different binary requirements, and the binary attribute is divided into hexadecimal (hex), decimal (dec), octal (oct) and binary (bin).
See fig. 5. The ICD signal analyzer analyzes an ICD file with an xml format input by a system to obtain a most basic functional element signal of the ICD, the interface control automatic generator automatically generates a control and a control group of corresponding types under a QT platform according to the type attribute of the ICD signal, the ICD signal is mapped to a 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, the variable setting control is according to the type (attribute) attribute of the signal, and when the type is: the method comprises the following steps of (1) character string type (char), signed integer (int), unsigned integer (uint), single-precision floating point (float) and double-precision floating point (double), wherein a variable setting control is a line text box QLineEdit; when the types are: enumerating types, wherein the variable setting control is a drop-down box QCombobox; when the attributes are: unsigned integer array type (uintarray), the variable setting control is a rich text box QtextEdit, and multi-line display is possible.
In the process of generating the control, the automatic interface control generator automatically generates the control from front to back according to the signal arrangement sequence in the ICD, accumulates the width (width) of the signal to obtain the starting byte (byte) and the starting bit (bit) of each signal in the ICD, and obtains 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 are: the identification (alias), the type (attribute), the bit domain width (width), the resolution (lsb), the group number (array), the system number (radix) and the unit (uinit) are stored in the dynamic attribute of the variable setting control; if the signal type (attribute) is an enumeration type, according to the attribute name: enumerated value _ enumerated item; attribute values: the mode of the enumeration item is stored in the dynamic attribute of the drop-down box 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, 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 nested signal groups. The information group is mapped to the UI to be a combined frame control QGroupBox, the display name of the combined frame control QGroupBox is a Chinese identification (alias) of the information group, signals in the signal group are mapped to the UI to be the control group in the QGroupBox, the signals can be configured to be in a single-column form or a multi-column form according to a layout mode, a layout interval is designed by adopting a grid layout mode provided by QT, and the use requirements of different scenes are met. All the controls of one ICD are organized in a combined frame control QGroupBox according to a grid layout mode, the combined frame control QGroupBox is organized in a Qt designer window file according to the grid layout mode, and a visual UI file is output.
See fig. 7. The UI is divided into a transmission UI that can perform functions such as parameter setting, editing, and the like, and a reception UI that is mainly used for interface parameter display. All control groups in the sending UI and the receiving UI are organized in one QGroupBox. The transmission UI transmits data through a transmission button arranged at the right lower side of the UI interface, the Qt designer window class file automatically completes the response of the transmission button of the transmission UI, and the function UiToStream provided by the designer class file realizes the conversion of the interface parameters to the binary data stream and then transmits the binary data stream to the bus. And after receiving the data, the bus identifies the receiving UI according to the ICD name, and the refreshing display of the data is realized through an interface refreshing function StreamToUi provided by a Qt designer window class file.
Refer to fig. 8 and 9. The ICD data packing and unpacking device mainly completes UI data processing, including UiToStream and StreamToUi. UiToStream completes the conversion from UI to binary data stream, firstly obtains the parameter value of the control, and then obtains the dynamic property of the control: the method comprises the steps of classifying types (attribute), starting bytes (byte), starting bits (bit), width of a bit domain (width), resolution (lsb), group number (array) and radix (radix) according to the types (attribute), obtaining parameter values of a control, obtaining bit offset of a signal mapped by the control in an ICD through the starting bytes (byte), the starting bits (bit) and the width of the bit domain (width) of the control, and converting the parameter values of the control into values of corresponding bits in a binary code stream. The StreamToUi completes the conversion of binary data stream to UI, and the dynamic property of the control: a start byte (byte), a start bit (bit), and a bit domain width (width), acquiring the bit offset of the signal mapped by the control in the ICD, acquiring the value of the corresponding bit in the binary data stream of the ICD to obtain the parameter value of the control, and then according to the dynamic attribute of the control: type (attribute), resolution (lsb), group number (array), scale (radix), etc. are converted into values of control parameters for the interface display.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in 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 package and unpacker, its characterized in that: the ICD signal analyzer analyzes an ICD file with an xml format to obtain an interface control document ICD signal group and signals, and the interface control automatic generator automatically generates different types of controls and control groups under the QT platform according to the interface control document ICD signal group and signals and the attribute corresponding relation; the control and the control group are organized in a combined frame window control QGroupBox provided with a title according to a signal group structure nesting relation in a one-column or multi-column mode, the combined frame window control QGroupBox is organized in a Qt designer window file according to a grid layout mode, and a visual UI file is output; the ICD data packet and unpacking device is mapped to a user interface UI file of a corresponding control through an ICD unit attribute relationship, user interface UI data are processed into binary data streams to interact with UI interface control parameter values, a simulator automatically performs mapping and mutual conversion of the binary data streams and the UI interface control parameter values according to control attributes during operation, automatic packet packing and unpacking of the ICD data of the interface control file are automatically realized, information of an internal data item of the interface control file ICD is combined with information of the interface control, a data channel between the internal data item of the ICD and the interface control is automatically established, and data sending, receiving display and data storage of the UI are realized; the ICD data packing and unpacking device is mainly realized in a generic code mode in a class file of a Qt designer interface class.
2. The avionics simulation test platform UI management subsystem of claim 1, characterized in that: the ICD signal analyzer analyzes an ICD file in an xml format input by the system to obtain ICD signals, signal groups and related signal attributes of signal types, names, identifications, bit domain widths and the like.
3. The avionics simulation test platform UI management subsystem of claim 1, characterized in that: the ICD signal analyzer automatically generates different types of controls such as a line text box QLineEdit, a rich text box QTextEdit, a drop-down box QCombobox, a radio box QRAdioButton, a check box QCheckBox, a table QTableWidget and the like under the QT platform according to the attribute corresponding relation, and a control group comprising a plurality of signals; organizing a plurality of different types of controls mapped on the UI in a combined frame control QGroupBox according to a grid layout mode; and the control group are organized in a one-column or multi-column mode in the combo box control QGroupBox according to the structure nesting relation in the signal group, and the combo box control QGroupBox is organized in a Qt designer window file according to a grid layout mode to output a visual ui file.
4. The avionics simulation test platform UI management subsystem of claim 1, characterized in that: and the ICD data packet and the unpacking device are mapped to the UI file through the ICD signal attribute relationship to be corresponding controls, and the UI data is processed into binary data streams to interact with the UI interface control parameter values.
5. The avionics simulation test platform UI management subsystem of claim 1, characterized in that: the ICD file is an XML format original input file of the UI management system, and 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, the interface is used for packaging signals and functions of the interface, the interface comprises a bus type, a signal source, a signal purpose and a message ID number which are used as unique identification of the interface control document ICD, and the four elements form the name of the ICD.
6. The avionics simulation test platform UI management subsystem of claim 1, characterized in that: the signal includes attribute information covering all data types and display requirements in the application, such as name, identification (alias), type (attribute), bit-field width (width), whether to display (visual), signal number (array), resolution (lsb), unit (uinit), system (radix), and display type (display); the signal types are further divided into: string type (char), signed integer (int), unsigned integer (uint), unsigned integer array (uintarray), single precision floating point (float), double precision floating point (double), enumerated type (enum), BCD code type (BCD).
7. The avionics simulation test platform UI management subsystem of claim 1, characterized in that: the ICD signal analyzer analyzes an ICD file in an xml format input by a 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 corresponding types under a QT platform according to the type attribute of the ICD signal, the ICD signal is mapped onto the UI to form a label control (Qcable) and a variable setting control, the label control (Qcable) displays the name of the signal, and the variable setting control is different types of controls according to the type attribute of the signal.
8. The avionics simulation test platform UI management subsystem of claim 1, characterized in that: in the process of generating the control, the automatic interface control generator automatically generates the control from front to back according to the signal arrangement sequence in the ICD, accumulates the width (width) of the signal to obtain the starting byte (byte) and the starting bit (bit) of each signal in the ICD and 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 are: the identification (alias), the type (attribute), the bit domain width (width), the resolution (lsb), the group number (array), the system number (radix) and the unit (uinit) are stored in the dynamic attribute of the variable setting control; if the signal type (attribute) is an enumeration type, according to the attribute name: enumerated value _ enumerated item; attribute values: the mode of the enumeration item is stored into the dynamic attribute of the drop-down box 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, characterized in that: the ICD content comprises a plurality of signals and signal groups, and the signal groups comprise a plurality of signals and a nested signal group; 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 identification (alias) of the signal 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 to be in a single-column form or a multi-column form according to a layout mode, a layout interval is designed by adopting a grid layout mode provided by QT, and the use requirements of different scenes are met.
10. The avionics simulation test platform UI management subsystem of claim 1, characterized in that: the UI is divided into a sending UI capable of setting and editing parameters and a receiving UI mainly used for displaying interface parameters, all control groups in the sending UI and the receiving UI are organized in a QGroupBox, the sending UI carries out data sending through a sending button arranged on the right lower side of the UI interface, and a Qt designer window class 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 true CN112286512A (en) 2021-01-29
CN112286512B 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)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113010359A (en) * 2021-03-26 2021-06-22 西安航空电子科技有限公司 Bus test system generation method, system, device and storage medium
CN113645082A (en) * 2021-08-26 2021-11-12 北京润科通用技术有限公司 AS5643 network dynamic simulation test method and device
CN113778449A (en) * 2021-08-31 2021-12-10 西南电子技术研究所(中国电子科技集团公司第十研究所) Avionics interface data adaptation conversion system
CN113949438A (en) * 2021-09-24 2022-01-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
CN114415626A (en) * 2021-12-23 2022-04-29 商飞软件有限公司 Modular aviation data test system and test method thereof
CN115019595A (en) * 2022-05-23 2022-09-06 中国电子科技集团公司第十研究所 Avionics simulation I/O management-based training simulator implementation method and system
CN115499520A (en) * 2022-11-21 2022-12-20 北京蓝天航空科技股份有限公司 Interface control file updating method and device, electronic equipment and storage medium
CN115904353A (en) * 2023-03-02 2023-04-04 上海合见工业软件集团有限公司 Method and system for generating target source file of user interface

Citations (7)

* 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
US20180301222A1 (en) * 2014-11-03 2018-10-18 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
CN109032577A (en) * 2018-06-27 2018-12-18 中国直升机设计研究所 A kind of data simulation method

Patent Citations (7)

* 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
US20180301222A1 (en) * 2014-11-03 2018-10-18 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
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
周健等: "基于总线配置文件的仿真测试软件通用化设计", 《信息系统工程》, pages 37 - 39 *
张钰婧等: "基于综合化航电系统的测试性仿真分析", 《电子产品可靠性与环境试验》, vol. 31, no. 6, pages 41 - 44 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113010359A (en) * 2021-03-26 2021-06-22 西安航空电子科技有限公司 Bus test system generation method, system, device and storage medium
CN113645082A (en) * 2021-08-26 2021-11-12 北京润科通用技术有限公司 AS5643 network dynamic simulation test method and device
CN113778449B (en) * 2021-08-31 2023-12-19 西南电子技术研究所(中国电子科技集团公司第十研究所) Avionic interface data adaptation conversion system
CN113778449A (en) * 2021-08-31 2021-12-10 西南电子技术研究所(中国电子科技集团公司第十研究所) Avionics interface data adaptation conversion system
CN113949438A (en) * 2021-09-24 2022-01-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
CN114415626A (en) * 2021-12-23 2022-04-29 商飞软件有限公司 Modular aviation data test system and test method thereof
CN114415626B (en) * 2021-12-23 2023-12-19 商飞软件有限公司 Modularized aviation data testing system and testing method thereof
CN115019595A (en) * 2022-05-23 2022-09-06 中国电子科技集团公司第十研究所 Avionics simulation I/O management-based training simulator implementation method and system
CN115019595B (en) * 2022-05-23 2023-06-06 中国电子科技集团公司第十研究所 Training simulator implementation method and system based on avionics simulation I/O management
CN115499520A (en) * 2022-11-21 2022-12-20 北京蓝天航空科技股份有限公司 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
CN115904353A (en) * 2023-03-02 2023-04-04 上海合见工业软件集团有限公司 Method and system for generating target source file of user interface

Also Published As

Publication number Publication date
CN112286512B (en) 2024-02-23

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
US9959376B2 (en) Isolated debugging in an FPGA based emulation environment
US7926024B2 (en) Method and apparatus for managing complex processes
US20050091618A1 (en) Method and apparatus for decomposing and verifying configurable hardware
CN106469140A (en) A kind of report generating system and its method
CN111625226B (en) Prototype-based man-machine interaction design implementation method and system
CN110941427B (en) Code generation method and code generator
US20150278190A1 (en) Web server system, dictionary system, dictionary call method, screen control display method, and demonstration application generation method
CN109032577A (en) A kind of data simulation method
CN112526966B (en) Automatic test method and system for HIL (high-performance liquid chromatography) of controller
CN114036183A (en) Data ETL processing method, device, equipment and medium
Muslim et al. A modular and extensible framework for open learning analytics
CN115495069A (en) Model-driven coal industry software flow implementation method, device and equipment
CN113919158A (en) Simulation method and device for flight control panel and storage medium
CN106372359B (en) A kind of equipment virtual prototype system
CN105824684B (en) A kind of implementation method of multi-mode big data software simulator
CN115019595B (en) Training simulator implementation method and system based on avionics simulation I/O management
CN111126008A (en) XSD-based code generation method and device, computer equipment and storage medium
CN112667202B (en) Software design method and device combining MDA and BPMN
CN115309652A (en) Software test document processing method and device, computer equipment and storage medium
Quammen Scientific Data Analysis and Visualization with Python, VTK, and ParaView.
CN107215479B (en) General data processing framework of flight simulator and construction method thereof
CN108628606A (en) A kind of the WEB webmaster application program generation methods and system of embedded device
CN116305713B (en) Chip simulation system and simulation method

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