Three-self inertial unit ground test system and method, storage medium and device based on MFC framework
Through the modular design and data logic separation based on the MFC framework, the repetitive development and high maintenance of the ground testing software of the three self-inertia groups are solved, the unified style and efficient development of the software are realized, and the adaptability and reuse rate of the test system are improved.
Patent Information
- Application Number
- CN202310021012.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-06
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2043-01-06
AI Technical Summary
There are large differences between the existing three-self-inert group ground testing software models, resulting in repeated development and high maintenance costs. The software users need to adapt to different styles, lacking uniformity and efficiency.
The three-self-inertial group ground test system based on the MFC framework is adopted, including parameter input, initialization, periodic data acquisition, data analysis, data calculation and calculation result output modules. The data processing logic is separated from the underlying communication logic, adopts modular design and custom message transmission, and supports multiple communication interfaces.
It improves the efficiency and quality of software development, reduces maintenance costs, realizes the unified style and process of different models of testing software, and enhances software reuse rate and adaptability.
Smart Images

Figure CN116302949B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a three-self inertial unit ground test system and a test method, and particularly to a three-self inertial unit ground test system and method, a storage medium and a device based on the MFC framework. Background Art
[0002] The three-self inertial unit ground test software runs in the test industrial control computer to conduct ground unit tests on the three-self inertial unit; in the past, different models of ground test software had different requirements and were developed by different developers, resulting in large differences in software architecture and interface design for the ground test software of different three-self inertial units. The workload of software developers was repeated, software users needed to adapt to ground test software with different styles, and the maintenance cost of each software was high; although different three-self inertial units had different requirements for ground test software, there were many similarities or similarities in communication methods, test methods, test processes, etc. Summary of the Invention
[0003] The purpose of the present invention is to solve the technical problems of repeated development and high maintenance costs of the current three-self inertial unit ground test software, and to propose a three-self inertial unit ground test system and method, a storage medium and a device based on the MFC framework to reduce repetitive work, improve software development efficiency and software reliability, reduce software maintenance costs, summarize and refine the test processes of multiple three-self inertial units and the design process of corresponding ground test software, form a general framework for the three-self inertial unit ground test software based on the MFC framework, separate the data processing logic from the underlying communication logic, improve software reuse rate, ultimately reduce repetitive work, improve development efficiency and software quality, and unify the style and process of test software. MFC (Microsoft Foundation Classes) is a class library provided by Microsoft, which encapsulates the Windows API in the form of C++ classes and includes an application framework to reduce the workload of developers.
[0004] The technical solution provided by the present invention is as follows:
[0005] A three-self inertial unit ground test system based on the MFC framework, characterized in that it includes a parameter input module, an initialization module, a periodic data acquisition module, a data parsing module, a data calculation module and a calculation result output module built based on the MFC framework;
[0006] The parameter input module includes a plurality of parameter input sub-modules corresponding to each test item for setting the parameters required for the test;
[0007] The initialization module includes multiple initialization sub-modules corresponding to each test item. The initialization sub-module initializes the data file, the parameters used in the calculation process of each corresponding test item, and the communication interface according to the parameters set by the corresponding parameter input sub-module;
[0008] The periodic data acquisition module includes multiple periodic data acquisition sub-modules corresponding to each test item. Each periodic data acquisition sub-module performs data acquisition based on the initialized data file, parameters, and communication interface of the initialization sub-module; The periodic data acquisition sub-module includes a data acquisition start unit and a data acquisition end unit; The data acquisition start unit is used for acquisition start and data acquisition, and the data acquisition end unit is used to end the data acquisition process after acquiring multiple groups of data for the preset number of cycles;
[0009] The data parsing module is used to synchronously receive the data acquired by the periodic data acquisition module and parse it to judge the product status of the data report;
[0010] The data calculation module receives the data that meets the preset number of groups acquired by the periodic data acquisition module, performs calculations, and outputs the calculation results to the calculation result output module; The data calculation module includes multiple data calculation sub-modules, and each data calculation sub-module corresponds to the data processing logic of each test item;
[0011] Each data calculation sub-module can be connected to each different periodic data acquisition sub-module, which is used to realize the adaptation of the data calculation sub-module to different periodic data acquisition sub-modules, and realize the switching of the periodic data acquisition sub-module under the premise of the same data calculation sub-module to adapt to different communication interfaces;
[0012] The calculation result output module is used to output the calculation results in the required form.
[0013] Further, the periodic data acquisition sub-module further includes a data acquisition pause unit and a data acquisition resume unit; The data acquisition pause unit and the data acquisition resume unit are respectively used to control the pause and resume of data acquisition;
[0014] The data parsing module is used to synchronously receive the data acquired by the data acquisition start unit and the data acquisition resume unit.
[0015] Further, a write data queue cache is established during the storage of the original data acquired by the data acquisition start unit and the data acquisition resume unit, which is used to avoid frequent access to the hard disk and reduce the CPU occupancy rate;
[0016] The technology of sending custom windows messages is adopted in the transmission process of each group of data acquired by the periodic data acquisition sub-module to the data parsing module, and a queue cache mechanism is established during the transmission process.
[0017] Furthermore, it further includes a view module, which includes a plurality of view sub-modules corresponding to each test item. The view sub-module is used to enable each test item to have its own independent view interface, and the view interface adopts a modular design;
[0018] The view sub-module adopts a flow layout algorithm to adapt the view interface to the screen, so as to ensure that the software is applicable to various screen sizes without losing usability;
[0019] The calculation result output module performs real-time plotting according to the calculation result and displays it on the view interface for viewing the data trend of the test result.
[0020] Furthermore, the communication interface includes a serial port, a 1553b board, a CAN bus interface or a network port;
[0021] The data processing logics of the data corresponding to each test item of each data calculation sub-module are implemented by using the virtual function mechanism of C++ for easy modification and customization.
[0022] The present invention also provides a three-self inertial group ground test method based on the MFC framework, which is characterized in that the above-mentioned three-self inertial group ground test system based on the MFC framework is adopted, and it includes the following steps:
[0023] S1. Based on the parameter input sub-module corresponding to the current test item, input the parameters corresponding to the current test item;
[0024] S2. Switch the view interface to the view corresponding to the current test item;
[0025] S3. According to the parameters input in step S1, perform initialization through the initialization sub-module corresponding to the current test item. The initialization includes initializing the data file, the parameters used in the calculation process of each corresponding test item, and the communication interface;
[0026] S4. According to the communication logic required by the current test item, select the periodic data acquisition sub-module corresponding to the corresponding communication interface. The periodic data acquisition sub-module acquires multiple groups of data according to the acquisition period and transmits them to the data parsing module, and the data parsing module synchronously parses each group of acquired data;
[0027] The data parsing module judges according to the product status reported by the parsed data frame. If the product status reported by the data frame is incorrect, the test ends; if the product status reported by the data frame is normal, it enters step S5;
[0028] S5. After each group of data is parsed, it is passed to the data calculation sub-module corresponding to the current test item, and the data calculation sub-module performs data calculation according to the data processing logic corresponding to the current test item; the calculation result is output on the view interface through the calculation result output module;
[0029] S6. Determine whether the current test item requires switching the communication logic. If it is necessary to switch the communication logic, return to step S1; if it is not necessary to switch the communication logic, the test of the current test item ends.
[0030] S7. Use the same operations as in steps S1 - S6 to test other test items of the three-self inertial unit, and obtain the test results of the three-self inertial unit.
[0031] Further, in step S1, the parameters corresponding to the current test item include one or more of the acquisition period, the number of acquisition groups, longitude and latitude, and altitude.
[0032] In step S3, the communication interface includes a serial port, a 1553b board, a CAN bus interface, or a network port.
[0033] Further, in step S4, the specific process that the periodic data acquisition sub-module acquires multiple groups of data according to the acquisition period and transmits them to the data parsing module is as follows:
[0034] Each group of data acquired by the periodic data acquisition sub-module is transmitted to the data parsing module by using the technology of sending custom windows messages, and a queue caching mechanism is established during the transmission process.
[0035] The present invention also provides a computer storage medium, on which a computer program is stored. The special feature is that: when the computer program is executed by a processor, the steps of the above-mentioned three-self inertial unit ground test method based on the MFC framework are realized.
[0036] The present invention also provides a computer device, including a processor, a memory connected to the processor, and a computer program that can run on the processor. The special feature is that: when the processor executes the computer program, the steps of the above-mentioned three-self inertial unit ground test method based on the MFC framework are realized.
[0037] The beneficial effects of the present invention:
[0038] 1. The present invention designs a general system for three-self inertial unit test items based on the MFC framework, and tests each test item through the parameter input sub-module, initialization sub-module, periodic data acquisition sub-module, and data calculation sub-module corresponding to each test item, improving the software reuse rate, ultimately reducing repetitive work, improving development efficiency and software quality, and unifying the style of test software.
[0039] 2. Each test item in the present invention corresponds to a data calculation sub-module, that is, the corresponding data processing logic; each periodic data acquisition sub-module corresponds to a different communication interface, that is, the corresponding underlying communication channel. The present invention isolates the data processing logic from the underlying communication channel, enabling testing of the same test item under different communication interfaces by switching different underlying communication channels (periodic data acquisition sub-modules) without changing the data processing logic (data calculation sub-module), thereby improving the test efficiency and test adaptability.
[0040] 3. The views of each test item are independent, ensuring the independence of the isolation test function of each test item, greatly reducing the coupling between different test functions. When testing, different test item frameworks are started to switch the views, thereby ensuring the independence of different unit test items during software design, reducing the coupling, enabling parallel development of different test items, improving the development efficiency, and ensuring the development quality.
[0041] 4. The present invention sets up sub-modules corresponding to the test items, ensuring that the general framework supports differentiated test requirements and facilitating the expansion of test functions.
[0042] 5. The view interface is adapted to the screen, ensuring that the software is applicable to various screen sizes without losing usability. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 It is a schematic diagram of a three-self inertial group ground test system based on the MFC framework;
[0044] Figure 2 It is a flowchart of the three-self inertial group ground test method based on the MFC framework of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0045] See Figure 1, this embodiment discloses a three-self inertial unit ground test system based on the MFC framework. The system includes a parameter input module, an initialization module, a periodic data acquisition module, a data parsing module, a data calculation module, a calculation result output module, and a view module built based on the MFC framework. This embodiment uses the MFC framework as the general framework for the three-self inertial unit ground test software because currently, the software implementations of various types of three-self inertial unit products are based on the MFC framework, and the MFC framework is adopted to maintain continuity. The parameter input module includes multiple parameter input sub-modules corresponding to each test item, which are used to set the parameters required for the test. The parameters include one or more of the acquisition period, the number of acquisition groups, longitude and latitude, and altitude. The initialization module includes multiple initialization sub-modules corresponding to each test item. The initialization sub-module initializes the data file, the parameters used in the calculation process of each corresponding test item, and the communication interface according to the parameters set by the corresponding parameter input sub-module. The communication interface includes a serial port, a 1553b board, a CAN bus interface, or a network port. The serial port includes different serial ports such as 232 and 422.
[0046] The periodic data acquisition module includes multiple periodic data acquisition sub-modules corresponding to each test item. Each periodic data acquisition sub-module performs data acquisition according to the initialized data file, parameters, and communication interface of the initialization sub-module. The periodic data acquisition sub-module includes a data acquisition start unit, a data acquisition pause unit, a data acquisition resume unit, and a data acquisition end unit. The data acquisition start unit is used for acquisition start and data acquisition. The data acquisition pause unit and the data acquisition resume unit are respectively used to control the pause and resume of data acquisition. The data acquisition end unit is used to end the data acquisition process after acquiring multiple groups of data of the preset number of cycles.
[0047] In the process of transmitting each group of data collected by the periodic data acquisition sub-module to the data parsing module, the technology of sending custom windows messages is adopted, and a queue caching mechanism is established during the transmission process. The data parsing module is used to synchronously receive the data collected by the data acquisition start unit and the data acquisition resume unit and perform parsing to judge the product status of the data report. The original data collected by the data acquisition start unit and the data acquisition resume unit is saved, and a write data queue cache is established during the saving process to effectively utilize the receiving time gap for data persistence, avoid frequent access to the hard disk, and reduce the CPU occupancy rate.
[0048] The data calculation module receives the data that meets the preset number of groups collected by the periodic data acquisition module, performs calculations, and outputs the calculation results to the calculation result output module; the data calculation module includes multiple data calculation sub-modules, and each data calculation sub-module corresponds to the data processing logic of each test item, and the data processing logic of each test item is implemented using the virtual function mechanism of C++ to facilitate modification and customization; each data calculation sub-module can be connected to each different periodic data acquisition sub-module to implement switching of the communication interface of the periodic data acquisition sub-module without changing the data processing logic of the test item corresponding to the data calculation sub-module, so as to switch different communication logics.
[0049] The view module includes multiple view sub-modules corresponding to each test item. The view sub-module is used to give each test item its own independent view interface, and the view interface is designed modularly; the view sub-module adopts a flow layout algorithm to adapt the view interface to the screen, so as to ensure that the software is applicable to various screen sizes without losing usability.
[0050] The calculation result output module is used to output the calculation results in the required form. The calculation result output module performs real-time plotting based on the calculation results and displays them on the view interface to view the data trends of the test results (for example, accelerometer, gyroscope, temperature control).
[0051] The three-self inertial group ground test system based on the MFC framework provided in this embodiment also has a newly added log function for the framework, which can record test items, test time, etc., for convenient reference.
[0052] See Figure 2 , the test method of the above three-self inertial group ground test system based on the MFC framework includes the following steps:
[0053] S1. Based on the parameter input sub-module corresponding to the current test item, input the parameters corresponding to the current test item, and the parameters include one or more of the acquisition period, the number of acquisition groups, longitude, latitude, and altitude.
[0054] S2. Switch the view interface to the view corresponding to the current test item.
[0055] S3. According to the parameters input in step S1, perform initialization through the initialization sub-module corresponding to the current test item. The initialization includes initializing the data file, the parameters used in the calculation process of each corresponding test item, and the communication interface; the communication interface includes a serial port, a 1553b board, a CAN bus interface, or a network port.
[0056] S4. According to the communication logic required by the current test item, select the periodic data acquisition sub-module corresponding to the corresponding communication interface. The periodic data acquisition sub-module acquires multiple groups of data according to the acquisition period and transmits them to the data parsing module. Specifically, the transmission of each group of data acquired by the periodic data acquisition sub-module to the data parsing module is carried out by using the technology of sending custom Windows messages, and a queue caching mechanism is established during the transmission process; the data parsing module synchronously parses each group of acquired data. In this embodiment, the acquisition period refers to the acquisition period duration input when the parameters are input, and multiple groups of data are based on the required number of input acquisition groups. For example, if the acquisition period is set to 1 second, then each time the data within 1 second is acquired is a group. If 50 groups are set, then after acquiring the data within 1 second, calculations are performed, and after acquiring 50 groups of data, summary calculations are carried out.
[0057] Taking the selection of the serial port as the corresponding communication interface for data acquisition as an example:
[0058] When the current test item uses the serial port as the communication interface, the data acquisition start unit needs to create and start a data acquisition thread, and in this thread, the serial port data is read by calling the Windows API WriteFile; for the serial port data acquisition, the data acquisition pause unit switches the thread execution to the spin state to stop reading the serial port data; for the serial port data acquisition, the data acquisition resume unit ends the thread spin state; the data acquisition end unit ends the data acquisition thread. The data calculation sub-module corresponding to the current test item can obtain the test results of the current test item under the communication logic of the 1553b board card by only switching the periodic data acquisition sub-module to the communication logic of the 1553b board card without adjusting the data processing logic of the data calculation sub-module.
[0059] The data parsing module judges according to the product status reported by the parsed data frame. If the product status reported by the data frame is incorrect, the test ends; if the product status reported by the data frame is normal, go to step S5; in this embodiment, the parsed data during the test process is monitored for out-of-tolerance, and each parameter with an out-of-tolerance event is classified into three levels: Normal, Warning, and Error according to the severity level for setting ranges. At the same time, the start time and end time of each test are recorded through the logging function to facilitate understanding the progress of the test; for each out-of-tolerance event of each index, there is a designed indicator light for indication, showing green when it is Normal, yellow when it is Warning, and red when it is Error.
[0060] S5. After each group of data is parsed, it is passed to the data calculation sub-module corresponding to the current test item, and the data calculation sub-module performs data calculations according to the data processing logic corresponding to the current test item; the calculation results are output on the view interface through the calculation result output module.
[0061] S6. Determine whether the current test item requires switching the communication logic. If it is necessary to switch the communication logic, return to step S1 until the current test item does not require switching the communication logic, and the test of the current test item ends; if it does not require switching the communication logic, the test of the current test item ends.
[0062] Take the data acquisition with the switched corresponding communication interface being the 1553b board as an example:
[0063] For the current test item using the 1553b board as the communication interface, for the data acquisition start unit with respect to the 1553b, it is necessary to switch the board to the active mode and register an interrupt callback function. When the board acquires the set number of data groups, this callback function will be called, and in this function, the application layer interface of the board is called to read the data; for the data acquisition pause unit with respect to the 1553b, the board is switched back from the active mode to the BC working mode; the data acquisition resume unit switches the board from the BC mode back to the active mode; the data acquisition end unit switches the board from the active mode back to the BC mode; similarly, for the data calculation sub-module corresponding to the current test item, without adjusting the data processing logic of the data calculation sub-module, only the communication logic of the periodic data acquisition sub-module is switched to the serial port to obtain the test result of the current test item under the communication logic of the serial port.
[0064] S7. Use the same operations as in steps S1 - S6 to test other test items of the three-self inertial unit and obtain the test results of the three-self inertial unit.
[0065] In this embodiment, a computer-readable storage medium is further provided, on which a computer program capable of implementing the above method is stored. In other possible implementation manners, the above method can be implemented in the form of a program product, which includes program code. When the program product runs on a terminal device, the program code is used to cause the terminal device to execute the steps of the various embodiments described in the above "Three-self Inertial Unit Ground Test Method Based on the MFC Framework".
[0066] According to the program product for implementing the above method in this embodiment, it can use a portable compact disc read-only memory (CD-ROM) and include program code, and can run on a terminal device, such as a personal computer. However, the program product of this embodiment is not limited to this. The readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, device, or component.
[0067] The program product may adopt any combination of one or more readable media. The readable media may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the readable storage medium (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0068] The computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries the readable program code. Such a propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The readable signal medium may also be any readable medium other than the readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device.
[0069] The program code contained on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination of the above.
[0070] In this embodiment, a computer device capable of implementing the above-mentioned three-self inertial group ground test method based on the MFC framework is also provided.
[0071] The components of the computer device may include but are not limited to: at least one processing unit, at least one storage unit, a bus connecting different system components (including the storage unit and the processing unit), and a display unit.
[0072] The computer device may also communicate with one or more external devices (such as a keyboard, a pointing device, a Bluetooth device, etc.), and may also communicate with one or more devices that enable a user to interact with the computer device, and / or communicate with any device that enables the computer device to communicate with one or more other computing devices (such as a router, a modem, etc.). Such communication may be carried out through an input / output (I / O) interface, and the computer device may also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter.
[0073] From the description of the above embodiments, those skilled in the art can easily understand that the embodiments described herein can be implemented by software or by a combination of software and necessary hardware. Therefore, the technical solution according to this embodiment can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on the network, including several instructions to enable a computing device (such as a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to this embodiment.
Claims
1. A three-self inertial unit ground test system based on the MFC framework, characterized in that: It includes a parameter input module, an initialization module, a periodic data acquisition module, a data parsing module, a data calculation module, and a calculation result output module built based on the MFC framework; The parameter input module includes multiple parameter input sub-modules corresponding to each test item, and is used to set the parameters required for the test; The initialization module includes multiple initialization sub-modules corresponding to each test item. The initialization sub-module initializes the data file, the parameters used in the calculation process of each corresponding test item, and the communication interface according to the parameters set by the corresponding parameter input sub-module; The periodic data acquisition module includes multiple periodic data acquisition sub-modules corresponding to each test item. Each periodic data acquisition sub-module performs data acquisition according to the initialized data file, parameters, and communication interface of the initialization sub-module; The periodic data acquisition sub-module includes a data acquisition start unit and a data acquisition end unit; The data acquisition start unit is used for acquisition start and data acquisition, and the data acquisition end unit is used to end the data acquisition process after acquiring multiple groups of data of the preset number of cycles; The data parsing module is used to synchronously receive the data acquired by the periodic data acquisition module and perform parsing to judge the product state of the data report; The data calculation module receives the data that meets the preset number of groups acquired by the periodic data acquisition module, performs calculations, and outputs the calculation results to the calculation result output module; The data calculation module includes multiple data calculation sub-modules, and each data calculation sub-module corresponds to the data processing logic of each test item; The data calculation sub-module is connected to each different periodic data acquisition sub-module, and is used to realize the adaptation of the data calculation sub-module and different periodic data acquisition sub-modules, and realize the switching of the periodic data acquisition sub-module under the premise of the same data calculation sub-module to adapt to different communication interfaces; The calculation result output module is used to output the calculation results in the required form; It further includes a view module. The view module includes multiple view sub-modules corresponding to each test item. The view sub-module enables each test item to have its own independent view interface, and the view interface adopts a modular design; The view sub-module adopts a flow layout algorithm to adapt the view interface to the screen, so as to ensure that the software is applicable to various screen sizes without losing usability; The calculation result output module performs real-time plotting according to the calculation results and displays them on the view interface for viewing the data trend of the test results.
2. The three-self inertial group ground test system based on the MFC framework according to claim 1, characterized in that: The periodic data acquisition sub-module further includes a data acquisition pause unit and a data acquisition resume unit; the data acquisition pause unit and the data acquisition resume unit are respectively used to control the pause and resume of data acquisition; The data parsing module is used to synchronously receive the data acquired by the data acquisition start unit and the data acquisition resume unit.
3. The three-self inertial group ground test system based on the MFC framework according to claim 2, characterized in that: When the original data collected by the data acquisition startup unit and the data acquisition recovery unit is saved, a write data queue cache is established to avoid frequent access to the hard disk and reduce the CPU occupancy rate; During the transmission of each group of data collected by the periodic data acquisition sub-module to the data parsing module, the technology of sending custom Windows messages is adopted, and a queue cache mechanism is established during the transmission process.
4. The three-self inertial group ground test system based on the MFC framework according to claim 3, characterized in that: The communication interface includes a serial port, a 1553b board, a CAN bus interface or a network port; The data processing logic of each test item corresponding to each data calculation sub-module is implemented by using the virtual function mechanism of C++ to facilitate modification and customization.
5. A three-self inertial unit ground test method based on the MFC framework, characterized in that, Using the three-self inertial group ground test system based on the MFC framework according to any one of claims 1-4, includes the following steps: S1. Based on the parameter input sub-module corresponding to the current test item, input the parameters corresponding to the current test item; S2. Switch the view interface to the view corresponding to the current test item; S3. According to the parameters input in step S1, perform initialization through the initialization sub-module corresponding to the current test item. The initialization includes initializing the data file, the parameters used in the calculation process of each corresponding test item, and the communication interface; S4. According to the communication logic required by the current test item, select the periodic data acquisition sub-module corresponding to the corresponding communication interface. The periodic data acquisition sub-module collects multiple groups of data according to the acquisition period and transmits them to the data parsing module, and the data parsing module synchronously parses each group of collected data; The data parsing module judges according to the product status reported by the parsed data frame. If the product status reported by the data frame is incorrect, the test ends; if the product status reported by the data frame is normal, then enter step S5; S5. After each group of data is parsed, it is passed to the data calculation sub-module corresponding to the current test item. The data calculation sub-module performs data calculation according to the data processing logic corresponding to the current test item; the calculation result is output on the view interface through the calculation result output module; S6. Judge whether the current test item needs to switch the communication logic. If it needs to switch the communication logic, return to step S1; if it does not need to switch the communication logic, the test of the current test item ends; S7. Adopt the same operations as in steps S1-S6 to test other test items of the three-self inertial group to obtain the test results of the three-self inertial group.
6. The three-self inertial group ground test method based on the MFC framework according to claim 5, characterized in that: In step S1, the parameters corresponding to the current test item include one or more of the acquisition period, the number of acquisition groups, longitude, latitude, and altitude; In step S3, the communication interface includes a serial port, a 1553b board, a CAN bus interface or a network port.
7. The three-self inertial group ground test method based on the MFC framework according to claim 6, characterized in that: In step S4, the periodic data acquisition sub-module collects multiple groups of data according to the acquisition period and transmits them to the data parsing module specifically as: The data of each group collected by the periodic data acquisition sub-module is transmitted to the data parsing module by using the technology of sending custom Windows messages, and a queue caching mechanism is established during the transmission process.
8. A computer storage medium, on which a computer program is stored, characterized in that: When the computer program is executed by the processor, the steps of the three-self inertial group ground test method based on the MFC framework described in any one of claims 5-7 are implemented.
9. A computer device, comprising a processor, a memory connected to the processor, and a computer program that can run on the processor, characterized in that: When the processor executes the computer program, the steps of the three-self inertial group ground test method based on the MFC framework described in any one of claims 5-7 are implemented.
Citation Information
Patent Citations
Power distribution dispatching master station integrated test framework and method
CN108710566A
Formalized test model modeling method and system, computer and storage medium
CN114911715A