CN116302973A - Avionics task software host interface test and simulation system - Google Patents

Avionics task software host interface test and simulation system Download PDF

Info

Publication number
CN116302973A
CN116302973A CN202310115006.2A CN202310115006A CN116302973A CN 116302973 A CN116302973 A CN 116302973A CN 202310115006 A CN202310115006 A CN 202310115006A CN 116302973 A CN116302973 A CN 116302973A
Authority
CN
China
Prior art keywords
connection
interface
data
service center
software
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.)
Pending
Application number
CN202310115006.2A
Other languages
Chinese (zh)
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.)
China Aeronautical Radio Electronics Research Institute
Original Assignee
China Aeronautical Radio Electronics Research Institute
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 China Aeronautical Radio Electronics Research Institute filed Critical China Aeronautical Radio Electronics Research Institute
Priority to CN202310115006.2A priority Critical patent/CN116302973A/en
Publication of CN116302973A publication Critical patent/CN116302973A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses an avionics task software host interface test and simulation system, which comprises an interface data protocol definition module and a connection service center module, wherein the interface data protocol definition module is used for dynamically defining and managing each interface data protocol; the connection service center module is mainly responsible for managing the connection of various communication interfaces, carrying out data package transmission, data receiving and data analysis and the like according to an interface data protocol, providing communication service interfaces based on an RPC protocol to the outside, and responding to interface service requests for all communication interfaces of the host machine, which are proposed by the simulation program. The invention enables a tester to quickly establish an interface test environment of avionics task software on a host by connecting the service center module and the interface data protocol definition module.

Description

Avionics task software host interface test and simulation system
Technical Field
The invention relates to the field of host interface testing and simulation, in particular to an avionics task software host interface testing and simulation system.
Background
With the continuous development of avionics systems in the directions of "integration", "informatization" and "networking", avionics systems have become a multi-tasking, complex-interface, modular, software-intensive embedded system. The task software of the avionic system (avionic task software for short) such as general data management software, comprehensive display control software, electronic flight instrument system software and the like, performs complex interface communication with external systems besides data interaction among internal configuration items, and generally relates to ARINC429, 1553B, CAN, AFDX, FC buses, RS422, DDS and the like; the complexity of the running platform, the data interaction, the diversity of interfaces and the like make simulation and test of avionics task software on a host machine (such as Windows) very difficult.
The main stream technology for solving the operation of the embedded avionics software host machine is a virtual simulation technology, such as a simics simulator of a wind river company, open source software SkyEye and the like, which can simulate a hardware platform and provide instruction level simulation, but because the configuration of the avionics software operation environment is complex, the embedded avionics software operation environment needs to be customized and purchased according to a hardware CPU (Central processing Unit) and cannot be flexibly deployed by multiple platforms, the embedded avionics software host machine is limited in use in each scientific research unit; in addition, platform middleware technology, which is currently more commonly adopted, provides platform-independent operating system level simulation, such as OSAC (Operation System APEX Component) technology in the middle-air industry 615. The technology realizes unified target machine operation system interface service on the host machine and uses a local communication mechanism (such as UDP network, shared memory and the like) to simulate target machine (VxWorks 653 and the like) interface communication, so that avionics task software can be transplanted to a host machine platform through a small amount of configuration and modification, and flexible debugging operation environment is provided on the host machine.
The host migration problem of the target software is solved by the operating system level simulation technology based on the platform middleware, however, the interface test and simulation of the avionics task software also needs the dynamic data interaction between the software (or configuration item) and the interface test software or the external simulation program according to the interface control file (ICD, interface Control Document), the complexity of the avionics task software data interaction and the diversity of the interface make the development of the adaptive interface test software or the external simulation program very difficult, and often the interface test and simulation on the host computer are difficult to realize. In an actual test project, when a target machine test environment is absent, a tester often needs to develop an IDE environment by means of the project and perform interface test in a host machine environment in a compiling mode after inserting code, so that the efficiency is quite low.
Disclosure of Invention
In order to conveniently realize the interface test and simulation of avionics task software on a host, the invention aims to provide an avionics task software host interface test and simulation system which provides interface data dynamic packaging and sending supporting the connection of common communication types of the host, and has the functions of receiving data, storing and analyzing, so that the interface test of the host can be conveniently carried out; the connection parameter configuration and the interface data protocol are stored as Json (or Xml) files, so that the connection parameter configuration and the interface data protocol are convenient to load to complete quick deployment of the avionics task software on a host machine in an interface test or simulation environment; by implementing and providing a C/C++, python language interface for external communication connection management and data communication services based on RPC (Remote Procedure Call ), rapid development of external simulation programs can be supported.
The invention aims at realizing the following technical scheme:
an avionics task software host interface test and simulation system comprises an interface data protocol definition module and a connection service center module; the interface data protocol definition module is used for dynamically defining and managing the interface data protocols of all communication types; the connection service center module is mainly responsible for managing the connection of all communication type interfaces, carrying out data package sending, data receiving, analysis and the like according to an interface data protocol, providing a communication service interface based on an RPC protocol externally, and responding to the connection management of the simulation program and the data communication service request.
Preferably, the interface data protocol definition module provides a UI interface to enable a user to dynamically create, delete, modify, and view definitions of various interface data protocols according to the interface control document, wherein basic data structure types of the interface data protocols include integer, unsigned integer, floating point number, character, and support definition of bit domain structures and arrays.
Preferably, the dynamic definition function of the interface data protocol structure in the interface data protocol definition module is realized by a Channel class, and each interface data protocol is a Channel class object; maintaining a first linked list formed by node information in a data structure in the Channel class, wherein the node information comprises: field name, data type, offset byte, number, size, bit field identification, start bit, stop bit, and field description; the Channel class provides function interfaces for adding fields, deleting fields, clearing linked lists, modifying field attributes, acquiring field information, traversing the linked lists, and performing data packing and unpacking according to an interface data protocol.
Preferably, the interface data protocol definition module is capable of saving the created interface data protocol as a Json or Xml file.
Preferably, the connection service center module provides a UI interface for a user to create a connection of each communication type interface or to perform operations such as modifying a name, deleting the created connection when managing the connection of each communication type interface.
Preferably, the connection service center module is capable of saving configuration parameters of the created connection as a Json or Xml file.
Preferably, the connection service center module maintains a second linked list structure, and each node in the second linked list contains information of established connection, including: connection name, source (user created or external emulator created through RPC service interface call), handle, connection object pointer, next pointer; the Connection object pointer points to the specific implementation of the Connection object, and each Connection object inherits the same parent class Connection and realizes the same operations of opening Connection, closing Connection, receiving data, sending data, setting receiving-forwarding, acquiring Connection parameter information and the like; the connection service center also supports searching and deleting of each connection in the second linked list, adding connection nodes, traversing the linked list, returning connection parameter information and the like.
Preferably, when the connection service center module performs data package transmission and data receiving analysis according to an interface data protocol, a separate data receiving and transmitting interface of each connection is provided, the connection for data transmission, the interface data protocol for data package and a size end are supported to be configured by a user, each input value in the interface data protocol is dynamically configured, manual or periodic automatic transmission is configured, and the connection service center module packages according to the configured interface data protocol and transmits data according to the configured connection; the data receiving and transmitting interface also supports the user to configure the connection of the received data, the analysis protocol of the received data and the size end, configures manual or periodical automatic reception, and the connection service center module receives the data from the configured connection and analyzes the data according to the configured interface data protocol and also supports the automatic recording and playback of the received data.
Preferably, the connection service center module can perform forwarding (receiving-forwarding function) of the received data between the connection terminals of different interface types, when the software a and the software B of different interface types need to communicate, the connection TA for communicating with the software a and the connection TB for communicating with the software B are created, and after the connection TA is set to receive the data, the connection TB is forwarded, and after the connection TB receives the data, the connection TA is forwarded to realize the communication between the software a and the software B.
Preferably, the connection service center module also provides a C/C++, python language service interface for connection management and data communication based on RPC, the connection service center can respond (external simulation program) to the request operation of these services; these service interfaces include creation of various types of connections, modification of connection names, deletion of connections, opening/closing of connection communications, data transmission/reception.
The invention has the beneficial effects that:
the invention establishes a connection service center module and an interface data protocol definition module of a common communication type, so that a tester can quickly establish an interface test environment of avionics task software on a host machine, and test or software debug is carried out on an interface data receiving and transmitting interface; the adaptability of the communication interfaces with different tested software is enhanced by the various communication types, the development difficulty of the avionics task software interface testing environment on the host machine is greatly simplified, and the efficiency of the interface testing is obviously improved.
The C/C++ and Python language communication service interface realized based on RPC simplifies the development process of simulation programs, and the data receiving-forwarding function enables different interface software to realize normal communication and supports multi-connection data receiving and transmitting so that avionics task software can perform concurrent interactive collaborative simulation with a plurality of external programs.
Drawings
FIG. 1 is a schematic diagram of an avionics task software host interface test and simulation architecture.
Fig. 2 is a connection service center processing flow of the RPC communication service.
Fig. 3 is a schematic diagram of a receive-forward function.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples.
Common communication types of interfaces of the host include UDP, TCP, shared memory, serial port, DDS and UTP (Universal Transport Protocol, a common transmission protocol based on a first-in first-out queue of shared memory), as shown in fig. 1, an avionics task software host interface testing and simulation system in this embodiment mainly includes an interface data protocol definition module and a connection service center module. The interface data protocol definition module is used for dynamically defining and managing the interface data protocols of all communication types; the connection service center module is mainly responsible for managing the connection of various communication type interfaces, carrying out data package sending, data receiving, analysis and the like according to an interface data protocol, providing a communication service interface based on an RPC protocol externally, and responding to the connection management of the simulation program and the data communication service request.
The following is a detailed description of the modules.
1. Interface data protocol definition module
The interface data protocol definition module provides a UI interface to enable a user to dynamically create, delete, modify, view definitions of various interface data protocols according to an Interface Control Document (ICD), the basic data structure types of the interface data protocols comprise integer, unsigned integer, floating point number and character, and support definition of bit domain structures and arrays.
The dynamic definition function of the interface data protocol is realized by a Channel class, and the structure of each interface data protocol is a Channel class object. The Channel class maintains a first linked list formed by information of each node in the data structure, and the information of the node mainly comprises: field name, data type (char, unsigned char, short, unsigned short, int, unsigned int, long long, unsigned long long, float, double, etc.), offset byte, number (non-array structure 1), size (byte number), bit field identification, start bit, stop bit, field description, etc.; the Channel class provides function interfaces such as field addition, field deletion, clearing of a linked list, field attribute modification, field information acquisition, traversing of the linked list, data packing and unpacking according to an interface data protocol.
The created interface data protocol can be stored as a Json or Xml file, which is convenient for quick loading and multiplexing in the future.
2. Connection service center module
The functions provided by the connection service center module are as follows:
managing the connection of each communication type interface: the connection service center module provides a UI interface for a user to create connection of each communication type interface, or carries out operations such as name modification, deletion and the like on the created connection (including user creation and external RPC service call creation); the user can save the configuration parameters of the created connection as Json or Xml files, so that the loading and quick deployment are convenient. The connection service center module maintains a second linked list structure, each node in the second linked list contains the information of the established connection, and the connection service center module mainly comprises: connection name, source (user created or otherwise), handle, connection object pointer, next pointer, etc., wherein the Connection object pointer points to a specific implementation of a Connection object (UDP, shared memory, TCP, serial port, DDS, UTP type Connection), each Connection object inherits the same parent Connection and implements the same interfaces of Open Connection (Open), closed Connection (Close), receive data (Recv), send data (Send), set receive-forward (SetRecvFward), and acquire Connection parameter information (GetInf); the connection service center also supports the operations of searching and deleting each connection in the second linked list, adding the connection node, traversing the linked list, returning connection parameter information and the like.
(2) Data package sending and receiving data analysis are carried out according to an interface data protocol: providing a data receiving and transmitting interface of each connection independently, supporting a user to configure the connection for data transmission, an interface data protocol for data packaging, a size end, dynamically configuring each input value in the interface data protocol, configuring manual or periodic automatic transmission, and automatically packaging and transmitting data according to the interface data protocol by a connection service center module after configuration; the data receiving and transmitting interface also supports the user to configure the connection of the received data, the analysis protocol and the size end of the received data, the manual or periodic automatic receiving is configured, the connection service center module automatically analyzes the received data according to the interface protocol after the data is configured, and the automatic recording and playback of the received data is also supported.
(3) Reception-forwarding function of communication connection:
the receiving-forwarding function can connect software a and software B of different types of interfaces, for example, the external data interface of software a is of a shared memory type, the data interface of software B is of a UDP type, after the connection service center module creates a shared memory connection TA (communicating with software a) and a UDP connection TB (communicating with software B), a TA connection receiving-forwarding TB connection can be set, a TB connection receiving-forwarding TA connection can be set, and data communication can be performed between software a and software B, as shown in fig. 3.
(4) Providing a C/C++, python language communication service interface based on RPC protocol: the external simulation program provides services such as creation of various types of connection, modification of connection names, deletion of connection, closing/opening of connection, data transmission and reception and the like for a connection service center through a communication service interface; the external simulation program calls a communication service interface for creating the connection and returns the connection successfully, and then a handle of the connection is obtained; the external simulation program uses the handle of the established connection to call UCS_Send ()/UCS_Recv () service interface function to transmit and receive data; the simulation program only needs to pay attention to the data logic processing, the process of creating connection of each communication type and data receiving and transmitting in the program is omitted, and the use of the Python script language is more beneficial to the rapid development of the simulation program. The communication service interface provides a description of the main service interface functions and parameters as shown in table 1:
table 1 connection service center RPC service interface
Figure BDA0004078240270000081
Figure BDA0004078240270000091
The test and simulation process of the avionics task software host interface test and simulation system provided by the embodiment is shown in fig. 2.
It will be understood that equivalents and modifications will occur to those skilled in the art in light of the present invention and their spirit, and all such modifications and substitutions are intended to be included within the scope of the present invention as defined in the following claims.

Claims (10)

1. An avionics task software host interface test and simulation system comprises an interface data protocol definition module and a connection service center module, and is characterized in that the interface data protocol definition module is used for dynamic definition and management of various communication type interface data protocols; the connection service center module is mainly responsible for managing the connection of all communication type interfaces, carrying out data package sending and data receiving analysis according to an interface data protocol, providing a service interface based on an RPC protocol externally, and responding to interface service requests for all interfaces of the host machine, which are proposed by the simulation program.
2. The system of claim 1, wherein the interface data protocol definition module provides a UI interface to enable a user to dynamically create, delete, modify, view definitions of interface data protocols based on interface control documents, the basic data structure types of the interface data protocols including integer, unsigned integer, floating point number, character, and support definitions of bit field structures and arrays.
3. The system for testing and simulating the interface of the host computer of the avionics task software according to claim 1, wherein the dynamic definition function of the interface data protocol in the interface data protocol definition module is realized by a Channel class, and each interface data protocol structure is a Channel class object; maintaining a first linked list formed by node information in a data structure in the Channel class, wherein the node information comprises: field name, data type, offset byte, number, size, bit field identification, start bit, stop bit, and field description; the Channel class provides function interfaces for adding fields, deleting fields, clearing linked lists, modifying field attributes, acquiring field information, traversing the linked lists, and performing data packing and unpacking according to an interface data protocol.
4. An avionics task software host interface test and simulation system according to claim 1, wherein the interface data protocol definition module is capable of saving the created interface data protocol as a Json or Xml file.
5. The system for testing and simulating interfaces of an avionics task software host machine according to claim 1, wherein the connection service center module provides a UI interface for a user to create connections of the communication type interfaces or to modify names and delete created connections when managing the connections of the communication type interfaces.
6. An avionics task software host interface test and simulation system according to claim 1, wherein the connection service center module is capable of saving configuration parameters of the created connection as Json or Xml files.
7. The avionics task software host interface testing and simulation system of claim 1, wherein the connectivity service center module maintains a second linked list structure therein, each node in the second linked list comprising information of the created connection, comprising: connection name, source, handle, connection object pointer, next pointer; the Connection object pointer points to the specific implementation of the Connection object, and each Connection object inherits the same parent class Connection and realizes the same operations of opening Connection, closing Connection, receiving data, sending data, setting receiving-forwarding and obtaining Connection parameter information, wherein the source comprises user creation or external simulation program creation through RPC service interface call; the connection service center module also supports searching and deleting of each connection in the second linked list, adding connection nodes, traversing the linked list and returning connection parameter information.
8. The system for testing and simulating the interface of the host computer of the avionics task software according to claim 1, wherein the connection service center module provides a data receiving and transmitting interface for each connection independently when carrying out data package transmission and data analysis according to an interface data protocol, supports the connection of user configuration for data transmission, the interface data protocol for data package, a size end, dynamically configures each input value in the interface data protocol, configures manual or periodic automatic transmission, and the connection service center module packages according to the configured interface data protocol and transmits data according to the configured connection; the data receiving and transmitting interface also supports the user to configure the connection of the received data, the analysis protocol of the received data and the size end, configures manual or periodical automatic reception, and the connection service center module receives the data from the configured connection and analyzes the data according to the configured interface data protocol and also supports the automatic recording and playback of the received data.
9. The system for testing and simulating the interfaces of the host computer of the avionics task software according to claim 1, wherein the connection service center module is used for forwarding the received data among the different interface types of connection devices, when the software A and the software B of the different interface types of connection devices need to communicate, the communication between the software A and the software B is realized by creating a connection TA which communicates with the software A and a connection TB which communicates with the software B, setting the connection TA to forward the received data, and the connection TB to forward the connection TA after the received data.
10. The system for testing and simulating the host interface of the avionics task software according to claim 1, wherein the connection service center module further provides the C/C++ and Python language service interfaces for connection management and data communication realized based on RPC, and the connection service center can respond to the request operation of each service interface; each service interface includes creation of various types of connections, modification of connection names, deletion of connections, opening/closing of connection communication, data transmission/reception.
CN202310115006.2A 2023-02-15 2023-02-15 Avionics task software host interface test and simulation system Pending CN116302973A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310115006.2A CN116302973A (en) 2023-02-15 2023-02-15 Avionics task software host interface test and simulation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310115006.2A CN116302973A (en) 2023-02-15 2023-02-15 Avionics task software host interface test and simulation system

Publications (1)

Publication Number Publication Date
CN116302973A true CN116302973A (en) 2023-06-23

Family

ID=86821451

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310115006.2A Pending CN116302973A (en) 2023-02-15 2023-02-15 Avionics task software host interface test and simulation system

Country Status (1)

Country Link
CN (1) CN116302973A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117459613A (en) * 2023-12-22 2024-01-26 浙江国利信安科技有限公司 Method for playing back data, electronic device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117459613A (en) * 2023-12-22 2024-01-26 浙江国利信安科技有限公司 Method for playing back data, electronic device and storage medium
CN117459613B (en) * 2023-12-22 2024-03-19 浙江国利信安科技有限公司 Method for playing back data, electronic device and storage medium

Similar Documents

Publication Publication Date Title
US6334158B1 (en) User-interactive system and method for integrating applications
US7565443B2 (en) Common persistence layer
US7237230B2 (en) System and method for generating data sets for testing embedded systems
US20060248145A1 (en) System and method for providing various levels of reliable messaging between a client and a server
CA2634839C (en) Server for communicating with multi-mode devices using multi-mode applications
US9277033B2 (en) Server for communicating with multi-mode devices using multi-mode applications
US8732652B2 (en) System and method for creating multi-mode applications
US20110010613A1 (en) System and method for building mixed mode execution environment for component applications
WO2006091408A2 (en) System and method for testing devices
CA2604935A1 (en) System and method for creating a mapping document for binding messages between an application and an associated backend server
US20080229274A1 (en) Automating Construction of a Data-Source Interface For Component Applications
JP3887672B2 (en) Protocol stack generation apparatus and method
CN114880249B (en) Aerospace measurement and control comprehensive test software framework system and operation method
CN116302973A (en) Avionics task software host interface test and simulation system
CN108804100B (en) Method and device for creating interface element, storage medium and mobile terminal
CN110058900B (en) Data transmission service system based on pluggable component framework
CA2635172C (en) Device for communicating in multiple modes using multi-mode applications
CA2635173C (en) System and method for creating multi-mode applications
US9425988B2 (en) Device for communicating in multiple modes using multi-mode applications
CN115277637B (en) Multi-domain name item management platform based on micro front-end architecture and high aggregation deployment method
AU2002247399B2 (en) Development and testing system and method
CA2544010C (en) System and method for providing various levels of reliable messaging between a client and a server
CN116775056A (en) DDS cluster simulation method and device, electronic equipment and medium
Foss et al. An Open Design and Implementation for the Enabler Component of the Plural Node Architecture of Professional Audio Devices
Magee et al. The CONIC Support Environment for Distributed Systems

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