A method, apparatus and device for processing QAR data
By generating a subframe array and filling it with timestamp data, the timing errors and abnormal frames in QAR data were resolved, improving the accuracy of data processing and the efficiency of subsequent model development.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA SOUTHERN AIRLINES CO LTD
- Filing Date
- 2024-04-18
- Publication Date
- 2026-07-21
AI Technical Summary
Existing QAR data decoding software cannot effectively handle timing errors and abnormal frames in airborne QAR data, resulting in numerical errors and timing gaps in the decoding results, which increases the difficulty of subsequent data model development and monitoring.
By acquiring the raw QAR data, finding the frame synchronization word to generate a subframe array, solving the subframe data values, calculating the index value based on the frame counter mapping information, filling in the timestamp data, and merging the subframe array to eliminate timing errors and mark abnormal frames.
It effectively eliminates timing errors in QAR data, marks abnormal frame data, and reduces the difficulty of developing subsequent decoding and data monitoring models.
Smart Images

Figure CN118295993B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a method, apparatus, and device for processing QAR data. Background Technology
[0002] As aircraft are used, airborne QAR data recording system equipment may experience aging, malfunctions, or unstable operation, which can cause issues such as broken frames, incorrect frames, and / or timing errors in the recorded QAR binary data.
[0003] Current decoding software directly extracts the corresponding parameter values from the frame structure of the original QAR data, resulting in numerical errors and timing omissions in the QAR data decoding results, which brings many inconveniences to subsequent data model development and monitoring work. Summary of the Invention
[0004] The technical problem to be solved by the present invention is to provide a method, apparatus and device for processing QAR data, which can eliminate timing errors in the original QAR data and mark abnormal frame data, thereby reducing the difficulty of subsequent decoding and data monitoring model development.
[0005] To address the above technical problems, embodiments of the present invention provide a method for processing QAR data, comprising:
[0006] Obtain the raw QAR data;
[0007] Locate all frame synchronization words in the original QAR data and generate a subframe array;
[0008] The subframe data value of each element in the subframe array is calculated, and the element whose subframe data value cannot be calculated is regarded as the first abnormal frame data.
[0009] Based on the mapping information of the frame counter of the original QAR data and the subframe data value, the index value of each element in the subframe array is obtained;
[0010] Obtain the date and time values from the subframe array, and fill the timestamp data of each element in the subframe array according to the date, time, and index values;
[0011] The subframe arrays are merged to obtain the processed QAR data.
[0012] As an improvement to the above scheme, the step of finding all frame synchronization words in the original QAR data and generating a subframe array includes:
[0013] Find all frame synchronization words in the original QAR data, and divide the original QAR data according to the frame synchronization words to obtain subframe binary data per second;
[0014] A subframe array is generated based on the subframe binary data per second; each element of the subframe array is one second of subframe binary data.
[0015] As an improvement to the above scheme, the step of obtaining the index value of each element in the subframe array based on the mapping information of the frame counter of the original QAR data and the subframe data value includes:
[0016] Based on the frame counter mapping information of the original QAR data, the frame counter values of the frame counter mapping elements in the subframe array are calculated; elements whose frame counter values cannot be calculated are taken as second abnormal frame data.
[0017] The index value of each element in the subframe array is calculated based on the value of the frame counter and the subframe data value.
[0018] As an improvement to the above scheme, the step of calculating the index value of each element in the subframe array based on the value of the frame counter and the subframe data value includes:
[0019] Based on the subframe data values, the continuity of each element in the subframe array is obtained;
[0020] The frame counter mapping element in the subframe array is used as the starting position, and the index value of the starting position is calculated based on the value of the frame counter.
[0021] Based on the continuity of each element in the subframe array, the index values of each element in the subframe array are obtained by filling in the subframe array sequentially or in reverse order from the starting position.
[0022] As an improvement to the above scheme, after obtaining the index value of each element in the subframe array based on the mapping information of the frame counter of the original QAR data and the subframe data value, the method further includes:
[0023] The superframe data value of each element in the subframe array is calculated based on the index value.
[0024] As an improvement to the above solution, the step of obtaining the date and time value data from the subframe array, and filling the timestamp data of each element in the subframe array according to the date, time, and index values, includes:
[0025] Obtain the date value data in the subframe array, find consecutive identical date value data, and divide the subframe array into several interval arrays;
[0026] Obtain the time value data of the interval array, and combine the date value data of the interval array with the time value data to obtain the base timestamp data of the interval array;
[0027] The timestamp data of each element in the interval array is obtained by filling in the base timestamp data and the index value;
[0028] By integrating the timestamp data of each element in several interval arrays, the timestamp data of each element in the subframe array is obtained.
[0029] As an improvement to the above scheme, the step of filling the timestamp data of each element in the interval array according to the base timestamp data and the index value includes:
[0030] Starting from the element in the interval array that includes the base timestamp data, the timestamp data of each element in the interval array is obtained by filling in the interval array in either sequential or reverse order according to the index value of each element.
[0031] As an improvement to the above scheme, the process of integrating the timestamp data of each element in several interval arrays to obtain the timestamp data of each element in the subframe array includes:
[0032] Based on the date value data and order of each element in the subframe array, the timestamp data of each element in several interval arrays are integrated into the subframe array;
[0033] The elements in the subframe array that do not contain timestamp data are taken as the third abnormal frame data, and the timestamp data of the third abnormal frame data is filled with binary zeros; thus, the timestamp data of each element in the subframe array is obtained.
[0034] This invention also provides a QAR data processing apparatus, comprising:
[0035] The raw QAR data acquisition module is used to acquire raw QAR data;
[0036] The subframe array generation module is used to find all frame synchronization words in the original QAR data and generate a subframe array; each element of the subframe array includes at least date value data to indicate the date value generated by that element.
[0037] The subframe data value calculation module is used to calculate the subframe data value of each element in the subframe array, and to take the elements whose subframe data values cannot be calculated as the first abnormal frame data.
[0038] The index value calculation module is used to obtain the index value of each element in the subframe array based on the mapping information of the frame counter of the original QAR data and the subframe data value;
[0039] The timestamp data filling module is used to obtain date value data and time value data in the subframe array, and fill the timestamp data of each element in the subframe array according to the date value data, time value data and index value;
[0040] The processed QAR data generation module is used to merge the subframe array to obtain processed QAR data.
[0041] This invention also provides a QAR data processing device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements a QAR data processing method as described in any of the above embodiments.
[0042] Compared with existing technologies, the present invention discloses a method, apparatus, and device for processing QAR data. The method involves: acquiring raw QAR data; searching for all frame synchronization words in the raw QAR data to generate a subframe array; calculating the subframe data value of each element in the subframe array, identifying elements whose subframe data values cannot be calculated as first abnormal frame data; obtaining the index value of each element in the subframe array based on the mapping information of the frame counter in the raw QAR data and the subframe data values; acquiring date value data from the subframe array; filling the timestamp data of each element in the subframe array based on the date value data and the index values; and merging the subframe array to obtain processed QAR data. Using this embodiment of the invention, timing errors in the raw QAR data can be eliminated, and abnormal frame data can be marked, reducing the difficulty of developing subsequent decoding and data monitoring models. Attached Figure Description
[0043] Figure 1 This is a flowchart illustrating the steps of a QAR data processing method provided in an embodiment of the present invention;
[0044] Figure 2 This is a schematic diagram of the structure of a QAR data processing device provided in an embodiment of the present invention. Detailed Implementation
[0045] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0046] In the description and claims, it should be understood that the terms "first," "second," etc., used in the description and claims are only for the purpose of distinguishing the description of the same technical features, and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated, nor necessarily the order of description or chronological order. The terms are interchangeable where appropriate. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature.
[0047] See Figure 1 This is a flowchart illustrating the steps of a QAR data processing method provided in an embodiment of the present invention. In this embodiment, the QAR data processing method is specifically executed through steps S1 to S6:
[0048] S1. Obtain the raw QAR data.
[0049] Understandably, airborne QAR data is written frame by frame into the QAR file in binary form, and the original QAR data is the data stored in the QAR file.
[0050] It should be noted that the original QAR data can be the original QAR data generated in a certain flight segment or the original QAR data of a certain aircraft type. The specific source of the original QAR data does not affect the beneficial effects achieved by the present invention.
[0051] S2. Locate all frame synchronization words in the original QAR data and generate a subframe array.
[0052] It should be noted that in the original QAR data, flight parameters are stored in units of frames. Each frame is divided into multiple subframes, and each subframe includes a synchronization word. The synchronization word is used to identify different subframes, and the number of subframes corresponding to each frame may vary under different specifications. In this embodiment of the invention, the ARINC717 specification is used as an example. Under the ARINC717 specification, flight parameters are stored in units of frames, each frame is divided into 4 subframes, each subframe lasts for 1 second, and one frame lasts for 4 seconds. For each subframe, there is a word of length 256, 512, or 1024, each word has a capacity of 12 bits, occupying 2 bytes for storage. The first word of the subframe is the frame synchronization word, and different manufacturers' equipment has different frame synchronization words.
[0053] S3. Calculate the subframe data value of each element in the subframe array, and take the elements whose subframe data values cannot be calculated as the first abnormal frame data.
[0054] It should be noted that those skilled in the art can obtain the flight data parameters and parameter values stored in the subframes of each element by calculating the subframe data values of each element in the subframe array. However, it is understood that when the original QAR data has broken frames, incorrect frames, and / or timing errors, the data in the subframe array may not be able to be calculated normally. The embodiments of the present invention can mark abnormal frame data, which can reduce the possibility of numerical misalignment in the decoding results during the subsequent decoding process.
[0055] S4. Based on the mapping information of the frame counter of the original QAR data and the subframe data value, obtain the index value of each element in the subframe array.
[0056] It should be noted that, taking the ARINC717 specification as an example, the frame counter generally appears in a fixed subframe, once every 4 seconds, with a value range of 0 to 4095. Based on the mapping information of the frame counter in the original QAR data, the subframe position of each element in the subframe array within a single frame can be obtained.
[0057] S5. Obtain the date value data and time value data in the subframe array, and fill in the timestamp data of each element in the subframe array according to the date value data, time value data and index value.
[0058] It should be noted that during the operation of the airborne QAR equipment, date and time data are not stored every second. Taking the B737NG aircraft as an example, the date mapping is in a 64-second cycle, and the date data is scattered across six positions within those 64 seconds. Therefore, the timestamp data in the subframe data is incomplete. Using this embodiment of the invention, the timestamp data of each element in the subframe data can be filled in based on the existing date and time data, effectively eliminating timing errors.
[0059] S6. Merge the subframe arrays to obtain the processed QAR data.
[0060] In the above scheme, by dividing the original QAR data into a subframe array and calculating the subframe data value of each element in the subframe array, the elements whose subframe data values cannot be calculated are designated as the first abnormal frame data, which can mark the abnormal frame data and reduce the occurrence of numerical misalignment in the decoding result during the subsequent decoding process; by filling the timestamp data of each element in the subframe array, the timing error of the original QAR data can be eliminated, and timing loss can be avoided.
[0061] As a preferred implementation, step S2, finding all frame synchronization words in the original QAR data and generating a subframe array, includes:
[0062] Find all frame synchronization words in the original QAR data, and divide the original QAR data according to the frame synchronization words to obtain subframe binary data per second;
[0063] A subframe array is generated based on the subframe binary data per second; each element of the subframe array is one second of subframe binary data.
[0064] As an example, Teledyne uses four synchronization words—0247, 05B8, 0A47, and 0DB8—to identify four subframes within a frame. When synchronization word 0247 is detected, it indicates that the subframe is the first subframe of its frame. Until another synchronization word is detected, all data represents the flight data stored in the first subframe. See Table 1, which shows a portion of the raw QAR data for a flight segment. Finding frame synchronization word 0247 in Table 1 indicates that this subframe is the first subframe of its frame. Since there are no other frame synchronization words in Table 1, the remaining data represents the flight data stored in that subframe.
[0065] Table 1. Partial raw QAR data for a certain flight segment.
[0066] Address / bytes 0 2 4 6 8 A C E 00000000 0247 0777 0FFC 0002 0FEF 0FFE 0061 00C8 00000010 0F91 0008 0FDC 0008 0054 0FF0 0019 0000 00000020 0FFB 0C00 0FEC 0001 0FEF 0014 0FFE 0C02 00000030 0FEC 0BE6 0264 0724 0008 0000 0000 0000 00000040 0000 0777 0B36 0844 0FEA 0FF4 003A 07FE 00000050 0C00 0C00 0C02 0231 0830 0801 0000 0000 00000060 0000 0210 014A 020F 010A 0C03 0C01 0CBC 00000070 04B8 04E2 0003 0000 0000 0BFF 0C00 0000
[0067] In a preferred embodiment, step S3, obtaining the index value of each element in the subframe array based on the mapping information of the frame counter of the original QAR data and the subframe data value, is specifically executed through steps S31 to S32:
[0068] S31. Based on the frame counter mapping information of the original QAR data, calculate the frame counter value of the frame counter mapping element in the subframe array; and take the element whose frame counter value cannot be calculated as the second abnormal frame data.
[0069] S32. Calculate the index value of each element in the subframe array based on the value of the frame counter and the subframe data value.
[0070] In the above scheme, since the frame counter generally appears in a fixed subframe, the elements in the subframe array mapped by the frame counter can be obtained based on the mapping information of the frame counter in the original QAR data. By solving the frame counter values of the frame counter mapping elements in the subframe array, the frame counter values corresponding to some elements in the subframe data can be obtained. By calculating the index value of each element in the subframe array, the order of each element can be obtained.
[0071] Further, preferably, step S32, calculating the index value of each element in the subframe array based on the value of the frame counter and the subframe data value, is specifically executed through steps S321 to S323:
[0072] S321. Based on the subframe data values, obtain the continuity of each element in the subframe array.
[0073] S322. Take the frame counter mapping element in the subframe array as the starting position, and calculate the index value of the starting position based on the value of the frame counter.
[0074] Preferably, the index value of the starting position is calculated using FrameCounterIndex = FrameCounter × 4 + SubFrame; where FrameCounter is the value of the frame counter and SubFrame is the subframe data value.
[0075] S323. Based on the continuity of each element in the subframe array, fill in the index values of each element in the subframe array sequentially or in reverse order from the starting position to obtain the index values of each element in the subframe array.
[0076] Preferably, after obtaining the index value of each element in the subframe array based on the mapping information of the frame counter of the original QAR data and the subframe data value in step S3, the method further includes:
[0077] The superframe data value of each element in the subframe array is calculated based on the index value.
[0078] It should be noted that during the operation of the airborne QAR data recording system, for parameters that change very little or do not change throughout the entire flight segment, 16 subframe data will be combined into a superframe for recording, with each superframe having a cycle of 64 seconds.
[0079] Preferably, the superframe data value of each element in the subframe array is calculated by SuperFrame = ((FrameCounterIndex-1)%64) / / 4+1; where FrameCounterIndex is the index value, % is the remainder operation, and / / is the integer division operation.
[0080] The above scheme can obtain not only the subframe data values of each element in the subframe array, but also the superframe data values, thus meeting the parameter requirements under different storage needs of QAR data.
[0081] In a preferred embodiment, step S5, obtaining the date and time value data from the subframe array, and filling in the timestamp data of each element in the subframe array based on the date and time value data and the index value, is specifically executed through steps S51 to S54:
[0082] S51. Obtain the date value data in the subframe array, find consecutive identical date value data, and divide the subframe array into several interval arrays.
[0083] It is understandable that the original QAR data is generally stored in the order of data generation. Therefore, if the date values of any two elements are consecutively the same, it can be considered that the two elements and the elements in the interval they form are all data generated on the same date.
[0084] S52. Obtain the time value data of the interval array, and combine the date value data of the interval array with the time value data to obtain the base timestamp data of the interval array.
[0085] It should be noted that in the original QAR data, date and time values are not stored every second, and in the time mapping relationship, hours, minutes, and seconds may not be stored in the same second subframe data. If the original QAR data is directly decoded, timing errors cannot be detected. The base timestamp data of the interval array obtained in step S52 is the timestamp data of a portion of the elements in the interval array, where the portion of the elements includes both date and time values.
[0086] S53. Based on the reference timestamp data and the index value, fill in the timestamp data of each element in the interval array.
[0087] S54. Integrate the timestamp data of each element in several interval arrays to obtain the timestamp data of each element in the subframe array.
[0088] In the above scheme, the timestamp data of each element in the subframe array can be reasonably filled and obtained based on the date and time values in the original QAR data. The timestamp data can be used to represent the time when the element was generated and to obtain the timing of the original QAR data, so as to eliminate timing errors.
[0089] Further, preferably, step S53, filling in the timestamp data of each element in the interval array according to the reference timestamp data and the index value, includes:
[0090] Starting from the element in the interval array that includes the base timestamp data, the timestamp data of each element in the interval array is obtained by filling in the interval array in either sequential or reverse order according to the index value of each element.
[0091] Preferably, step S54, integrating the timestamp data of each element in several interval arrays to obtain the timestamp data of each element in the subframe array, includes:
[0092] Based on the date value data and order of each element in the subframe array, the timestamp data of each element in several interval arrays are integrated into the subframe array;
[0093] The elements in the subframe array that do not contain timestamp data are taken as the third abnormal frame data, and the timestamp data of the third abnormal frame data is filled with binary zeros; thus, the timestamp data of each element in the subframe array is obtained.
[0094] In the above scheme, since the subframe array is divided into several interval arrays based on the consecutive identical date value data, when timing errors, frame errors, frame breaks, etc. occur, some elements may not be divided into any interval array. Therefore, it is impossible to obtain the timestamp data of the third abnormal frame data based on the timestamp data of each element in the obtained interval array. However, in order to ensure the integrity of the data, in this embodiment of the invention, binary zeros are used to fill the timestamp data of the third abnormal frame data.
[0095] The method for processing QAR data provided in this embodiment of the invention divides the original QAR data into a subframe array and calculates the subframe data value of each element in the subframe array. Elements whose subframe data values cannot be calculated are designated as first abnormal frame data, which can mark abnormal frame data and reduce the occurrence of numerical misalignment in the decoding results during subsequent decoding. By filling the timestamp data of each element in the subframe array, timing errors in the original QAR data can be eliminated, timing loss can be avoided, and the development difficulty of subsequent decoding and data monitoring models can be reduced.
[0096] Please see Figure 2 , Figure 2 This is a schematic diagram of a QAR data processing device provided in an embodiment of the present invention. The QAR data processing device includes a raw QAR data acquisition module 11, a subframe array generation module 12, a subframe data value calculation module 13, an index value calculation module 14, a timestamp data filling module 15, and a processed QAR data generation module 16, wherein:
[0097] Raw QAR data acquisition module 11 is used to acquire raw QAR data;
[0098] Subframe array generation module 12 is used to find all frame synchronization words in the original QAR data and generate a subframe array; each element of the subframe array includes at least date value data to indicate the date value generated by the element.
[0099] The subframe data value calculation module 13 is used to calculate the subframe data value of each element in the subframe array, and to take the elements whose subframe data values cannot be calculated as the first abnormal frame data.
[0100] The index value calculation module 14 is used to obtain the index value of each element in the subframe array based on the mapping information of the frame counter of the original QAR data and the subframe data value.
[0101] The timestamp data filling module 15 is used to obtain date value data and time value data in the subframe array, and fill the timestamp data of each element in the subframe array according to the date value data, time value data and index value;
[0102] The processed QAR data generation module 16 is used to merge the subframe array to obtain processed QAR data.
[0103] It should be noted that those skilled in the art can calculate the subframe data values of each element in the subframe array to obtain the flight data parameters and parameter values stored in the subframes of each element. However, it is understood that when the original QAR data has broken frames, incorrect frames, and / or timing errors, the data in the subframe array may not be able to be calculated normally. The embodiments of the present invention can mark abnormal frame data, which can reduce the possibility of numerical misalignment in the decoding results during subsequent decoding processes.
[0104] In the above scheme, by dividing the original QAR data into a subframe array and calculating the subframe data value of each element in the subframe array, the elements whose subframe data values cannot be calculated are designated as the first abnormal frame data, which can mark the abnormal frame data and reduce the occurrence of numerical misalignment in the decoding result during the subsequent decoding process; by filling the timestamp data of each element in the subframe array, the timing error of the original QAR data can be eliminated, and timing loss can be avoided.
[0105] In a preferred embodiment, the subframe array generation module 12 is used for:
[0106] Find all frame synchronization words in the original QAR data, and divide the original QAR data according to the frame synchronization words to obtain subframe binary data per second;
[0107] A subframe array is generated based on the subframe binary data per second; each element of the subframe array is one second of subframe binary data.
[0108] In a preferred embodiment, the subframe data value calculation module 13 is used for:
[0109] Based on the frame counter mapping information of the original QAR data, the frame counter values of the frame counter mapping elements in the subframe array are calculated; elements whose frame counter values cannot be calculated are taken as second abnormal frame data.
[0110] The index value of each element in the subframe array is calculated based on the value of the frame counter and the subframe data value.
[0111] In the above scheme, since the frame counter generally appears in a fixed subframe, the elements in the subframe array mapped by the frame counter can be obtained based on the mapping information of the frame counter in the original QAR data. By solving the frame counter values of the frame counter mapping elements in the subframe array, the frame counter values corresponding to some elements in the subframe data can be obtained. By calculating the index value of each element in the subframe array, the order of each element can be obtained.
[0112] Further, preferably, the step of calculating the index value of each element in the subframe array based on the value of the frame counter and the subframe data value includes:
[0113] Based on the subframe data values, the continuity of each element in the subframe array is obtained;
[0114] The frame counter mapping element in the subframe array is used as the starting position, and the index value of the starting position is calculated based on the value of the frame counter.
[0115] Based on the continuity of each element in the subframe array, the index values of each element in the subframe array are obtained by filling in the subframe array sequentially or in reverse order from the starting position.
[0116] Preferably, the index value of the starting position is calculated using FrameCounterIndex = FrameCounter × 4 + SubFrame; where FrameCounter is the value of the frame counter and SubFrame is the subframe data value.
[0117] Preferably, the QAR data processing device further includes a superframe data value calculation module, which is used to: calculate the superframe data value of each element in the subframe array according to the index value.
[0118] Preferably, the superframe data value of each element in the subframe array is calculated by SuperFrame = ((FrameCounterIndex-1)%64) / / 4+1; where FrameCounterIndex is the index value, % is the remainder operation, and / / is the integer division operation.
[0119] The above scheme can obtain not only the subframe data values of each element in the subframe array, but also the superframe data values, thus meeting the parameter requirements under different storage needs of QAR data.
[0120] In a preferred embodiment, the timestamp data filling module 15 is used for:
[0121] Obtain the date value data in the subframe array, find consecutive identical date value data, and divide the subframe array into several interval arrays;
[0122] Obtain the time value data of the interval array, and combine the date value data of the interval array with the time value data to obtain the base timestamp data of the interval array;
[0123] The timestamp data of each element in the interval array is obtained by filling in the base timestamp data and the index value;
[0124] By integrating the timestamp data of each element in several interval arrays, the timestamp data of each element in the subframe array is obtained.
[0125] It should be noted that in the original QAR data, date and time values are not stored every second, and in the time mapping relationship, hours, minutes, and seconds may not be stored in the same second subframe data. If the original QAR data is directly decoded, timing errors cannot be detected. The base timestamp data of the interval array obtained in step S52 is the timestamp data of a portion of the elements in the interval array, where the portion of the elements includes date values.
[0126] In the above scheme, the timestamp data of each element in the subframe array can be reasonably filled and obtained based on the date and time values in the original QAR data. The timestamp data can be used to represent the time when the element was generated and to obtain the timing of the original QAR data, so as to eliminate timing errors.
[0127] Further, preferably, the step of filling the interval array with timestamp data based on the base timestamp data and the index value includes:
[0128] Starting from the element in the interval array that includes the base timestamp data, the timestamp data of each element in the interval array is obtained by filling in the interval array in either sequential or reverse order according to the index value of each element.
[0129] Preferably, the step of integrating the timestamp data of each element in several interval arrays to obtain the timestamp data of each element in the subframe array includes:
[0130] Based on the date value data and order of each element in the subframe array, the timestamp data of each element in several interval arrays are integrated into the subframe array;
[0131] The elements in the subframe array that do not contain timestamp data are taken as the third abnormal frame data, and the timestamp data of the third abnormal frame data is filled with binary zeros; thus, the timestamp data of each element in the subframe array is obtained.
[0132] In the above scheme, since the subframe array is divided into several interval arrays based on consecutive identical date values, when timing errors occur, some elements may not be assigned to any interval array, making it impossible to obtain their timestamp data. In this embodiment of the invention, these elements are marked as third abnormal frame data. To ensure data integrity, this embodiment proposes filling the timestamp data of the third abnormal frame data with binary zeros. During decoding, subframes with timestamp parameters all zeros can be directly marked as subframes with timing errors.
[0133] The QAR data processing apparatus provided in this embodiment of the invention divides the original QAR data into a subframe array and calculates the subframe data value of each element in the subframe array. Elements whose subframe data values cannot be calculated are designated as first abnormal frame data, which can mark abnormal frame data and reduce the occurrence of numerical misalignment in the decoding results during subsequent decoding. By filling the timestamp data of each element in the subframe array, timing errors in the original QAR data can be eliminated, timing loss can be avoided, and the development difficulty of subsequent decoding and data monitoring models can be reduced.
[0134] This invention also provides a QAR data processing device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements a QAR data processing method as described above. The working principles and beneficial effects of the two are one-to-one, so they will not be described in detail here.
[0135] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0136] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A method for processing QAR data, characterized in that, include Obtain the raw QAR data; Locate all frame synchronization words in the original QAR data and generate a subframe array; The subframe data value of each element in the subframe array is calculated, and the element whose subframe data value cannot be calculated is regarded as the first abnormal frame data. Based on the mapping information of the frame counter of the original QAR data and the subframe data value, the index value of each element in the subframe array is obtained; Obtain the date value data and time value data from the subframe array, and fill the timestamp data of each element in the subframe array according to the date value data, time value data and the index value; The subframe arrays are merged to obtain the processed QAR data.
2. The method for processing QAR data as described in claim 1, characterized in that, The process of finding all frame synchronization words in the original QAR data and generating a subframe array includes: Find all frame synchronization words in the original QAR data, and divide the original QAR data according to the frame synchronization words to obtain subframe binary data per second; A subframe array is generated based on the subframe binary data per second; each element of the subframe array is one second of subframe binary data.
3. The method for processing QAR data as described in claim 1, characterized in that, The step of obtaining the index value of each element in the subframe array based on the mapping information of the frame counter of the original QAR data and the subframe data value includes: Based on the frame counter mapping information of the original QAR data, the frame counter values of the frame counter mapping elements in the subframe array are calculated; elements whose frame counter values cannot be calculated are taken as second abnormal frame data. The index value of each element in the subframe array is calculated based on the value of the frame counter and the subframe data value.
4. The QAR data processing method as described in claim 3, characterized in that, The step of calculating the index value of each element in the subframe array based on the value of the frame counter and the subframe data value includes: Based on the subframe data values, the continuity of each element in the subframe array is obtained; The frame counter mapping element in the subframe array is used as the starting position, and the index value of the starting position is calculated based on the value of the frame counter. Based on the continuity of each element in the subframe array, the index values of each element in the subframe array are obtained by filling in the subframe array sequentially or in reverse order from the starting position.
5. The method for processing QAR data as described in claim 1, characterized in that, After obtaining the index value of each element in the subframe array based on the mapping information of the frame counter of the original QAR data and the subframe data value, the method further includes: The superframe data value of each element in the subframe array is calculated based on the index value.
6. The method for processing QAR data as described in claim 1, characterized in that, The step of obtaining the date value data from the subframe array and filling the timestamp data of each element in the subframe array according to the date value data and the index value includes: Obtain the date value data in the subframe array, find consecutive identical date value data, and divide the subframe array into several interval arrays; Obtain the time value data of the interval array, and combine the date value data of the interval array with the time value data to obtain the base timestamp data of the interval array; The timestamp data of each element in the interval array is obtained by filling in the base timestamp data and the index value; By integrating the timestamp data of each element in several interval arrays, the timestamp data of each element in the subframe array is obtained.
7. A method for processing QAR data as described in claim 6, characterized in that, The step of filling the interval array with timestamp data based on the base timestamp data and the index value includes: Starting from the element in the interval array that includes the base timestamp data, the timestamp data of each element in the interval array is obtained by filling in the interval array in either sequential or reverse order according to the index value of each element.
8. A method for processing QAR data as described in claim 6, characterized in that, The process of integrating the timestamp data of each element in several interval arrays to obtain the timestamp data of each element in the subframe array includes: Based on the date value data and order of each element in the subframe array, the timestamp data of each element in several interval arrays are integrated into the subframe array; The elements in the subframe array that do not contain timestamp data are taken as the third abnormal frame data, and the timestamp data of the third abnormal frame data is filled with binary zeros; thus, the timestamp data of each element in the subframe array is obtained.
9. A QAR data processing apparatus, characterized in that, include: The raw QAR data acquisition module is used to acquire raw QAR data; The subframe array generation module is used to find all frame synchronization words in the original QAR data and generate a subframe array; each element of the subframe array includes at least date value data to indicate the date value generated by that element. The subframe data value calculation module is used to calculate the subframe data value of each element in the subframe array, and to take the elements whose subframe data values cannot be calculated as the first abnormal frame data. The index value calculation module is used to obtain the index value of each element in the subframe array based on the mapping information of the frame counter of the original QAR data and the subframe data value; The timestamp data filling module is used to obtain date value data and time value data in the subframe array, and fill the timestamp data of each element in the subframe array according to the date value data, time value data and index value; The processed QAR data generation module is used to merge the subframe array to obtain processed QAR data.
10. A QAR data processing device, characterized in that, The system includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor, when executing the computer program, implements a method for processing QAR data as described in any one of claims 1 to 8.