An intelligent terminal data synchronization method based on the Internet of Things

By introducing segmented processing and time-based labeling of usage measurement data on the smart terminal side, the problems of inconsistent data attribution and insufficient synchronization timeliness of IoT terminals are solved, achieving high efficiency, consistency and reliability of billing data.

CN121907859BActive Publication Date: 2026-06-26HANGZHOU HUALONG ELECTRONIC TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HANGZHOU HUALONG ELECTRONIC TECH CO LTD
Filing Date
2026-03-25
Publication Date
2026-06-26

AI Technical Summary

Technical Problem

In the context of IoT terminals, existing data synchronization mechanisms suffer from inconsistent metering data attribution and insufficient synchronization timeliness due to local time discrepancies, affecting the consistency and timeliness of billing and settlement.

Method used

By introducing segmented processing and time-based identification of usage data on the smart terminal side, synchronization priority assessment and sorting are performed, high-priority data segments are transmitted first, and time correction and data attribution processing are carried out to ensure the consistency of billing data.

Benefits of technology

It improves the adaptability and reliability of data synchronization in the Internet of Things environment, enhances the consistency of billing data and the value of business applications, and reduces the impact of time deviation on billing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121907859B_ABST
    Figure CN121907859B_ABST
Patent Text Reader

Abstract

The application discloses a kind of based on Internet of Things's intelligent terminal data synchronization method, it is related to Internet of Things data synchronization technical field, including, the use measurement data of acquisition intelligent terminal is handled and is marked in section, output pending synchronization data section and time caliber mark;Pending synchronization data section and time caliber mark are evaluated and sorted with synchronization priority, and synchronization priority sorting result is obtained;According to time caliber mark, time correction is carried out to the uploaded synchronization data section, and data attribution processing is carried out, and consistent use measurement data of charging is obtained;Consistency and consistency check are carried out to consistent use measurement data of charging, synchronization completion confirmation information is generated, and is sent to intelligent terminal;Through introducing the use measurement data dynamic segmentation and marking mechanism based on local time caliber in intelligent terminal side, the consistency, reliability and business application value of use measurement data in charging and management scene are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of Internet of Things (IoT) data synchronization technology, and in particular to a method for synchronizing data between smart terminals based on the Internet of Things. Background Technology

[0002] Against the backdrop of the convergence of the Internet of Things (IoT) and smart terminals, data synchronization serves as a fundamental step in achieving terminal status monitoring, resource metering, and business settlement. The implementation method directly impacts system reliability, billing accuracy, and network resource utilization efficiency. Common synchronization schemes are mostly based on timed polling or event-driven mechanisms. By establishing periodic or trigger-based data transmission channels between the terminal and the cloud, usage metering data is collected. For example, existing technologies typically use standardized communication protocols (such as MQTT and CoAP) to build data reporting links and rely on timestamp sequences to sequentially upload usage data collected by the terminal. Some optimized schemes further introduce differential synchronization strategies, which compare the data version identifiers between the terminal and the cloud and only upload newly added or changed data segments, thereby reducing redundant transmission to a certain extent. In scenarios with limited terminal scale and relatively stable data generation patterns, such methods can basically meet the business requirements for data collection and preliminary processing, and provide basic data support for subsequent upper-layer applications such as billing settlement and resource analysis.

[0003] With the diversification of IoT terminal types, the expansion of deployment scale, and the refinement of business scenarios, traditional synchronization mechanisms are gradually revealing several limitations in dealing with high concurrency and heterogeneous terminal data. Particularly in critical billing and settlement scenarios, due to differences in the network environment of terminals, local clock drift, and fluctuations in data generation frequency, data segments reported by different terminals often exhibit time misalignment. This can easily lead to time dimension deviations when aggregating data across terminals or time periods, thus affecting the consistency of usage statistics and billing settlement. Furthermore, existing synchronization strategies typically lack multi-dimensional evaluation mechanisms for data priority, making it difficult to ensure the priority uploading of high-timeliness, high-value data segments in environments with limited network resources or unstable connections. This may result in delays in the synchronization of critical billing-related data, thereby affecting the timeliness of real-time billing and business decisions. Summary of the Invention

[0004] In view of the aforementioned existing problems, the present invention is proposed.

[0005] Therefore, this invention provides a smart terminal data synchronization method based on the Internet of Things to solve the problems of inconsistent metering data attribution and insufficient data synchronization timeliness caused by local time caliber deviation.

[0006] To solve the above-mentioned technical problems, the present invention provides the following technical solution:

[0007] This invention provides a data synchronization method for smart terminals based on the Internet of Things (IoT). The method includes: collecting usage metering data from the smart terminal; segmenting and labeling the usage metering data; outputting data segments to be synchronized and time-based identifiers; evaluating and ranking the synchronization priorities of the data segments to be synchronized and the time-based identifiers to obtain a synchronization priority ranking result; based on the synchronization priority ranking result, performing incremental data synchronization on high-priority data segments via IoT communication and transmitting the data with the corresponding time-based identifiers to obtain uploaded synchronized data segments; performing time correction on the uploaded synchronized data segments according to the time-based identifiers and performing data attribution processing to obtain billing-consistent usage data; performing integrity and consistency verification on the billing-consistent usage data, generating synchronization completion confirmation information, and sending it to the smart terminal.

[0008] As a preferred embodiment of the IoT-based smart terminal data synchronization method of the present invention, the steps of collecting usage measurement data from the smart terminal, segmenting and identifying the usage measurement data, and outputting the data segment to be synchronized and the time caliber identifier are as follows:

[0009] The smart terminal collects usage measurement data in real time while in operation and binds it to the local time information of the smart terminal to form time-identified usage data;

[0010] The time-identified usage data is segmented according to time continuity to obtain the data segments to be synchronized, and a time caliber identifier is assigned to each data segment to be synchronized.

[0011] As a preferred embodiment of the IoT-based smart terminal data synchronization method of the present invention, the time caliber identifier is obtained by reading the local time information of the smart terminal associated with the start and end points of the continuous time interval corresponding to the data segment to be synchronized, using the local time information covered by the continuous time interval as the time reference range, and associating and encapsulating the time reference range with the local time information.

[0012] As a preferred embodiment of the IoT-based smart terminal data synchronization method of the present invention, the steps for evaluating and sorting the synchronization priority of the data segment to be synchronized and the time caliber identifier to obtain the synchronization priority ranking result are as follows:

[0013] The first and last local time information in the data segment to be synchronized are taken as the start and end points of the local time interval, and the local time interval is associated with the time caliber identifier.

[0014] Based on the local time interval, the synchronization urgency of the data segment to be synchronized is assessed, and the synchronization urgency assessment result is output.

[0015] Based on the synchronization urgency assessment results, a synchronization priority is assigned to the data segments to be synchronized, and the priorities are sorted, and the synchronization priority sorting results are output.

[0016] As a preferred embodiment of the IoT-based smart terminal data synchronization method of the present invention, the step of assessing the synchronization urgency of the data segment to be synchronized based on the local time interval and outputting the synchronization urgency assessment result includes the following specific steps.

[0017] Extract the start and end fields of the local time interval of the data segment to be synchronized, and associate the end field of the local time interval with the billing time boundary information corresponding to the usage metering data to generate a billing boundary urgency identifier.

[0018] Based on the time reference range recorded in the time caliber identifier, the positional relationship of the local time interval within the time reference range is mapped to generate a time caliber urgency identifier.

[0019] The urgency fusion and sorting process is performed on the billing boundary urgency identifier and the time caliber urgency identifier to establish the urgency sorting relationship of the data segments to be synchronized, and the synchronization urgency identifier is assigned to the data segments to be synchronized. The corresponding data segments are then aggregated to form the synchronization urgency assessment results.

[0020] As a preferred embodiment of the IoT-based smart terminal data synchronization method of the present invention, the step of performing incremental data synchronization on high-priority data segments and transmitting them with corresponding time-based identifiers according to the synchronization priority ranking result to obtain the uploaded synchronized data segments is as follows.

[0021] Based on the synchronization priority sorting result, select the high-priority data segment from the data segments to be synchronized and use it as the current synchronization object;

[0022] Establish a data transmission connection based on IoT communication methods, and read unsynchronized usage measurement data from the current synchronization object to form incremental data content;

[0023] The incremental data content is associated and encapsulated with the corresponding time caliber identifier to form encapsulated incremental data content, which is then sent and marked as uploaded, forming an uploaded synchronization data segment.

[0024] As a preferred embodiment of the IoT-based smart terminal data synchronization method of the present invention, the steps of performing time correction on the uploaded synchronized data segments according to the time caliber identifier and performing data attribution processing to obtain billing-consistent usage data are as follows:

[0025] Extract usage measurement data and time caliber identifiers from the uploaded synchronized data segments;

[0026] Based on the time caliber identifier, the time reference range recorded in the time caliber identifier is parsed to obtain the local time caliber information, and the local time corresponding to the usage measurement data is time-corrected to obtain the corrected time information.

[0027] Based on the corrected time information, the dosage measurement data is sorted in chronological order to obtain the corrected dosage measurement data.

[0028] Based on the billing time rules, the corrected usage data is assigned to the corresponding billing time interval to form consistent usage data.

[0029] As a preferred embodiment of the IoT-based smart terminal data synchronization method of the present invention, the billing time rule is obtained by parsing the billing time boundary information corresponding to the usage metering data;

[0030] The billing time boundary information is collected during the usage measurement data processing and represents the start and end times of different billing time intervals.

[0031] As a preferred embodiment of the IoT-based smart terminal data synchronization method of the present invention, the steps for performing integrity and consistency checks on billing-consistent usage data and generating synchronization completion confirmation information are as follows:

[0032] Organize the time information corresponding to the billing-consistent usage data to form a time interval sequence. Based on the time interval sequence, perform a continuity analysis on the time coverage of the billing-consistent usage data and output the time continuity results.

[0033] Perform consistency analysis and normalization on the time continuity results, generate consistency normalization analysis results, assign synchronization status flags, and output synchronization completion confirmation information.

[0034] As a preferred embodiment of the IoT-based smart terminal data synchronization method of the present invention, the specific steps for sending data to the smart terminal are as follows:

[0035] Convert the synchronization completion confirmation information into a synchronization completion status representation corresponding to the billing-consistent usage data, and output the synchronization completion status data.

[0036] The synchronization completion status data is loaded into the communication connection, sent to the smart terminal, and the sending status is recorded as the billing data synchronization management status.

[0037] The beneficial effects of this invention are as follows: by introducing a dynamic segmentation and identification mechanism for usage metering data based on local time caliber on the smart terminal side, the adaptability of data synchronization in the Internet of Things environment is improved. Combined with integrity and consistency verification and synchronization confirmation feedback mechanism, a closed-loop management of data collection, transmission and billing processing is formed, which improves the consistency, reliability and business application value of usage metering data in billing and management scenarios. Attached Figure Description

[0038] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0039] Figure 1 This is a flowchart of a data synchronization method for smart terminals based on the Internet of Things.

[0040] Figure 2 This is a flowchart for data acquisition and segmented processing.

[0041] Figure 3 A flowchart for prioritizing and sorting synchronization.

[0042] Figure 4 A flowchart for time correction and data attribution.

[0043] Figure 5 This is a comparison chart of the billing interval misattribution rate under the same local time offset conditions.

[0044] Figure 6 A comparison chart of time correction errors under different local time offset conditions. Detailed Implementation

[0045] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0046] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the invention is not limited to the specific embodiments disclosed below.

[0047] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The phrase "in one embodiment" appearing in different places in this specification does not necessarily refer to the same embodiment, nor is it a single or selective embodiment that is mutually exclusive with other embodiments.

[0048] Reference Figures 1-6 This is one embodiment of the present invention, which provides a smart terminal data synchronization method based on the Internet of Things, including the following steps:

[0049] S1. Collect usage measurement data from smart terminals, segment and label the usage measurement data, and output the data segment to be synchronized and the time caliber identifier.

[0050] S1.1. The smart terminal collects usage measurement data in real time during operation and binds it to the local time information of the smart terminal to form time-identified usage data.

[0051] Specifically, the smart terminal collects resource usage parameters in real time during operation to generate usage measurement data, and simultaneously obtains the local time information of the smart terminal; establishes a one-to-one correspondence between the local time information of the smart terminal and the usage measurement data, and writes the local time information of the smart terminal into the corresponding record field of the usage measurement data to complete the binding; and collects the usage measurement data containing the local time information of the smart terminal to form time-identified usage data.

[0052] S1.2. The time stamp usage data is segmented according to time continuity to obtain the data segments to be synchronized, and a time caliber identifier is assigned to each data segment to be synchronized.

[0053] Specifically, the local time information of the smart terminal carried by the time identifier usage data is read and the time identifier usage data is sorted in chronological order to form a time order sorting result; based on the time order sorting result, the local time information of the smart terminal corresponding to adjacent time identifier usage data is analyzed for time continuity to divide the time continuous interval, and the time identifier usage data in the same time continuous interval are aggregated to form a data segment to be synchronized; the start time information and end time information of the time continuous interval are written into the segment identifier field of the data segment to be synchronized, and a time caliber identifier is generated for the data segment to be synchronized and a one-to-one correspondence is established with the data segment to be synchronized, and the data segment to be synchronized and the time caliber identifier are output.

[0054] It should be noted that the segmentation of usage data uses time continuity as the segmentation boundary criterion. When the time interval between the local time information of the smart terminal corresponding to two adjacent time-identified usage data exceeds the time break threshold, the adjacent time-identified usage data will be divided into different data segments to be synchronized. The time break threshold can be determined according to the sampling period of the usage data. For example, the value is twice the sampling period, or the high quantile value of the time interval distribution obtained by the smart terminal during operation.

[0055] S1.3. The time caliber identifier is generated by reading the local time information of the smart terminal associated with the start and end points of the continuous time interval corresponding to the data segment to be synchronized, using the local time information covered by the continuous time interval as the time reference range, and associating and encapsulating the time reference range with the local time information.

[0056] Specifically, after the data segment to be synchronized is divided, the local time information of the smart terminal associated with the start point of the continuous time interval corresponding to the data segment to be synchronized and the local time information of the smart terminal associated with the end point of the continuous time interval are read and combined to form a time reference range. The smart terminal establishes a correspondence between the time reference range and the local time information of the smart terminal carried by the time identifier usage data in the data segment to be synchronized and performs association encapsulation processing. The association encapsulation processing includes writing the time reference range into the identifier field of the time caliber identifier and establishing a one-to-one correspondence between the time caliber identifier and the data segment to be synchronized to generate the time caliber identifier.

[0057] S2. Evaluate and sort the synchronization priority of the data segments and time caliber identifiers to be synchronized, and obtain the synchronization priority sorting results.

[0058] S2.1. Take the first and last local time information in the data segment to be synchronized as the start and end points of the local time interval, and establish a connection between the local time interval and the time caliber identifier.

[0059] Specifically, the local time information of the smart terminal carried by the time identifier usage data in the data segment to be synchronized is read, and the first and last local time information in the data segment to be synchronized are located in chronological order; the first local time information is written into the local time interval start field and the last local time information is written into the local time interval end field to obtain the local time interval covering the data segment to be synchronized; the local time interval is associated with the time caliber identifier corresponding to the data segment to be synchronized and the association relationship is recorded to obtain the local time interval consistent with the time caliber identifier.

[0060] S2.2. Based on the local time interval, perform a synchronization urgency assessment on the data segment to be synchronized and output the synchronization urgency assessment result.

[0061] S2.2.1 Extract the start and end fields of the local time interval of the data segment to be synchronized, and associate the end field of the local time interval with the billing time boundary information corresponding to the usage metering data to generate a billing boundary urgency identifier.

[0062] Specifically, the process involves reading the data segment to be synchronized and extracting the local time interval start field and local time interval end field of the data segment. Based on the local time interval end field, the process locates the billing time interval end time that is in the same billing time interval as the local time interval end field in the billing time boundary information corresponding to the usage metering data. The process then associates the local time interval end field with the billing time interval end time and generates an association result representation. This association result representation is written into the urgency record field of the data segment to be synchronized and a one-to-one correspondence is established with the data segment to be synchronized, forming a billing boundary urgency identifier.

[0063] S2.2.2. Based on the time reference range recorded in the time caliber identifier, the positional relationship of the local time interval within the time reference range is mapped to generate a time caliber urgency identifier.

[0064] Specifically, the process involves reading the time caliber identifier corresponding to each data segment to be synchronized and parsing the time reference range recorded in the time caliber identifier to obtain the start time and end time information of the time reference range. It also involves reading the start and end fields of the local time interval of the data segment to be synchronized and mapping these fields to the time reference range defined by the start and end time information, thus forming a mapping result representation of the relative position of the local time interval within the time reference range. This mapping result is then written into the urgency record field of the data segment to be synchronized and a one-to-one correspondence is established with the data segment to be synchronized, generating a time caliber urgency identifier.

[0065] S2.2.3. Perform urgency fusion sorting processing on the billing boundary urgency identifier and the time caliber urgency identifier to establish the urgency sorting relationship of the data segments to be synchronized, assign synchronization urgency identifiers to the data segments to be synchronized, and perform corresponding aggregation to form the synchronization urgency assessment results.

[0066] Specifically, the process involves reading the billing boundary urgency identifier and the time caliber urgency identifier, extracting the one-to-one correspondence between these identifiers and the data segments to be synchronized, performing a first sort based on the urgency level of the billing boundary urgency identifiers, and generating a first sorting result. If data segments with the same billing boundary urgency identifier exist in the first sorting result, a second sort is performed based on the urgency level of the time caliber urgency identifiers, generating a second sorting result. The first and second sorting results are then merged to form an urgency sorting relationship. A synchronization urgency identifier is assigned to each data segment according to the urgency sorting relationship and written into the urgency identifier field of the data segment. Simultaneously, the data segments to be synchronized and the synchronization urgency identifiers are aggregated to form a synchronization urgency assessment result.

[0067] S2.3. Assign synchronization priorities to the data segments to be synchronized based on the synchronization urgency assessment results, sort the priorities, and output the synchronization priority sorting results.

[0068] Specifically, the synchronization urgency assessment results are read and the correspondence between the data segments to be synchronized and the synchronization urgency identifiers is extracted. Based on the priority relationship of the synchronization urgency identifiers, a synchronization priority is assigned to each data segment to be synchronized, and the synchronization priority is written into the priority identifier field of the data segment to be synchronized to complete the synchronization priority allocation. The synchronization priorities of all data segments to be synchronized are compared and arranged in descending order of synchronization priority to form a priority sorting queue. At the same time, if the synchronization priorities are the same, the order of the data segments to be synchronized in the priority sorting queue is determined based on the order of the start time information of the time continuous interval corresponding to the data segments to be synchronized. The priority sorting queue and the data segments to be synchronized are established in a one-to-one correspondence and aggregated, and the synchronization priority sorting result is output.

[0069] S3. Based on the synchronization priority sorting result, perform incremental data synchronization on high-priority data segments through IoT communication and transmit them with the corresponding time caliber identifier to obtain the uploaded synchronized data segments.

[0070] S3.1. Based on the synchronization priority sorting result, select the high-priority data segment from the data segments to be synchronized and use it as the current synchronization object.

[0071] Specifically, the synchronization priority sorting result is read, and the data segments to be synchronized are located in the priority sorting result according to their priority order. Each data segment is then filtered and judged according to its corresponding synchronization priority. Data segments with a synchronization priority at the top of the priority sorting are identified as high-priority data segments, and their position in the priority sorting result is recorded. The top priority segment is the range of data segments that are ranked high in the priority sorting result and meet the incremental data synchronization capacity constraints for this operation. For example, the example value is the first 5 data segments or the first 20% of the data segments to be synchronized. High-priority data segments are separated from the data segments to be synchronized and aggregated to form a high-priority set to be synchronized, while maintaining the same order as the synchronization priority sorting result. High-priority data segments for this incremental data synchronization are selected from the high-priority set to be synchronized and output as the current synchronization object.

[0072] S3.2. Establish a data transmission connection based on the Internet of Things (IoT) communication method, and read the unsynchronized usage measurement data from the current synchronization object to form incremental data content.

[0073] Specifically, based on IoT communication, a communication session is initiated with the corresponding receiving end on the platform side, and connection parameters are negotiated to establish a data transmission connection for carrying incremental data synchronization. After the data transmission connection is successfully established, the high-priority data segment recorded in the current synchronization object is read, and the usage metering data in the unsynchronized state within the high-priority data segment is located. Based on the segment boundary information and unsynchronized state marker information of the high-priority data segment, the segment boundary information is the start time information and end time information of the continuous time interval written into the segment identifier field of the data segment to be synchronized during the generation process of the data segment to be synchronized. This information is used to limit the time coverage of the usage metering data within the high-priority data segment. The unsynchronized usage metering data is extracted from the high-priority data segment and arranged in chronological order to form an unsynchronized usage metering sequence. The unsynchronized usage metering sequence is then aggregated into the incremental data content for this transmission, thus obtaining the incremental data content.

[0074] S3.3. Associate and encapsulate the incremental data content with the corresponding time caliber identifier to form encapsulated incremental data content, and send it while marking it as uploaded, forming an uploaded synchronization data segment.

[0075] Specifically, the process involves reading the high-priority data segments corresponding to the incremental data content and obtaining the time caliber identifiers corresponding to each high-priority data segment. These time caliber identifiers are then written into the time caliber identifier field of the incremental data content to establish a correlation between the incremental data content and the time caliber identifiers. The time caliber identifiers and the incremental data content are then sent together to form the encapsulated incremental data content. Based on the established data transmission connection, the encapsulated incremental data content is sent to the corresponding receiving end. After transmission, the high-priority data segments corresponding to the encapsulated incremental data content are written into the uploaded status flag information to complete the uploaded status flag. The high-priority data segments that have completed the uploaded status flag are identified as uploaded synchronization data segments and output as uploaded synchronization data segments.

[0076] S4. Perform time correction on the uploaded synchronized data segments according to the time caliber identifier, and perform data attribution processing to obtain billing-consistent usage data.

[0077] S4.1. Extract usage measurement data and time caliber identifier from the uploaded synchronized data segment.

[0078] Specifically, the process involves reading the uploaded synchronized data segment and parsing the encapsulated incremental data content recorded within it. Based on the field mapping relationships within the encapsulated incremental data content, the process locates the usage measurement data record field containing the usage measurement data and the time caliber identifier field containing the time caliber identifier. The usage measurement data carried by the encapsulated incremental data content is extracted from the usage measurement data record field and aggregated to form the usage measurement data extraction result. Simultaneously, the time caliber identifier corresponding one-to-one with the usage measurement data extraction result is extracted from the time caliber identifier field and aggregated to form the time caliber identifier extraction result. Finally, a one-to-one correspondence is established between the usage measurement data extraction result and the time caliber identifier extraction result.

[0079] S4.2. Based on the time caliber identifier, the time reference range recorded in the time caliber identifier is parsed to obtain the local time caliber information, and the local time corresponding to the usage measurement data is time-corrected to obtain the corrected time information.

[0080] Specifically, based on the usage measurement data and time caliber identifier, the time reference range in the time caliber identifier is read and the start time information and end time information of the continuous time interval contained in the time reference range are parsed. The local time caliber information corresponding to the time reference range is determined by the start time information and end time information of the continuous time interval.

[0081] A one-to-one correspondence is established between the local time caliber information and the local time information of the smart terminal carried by the usage measurement data. Based on the local time caliber information, the local time information of the smart terminal is time-corrected. The time correction process includes verifying the consistency of the sequence of the local time information of the smart terminal and standardizing and correcting inconsistent local time information of the smart terminal, and outputting the corrected time information.

[0082] It should be noted that the expression for proportional mapping time correction is:

[0083] ;

[0084] in, Indicates the first The usage measurement data carries the local time information of the smart terminal. Indicates the local time information of the smart terminal The corrected time information after time correction processing. This indicates the start and end time information of the time reference range recorded in the time caliber identifier. This indicates the end time information of the time reference range recorded in the time caliber identifier. This indicates the end time of the time reference range under the platform-side time base. This indicates the start time of the time reference range under the platform-side time base.

[0085] Furthermore, to verify the effectiveness of time caliber labeling and time correction mechanisms in improving time consistency, a comparative analysis was conducted on the average time correction error of usage measurement data under the same simulation conditions; such as... Figure 5 As shown, without the method of this invention enabled, the average time correction error increases significantly with the increase of the local time offset; however, with the method of this invention enabled, the average time correction error changes less, and the difference is more obvious in the local magnification range. This indicates that the present invention can effectively suppress the accumulation of errors caused by time offset and improve the consistency of usage measurement data in the time dimension by uniformly correcting the local time through time caliber identification. Without enabling the present invention, under the same smart terminal data collection and synchronization conditions, the usage measurement data is uploaded and processed without introducing the time caliber identification mechanism, dynamic segmentation mechanism and time correction and consistency verification processing based on time caliber described in the present invention. Instead, the usage measurement data is directly processed sequentially and the billing time interval is assigned based on the local time information of the smart terminal.

[0086] S4.3. Based on the corrected time information, organize the usage measurement data in chronological order to obtain the corrected usage measurement data.

[0087] Specifically, based on the usage measurement data and the corrected time information, a one-to-one correspondence is established between the corrected time information and the usage measurement data to form a set of usage measurement data with corrected time. The corrected time information corresponding to each piece of usage measurement data in the set of usage measurement data with corrected time is read and its chronological relationship is compared. The usage measurement data is arranged from earliest to latest according to the corrected time information to form a time-ordered result. When there are usage measurement data with the same corrected time information, the order of the usage measurement data in the time-ordered result is determined based on the original arrangement order of the usage measurement data in the uploaded synchronized data segment. The usage measurement data in the time-ordered result is collected and output as the corrected usage measurement data.

[0088] S4.4. Based on the billing time rules, assign the corrected usage data to the corresponding billing time interval to form billable usage data.

[0089] Specifically, based on the corrected usage metering data and billing time rules, the billing time boundary information recorded in the billing time rules is read, and the start time and end time of the billing time interval contained in the billing time boundary information are parsed to form a billing time interval set; the corrected time information corresponding to the corrected usage metering data is read one by one in chronological order, and the corrected time information is matched with the start time and end time of the billing time interval in the billing time interval set to determine the billing time interval affiliation of the corrected usage metering data; the corrected usage metering data with completed billing time interval affiliation is written into the affiliation record field of the corresponding billing time interval, and the corrected usage metering data is aggregated according to the billing time interval to form billing consistent usage data.

[0090] Furthermore, to verify the effectiveness of the method of the present invention in terms of billing consistency, different local time offsets were introduced in a simulation environment to compare the attribution of usage measurement data within the billing time interval when the method of the present invention is enabled and disabled. Figure 6 As shown, with the increase of local time offset, the billing interval misassignment rate increases significantly when the method of the present invention is not enabled; after enabling the time correction and data attribution processing mechanism based on time caliber identification of the present invention, the billing interval misassignment rate remains at a low level, indicating that the present invention can effectively reduce the impact of local time caliber deviation on the accuracy of billing time interval attribution and improve the consistency of billing data.

[0091] S4.5. The billing time rules are obtained by parsing the billing time boundary information corresponding to the usage measurement data.

[0092] Specifically, the billing time boundary information recorded in the usage measurement data is read, and the start and end times of the billing time intervals carried by the billing time boundary information are parsed. The start and end times of the billing time intervals are paired according to their chronological relationship to form a set of billing time intervals. The set of billing time intervals is then sorted into a time sequence to obtain a billing time interval sequence arranged by time. The billing time interval sequence is then associated with the start and end times of the corresponding billing time intervals and recorded. The results of the billing time boundary information parsing are solidified into billing time rules for billing time interval matching.

[0093] S4.6. Billing time boundary information is collected during the usage measurement data processing process and represents the start and end times of different billing time intervals.

[0094] Specifically, when generating time-identified usage data and performing the division of data segments to be synchronized, the smart terminal simultaneously collects billing time boundary information. The billing time boundary information establishes a correspondence with the usage measurement data in the form of the start time and end time of the billing time interval and writes it into the billing time boundary information field of the usage measurement data, so that the billing time boundary information can represent the start and end times of different billing time intervals.

[0095] S5. Perform integrity and consistency checks on the billing-consistent usage data, generate a synchronization completion confirmation message, and send it to the smart terminal.

[0096] S5.1. Organize the time information corresponding to the billing-consistent usage data to form a time interval sequence. Based on the time interval sequence, perform a continuity analysis on the time coverage of the billing-consistent usage data and output the time continuity results.

[0097] Specifically, the corrected time information corresponding to each corrected usage measurement data in the billing consistency usage data is extracted. The corrected time information is then organized according to its chronological order, and the start and end times of the time coverage for the billing consistency usage data are determined. Based on the structure of the billing consistency usage data organized by billing time interval, the corrected time information belonging to each billing time interval is read one by one, and the start and end times of each interval are determined. The start and end times of each billing time interval are then arranged according to their chronological order to form a time interval sequence. Based on the time interval sequence, a continuity analysis is performed on the end and start times of adjacent time intervals to determine if there are any time breaks in the time coverage of the billing consistency usage data, and the time continuity result is output.

[0098] It should be noted that the expression for the interval between adjacent intervals is:

[0099] ;

[0100] in, Indicates the first The time interval and the first The time interval between time intervals Indicates the sequence number in the time interval series. Indicates the first Start time information for each time interval Indicates the first End time information for each time interval.

[0101] S5.2. Perform consistency analysis and normalization on the time continuity results, generate consistency normalization analysis results, assign synchronization status flags, and output synchronization completion confirmation information.

[0102] Specifically, the process involves reading the time continuity results and parsing the time coverage continuity determination information recorded within them. Based on this information, a consistency analysis is performed on the time interval sequence of the billing consistency usage data to determine if there are any missing, overlapping, or abnormal interval sequences. The determination conclusions from the consistency analysis are then correlated with the time continuity results to form a consistency analysis record. This record is then standardized by converting the determination conclusions into a unified synchronization result representation, assigning a synchronization status identifier to the representation, and forming a standardized consistency analysis result. Finally, the synchronization status identifiers in the standardized consistency analysis result are associated and encapsulated with the billing consistency usage data identifier information to generate a synchronization completion confirmation message.

[0103] S5.3. Convert the synchronization completion confirmation information into a synchronization completion status representation corresponding to the billing consistency usage data, and output the synchronization completion status data.

[0104] Specifically, the process reads the synchronization completion confirmation information and parses the associated and encapsulated synchronization status identifier and billing-consistent usage data identifier information. Based on the billing-consistent usage data identifier information, it locates the billing-consistent usage data range corresponding to the synchronization completion confirmation information and extracts the synchronization result representation content corresponding to the synchronization status identifier. The synchronization result representation content is then converted into a synchronization completion status representation format recognizable by the smart terminal. This includes mapping the synchronization status identifier to a status field value that corresponds one-to-one with the billing-consistent usage data range and writing the status field value into the record field of the synchronization completion status representation format. Simultaneously, the billing-consistent usage data identifier information is written into the associated field of the synchronization completion status representation format. The converted synchronization completion status representation formats are then collected, and the synchronization completion status data is output.

[0105] S5.4. Load the synchronization completion status data into the communication connection, send it to the smart terminal, and record the sending status as the billing data synchronization management status.

[0106] Specifically, the process reads the synchronization completion status data and confirms that the communication connection corresponding to the synchronization completion status data is established. It then writes the synchronization completion status data into the transmission buffer of the communication connection to complete the synchronization completion status data loading process. Based on the communication connection, it performs a transmission operation to send the synchronization completion status data to the smart terminal. After the transmission operation is completed, it reads the transmission result information returned by the communication connection and establishes a correspondence between the transmission result information and the billing-consistent usage data identifier information of the synchronization completion status data. Based on the transmission result information, it generates transmission status record content and writes the transmission status record content into the status record field of the billing data synchronization management status. The transmission status of the synchronization completion status data is recorded as the billing data synchronization management status, and the billing data synchronization management status is output.

[0107] In summary, this invention improves the adaptability of data synchronization in the Internet of Things environment by introducing a dynamic segmentation and identification mechanism for usage metering data based on local time caliber on the smart terminal side. Combined with integrity and consistency verification and synchronization confirmation feedback mechanisms, it forms a closed-loop management of data collection, transmission and billing processing, thereby improving the consistency, reliability and business application value of usage metering data in billing and management scenarios.

[0108] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.

Claims

1. A method for synchronizing data between smart terminals based on the Internet of Things, characterized in that: include, Collect usage measurement data from smart terminals, segment and label the usage measurement data, and output the data segment to be synchronized and the time caliber identifier. The time caliber identifier is obtained by reading the local time information of the smart terminal associated with the start and end points of the continuous time interval corresponding to the data segment to be synchronized, using the local time information covered by the continuous time interval as the time reference range, and associating and encapsulating the time reference range with the local time information. The synchronization priority of the data segments to be synchronized and the time caliber identifiers are evaluated and sorted to obtain the synchronization priority sorting results. Based on the synchronization priority ranking result, incremental data synchronization is performed on high-priority data segments via IoT communication, and the corresponding time caliber identifier is transmitted to obtain the uploaded synchronized data segments. The uploaded synchronized data segments are time-corrected according to the time caliber identifier and the data attribution is processed to obtain billing-consistent usage data. The process of time-correcting the uploaded synchronized data segments according to the time caliber identifier and performing data attribution processing to obtain billing-consistent usage data is as follows. Extract usage measurement data and time caliber identifiers from the uploaded synchronized data segments; Based on the time caliber identifier, the time reference range recorded in the time caliber identifier is parsed to obtain the local time caliber information, and the local time corresponding to the usage measurement data is time-corrected to obtain the corrected time information. Based on the corrected time information, the dosage measurement data is sorted in chronological order to obtain the corrected dosage measurement data. Based on the billing time rules, the corrected usage data is assigned to the corresponding billing time interval to form consistent usage data. The billing time rules are obtained by parsing the billing time boundary information corresponding to the usage measurement data; The billing time boundary information is collected during the usage measurement data processing and represents the start and end times of different billing time intervals. The system performs integrity and consistency checks on billing-compliant usage data, generates a synchronization completion confirmation message, and sends it to the smart terminal.

2. The data synchronization method for smart terminals based on the Internet of Things as described in claim 1, characterized in that: The process involves collecting usage measurement data from smart terminals, segmenting and labeling the data, and outputting the data segment to be synchronized and its time caliber identifier. The specific steps are as follows: The smart terminal collects usage measurement data in real time while in operation and binds it to the local time information of the smart terminal to form time-identified usage data; The time-identified usage data is segmented according to time continuity to obtain the data segments to be synchronized, and a time caliber identifier is assigned to each data segment to be synchronized.

3. The data synchronization method for smart terminals based on the Internet of Things as described in claim 1, characterized in that: The synchronization priority evaluation and sorting of the data segments to be synchronized and the time caliber identifiers are performed to obtain the synchronization priority ranking result. The specific steps are as follows: The first and last local time information in the data segment to be synchronized are taken as the start and end points of the local time interval, and the local time interval is associated with the time caliber identifier. Based on the local time interval, the synchronization urgency of the data segment to be synchronized is assessed, and the synchronization urgency assessment result is output. Based on the synchronization urgency assessment results, a synchronization priority is assigned to the data segments to be synchronized, and the priorities are sorted, and the synchronization priority sorting results are output.

4. The data synchronization method for smart terminals based on the Internet of Things as described in claim 3, characterized in that: The process of assessing the synchronization urgency of the data segment to be synchronized based on the local time interval and outputting the synchronization urgency assessment result involves the following steps. Extract the start and end fields of the local time interval of the data segment to be synchronized, and associate the end field of the local time interval with the billing time boundary information corresponding to the usage metering data to generate a billing boundary urgency identifier. Based on the time reference range recorded in the time caliber identifier, the positional relationship of the local time interval within the time reference range is mapped to generate a time caliber urgency identifier. The urgency fusion and sorting process is performed on the billing boundary urgency identifier and the time caliber urgency identifier to establish the urgency sorting relationship of the data segments to be synchronized, and the synchronization urgency identifier is assigned to the data segments to be synchronized. The corresponding data segments are then aggregated to form the synchronization urgency assessment results.

5. The data synchronization method for smart terminals based on the Internet of Things as described in claim 3, characterized in that: The process involves performing incremental data synchronization on high-priority data segments based on synchronization priority, transmitting the data with corresponding time-based identifiers via IoT communication to obtain the uploaded synchronized data segments. The specific steps are as follows. Based on the synchronization priority sorting result, select the high-priority data segment from the data segments to be synchronized and use it as the current synchronization object; Establish a data transmission connection based on IoT communication methods, and read unsynchronized usage measurement data from the current synchronization object to form incremental data content; The incremental data content is associated and encapsulated with the corresponding time caliber identifier to form encapsulated incremental data content, which is then sent and marked as uploaded, forming an uploaded synchronization data segment.

6. The data synchronization method for smart terminals based on the Internet of Things as described in claim 1, characterized in that: The steps for performing integrity and consistency checks on billing-consistent usage data and generating synchronization completion confirmation information are as follows. Organize the time information corresponding to the billing-consistent usage data to form a time interval sequence. Based on the time interval sequence, perform a continuity analysis on the time coverage of the billing-consistent usage data and output the time continuity results. Perform consistency analysis and normalization on the time continuity results, generate consistency normalization analysis results, assign synchronization status flags, and output synchronization completion confirmation information.

7. The data synchronization method for smart terminals based on the Internet of Things as described in claim 1, characterized in that: The specific steps for sending the data to the smart terminal are as follows: Convert the synchronization completion confirmation information into a synchronization completion status representation corresponding to the billing-consistent usage data, and output the synchronization completion status data. The synchronization completion status data is loaded into the communication connection, sent to the smart terminal, and the sending status is recorded as the billing data synchronization management status.

Citation Information

Patent Citations

  • Industrial control system remote monitoring data synchronization method

    CN120321254A

  • Distributed intelligent measurement data synchronization management method and system

    CN120336424A