CN-121980484-A - Time sequence data analysis method based on variable reference
Abstract
The invention relates to a time sequence data analysis method based on a variable reference, which comprises the steps of (1) defining basic parameters required by time sequence data analysis, including time sequence quantity, a falling value, a rising value, an abnormal value, a rising edge, a falling edge, a time sequence state change mark and a time sequence data list value, (2) defining variable parameters required by time sequence data analysis based on the variable reference, (3) defining structural parameters required by time sequence data analysis based on the variable reference, (4) defining time sequence data analysis rules, and (5) performing time sequence data analysis. The invention can flexibly configure the ascending value and the descending value of the time sequence data, simultaneously supports the establishment of association rules among different time sequence data, and meets the time sequence data analysis logic under various complex conditions by defining a reference value for each time sequence and taking the reference value as analysis reference parameters of other time sequence variables.
Inventors
- CAO XUEJUN
- Wang tianxiu
- CAO FANGFANG
- LIU XUESHI
- FAN JINGYI
- Qu Dongning
- LI YUXUAN
- YANG ZHE
Assignees
- 北京航天自动控制研究所
Dates
- Publication Date
- 20260505
- Application Date
- 20251229
Claims (10)
- 1. The time sequence data analysis method based on the variable reference is characterized by comprising the following steps of: (1) Defining basic parameters required by time sequence data analysis, wherein the basic parameters comprise time sequence quantity, a falling value, a rising value, an abnormal value, a rising edge, a falling edge, a time sequence state change mark and a time sequence data list value; (2) The variable parameters required for analyzing the time sequence data based on the variable reference comprise a time sequence variable reference value outVariable, a time sequence variable update mark updateFlag and an expression; (3) The method comprises the steps of determining structural parameters required by analysis based on variable reference time sequence data, wherein the structural parameters comprise a time sequence variable reference information structural body and a time sequence variable information structural body; (4) Defining a time sequence data analysis rule, wherein the analysis rule comprises a method for extracting a time sequence variable initial value from original binary data and a method for judging time sequence; Extracting the initial value of the time sequence variable refers to extracting a field value corresponding to time sequence data according to a preset rule on the received original binary data, wherein the preset rule comprises the byte interception, the byte interception length, the large end mode or the small end mode, and the parameters related to time sequence judgment comprise a time sequence upper edge reference value cUpSequenceValue and a time sequence lower edge reference value cLowSequenceValue; (5) And analyzing time sequence data.
- 2. The time series data analysis method based on the variable reference as set forth in claim 1, wherein: The time sequence quantity is a physical quantity with the value changing between an ascending value and a descending value along with time, wherein the value of the time sequence quantity is 0 or 1 or is configured as a decimal/hexadecimal positive integer, and when the value of the time sequence quantity is the positive integer, the value of the time sequence quantity is divided into the descending value, the ascending value and the abnormal value; A falling value, which is a numerical value representing a falling edge of the time sequence quantity, and which allows a positive integer configured as decimal/hexadecimal; A rising value that allows a positive integer designated as decimal/hexadecimal; Abnormal value, any positive integer except rising value and falling value is abnormal value; A time sequence state change mark for indicating whether a certain time sequence value is a rising edge or a falling edge; A time sequence data list value for recording all time sequence data values; The rising edge is the starting time, and when the rising edge is changed from the falling value to the rising value, the rising edge is judged; The falling edge is the ending time, and is judged to be the falling edge when the rising value is changed into the falling value, the original time stamp of the falling value is used as the falling edge, and the first falling value of the time sequence quantity is not judged to be the falling edge.
- 3. The method for analyzing time series data based on the variable reference as set forth in claim 1, wherein the time series variable reference value outVariable is used as a parameter for analyzing and calculating other time series data, and each time series variable reference value outVariable is related to the arrival time of a certain time series variable; Each time sequence variable reference value outVariable corresponds to one time sequence variable update mark updateFlag, and the update time of the corresponding time sequence variable reference value outVariable is determined through the content of the updateFlag field, namely, the time sequence variable reference value is updated when time sequence data arrives for the first time or the time sequence variable reference value is updated when time sequence data is received each time; and analyzing and calculating the time sequence data through an expression, wherein reference values of other time sequence variables are referenced in the expression.
- 4. The method for analyzing time series data based on the variable reference according to claim 1, wherein the time series variable reference information structure body comprises: strQName, character string type, representing timing reference name; nValue, floating point number type, represents timing variable reference value.
- 5. The method for analyzing time series data based on the variable reference according to claim 1, wherein the time series variable information structure body comprises: strQName, character string type, representing timing name; nValue, integer type, representing 0/1 type time sequence value, and calculating the value according to the time sequence data analysis rule to obtain the original data; dUpValue, floating point number type, which represents non-0/1 time sequence value, and the value is the calculated acquisition time; updateFlag, boolean type, which is a time sequence variable update flag, true indicates that the upper edge of each frame is updated, false indicates that only the upper edge of the first frame is updated; cUpSequenceValue, integer, which is a timing edge reference value, selectable for non-0/1 timing; cLowSequenceValue, integer, which is a timing edge reference, is optional for non-0/1 timing.
- 6. The method of claim 5, wherein the strQName, updateFlag, cUpSequenceValue, cLowSequenceValue variable is defined in a time series data analysis rule in the time series variable information structure, and the nValue, dUpValue variable is obtained by calculating assignment in the time series data analysis process.
- 7. The method for analyzing time series data based on the variable reference of claim 5, wherein the analyzing time series data comprises the following steps: (1) Initializing a time sequence variable reference value list lstSequenceBase for recording reference value information of each time sequence variable; (2) Extracting a time sequence variable initial value; if the input data type is a floating point number, directly taking the acquisition time as a time sequence variable initial value, otherwise, extracting the initial value of the original time sequence data from the original binary data value, namely firstly intercepting corresponding byte content according to the initial byte and byte length required in the time sequence data analysis rule, then carrying out size end conversion on the data according to a large end mode or a small end mode defined in the analysis rule, and finally carrying out conversion on the data subjected to the size end conversion according to the required data type to obtain the final required time sequence variable initial value; (3) Performing time sequence judgment on the time sequence variable initial value obtained in the step (2): 3.1 If the current time sequence value is inconsistent with the configured time sequence upper edge reference value cUpSequenceValue and the configured time sequence lower edge reference value cLowSequenceValue, the time sequence value is considered to be invalid and is an abnormal value, and the processing is ignored; 3.2 If the current time sequence value is the same as the last time sequence value, the same time sequence is not processed because no jump exists in the same time sequence; 3.3 Judging whether the current time sequence value is a time sequence upper edge reference value or a time sequence lower edge reference value, and updating a time sequence state change mark and a time sequence data list value; (4) Calculating the acquisition time value of the current time sequence, and replacing the time sequence value with the acquisition time value for calculating the width value of the subsequent time sequence; (5) Updating the timing variable reference value outVariable: 5.1 Judging the current time sequence state change mark, if the current time sequence is the rising edge, entering step 5.2); 5.2 Traversing the sequence variable reference value list lstSequenceBase, searching the sequence variable reference value outVariable of the current sequence, if the sequence variable reference value is searched, entering the step 5.3), otherwise, entering the step 5.5); 5.3 Judging whether the upper edge of each time sequence is updated or the upper edge of the first frame is updated according to the time sequence variable update mark updateFlag, wherein true represents that the upper edge of each frame is updated, and false represents that only the upper edge of the first frame is updated; 5.4 If the time sequence variable update mark is true, updating the reference value of the time sequence variable by the acquisition time of the current time sequence, and if false, not updating; 5.5 If the reference value of the time sequence variable is not queried, the time sequence variable arrives for the first time, and the time sequence value is inserted into a time sequence variable reference value list lstSequenceBase for the calculation of the subsequent time sequence value; (6) Calculating a final result value of the time sequence variable according to the expression, wherein the rising edge value is a calculated value, and the falling edge value is a width; 6.1 Traversing the sequence variable reference value list lstSequenceBase, inquiring whether the sequence variable reference parameters in the expression of the current sequence exist sequence variable reference values outVariable of other sequences in the sequence variable reference value list, and if so, replacing the sequence variable reference parameters in the expression with the sequence variable reference values outVariable of the other sequences to calculate; 6.2 After replacing all time sequence variable reference parameters, calculating an expression result according to the replaced numerical expression; 6.3 If the time sequence is a rising edge, updating the time sequence variable information value dUpValue by using the result obtained by the calculation in the step 6.2), and if the time sequence is a falling edge, subtracting the time sequence variable information value dUpValue of the last rising edge from the expression result obtained by the calculation in the step 6.2) to obtain the width; (7) And (3) obtaining a final result after time sequence data analysis based on the variable reference through the steps (1) - (6).
- 8. A processor, characterized in that the processor is configured to run a program, wherein the program, when run, performs the method according to any of claims 1-7.
- 9. A non-volatile storage medium comprising a computer program product which, when executed, performs the method of any of claims 1-7.
- 10. A computer program product, characterized in that the computer program product comprises a computer program which, when executed by a processor, implements the steps of the method according to any one of claims 1-7.
Description
Time sequence data analysis method based on variable reference Technical Field The invention relates to a time sequence data analysis method based on a variable reference, and belongs to the technical field of data processing. Background At present, the function of time sequence data in an aerospace system is increasingly important, a traditional method for defining and analyzing the time sequence data is to use a bit (1 bit) to represent the time sequence data, wherein 0 represents a falling edge, 1 represents a rising edge, and the numerical value of the bit is used for judging the state of the time sequence data, but as the types of the time sequence data are more and more complex, the processing mode is also more and more complicated, and some time sequence data use a state value (for example 0 xAAAA) to represent the rising edge or the arrival of the falling edge, so that the analysis requirement of the time sequence cannot be met by using one bit, a standard data type (for example, a ui 32) is required to represent a certain time sequence parameter, and the numerical values (namely, the rising value and the falling value) of the rising edge and the arrival time of the falling edge of the time sequence are required to be flexibly defined. In addition, for more complex timings, there is a correlation between different timing parameters, and a certain timing parameter is based on a certain state of another timing parameter, so that a method for representing the correlation between different timings needs to be studied. Disclosure of Invention The invention solves the technical problem of overcoming the defects of the prior art and providing a time sequence data analysis method based on a variable reference so as to meet the time sequence data analysis requirements under complex and special conditions. The technical scheme of the invention is as follows: A time sequence data analysis method based on a variable reference comprises the following steps: (1) Defining basic parameters required by time sequence data analysis, wherein the basic parameters comprise time sequence quantity, a falling value, a rising value, an abnormal value, a rising edge, a falling edge, a time sequence state change mark and a time sequence data list value; (2) The variable parameters required for analyzing the time sequence data based on the variable reference comprise a time sequence variable reference value outVariable, a time sequence variable update mark updateFlag and an expression; (3) The method comprises the steps of determining structural parameters required by analysis based on variable reference time sequence data, wherein the structural parameters comprise a time sequence variable reference information structural body and a time sequence variable information structural body; (4) Defining a time sequence data analysis rule, wherein the analysis rule comprises a method for extracting a time sequence variable initial value from original binary data and a method for judging time sequence; Extracting the initial value of the time sequence variable refers to extracting a field value corresponding to time sequence data according to a preset rule on the received original binary data, wherein the preset rule comprises the byte interception, the byte interception length, the large end mode or the small end mode, and the parameters related to time sequence judgment comprise a time sequence upper edge reference value cUpSequenceValue and a time sequence lower edge reference value cLowSequenceValue; (5) And analyzing time sequence data. Further, the time sequence quantity is a physical quantity with the value changing between an ascending value and a descending value along with time, the value of the time sequence quantity is 0 or 1 or is configured as a decimal/hexadecimal positive integer, and when the value of the time sequence quantity is the positive integer, the value of the time sequence quantity is divided into a descending value, an ascending value and an abnormal value; A falling value, which is a numerical value representing a falling edge of the time sequence quantity, and which allows a positive integer configured as decimal/hexadecimal; A rising value that allows a positive integer designated as decimal/hexadecimal; Abnormal value, any positive integer except rising value and falling value is abnormal value; A time sequence state change mark for indicating whether a certain time sequence value is a rising edge or a falling edge; A time sequence data list value for recording all time sequence data values; The rising edge is the starting time, and when the rising edge is changed from the falling value to the rising value, the rising edge is judged; The falling edge is the ending time, and is judged to be the falling edge when the rising value is changed into the falling value, the original time stamp of the falling value is used as the falling edge, and the first falling value of the time sequence quantity is not judge