A Data Processing Method and System for Fusion Terminals Based on Frame Repair

By detecting and repairing damaged data frames, the problem of packet loss and frame incompleteness in the data transmission process of the fused terminal is solved, improving the integrity and timeliness of data transmission, and is applicable to wireless communication technologies such as LoRa.

CN120729478BActive Publication Date: 2025-11-14CHENGDU HANDU TECH
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202511172711.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-08-21
Publication Date
2025-11-14
Estimated Expiration
2045-08-21

AI Technical Summary

Technical Problem

Converged terminals suffer from packet loss and frame incompleteness during data transmission, affecting the integrity and timeliness of data transmission. This is particularly pronounced in scenarios involving real-time data acquisition, concurrent multi-service operations, and heterogeneous network switching, resulting in compromised accuracy and timeliness of core services.

Method used

By detecting the integrity of data frames, identifying damaged data frames, using a sample library to determine the data type of the damaged data frames, repairing them according to the type, and using a check segment to verify the repaired data segment, the damaged data frames can be repaired.

Benefits of technology

It improves the integrity and timeliness of data transmission, reduces network error retransmissions, avoids channel congestion caused by network fluctuations, and is suitable for wireless communication technologies such as LoRa.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120729478B_ABST
    Figure CN120729478B_ABST
Patent Text Reader

Abstract

This invention discloses a data processing method and system for fused terminals based on frame repair, applied in the field of intelligent communication technology. The method includes: detecting the integrity of received data frames and identifying incomplete data frames as damaged data frames; identifying the data type of the data segments of the damaged data frames based on their damage status, neighboring data frames, and a sample library, and determining whether the damaged data frames are repairable; repairing repairable damaged data frames according to their data type, verifying the repaired data segments using a checksum, and using the repaired damaged data frames as normal data frames. This invention achieves data frame segment repair, effectively reducing network error retransmissions, improving data transmission integrity and timeliness, and avoiding network channel congestion caused by network fluctuations, making it extremely applicable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of intelligent communication technology, and specifically to a converged terminal data processing method and system based on frame repair. Background Technology

[0002] During data transmission, converged terminals face complex issues of packet loss and frame incompleteness across multiple scenarios and dimensions, as specifically manifested as follows:

[0003] In real-time data acquisition and transmission scenarios, packet loss is particularly prominent. When the terminal and the master station exchange high-frequency measurement data (such as uploading power parameters at the second level), some data packets are often lost due to fluctuations in the wireless communication link signal (such as signal attenuation in edge areas) or channel congestion. For example, the loss of key monitoring data such as three-phase current and voltage during transmission will prevent the master station from fully obtaining the real-time status of the power grid monitored by the terminal, directly affecting the accuracy of load forecasting and fault diagnosis.

[0004] The problem of incomplete frames manifests primarily as damage to the integrity of the protocol data layer. During downlink command transmission between the terminal and sub-devices, due to baud rate mismatches or electromagnetic interference in serial communication, issues such as missing frame headers or trailers, or truncated data segments, can easily occur. For example, if a remote control command frame loses its end-check bit, the master station cannot pass the CRC check after receiving it, leading to command execution failure and delaying the timeliness of remote device operation.

[0005] In scenarios involving concurrent transmission of multiple services, the problem becomes even more complex. When a terminal simultaneously handles tasks such as uploading metering data, sending status monitoring messages, and pushing alarm information, internal buffer queue overflow or priority scheduling mechanism failure can lead to batch packet loss. For example, when distribution network fault alarm information and regular meter reading data compete for transmission resources, if the terminal has not set a priority channel for alarm information, alarm frames may be lost, delaying fault response.

[0006] Furthermore, significant risks exist during heterogeneous network handover. When converged terminals handover between 4G / 5G and power grid private wireless networks, data packet timeouts due to handover latency or format compatibility issues during network protocol conversion can lead to data frame structure corruption. Some frames contain both the old network's encapsulation format and the new network's header information, forming "hybrid frames." These frames are discarded directly by the master station due to format abnormalities, causing data transmission interruption.

[0007] These problems not only reduce the integrity and timeliness of data transmission, but also pose a potential impact on core businesses such as data-based power grid dispatching and equipment operation and maintenance, becoming a key bottleneck restricting the efficient operation of the new power system supported by the converged terminal. Summary of the Invention

[0008] In order to at least overcome the above-mentioned shortcomings in the prior art, the purpose of this application is to provide a fusion terminal data processing method and system based on frame repair.

[0009] In a first aspect, embodiments of this application provide a fusion terminal data processing method based on frame repair, including:

[0010] The integrity of received data frames is detected, and incomplete data frames are treated as damaged data frames.

[0011] Based on the damage status of the damaged data frame, its neighboring data frames, and the sample library, the data type of the data segment of the damaged data frame is identified, and it is determined whether the damaged data frame is repairable. The data types include numerical, status, and fixed types. The sample library includes the arrangement order of identifiers and data symbols in normal data segments corresponding to different data types.

[0012] Repair the damaged data frame according to the data type, and verify the repaired data frame through a check segment. Then, use the repaired damaged data frame as a normal data frame.

[0013] In one possible implementation, the data type for identifying the data segments of the damaged data frame includes:

[0014] The moment when the damaged data frame is received is obtained as the receiving moment, and a request instruction that is earlier than the receiving moment and whose time difference with the receiving moment is less than a preset value is obtained; the request instruction is a broadcast instruction for request data issued by the fusion terminal.

[0015] When the request instruction exists, it is determined that the data type corresponding to the request instruction is the data type of the data segment of the damaged data frame;

[0016] When the request instruction does not exist, the data type of the data segment of the damaged data frame is queried according to the adjacent data frames of the damaged data frame; the adjacent data frame is a normal data frame whose time difference between the received time and the received time is less than a preset value.

[0017] In one possible implementation, querying the data type of a data segment of a damaged data frame based on its neighboring data frames includes:

[0018] When multiple adjacent data frames correspond to the same data type, that data type shall be used as the data type of the data segment of the damaged data frame;

[0019] When multiple adjacent data frames correspond to different data types, the data type of the damaged data frame's data segment is obtained by identifying the fields in the data segment of the damaged data frame through the sample library.

[0020] In one possible implementation, identifying fields in the data segments of the damaged data frame using a sample library includes:

[0021] The data segments of the damaged data frame are traversed and searched to find characters in the data segments that match the identifier as identification symbols;

[0022] When the identification symbol is located in the data segment of the damaged data frame before the position of the identifier in the normal data segment and the position difference is an integer multiple of the chip length, or at the position of the identifier in the normal data segment, it is determined that the identification symbol is the same as the identifier.

[0023] In one possible implementation, determining whether the damaged data frame is repairable includes:

[0024] When the data type of the data segment of the damaged data frame cannot be identified, the damaged data frame is determined to be unrepairable.

[0025] When the data segment of the damaged data frame is of numerical or status type, and both the data segment and the check segment are damaged, the damaged data frame is determined to be unrepairable.

[0026] When the header segment of the damaged data frame is damaged, the damaged data frame is determined to be unrepairable.

[0027] In one possible implementation, repairing the repairable damaged data frame includes:

[0028] When the data type of the damaged data frame is fixed, the normal data segment in the sample library corresponding to the fixed type is used as the data segment of the damaged data frame.

[0029] In one possible implementation, repairing the repairable damaged data frame includes:

[0030] When the data type of the damaged data frame is state type, the normal data segment in the sample library corresponding to the state type is extracted as the first expected data segment;

[0031] For the state value portion of the first expected data segment, a random value is selected without replacement within the available range of the state value portion until the check value of the first expected data segment satisfies the check segment of the damaged data frame.

[0032] The final first expected data segment is used as the data segment of the damaged data frame.

[0033] In one possible implementation, repairing the repairable damaged data frame includes:

[0034] When the data type of the damaged data frame is numerical, the normal data segment in the sample library corresponding to the numerical type is extracted as the second expected data segment;

[0035] Obtain the source address of the damaged data frame and query the historical data of the corresponding numerical part of the data type reported by the device corresponding to the source address.

[0036] The second expected data segment is repaired based on the historical data.

[0037] In one possible implementation, repairing the second expected data segment based on the historical data includes:

[0038] Determine the data range based on the historical data;

[0039] Within the data interval, a random value is selected without replacement as the data part of the second expected data segment until the check value of the second expected data segment satisfies the check segment of the damaged data frame.

[0040] The final second expected data segment is used as the data segment of the damaged data frame.

[0041] Secondly, this application also provides a fusion terminal data processing system based on frame repair, including:

[0042] The converged terminal is configured as follows:

[0043] The integrity of received data frames is detected, and incomplete data frames are treated as damaged data frames.

[0044] Based on the damage status of the damaged data frame, its neighboring data frames, and the sample library, the data type of the data segment of the damaged data frame is identified, and it is determined whether the damaged data frame is repairable. The data types include numerical, status, and fixed types. The sample library includes the arrangement order of identifiers and data symbols in normal data segments corresponding to different data types.

[0045] Repair the damaged data frame according to the data type, and verify the repaired data frame through a check segment. Then, use the repaired damaged data frame as a normal data frame.

[0046] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0047] This invention relates to a fusion terminal data processing method and system based on frame repair, which realizes the repair of data frame segments, effectively reduces network error retransmission, improves the integrity and timeliness of data transmission, and avoids network channel congestion caused by network fluctuations, making it extremely applicable. Attached Figure Description

[0048] The accompanying drawings, which are included to provide a further understanding of embodiments of the invention and form part of this application, do not constitute a limitation thereof. In the drawings:

[0049] Figure 1 This is a schematic diagram of the method steps in an embodiment of this application;

[0050] Figure 2 This is a schematic diagram of the system architecture of an embodiment of this application. Detailed Implementation

[0051] 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.

[0052] 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.

[0053] Please refer to the following: Figure 1 This is a flowchart illustrating the fusion terminal data processing method based on frame repair provided in an embodiment of the present invention. Further, the fusion terminal data processing method based on frame repair may specifically include the content described in steps S1-S3.

[0054] S1: Detect the integrity of the received data frames and treat incomplete data frames as damaged data frames;

[0055] S2: Based on the damage status of the damaged data frame, the adjacent data frames of the damaged data frame, and the sample library, identify the data type of the data segment of the damaged data frame, and determine whether the damaged data frame is repairable; the data type includes numerical, status, and fixed types; the sample library includes the arrangement order of identifiers and data symbols in normal data segments corresponding to different data types;

[0056] S3: Repair the repairable damaged data frame according to the data type, and verify the repaired data segment through the check segment, and use the repaired damaged data frame as a normal data frame.

[0057] In the implementation of this application, the main communication methods used in the Internet of Things (IoT) are wireless communication technologies, especially long-range, high-interference-resistance technologies such as LoRa, which are widely used in IoT. However, when interference occurs during communication after LoRa networking, the receiving end will directly discard incomplete frames and then receive data frames through retransmission. This method can easily cause channel congestion within the communication network, thereby exacerbating data frame damage. In scientific practice, the inventors discovered that for LoRa, a communication method with strong anti-interference capabilities, the signal is modulated into fixed-length chips for transmission. Therefore, when data frame damage occurs, the lost data is measured in chips, exhibiting strong regularity. Furthermore, in the power grid of a distribution area, the length of each communication data frame is not very long, which provides the possibility for data frame repair.

[0058] In this embodiment, when verifying the integrity of a data frame, it is generally necessary to first identify the frame header, data segment, and check segment, then identify the integrity of the frame header, and verify the data segment through the check segment. Since the frame header contains the source address and destination address, it is not easy to determine whether it is a data frame that the current device needs to receive after damage, and it can be directly discarded; however, when the check segment or data segment is damaged, the incomplete data frame can be regarded as a damaged data frame to further determine whether it can be repaired.

[0059] In this embodiment of the application, it is necessary to determine the data type of the damaged data frame before repair. The data types in this embodiment of the application mainly include three types: numerical, status, and fixed.

[0060] Fixed type is generally a data segment with fixed data segment content, such as a heartbeat frame, whose content does not change with changes in the source device information; for example, the data segment content of a heartbeat frame is fixed as F1 01, and there are no other forms of heartbeat frame data segments within the same network.

[0061] Status-type data segments are generally data segments whose possible character types are fixed and do not exceed three, such as alarm frames and switch frames. For example, the data segment content of a water immersion alarm frame is water immersion + status value, expressed in hexadecimal as CA 01, CA 02, or CA 00, where CA represents the water immersion status, 01 represents the risk of water immersion, 02 represents that water immersion has occurred, and 00 represents that there is no risk of water immersion. In this case, the status value corresponds to only three character types.

[0062] Numerical data segments are typically data segments of frames from which end devices report different types of data. They are generally formatted as data type + data value. For example, when the reported current value is 0.53A, the data segment is A1 FF 02 12, where A1 represents the current value, FF is a separator, and 02 12 represents 530. When the reported voltage value is 225V, the data segment is A2 FF 08 E1. When the reported leakage current value is 13mA, the data segment is A3 FF 00 0D.

[0063] In this embodiment of the application, a sample library also needs to be pre-configured. The sample library stores the arrangement order of identifiers and data symbols in the data segments of frames of each data type. The identifiers are fixed symbols, such as CA A1A2 FF in the above embodiment, while the data symbols are numerical contents.

[0064] In this embodiment, determining the data type of a damaged data frame requires identification based on the damage condition, adjacent data frames, and a sample library; one or more of these methods can be used. It should be understood that some private frames may be encoded with data types. If the encoding is complete, the data type can be determined by matching the encoding to the corresponding data type in the sample library. If the encoding is missing or damaged, a comprehensive assessment is required. Based on the data type, it can be determined whether the damaged data frame is repairable, and targeted repair can be performed. For unrepairable data frames, a retransmission request is made to retrieve the data. This embodiment achieves data frame segment repair, effectively reducing network error retransmissions, improving data transmission integrity and timeliness, and avoiding network channel congestion caused by network fluctuations.

[0065] In one possible implementation, the data type for identifying the data segments of the damaged data frame includes:

[0066] The moment when the damaged data frame is received is obtained as the receiving moment, and a request instruction that is earlier than the receiving moment and whose time difference with the receiving moment is less than a preset value is obtained; the request instruction is a broadcast instruction for request data issued by the fusion terminal.

[0067] When the request instruction exists, it is determined that the data type corresponding to the request instruction is the data type of the data segment of the damaged data frame;

[0068] When the request instruction does not exist, the data type of the data segment of the damaged data frame is queried according to the adjacent data frames of the damaged data frame; the adjacent data frame is a normal data frame whose time difference between the received time and the received time is less than a preset value.

[0069] In the implementation of this application embodiment, some terminal devices send data frames to the converged terminal in response to request instructions issued by the converged terminal. In this case, the preset time difference can be used to determine whether the damaged data frame is in response to the request instruction, thereby determining the data type of the damaged data frame's data segment. If the request instruction does not exist, it indicates that the damaged data frame is a self-reported data frame, such as a timed report or a warning report. In this case, the judgment can be made based on adjacent data frames.

[0070] In one possible implementation, querying the data type of a data segment of a damaged data frame based on its neighboring data frames includes:

[0071] When multiple adjacent data frames correspond to the same data type, that data type shall be used as the data type of the data segment of the damaged data frame;

[0072] When multiple adjacent data frames correspond to different data types, the data type of the damaged data frame's data segment is obtained by identifying the fields in the data segment of the damaged data frame through the sample library.

[0073] In the implementation of this application embodiment, the periodically reported data frames are generally initiated simultaneously by many end devices within the same network. Therefore, the data types of the data segments of adjacent data frames corresponding to the received damaged data frames should be consistent. In this case, the data type corresponding to the adjacent data frames is taken as the data type of the data segment of the damaged data frame. However, if the data types corresponding to adjacent data frames are different, it is necessary to identify the fields in the data segments of the damaged data frames through a sample library to obtain the data type.

[0074] In one possible implementation, identifying fields in the data segments of the damaged data frame using a sample library includes:

[0075] The data segments of the damaged data frame are traversed and searched to find characters in the data segments that match the identifier as identification symbols;

[0076] When the identification symbol is located in the data segment of the damaged data frame before the position of the identifier in the normal data segment and the position difference is an integer multiple of the chip length, or at the position of the identifier in the normal data segment, it is determined that the identification symbol is the same as the identifier.

[0077] When implementing the embodiments of this application, when identifying the data segments of the damaged data frame through the sample library, since the sample library clearly defines the arrangement order of the identifiers and data symbols in the normal data segments corresponding to different data types, the identifiers can be extracted and the data segments of the damaged data frame can be traversed and searched. It should be understood that the identifiers are generally divided into type symbols and separator symbols. The type symbols can characterize what the specific value of the data in the data segment is, such as current, voltage, leakage current, etc. The separator symbols are generally fixed FF symbols.

[0078] Characters identified by identifiers within a data segment are called identification symbols. The determination of these symbols falls into two categories: First, if the data preceding the identification symbol is corrupted, the identification symbol will be positioned before the identifier in the normal data segment, and the difference between their positions will be an integer multiple of the chip length. This is because data loss is measured in chip units, with each loss being an integer multiple of the chip length; the specific number of bytes lost depends on the number of bytes contained in the chip. Second, if the data preceding the identification symbol is undamaged, but the data following it is corrupted, the identification symbol and the identifier will be in the same position. For a data segment, all identification symbols must be identical to their corresponding identifiers to determine that the data segment and the identifier have the same data type, thus allowing for the determination of the data segment's data type.

[0079] In one possible implementation, determining whether the damaged data frame is repairable includes:

[0080] When the data type of the data segment of the damaged data frame cannot be identified, the damaged data frame is determined to be unrepairable.

[0081] When the data segment of the damaged data frame is of numerical or status type, and both the data segment and the check segment are damaged, the damaged data frame is determined to be unrepairable.

[0082] When the header segment of the damaged data frame is damaged, the damaged data frame is determined to be unrepairable.

[0083] In the implementation of this application's embodiments, based on the data type and the damage status of the data segments, it can be determined whether the damaged data frame can be repaired. When the data type is unrecognizable, repair is impossible. This is because, even in the worst-case scenario, the data type can be identified through a sample library; if the sample library cannot identify the data type, it indicates that its corresponding identifier is damaged, making repair difficult. For numerical or status data types, if both the checksum and data segments are damaged, repair cannot be achieved through random trial and error, thus it is determined to be unrepairable. When the frame header is damaged, it often lacks data such as the source address and frame sequence number, making it even more difficult to identify the specific location of the data frame, thus it is determined to be unrepairable.

[0084] In one possible implementation, repairing the repairable damaged data frame includes:

[0085] When the data type of the damaged data frame is fixed, the normal data segment in the sample library corresponding to the fixed type is used as the data segment of the damaged data frame.

[0086] When implementing the embodiments of this application, data segments with fixed data types are relatively easy to repair, such as heartbeat frames. When a heartbeat frame is reported by an end device and is damaged, and its specific data type can be identified, it can be determined that the end device is capable of reporting such fixed data segments. Therefore, it is determined that the end device is operating normally. At this time, normal data segments in the sample library corresponding to fixed types can be directly used as data segments of damaged data frames to complete the repair.

[0087] In one possible implementation, repairing the repairable damaged data frame includes:

[0088] When the data type of the damaged data frame is state type, the normal data segment in the sample library corresponding to the state type is extracted as the first expected data segment;

[0089] For the state value portion of the first expected data segment, a random value is selected without replacement within the available range of the state value portion until the check value of the first expected data segment satisfies the check segment of the damaged data frame.

[0090] The final first expected data segment is used as the data segment of the damaged data frame.

[0091] In the implementation of this application embodiment, since the types of data values ​​corresponding to the state-type data segment are relatively few, the first expected data segment can be extracted, and the state value part of the first expected data segment can be randomly selected without replacement. For example, the received frame is CA FF, and CA is identified as representing a water immersion state. At this time, the first expected data segment CA FF XX FF is retrieved, where XX is the state value part, with values ​​of 00 01 02. Then, random selection without replacement is performed. When 00 and 01 are selected, the verification fails, but when 02 is selected, the verification passes. At this time, the first expected data segment is CA FF 02 FF, which is the actual data segment of the damaged data frame.

[0092] In one possible implementation, repairing the repairable damaged data frame includes:

[0093] When the data type of the damaged data frame is numerical, the normal data segment in the sample library corresponding to the numerical type is extracted as the second expected data segment;

[0094] Obtain the source address of the damaged data frame and query the historical data of the corresponding numerical part of the data type reported by the device corresponding to the source address.

[0095] The second expected data segment is repaired based on the historical data.

[0096] In one possible implementation, repairing the second expected data segment based on the historical data includes:

[0097] Determine the data range based on the historical data;

[0098] Within the data interval, a random value is selected without replacement as the data part of the second expected data segment until the check value of the second expected data segment satisfies the check segment of the damaged data frame.

[0099] The final second expected data segment is used as the data segment of the damaged data frame.

[0100] In the implementation of this application embodiment, when repairing numerical damage data frames, it is also necessary to extract the second expected data segment. Unlike state values, the range of numerical values ​​may be larger, so it is necessary to extract the source address of the damage data frame, which is generally located in the frame header. Then, historical data of the source address is obtained, and a random data interval is determined based on the historical data of the source address. Specifically, the determination method can be as follows: the minimum value of the historical data divided by a first preset multiple is used as the minimum value of the data interval, and the maximum value of the historical data multiplied by the first preset multiple is used as the maximum value of the data interval. The first preset multiple can be 1.2 times. Alternatively, the average value of the historical data divided by a second preset multiple is used as the minimum value of the data interval, and the average value of the historical data multiplied by the second preset multiple is used as the maximum value of the data interval. The second preset multiple can be 1.5 times.

[0101] For example, a damaged data frame is received with the data segment A2 08 FF. A query in the sample library finds the corresponding voltage value for A2. The second expected data segment obtained is A2 FF XX XX FF, where XX represents the data portion. In the historical data retrieved, the maximum voltage value is 226V and the minimum is 218V. The constructed interval is [181, 271]. Since the reported voltage value is always an integer, within the interval [181, 271], a maximum of 91 non-repeating random samples are needed to find the accurate voltage value of 225V. The data segment at this point is A2 FF 08 E1 FF.

[0102] Based on the same inventive concept, this application also provides a fusion terminal data processing system based on frame repair, including:

[0103] The converged terminal is configured as follows:

[0104] The integrity of received data frames is detected, and incomplete data frames are treated as damaged data frames.

[0105] Based on the damage status of the damaged data frame, its neighboring data frames, and the sample library, the data type of the data segment of the damaged data frame is identified, and it is determined whether the damaged data frame is repairable. The data types include numerical, status, and fixed types. The sample library includes the arrangement order of identifiers and data symbols in normal data segments corresponding to different data types.

[0106] Repair the damaged data frame according to the data type, and verify the repaired data frame through a check segment. Then, use the repaired damaged data frame as a normal data frame.

[0107] When implementing the embodiments of this application, please refer to Figure 2The diagram illustrates a specific system framework. The converged terminal typically includes a business app and a management app. The management app is responsible for managing the external communication of the entire converged terminal and for all computational processes described in the above embodiments. Specifically, the data type determination and damage repair of data segments are handled by the management app. The management app needs to receive data frames sent by the end device from the communication physical layer, unpack and process the data frames, and then send them to the corresponding business app. Simultaneously, the management app also needs to receive data transmission requests from the business app to send data to the end device, encapsulate them, and send them to the communication physical layer for transmission.

[0108] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0109] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, or may be electrical, mechanical or other forms of connection.

[0110] The units described as separate components may or may not be physically separate. As will be apparent to those skilled in the art, the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0111] Furthermore, the functional units in the various embodiments of the present invention 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. The integrated unit can be implemented in hardware or as a software functional unit.

[0112] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or 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 grid device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present 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.

[0113] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A data processing method for fused terminals based on frame repair, characterized in that, include: The integrity of received data frames is detected, and incomplete data frames are treated as damaged data frames. Based on the damage status of the damaged data frame, its neighboring data frames, and the sample library, the data type of the data segment of the damaged data frame is identified, and it is determined whether the damaged data frame is repairable. The data types include numerical, status, and fixed types. The sample library includes the arrangement order of identifiers and data symbols in normal data segments corresponding to different data types. Repair the damaged data frame that can be repaired according to the data type, and verify the repaired data segment through the verification segment, and use the repaired damaged data frame as a normal data frame. Repairing the repairable damaged data frames includes: When the data type of the damaged data frame is numerical, the normal data segment in the sample library corresponding to the numerical type is extracted as the second expected data segment; Obtain the source address of the damaged data frame and query the historical data of the corresponding numerical part of the data type reported by the device corresponding to the source address. Repair the second expected data segment based on the historical data; Repairing the second expected data segment based on the historical data includes: Determine the data range based on the historical data; Within the data interval, a random value is selected without replacement as the data part of the second expected data segment until the check value of the second expected data segment satisfies the check segment of the damaged data frame. The final second expected data segment is used as the data segment of the damaged data frame.

2. The fusion terminal data processing method based on frame repair according to claim 1, characterized in that, The data types of the data segments that identify the damaged data frame include: The moment when the damaged data frame is received is obtained as the receiving moment, and a request instruction that is earlier than the receiving moment and whose time difference with the receiving moment is less than a preset value is obtained; the request instruction is a broadcast instruction for request data issued by the fusion terminal. When the request instruction exists, it is determined that the data type corresponding to the request instruction is the data type of the data segment of the damaged data frame; When the request instruction does not exist, the data type of the data segment of the damaged data frame is queried according to the adjacent data frames of the damaged data frame; the adjacent data frame is a normal data frame whose time difference between the received time and the received time is less than a preset value.

3. The fusion terminal data processing method based on frame repair according to claim 2, characterized in that, The data types of data segments in a damaged data frame can be queried based on its neighboring data frames. When multiple adjacent data frames correspond to the same data type, that data type shall be used as the data type of the data segment of the damaged data frame; When multiple adjacent data frames correspond to different data types, the data type of the damaged data frame's data segment is obtained by identifying the fields in the data segment of the damaged data frame through the sample library.

4. The fusion terminal data processing method based on frame repair according to claim 3, characterized in that, Identifying fields in the data segment of this damaged data frame using a sample library includes: The data segments of the damaged data frame are traversed and searched to find characters in the data segments that match the identifier as identification symbols; When the identification symbol is located in the data segment of the damaged data frame before the position of the identifier in the normal data segment and the position difference is an integer multiple of the chip length, or at the position of the identifier in the normal data segment, it is determined that the identification symbol is the same as the identifier.

5. The fusion terminal data processing method based on frame repair according to claim 1, characterized in that, Determining whether the damaged data frame is repairable includes: When the data type of the data segment of the damaged data frame cannot be identified, the damaged data frame is determined to be unrepairable. When the data segment of the damaged data frame is of numerical or status type, and both the data segment and the check segment are damaged, the damaged data frame is determined to be unrepairable. When the header segment of the damaged data frame is damaged, the damaged data frame is determined to be unrepairable.

6. The fusion terminal data processing method based on frame repair according to claim 1, characterized in that, Repairing the repairable damaged data frames includes: When the data type of the damaged data frame is fixed, the normal data segment in the sample library corresponding to the fixed type is used as the data segment of the damaged data frame.

7. The fusion terminal data processing method based on frame repair according to claim 1, characterized in that, Repairing the repairable damaged data frames includes: When the data type of the damaged data frame is state type, the normal data segment in the sample library corresponding to the state type is extracted as the first expected data segment; For the state value portion of the first expected data segment, a random value is selected without replacement within the available range of the state value portion until the check value of the first expected data segment satisfies the check segment of the damaged data frame. The final first expected data segment is used as the data segment of the damaged data frame.

8. A fusion terminal data processing system based on frame repair using the method of any one of claims 1 to 7, characterized in that, include: The converged terminal is configured as follows: The integrity of received data frames is detected, and incomplete data frames are treated as damaged data frames. Based on the damage status of the damaged data frame, its neighboring data frames, and the sample library, the data type of the data segment of the damaged data frame is identified, and it is determined whether the damaged data frame is repairable. The data types include numerical, status, and fixed types. The sample library includes the arrangement order of identifiers and data symbols in normal data segments corresponding to different data types. Repair the damaged data frame according to the data type, and verify the repaired data frame through the verification segment. Then, use the repaired damaged data frame as a normal data frame.

Citation Information

Patent Citations

  • Internet-of-things data cleaning method and device for industrial universal equipment and storage medium

    CN112347094A