A method for multi-interface adaptation of heterogeneous prototypes by digital-real fusion testing
Through detailed analysis and adaptation processing of the prototype interface, combined with advanced data conversion and hierarchical analysis methods, the interface adaptability and consistency problems in the existing technology are solved, and more efficient and accurate digital and real fusion testing is achieved.
Patent Information
- Application Number
- CN202410246239.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-05
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-03-05
AI Technical Summary
The existing digital and real fusion test methods cannot go deep into the various interface levels of the prototype for adaptability and consistency, which makes it difficult to meet the requirements of test results and efficiency, and traditional methods have poor subjectivity and repeatability. question.
By analyzing the types, functions and data formats of each interface of the prototype, selecting an adapter or converter for interface conversion, and using advanced data conversion and verification methods, constructing the conversion function for unified quantification of the results, combining hierarchical analysis method for system reliability evaluation. Ensure consistency and reliability of interface data.
It realizes effective adaptation and consistency processing of the prototype interface, improves testing efficiency and accuracy, provides more standardized and objective data consistency results, and supports stronger reliability evaluation.
Smart Images

Figure CN118069445B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of computer simulation and testing, and in particular relates to a method for multi-interface adaptation of heterogeneous prototypes in digital-real fusion testing. Background Art
[0002] Digital-physical fusion testing is a method that comprehensively utilizes computer simulation and testing technology. By integrating virtual systems and physical systems, it can achieve comprehensive evaluation and optimization of system performance. It is widely used in military, aviation, automotive and other fields. In the system development stage, in order to verify system functions, performance, reliability and other indicators, it is necessary to connect the various subsystems or components of the system to the digital-physical fusion test platform in different forms of prototypes for system-level joint testing. Summary of the invention
[0003] The purpose of the present invention is to overcome the deficiencies of the prior art and to provide an engineering practical multi-interface adaptation method for heterogeneous prototypes in digital-physical fusion testing, so as to achieve effective conversion and matching of various interfaces of the prototype and ensure the smooth progress of the digital-physical fusion testing.
[0004] To achieve the above purpose, the technical solution adopted by the present invention is as follows:
[0005] A method for multi-interface adaptation of heterogeneous prototypes by digital-real fusion testing includes the following steps:
[0006] Step 1: According to the test requirements and prototype design specifications, analyze the various interfaces of the prototype to obtain information such as interface type, interface function, interface data format, etc. Interface type refers to the physical form, electrical characteristics, communication protocol, etc. of the interface, such as serial port, parallel port, network port, USB port, etc. Interface function refers to the role and purpose of the interface, such as input, output, control, monitoring, etc. Interface data format refers to the encoding, representation, transmission, etc. of the interface data, such as binary, hexadecimal, ASCII code, etc.
[0007] Step 2: When performing multi-interface adaptation of heterogeneous prototypes for digital-physical fusion testing, select appropriate adapters or converters for different types of interfaces to convert the physical form, electrical characteristics, communication protocols, etc. of the interfaces so that they can match the digital-physical fusion test platform. Adapters or converters can be hardware devices, such as serial port to network port, USB to serial port, etc., or software programs, such as protocol conversion, data conversion, etc. For interfaces with different functions, design corresponding test cases to verify whether they can work normally and evaluate the test results. Test cases can be manual operations, such as buttons, switches, indicator lights, etc., or they can be automated scripts, such as sending, receiving, comparing, judging, etc.
[0008] Step 3: When conducting digital-real fusion testing of heterogeneous prototype multi-interface adaptation, the interface data formats and characteristics of the prototypes of different subsystems are different, and the corresponding data conversion and data verification methods need to match them. Therefore, the interface data must first be classified according to the data characteristics, and then the appropriate data conversion and data verification methods must be selected to obtain the consistency results between the interface data and the expected data. According to the data type and characteristics, it can be divided into two categories: digital data and text data. For the two types of data, appropriate data conversion and data verification methods must be selected respectively.
[0009] Digital data refers to the numerical data related to time output by the interface of the prototype. The conversion and verification methods of digital data focus on the consistency of data encoding, representation, transmission and other methods. According to the engineering implementation rules of the industry field, the expected data has different forms. It is necessary to comprehensively consider the applicable conversion and verification methods according to the different forms of expected data provided by the requirements of the test platform. When the expected data is a design requirement and the output result is required to meet a certain encoding or representation method, the problem of data conversion and verification is transformed into a single data verification problem to verify whether the data output by the prototype conforms to a certain encoding or representation method; when the expected data is a set of data samples given in previous actual tests, the problem of data conversion and verification can be transformed into a double data verification problem to compare whether the data samples output by the prototype are consistent with the expected data samples. Assuming that the data conforms to a certain conversion function F, if F is a conversion function of unknown data characteristics, it is suitable to use non-parametric methods for data conversion and verification; if it is a known special conversion function, parametric methods can be applied for data conversion and verification.
[0010] Text data refers to the string data that is not related to time and is output by the interface of the prototype. The conversion and verification methods of text data focus on the consistency of the encoding, representation, transmission and other methods of the string. According to the engineering implementation rules of the industry field, the expected data has different forms. It is necessary to comprehensively consider the applicable conversion and verification methods according to the different forms of the expected data provided by the test platform. When the expected data is a design requirement and the output result is required to meet a certain encoding or representation method, the problem of data conversion and verification is transformed into a single string verification problem to verify whether the string output by the prototype conforms to a certain encoding or representation method; when the expected data is a set of string samples given in previous actual tests, the problem of data conversion and verification can be transformed into a double string verification problem to compare whether the string samples output by the prototype are consistent with the expected string samples. Assuming that the string conforms to a certain conversion function F, if F is a conversion function of unknown string features, it is suitable to use non-parametric methods for string conversion and verification; if it is a known special conversion function, parametric methods can be applied for string conversion and verification.
[0011] Optionally, different data types use different conversion and verification methods, and the results of various methods need to be converted into results that can unify the degree of quantification of differences. By identifying the characteristics of the results of various conversion and verification methods and constructing a suitable conversion function, the unified quantitative conversion of the results of different data conversion and verification can be achieved. The form of constructing a conversion function is not unique, that is, the way to convert the results of conversion and verification to a unified quantitative result is not unique. When selecting a conversion function, the conversion function is fully tested. By selecting different data conversion and verification methods to convert and verify the same set of interface data, and then comparing the difference in the unified quantitative results obtained by different conversion functions, it can be reflected whether the constructed conversion function is reasonable: the smaller the difference, the closer the data consistency reflected by the unified quantification result, and the constructed conversion function is reasonable; conversely, the larger the difference, the unreasonable the constructed conversion function.
[0012] Step 4: The interfaces of the prototype can constitute a complex system that can be hierarchically recursive. An interface can include multiple key data parameters, and a system can include multiple interfaces. The reliability of a certain data of the interface does not mean that the interface is reliable, and the reliability of the interface does not mean that the entire system is reliable. A comprehensive evaluation is required. The hierarchical analysis method is suitable for the reliability assessment of relatively complex large-scale systems. The basic idea is to decompose the complex system level by level, construct a judgment matrix for the parameters of each level according to the relevant influencing factors, and calculate the judgment matrix from the top level to the bottom to obtain the degree of influence of a certain level of factors on the previous level. Therefore, the hierarchical analysis method can be used as a method for reliability assessment of multi-level complex systems.
[0013] The judgment matrix of the hierarchical analysis method often uses the 1-9 scaling method and the exponential scaling method. The specific steps of the hierarchical analysis method are as follows: ① Construct the judgment matrix; Taking the navigation system reliability S21 as an example, first compare the S21 layers pairwise according to the importance of the main GPS signal K21 and the auxiliary IMU signal K22 to S21, and construct the judgment matrix A21. Use the same method to construct the judgment matrix Amn of each layer. ② Calculate the weight distribution of each factor; For the given judgment matrix Amn, calculate the product of each row of each element, and then use the root method to solve the eigenvector. Finally, the maximum eigenroot is obtained from the weight vector. ③ Weight vector consistency test; Whether the weight vector obtained by the above method is reliable needs to be further tested for consistency to obtain CR. When CR<0.1, the judgment matrix is considered acceptable, and the smaller the CR, the better the consistency. When CR>0.1, the judgment matrix should be corrected. ④ Hierarchical total weight calculation; According to the weights assigned to each judgment matrix, the consistency assessment results of each underlying data are brought in for weighted multiplication and addition to obtain the overall reliability of the system. By constructing a hierarchical relationship of system reliability and assigning each sub-level a weight for the reliability of the upper-level system, the overall reliability of the system can be obtained through aggregate calculation based on the consistency calculation results of the bottom-level output data.
[0014] The advantages of the present invention compared with the prior art are:
[0015] (1) Traditional digital-physical fusion testing methods mainly target the entire system and are unable to conduct detailed processing of adaptability and consistency at the interface level of the prototype. The adaptability and consistency of these interfaces have a direct impact on the effect and efficiency of digital-physical fusion testing. The present invention divides the interfaces of the prototype into different types, functions, and data formats, and proposes corresponding adaptation methods, thereby solving the problem of multi-interface adaptation of heterogeneous prototypes in digital-physical fusion testing. This provides an effective method support for testing the prototype interfaces of different subsystems.
[0016] (2) Regarding the interface adaptation results, due to the diversity of interface data, different conversion and verification methods will lead to different intervals, amplitudes and expressions of data consistency results, which is difficult to meet the standardized value requirements required for comprehensive reliability evaluation. Traditional methods usually rely on fuzzy judgment methods dominated by expert experience to evaluate various data results and obtain values that can be combined for calculation, but there are problems of strong subjectivity, poor repeatability and verifiability. The present invention constructs a conversion function to normalize the results of different methods, thereby solving the problem of the uniformity of different data results. In addition, a method for verifying whether the conversion function is reasonable is proposed to verify the reliability of the conversion function itself. This innovative means makes the data consistency results more standardized and objective, providing stronger support for reliability evaluation. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a schematic diagram of a method for multi-interface adaptation of heterogeneous prototypes in a digital-real fusion test of the present invention. DETAILED DESCRIPTION
[0018] The present application is further described below in conjunction with the accompanying drawings and embodiments.
[0019] The present invention provides a method for multi-interface adaptation of heterogeneous prototypes by digital-real fusion testing, comprising the following steps:
[0020] Step 1.1. According to the test requirements and prototype design specifications, each interface of the heterogeneous prototype is analyzed in detail to obtain the interface type, interface function, and interface data format information;
[0021] Step 1.2. Intelligently select an adapter or converter for different interface types. The adapter or converter dynamically adjusts the physical form, electrical characteristics, and communication protocol of the interface to ensure matching with the digital-real fusion test platform;
[0022] Step 1.3. Design corresponding test cases for different interface functions to verify the normal working performance of the interface, including the creation and execution of test cases and the comprehensive evaluation of test results;
[0023] Step 1.4. According to different interface data formats, use advanced data conversion and data verification methods to achieve consistency between the output data of the interface and the expected data;
[0024] Step 1.5. Convert the consistency check result between the output data of the interface in step 1.4 and the expected data into a value that can be aggregated and calculated through a unified quantization method and record it as a unified quantization result;
[0025] Step 1.6. Establish an interface evaluation index system, where the evaluation indexes include interface stability, performance consistency, and data transmission efficiency; determine the influence weight of each interface on the overall reliability of the prototype through the hierarchical analysis method;
[0026] Step 1.7. Substitute the unified quantification results into the impact weights, and through cumulative calculation, obtain the comprehensive evaluation results of each interface on the overall reliability of the prototype.
[0027] Furthermore, the step 1.5 includes that the unified quantization method obtains multiple unified quantization results by adopting different conversion methods on the same set of data, and performs difference comparison on the obtained multiple unified quantization results.
[0028] Furthermore, the step 1.4 includes that the advanced data conversion and data verification method adopts any method of real-time monitoring and error correction.
[0029] Example
[0030] like Figure 1 As shown in the figure, the S0 layer is the multi-interface adaptation part of the heterogeneous prototype for digital-physical fusion testing, which consists of the prototype interface, adapter or converter, data conversion and verification of the S1 layer. The S1 layer obtains information such as interface type, interface function and interface data format, intelligently selects adapters or converters, and accurately converts the physical form, electrical characteristics and communication protocol of the interface.
[0031] The present invention provides a method for multi-interface adaptation of heterogeneous prototypes by digital-real fusion testing, which comprises the following steps:
[0032] Step 1: Detailed analysis of the interface
[0033] 1.1 Prototype interface analysis:
[0034] For each prototype, a comprehensive and detailed interface analysis is performed according to the test requirements and design specifications.
[0035] 1.2 Obtaining key information:
[0036] Obtain key information such as interface type, function and data format, including physical form, electrical characteristics, communication protocol, input / output / control / monitoring functions, etc.
[0037] Step 2: Adapter and test case design
[0038] 2.1 Adapter selection:
[0039] Design adapter selection solutions based on different interface types. Consider both hardware and software aspects to ensure that the adapter can effectively convert physical form, electrical characteristics, and communication protocols.
[0040] 2.2 Test case design:
[0041] Design test cases in detail to cover different interface types and adapter scenarios, including manual operations and automated scripts to fully verify the performance of the adapter in various scenarios.
[0042] Step 3: Data conversion and verification
[0043] 3.1 Data classification:
[0044] According to the data characteristics of different subsystem prototype interfaces, it is carefully classified, including digital data and text data.
[0045] 3.2 Data conversion and verification strategy:
[0046] Select appropriate data conversion and verification strategies to ensure high consistency between interface data and expected data. Non-parametric and parametric methods applied to digital data, as well as encoding consistency verification of text data.
[0047] Step 4: Unified quantification and weight calculation of results
[0048] 4.1 Unified conversion function:
[0049] A unified conversion function is established to convert the results of various conversion and verification methods into a uniformly quantifiable degree of difference.
[0050] 4.2 Conversion function verification:
[0051] A method to verify the reliability of the conversion function is proposed to ensure that the results can be reasonably applied under different conditions. The robustness of the conversion function is verified by using different conversion methods on the same set of interface data and comparing the unified quantitative results.
[0052] Step 5: Comprehensive evaluation using the analytic hierarchy process
[0053] 5.1 System Construction:
[0054] The various interfaces of the prototype are constructed into a complex system that can be hierarchically and recursively to comprehensively consider the reliability of the system.
[0055] 5.2 Application of analytic hierarchy process:
[0056] Use the analytic hierarchy process to construct a judgment matrix and perform weight distribution calculations to ensure the rationality of the judgment matrix.
[0057] 5.3 Consistency Check:
[0058] The consistency check of the weight vector is strictly carried out to ensure the rationality of the judgment matrix. When the consistency ratio is less than 0.1, the judgment matrix is considered acceptable.
[0059] 5.4 Comprehensive Assessment:
[0060] Calculate the total weight of the hierarchy and comprehensively evaluate the reliability of the system. Obtain the overall reliability of the system through aggregate calculation. The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for multi-interface adaptation of heterogeneous prototypes by digital-real fusion testing, characterized in that: The steps include: Step 1.
1. According to the test requirements and prototype design specifications, analyze each interface of the heterogeneous prototype in detail to obtain the interface type, interface function, and interface data format information; Step 1.
2. Intelligently select an adapter or converter for different interface types. The adapter or converter dynamically adjusts the physical form, electrical characteristics, and communication protocol of the interface to ensure matching with the digital-physical fusion test platform. Step 1.
3. Design corresponding test cases for different interface functions to verify the normal working performance of the interface, including the creation and execution of test cases and the comprehensive evaluation of test results; Step 1.
4. For different interface data formats, use advanced data conversion and data verification methods to achieve consistency between the output data of the interface and the expected data; wherein the different interface data formats include digital data and text data, the digital data refers to the numerical data of the interface output of the prototype that is related to time, and the text data refers to the string data of the interface output of the prototype that is not related to time; Step 1.
5. Convert the consistency check result between the output data of the interface in step 1.4 and the expected data into a value that can be aggregated and calculated by a unified quantization method and record it as a unified quantization result; the unified quantization method includes obtaining multiple unified quantization results by using different conversion methods on the same set of data, and performing difference comparison on the obtained multiple unified quantization results; Step 1.
6. Establish an interface evaluation index system, where the evaluation indexes include interface stability, performance consistency, and data transmission efficiency; determine the influence weight of each interface on the overall reliability of the prototype through the hierarchical analysis method; Step 1.
7. Substitute the unified quantification results into the impact weights and obtain the comprehensive evaluation results of each interface on the overall reliability of the prototype through cumulative calculation.
2. According to claim 1, a method for multi-interface adaptation of heterogeneous prototypes in digital-real fusion testing is characterized in that: The step 1.4 includes that the advanced data conversion and data verification method adopts any method of real-time monitoring and error correction.
