A state-type data efficient general interpretation method
By configuring status word interpretation templates and using automatic comparison interpretation methods, the problems of low efficiency and poor versatility in status data interpretation are solved, enabling efficient and continuous status data interpretation and anomaly analysis.
Patent Information
- Application Number
- CN202311134189.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-05
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2043-09-05
AI Technical Summary
Existing technologies suffer from low efficiency, poor versatility, and susceptibility to omissions and misjudgments in interpreting state-type data, especially when interpreting diverse state-type data, making it difficult to achieve efficient automatic interpretation.
By configuring a status word interpretation template, five elements (status word standard value, start bit, end bit, normal value, and definition of different bits) are extracted, and the status word file is automatically compared and interpreted. Abnormal time points are recorded, and interpretation reports are generated to achieve continuous automatic interpretation and anomaly analysis of status words.
It improves the efficiency and versatility of automatic interpretation of status data, and can continuously and automatically interpret various forms of status data to generate detailed anomaly analysis reports.
Smart Images

Figure CN117150314B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of test application, in particular to a state type data efficient and universal interpretation method. BACKGROUND
[0002] State type data is mainly used to represent the state of the measured object. State type data interpretation is an important part of ensuring that the equipment state meets the use requirements, which helps to troubleshoot and locate faults. With the development of intelligent equipment, the state type data generated in the test process of different equipment shows the characteristics of multiple states and diverse expressions. Currently, state type data interpretation mainly relies on manual work, which not only has a large workload and low efficiency, but also easily causes missed and misjudged state type data. From the actual state type data interpretation requirements, it is urgent to introduce an efficient and universal interpretation method to realize efficient and universal interpretation of state type data of different equipment.
[0003] In view of the shortcomings of manual state type data interpretation, in recent years, a large number of scholars have carried out automatic interpretation research and achieved remarkable results. In 2005, the design and implementation of a simulation test automatic interpretation expert system were disclosed for the needs of simulation test data interpretation of aerospace equipment. Wu Xia et al. designed a general simulation test automatic interpretation expert system, which realized the automatic interpretation of several analog and digital quantities in comprehensive simulation, and the state quantity was included in the digital quantity, which was compared with the initial state or correct value to realize the interpretation. Although this method improves the efficiency of state type data interpretation, it has poor universality and cannot quickly meet the interpretation of diverse state type data.
[0004] To improve the universality of state type data interpretation, the existing technology discloses a Chinese invention patent document with publication number CN111291242A and publication date June 16, 2020. The technical solution disclosed in this patent document is as follows: a general display and interpretation method is proposed for 16-bit data. This method first establishes a list of bit combinations, defines the matching value of each data bit, then reads the file and displays the data on the interface, and finally the software interprets the data selected by the user.
[0005] The above technical solution may have the following problems in actual use:
[0006] (1) This method parses each state type test data according to different bit definitions regardless of whether the state word is normal, which affects the test efficiency;
[0007] (2) When interpreting data, this method needs to select the corresponding data in the interface first, and only the selected data is parsed and displayed, which cannot meet the continuous automatic interpretation requirements of the entire state type test file. SUMMARY
[0008] To solve the above technical problems, the application provides a state type data efficient universal interpretation method, which can meet the interpretation requirements of different equipment state type data and has high interpretation efficiency.
[0009] The application is realized by adopting the following technical scheme:
[0010] A state type data efficient universal interpretation method comprises the following steps:
[0011] Step S1, configuring a state word interpretation template, specifically, configuring five elements of a state word, the five elements being a state word standard value and start bit, end bit, normal value and definition of different bits of each state represented by the state word;
[0012] Step S2, selecting the configured state word interpretation template and a state word file to be interpreted;
[0013] Step S3, parsing the state word interpretation template and extracting the five elements of the state word;
[0014] Step S4, comparing and interpreting the state word in the state word file to be interpreted with the state word standard value to determine whether the state word is normal, if normal, interpreting the next state word, if abnormal, parsing each state in the state word according to the start bit, end bit, normal value and definition of different bits in the state word interpretation template and comparing and interpreting the state with the corresponding numerical value to determine whether all states in the state word are normal;
[0015] Step S5, when the interpretation and analysis of all states in the state word are completed, interpreting the next state word;
[0016] Step S6, repeating steps S4 to S5 until all state words in the state word file to be interpreted are interpreted.
[0017] In step S4, if an abnormal state of the state word is found during the interpretation process, the specific abnormal condition is parsed according to the definition information of different bits in the state word interpretation template.
[0018] In the step S4, if an abnormal state of the state word is found during the interpretation process, the abnormal time point information is recorded and saved.
[0019] Step S7, automatically generating an interpretation report according to the state interpretation condition in the state file.
[0020] Each state word comprises a plurality of different states, and the specific condition of each state is represented by a different number of binary.
[0021] The method for determining whether the status word is normal in step S4 is to determine whether the status word in the status word file to be read is consistent with the status word standard value. If they are consistent, it is normal; if they are inconsistent, it is abnormal.
[0022] Compared with the prior art, the beneficial effects of the present invention are as follows:
[0023] 1. This invention addresses the characteristics of status words having multiple states and complex expressions, aiming to improve the versatility and efficiency of automatic status word interpretation. Through flexible configuration of element status type interpretation templates, it meets the general interpretation needs of various forms of status data from different equipment, and has high versatility.
[0024] 2. This invention achieves continuous and efficient interpretation of status data through a two-stage hierarchical interpretation of status words. First, the status data is interpreted as a whole. If it is normal, no further interpretation is performed. If it is abnormal, a second interpretation is performed.
[0025] 3. The interpretation method of the present invention is simple. By flexibly configuring the status word interpretation template and simply selecting the status word file to be interpreted, continuous automatic interpretation of status word files, anomaly analysis and summary, and automatic report generation can be achieved.
[0026] 4. This invention can also parse specific abnormal situations based on the definition information of different bits in the status word interpretation template, define the abnormal situations in detail, and provide auxiliary information for abnormal analysis when an abnormality is interpreted.
[0027] 5. This invention not only parses the physical meaning of status words and records and saves information on abnormal moments, but also correlates data with time dimension information, and can statistically analyze the moments when abnormal situations occur.
[0028] 6. In this invention, the five elements of the status word are extracted in advance, which has a negligible impact on the interpretation efficiency and can better realize the modularity of this interpretation method. Attached Figure Description
[0029] The present invention will now be described in further detail with reference to the accompanying drawings and specific embodiments, wherein:
[0030] Figure 1 This is a schematic diagram of the process of the present invention;
[0031] Figure 2 This is a schematic diagram of one type of status word composition in this invention;
[0032] Figure 3 This is a data curve diagram of a status word portion in this invention;
[0033] Figure 4 This is a schematic diagram of a status word template in this invention. DETAILED DESCRIPTION
[0034] Embodiment 1
[0035] As a basic embodiment of the present application, the present application comprises a state-type data efficient universal interpretation method, comprising the following steps:
[0036] Step S1. Configuring a state word interpretation template, specifically: configuring five elements of the state word, the five elements being respectively a state word standard value and definitions of a starting bit, an ending bit, a normal value and a different bit of each state represented by the state word.
[0037] Step S2. Selecting the configured state word interpretation template and the state word file to be interpreted.
[0038] Step S3. Parsing the state word interpretation template to extract the five elements of the state word.
[0039] Step S4. Comparing and interpreting the state word in the state word file to be interpreted with the state word standard value to determine whether the state word is normal, if normal, interpreting the next state word, if abnormal, parsing each state in the state word according to the starting bit, the ending bit, the normal value and the different bit definition in the state word interpretation template, and comparing and interpreting with the corresponding numerical value of each state to determine whether all states in the state word are normal.
[0040] Step S5. When all states in the state word are parsed and interpreted, the next state word is interpreted.
[0041] Step S6. Repeating steps S4 to S5 until all state words in the state word file to be interpreted are interpreted.
[0042] Embodiment 2
[0043] As a best embodiment of the present application, referring to the attached drawings of the specification, Figure 1 the present application comprises a state-type data efficient universal interpretation method, comprising the following steps:
[0044] Step S1. Flexibly configuring a state word interpretation template. Specifically: according to the characteristics of state-type data, configuring five elements of the state word in the state word interpretation template, the five elements being respectively a state word standard value and definitions of a starting bit, an ending bit, a normal value and a different bit of each state represented by the state word.
[0045] Step S2. Selecting the configured state word interpretation template and the state word file to be interpreted. Specifically, according to the file position of the state word test data, selecting the state word file to be interpreted.
[0046] Step S3. Analyzing the state word interpretation template to extract the five elements of the state word, including extracting the state word standard value in the state word interpretation template, extracting the start bit, end bit, normal value and definition of different bits corresponding to each state in the state.
[0047] Step S4. Comparing the state word in the state word file to be interpreted with the state word standard value for interpretation, i.e. determining whether the state word in the state word file to be interpreted is consistent with the state word standard value. If consistent, it is normal, then the next state word is interpreted; if not consistent, it is abnormal, then according to the start bit and end bit in the state word interpretation template, each state in the state word is parsed, and the actual value corresponding to each state is compared with the normal value of the corresponding state in the state word interpretation template for interpretation. Determine whether all states in the state word are normal. If an abnormal state of the state word is found during the interpretation process, the specific abnormal situation is parsed according to the definition information of the different bits in the state word interpretation template, and the abnormal time point information is recorded and saved.
[0048] Step S5. When all states in the state word are parsed and interpreted, the next state word is interpreted.
[0049] Step S6. Repeat steps S4 to S5 until all state words in the state word file to be interpreted are interpreted.
[0050] Step S7. Automatically generate an interpretation report according to the state interpretation in the state file.
[0051] Example 3
[0052] As another preferred embodiment of the present application, the present application comprises a high-efficiency universal interpretation method for state-type data. In this embodiment, the state-type data can be a state word, as shown in the attached Figure 2 The state word consists of 8 bits of binary, representing 4 states, namely state 1, state 2, state 3 and state 4. State 1 is represented by the 0th bit of binary; state 2 is represented by the 1st and 2nd bits of binary, state 3 is represented by the 3rd, 4th and 5th bits of binary, and state 4 is represented by the 6th and 7th bits of binary. The specific situation of each state is determined by the number of binary representing the state, for example, state 1 is represented by 1 bit of binary, so state 1 has at most two specific situations of 0 and 1, and state 2 is represented by 2 bits of binary, so state 2 has at most four situations of 0, 1, 2 and 3.
[0053] Referring to the attached Figure 3The state word part data curve in the embodiment involves 63998 state words in total, each of which is composed of 8 bits of binary. 3 is the standard value of the state word, and other values are abnormal values of the state. The abnormal values are 0, 64, 65, 33 and 66 respectively. Each abnormal value specifically represents what kind of abnormality needs to be determined according to the state word determination template.
[0054] Referring to the accompanying drawings Figure 4 The state word determination template in the embodiment involves the total number of states represented by the state word in the template and the binary occupied by each state, which is consistent with the accompanying drawings Figure 2 State 1-0-0-1 respectively represents the start bit of state 1 as 0, the end bit as 0, the normal value as 1, and 0="abnormal" and 1="normal" as different definitions. State 2-1-2-1 respectively represents the start bit of state 2 as 1, the end bit as 2, the normal value as 1, 0="abnormal 1", 1="normal", 2="abnormal 2", and 3="abnormal 3" as different bit definitions. The definition format of state 3 and state 4 is the same as that of state 1 and state 2, which will not be repeated here. In addition, the standard value of the state word is 3, which is consistent with the standard value of the state word in the accompanying drawings Figure 3 .
[0055] Specifically, the state type data efficient and universal determination method comprises the following steps:
[0056] Step S1. According to the characteristics of the state type data, that is, according to the characteristics of the state word, the standard value of the state word is configured to form a state word determination template. In the embodiment, the standard value of the state word is 3, and then the start bit, end bit, normal value and different bit definition of the four states represented by the state word are configured. The configured state word determination template is shown in Figure 4 .
[0057] Step S2. Select the configured state word determination template and the state word file to be determined.
[0058] Step S3. Analyze the state word determination template and extract the standard value 3 of the state word in the state word determination template. Extract the definition of the start bit, end bit, normal value and different bit of each state corresponding to each state.
[0059] Step S4. The state word in the state word file to be interpreted is compared with the state word standard value. If the state word is 3, it is the same as the state word standard value, this state word is normal, then the next state word is interpreted; if the state word value is not 3, it is 64, then the starting bit, ending bit, normal value and different bit definition of each state in the state word are parsed, the corresponding value of each state, i.e. the actual value, is compared with the normal value of the corresponding state in the state word interpretation template. 64 is converted into binary as 1000000, which is convenient for extracting different states of the state word. By comparing with each state, it can be concluded that the specific abnormality is state 1 abnormality, state 2 abnormality 1, state 4 abnormality 1, and the abnormality time point is recorded as 135.83894s.
[0060] Step S5. When all the states in the state word are parsed and interpreted, the next state word is interpreted.
[0061] Step S6. Steps S4 to S5 are repeated until all 63998 state words in the state word file to be interpreted are interpreted.
[0062] Step S7. According to the state interpretation in the state file, an interpretation report is automatically generated. The interpretation report can be as shown in the following table:
[0063]
[0064] In summary, after reading the present application document, according to the technical solution and technical concept of the present application, other various corresponding transformation schemes made by ordinary skilled in the art without creative mental labor are within the scope of protection of the present application.
Claims
1. A highly efficient and universal method for interpreting state-type data, characterized in that: Includes the following steps: Step S1. Configure the status word interpretation template, specifically: configure the five elements of the status word, namely the standard value of the status word and the definition of the start bit, end bit, normal value, and different bits for each state represented by the status word; the template is used to adapt to the status data of different equipment; Step S2. Select the configured status word interpretation template and the status word file to be interpreted; Step S3. Parse the status word interpretation template and extract the five elements of the status word; Step S4. Compare the status words in the status word file to be judged with the standard values of status words to judge whether the status words are normal. If they are normal, directly judge the next status word. If they are abnormal, parse each status in the status word according to the start bit, end bit, normal value and different bit definition in the status word judgment template, and compare it with the value corresponding to each status to judge whether all statuses in the status word are normal. Step S5. After all the states in the state word have been parsed and interpreted, proceed to interpret the next state word; Step S6. Repeat steps S4 to S5 until all status words in the status word file to be judged have been judged.
2. The efficient and universal interpretation method for state-type data according to claim 1, characterized in that: In step S4, if an abnormality is found in a certain state of the status word during the judgment process, the specific abnormality is analyzed according to the definition information of different bits in the status word judgment template.
3. The efficient and universal interpretation method for state-type data according to claim 2, characterized in that: In step S4, if an abnormal state of a status word is found during the interpretation process, the abnormal time point information is recorded and saved.
4. A method for efficient and universal interpretation of state-type data according to claim 1 or 3, characterized in that: It also includes step S7, which automatically generates a reading report based on the status reading in the status file.
5. The efficient and universal interpretation method for state-type data according to claim 1, characterized in that: Each state word includes several different states, and the specific details of each state are represented by a different number of binary numbers.
6. The efficient and universal interpretation method for state-type data according to claim 1, characterized in that: The method for determining whether the status word is normal in step S4 is to determine whether the status word in the status word file to be read is consistent with the status word standard value. If they are consistent, it is normal; if they are inconsistent, it is abnormal.
Citation Information
Patent Citations
General display interpretation method and device for hexadecimal data file
CN111291242A
Aircraft test data automatic interpretation method based on knowledge base
CN106997487A
Depth interpretation method suitable for multivariate coupling spaceborne parameters
CN113254246A
Open customizable satellite test interpretation table automatic generation system and method
CN115438108A