Data decoding methods, apparatus, equipment and storage media
By sending an RF carrier to the target detection area and receiving echo-encoded data, and using a synchronization data header and a standard sequence of decoded data for decoding, the problem of data loss and incompleteness in low-frequency readers under long-distance interference is solved, thereby improving the decoding distance and accuracy.
Patent Information
- Application Number
- CN202411742363.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2044-11-29
AI Technical Summary
In existing technologies, low-frequency readers are prone to data decoding failures when there is interference at long distances, resulting in data loss and incompleteness.
By sending an RF carrier to the target detection area, receiving echo-coded data, generating data to be processed based on the echo-coded data, determining the decoding start position using a predefined synchronization data header, and decoding using a pre-configured standard sequence of decoding data.
It improves decoding distance and accuracy, saves storage space and decoding time, and has a faster decoding speed.
Smart Images

Figure CN119544809B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and more specifically, to a data decoding method, apparatus, device, and storage medium. Background Technology
[0002] In the field of underground asset tracking and management, such as underground fiber optic cable management, each fiber optic cable can be identified and located by placing radio frequency identification (RFID) tags on it and scanning it with a specialized reader, thus simplifying the maintenance and management process.
[0003] In existing technologies, low-frequency readers typically decode the raw data acquired from RFID tags by using timers and external interrupt rising and falling edges, thereby acquiring the data from the RFID tags.
[0004] However, this data decoding method is prone to decoding failure due to interference at long distances, resulting in data loss and incompleteness. Summary of the Invention
[0005] The purpose of this application is to address the shortcomings of the prior art by providing a data decoding method, apparatus, device, and storage medium to solve the problems of data loss and incompleteness in the prior art.
[0006] To achieve the above objectives, the technical solutions adopted in the embodiments of this application are as follows:
[0007] In a first aspect, one embodiment of this application provides a data decoding method, the method comprising:
[0008] It sends a radio frequency carrier to the target detection area and receives echo-coded data from the target detection area;
[0009] Based on the echo-coded data, generate the data to be processed corresponding to the echo-coded data;
[0010] Based on the data to be processed and the predefined synchronization data header, determine the decoding start position in the data to be processed;
[0011] Based on the decoding start position and the pre-configured decoding data standard sequence, the data to be processed is decoded to obtain the decoded data corresponding to the echo encoded data.
[0012] In one possible implementation, before generating the data to be processed corresponding to the echo-coded data based on the echo-coded data, the method further includes:
[0013] The echo-coded data is preprocessed to generate preprocessed echo-coded data.
[0014] In one possible implementation, determining the decoding start position in the data to be processed based on the data to be processed and a predefined synchronization header includes:
[0015] Based on the data to be processed, generate the binarized data corresponding to the data to be processed;
[0016] Based on the binarized data and the predefined synchronization data header, determine the decoding start position in the data to be processed.
[0017] In one possible implementation, generating binarized data corresponding to the data to be processed includes:
[0018] Determine the average value of the data to be processed;
[0019] Based on the data to be processed and its average value, generate binarized data corresponding to the data to be processed.
[0020] In one possible implementation, determining the decoding start position in the data to be processed based on the binarized data and a predefined synchronization header includes:
[0021] Based on the binarized data, a data sequence to be compared is generated. The data sequence to be compared includes multiple data to be compared arranged in sequence. The first data to be compared is the value of the first digit in the binarized data. In addition, in two adjacent data to be compared, the latter data to be compared is a combination of the former data to be compared and the last digit of the former data to be compared in the binarized data.
[0022] Calculate the correlation coefficient between each of the data to be compared and the synchronization data header to obtain multiple correlation coefficients;
[0023] Determine the largest correlation coefficient among all the correlation coefficients, and increment the position of the last data point in the data to be compared corresponding to the largest correlation coefficient by one, which is used as the decoding start position.
[0024] In one possible implementation, the step of decoding the data to be processed according to the decoding start position and a pre-configured standard sequence of decoding data to obtain the decoded data corresponding to the echo-coded data includes:
[0025] Based on the decoding start position, determine the data to be decoded in the data to be processed;
[0026] The decoded data is obtained based on the data to be decoded and the standard sequence of the decoded data.
[0027] In one possible implementation, obtaining the decoded data based on the data to be decoded and the standard sequence of the decoded data includes:
[0028] Based on the data to be decoded, a data sequence to be calculated is generated. The data sequence to be calculated includes multiple data to be calculated in sequence. The first data to be calculated is the value at the first position of the data to be decoded. In addition, in two adjacent data to be calculated, the latter data to be calculated is a combination of the former data to be calculated and the data at the next position of the former data to be calculated in the data to be decoded.
[0029] The similarity between each of the data to be calculated and the standard sequence of the decoded data is calculated, and the similarity is judged. If the similarity is greater than a preset threshold, the decoded data corresponding to the similarity is assigned a first target value; otherwise, the decoded data corresponding to the similarity is assigned a second target value.
[0030] Secondly, another embodiment of this application provides a data decoding apparatus, the apparatus comprising:
[0031] The receiving module is used to send radio frequency carriers to the target detection area and receive echo-coded data from the target detection area;
[0032] The generation module is used to generate the data to be processed corresponding to the echo-coded data based on the echo-coded data;
[0033] The determining module is used to determine the decoding start position in the data to be processed based on the data to be processed and a predefined synchronization data header;
[0034] The decoding module is used to decode the data to be processed according to the decoding start position and the pre-configured decoding data standard sequence to obtain the decoded data corresponding to the echo encoded data.
[0035] In one possible implementation, before the generation module, a preprocessing module is further included, which is used to preprocess the echo-coded data to generate preprocessed echo-coded data.
[0036] In one possible implementation, the determining module is specifically used for:
[0037] Based on the data to be processed, generate the binarized data corresponding to the data to be processed;
[0038] Based on the binarized data and the predefined synchronization data header, determine the decoding start position in the data to be processed.
[0039] In one possible implementation, the determining module is specifically used for:
[0040] Determine the average value of the data to be processed;
[0041] Based on the data to be processed and its average value, generate binarized data corresponding to the data to be processed.
[0042] In one possible implementation, the determining module is specifically used for:
[0043] Based on the binarized data, a data sequence to be compared is generated. The data sequence to be compared includes multiple data to be compared arranged in sequence. The first data to be compared is the value of the first digit in the binarized data. In addition, in two adjacent data to be compared, the latter data to be compared is a combination of the former data to be compared and the last digit of the former data to be compared in the binarized data.
[0044] Calculate the correlation coefficient between each of the data to be compared and the synchronization data header to obtain multiple correlation coefficients;
[0045] Determine the largest correlation coefficient among all the correlation coefficients, and increment the position of the last data point in the data to be compared corresponding to the largest correlation coefficient by one, which is used as the decoding start position.
[0046] In one possible implementation, the decoding module is specifically used for:
[0047] Based on the decoding start position, determine the data to be decoded in the data to be processed;
[0048] The decoded data is obtained based on the data to be decoded and the standard sequence of the decoded data.
[0049] In one possible implementation, the decoding module is specifically used for:
[0050] Based on the data to be decoded, a data sequence to be calculated is generated. The data sequence to be calculated includes multiple data to be calculated in sequence. The first data to be calculated is the value at the first position of the data to be decoded. In addition, in two adjacent data to be calculated, the latter data to be calculated is a combination of the former data to be calculated and the data at the next position of the former data to be calculated in the data to be decoded.
[0051] The similarity between each of the data to be calculated and the standard sequence of the decoded data is calculated, and the similarity is judged. If the similarity is greater than a preset threshold, the decoded data corresponding to the similarity is assigned a first target value; otherwise, the decoded data corresponding to the similarity is assigned a second target value.
[0052] Thirdly, another embodiment of this application provides an electronic device, including: a processor, a storage medium, and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of any of the methods described in the first aspect above.
[0053] Fourthly, another embodiment of this application provides a storage medium storing a computer program, which, when executed by a processor, performs the steps of any of the methods described in the first aspect above.
[0054] The beneficial effects of this application are as follows: by sending a radio frequency carrier to the target detection area and receiving echo-coded data from the target detection area, and generating data to be processed corresponding to the echo-coded data, the decoding start position in the data to be processed can be determined based on the data to be processed and a predefined synchronization data header. Then, the data to be processed is decoded according to the decoding start position and a pre-configured decoding data standard sequence to obtain the decoded data corresponding to the echo-coded data. This greatly improves the decoding distance and decoding accuracy. At the same time, since the decoding start position is determined first through a predefined synchronization data header and then the decoding is performed through a pre-configured decoding data standard sequence, this application also has the advantage of fast decoding speed, saving storage space and decoding time. Attached Figure Description
[0055] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0056] Figure 1 A schematic diagram of a scenario for the data decoding method provided in this application embodiment;
[0057] Figure 2 A schematic flowchart of a data decoding method provided in an embodiment of this application;
[0058] Figure 3 This is a flowchart illustrating the process of determining the decoding start position in the data to be processed in the data decoding method provided in this application embodiment;
[0059] Figure 4 This is a flowchart illustrating the process of determining the decoding start position in the data to be processed in the data decoding method provided in this application embodiment;
[0060] Figure 5 This is a flowchart illustrating the process of determining the decoding start position in the data to be processed in the data decoding method provided in this application embodiment;
[0061] Figure 6 This is a schematic flowchart illustrating the process of obtaining decoded data corresponding to echo-encoded data in the data decoding method provided in this application embodiment;
[0062] Figure 7 A flowchart illustrating the process of obtaining decoded data in the data decoding method provided in this application embodiment;
[0063] Figure 8 A schematic diagram of a data decoding device provided in an embodiment of this application;
[0064] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0065] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It should be understood that the accompanying drawings in this application are for illustrative and descriptive purposes only and are not intended to limit the scope of protection of this application. Furthermore, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of this application. It should be understood that the operations in the flowcharts may not be implemented in sequence, and steps without logical contextual relationships may be reversed or implemented simultaneously. In addition, those skilled in the art, guided by the content of this application, may add one or more other operations to the flowcharts, or remove one or more operations from the flowcharts.
[0066] Furthermore, the described embodiments are merely some, not all, of the embodiments of this application. The components of the embodiments of this application described and illustrated herein can typically be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0067] It should be noted that the term "comprising" will be used in the embodiments of this application to indicate the presence of the features declared thereafter, but does not exclude the addition of other features.
[0068] In existing technologies, low-frequency readers typically decode the raw data from RFID tags using timers and external interrupt rising and falling edges. However, this data decoding method is prone to decoding failure due to interference at long distances, resulting in data loss and incompleteness.
[0069] In existing technologies, analog signal data can be acquired and correlation peaks can be found by using an analog-to-digital converter (ADC). This decoding method has strong anti-interference ability, but it has many problems such as large space occupation, long calculation time, and complex calculation, and cannot be implemented on low-frequency readers with low main frequency (less than or equal to 72MHz main frequency, 2kRam).
[0070] Based on the aforementioned problems, this application proposes a data decoding method. This method involves sending a radio frequency carrier to a target detection area and receiving echo-coded data from that area. Based on the echo-coded data, it generates data to be processed corresponding to the echo-coded data. This allows the method to determine the decoding start position within the data to be processed based on the data to be processed and a predefined synchronization header. Then, based on the decoding start position and a pre-configured standard sequence of decoding data, the data to be processed is decoded to obtain the decoded data corresponding to the echo-coded data. This significantly improves the decoding distance and accuracy while saving storage space and decoding time.
[0071] First, the relevant scenarios in which the data decoding method provided in the embodiments of this application is applied will be described.
[0072] Understandable. Figure 1 This is a schematic diagram of a scenario for the data decoding method provided in an embodiment of this application, with reference to... Figure 1 As shown in the embodiments of this application, the data decoding method is applied to the data exchange process between the reader and the tag. The tag can be a radio frequency identification tag (RFID), and the reader can be a reader-writer. Spatial coupling of radio frequency signals is achieved between the tag and the reader through a coupling element, thereby enabling data exchange.
[0073] For example, continue to refer to Figure 1 As shown, the tag can be deployed on the underground optical cable to store the attributes of the underground optical cable and the surrounding environmental information. Users can hold a reader and obtain the attribute information of the underground optical cable and the environmental information by executing the data decoding method provided in the embodiments of this application.
[0074] The data decoding method provided in this application will be described in detail below with reference to several embodiments.
[0075] Figure 2 This is a schematic flowchart of a data decoding method provided in an embodiment of this application, referred to... Figure 2 As shown, the executing entity of this method can be any electronic device with processing capabilities, such as the reader mentioned above. The method includes:
[0076] S201. Send an radio frequency carrier to the target detection area and receive echo-coded data from the target detection area.
[0077] Optionally, continue to refer to Figure 1 As shown, the reader can send radio frequency carriers to the target detection area and receive echo-coded data from the target detection area under user operation.
[0078] The target detection area can be understood as the area where the tag may exist, or as the area where any optical cable is located. The radio frequency carrier can be a radio wave, such as an electromagnetic wave. The echo-coded data can be the signal data sent by the tag after receiving the radio frequency carrier; specifically, it is data processed by a specific encoding method. For example, the echo-coded data may include information such as the tag's identifier, ambient temperature and humidity information, and user data of the optical cable.
[0079] S202. Generate the data to be processed corresponding to the echo-coded data based on the echo-coded data.
[0080] It is understandable that after obtaining the echo-coded data, since the echo-coded data is analog signal data, it is necessary to convert the analog signal data into digital signal data before decoding the echo-coded data.
[0081] Optionally, the echo-coded data can be converted from analog to digital to generate the corresponding data to be processed.
[0082] S203. Determine the decoding start position in the data to be processed based on the data to be processed and the predefined synchronization data header.
[0083] It is understandable that after obtaining the data to be processed, the data may contain additional unwanted data. Therefore, it is necessary to first determine the decoding start position in the data to be processed in order to achieve accurate decoding.
[0084] Optionally, the data to be processed can be compared with a predefined synchronization header to determine the decoding start position in the data to be processed. The predefined synchronization header can be understood as a specific data sequence designed and placed at the beginning of the data stream to synchronize the data streams of the receiving and sending ends.
[0085] S204. Based on the decoding start position and the pre-configured decoding data standard sequence, decode the data to be processed to obtain the decoded data corresponding to the echo encoded data.
[0086] Optionally, after determining the decoding start position, the data to be processed can be decoded from the decoding start position according to a pre-configured decoding data standard sequence to obtain the decoded data corresponding to the echo-coded data.
[0087] The pre-configured decoding data standard sequence can be understood as a set of standard data sequences pre-defined and configured for decoding according to specific encoding rules and protocols before data transmission or processing. This set of sequences usually contains a series of specific codewords or symbols used to indicate the standard attributes of the optical cable and standard environmental information, so that the reader can accurately obtain the decoded data by decoding the data standard sequence.
[0088] In this embodiment, by sending a radio frequency carrier to the target detection area and receiving echo-coded data from the target detection area, and generating corresponding data to be processed based on the echo-coded data, the decoding start position in the data to be processed can be determined based on the data to be processed and a predefined synchronization data header. Then, the data to be processed is decoded based on the decoding start position and a pre-configured decoding data standard sequence to obtain the decoded data corresponding to the echo-coded data. This greatly improves the decoding distance and decoding accuracy. At the same time, since the decoding start position is determined first through a predefined synchronization data header and then the decoding is performed through a pre-configured decoding data standard sequence, this application also has the advantage of fast decoding speed, saving storage space and decoding time.
[0089] In one possible implementation, before generating the data to be processed corresponding to the echo-coded data based on the echo-coded data in step S202, the method further includes:
[0090] The echo-coded data is preprocessed to generate preprocessed echo-coded data.
[0091] Optionally, before performing analog-to-digital conversion on the echo-coded data, signal conditioning, such as filtering and amplification, can be applied to the echo-coded data to improve its data quality.
[0092] Figure 3 This is a flowchart illustrating the process of determining the decoding start position in the data to be processed in the data decoding method provided in the embodiments of this application.
[0093] In one possible implementation, refer to Figure 3As shown, the above-mentioned S203, based on the data to be processed and the predefined synchronization data header, determines the decoding start position in the data to be processed, which can be executed according to the following steps, specifically including:
[0094] S301. Generate binarized data corresponding to the data to be processed based on the data to be processed.
[0095] Optionally, after obtaining the data to be processed, the data can be binarized to generate binarized data corresponding to the data to be processed. The binarized data is data in a format containing only two values (such as 0 and 1).
[0096] For example, the data to be processed can be compared with a pre-set binarization threshold to generate binarized data corresponding to the data to be processed.
[0097] S302. Determine the decoding start position in the data to be processed based on the binarized data and the predefined synchronization data header.
[0098] Optionally, after obtaining the binarized data, the binarized data can be compared with a predefined synchronization data header to determine the decoding start position in the data to be processed.
[0099] By generating binarized data corresponding to the data to be processed, noise and redundant information in the data to be processed can be removed. Based on the binarized data and the predefined synchronization data header, the decoding start position in the data to be processed can be determined, which can simplify the complexity of the data processing process and thus quickly locate the decoding start position.
[0100] Figure 4 This is a flowchart illustrating the process of determining the decoding start position in the data to be processed in the data decoding method provided in the embodiments of this application.
[0101] In one possible implementation, refer to Figure 4 As shown, S301 generates binarized data corresponding to the data to be processed based on the data to be processed, including:
[0102] S401. Determine the average value of the data to be processed.
[0103] Optionally, after obtaining the data to be processed, the average value of the data to be processed can be calculated first.
[0104] For example, the data to be processed may include information such as tag identification, ambient temperature and humidity information, and fiber optic cable user data. The average value of the tag identification, the average value of the ambient temperature and humidity information, and the average value of the fiber optic cable user data in the data to be processed can be calculated respectively.
[0105] S402. Generate binarized data corresponding to the data to be processed based on the data to be processed and the average value of the data to be processed.
[0106] Optionally, the label identifier, ambient temperature and humidity information, and optical cable user data in the data to be processed are compared with the average value of the label identifier, ambient temperature and humidity information, and optical cable user data in the data to be processed. If the current data to be processed is greater than the average value of the current data to be processed, the binarized data corresponding to the current data to be processed is assigned a value of 1. If the current data to be processed is less than the average value of the current data to be processed, the binarized data corresponding to the current data to be processed is assigned a value of 0. After all the data to be processed has been compared, the binarized data corresponding to the data to be processed is obtained.
[0107] By determining the average value of the data to be processed, and thus generating the corresponding binarized data, the data processing process can be simplified, thereby improving the decoding speed, saving storage space and decoding time, and also having a strong interference resistance.
[0108] Figure 5 This is a flowchart illustrating the process of determining the decoding start position in the data to be processed in the data decoding method provided in the embodiments of this application.
[0109] In one possible implementation, refer to Figure 5 As shown, S302 above determines the decoding start position in the data to be processed based on the binarized data and the predefined synchronization data header, including:
[0110] S501. Generate a data sequence to be compared based on the binarized data.
[0111] The data sequence to be compared includes multiple data to be compared arranged in sequence. The first data to be compared is the value at the first position in the binary data. In addition, in two adjacent data to be compared, the latter data to be compared is a combination of the former data to be compared and the latter position of the former data to be compared in the binary data.
[0112] For example, taking the binarized data as "10010", the first data to be compared is "1", the second data to be compared is "10", the third data to be compared is "100", the fourth data to be compared is "1001", and the fifth data to be compared is "10010".
[0113] S502. Calculate the correlation coefficient between each data to be compared and the synchronization data header to obtain multiple correlation coefficients.
[0114] Optionally, after obtaining the data sequence to be compared, the correlation coefficient between each data to be compared and the synchronization data header can be calculated to obtain multiple correlation coefficients corresponding to each data to be compared.
[0115] For example, the correlation coefficient R can be calculated using the following formula (1):
[0116]
[0117] Where n is the amount of data to be compared, x i For the data to be compared, y i To synchronize the data header.
[0118] S503. Determine the largest correlation coefficient among all correlation coefficients, and increment the position of the last data point in the data to be compared corresponding to the largest correlation coefficient by one, as the starting position for decoding.
[0119] Optionally, after calculating multiple correlation coefficients, the multiple correlation coefficients can be sorted to determine the correlation coefficient with the largest value among them, which is taken as the maximum correlation coefficient. The position of the last data in the data to be compared corresponding to the maximum correlation coefficient is incremented by one to be used as the decoding start position.
[0120] For example, continuing with the example of binarized data "10010", if the maximum correlation coefficient is the correlation coefficient corresponding to the second data to be compared, "10", then the position after "10" is the starting position at this time.
[0121] By binarizing the data, a sequence of data to be compared is generated, and the correlation coefficient between each data to be compared and the synchronization data header is calculated to obtain multiple correlation coefficients. The largest correlation coefficient is then determined, and the position of the last data in the data to be compared corresponding to the largest correlation coefficient is incremented by one as the decoding start position. This method can quickly determine the decoding start position. In addition, since the calculation of the correlation coefficient only involves addition and XOR operations, it can save a lot of storage space and has strong anti-interference ability.
[0122] Figure 6 This is a schematic flowchart illustrating the process of obtaining decoded data corresponding to echo-encoded data in the data decoding method provided in the embodiments of this application.
[0123] In one possible implementation, refer to Figure 6 As shown, in step S204 above, the data to be processed is decoded according to the decoding start position and the pre-configured standard sequence of decoding data to obtain the decoded data corresponding to the echo-coded data, including:
[0124] S601. Determine the data to be decoded in the data to be processed based on the decoding start position.
[0125] Optionally, after determining the decoding start position, the data to be decoded in the data to be processed can be determined from the decoding start position.
[0126] For example, the data to be decoded may include the identifier of the tag in the data to be processed, environmental temperature and humidity information, and user data of the optical cable.
[0127] S602. Based on the data to be decoded and the standard sequence of the decoded data, obtain the decoded data.
[0128] Optionally, the data to be decoded is compared with a standard sequence of decoded data to obtain the decoded data.
[0129] For example, the decoded data standard sequence may include standard values for the tag identifier in the data to be processed, standard values for the ambient temperature and humidity information, and standard values for the user data of the optical cable. The data to be decoded can be compared with the decoded data standard sequence. If the data to be decoded is different from the decoded data standard sequence, the decoded data standard sequence is used as the corresponding decoded data. If they are the same, the data to be decoded is used as the corresponding decoded data.
[0130] By determining the starting position of the decoding process, the data to be decoded within the data to be processed is identified. The decoded data is obtained using the data to be decoded and the standard sequence of the decoded data. This ensures that only the correct data segments are processed, avoiding the incorrect decoding of other irrelevant data. Furthermore, decoding using the standard sequence of the decoded data can reduce errors during the decoding process and improve the accuracy of the data.
[0131] Figure 7 This is a schematic flowchart illustrating the process of obtaining decoded data in the data decoding method provided in the embodiments of this application.
[0132] In one possible implementation, refer to Figure 7 As shown, S602 above obtains decoded data based on the data to be decoded and the standard sequence of decoded data, including:
[0133] S701. Generate a data sequence to be calculated based on the data to be decoded.
[0134] The data sequence to be calculated includes multiple data points arranged sequentially.
[0135] In this context, the first data to be calculated is the value at the first position of the data to be decoded, and in two adjacent data to be calculated, the latter data to be calculated is a combination of the former data to be calculated and the latter position of the former data to be calculated in the data to be decoded.
[0136] For example, taking the data to be decoded as "10010", the first data to be calculated is "1", the second data to be calculated is "10", the third data to be calculated is "100", the fourth data to be calculated is "1001", and the fifth data to be calculated is "10010".
[0137] S702. Calculate the similarity between each data to be calculated and the standard sequence of the decoded data, and judge each similarity. If the similarity is greater than the preset threshold, assign the decoded data corresponding to the similarity to the first target value; otherwise, assign the decoded data corresponding to the similarity to the second target value.
[0138] Optionally, the similarity between each data to be calculated and the standard sequence of the decoded data can be calculated separately, and each similarity can be compared with a preset threshold. If the similarity is greater than the preset threshold, the decoded data corresponding to the similarity is assigned the first target value; otherwise, the decoded data corresponding to the similarity is assigned the second target value. The similarity calculation can use cosine similarity or the correlation coefficient similarity shown in formula (1) above. The first target value can be 1, and the second target value can be 0.
[0139] For example, continuing with the case where the third data to be calculated is "100", if the similarity between the third data to be calculated and the third standard value in the standard sequence of the decoded data is greater than a preset threshold, then the third bit in the decoded data will be assigned the value 1.
[0140] Using the data to be decoded, a sequence of data to be calculated is generated, and the similarity between each data to be calculated and the standard sequence of decoded data is calculated. The similarity is judged, and if the similarity is greater than a preset threshold, the decoded data corresponding to the similarity is assigned the first target value; otherwise, the decoded data corresponding to the similarity is assigned the second target value. This can quantify the difference between the data to be calculated and the standard sequence of decoded data, thereby improving the overall data processing accuracy. At the same time, it reduces the computational complexity and time cost, and improves the efficiency of data processing.
[0141] Based on the same inventive concept, this application also provides a data decoding device corresponding to the data decoding method. Since the principle of the device in this application is similar to the data decoding method described above in this application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be described again.
[0142] Figure 8 This is a schematic diagram of a data decoding device provided in an embodiment of this application, with reference to... Figure 8 As shown, the device includes: a receiving module 801, a generating module 802, a determining module 803, and a decoding module 804; wherein,
[0143] The receiving module 801 is used to send a radio frequency carrier to the target detection area and receive echo-coded data from the target detection area;
[0144] The generation module 802 is used to generate the data to be processed corresponding to the echo-coded data based on the echo-coded data;
[0145] The determination module 803 is used to determine the decoding start position in the data to be processed based on the data to be processed and a predefined synchronization data header;
[0146] The decoding module 804 is used to decode the data to be processed according to the decoding start position and the pre-configured standard sequence of decoding data to obtain the decoded data corresponding to the echo encoded data.
[0147] In one possible implementation, before the generation module 802, a preprocessing module is included, which is used to preprocess the echo-coded data to generate preprocessed echo-coded data.
[0148] In one possible implementation, module 803 is specifically used for:
[0149] Generate binarized data corresponding to the data to be processed based on the data to be processed.
[0150] Based on the binarized data and the predefined synchronization data header, determine the decoding start position in the data to be processed.
[0151] In one possible implementation, module 803 is specifically used for:
[0152] Determine the average value of the data to be processed;
[0153] Based on the data to be processed and its average value, generate the corresponding binarized data.
[0154] In one possible implementation, module 803 is specifically used for:
[0155] Based on the binarized data, a data sequence to be compared is generated. The data sequence to be compared includes multiple data to be compared arranged in sequence. The first data to be compared is the value of the first position in the binarized data. In addition, in two adjacent data to be compared, the latter data to be compared is a combination of the former data to be compared and the latter position of the former data to be compared in the binarized data.
[0156] Calculate the correlation coefficient between each data to be compared and the synchronization data header to obtain multiple correlation coefficients;
[0157] Determine the largest correlation coefficient among all correlation coefficients, and increment the position of the last data point in the data to be compared corresponding to the largest correlation coefficient by one, which will be used as the starting position for decoding.
[0158] In one possible implementation, the decoding module 804 is specifically used for:
[0159] Based on the decoding start position, determine the data to be decoded in the data to be processed;
[0160] Based on the data to be decoded and the standard sequence of decoded data, the decoded data is obtained.
[0161] In one possible implementation, the decoding module 804 is specifically used for:
[0162] Based on the data to be decoded, a sequence of data to be calculated is generated. The sequence of data to be calculated includes multiple data to be calculated in sequence. The first data to be calculated is the value at the first position of the data to be decoded. In addition, in two adjacent data to be calculated, the latter data to be calculated is a combination of the former data to be calculated and the data at the next position of the former data to be calculated in the data to be decoded.
[0163] Calculate the similarity between each data to be calculated and the standard sequence of the decoded data, and judge each similarity. If the similarity is greater than the preset threshold, the decoded data corresponding to the similarity is assigned the first target value; otherwise, the decoded data corresponding to the similarity is assigned the second target value.
[0164] The processing flow of each module in the device and the interaction flow between each module can be referred to the relevant descriptions in the above method embodiments, and will not be detailed here.
[0165] This application also provides an electronic device, such as... Figure 9 As shown, Figure 9 A schematic diagram of the structure of an electronic device provided in this application embodiment includes: a processor 901, a memory 902, and optionally, a bus 903. The memory 902 stores machine-readable instructions executable by the processor 901 (e.g., ...). Figure 8 The device includes a receiving module 801, a generating module 802, a determining module 803, and a decoding module 804 (with corresponding execution instructions, etc.). When the electronic device 900 is running, the processor 901 and the memory 902 communicate via a bus 903. When the machine-readable instructions are executed by the processor 901, the steps of the above-mentioned data decoding method are performed.
[0166] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps of the above-described data decoding method.
[0167] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems and devices described above can be referred to the corresponding processes in the method embodiments, and will not be repeated here. In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed mutual coupling or direct coupling or communication connection can be through some communication interfaces; the indirect coupling or communication connection of devices or modules can be electrical, mechanical, or other forms.
[0168] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. If the functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0169] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.
Claims
1. A data decoding method, characterized in that, include: It sends a radio frequency carrier to the target detection area and receives echo-coded data from the target detection area; Based on the echo-coded data, generate the data to be processed corresponding to the echo-coded data; Based on the data to be processed and the predefined synchronization data header, determine the decoding start position in the data to be processed; Based on the decoding start position, determine the data to be decoded in the data to be processed; Based on the data to be decoded, a data sequence to be calculated is generated. The data sequence to be calculated includes multiple data to be calculated in sequence. The first data to be calculated is the value at the first position of the data to be decoded. In addition, in two adjacent data to be calculated, the latter data to be calculated is a combination of the former data to be calculated and the data at the next position of the former data to be calculated in the data to be decoded. The similarity between each of the data to be calculated and the standard sequence of the decoded data is calculated, and the similarity is judged. If the similarity is greater than a preset threshold, the decoded data corresponding to the similarity is assigned a first target value; otherwise, the decoded data corresponding to the similarity is assigned a second target value.
2. The data decoding method according to claim 1, characterized in that, Before generating the data to be processed corresponding to the echo-coded data based on the echo-coded data, the process further includes: The echo-coded data is preprocessed to generate preprocessed echo-coded data.
3. The data decoding method according to claim 1, characterized in that, The step of determining the decoding start position in the data to be processed based on the data to be processed and a predefined synchronization data header includes: Based on the data to be processed, generate the binarized data corresponding to the data to be processed; Based on the binarized data and the predefined synchronization data header, determine the decoding start position in the data to be processed.
4. The data decoding method according to claim 3, characterized in that, The step of generating binarized data corresponding to the data to be processed includes: Determine the average value of the data to be processed; Based on the data to be processed and its average value, generate binarized data corresponding to the data to be processed.
5. The data decoding method according to claim 3, characterized in that, The step of determining the decoding start position in the data to be processed based on the binarized data and a predefined synchronization data header includes: Based on the binarized data, a data sequence to be compared is generated. The data sequence to be compared includes multiple data to be compared arranged in sequence. The first data to be compared is the value of the first digit in the binarized data. In addition, in two adjacent data to be compared, the latter data to be compared is a combination of the former data to be compared and the last digit of the former data to be compared in the binarized data. Calculate the correlation coefficient between each of the data to be compared and the synchronization data header to obtain multiple correlation coefficients; Determine the largest correlation coefficient among all the correlation coefficients, and increment the position of the last data point in the data to be compared corresponding to the largest correlation coefficient by one, which is used as the decoding start position.
6. A data decoding device, characterized in that, include: The receiving module is used to send radio frequency carriers to the target detection area and receive echo-coded data from the target detection area; The generation module is used to generate the data to be processed corresponding to the echo-coded data based on the echo-coded data; The determining module is used to determine the decoding start position in the data to be processed based on the data to be processed and a predefined synchronization data header; The decoding module is used to determine the data to be decoded in the data to be processed based on the decoding start position; generate a data sequence to be calculated based on the data to be decoded, the data sequence to be calculated including multiple data to be calculated in sequence, the first data to be calculated is the value of the first position of the data to be decoded, and in two adjacent data to be calculated, the latter data to be calculated is the combination of the former data to be calculated and the data of the latter position of the former data to be calculated in the data to be decoded; calculate the similarity between each data to be calculated and the standard sequence of the decoded data, and judge each similarity. If the similarity is greater than a preset threshold, the decoded data corresponding to the similarity is assigned a first target value; otherwise, the decoded data corresponding to the similarity is assigned a second target value.
7. An electronic device, characterized in that, include: A processor and a memory, the memory storing machine-readable instructions executable by the processor, which, when the electronic device is in operation, are executed by the processor to perform the steps of the data decoding method as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, performs the steps of the data decoding method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Manchester decoding method and device and readable storage medium
CN114826276A
Backscatter communication method based on MIMO (multiple input multiple output) characteristics of LTE (long term evolution) signals
CN118842687A