Electric energy data compensation method, device, electronic equipment and storage medium

By obtaining the electrical energy compensation parameters after power failure and performing electrical energy compensation, the problem of inconsistent total electricity and pulse count in the prior art is solved, and the success rate of metering tests is improved.

CN119758220APending Publication Date: 2025-04-04SHENZHEN KAIFA TECH (CHENGDU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411912668.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-24
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

The existing electrical energy accumulation algorithm causes the total electrical energy to be inconsistent with the number of pulses after power failure, affecting the results of the measurement test.

Method used

When the power supply compensation condition is detected after power failure, the power supply compensation parameters are obtained, including the combined phase power supply data and the divided phase power supply data, calculate the power compensation value, and compensate the corresponding power type to maintain the sum of the combined phase power and the divided phase power.

Benefits of technology

Through the compensation of electrical energy data, the power compensation error caused by load switching during power-on is avoided, ensuring that the sum of the combined phase power and the separated phase power is consistent, and the success rate of metering tests is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119758220A_ABST
    Figure CN119758220A_ABST
Patent Text Reader

Abstract

The present application provides a method, device, electronic device and storage medium for electric energy data compensation. The electric energy data compensation method includes: when it is detected that the electric energy data compensation condition is triggered after power failure, obtaining electric energy compensation parameters, the electric energy compensation parameters include a preset number of combined-phase electric energy data and multiple split-phase electric energy data of the electric energy type; determining the electric energy compensation value according to the difference between the number of pulses of the combined-phase electric energy data of each of the electric energy types and the sum of the number of pulses of the multiple split-phase electric energy data; based on the electric energy type identifier, determining the compensation object for electric energy compensation in the electric energy type corresponding to the electric energy type identifier in turn according to the electric energy compensation parameters, the compensation object being one phase of the split-phase electric energy data of the electric energy type; performing electric energy compensation on the compensation object of each of the electric energy types according to the electric energy compensation value. The present application is used to maintain the consistency of metering data and improve the success rate of metering tests.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field, and in particular to an electric energy data compensation method, device, electronic device and storage medium. Background Art

[0002] With the rapid development of smart grid, customers have put forward more requirements on the way of energy accumulation. More and more customers require that the energy meter can record the forward energy and reverse energy separately at the same time, so as to distinguish the use of grid power supply and the use of motor or solar power supply, and realize more flexible billing methods.

[0003] The existing solution uses the metering chip to provide total power, which is consistent with the number of pulses output. However, if the split-phase power is used to accumulate the combined-phase forward power and combined-phase reverse power, the compensation algorithm will fail, resulting in inconsistency between the total power and the number of pulses, which will affect the test results of the pulse metering test. Summary of the invention

[0004] One purpose of the present application is to provide an electric energy data compensation method, device, electronic device and storage medium, which are used to maintain the consistency of metering data and improve the success rate of metering tests.

[0005] According to one aspect of an embodiment of the present application, a method for compensating electric energy data is provided, including:

[0006] When it is detected that the electric energy data compensation condition is triggered after power failure, electric energy compensation parameters are obtained, wherein the electric energy compensation parameters include combined-phase electric energy data of a preset number of electric energy types and a plurality of split-phase electric energy data;

[0007] determining an electric energy compensation value according to a difference between the number of pulses of the combined-phase electric energy data and the sum of the number of pulses of the multiple phase electric energy data of each electric energy type;

[0008] Based on the electric energy type identifier, determining in sequence according to the electric energy compensation parameter a compensation object for electric energy compensation in the electric energy type corresponding to the electric energy type identifier, wherein the compensation object is one phase-split electric energy data of the electric energy type;

[0009] Electric energy compensation is performed on the compensation object of each electric energy type according to the electric energy compensation value.

[0010] According to one aspect of an embodiment of the present application, there is provided an electric energy data compensation device, comprising:

[0011] A compensation trigger module, for obtaining electric energy compensation parameters when it is detected that the electric energy data compensation condition is triggered after power failure, wherein the electric energy compensation parameters include combined-phase electric energy data of a preset number of electric energy types and multiple split-phase electric energy data;

[0012] A compensation value determination module, used for determining an electric energy compensation value according to a difference between the pulse number of the combined-phase electric energy data and the sum of the pulse numbers of the multiple phase electric energy data of each electric energy type;

[0013] A compensation object determination module, used to determine, based on the electric energy type identifier and according to the electric energy compensation parameters, the compensation object for electric energy compensation in the electric energy type corresponding to the electric energy type identifier, wherein the compensation object is one phase-split electric energy data of the electric energy type;

[0014] The electric energy compensation module is used to perform electric energy compensation on the compensation object of each electric energy type according to the electric energy compensation value.

[0015] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the electronic device implements the methods provided in the above-mentioned various optional implementation modes.

[0016] According to one aspect of an embodiment of the present application, a computer program medium is provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the methods provided in the above-mentioned various optional implementations.

[0017] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the above various optional implementations.

[0018] In an embodiment of the present application, when it is detected that the electric energy data compensation condition is triggered during power failure, the electric energy compensation parameters are obtained; the electric energy compensation value is calculated from the electric energy compensation parameters, and the compensation object for electric energy compensation in each electric energy type is determined in turn according to the electric energy compensation parameters according to the electric energy type identifier marked in the electric energy compensation parameters, and electric energy compensation is performed on the compensation object of each electric energy type according to the electric energy compensation value. The technical solution provided by this embodiment sets the timing of electric energy compensation after power failure, and the required electric energy data has been processed before power failure. Compensation after power failure can avoid errors in electric energy compensation caused by frequent switching of loads during power-on, ensure that the sum of the combined phase electric energy and the split phase electric energy is consistent after power-on, and the output pulse data is consistent with the combined phase electric energy, thereby improving the success rate of metering tests.

[0019] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0020] It should be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The above and other objects, features and advantages of the present application will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings.

[0022] Figure 1 A schematic flow chart of a method for compensating electric energy data according to an embodiment of the present application is shown.

[0023] Figure 2 A schematic diagram of the process of updating the electric energy compensation parameters is shown.

[0024] Figure 3 A schematic diagram of the process of performing electric energy compensation in this embodiment is shown.

[0025] Figure 4 A schematic structural diagram of a power data compensation device according to an embodiment of the present application is shown.

[0026] Figure 5 A schematic structural diagram of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0027] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these example embodiments are provided so that the description of the present application will be more comprehensive and complete and the concepts of the example embodiments will be fully conveyed to those skilled in the art. The accompanying drawings are only schematic illustrations of the present application and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted.

[0028] In addition, the described features, structures or characteristics may be combined in one or more example embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the example embodiments of the present application. However, those skilled in the art will appreciate that the technical solution of the present application may be practiced while omitting one or more of the specific details, or other methods, components, steps, etc. may be adopted. In other cases, known structures, methods, implementations or operations are not shown or described in detail to avoid obscuring the present application and making the various aspects of the present application obscure.

[0029] Some of the blocks shown in the accompanying drawings are functional entities that do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0030] The technical solution provided in the embodiment of the present application relates to a three-phase electric energy meter that keeps the total phase electric energy consistent with the corresponding number of electric energy pulses under a specific electric energy accumulation algorithm.

[0031] With the rapid development of smart grids, customers have put forward more requirements for the way of accumulating electric energy. More and more customers require that the electric energy meter can separately record the positive and negative electric energy at the same time, so as to distinguish the use of grid power supply and the use of generator solar power supply, and realize more flexible billing methods. This method of calculating electric energy data requires calculating the electric energy of the three-phase split phase separately to calculate the positive and negative phase electric energy of the combined phase.

[0032] According to the current electric energy accumulation algorithm, the three-phase electric energy is phase A, phase B and phase C;

[0033] The total electric energy needs to be accumulated by phase respectively, taking active electric energy as an example:

[0034] Total positive active energy = A phase positive active energy + B phase positive active energy + C phase positive active energy;

[0035] Total reverse active energy = reverse active energy of phase A + reverse active energy of phase C + reverse active energy of phase C

[0036] The energy meter calculates pulse data based on the total active energy accumulated by the hardware metering chip. Taking the pulse constant of 1000 as an example, 1Wh of energy outputs 1 pulse. When the three-phase load is balanced, when the hardware metering chip in the energy meter accumulates 1Wh of total energy and outputs 1 pulse, there is no energy in the three phases. If the power is off at this time, the total active energy in the forward direction and the total active energy in the reverse direction are both 0 according to the current energy accumulation method, but 1 pulse is actually output. This results in the total energy accumulated by the energy meter being inconsistent with the total number of pulses output, causing the metering test to fail.

[0037] Figure 1 A schematic diagram of a flow chart of a power data compensation method provided according to an embodiment of the present application is shown, and the method comprises the following steps:

[0038] S100, when it is detected that the electric energy data compensation condition is triggered after power failure, obtaining electric energy compensation parameters, the electric energy compensation parameters including combined-phase electric energy data of a preset number of electric energy types and multiple split-phase electric energy data.

[0039] Specifically, in this embodiment, the timing of electric energy compensation is selected after power failure.

[0040] During the power-on phase, the electric energy data is read from the metering chip every second.

[0041] After power failure, it is determined whether to perform compensation of the electric energy data according to the triggering conditions of the electric energy data compensation.

[0042] When the electric energy data compensation condition is met and triggered, the electric energy compensation parameter is obtained.

[0043] The type of electric energy refers to the electric energy data distinguished by the type of work done by the electric energy, such as active power, reactive power, and apparent power.

[0044] The split-phase power data refers to the three-phase power data in a three-phase system. For the convenience of distinction, the three-phase power is called phase A, phase B, and phase C.

[0045] The phase power data of each phase includes power size, power direction, and pulse data.

[0046] The total phase energy data is the sum of the three-phase energy data.

[0047] S200, determining an electric energy compensation value according to a difference between the number of pulses of combined-phase electric energy data and the sum of the number of pulses of a plurality of separate-phase electric energy data of each electric energy type.

[0048] Specifically, taking the electric energy types of active power, reactive power and apparent power as an example, the pulse data calculated by the combined phase electric energy data is calculated, and then the sum of the pulse data of the three-phase electric energy data is calculated; the difference between the sum of the pulse data of the combined phase electric energy data and the three-phase electric energy data is converted into electric energy, that is, the electric energy compensation value.

[0049] S300, based on the electric energy type identifier, determine in sequence according to the electric energy compensation parameter the compensation object for electric energy compensation in the electric energy type corresponding to the electric energy type identifier, the compensation object being one phase split-phase electric energy data of the electric energy type.

[0050] Specifically, the electric energy type identifier is used to distinguish the electric energy type. For example, the electric energy type identifier of active power is 0, the electric energy type identifier of reactive power is 1, and the electric energy type identifier of apparent power is 2.

[0051] The compensation object for compensation in each type of electric energy is determined in turn according to the electric energy compensation parameters, and the compensation object is a certain phase-split electric energy data in a certain electric energy type.

[0052] The electric energy compensation parameters include the power value and power direction of the electric energy data, etc. According to the power performance of the electric energy data, the phase-by-phase electric energy data whose power performance meets the compensation conditions is determined as the compensation object.

[0053] S400, performing electric energy compensation on a compensation object of each electric energy type according to the electric energy compensation value.

[0054] Specifically, for a type of electric energy, the electric energy compensation value is compensated to the electric energy data of the compensation object and saved, and then the compensation of the electric energy data is completed.

[0055] In this embodiment, when it is detected that the electric energy data compensation condition is triggered during power failure, the electric energy compensation parameters are obtained; the electric energy compensation value is calculated from the electric energy compensation parameters, and the compensation object for electric energy compensation in each electric energy type is determined in turn according to the electric energy compensation parameters according to the electric energy type identifier marked in the electric energy compensation parameters, and electric energy compensation is performed on the compensation object of each electric energy type according to the electric energy compensation value. The technical solution provided by this embodiment sets the timing of electric energy compensation after power failure, and the required electric energy data has been processed before power failure. Compensation after power failure can avoid errors in electric energy compensation caused by frequent switching of loads during power-on, ensure that the sum of the combined phase electric energy and the split phase electric energy is consistent after power-on, and the output pulse data is consistent with the combined phase electric energy, thereby improving the success rate of metering tests.

[0056] Further, in S100, when it is detected that the electric energy data compensation condition is triggered after power failure, before obtaining the electric energy compensation parameters, this embodiment further includes the following steps:

[0057] S001, after power-on, according to predefined electric energy types, the number of pulses of combined-phase electric energy data and the number of pulses of multiple split-phase electric energy data read per unit time for each electric energy type are accumulated.

[0058] S002, setting a trigger condition for power data compensation based on the pulse number of the combined-phase power data and the sum of the pulse numbers of multiple split-phase power data.

[0059] S003, querying the split-phase power data that meets the preset conditions in each power type, and obtaining the power direction, number of phases and quadrant information of the split-phase power data and storing them as power compensation parameters.

[0060] Specifically, after power-on, according to the predefined electric energy types, the pulse number of combined-phase electric energy data and the pulse number of multiple split-phase electric energy data read per unit time for each electric energy type are accumulated.

[0061] In the three-phase system, there are three phase split-phase power data. Each unit time is seconds, so the pulse number of the combined-phase power data and the pulse number of the three-phase power data are read and accumulated in seconds.

[0062] The trigger condition of the power data compensation is the difference between the pulse number of the combined phase power data and the sum of the pulse numbers of multiple phase power data. When the difference is less than or equal to 3, power compensation is performed.

[0063] In S003, the phase with the largest power value in each type of electric energy is queried in turn, and the phase number, power value, power direction, and quadrant information of the phase are recorded as electric energy compensation parameters.

[0064] Figure 2 A schematic diagram of the process of updating the electric energy compensation parameters is shown.

[0065] First, the number of pulses of the combined-phase power data and the number of pulses of the split-phase power data read from the metering chip per second are accumulated; the maximum power of each split-phase power data and the corresponding phase number, power direction and quadrant are recorded.

[0066] Each phase of electric energy data must query data of three types of electric energy. For example, during the query of the first phase L1 electric energy data, the active electric energy in the L1 phase is queried first. If the power value of the active electric energy of the L1 phase is greater than the starting power, and the power direction is different from the previous power direction for three consecutive times, the last saved maximum power value is cleared and the power value of the active electric energy of the L1 phase is greater than the last saved maximum power value. Then, the power direction, quadrant information and phase number of the L1 phase active electric energy, i.e., the L1 phase, are recorded, and the power value of the L1 phase active electric energy is stored in the last maximum power value.

[0067] Then, when querying the electric energy data of the reactive power in the L1 phase, if the power value of the reactive power is greater than the starting power and the power direction is consistent with the previous power direction for three consecutive times, it is compared with the previous maximum power value. The previous maximum power value here is the reactive power of a phase that meets the maximum power value.

[0068] Finally, query the apparent power in L1.

[0069] By analogy, when the query of the three phases is completed, the electric energy data of the phase with the largest power value among the three types of electric energy is finally obtained, and the corresponding phase number and power direction are recorded and stored as electric energy compensation parameters.

[0070] As an optional implementation, S002, setting a trigger condition for power data compensation based on the pulse number of combined-phase power data and the sum of the pulse numbers of multiple split-phase power data, includes:

[0071] When the difference between the pulse number of combined-phase electric energy data of at least one electric energy type and the sum of the pulse numbers of multiple phase electric energy data meets a preset value, the electric energy compensation parameter is obtained.

[0072] The compensation object of the electric energy type is determined by the electric energy compensation parameter, and the compensation object is one of the phase-split electric energy data of the electric energy type.

[0073] When making compensation, determine the compensation object in each type of electric energy in units of electric energy type. Taking active power as an example, if the difference between the number of pulses of the total active electric energy and the sum of the number of pulses of the three-phase electric energy is less than or equal to 3, then obtain the number of phases corresponding to the largest power value confirmed in the previous step in the active electric energy. Convert the pulse difference in the electric energy type into an electric energy compensation value, and then compensate the electric energy compensation value in the corresponding phase electric energy data. The electric energy compensation value is to compensate the excess part of the total active power energy to the phase electric energy data.

[0074] Furthermore, the compensation object of the electric energy compensation includes a certain phase electric energy data of a certain electric energy type, specifically the power direction of the phase electric energy. For example, the compensation object is the L1 phase positive active electric energy, which represents the active power; the phase number is L1 phase, and the power direction is positive.

[0075] Further, S003, querying the phase-by-phase power data that meets the preset conditions in each type of power, including:

[0076] The query conditions are set based on the power value and power direction to obtain the phase-by-phase power data whose power value is greater than the maximum value and whose power direction meets the preset conditions.

[0077] The query condition refers to the filter item used to filter the compensation object. For example, the power value is used as the filter item, and one of the query conditions can be that the current power is greater than the starting power; the power direction is used as the filter direction, and one of the query conditions can be that the power direction of the electric energy data is inconsistent with the previous power direction for three consecutive times. If the query condition is met, the phase data is confirmed as a compensation object, and the power value and power direction of the phase data are recorded.

[0078] As an optional implementation, S200, determining the electric energy compensation value according to the difference between the pulse number of the combined-phase electric energy data of each electric energy type and the sum of the pulse numbers of the multiple phase electric energy data, includes:

[0079] S210, according to the conversion relationship between the number of pulses and the electric energy value, the difference between the number of pulses of the combined-phase electric energy data and the sum of the number of pulses of the split-phase electric energy data of each electric energy type is converted into an electric energy compensation value.

[0080] Specifically, in order to facilitate digital recording and remote reading, the metering chip in the energy meter converts the accumulated energy value into a pulse output. Whenever a certain amount of energy is consumed, the metering chip will output a pulse.

[0081] The specific conversion method usually depends on the configuration and pulse constant of the metering chip.

[0082] The pulse constant is a value set by the metering chip, which indicates the amount of electrical energy consumed for each pulse (unit: Wh or kWh).

[0083] Taking the pulse constant of 1000 pulses / kWh as an example, the chip will send 1000 pulses for every 1kWh of electricity consumed.

[0084] The number of pulses can be calculated according to the following formula:

[0085] Number of pulses = accumulated energy (kWh) * pulse constant

[0086] Calculate the pulse number of the combined phase electric energy, then add the pulse number of each phase to get the total, and then convert the difference between the pulse number of the combined phase electric energy and the sum of the phase pulse numbers into electric energy, that is, the electric energy compensation value.

[0087] As an optional implementation, S300, based on the electric energy type identifier, sequentially determining the compensation objects for electric energy compensation in the electric energy type corresponding to the electric energy type identifier according to the electric energy compensation parameter, includes:

[0088] S310, based on the electric energy type identifier, obtain the phase number corresponding to the electric energy type identifier in the electric energy compensation parameter, and determine the corresponding phase-by-phase electric energy data according to the phase number.

[0089] S320, according to the power direction of the phase-split power data stored in the power compensation parameter, taking the power data corresponding to the power direction as the compensation object.

[0090] Figure 3 FIG. 2 shows a schematic diagram of the process of performing electric energy compensation in this embodiment. Figure 3 As shown, firstly, the active electric energy is compensated for.

[0091] The energy type of active energy is marked as 0, the energy type of reactive energy is marked as 1, and the energy type of apparent energy is marked as 2.

[0092] i represents the electric energy type identifier. When i=0, it means that electric energy compensation is currently being performed on the active electric energy.

[0093] The number of combined-phase pulses refers to the number of pulses corresponding to the combined-phase electrical energy, and the sum of the number of split-phase pulses refers to the sum of the number of pulses of the three split-phase electrical energies.

[0094] If the number of combined phase pulses is greater than the sum of the number of split phase pulses and the difference between the number of combined phase pulses and the sum of the number of split phase pulses is less than or equal to 3, the power direction and the corresponding number of phases are obtained from the electric energy compensation parameters. This step is to confirm the compensation object. The pulse number difference is converted into an electric energy compensation value, and then the electric energy compensation value is compensated to the electric energy data of the compensation object.

[0095] Furthermore, in S400, after performing electric energy compensation on the compensation object of each electric energy type according to the electric energy compensation value, this embodiment further includes the following steps:

[0096] Update the combined-phase electric energy data of the electric energy type. The combined-phase electric energy data is the sum of multiple phase electric energy data.

[0097] Figure 4 FIG. 2 shows a schematic diagram of the structure of an electric energy data compensation device according to an embodiment of the present application. Figure 4 As shown, the electric energy data compensation device includes:

[0098] The compensation trigger module 10 is used to obtain power compensation parameters when it is detected that the power data compensation condition is triggered after power failure. The power compensation parameters include combined-phase power data of a preset number of power types and multiple split-phase power data.

[0099] The compensation value determination module 20 is used to determine the electric energy compensation value according to the difference between the pulse number of the combined-phase electric energy data and the sum of the pulse numbers of the multiple phase electric energy data of each electric energy type.

[0100] The compensation object determination module 30 is used to determine the compensation object for electric energy compensation in the electric energy type corresponding to the electric energy type identifier based on the electric energy type identifier and the electric energy compensation parameter, wherein the compensation object is one phase split electric energy data of the electric energy type.

[0101] The electric energy compensation module 40 is used to perform electric energy compensation on the compensation object of each electric energy type according to the electric energy compensation value.

[0102] Furthermore, the electric energy data compensation device further includes an electric energy compensation parameter storage module, and the electric energy compensation parameter storage module is configured as follows:

[0103] After power-on, according to the predefined electric energy types, the pulse number of the combined-phase electric energy data and the pulse number of the multiple split-phase electric energy data read per unit time for each electric energy type are accumulated.

[0104] The triggering condition of the electric energy data compensation is set based on the pulse number of the combined-phase electric energy data and the sum of the pulse numbers of the plurality of split-phase electric energy data.

[0105] The phase-split power data that meets the preset conditions in each power type is queried, and the power direction, number of phases and quadrant information of the phase-split power data are obtained and stored as power compensation parameters.

[0106] The compensation value determination module 20 is configured as follows:

[0107] According to the conversion relationship between the pulse number and the electric energy value, the difference between the pulse number of the combined-phase electric energy data and the sum of the pulse numbers of the split-phase electric energy data of each electric energy type is converted into an electric energy compensation value.

[0108] The compensation object determination module 30 is configured to:

[0109] Based on the electric energy type identifier, the phase number corresponding to the electric energy type identifier in the electric energy compensation parameter is obtained, and the corresponding phase-by-phase electric energy data is determined according to the phase number.

[0110] According to the power direction of the phase-split electric energy data stored in the electric energy compensation parameters, the electric energy data corresponding to the power direction is taken as the compensation object.

[0111] The electric energy compensation module 40 is configured as follows:

[0112] Update the combined-phase electric energy data of the electric energy type. The combined-phase electric energy data is the sum of multiple phase electric energy data.

[0113] Reference below Figure 5 An electronic device 50 according to an embodiment of the present application is described. Figure 5 The electronic device 50 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0114] like Figure 5 As shown, the electronic device 50 is in the form of a general computing device. The components of the electronic device 50 may include but are not limited to: at least one processing unit 510, at least one storage unit 520, and a bus 530 connecting different system components (including the storage unit 520 and the processing unit 510).

[0115] The storage unit stores program codes, which can be executed by the processing unit 510, so that the processing unit 510 executes the steps according to various exemplary embodiments of the present application described in the description of the exemplary method described above in this specification. For example, the processing unit 510 can execute the following steps: Figure 1 The steps shown in .

[0116] The storage unit 520 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 5201 and / or a cache storage unit 5202 , and may further include a read-only storage unit (ROM) 5203 .

[0117] The storage unit 520 may also include a program / utility 5204 having a set (at least one) of program modules 5205, such program modules 5205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0118] Bus 530 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0119] The electronic device 50 may also communicate with one or more external devices 600 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 50, and / or may communicate with any device that enables the electronic device 50 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 550. The input / output (I / O) interface 550 is connected to a display unit 540. Furthermore, the electronic device 50 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 360. As shown, the network adapter 560 communicates with other modules of the electronic device 50 via a bus 530. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 50, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0120] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software, or by combining software with necessary hardware. Therefore, the technical solution according to the implementation method of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes a number of instructions to enable a computing device (which can be a personal computer, a mobile terminal, etc.) to execute the power data compensation method according to the implementation method of the present application.

[0121] In an exemplary embodiment of the present application, a computer-readable storage medium is further provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the electric energy data compensation method described in the above method embodiment.

[0122] According to one embodiment of the present application, a program product for implementing the method in the above method embodiment is also provided, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present application is not limited thereto, and in this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.

[0123] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0124] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0125] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0126] Program code for performing the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as JAVA, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0127] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0128] In addition, although the steps of the method in the present application are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0129] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a mobile terminal, etc.) to execute the method according to the implementation methods of the present application.

[0130] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the appended claims.

Claims

1. A method for compensating electric energy data, characterized in that: include: When it is detected that the electric energy data compensation condition is triggered after power failure, electric energy compensation parameters are obtained, wherein the electric energy compensation parameters include combined-phase electric energy data of a preset number of electric energy types and a plurality of split-phase electric energy data; determining an electric energy compensation value according to a difference between the number of pulses of the combined-phase electric energy data and the sum of the number of pulses of the multiple phase electric energy data of each electric energy type; Based on the electric energy type identifier, determining in sequence according to the electric energy compensation parameter a compensation object for electric energy compensation in the electric energy type corresponding to the electric energy type identifier, wherein the compensation object is one phase-split electric energy data of the electric energy type; Electric energy compensation is performed on the compensation object of each electric energy type according to the electric energy compensation value.

2. The electric energy data compensation method according to claim 1, characterized in that: When it is detected that the electric energy data compensation condition is triggered after power failure, before obtaining the electric energy compensation parameter, the method further includes: After power-on, according to the predefined electric energy types, the pulse number of the combined-phase electric energy data and the pulse number of the multiple split-phase electric energy data read per unit time for each electric energy type are accumulated; Setting a trigger condition for power data compensation based on the pulse number of the combined-phase power energy data and the sum of the pulse numbers of the plurality of split-phase power energy data; The phase-split power data satisfying the preset conditions in each power type is queried, and the power direction, number of phases and quadrant information of the phase-split power data are obtained and stored as power compensation parameters.

3. The electric energy data compensation method according to claim 2, characterized in that: The querying of phase-by-phase electric energy data that meets preset conditions in each electric energy type includes: The query conditions are set based on the power value and power direction to obtain the phase-by-phase power data whose power value is greater than the maximum value and whose power direction meets the preset conditions.

4. The electric energy data compensation method according to claim 2, characterized in that: The triggering condition for setting the electric energy data compensation based on the pulse number of the combined-phase electric energy data and the sum of the pulse numbers of the multiple split-phase electric energy data includes: When the difference between the pulse number of the combined-phase electric energy data of at least one of the electric energy types and the sum of the pulse numbers of the multiple phase-separated electric energy data meets a preset value, the electric energy compensation parameter is obtained; The compensation object of the electric energy type is determined by the electric energy compensation parameter, and the compensation object is one of the phase-split electric energy data of the electric energy type.

5. The electric energy data compensation method according to claim 1, characterized in that: The step of determining the electric energy compensation value according to the difference between the number of pulses of the combined-phase electric energy data and the sum of the number of pulses of the split-phase electric energy data of each electric energy type comprises: According to the conversion relationship between the pulse number and the electric energy value, the difference between the pulse number of the combined-phase electric energy data and the sum of the pulse numbers of the split-phase electric energy data of each electric energy type is converted into an electric energy compensation value.

6. The electric energy data compensation method according to claim 1, characterized in that: The step of determining, based on the electric energy type identifier and according to the electric energy compensation parameter, the compensation objects for electric energy compensation in the electric energy type corresponding to the electric energy type identifier includes: Based on the electric energy type identifier, obtaining the phase number corresponding to the electric energy type identifier in the electric energy compensation parameter, and determining the corresponding phase-by-phase electric energy data according to the phase number; According to the power direction of the phase-split power data stored in the power compensation parameter, the power data corresponding to the power direction is taken as a compensation object.

7. The electric energy data compensation method according to claim 1, characterized in that: After performing electric energy compensation on the compensation object of each electric energy type according to the electric energy compensation value, the method further includes: The combined-phase electric energy data of the electric energy type is updated, wherein the combined-phase electric energy data is the sum of a plurality of the split-phase electric energy data.

8. An electric energy data compensation device, characterized in that: The device comprises: A compensation trigger module, for obtaining electric energy compensation parameters when it is detected that the electric energy data compensation condition is triggered after power failure, wherein the electric energy compensation parameters include combined-phase electric energy data of a preset number of electric energy types and multiple split-phase electric energy data; A compensation value determination module, used for determining an electric energy compensation value according to a difference between the pulse number of the combined-phase electric energy data and the sum of the pulse numbers of the multiple phase electric energy data of each electric energy type; A compensation object determination module, used to determine, based on the electric energy type identifier and according to the electric energy compensation parameters, the compensation object for electric energy compensation in the electric energy type corresponding to the electric energy type identifier, wherein the compensation object is one phase-split electric energy data of the electric energy type; The electric energy compensation module is used to perform electric energy compensation on the compensation object of each electric energy type according to the electric energy compensation value.

9. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to implement the electric energy data compensation method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is enabled to execute the electric energy data compensation method according to any one of claims 1 to 7.