Measurement and control software development method and system based on data driving

Through the data-driven measurement and control software development method, data flow scheduling is used to judge forests and execution sequences, the problems of low versatility, flexibility and iterable reusability in the traditional development model are solved, and efficient software development and flexible online maintenance are achieved.

CN119759318APending Publication Date: 2025-04-04SCI RES TRAINING CENT FOR CHINESE ASTRONAUTS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411686898.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-22
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

The traditional aerospace measurement and control software development model has problems such as low versatility, flexibility, and low iterative reusability, as well as complex and risky online upgrade process.

Method used

The data-driven measurement and control software development method is adopted to generate the target measurement and control software by generating data-based configuration files and injecting them into the pre-constructed measurement and control software development model. This method uses the judgment forest and execution sequence as data flow scheduling mechanism to realize flexible configuration and online modification of the software.

Benefits of technology

It improves software development efficiency, enhances the flexibility of software on-road maintenance, simplifies the online upgrade process, reduces risks, and improves the universality and iterable reusability of the software.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119759318A_ABST
    Figure CN119759318A_ABST
Patent Text Reader

Abstract

The invention provides a measurement and control software development method and system based on data driving. The method comprises the steps that a datamation configuration file is generated according to the requirement of target measurement and control software; based on the datamation configuration file, injecting the datamation configuration file into a pre-constructed measurement and control software development model through a data injection mode, and generating target measurement and control software; the measurement and control software development model is constructed by analyzing external input data and main task demand characteristics and combining a judgment forest and an execution sequence. According to the method, the problems that in the prior art, universality, flexibility and iterative reusability are not high, and the system online upgrading process is complex and large in risk are solved by adopting a data injection mode and adopting a judgment forest and an execution sequence as a data flow scheduling mechanism, the software development efficiency is improved, and the system online upgrading efficiency is improved. And the flexibility of on-orbit maintenance of the software is enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of software development, and in particular to a data-driven measurement and control software development method and system. Background Art

[0002] With the rapid development of my country's aerospace industry, the scale, quantity and complexity of aerospace measurement and control software are also increasing, which puts higher demands on human, material and financial resources. Traditional aerospace measurement and control software is generally developed independently for each subsystem process, with people responsible for each subsystem. Programs developed under this model are often too customized, and have low versatility, flexibility and iterative reusability. In particular, on-orbit maintenance often requires system upgrades, and the online upgrade process is complex and risky. As the scale of tasks increases, the traditional development model gradually increases the number of developers, development cycle, and development funds. This is not in line with the current status of my country's aerospace team building and the need for efficient development. Summary of the invention

[0003] In order to solve the problems in the prior art that the universality, flexibility and iterative reusability of the measurement and control software development model are not high and the online upgrade process of the measurement and control software system is complex and risky, the present invention proposes a data-driven measurement and control software development method, which can not only improve the software development efficiency but also enhance the flexibility of software on-orbit maintenance, including:

[0004] Generate data configuration files according to the requirements of target measurement and control software;

[0005] Based on the digitized configuration file, the digitized configuration file is injected into a pre-built measurement and control software development model by data injection to generate target measurement and control software;

[0006] The measurement and control software development model is based on parsing external input data and main task requirement characteristics, and is constructed in combination with judgment forests and execution sequences.

[0007] Preferably, the construction of the measurement and control software development model includes:

[0008] Extract the main task requirement characteristics of various measurement and control software;

[0009] Based on the main task requirement characteristics, data definition tables with different requirement characteristics are obtained by using data of different types and sizes for definition;

[0010] Based on the data definition table with different demand characteristics and the external input data received by the execution bus, the analysis and processing results are scheduled and managed using the judgment forest and the execution sequence to obtain the measurement and control software development model.

[0011] Preferably, the data definition table of different demand characteristics includes:

[0012] Public cloud data definition table, collection and calculation parameter data definition table, data processing data definition table, communication processing data definition table and control processing data definition table.

[0013] Preferably, the data definition table based on the different demand characteristics and the external input data received by the execution bus are analyzed and processed, including:

[0014] Analyze and process the data definition table of the collected calculation parameters, including: address analysis, AD conversion, calculation formula and display position processing of the collected signal;

[0015] Analyze the data processing data definition table, including: average value calculation, sensor coefficient calibration, effective value judgment processing and verification processing;

[0016] Parse the communication processing data definition table and the external input data received by the execution bus, including: bus data query reception, bus data framing, and key data / telemetry data / backup data framing and sending;

[0017] Parse the control processing data definition table, including: decision tree processing, fault processing, time processing and sequence execution processing;

[0018] The data obtained by parsing the data definition table based on the different demand characteristics is stored in the public cloud data definition table, and the data in the public cloud data definition table is called according to the different parsing requirements.

[0019] Preferably, the scheduling and management of the parsing processing results by using the judgment forest and the execution sequence includes:

[0020] A judgment forest is obtained by combining multiple binary judgment trees, and the judgment forest is traversed by a post-order traversal algorithm, and a state judgment is performed on the activated judgment tree to obtain a current state judgment result of each root node in the judgment forest;

[0021] An execution sequence is created based on the needs of the system process. Combined with the analysis and processing results stored in the public cloud data definition table and the current state judgment results of each root node in the judgment forest, the sequence nodes in the execution sequence are analyzed to obtain control signals and communication data.

[0022] Preferably, the parsing of the sequence nodes in the execution sequence in combination with the parsing processing results stored in the public cloud data definition table and the current state judgment results of each root node in the forest comprises:

[0023] Parse each sequence node in the execution sequence in turn, and jump to the corresponding sequence node based on the parsing results stored in the public cloud data definition table and the current state judgment results of each root node in the judgment forest;

[0024] Or, according to the sequence node activation judgment forest, the activated state judgment result is obtained, and the judgment result of the judgment forest activated by the sequence node is referenced to perform corresponding node processing in the judgment sequence node.

[0025] Preferably, the creation of an execution sequence based on system flow requirements includes:

[0026] Create execution sequences based on system process requirements using predefined data structures;

[0027] Each sequence node in the execution sequence represents an execution step, and the node type, instruction execution channel, judgment tree index, jump node position, delay setting and state setting of the sequence node are defined by data.

[0028] Preferably, the step of combining multiple binary judgment trees to obtain a judgment forest includes:

[0029] The binary judgment tree is an unordered binary judgment tree, including a root node, branch nodes and leaf nodes, the leaf nodes are delay judgments, data thresholds or state values, and a comprehensive judgment result is obtained by judging the leaf nodes, branch nodes and root nodes step by step;

[0030] Based on the plurality of binary decision trees, a linked list is used to identify the corresponding relationship between the parent node and the child tree to form a decision forest.

[0031] Preferably, the main task requirements include:

[0032] System working mode, system workflow, data collection location, data calculation formula, instruction execution content, process judgment method, fault judgment method, various logic judgment thresholds, various control thresholds and communication protocols.

[0033] Based on the same inventive concept, the present invention also provides a data-driven measurement and control software development system, comprising:

[0034] A file generation module is used to generate a data configuration file according to the requirements of the target measurement and control software;

[0035] A software generation module is used to inject the digitized configuration file into a pre-built measurement and control software development model through data injection based on the digitized configuration file to generate target measurement and control software;

[0036] The measurement and control software development model is constructed based on the analysis of external input data and main task requirement characteristics, and combined with the judgment forest and execution sequence.

[0037] Preferably, the measurement and control software development model includes:

[0038] Feature extraction module, used to extract the main task requirement features of various measurement and control software;

[0039] Database module, used to store data definition, analytical functions and data definition of main task requirement characteristics to obtain data definition tables with different requirement characteristics;

[0040] The general data analysis module is used to perform analysis based on the data definition table of different demand characteristics and the external input data received by the execution bus, and schedule and manage the analysis results using the judgment forest and execution sequence.

[0041] Preferably, the data definition table of different demand characteristics includes:

[0042] Public cloud data definition table, collection and calculation parameter data definition table, data processing data definition table, communication processing data definition table and control processing data definition table.

[0043] Preferably, the general data parsing module includes:

[0044] The acquisition calculation parameter unit is used to parse and process the acquisition calculation parameter data definition table, including: address analysis, AD conversion, calculation formula and display position processing of the acquisition signal;

[0045] The data processing unit is used to parse and process the data processing data definition table, including: average value calculation, sensor coefficient calibration, effective value judgment processing and verification processing;

[0046] The communication processing unit is used to parse the communication processing data definition table and the external input data received by the execution bus, including: bus data query reception, bus data framing, and key data / telemetry data / backup data framing and sending;

[0047] A control processing unit, used for parsing the control processing data definition table, including: decision tree processing, fault processing, time processing and sequence execution processing;

[0048] The data obtained by parsing the data definition table based on the different demand characteristics is stored in the public cloud data definition table in the database module, and the data in the public cloud data definition table is called according to the different parsing requirements.

[0049] Preferably, the control processing unit includes:

[0050] A judgment forest subunit is used to obtain a judgment forest based on a combination of multiple binary judgment trees, traverse the judgment forest using a post-order traversal algorithm, perform state judgment on the activated judgment tree, and obtain the current state judgment result of each root node in the judgment forest;

[0051] The execution sequence subunit is used to create an execution sequence based on the needs of the system process, and parse the sequence nodes in the execution sequence in combination with the analysis and processing results stored in the public cloud data definition table and the current state judgment results of each root node in the judgment forest to obtain control signals and communication data.

[0052] Preferably, the execution sequence subunit is specifically used for:

[0053] Create execution sequences based on system process requirements using predefined data structures;

[0054] Each sequence node in the execution sequence represents an execution step, and the node type, instruction execution channel, judgment tree index, jump node position, delay setting and state setting of the sequence node are defined by data.

[0055] Parse each sequence node in the execution sequence in turn, and jump to the corresponding sequence node based on the parsing results stored in the public cloud data definition table and the current state judgment results of each root node in the judgment forest;

[0056] Or, according to the sequence node activation judgment forest, the activated state judgment result is obtained, and the judgment result of the judgment forest activated by the sequence node is referenced to perform corresponding node processing in the judgment sequence node to obtain the control signal and communication data.

[0057] Preferably, the step of combining multiple binary judgment trees to obtain a judgment forest includes:

[0058] The binary judgment tree is an unordered binary judgment tree, including a root node, branch nodes and leaf nodes, the leaf nodes are delay judgments, data thresholds or state values, and a comprehensive judgment result is obtained by judging the leaf nodes, branch nodes and root nodes step by step;

[0059] Based on the plurality of binary decision trees, a linked list is used to identify the corresponding relationship between the parent node and the child tree to form a decision forest.

[0060] Preferably, the main task requirements include:

[0061] System working mode, system workflow, data collection location, data calculation formula, instruction execution content, process judgment method, fault judgment method, various logic judgment thresholds, various control thresholds and communication protocols.

[0062] Compared with the prior art, the present invention has the following beneficial effects:

[0063] The present invention provides a data-driven measurement and control software development method and system, including: generating a data-based configuration file according to the requirements of the target measurement and control software; based on the data-based configuration file, injecting the data-based configuration file into a pre-built measurement and control software development model through data injection to generate the target measurement and control software; the measurement and control software development model is based on parsing the external input data and the main task requirement characteristics, and is constructed in combination with a judgment forest and an execution sequence. The present invention solves the problems of low versatility, flexibility, and iterative reusability in the prior art and the complex and risky system online upgrade process through data injection and the use of judgment forests and execution sequences as data flow scheduling mechanisms, which not only improves the efficiency of software development, but also enhances the flexibility of software on-orbit maintenance.

[0064] The present invention is based on online injection technology. It only needs to modify the data field of the system control software to realize the change of system control process and configuration parameters, which maximizes the simplification of the technical and management process of the change. The change process does not need to perform complicated unit and integrated regression tests, and can realize the rapid implementation of the on-orbit maintenance process. In addition, since the code is not changed, the security of the software change is guaranteed.

[0065] The measurement and control software development method provided by the present invention only needs to be digitally defined according to the model framework, avoiding repeated code writing and testing work, which is beneficial to improving software development efficiency, saving manpower and time costs, and has strong versatility.

[0066] The measurement and control software development method provided by the present invention achieves the purpose of running different processes and realizing different functions through different types of parameter on-orbit maintenance methods, and has better flexibility.

[0067] The measurement and control software development method provided by the present invention only requires parameter-level real-time maintenance for a large number of on-orbit tests and fault diagnoses, and can achieve real-time online injection testing without power outages, with more comprehensive test coverage.

[0068] The measurement and control software development method provided by the present invention does not require code editing, can complete a large number of injection tests in a short time, completes the test task, and shortens the test cycle.

[0069] The measurement and control software development method provided by the present invention avoids the security risks caused by frequent system upgrades because parameter-level upgrade maintenance does not require system restart, and has higher security. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] Figure 1 A flow chart of a data-driven measurement and control software development method provided by the present invention;

[0071] Figure 2 A schematic diagram of a software testing method based on a data-driven measurement and control software development method provided by the present invention;

[0072] Figure 3 A structural diagram of a measurement and control software development model based on a data-driven measurement and control software development method provided by the present invention;

[0073] Figure 4 A schematic diagram of analyzing a collection and calculation parameter data definition table in a data-driven measurement and control software development method provided by the present invention;

[0074] Figure 5 A schematic diagram of parsing a data processing data definition table in a data-driven measurement and control software development method provided by the present invention;

[0075] Figure 6 A schematic diagram of parsing a communication processing data definition table in a data-driven measurement and control software development method provided by the present invention;

[0076] Figure 7 A schematic diagram of parsing a control processing data definition table in a data-driven measurement and control software development method provided by the present invention;

[0077] Figure 8 A schematic diagram of the structure of a binary decision tree of a data-driven measurement and control software development method provided by the present invention;

[0078] Fig. 9 A schematic diagram of the structure of a judgment forest module of a data-driven measurement and control software development method provided by the present invention;

[0079] Fig.10 A schematic diagram of a scheduling mechanism of a data-driven measurement and control software development method provided by the present invention. DETAILED DESCRIPTION

[0080] Based on the similarity of the workflow of aerospace measurement and control software, the present invention proposes a data-driven measurement and control software development method. The method uses the judgment forest and execution sequence as the core data flow scheduling mechanism. Various measurement and control software only need to digitize and abstract the internal requirements according to the framework design principles. The generated digital model is processed by the analysis, calculation, communication and control of the general framework kernel, and the original large amount of independent code writing is converted into a unified data model analysis to achieve application in various types of aerospace measurement and control. It can greatly improve the software development efficiency and effectively reduce resource consumption. At the same time, through the in-orbit injection technology, the flexibility and rapidity of software in-orbit modification and testing are greatly improved. The specific embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings.

[0081] Embodiment 1:

[0082] The present invention proposes a data-driven measurement and control software development method, such as Figure 1 As shown, including:

[0083] Generate data configuration files according to the requirements of target measurement and control software;

[0084] Based on the digitized configuration file, the digitized configuration file is injected into a pre-built measurement and control software development model by data injection to generate target measurement and control software;

[0085] The measurement and control software development model is based on parsing external input data and main task requirement characteristics, and is constructed in combination with judgment forests and execution sequences.

[0086] Specifically, the present invention utilizes the flexibility of data definition and generates different types and sizes of data-based configuration files under the injection protocol framework according to the use requirements of the target measurement and control software system, including various types of configuration parameters, sensor coefficients, system processes, and modifiable data-based configuration files for fault interpretation methods. After the data-based configuration files are generated, the configuration files are injected into the pre-built measurement and control software development model through online injection, so that various configuration parameters, sensor coefficients, system processes, and fault interpretation methods of the software can be modified online without interrupting the control software and affecting the current business of the system, so as to achieve the purpose of online modification of the software without modifying the software code, avoid the cumbersome code modification process of the software, and greatly improve the testing efficiency of the software. The online injection method of system variables based on the target code can realize the flexible change of system variables without the participation of external physical equipment, and has the characteristics of low cost and high efficiency.

[0087] like Figure 2 As shown, the parameters and system operation processes based on the present invention are all digitally designed, and the system process and parameter threshold changes are realized through the on-orbit maintenance injection of parameters. This design method can not only test external actual equipment, but also simulate multiple external interfaces and internal interfaces through parameter injection, and inject different on-orbit test cases without restarting the system to realize unit testing, integration testing and configuration item testing. During the testing process, special attention is paid to the matching of the designed data structure and the parsing function, the timing of the data structure driving the system process, and the correctness of the function.

[0088] The construction of the measurement and control software development model includes:

[0089] Extract the main task requirement characteristics of various measurement and control software;

[0090] Based on the main task requirement characteristics, data definition tables with different requirement characteristics are obtained by using data of different types and sizes for definition;

[0091] Based on the data definition table with different demand characteristics and the external input data received by the execution bus, the analysis and processing results are scheduled and managed using the judgment forest and the execution sequence to obtain the measurement and control software development model.

[0092] like Figure 3 As shown in the figure, based on the great similarity between the task requirements and component composition of various aerospace measurement and control software, the main task requirement characteristics of various aerospace measurement and control software are extracted, including: system working mode, system workflow, data collection location, data calculation formula, instruction execution content, process judgment method, fault judgment method, various logical judgment thresholds, various control thresholds and communication protocols, as for data collection, processing, control and output; the data definitions and general parsing functions of various measurement and control software are stored in the same configuration item, so that one software model can be applicable to different software, in order to improve the versatility of the software and the purpose of development efficiency. The present invention draws on object-oriented thinking to design similar components in different software systems into a modular general parsing framework. At the same time, based on the characteristics of large data volume and significant data orientation of measurement and control software, the main task requirement characteristics of various measurement and control software systems are digitally standardized to obtain data definition tables with different requirement characteristics, including: public cloud data definition table, collection and calculation parameter data definition table, data processing data definition table, communication processing data definition table and control processing data definition table. The defined various system requirement characteristic data and external input data (such as external instructions, collection data, broadcast data, etc.) are parsed and scheduled to obtain formula calculation, process operation, control output, communication output and display output consistent with the data definition.

[0093] The data definition table based on the different demand characteristics and the external input data received by the execution bus are analyzed and processed, including:

[0094] Analyze and process the data definition table of the collected calculation parameters, including: address analysis, AD conversion, calculation formula and display position processing of the collected signal;

[0095] Analyze the data processing data definition table, including: average value calculation, sensor coefficient calibration, effective value judgment processing and verification processing;

[0096] Parse the communication processing data definition table and the external input data received by the execution bus, including: bus data query reception, bus data framing, and key data / telemetry data / backup data framing and sending;

[0097] Parse the control processing data definition table, including: decision tree processing, fault processing, time processing and sequence execution processing;

[0098] The data obtained by parsing the data definition table based on the different demand characteristics is stored in the public cloud data definition table, and the data in the public cloud data definition table is called according to the different parsing requirements.

[0099] Specifically, the data definition tables with different demand characteristics and the external input data received by the execution bus are parsed and processed respectively:

[0100] like Figure 4 As shown, the acquisition calculation parameter data definition table mainly includes: acquisition address, calculation formula type, formula coefficient, framing communication position, etc. The data definition table can be defined as a general data structure according to the formula coefficient maximization requirement (setting the maximum number of formula coefficients), and different acquisition address data select different formula types and framing positions according to system requirements; parsing the acquisition calculation parameter data definition table mainly includes address parsing, AD conversion, calculation formula (setting the maximized formula function library according to software requirements) and display position processing, and the parsed data is stored in the public cloud data definition table.

[0101] like Figure 5 As shown, the data processing data definition table mainly includes: acquisition parameters, average value threshold, framing communication position, judgment interval, judgment value, calibration parameter value, calibration threshold, etc. The analysis and processing of the data processing data definition table mainly includes: average value calculation, sensor coefficient calibration, effective value judgment processing and verification processing, etc. The analyzed and processed data is stored in the public cloud data definition table.

[0102] like Figure 6 As shown, the communication processing data definition table mainly includes: the upper sending sub-address, framing position, byte length, framing parameter position in the public data area, various instruction query code tables, etc. The communication processing data definition table and the analysis of the external input data received by the execution bus mainly include: bus data query reception, bus data framing, and key data / telemetry data / backup data framing and sending, etc., to achieve the corresponding instruction parsing and processing. For the external data received from the communication interface during the communication processing and the data formed by the parsing and processing, they can be stored in the public data definition table as needed for use.

[0103] like Figure 7As shown in the figure, the control processing data definition table mainly includes: judgment tree node, instruction code, execution channel number, software status position, software status, execution sequence node, set system status, fault code, generation identification, etc. The parsing of the control processing data definition table mainly includes: judgment tree processing, fault processing, time processing and sequence execution processing. After parsing, the control logic such as instruction output, time output, process jump, and state setting is generated. The parsing of the control processing data definition table is the judgment, processing and output of the software system operation, which is the core of the measurement and control software development model.

[0104] The data obtained through the above analytical functions are stored in the public cloud data definition table, which is used as a unified input interface for calling data required for other analytical processing.

[0105] The scheduling management of the parsing processing results by using the judgment forest and the execution sequence includes:

[0106] A judgment forest is obtained by combining multiple binary judgment trees, and the judgment forest is traversed by a post-order traversal algorithm, and a state judgment is performed on the activated judgment tree to obtain a current state judgment result of each root node in the judgment forest;

[0107] An execution sequence is created based on the needs of the system process. Combined with the analysis and processing results stored in the public cloud data definition table and the current state judgment results of each root node in the judgment forest, the sequence nodes in the execution sequence are analyzed to obtain control signals and communication data.

[0108] like Fig.10 As shown, each tree in the judgment forest has an activation and sleep state. The post-order traversal algorithm is used to traverse the activated trees in the entire judgment forest to perform state judgment and processing operations, and the current judgment results of each root node in the entire judgment forest are obtained, which are used to assist the logical judgment required during the operation of the software system to ensure the normal operation of the entire software system judgment. The execution sequence combines the parsing processing results stored in the public cloud data definition table and the current state judgment results of each root node in the judgment forest, parses the sequence nodes in the execution sequence, and obtains control signals and communication data. All definition data tables are organically combined with function parsing processing to form a complete software system workflow.

[0109] The judgment forest obtained by combining multiple binary judgment trees includes:

[0110] The binary judgment tree is an unordered binary judgment tree, including a root node, branch nodes and leaf nodes, the leaf nodes are delay judgments, data thresholds or state values, and a comprehensive judgment result is obtained by judging the leaf nodes, branch nodes and root nodes step by step;

[0111] Based on the plurality of binary decision trees, a linked list is used to identify the corresponding relationship between the parent node and the child tree to form a decision forest.

[0112] like Figure 8 As shown, the present invention uses a binary decision tree to implement software logic judgment and comprehensive fault judgment. The judgment result is the result of the binary decision tree traversal. The decision tree exists in the form of root, branch, and leaf. The leaf node is a judgment entity such as parameter and delay. The final result of the root node is obtained by judging the leaf node step by step. The decision tree data structure is defined as follows:

[0113]

[0114] Root / branch / leaf nodes are all represented by data. Different data represent different node types, logical relationships, subtree positions, judgment time, auxiliary parameters, and judgment thresholds. Complex type judgments are realized by combining different roots / branches / leafs into binary trees. The judgment tree uses a linked list to identify the corresponding relationship between the parent node and the subtree, and combines multiple trees to form a judgment forest.

[0115] The creation of an execution sequence based on system flow requirements includes:

[0116] Create execution sequences based on system process requirements using predefined data structures;

[0117] Each sequence node in the execution sequence represents an execution step, and the node type, instruction execution channel, judgment tree index, jump node position, delay setting and state setting of the sequence node are defined by data.

[0118] like Fig. 9 As shown in the figure, the software system process to be run is digitally defined according to the specification to form execution sequence data with multiple nodes with different attributes. During the execution of the software system process, the actual control output is executed sequentially. The execution sequence data structure is used here to describe a series of instructions and state settings for sequential execution. The execution of instructions is subject to time, state and other conditions. Each execution step is defined as a node, including the head node, judgment node, time delay node, execution node, state node, activation sequence node, tail node, etc. Different types of nodes can implement different tasks. The execution sequence data structure is defined as follows:

[0119]

[0120] All sequence nodes are defined as different data, which are used to indicate the sequence node type, instruction execution channel, judgment tree index, true or false jump node position, delay switch, delay judgment, setting status type, etc. The sequence node definitions can be cut and added by yourself to realize process execution with different requirements.

[0121] The step of combining the parsing processing result stored in the public cloud data definition table and the current state judgment result of each root node in the forest to parse the sequence nodes in the execution sequence includes:

[0122] Parse each sequence node in the execution sequence in turn, and jump to the corresponding sequence node based on the parsing results stored in the public cloud data definition table and the current state judgment results of each root node in the judgment forest;

[0123] Or, according to the sequence node activation judgment forest, the activated state judgment result is obtained, and the judgment result of the judgment forest activated by the sequence node is referenced to perform corresponding node processing in the judgment sequence node.

[0124] like Fig. 9 As shown, each sequence node of the execution sequence is parsed, judged, delayed, and processed in turn, and then jumps to the next node to continue execution. The execution sequence needs to use the judgment results in the judgment forest and the data in the public cloud data definition table during execution. During the scheduling process, the execution sequence needs to be combined with the judgment forest to run, that is, it can jump to activate other execution sequences according to the judgment tree results in the sequence, or it can introduce and activate the judgment forest in the execution sequence.

[0125] As the number of aerospace software continues to increase, software digitization, maintainability and generalization are the key development directions of aerospace software in the future. Based on the characteristics of aerospace measurement and control systems, this invention proposes a measurement and control software development method based on data flow drive, which shows high flexibility and reliability in practical applications, proving the effectiveness of this method. In addition, this method can also be used for on-orbit fault prediction during the long-term on-orbit operation of spacecraft. By injecting test cases in advance before the failure occurs, system weaknesses can be discovered as early as possible, and measures can be taken to improve the reliability of aerospace products, which has a strong promotion value.

[0126] Embodiment 2:

[0127] Based on the same inventive concept, Figure 2 As shown, the present invention also provides a data-driven measurement and control software development system, comprising:

[0128] A file generation module is used to generate a data configuration file according to the requirements of the target measurement and control software;

[0129] A software generation module is used to inject the digitized configuration file into a pre-built measurement and control software development model through data injection based on the digitized configuration file to generate target measurement and control software;

[0130] The measurement and control software development model is constructed based on the analysis of external input data and main task requirement characteristics, and combined with the judgment forest and execution sequence.

[0131] The measurement and control software development model includes:

[0132] Feature extraction module, used to extract the main task requirement features of various measurement and control software;

[0133] Database module, used to store data definition, analytical functions and data definition of main task requirement characteristics to obtain data definition tables with different requirement characteristics;

[0134] The general data analysis module is used to perform analysis based on the data definition table of different demand characteristics and the external input data received by the execution bus, and schedule and manage the analysis results using the judgment forest and execution sequence.

[0135] The data definition tables of different demand characteristics include:

[0136] Public cloud data definition table, collection and calculation parameter data definition table, data processing data definition table, communication processing data definition table and control processing data definition table.

[0137] Preferably, the general data parsing module includes:

[0138] The acquisition calculation parameter unit is used to parse and process the acquisition calculation parameter data definition table, including: address analysis, AD conversion, calculation formula and display position processing of the acquisition signal;

[0139] The data processing unit is used to parse and process the data processing data definition table, including: average value calculation, sensor coefficient calibration, effective value judgment processing and verification processing;

[0140] The communication processing unit is used to parse the communication processing data definition table and the external input data received by the execution bus, including: bus data query reception, bus data framing, and key data / telemetry data / backup data framing and sending;

[0141] A control processing unit, used for parsing the control processing data definition table, including: decision tree processing, fault processing, time processing and sequence execution processing;

[0142] The data obtained by parsing the data definition table based on the different demand characteristics is stored in the public cloud data definition table in the database module, and the data in the public cloud data definition table is called according to the different parsing requirements.

[0143] The control processing unit comprises:

[0144] A judgment forest subunit is used to obtain a judgment forest based on a combination of multiple binary judgment trees, traverse the judgment forest using a post-order traversal algorithm, perform state judgment on the activated judgment tree, and obtain the current state judgment result of each root node in the judgment forest;

[0145] The execution sequence subunit is used to create an execution sequence based on the needs of the system process, and parse the sequence nodes in the execution sequence in combination with the analysis and processing results stored in the public cloud data definition table and the current state judgment results of each root node in the judgment forest to obtain control signals and communication data.

[0146] The execution sequence subunit is specifically used for:

[0147] Create execution sequences based on system process requirements using predefined data structures;

[0148] Each sequence node in the execution sequence represents an execution step, and the node type, instruction execution channel, judgment tree index, jump node position, delay setting and state setting of the sequence node are defined by data.

[0149] Parse each sequence node in the execution sequence in turn, and jump to the corresponding sequence node based on the parsing results stored in the public cloud data definition table and the current state judgment results of each root node in the judgment forest;

[0150] Or, according to the sequence node activation judgment forest, the activated state judgment result is obtained, and the judgment result of the judgment forest activated by the sequence node is referenced to perform corresponding node processing in the judgment sequence node to obtain the control signal and communication data.

[0151] The judgment forest obtained by combining multiple binary judgment trees includes:

[0152] The binary judgment tree is an unordered binary judgment tree, including a root node, branch nodes and leaf nodes, the leaf nodes are delay judgments, data thresholds or state values, and a comprehensive judgment result is obtained by judging the leaf nodes, branch nodes and root nodes step by step;

[0153] Based on the plurality of binary decision trees, a linked list is used to identify the corresponding relationship between the parent node and the child tree to form a decision forest.

[0154] The main task requirements include:

[0155] System working mode, system workflow, data collection location, data calculation formula, instruction execution content, process judgment method, fault judgment method, various logic judgment thresholds, various control thresholds and communication protocols.

[0156] The present invention uses a data-driven software operation framework to perform digital abstract design on the public cloud data such as the top-level program, signal calculation and acquisition, data processing, control processing, and communication processing of the system software to form a standardized system database. By using the data analysis of the general framework, the goal of unifying the expression and processing of different software functions and processes is achieved. In view of the different characteristics of different software data and control logic, the unique data and functional functions of the measurement and control software are independently designed as configurable data SSP and configurable function SSP. The two configurable SSPs are called by the operation framework as auxiliary modules to achieve the goal of flexible modification of the system software and functional expansion.

[0157] The general data analysis module of the present invention is responsible for analyzing and processing the database data, including four general analysis units: signal calculation and acquisition, data processing, communication processing, and control processing. Its function is to analyze and schedule the defined various measurement and control software data and external input data to obtain formula calculation, process operation, control output, communication output, and display output consistent with the data definition. By optimizing the kernel scheduling mechanism of the software general framework, the two core scheduling functions of software automatic judgment and execution processing are optimized and designed using the judgment tree and execution sequence method to realize the real-time judgment and dynamic scheduling functions of the software.

[0158] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0159] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0160] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0161] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0162] The above are merely embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention are included in the scope of the claims of the present invention to be approved.

Claims

1. A data-driven measurement and control software development method, characterized in that: include: Generate data configuration files according to the requirements of target measurement and control software; Based on the digitized configuration file, the digitized configuration file is injected into a pre-built measurement and control software development model by data injection to generate target measurement and control software; The measurement and control software development model is based on parsing external input data and main task requirement characteristics, and is constructed in combination with judgment forests and execution sequences.

2. The method for developing measurement and control software according to claim 1, characterized in that: The construction of the measurement and control software development model includes: Extract the main task requirement characteristics of various measurement and control software; Based on the main task requirement characteristics, data definition tables with different requirement characteristics are obtained by using data of different types and sizes for definition; Based on the data definition table with different demand characteristics and the external input data received by the execution bus, the analysis and processing results are scheduled and managed using the judgment forest and the execution sequence to obtain the measurement and control software development model.

3. The method for developing measurement and control software according to claim 2, characterized in that: The data definition tables of different demand characteristics include: Public cloud data definition table, collection and calculation parameter data definition table, data processing data definition table, communication processing data definition table and control processing data definition table.

4. The method for developing measurement and control software according to claim 3, characterized in that: The data definition table based on the different demand characteristics and the external input data received by the execution bus are analyzed and processed, including: Analyze and process the data definition table of the collected calculation parameters, including: address analysis, AD conversion, calculation formula and display position processing of the collected signal; Analyze the data processing data definition table, including: average value calculation, sensor coefficient calibration, effective value judgment processing and verification processing; Parse the communication processing data definition table and the external input data received by the execution bus, including: bus data query reception, bus data framing, and key data / telemetry data / backup data framing and sending; Parse the control processing data definition table, including: decision tree processing, fault processing, time processing and sequence execution processing; The data obtained by parsing the data definition table based on the different demand characteristics is stored in the public cloud data definition table, and the data in the public cloud data definition table is called according to the needs of different parsing processes.

5. The method for developing measurement and control software according to claim 4, characterized in that: The scheduling management of the parsing processing results by using the judgment forest and the execution sequence includes: A judgment forest is obtained by combining multiple binary judgment trees, and the judgment forest is traversed by a post-order traversal algorithm, and a state judgment is performed on the activated judgment tree to obtain a current state judgment result of each root node in the judgment forest; An execution sequence is created based on the needs of the system process. Combined with the analysis and processing results stored in the public cloud data definition table and the current state judgment results of each root node in the judgment forest, the sequence nodes in the execution sequence are analyzed to obtain control signals and communication data.

6. The method for developing measurement and control software according to claim 5, characterized in that: The step of combining the parsing processing result stored in the public cloud data definition table and the current state judgment result of each root node in the forest to parse the sequence nodes in the execution sequence includes: Parse each sequence node in the execution sequence in turn, and jump to the corresponding sequence node based on the parsing results stored in the public cloud data definition table and the current state judgment results of each root node in the judgment forest; Or, according to the sequence node activation judgment forest, the activated state judgment result is obtained, and the judgment result of the judgment forest activated by the sequence node is referenced to perform corresponding node processing in the judgment sequence node.

7. The method for developing measurement and control software according to claim 5, characterized in that: The creation of an execution sequence based on system flow requirements includes: Create execution sequences based on system process requirements using predefined data structures; Each sequence node in the execution sequence represents an execution step, and the node type, instruction execution channel, judgment tree index, jump node position, delay setting and state setting of the sequence node are defined by data.

8. The method for developing measurement and control software according to claim 5, characterized in that: The judgment forest obtained by combining multiple binary judgment trees includes: The binary judgment tree is an unordered binary judgment tree, including a root node, branch nodes and leaf nodes, the leaf nodes are delay judgments, data thresholds or state values, and a comprehensive judgment result is obtained by judging the leaf nodes, branch nodes and root nodes step by step; Based on the plurality of binary decision trees, a linked list is used to identify the corresponding relationship between the parent node and the child tree to form a decision forest.

9. The method for developing measurement and control software according to claim 2, characterized in that: The main task requirements include: System working mode, system workflow, data collection location, data calculation formula, instruction execution content, process judgment method, fault judgment method, various logic judgment thresholds, various control thresholds and communication protocols.

10. A data-driven measurement and control software development system, characterized in that: include: A file generation module is used to generate a data configuration file according to the requirements of the target measurement and control software; A software generation module is used to inject the digitized configuration file into a pre-built measurement and control software development model through data injection based on the digitized configuration file to generate target measurement and control software; The measurement and control software development model is constructed based on the analysis of external input data and main task requirement characteristics, and combined with the judgment forest and execution sequence.