Data processing method and device, electronic equipment and storage medium

By receiving reset data in the smart meter and performing data stitching, the problem of inaccurate metering data after resetting the smart meter is solved, and the accuracy and measurement range of data are improved.

CN119533546APending Publication Date: 2025-02-28GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411469693.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-21
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

The smart meter is reset and cleared after the storage capacity reaches the limit, resulting in inaccurate metering data received by the server.

Method used

By receiving the reset data of the metering device, it is determined whether the data suture trigger condition is met, the metering breakpoint data is obtained, and the first metering data and the metering breakpoint data are stitched to obtain the accurate second metering data.

Benefits of technology

Improve the accuracy of metrology data, avoid data loss caused by resetting the metrology device, and expand the metrology range of the metrology device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

The invention relates to a data processing method and device, electronic equipment and a storage medium, and the data processing method comprises the steps: obtaining reset data of metering equipment if first metering data from the metering equipment is received; determining whether the reset data meets a data stitching triggering condition or not; if the reset data meet the data stitching triggering condition, obtaining metering breakpoint data according to the reset data; and performing data stitching on the first metering data and the metering breakpoint data to obtain second metering data. According to the embodiment of the invention, when the reset data of the metering equipment meets the data stitching triggering condition, the first metering data and the metering breakpoint data are automatically subjected to data stitching to obtain the second metering data, and the first metering data uploaded after the metering equipment is reset can be corrected into the second metering data through data stitching, so that the data stitching efficiency is improved. The accuracy of metering data is improved, metering data loss caused by resetting of metering equipment is avoided, and the metering range of the metering equipment is expanded.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a data processing method, device, electronic device and storage medium. Background Art

[0002] Smart meters are one of the basic devices for data collection in smart grids (especially smart distribution networks). They are responsible for collecting, measuring and transmitting raw electric energy data, and are the basis for information integration, analysis optimization and information presentation. In addition to the basic electricity consumption metering function of traditional electric energy meters, smart meters also have two-way multi-rate metering function, user-side control function, two-way data communication function with multiple data transmission modes, anti-electricity theft function and other intelligent functions in order to adapt to the use of smart grids and new energy.

[0003] However, the storage capacity of hardware components (e.g. registers) in smart meters is limited. When the amount of reported data reaches the limit of hardware storage, the smart meter will no longer accumulate data, but will continue to report after resetting, which may cause inaccurate metering data received by the server. Summary of the invention

[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the present application provides a data processing method, device, electronic device and storage medium.

[0005] In a first aspect, the present application provides a data processing method, comprising:

[0006] If first metering data from a metering device is received, obtaining reset data of the metering device;

[0007] Determining whether the reset data satisfies a data stitching trigger condition;

[0008] If the reset data meets the data stitching trigger condition, obtaining the metering breakpoint data according to the reset data;

[0009] The first measurement data and the measurement breakpoint data are stitched together to obtain second measurement data.

[0010] Optionally, determining whether the reset data satisfies a data stitching trigger condition includes:

[0011] determining the number of times the metering device has been reset based on the reset data;

[0012] Determine whether the number of resets is greater than or equal to 1;

[0013] If the number of reset times is greater than or equal to 1, it is determined that the reset data of the metering device meets the data stitching trigger condition.

[0014] Optionally, obtaining metering breakpoint data according to the reset data includes:

[0015] Determine and obtain the number of times the metering device has been reset according to the reset data;

[0016] Obtaining a measurement upper limit value of the measurement device;

[0017] The metering breakpoint data is determined according to the number of reset times and the metering upper limit value.

[0018] Optionally, obtaining metering breakpoint data according to the reset data includes:

[0019] Determining, according to the reset data, last reset information of the last reset of the metering device;

[0020] Acquire a first upper limit value corresponding to the last reset of the metering device according to the last reset information;

[0021] The metering breakpoint data is determined according to the first upper limit value.

[0022] Optionally, the method further comprises:

[0023] Determining whether the first metering data reaches a metering upper limit value of the metering device;

[0024] If the first metering data reaches the metering upper limit value, updating the reset data of the metering device, and obtaining the first upper limit value corresponding to the last reset of the metering device;

[0025] A second upper limit value is determined based on the first measurement data and the first upper limit value to serve as the first upper limit value corresponding to this reset.

[0026] Optionally, the method further comprises:

[0027] determining whether the first metering data reaches a first reset anchor point;

[0028] If the first metering data reaches the first reset anchor point, determining whether the first metering data reaches a metering upper limit value of the metering device;

[0029] If the first metering data reaches the metering upper limit value, updating the reset data of the metering device, and obtaining the first upper limit value corresponding to the last reset of the metering device;

[0030] A second upper limit value is determined based on the first measurement data and the first upper limit value to serve as the first upper limit value corresponding to this reset.

[0031] Optionally, performing data stitching based on the first measurement data and the measurement breakpoint data to obtain target measurement data includes:

[0032] Calculating the sum of the first measurement data and the measurement breakpoint data;

[0033] The sum is determined as the target measurement data.

[0034] In a second aspect, the present application provides a data processing device, comprising:

[0035] A first data acquisition module, configured to acquire reset data of the metering device upon receiving first metering data from the metering device;

[0036] A condition judgment module, used to determine whether the reset data meets the data stitching trigger condition;

[0037] A second data acquisition module, configured to acquire metering breakpoint data according to the reset data if the reset data meets a data stitching trigger condition;

[0038] The data stitching module is used to stitch the first measurement data with the measurement breakpoint data to obtain second measurement data.

[0039] Optionally, the condition judgment module includes:

[0040] a first determining unit, configured to determine a number of times the metering device has been reset according to the reset data;

[0041] A second determining unit, used to determine whether the number of reset times is greater than or equal to 1;

[0042] The third determining unit is configured to determine, if the number of reset times is greater than or equal to 1, whether the reset data of the metering device meets a data stitching trigger condition.

[0043] Optionally, the second data acquisition module includes:

[0044] A fourth determining unit, configured to determine, according to the reset data, the number of times the metering device has been reset;

[0045] A first acquisition unit, used to acquire a measurement upper limit value of the measurement device;

[0046] A fifth determining unit is used to determine the metering breakpoint data according to the number of reset times and the metering upper limit value.

[0047] Optionally, the second data acquisition module includes:

[0048] a sixth determining unit, configured to determine, according to the reset data, last reset information of the last reset of the metering device;

[0049] A second acquisition unit, configured to acquire, according to the last reset information, a first upper limit value corresponding to the last reset of the metering device;

[0050] A seventh determining unit is used to determine the measurement breakpoint data according to the first upper limit value.

[0051] Optionally, the device further comprises:

[0052] A first determination module, used to determine whether the first measurement data reaches a measurement upper limit value of the measurement device;

[0053] A first update acquisition module is used to update the reset data of the metering device and acquire the first upper limit value corresponding to the last reset of the metering device if the first metering data reaches the metering upper limit value;

[0054] The second determining module is used to determine a second upper limit value based on the first measurement data and the first upper limit value to serve as the first upper limit value corresponding to this reset.

[0055] Optionally, the device further comprises:

[0056] A third determination module, configured to determine whether the first measurement data reaches a first reset anchor point;

[0057] a fourth determination module, configured to determine whether the first metering data reaches a metering upper limit value of the metering device if the first metering data reaches the first reset anchor point;

[0058] A first update acquisition module is used to update the reset data of the metering device and acquire the first upper limit value corresponding to the last reset of the metering device if the first metering data reaches the metering upper limit value;

[0059] The fifth determining module is used to determine a second upper limit value based on the first measurement data and the first upper limit value to serve as the first upper limit value corresponding to this reset.

[0060] Optionally, the data stitching module includes:

[0061] a calculation unit, configured to calculate a sum of the first measurement data and the measurement breakpoint data;

[0062] An eighth determining unit is configured to determine the sum as the target measurement data.

[0063] In a third aspect, the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;

[0064] Memory, used to store computer programs;

[0065] The processor is used to implement any data processing method described in the first aspect when executing a program stored in the memory.

[0066] In a fourth aspect, the present application provides a computer-readable storage medium, on which a program of a data processing method is stored. When the program of the data processing method is executed by a processor, the steps of any data processing method described in the first aspect are implemented.

[0067] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art:

[0068] The embodiment of the present application can automatically stitch the first metering data with the metering breakpoint data to obtain the second metering data when the reset data of the metering device meets the data stitching trigger condition. Through data stitching, the first metering data uploaded by the metering device after resetting can be corrected to the second metering data, thereby improving the accuracy of the metering data, avoiding the loss of metering data due to the resetting of the metering device, and expanding the metering range of the metering device. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0070] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0071] Figure 1 A flowchart of a data processing method provided in an embodiment of the present application;

[0072] Figure 2 for Figure 1 Flow chart of step S102;

[0073] Figure 3 for Figure 1 Flow chart of step S103;

[0074] Figure 4 for Figure 1 Flow chart of step S103;

[0075] Figure 5 A flowchart of another data processing method provided in an embodiment of the present application;

[0076] Figure 6A flowchart of another data processing method provided in an embodiment of the present application;

[0077] Figure 7 A structural diagram of a data processing device provided in an embodiment of the present application;

[0078] Figure 8 A structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0079] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution 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. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0080] Since the storage capacity of the hardware (such as registers) in the smart meter is fixed, when the reported value reaches the upper limit of the hardware storage value, the smart meter will not be able to continue to accumulate data, but will reset and continue to report, resulting in inaccurate metering data received by the server. To this end, the embodiments of the present application provide a data processing method, device, electronic device and storage medium.

[0081] The present application embodiment provides a data processing method, which can be applied to a server, and the server can communicate with multiple metering devices, such as Figure 1 As shown, the data processing method may include the following steps:

[0082] Step S101, if first measurement data from a measurement device is received, obtaining reset data of the measurement device;

[0083] In an embodiment of the present application, the metering device may refer to a smart electricity meter, a smart water meter, a smart gas meter, or other device that will automatically clear to zero when the storage space is full. The storage space of the metering device is determined according to the number of storage bits of its internal register, and the metering upper limit value can be determined according to the upper limit of the storage space of the metering device. Because the storage space of the metering device is fixed, the metering upper limit value of the metering device is also fixed. The metering upper limit value of the metering device can be pre-stored in the server, or the metering device can send the metering upper limit value to the server.

[0084] After the metering device has been running for a period of time, the accumulated value of the metering device will reach the upper limit of the metering. For example, a metering device that has been running for 5 or 6 years will have its accumulated value reach the upper limit of 99999 (the number of digits varies for different devices, and this is just an example). At this time, the metering device will no longer be able to accumulate, and will automatically reset and start accumulating from 0.

[0085] The metering device can upload the first metering data to the server through a communication method such as a TCP connection. Furthermore, the metering device can upload the first metering data to the server at fixed time intervals, or upload the latest collected first metering data each time the latest collected first metering data changes relative to the last collected first metering data.

[0086] The first metering data refers to the metering data actually collected by the metering device. For example, if the metering data collected by the metering device is 998, then the first metering data is 998.

[0087] The reset data of the metering device includes the number of times the metering device has been reset and the reset information of each reset. When the first metering data received by the server reaches the metering upper limit value of the metering device for the first time, the reset data of the metering device is created, and it is considered that the metering device has been reset for the first time or is about to be reset for the first time (within a short period of time). The reset data is recorded, including: recording the reset information of the reset and recording the number of resets. When the first metering data subsequently received by the server reaches the metering upper limit value again, the reset data is updated, including: recording the reset information of the reset and updating the number of resets.

[0088] In this step, after the metering device collects the first metering data, it uploads the first metering data to the server, and then the server can receive the first metering data uploaded by the metering device. After the server receives the first metering data, it can obtain the latest reset data of the metering device.

[0089] Step S102, determining whether the reset data meets the data stitching trigger condition;

[0090] In an embodiment of the present application, a data stitching trigger condition can be set in advance. When the reset data meets the data stitching trigger condition, in order to ensure accurate metering data, data stitching can be performed on the first metering data. When the reset data does not meet the data stitching trigger condition, in order to save system resources, data stitching of the first metering data is not performed.

[0091] In this step, one or more information in the reset data can be matched with the data stitching trigger condition. If the reset data successfully matches the data stitching trigger condition, it can be determined that the first metering data meets the data stitching trigger condition. Otherwise, the first metering data does not meet the data stitching trigger condition.

[0092] Step S103, if the reset data meets the data stitching trigger condition, obtaining the measurement breakpoint data according to the reset data;

[0093] In the embodiment of the present application, the reset data satisfying the data stitching trigger condition indicates that the metering device has undergone at least one reset. Only by stitching the first metering data with the metering data accumulated before at least one reset can accurate second metering data be obtained. Therefore, the metering breakpoint data can refer to the metering data accumulated before the metering device is reset at least once.

[0094] Step S104: stitching the first measurement data with the measurement breakpoint data to obtain second measurement data.

[0095] In this step, the sum of the first metering data and the metering breakpoint data may be calculated, and the sum of the first metering data and the metering breakpoint data may be used as the target metering data.

[0096] While stitching the data, the server will generate a reset identification bit for the reset time and the reset anchor point, such as: 2024-09-12-10:00:00-99999, which is the identification bit at this location. It is not necessary to name it as an identification bit. It is used to notify the power user in this process to facilitate the power user to identify and perform power maintenance on the power-consuming equipment. The power user is informed through emails, text messages, etc. that the current meter has reached the upper limit value and is in a reset state. The power user can perform maintenance such as modifying the upper limit value of the meter based on the notification.

[0097] The embodiment of the present application can automatically stitch the first metering data with the metering breakpoint data to obtain the second metering data when the reset data of the metering device meets the data stitching trigger condition. Through data stitching, the first metering data uploaded by the metering device after resetting can be corrected to the second metering data, thereby improving the accuracy of the metering data, avoiding the loss of metering data due to the resetting of the metering device, and expanding the metering range of the metering device.

[0098] In another embodiment of the present application, Figure 2 As shown, step S102 determines whether the reset data meets the data stitching trigger condition, including:

[0099] Step S201, determining the number of times the metering device has been reset according to the reset data;

[0100] In this step, the number of times the metering device has been reset may be extracted from the reset data, or the number of reset information in the reset data may be counted.

[0101] Step S202, determining whether the number of reset times is greater than or equal to 1;

[0102] The reset count may be compared to 1 to determine whether the reset count is greater than or equal to 1.

[0103] Step S203: If the number of reset times is greater than or equal to 1, it is determined that the reset data of the metering device meets the data stitching trigger condition.

[0104] For example, if the first metering data has reached the metering upper limit value for the second time, it can be determined that the first metering data meets the data stitching trigger condition; otherwise, it is determined that the first metering data does not meet the data stitching trigger condition.

[0105] The embodiment of the present application can determine whether the reset data meets the data stitching trigger condition by judging whether the number of reset times is greater than or equal to 1, so as to determine whether data stitching is required. If the metering device has not been reset, data stitching is not required. If the metering device has been reset at least once, data stitching is required for the first metering data to ensure that the server obtains accurate metering data.

[0106] In another embodiment of the present application, Figure 3 As shown, step S103 obtains measurement breakpoint data according to the reset data, including:

[0107] Step S301, determining and obtaining the number of times the metering device has been reset according to the reset data;

[0108] Step S302, obtaining the measurement upper limit value of the measurement device;

[0109] Step S303: determining the metering breakpoint data according to the number of reset times and the metering upper limit value.

[0110] In this step, the product of the number of reset times and the metering upper limit value can be calculated, and the calculated product can be used as the metering breakpoint data. For example: when the metering device has been reset once, the metering breakpoint data is equal to the metering upper limit value. When the metering device has been reset twice, the metering breakpoint data is equal to 2*metering upper limit value. That is, the metering breakpoint data = the number of reset times of the metering device * the metering upper limit value.

[0111] The embodiment of the present application can calculate the metering breakpoint data based on the number of reset times and the metering upper limit value. The metering upper limit value is a fixed value, and the number of reset times can be directly obtained through the reset data. The metering breakpoint data can be calculated through simple multiplication operations, thereby improving the efficiency of obtaining the metering breakpoint data.

[0112] In another embodiment of the present application, Figure 4 As shown, step S103 obtains measurement breakpoint data according to the reset data, including:

[0113] Step S401, determining the last reset information of the metering device according to the reset data;

[0114] The reset data includes reset information of each reset of the metering device. Among the multiple reset information, the reset information whose reset time is closest to the current time is the last reset information of the metering device.

[0115] The last reset information includes: the current reset number, for example: the Nth reset, etc.

[0116] Step S402, obtaining a first upper limit value corresponding to the last reset of the metering device according to the last reset information;

[0117] Step S403: determining the measurement breakpoint data according to the first upper limit value.

[0118] In this step, the number of times the metering device was last reset can be determined based on the last reset information, and the metering upper limit value corresponding to the Nth reset of the metering device can be directly used as the metering breakpoint data. For example, if the metering upper limit value of the metering device is 100, the last reset corresponding to the last reset information is the 3rd reset, and the first upper limit value corresponding to the 3rd reset is 300, then the metering breakpoint data can be 300.

[0119] The embodiment of the present application can automatically use the first upper limit value corresponding to the last reset information as the measurement breakpoint data, and only needs to be read without calculation, thus saving system resources.

[0120] In another embodiment of the present application, Figure 5 As shown, the method also includes:

[0121] Step S501, determining whether the first metering data reaches the metering upper limit value of the metering device;

[0122] In this step, the first metering data may be compared with the metering upper limit value. If the first metering data is equal to the metering upper limit value, it may be determined that the first metering data reaches the metering upper limit value.

[0123] Step S502: if the first metering data reaches the metering upper limit, updating the reset data of the metering device, and obtaining the first upper limit corresponding to the last reset of the metering device;

[0124] When the first metering data reaches the metering upper limit value, it can be considered that the metering device is reset or is about to be reset. In order to calculate the first upper limit value corresponding to this reset, the first upper limit value corresponding to the previous reset can be obtained.

[0125] Step S503: determining a second upper limit value based on the first measurement data and the first upper limit value to serve as the first upper limit value corresponding to this reset.

[0126] When the smart meter reaches the upper limit for the first time, the server will obtain the metering upper limit and cache it in the Redis database. When the meter is reset, the server will add the upper limit in the cache to the currently reported value and store it in the database as the filled cumulative value for the next reset.

[0127] The smart meter reaches the metering upper limit for the Nth time (N>1). In addition to recording the current metering upper limit, the metering upper limit + cache upper limit is also required to be used as the new judgment upper limit. This judgment upper limit will be used as the upper limit judgment for the next round. At the same time, the Redis cache is updated to the latest upper limit.

[0128] The first upper limit value calculated in the embodiment of the present application is used as a judgment for the next time the upper limit is reached (future value). To put it simply, each time the cumulative value of the device reaches 99, it will be reset to 0. Then when it is reported for the first time, its upper limit value will default to 99, and it will be reset when it is reached. When it is reported after the reset, its upper limit value is 99+99. Because it is used as the upper limit for the next reset, the judgment upper limit value here refers to the future upper limit value, so you need to add another 99 (99 is the upper limit value of the electric meter in the example).

[0129] That is to say, when there is no last reset, the first upper limit value corresponding to the last reset is 0, and the first metering data can be directly determined as the second upper limit value; when there is a last reset, the sum of the first metering data and the first upper limit value corresponding to the last reset can be determined as the second upper limit value.

[0130] The embodiment of the present application can automatically calculate the first upper limit value corresponding to each reset, so as to be directly used for subsequent acquisition of metering breakpoint data, etc., thereby facilitating improving the efficiency of subsequent data use.

[0131] In another embodiment of the present application, Figure 6 As shown, the method also includes:

[0132] Step S601, determining whether the first measurement data reaches a first reset anchor point;

[0133] The upper limit of metering is usually set to 100,000 or more by hardware manufacturers, which varies from device to device. For some devices with small cumulative value changes, for example, the cumulative value reported each time only changes by 0.1, then the upper limit of 100,000 is enough for a long time, but if for some large factory-level equipment, the cumulative value per second reaches hundreds or even tens of thousands, then it does not take long for the overflow from 0 to 100,000. Therefore, in the embodiment of the present application, the first reset anchor point is less than the upper limit of metering, and the upper limit and the reset anchor point are not much different. For example, if the upper limit is 100,000, the reset anchor point will be set to 99,999, so that early reset can be guaranteed to avoid program crashes.

[0134] The values ​​of the first reset anchor points corresponding to different reset times are different. Different first reset anchor points can be obtained by subtracting a smaller fixed value from the first upper limit value corresponding to the corresponding reset times.

[0135] Step S602: if the first metering data reaches the first reset anchor point, updating the reset data of the metering device, and obtaining a first upper limit value corresponding to the last reset of the metering device;

[0136] When the first metering data reaches the first reset anchor point, it can be considered that the metering device is reset or is about to be reset, and thus the reset data of the metering device can be updated.

[0137] Step S603: determining a second upper limit value based on the first measurement data and the first upper limit value to serve as the first upper limit value corresponding to this reset.

[0138] The embodiment of the present application sets a first reset anchor point and calculates a corresponding first upper limit value, thereby ensuring that the metering device is reset earlier than the metering upper limit value, thereby avoiding metering data loss caused by resetting the metering device too late.

[0139] In another embodiment of the present application, a data processing device is also provided, such as Figure 7 As shown, including:

[0140] A first data acquisition module 11 is used to acquire reset data of the metering device upon receiving first metering data from the metering device;

[0141] A condition judgment module 12, used to determine whether the reset data meets the data stitching trigger condition;

[0142] A second data acquisition module 13, configured to acquire measurement breakpoint data according to the reset data if the reset data meets the data stitching trigger condition;

[0143] The data stitching module 14 is used to stitch the first measurement data with the measurement breakpoint data to obtain second measurement data.

[0144] Optionally, the condition judgment module includes:

[0145] a first determining unit, configured to determine a number of times the metering device has been reset according to the reset data;

[0146] A second determining unit, used to determine whether the number of reset times is greater than or equal to 1;

[0147] The third determining unit is configured to determine, if the number of reset times is greater than or equal to 1, whether the reset data of the metering device meets a data stitching trigger condition.

[0148] Optionally, the second data acquisition module includes:

[0149] A fourth determining unit, configured to determine, according to the reset data, the number of times the metering device has been reset;

[0150] A first acquisition unit, used to acquire a measurement upper limit value of the measurement device;

[0151] A fifth determining unit is used to determine the metering breakpoint data according to the number of reset times and the metering upper limit value.

[0152] Optionally, the second data acquisition module includes:

[0153] a sixth determining unit, configured to determine, according to the reset data, last reset information of the last reset of the metering device;

[0154] A second acquisition unit, configured to acquire, according to the last reset information, a first upper limit value corresponding to the last reset of the metering device;

[0155] A seventh determining unit is used to determine the measurement breakpoint data according to the first upper limit value.

[0156] Optionally, the device further comprises:

[0157] A first determination module, used to determine whether the first measurement data reaches a measurement upper limit value of the measurement device;

[0158] A first update acquisition module is used to update the reset data of the metering device and acquire the first upper limit value corresponding to the last reset of the metering device if the first metering data reaches the metering upper limit value;

[0159] The second determining module is used to determine a second upper limit value based on the first measurement data and the first upper limit value to serve as the first upper limit value corresponding to this reset.

[0160] Optionally, the device further comprises:

[0161] A third determination module, configured to determine whether the first measurement data reaches a first reset anchor point;

[0162] a fourth determination module, configured to determine whether the first metering data reaches a metering upper limit value of the metering device if the first metering data reaches the first reset anchor point;

[0163] A first update acquisition module is used to update the reset data of the metering device and acquire the first upper limit value corresponding to the last reset of the metering device if the first metering data reaches the metering upper limit value;

[0164] The fifth determining module is used to determine a second upper limit value based on the first measurement data and the first upper limit value to serve as the first upper limit value corresponding to this reset.

[0165] Optionally, the data stitching module includes:

[0166] a calculation unit, configured to calculate a sum of the first measurement data and the measurement breakpoint data;

[0167] An eighth determining unit is configured to determine the sum as the target measurement data.

[0168] In another embodiment of the present application, an electronic device is provided, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus;

[0169] Memory, used to store computer programs;

[0170] The processor is used to implement the data processing method described in any of the above method embodiments when executing the program stored in the memory.

[0171] In the electronic device provided by the embodiment of the present invention, the processor can automatically stitch the first metering data with the metering breakpoint data to obtain the second metering data when the reset data of the metering device meets the data stitching trigger condition by executing the program stored in the memory. Through the data stitching, the first metering data uploaded by the metering device after the reset can be corrected to the second metering data, thereby improving the accuracy of the metering data, avoiding the loss of metering data caused by the reset of the metering device, and expanding the metering range of the metering device.

[0172] The communication bus 1140 mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 1140 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0173] The communication interface 1120 is used for communication between the above electronic device and other devices.

[0174] The memory 1130 may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0175] The above-mentioned processor 1110 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0176] In another embodiment of the present application, a computer-readable storage medium is provided, on which a program of a data processing method is stored. When the program of the data processing method is executed by a processor, the steps of the data processing method described in any of the aforementioned method embodiments are implemented.

[0177] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0178] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A data processing method, characterized in that: include: If first metering data from a metering device is received, obtaining reset data of the metering device; Determining whether the reset data satisfies a data stitching trigger condition; If the reset data meets the data stitching trigger condition, obtaining the metering breakpoint data according to the reset data; The first measurement data and the measurement breakpoint data are stitched together to obtain second measurement data.

2. The data processing method according to claim 1, characterized in that: Determining whether the reset data satisfies a data stitching trigger condition includes: determining the number of times the metering device has been reset based on the reset data; Determine whether the number of resets is greater than or equal to 1; If the number of reset times is greater than or equal to 1, it is determined that the reset data of the metering device meets the data stitching trigger condition.

3. The data processing method according to claim 1, characterized in that: Acquiring metering breakpoint data according to the reset data includes: Determine and obtain the number of times the metering device has been reset according to the reset data; Obtaining a measurement upper limit value of the measurement device; The metering breakpoint data is determined according to the number of reset times and the metering upper limit value.

4. The data processing method according to claim 1, characterized in that: Acquiring metering breakpoint data according to the reset data includes: Determining, according to the reset data, last reset information of the last reset of the metering device; Acquire a first upper limit value corresponding to the last reset of the metering device according to the last reset information; The metering breakpoint data is determined according to the first upper limit value.

5. The data processing method according to claim 1, characterized in that: The method further comprises: Determining whether the first metering data reaches a metering upper limit value of the metering device; If the first metering data reaches the metering upper limit value, updating the reset data of the metering device, and obtaining the first upper limit value corresponding to the last reset of the metering device; A second upper limit value is determined based on the first measurement data and the first upper limit value to serve as the first upper limit value corresponding to this reset.

6. The data processing method according to claim 1, characterized in that: The method further comprises: determining whether the first metering data reaches a first reset anchor point; If the first metering data reaches the first reset anchor point, determining whether the first metering data reaches a metering upper limit value of the metering device; If the first metering data reaches the metering upper limit value, updating the reset data of the metering device, and obtaining the first upper limit value corresponding to the last reset of the metering device; A second upper limit value is determined based on the first measurement data and the first upper limit value to serve as the first upper limit value corresponding to this reset.

7. The data processing method according to claim 1, characterized in that: Performing data stitching based on the first measurement data and the measurement breakpoint data to obtain target measurement data includes: Calculating the sum of the first measurement data and the measurement breakpoint data; The sum is determined as the target measurement data.

8. A data processing device, characterized in that: include: A first data acquisition module, configured to acquire reset data of the metering device upon receiving first metering data from the metering device; A condition judgment module, used to determine whether the reset data meets the data stitching trigger condition; A second data acquisition module, configured to acquire metering breakpoint data according to the reset data if the reset data meets a data stitching trigger condition; The data stitching module is used to stitch the first measurement data with the measurement breakpoint data to obtain second measurement data.

9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the data processing method according to any one of claims 1 to 7 when executing a program stored in a memory.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program of a data processing method, and when the program of the data processing method is executed by a processor, the steps of the data processing method described in any one of claims 1 to 7 are implemented.