A test device for airborne software online loading interface protocol

A test device with a simulation computer and dedicated software simulates the online loading interface protocol of aircraft controllers, addressing the lack of effective testing environments and ensuring software quality by verifying normal and abnormal conditions.

CN114356753BActive Publication Date: 2024-12-17CHENGDU AIRCRAFT DESIGN INST OF AVIATION IND CORP OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111533924.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-15
Publication Date
2024-12-17
Estimated Expiration
2041-12-15

AI Technical Summary

Technical Problem

There is a lack of an effective testing environment for the online loading interface protocol of aircraft onboard software, which is crucial for ensuring the correct implementation and consistency of online loading functions across various controllers.

Method used

A test device is provided with a simulation computer, bus cable, and bus data recording and analysis device to simulate and test the online loading interface protocol of controllers at all levels, utilizing a 1394 bus emulation and dedicated test software for comprehensive testing.

Benefits of technology

The solution enables thorough testing of online software loading functions, verifying normal and abnormal situations, thereby ensuring software quality and filling the gap in the testing environment for airborne software.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114356753B_ABST
    Figure CN114356753B_ABST
Patent Text Reader

Abstract

The present application provides an airborne software online loading interface protocol test configuration, comprising: a simulation computer, provided with special test software; wherein the special test software has a simulation online loading function; a bus cable, connected to the simulation computer; a bus data recording and analysis device, connected to the bus cable; wherein the bus data recording and analysis device is used to receive data on the bus network and display the data; a controller under test, connected to the bus cable; the present application can test the online loading software function of aircraft controllers at all levels, and verify whether the online loading software interface protocol is perfect and closed in handling normal and abnormal situations, thereby filling the gap in the airborne software online loading interface protocol test environment and ensuring software quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of aviation measurement and control technology, and in particular, relates to a testing device for an airborne software online loading interface protocol. Background Art

[0002] The aircraft system onboard software in-situ loading technology refers to obtaining the software target code through the relevant bus under the control of the controller and completing the online loading of the onboard software of each level of controller itself.

[0003] Among them, the first-level controller completes the processing of online loading related requests and controls the loading process of itself and the second-level controller. Under the guidance of the first-level controller, the second-level controller obtains the software target code through the flight tube 1394 bus to complete its own software loading.

[0004] The on-board software online loading function is still undergoing functional updates and upgrades. To ensure the correct implementation of the aircraft's online loading function and the consistency of the online loading interface protocol with expectations, it is necessary to test the online loading software functions and interface protocols of controllers at all levels, but there is a lack of an effective testing environment.

[0005] The present application innovatively proposes an online loading interface protocol testing environment based on 1394 bus, which can support online loading interface protocol testing of controllers at all levels. Summary of the invention

[0006] In view of the above technical problems, the present application provides a test device for an onboard software online loading interface protocol, comprising:

[0007] A simulation computer is provided with special test software; wherein the special test software has a simulation online loading function;

[0008] A bus cable connected to the simulation computer;

[0009] A bus data recording and analysis device connected to the bus cable; wherein the bus data recording and analysis device is used to receive data on the bus network and display the data;

[0010] The controller under test is connected with the bus cable.

[0011] Preferably, the simulation computer has a bus simulation board;

[0012] Wherein, the bus cable is connected to the simulation computer through the bus simulation board.

[0013] Preferably, the controller under test is provided with a basic operating environment; the basic operating environment comprises a dedicated power supply and a disconnect box.

[0014] Preferably, the bus emulation card comprises a 1394 bus emulation card.

[0015] Preferably, the bus cable comprises a 1394 bus cable.

[0016] Preferably, the bus emulation card and the bus cable match each other.

[0017] Preferably, the dedicated test software also has the functions of 1394 simulation board configuration, data transmission and reception, bus configuration table analysis, ICD loading, user interaction and fault injection.

[0018] Preferably, the bus simulation board has an RN mode and a CC mode.

[0019] Beneficial technical effects of this application:

[0020] This application can test the online software loading function of aircraft controllers at all levels, verify whether the online software loading interface protocol handles normal and abnormal situations in a complete and closed manner, fill the gap in the test environment for the online loading interface protocol of airborne software, and ensure software quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 A schematic diagram of a testing device for an airborne software online loading interface protocol provided in an embodiment of the present application. DETAILED DESCRIPTION

[0022] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0023] See also Figure 1 ,This application provides an online loading interface protocol test environment based on 1394 bus, establishes the hardware configuration required for the test, and loads dedicated simulation software online to simulate the online loading software functions of various levels of controllers and various fault injection functions, which is used to support the online loading software functions and interface protocol dual V tests of the tested controller, thereby improving the test coverage.

[0024] In this application, an online loading interface protocol test environment based on 1394 bus is implemented, and the steps are as follows:

[0025] a) Establish the hardware conditions required for the test, including the simulation computer, 1394 simulation board, 1394 bus cable, the controller under test and its necessary working environment, and bus data recording and analysis equipment. The 1394 simulation board is placed in the simulation computer and connected to the controller under test through the 1394 bus cable. The controller under test is provided with power supply, IO interface, etc. by its necessary working environment. The bus data recording and analysis equipment is connected to the connection environment between the controller under test and the simulation computer through the 1394 bus cable.

[0026] b) Establish the software conditions required for the test. The software is a dedicated test software for online loading function, which has 1394 simulation board configuration, data reception and transmission, bus configuration table analysis, interface control document (ICD) loading, online loading function simulation, user interaction interface and fault injection functions.

[0027] c) According to the type of controller under test, load the corresponding bus configuration table and ICD, complete the sending and receiving attribute settings of the data packet on the bus, including message ID, packet size, sending offset, redundant branch, etc., complete the specific interface definition settings of the data packet, including byte offset, word offset, signal bit length, signal name, signal ID, data type, initial value and other information.

[0028] d) For the test of the primary controller, the dedicated test software for the online loading function runs in RN mode, which can simulate the interaction between a single or multiple secondary controllers. The software determines the redundancy and bus of the secondary controllers simulated by each node of the 1394 simulation board by identifying the STOF packet received on the 1394 bus, and transmits and receives bus data according to the loaded bus configuration table and ICD. In RN mode, the online loading function simulation includes mode switching, command response, loading mode selection, image erase flag management, and fault injection. The software performs automatic or manual mode switching according to the selected command response mode. According to the selected loading mode, the simulation is solidified after the transmission is completed or solidified while transmitting, and can set execution / non-execution for each stage of the loading process, update / non-update for single or multiple data, and all simulated data can be modified. The bus data generated during the test is recorded by the bus data recording and analysis equipment. By analyzing the interaction data between the primary controller and the simulation software, the online loading function of the primary controller is verified.

[0029] e) For the test of the secondary controller, the dedicated test software for the online loading function runs in CC mode to simulate the interaction between the primary controller and the secondary controller. By manually selecting the redundancy and bus corresponding to each node of the 1394 simulation board, the port configuration of the node is completed, the STOF packet is sent, and the bus data is sent and received according to the loaded bus configuration table and ICD. In CC mode, the online loading function simulation includes command sending, mode switching, status display, and fault injection. According to the manually selected entry, execution loading or exit operation, the software initiates corresponding instructions to the secondary controller and automatically completes its own mode switching. According to the selected loading method, the software sets update / no update for single or multiple data during the loading process, and all simulated data can be modified. The status display interface shows the system mode status, loading status and progress, and image erase status of the primary and secondary controllers. The bus data generated during the test is recorded by the bus data recording and analysis equipment. By analyzing the interaction data between the secondary controller and the simulation software, the online loading function of the secondary controller is verified.

[0030] It should be noted that this application can test the online software loading function of the aircraft controllers at all levels, verify whether the online software loading interface protocol handles normal and abnormal situations perfectly and closed, fill the gap in the airborne software online loading interface protocol test environment, and ensure the software quality. In addition, this application has been used for the dual V test of the online loading software of the first and second level controllers of a certain type of aircraft.

[0031] The specific implementation of the present invention will be further described below in conjunction with the accompanying drawings.

[0032] The hardware connection diagram of the onboard software online loading interface protocol test environment of the present invention is as follows Figure 1 As shown, the specific implementation steps are as follows:

[0033] a) According to Figure 1 The hardware configuration shown builds a test environment and simulates a computer running dedicated test software for online loading functions.

[0034] b) Load the bus configuration table and ICD related to the controller under test, and complete the setting of the sending and receiving properties of the data packet on the bus.

[0035] c) For the test of the primary controller, the dedicated test software for the online loading function runs in RN mode to simulate the interaction between a single or multiple secondary controllers and the primary controller. The software determines the redundancy and bus of the secondary controllers simulated by each node of the 1394 simulation board by identifying the STOF packet received on the 1394 bus, and sends and receives bus data according to the loaded bus configuration table and ICD. Manually select the instruction response mode, and set the simulation software to switch modes automatically or manually. Manually select the RN loading mode, solidify while caching or solidify after caching. Set execution / no execution at each stage of the loading process, and set update / no update for the loading key data to test the response of the primary controller online loading software interface protocol to normal and abnormal situations.

[0036] d) For the test of the secondary controller, the dedicated test software for the online loading function runs in CC mode to simulate the interaction between the primary controller and the secondary controller. By manually selecting the redundancy and bus corresponding to each node of the 1394 simulation board, the port configuration of the node is completed, the STOF packet is sent, and the bus data is sent and received according to the loaded bus configuration table and ICD. In CC mode, manually selected entry, execution loading or exit operations are initiated to initiate corresponding instructions to the secondary controller, and the software automatically completes its own mode switching. Manually set the data update / not update in the transmission phase of the loading process, and set faults for key loading data to test the response of the secondary controller online loading software interface protocol to normal and abnormal conditions.

[0037] The above is only a specific embodiment of the present invention, and the present invention is described in detail. The unexplained part is a conventional technology. However, the protection scope of the present invention is not limited to this. Any changes or substitutions that can be easily thought of by any technician familiar with the technical field within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. The protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A test device for an onboard software online loading interface protocol, characterized in that: include: The simulation computer is provided with special test software; wherein the special test software has a simulation online loading function; the simulation computer also has a 1394 simulation board card, and the 1394 simulation board card has an RN mode and a CC mode; A bus cable connected to the simulation computer; wherein the bus cable comprises a 1394 bus cable; A bus data recording and analysis device connected to the bus cable; wherein the bus data recording and analysis device is used to receive data on the bus network and display the data; A controller under test is connected to the bus cable; wherein the controller under test includes a primary controller and a secondary controller; Among them, for the test of the primary controller, the dedicated test software for the online loading function runs in RN mode, simulating a single or multiple secondary controllers to interact with it. The software determines the redundancy and bus of the secondary controllers simulated by each node of the 1394 simulation board by identifying the STOF package received on the 1394 bus, and transmits and receives bus data according to the loaded bus configuration table and ICD; in RN mode, the online loading function simulation includes mode switching, command response, loading mode selection, image erase flag management and fault injection; the software performs automatic or manual mode switching according to the selected command response mode, and according to the selected loading mode, simulates solidification after transmission is completed or solidification during transmission, and sets execution / non-execution for each stage of the loading process, and updates / non-updates for single or multiple data, and can modify all simulated data; the bus data generated during the test is recorded by the bus data recording and analysis equipment, and the online loading function of the primary controller is verified by analyzing the interaction data between the primary controller and the simulation software; Among them, for the test of the secondary controller, the dedicated test software for the online loading function runs in CC mode to simulate the interaction between the primary controller and the secondary controller; by manually selecting the redundancy and bus corresponding to each node of the 1394 simulation board, the port configuration of the node is completed, the STOF package is sent, and the bus data is sent and received according to the loaded bus configuration table and ICD; in CC mode, the online loading function simulation includes command sending, mode switching, status display and fault injection; the software initiates corresponding instructions to the secondary controller according to the manually selected entry, execution loading or exit operation, and automatically completes its own mode switching; the software sets update / no update for single or multiple data during the loading process according to the selected loading method, and can modify all simulated data; the status display interface displays the system mode status, loading status and progress, and image erase status of the primary controller and the secondary controller; the bus data generated during the test is recorded by the bus data recording and analysis equipment, and the online loading function of the secondary controller is verified by analyzing the interaction data between the secondary controller and the simulation software.

2. The testing device according to claim 1, characterized in that: The controller under test is provided with a basic operating environment; the basic operating environment comprises a dedicated power supply and a disconnect box.

3. The testing device according to claim 1, characterized in that: The bus emulation card matches the bus cable.

4. The testing device according to claim 1, characterized in that: The dedicated test software also has the functions of 1394 simulation board configuration, data transmission and reception, bus configuration table analysis, ICD loading, user interaction and fault injection.