Fusion terminal data processing method and system based on frame repair

By detecting and repairing damaged data frames of the fusion terminal, the problems of data packet loss and frame incompleteness are solved, the integrity and timeliness of data transmission are improved, and network channel congestion is avoided. It is suitable for LoRa communication in the Internet of Things.

CN120729478AActive Publication Date: 2025-09-30CHENGDU HANDU TECH

Patent Information

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

AI Technical Summary

Technical Problem

Converged terminals have problems with packet loss and frame incompleteness during data transmission, affecting the integrity and timeliness of data transmission. This is especially true in scenarios of real-time collection, multi-service concurrency, and heterogeneous network switching, resulting in damage to the accuracy and timeliness of core services.

Method used

By detecting the integrity of the data frame, identifying the data type of the damaged data frame, and judging whether it is repairable based on the sample library and adjacent data frames, different repair methods are used to repair the damaged data frame, including using fixed, state-based and numerical data segment repair strategies, and using the check segment for final verification.

Benefits of technology

It improves the integrity and timeliness of data transmission, reduces error retransmissions within the network, avoids channel congestion caused by network fluctuations, and improves the stability of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120729478A_ABST
    Figure CN120729478A_ABST
Patent Text Reader

Abstract

The invention discloses a fusion terminal data processing method and system based on frame repair, which are applied to the technical field of intelligent communication, and the method comprises the following steps: detecting the integrity of a received data frame, and taking an incomplete data frame as a damaged data frame; identifying the data type of the data segment of the damaged data frame according to the damage condition of the damaged data frame, the adjacent data frame of the damaged data frame and the sample library, and judging whether the damaged data frame is repairable or not; and repairing the repairable damaged data frame according to the data type, verifying the repaired data segment through the verification segment, and using the repaired damaged data frame as a normal data frame. According to the method and the device, the data segments of the data frames are repaired, wrong retransmission in the network can be effectively reduced, the integrity and timeliness of data transmission are improved, channel blockage in the network caused by network fluctuation is avoided, and the method and the device have extremely high applicability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent communication technology, and in particular to a fusion terminal data processing method and system based on frame repair. Background Art

[0002] During data transmission on converged terminals, packet loss and frame incompleteness present a complex situation with multiple scenarios and dimensions, as shown below: Packet loss is particularly prominent in real-time data collection and transmission scenarios. When terminals exchange high-frequency measurement data with the master station (e.g., uploading power parameters in seconds), some data packets are often lost due to fluctuations in the wireless communication link (e.g., signal attenuation in edge areas) or channel congestion. For example, if key monitoring data such as three-phase current and voltage are lost during transmission, the master station will be unable to fully capture the real-time status of the power grid monitored by the terminal, directly affecting the accuracy of load forecasting and fault diagnosis.

[0003] The problem of frame incompleteness manifests itself primarily in compromised integrity at the protocol data layer. During downlink command transmission between the terminal and the slave device, serial communication baud rate mismatches or electromagnetic interference can easily lead to missing header and footer identifiers or truncation of data segments. For example, if the parity bit at the end of a remote control command frame is lost, the master station will fail the CRC check, causing command execution failure and delaying remote device operation.

[0004] The problem becomes even more complex in scenarios with multiple services being transmitted concurrently. When terminals are simultaneously processing tasks such as metering data upload, status monitoring message transmission, and alarm information push, internal buffer queue overflows or priority scheduling mechanisms fail, leading to batch packet loss. For example, if distribution network fault alarms and regular meter reading data compete for transmission resources, if the terminal does not set a priority channel for alarm information, alarm frames may be lost, delaying the response to the fault.

[0005] Furthermore, significant risks exist during heterogeneous network handovers. When a converged terminal switches between 4G / 5G and the power wireless private network, data packet timeouts and unacknowledged packets due to handover delays or format compatibility issues during network protocol conversion can corrupt the data frame structure. Some frames contain both the encapsulation format of the old network and header information from the new network, forming "mixed frames." These frames are then discarded by the master station due to format anomalies, resulting in data transmission interruptions.

[0006] 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 grid dispatching and equipment operation and maintenance, becoming a key bottleneck restricting the efficient operation of integrated terminals in supporting new power systems. Summary of the Invention

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

[0008] In a first aspect, an embodiment of the present application provides a method for processing converged terminal data based on frame repair, including: Detect the integrity of the received data frames and treat incomplete data frames as damaged data frames; Identifying the data type of the data segment of the damaged data frame based on the damage condition of the damaged data frame, adjacent data frames of the damaged data frame, and a sample library, and determining whether the damaged data frame is repairable; the data types include numerical type, state type, and fixed type; the sample library includes the arrangement order of identification symbols and data symbols in normal data segments corresponding to different data types; The damaged data frame that can be repaired is repaired according to the data type, and the repaired data segment is verified through the verification segment, and the repaired damaged data frame is used as a normal data frame.

[0009] In a possible implementation, identifying the data type of the data segment of the damaged data frame includes: Acquire the time when the damaged data frame is received as the receiving time, and acquire a request instruction that is earlier than the receiving time and whose time difference with the receiving time is less than a preset value; the request instruction is a broadcast instruction for requesting data issued by the fusion terminal; When the request instruction exists, determining 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 based on the adjacent data frame of the damaged data frame; the adjacent data frame is a normal data frame whose time difference between the receiving time and the receiving time is less than a preset value.

[0010] In a possible implementation, querying the data type of the data segment of the damaged data frame according to the adjacent data frame of the damaged data frame includes: When the data types corresponding to the plurality of adjacent data frames are the same, the data type is used as the data type of the data segment of the damaged data frame; When the data types corresponding to the plurality of adjacent data frames are different, the data type of the data segment of the damaged data frame is obtained by identifying the fields in the data segment of the damaged data frame through the sample library.

[0011] In a possible implementation, identifying the fields in the data segment of the damaged data frame using the sample library includes: Performing a traversal search on the data segment of the damaged data frame to find a character in the data segment that matches the identification symbol as an identification symbol; When the position of the identification symbol in the data segment of the damaged data frame is ahead of the position of the identification symbol in the normal data segment and the position difference is an integer multiple of the code piece length or is at the position of the identification symbol in the normal data segment, it is judged that the identification symbol is the same as the identification symbol.

[0012] In one possible implementation, 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, determining that the damaged data frame is unrepairable; When the data type of the data segment of the damaged data frame is a numerical type or a status type, and both the data segment and the check segment are damaged, it is determined that the damaged data frame is unrepairable; When the frame header segment of the damaged data frame is damaged, it is determined that the damaged data frame is unrepairable.

[0013] In a possible implementation, repairing the repairable damaged data frame includes: When the data type of the damaged data frame is a fixed type, the normal data segments in the sample library corresponding to the fixed type are used as the data segments of the damaged data frame.

[0014] In a possible implementation, repairing the repairable damaged data frame includes: When the data type of the damaged data frame is a state type, extracting a normal data segment in a sample library corresponding to the state type as a first expected data segment; For the status value portion of the first expected data segment, a randomly selected value is not replaced within an available range of the status value portion until a check value of the first expected data segment satisfies a check value of the damaged data frame; The final first expected data segment is used as the data segment of the damaged data frame.

[0015] In a possible implementation, repairing the repairable damaged data frame includes: When the data type of the damaged data frame is a numerical type, extracting a normal data segment in a sample library corresponding to the numerical type as a second expected data segment; Obtaining the source address of the damaged data frame, and querying the historical data corresponding to the numerical value part reported by the device corresponding to the source address; The second expected data segment is repaired according to the historical data.

[0016] In a possible implementation, repairing the second expected data segment according to the historical data includes: Delimiting a data interval based on the historical data; Do not replace the randomly selected value as the data portion of the second expected data segment within the data interval 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.

[0017] In a second aspect, the present application also provides a fusion terminal data processing system based on frame repair, comprising: The converged terminal is configured as follows: Detect the integrity of the received data frames and treat incomplete data frames as damaged data frames; Identifying the data type of the data segment of the damaged data frame based on the damage condition of the damaged data frame, adjacent data frames of the damaged data frame, and a sample library, and determining whether the damaged data frame is repairable; the data types include numerical type, state type, and fixed type; the sample library includes the arrangement order of identification symbols and data symbols in normal data segments corresponding to different data types; The damaged data frame that can be repaired is repaired according to the data type, and the repaired data segment is verified through the verification segment, and the repaired damaged data frame is used as a normal data frame.

[0018] Compared with the prior art, the present invention has the following advantages and beneficial effects: The present invention provides a fusion terminal data processing method and system based on frame repair, which realizes the repair of data frame data segments, can effectively reduce error retransmission in the network, improve the integrity and timeliness of data transmission, and avoid channel congestion in the network caused by network fluctuations, and has extremely high applicability. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The drawings described herein are used to provide a further understanding of the embodiments of the present invention, constitute a part of this application, and do not constitute a limitation of the embodiments of the present invention. In the drawings: Figure 1 This is a schematic diagram of the steps of the method according to the embodiment of the present application; Figure 2 This is a schematic diagram of the system architecture of an embodiment of the present application. DETAILED DESCRIPTION

[0020] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of illustration and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate the operations implemented according to some embodiments of the embodiments of the present application. It should be understood that the operations of the flowcharts can be implemented out of sequence, and steps without logical context can be reversed or implemented simultaneously. In addition, those skilled in the art, under the guidance of the contents of this application, can add one or more other operations to the flowchart, or remove one or more operations from the flowchart.

[0021] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed application, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.

[0022] Please refer to Figure 1 , which is a flow chart of a fusion terminal data processing method based on frame repair provided by an embodiment of the present invention. Further, the fusion terminal data processing method based on frame repair may specifically include the contents described in the following steps S1 to S3.

[0023] S1: Check the integrity of the received data frame and treat the incomplete data frame as a damaged data frame; S2: Identifying the data type of the data segment of the damaged data frame based on the damage condition of the damaged data frame, adjacent data frames of the damaged data frame, and a sample library, and determining whether the damaged data frame is repairable; the data types include numerical type, state type, and fixed type; the sample library includes the arrangement order of identification symbols and data symbols in normal data segments corresponding to different data types; S3: Repair the damaged data frame that can be repaired according to the data type, verify the repaired data segment through the verification segment, and use the repaired damaged data frame as a normal data frame.

[0024] When the embodiments of the present application are implemented, for the Internet of Things, the main communication means used are mostly wireless communication technologies, especially long-distance and high-anti-interference technologies such as LoRa, which have been widely used in the Internet of Things. However, when interference occurs during the communication process after the LoRa network is established, the receiving end will directly discard the incomplete frame and then receive the data frame through retransmission and other methods. This method can easily cause channel congestion in the communication network, thereby exacerbating the damage to the data frame. In scientific practice, the inventors found that for a communication method with strong anti-interference ability such as LoRa, when it modulates the signal, it compiles the signal into a fixed-length code chip for transmission. Therefore, when the data frame is damaged, the lost data is measured in units of code chips, which has a strong regularity; at the same time, in the substation power grid, the length of each communication data frame will not be too long, which makes it possible to repair the data frame.

[0025] In the embodiments of the present application, when verifying the integrity of a data frame, it is generally necessary to first identify the frame header, data segment, and check segment, then perform frame header integrity verification, and verify the data segment using the check segment. Since the frame header contains the source and destination addresses, it is difficult to determine if it is a data frame that the current device needs to receive after it is damaged, and it can be directly discarded. However, if the check segment or data segment is damaged, the incomplete data frame can be treated as a damaged data frame to further determine whether it can be repaired.

[0026] In the embodiment of the present application, it is necessary to determine the data type of the data segment of the damaged data frame before repair; the data types in the embodiment of the present application mainly include numerical type, state type and fixed type.

[0027] The fixed type generally refers to a data segment with fixed content, such as a heartbeat frame, whose content does not change with changes in source device information. For example, the data segment content of a heartbeat frame is fixed as F1 01. Within the same network, the data segment of a heartbeat frame does not exist in other forms.

[0028] The status type generally refers to a data segment with fixed and no more than three possible character types, such as alarm frames and switch value frames. For example, the data segment content of a flood alarm frame is water immersion + status value, expressed in hexadecimal as CA 01, CA 02, or CA 00, where CA represents the flood status, 01 indicates the risk of flooding, 02 indicates that flooding has occurred, and 00 indicates no flooding risk. The status value in this case only corresponds to three character types.

[0029] The numerical type is generally the data segment of the frame of different types of data reported by the end device, which generally adopts the form of 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 the 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 value is 13mA, the data segment is A3 FF 00 0D.

[0030] In the embodiment of the present application, a sample library needs to be pre-configured, which stores the arrangement order of identification symbols and data symbols in the data segment of the frame of each data type; the identification symbols are fixed symbols, such as CA A1A2 FF in the above embodiment, and the data symbols are numerical contents.

[0031] In an embodiment of the present application, the judgment of the data type of the damaged data frame needs to be identified based on the damage situation, adjacent data frames and sample library, and one or more of them can be used for identification. It should be understood that for some private frames, the data type code may be encoded. If the code is complete, the data type corresponding to the code in the sample library can be judged; if there is no such code, or the code is damaged, a comprehensive judgment is required. Based on the data type, it can be determined whether the damaged data frame is repairable, and further targeted repairs can be performed; for unrepairable data frames, a retransmission request is made to obtain data. The embodiment of the present application realizes the repair of data segments of data frames, which can effectively reduce erroneous retransmissions within the network, improve the integrity and timeliness of data transmission, and avoid channel congestion within the network due to network fluctuations.

[0032] In a possible implementation, identifying the data type of the data segment of the damaged data frame includes: Acquire the time when the damaged data frame is received as the receiving time, and acquire a request instruction that is earlier than the receiving time and whose time difference with the receiving time is less than a preset value; the request instruction is a broadcast instruction for requesting data issued by the fusion terminal; When the request instruction exists, determining 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 based on the adjacent data frame of the damaged data frame; the adjacent data frame is a normal data frame whose time difference between the receiving time and the receiving time is less than a preset value.

[0033] During implementation of the present invention, some end devices send data frames to the converged terminal in response to a request command issued by the converged terminal. In this case, a preset time difference value can be used to determine whether the damaged data frame is in response to the request command, thereby determining the data type of the data segment of the damaged data frame. If the request command is absent, it indicates that the damaged data frame is an autonomously reported data frame, such as a scheduled report or a warning report. In this case, the determination can be made based on adjacent data frames.

[0034] In a possible implementation, querying the data type of the data segment of the damaged data frame according to the adjacent data frame of the damaged data frame includes: When the data types corresponding to the plurality of adjacent data frames are the same, the data type is used as the data type of the data segment of the damaged data frame; When the data types corresponding to the plurality of adjacent data frames are different, the data type of the data segment of the damaged data frame is obtained by identifying the fields in the data segment of the damaged data frame through the sample library.

[0035] During implementation of the present application, regularly reported data frames are typically initiated simultaneously by multiple end devices within the same network. Therefore, the data type of the data segment of the adjacent data frame corresponding to the received damaged data frame should be consistent. In this case, the data type corresponding to the adjacent data frame is used as the data type of the data segment of the damaged data frame. If the data types corresponding to the adjacent data frames are different, it is necessary to identify the fields in the data segment of the damaged data frame using a sample library to obtain the data type.

[0036] In a possible implementation, identifying the fields in the data segment of the damaged data frame using the sample library includes: Performing a traversal search on the data segment of the damaged data frame to find a character in the data segment that matches the identification symbol as an identification symbol; When the position of the identification symbol in the data segment of the damaged data frame is ahead of the position of the identification symbol in the normal data segment and the position difference is an integer multiple of the code piece length or is at the position of the identification symbol in the normal data segment, it is judged that the identification symbol is the same as the identification symbol.

[0037] When the embodiment of the present application is implemented, when the data segment of the damaged data frame is identified through the sample library, since the sample library clearly defines the arrangement order of the identification symbols and data symbols in the normal data segment corresponding to different data types, the identification symbols can be extracted at this time and the data segment of the damaged data frame can be traversed and searched. It should be understood that the identification symbols are generally divided into type symbols and separation symbols. The type symbol can represent the specific value of the data in the data segment, such as current, voltage, leakage, etc., and the separation symbol is generally a fixed FF symbol.

[0038] The characters in the data segment identified by the identification symbol are the identification symbols. The judgment of the identification symbol is divided into two cases. In the first case, the data in front of the identification symbol is damaged. At this time, the identification symbol will be located in front of the position of the identification symbol in the normal data segment, and the position difference between the identification symbol and the identification symbol is an integer multiple of the code chip length. The reason is that the data loss is in units of code chips, and each loss is an integer multiple of the code chip. The specific number of bytes lost depends on how many bytes are contained in the code chip. In the second case, the data in front of the identification symbol is not damaged, but the data behind it is damaged. At this time, the position of the identification symbol and the identification symbol is the same. For a data segment, all identification symbols must be the same as the corresponding identification symbols to determine that the data type of the data segment and the identification symbol is the same, and to determine the data type of the data segment.

[0039] In one possible implementation, 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, determining that the damaged data frame is unrepairable; When the data type of the data segment of the damaged data frame is a numerical type or a status type, and both the data segment and the check segment are damaged, it is determined that the damaged data frame is unrepairable; When the frame header segment of the damaged data frame is damaged, it is determined that the damaged data frame is unrepairable.

[0040] When the embodiment of the present application is implemented, it can be determined whether the damaged data frame can be repaired based on the damage to the data type and data segment. When the data type cannot be identified, it cannot be repaired, because the data type can be identified by the sample library under the most unfavorable circumstances, and the data type that cannot be identified by the sample library indicates that its corresponding identification symbol has been damaged, so it is difficult to repair. In numerical or status data types, if both the check segment and the data segment are damaged, it cannot be repaired by random trial and error, so it is judged to be unrepairable. When the frame header segment is damaged, it often lacks data such as the source address and frame sequence number, making it more difficult to identify the specific location of the data frame, so it is judged to be unrepairable.

[0041] In a possible implementation, repairing the repairable damaged data frame includes: When the data type of the damaged data frame is a fixed type, the normal data segments in the sample library corresponding to the fixed type are used as the data segments of the damaged data frame.

[0042] When the embodiment of the present application is implemented, data segments with fixed data types are relatively easy to repair, such as heartbeat frames. When the end device reports a heartbeat frame and damage occurs and its specific data type can be identified, it can be determined that the end device is capable of reporting such a fixed-type data segment, so the end device is determined to be operating normally. At this time, the normal data segment in the sample library corresponding to the fixed type can be directly used as the data segment of the damaged data frame to complete the repair.

[0043] In a possible implementation, repairing the repairable damaged data frame includes: When the data type of the damaged data frame is a state type, extracting a normal data segment in a sample library corresponding to the state type as a first expected data segment; For the status value portion of the first expected data segment, a randomly selected value is not replaced within an available range of the status value portion until a check value of the first expected data segment satisfies a check value of the damaged data frame; The final first expected data segment is used as the data segment of the damaged data frame.

[0044] During implementation of the present application, since the number of data values ​​corresponding to the state-type data segment is relatively small, a first expected data segment can be extracted, and the state value portion of the first expected data segment can be randomized without replacement. For example, if the received frame is CA FF, and CA is recognized to represent the submerged state, the first expected data segment CA FF XX FF is retrieved, where XX is the state value portion and takes the value 00 01 02. A randomization without replacement is then performed, and if 00 and 01 are obtained, the check fails, but if 02 is obtained, the check passes. At this point, the first expected data segment is CA FF 02 FF, which is the actual data segment of the damaged data frame.

[0045] In a possible implementation, repairing the repairable damaged data frame includes: When the data type of the damaged data frame is a numerical type, extracting a normal data segment in a sample library corresponding to the numerical type as a second expected data segment; Obtaining the source address of the damaged data frame, and querying the historical data corresponding to the numerical value part reported by the device corresponding to the source address; The second expected data segment is repaired according to the historical data.

[0046] In a possible implementation, repairing the second expected data segment according to the historical data includes: Delimiting a data interval based on the historical data; Do not replace the randomly selected value as the data portion of the second expected data segment within the data interval 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.

[0047] When the embodiment of the present application is implemented, when repairing a numerical damaged data frame, it is also necessary to extract the second expected data segment. Unlike the status value, the range of the numerical value may be larger, so it is necessary to extract the source address of the damaged data frame, which is generally located at the frame header; then obtain the historical data of the source address, and then determine the random data interval based on the historical data of the source address. The specific determination method can be to divide the minimum value of the historical data by a first preset multiple as the minimum value of the data interval, and multiply the maximum value of the historical data by the first preset multiple as the maximum value of the data interval. The first preset multiple can be 1.2 times; or to divide the average value of the historical data by a second preset multiple as the minimum value of the data interval, and multiply the average value of the historical data by a second preset multiple as the maximum value of the data interval. The second preset multiple can be 1.5 times.

[0048] For example, a damaged data frame is received with the data segment A2 08 FF. The voltage value corresponding to A2 is found through the sample library query. The second expected data segment obtained is A2 FF XX XX FF, where XX is the data portion. In the historical data queried at this time, the maximum voltage is 226V and the minimum is 218V. The constructed interval is [181, 271]. Since the voltage value is always reported as an integer, within the interval [181, 271], a maximum of 91 non-repeated random samplings are required to find the accurate voltage value of 225V. The data segment is A2 FF 08 E1 FF.

[0049] Based on the same inventive concept, the present application also provides a fusion terminal data processing system based on frame repair, including: The converged terminal is configured as follows: Detect the integrity of the received data frames and treat incomplete data frames as damaged data frames; Identifying the data type of the data segment of the damaged data frame based on the damage condition of the damaged data frame, adjacent data frames of the damaged data frame, and a sample library, and determining whether the damaged data frame is repairable; the data types include numerical type, state type, and fixed type; the sample library includes the arrangement order of identification symbols and data symbols in normal data segments corresponding to different data types; The damaged data frame that can be repaired is repaired according to the data type, and the repaired data segment is verified through the verification segment, and the repaired damaged data frame is used as a normal data frame.

[0050] When implementing the embodiments of this application, please refer to Figure 2 , showing a specific system framework diagram; wherein the fusion terminal generally includes a business APP and a management APP; the management APP is responsible for the external communication management of the entire fusion terminal, and is also responsible for all the calculation processes in the above embodiments, that is, the data type judgment and damage repair of the data segment are completed by the management APP; the management APP needs to receive the data frame sent by the terminal device received by the communication physical layer, and unpack and process the data frame and send it to the corresponding business APP; at the same time, the management APP also needs to receive the data sending request of the business APP to send data to the terminal device, and encapsulate it and send it to the communication physical layer for sending.

[0051] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the composition and steps of each example according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

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

[0053] The units described as separate components may or may not be physically separated. As units, it is obvious that a person of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0054] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0055] If the integrated unit is implemented in the form of 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 is essentially 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. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or grid device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program code, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0056] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method 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 in the scope of protection of the present invention.

Claims

1. A fusion terminal data processing method based on frame repair, characterized in that: include: Detect the integrity of the received data frames and treat incomplete data frames as damaged data frames; Identifying the data type of the data segment of the damaged data frame based on the damage condition of the damaged data frame, adjacent data frames of the damaged data frame, and a sample library, and determining whether the damaged data frame is repairable; the data types include numerical type, state type, and fixed type; the sample library includes the arrangement order of identification symbols and data symbols in normal data segments corresponding to different data types; The damaged data frame that can be repaired is repaired according to the data type, and the repaired data segment is verified through the verification segment, and the repaired damaged data frame is used as a normal data frame.

2. The method for processing fusion terminal data based on frame repair according to claim 1, characterized in that: The data types of the data segments of the damaged data frame are identified as follows: Acquire the time when the damaged data frame is received as the receiving time, and acquire a request instruction that is earlier than the receiving time and whose time difference with the receiving time is less than a preset value; the request instruction is a broadcast instruction for requesting data issued by the fusion terminal; When the request instruction exists, determining 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 based on the adjacent data frame of the damaged data frame; the adjacent data frame is a normal data frame whose time difference between the receiving time and the receiving time is less than a preset value.

3. The method for processing fusion terminal data based on frame repair according to claim 2, characterized in that: The data type of the data segment of the damaged data frame is queried based on the adjacent data frames of the damaged data frame, including: When the data types corresponding to the plurality of adjacent data frames are the same, the data type is used as the data type of the data segment of the damaged data frame; When the data types corresponding to the plurality of adjacent data frames are different, the data type of the data segment of the damaged data frame is obtained by identifying the fields in the data segment of the damaged data frame through the sample library.

4. The method for processing fusion terminal data based on frame repair according to claim 3, characterized in that: Identifying the fields in the data segment of the damaged data frame using the sample library includes: Performing a traversal search on the data segment of the damaged data frame to find a character in the data segment that matches the identification symbol as an identification symbol; When the position of the identification symbol in the data segment of the damaged data frame is ahead of the position of the identification symbol in the normal data segment and the position difference is an integer multiple of the code piece length or is at the position of the identification symbol in the normal data segment, it is judged that the identification symbol is the same as the identification symbol.

5. The method for processing fusion terminal data 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, determining that the damaged data frame is unrepairable; When the data type of the data segment of the damaged data frame is a numerical type or a status type, and both the data segment and the check segment are damaged, it is determined that the damaged data frame is unrepairable; When the frame header segment of the damaged data frame is damaged, it is determined that the damaged data frame is unrepairable.

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

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

8. The method for processing fusion terminal data based on frame repair according to claim 1, characterized in that: Repairing the repairable damaged data frame includes: When the data type of the damaged data frame is a numerical type, extracting a normal data segment in a sample library corresponding to the numerical type as a second expected data segment; Obtaining the source address of the damaged data frame, and querying the historical data corresponding to the numerical value part reported by the device corresponding to the source address; The second expected data segment is repaired according to the historical data.

9. The method for processing fusion terminal data based on frame repair according to claim 8, characterized in that: Repairing the second expected data segment according to the historical data includes: Delimiting a data interval based on the historical data; Do not replace the randomly selected value as the data portion of the second expected data segment within the data interval 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.

10. A fusion terminal data processing system based on frame repair, characterized in that: include: The converged terminal is configured as follows: Detect the integrity of the received data frames and treat incomplete data frames as damaged data frames; Identifying the data type of the data segment of the damaged data frame based on the damage condition of the damaged data frame, adjacent data frames of the damaged data frame, and a sample library, and determining whether the damaged data frame is repairable; the data types include numerical type, state type, and fixed type; the sample library includes the arrangement order of identification symbols and data symbols in normal data segments corresponding to different data types; The damaged data frame that can be repaired is repaired according to the data type, and the repaired data segment is verified through the verification segment, and the repaired damaged data frame is used 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

  • Electric power data restoration method

    CN113485986A

  • New energy automobile T-BOX data recovery method and device

    CN115586991A

  • Restoration of a data source

    US11042454B1

  • Distributed memory processing system and distributed memory processing method

    WO2017064775A1

Cited By

  • Three-phase cooperation end side calculation method and system based on vacuum fuse

    CN121327289A

  • A Three-Phase Cooperative End-Side Calculation Method and System Based on Vacuum Fuses

    CN121327289B