Redundant electric quantity calculation method and system
Through the redundant power calculation method, the difference comparison and tolerance threshold judgment of the subtraction and accumulation calculation methods are used to solve the problem of insufficient reliability of the power calculation results in the prior art, and higher calculation accuracy and stability are achieved.
Patent Information
- Application Number
- CN202510115619.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-24
- Publication Date
- 2025-06-27
AI Technical Summary
The existing power calculation methods lack the reliability verification mechanism for calculation results, and are highly dependent on data at key time points, and cannot detect and process calculation abnormalities in a timely manner, resulting in insufficient accuracy and reliability of power calculation.
The redundant power calculation method is used to independently calculate the power value of a certain time period through subtraction and accumulation calculation methods, and the reliability of the calculation results is judged through the difference comparison and tolerance threshold. Combined with automated detection and manual intervention, calculation abnormalities are processed and reliable results are output first.
It improves the fault tolerance and stability of power calculation, improves the accuracy of power generation data calculation, enhances the efficiency of equipment maintenance and the overall operation capabilities of the power station, and ensures the real-time and business guarantee capabilities of the system in complex environments.
Smart Images

Figure CN120214399A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power consumption calculation, and particularly to a redundant power consumption calculation method. Background Art
[0002] In the power industry, the accurate calculation of power generation is an important basis for power dispatching, electricity bill settlement, and energy optimization. Traditional power consumption calculation methods usually adopt subtraction algorithms, that is, by performing difference operations on power consumption acquisition values at different time points to obtain the power generation within a certain time period. Due to its simple and intuitive characteristics, this method is widely used in power consumption accounting of power stations. However, with the increase in the complexity of power systems and the progress of data acquisition technology, higher-precision and more reliable power consumption calculation methods have gradually become the demand for industry development. At the same time, the application of smart meters and automated acquisition devices provides technical possibilities for more complex power consumption calculations, especially in enhancing real-time performance and redundancy, with great development potential.
[0003] Although the traditional subtraction power consumption calculation method can meet basic requirements in most cases, this method has a high dependence on initial data. Once the power consumption acquisition value at a key time point is lost, it will lead to errors in power consumption calculation throughout the time period. In addition, the existing technology lacks a reliability guarantee mechanism for calculation results and cannot effectively handle abnormal situations in the data acquisition process. For example, when a communication failure or acquisition device fails, the power consumption value may be incomplete or incorrect, and a single calculation method cannot verify the correctness of the calculation result, thus affecting the reliability and accuracy of the overall power generation. Summary of the Invention
[0004] In view of the above problems, the present invention is proposed.
[0005] Therefore, the technical problem solved by the present invention is: the existing power consumption calculation method lacks a reliability verification mechanism for calculation results, highly depends on data at key time points, cannot detect and handle calculation anomalies in a timely manner, and how to optimize the problem of ensuring the accuracy and reliability of power consumption calculation.
[0006] To solve the above technical problems, the present invention provides the following technical solution: a redundant power consumption calculation method, including collecting power consumption of the electric meter, calculating the first power consumption acquisition value; calculating the power generation by the first method, and performing the first comparison on the power generation; performing the first calculation check on the power generation and handling faults.
[0007] As a preferred solution of the redundant power consumption calculation method described in the present invention, wherein: the collecting power consumption of the electric meter includes collecting the power consumption of the electric meter once every fixed time period.
[0008] As a preferred solution of the redundant power calculation method described in the present invention, wherein: calculating the first power acquisition value includes acquiring the meter bottom code and calculating the first power acquisition value.
[0009] As a preferred solution of the redundant power calculation method described in the present invention, wherein: calculating the power generation amount by the first method includes calculating the power generation amount by a subtraction formula or an accumulation formula.
[0010] As a preferred solution of the redundant power calculation method described in the present invention, wherein: performing the first comparison on the power generation amount includes comparing the calculation results of the power generation amount, judging and executing operations.
[0011] As a preferred solution of the redundant power calculation method described in the present invention, wherein: performing the first calculation check on the power generation amount includes checking the power amount through an alarm signal and judging faults.
[0012] As a preferred solution of the redundant power calculation method described in the present invention, wherein: handling the fault includes handling the fault according to the judged fault result.
[0013] Another object of the present invention is to provide a redundant power calculation system, which can compare the power generation results obtained by two calculation methods through a calculation comparison module and judge whether they are consistent, solving the problem that the correctness of the calculation result cannot be verified in the case of communication faults or equipment anomalies in the current single calculation method.
[0014] As a preferred solution of the redundant power calculation system described in the present invention, wherein: it includes an acquisition value calculation module, a calculation comparison module, and a fault check module; the acquisition value calculation module is used to acquire the meter power and calculate the first power acquisition value; the calculation comparison module is used to calculate the power generation amount by the first method and perform the first comparison on the power generation amount; the fault check module is used to perform the first calculation check on the power generation amount and handle the fault.
[0015] A computer device includes a memory and a processor, the memory stores a computer program, and is characterized in that when the processor executes the computer program, the steps of the redundant power calculation method are implemented.
[0016] A computer-readable storage medium stores a computer program thereon, and is characterized in that when the computer program is executed by a processor, the steps of the redundant power calculation method are implemented.
[0017] Advantages of the present invention: The redundant power calculation method provided by the present invention calculates the power value for a certain time period by independently using the subtraction calculation method and the accumulation calculation method, which improves the fault tolerance and stability of power calculation. The results of the subtraction calculation and the accumulation calculation are compared for differences, and a tolerance threshold is set as the judgment benchmark, which improves the accuracy of power generation data calculation. Combining automated detection and manual intervention improves the efficiency of equipment maintenance and the overall operation ability of the power station. In the case of abnormal calculation, a more reliable result is preferentially output, and the comparison mechanism is re-enabled after the fault is repaired, which improves the real-time performance and service guarantee ability of the system in a complex environment. The present invention has achieved better results in terms of calculation accuracy, stability, and real-time performance. Brief Description of the Drawings
[0018] To more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts. Among them:
[0019] Figure 1 It is the overall flowchart of a redundant power calculation method provided by the first embodiment of the present invention.
[0020] Figure 2 It is the power calculation schematic diagram of a redundant power calculation method provided by the first embodiment of the present invention.
[0021] Figure 3 It is the schematic diagram of power values at each moment of a redundant power calculation method provided by the first embodiment of the present invention.
[0022] Figure 4 It is the overall module diagram of a redundant power calculation system provided by the fourth embodiment of the present invention. Detailed Embodiments
[0023] To make the above objects, features, and advantages of the present invention more obvious and understandable, the following will make a detailed description of the specific embodiments of the present invention in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of protection of the present invention.
[0024] Embodiment 1
[0025] Refer to Figure 1 , which is an embodiment of the present invention, and provides a redundant power calculation method, including:
[0026] S1: Collect the power consumption of the electricity meter and calculate the first power collection value.
[0027] Furthermore, collecting the power consumption of the electricity meter includes collecting the power consumption of the electricity meter once per fixed time period.
[0028] It should be noted that the power consumption collection of the electricity meter adopts a periodic data collection mechanism, rather than real-time acquisition. Every fixed time period, the current bottom code data of the electricity meter is read through an electric energy collection device. The collection device is connected to the electricity meter through a stable communication protocol to ensure the integrity and accuracy of the collected data. Combined with a redundancy mechanism, the data in the same time period is collected multiple times to verify consistency and avoid data deviation caused by communication interruption or instantaneous interference.
[0029] Furthermore, calculating the first power collection value includes collecting the bottom code of the electricity meter and calculating the first power collection value.
[0030] In the embodiment of the present application, the first power collection value is the actual power output. The collected bottom code data of the electricity meter is converted to obtain the actual power value. The bottom code of the electricity meter represents the cumulative electric energy value, which is multiplied by the transformation ratio coefficient to be converted into the actual power output. The transformation ratio coefficient is preset according to the specifications and measurement requirements of the electricity meter and is consistent with the grid metering system standard. Through conversion, the corresponding power data can be directly obtained from the bottom code of the electricity meter, and the conversion process integrates an anomaly detection function. When the collected bottom code data shows abnormal fluctuations or discontinuities, the abnormal data points are automatically recorded and marked to prompt the maintenance personnel to perform verification and repair.
[0031] S2: Calculate the power generation through the first method and make the first comparison of the power generation.
[0032] Furthermore, calculating the power generation through the first method includes calculating the power generation through a subtraction formula or an accumulation formula.
[0033] In the embodiment of the present application, the first method is subtraction calculation or accumulation calculation;
[0034] The subtraction calculation is a calculation method based on the power difference between the two endpoints of a time period, used to determine the power consumption or power generation within a certain time period. By collecting the bottom code values of the electricity meter at the start time point and the end time point, subtracting the power value at the start time point from the power value at the end time point to obtain the power within the time period, expressed as:
[0035] Q(n) = Q(t n ) - Q(t0)
[0036] where Q(n) is the power generation, t n and t0 are time points, Q(t n ) and Q(t0) are the bottom code values of the power at time points t n and t0 respectively;
[0037] Accumulative calculation is a method based on gradually accumulating the power consumption within a small time period, used to make up for the deficiencies of subtractive calculation in scenarios where key data is lost. The entire calculation time period from t0 to t n is divided into several small time periods. By calculating the power consumption segment by segment and accumulating it, the overall power consumption value is obtained, expressed as:
[0038] Q(n) = Q(n - 1)T + ΔQ(n)
[0039] ΔQ(n) = Q(t n ) - Q(t n-1 )
[0040] where Q(n - 1) is the cumulative power consumption up to the previous time point t n-1 , and is the power consumption value from time point t n-1 to time point t n , Q(t n-1 ) is the power consumption base value at time point t n-1 .
[0041] Furthermore, performing the first comparison on the generated power includes comparing the calculation results of the generated power, judging, and executing operations.
[0042] In the embodiments of the present application, the first comparison is a comparison of power consumption values. By performing a difference analysis on the results of subtractive calculation and accumulative calculation, the reliability of the power consumption calculation results is judged. By independently performing subtractive calculation and accumulative calculation, the power consumption values for a certain time period are obtained respectively, and the difference operation is performed on the calculation results of the two, and the difference is compared with a preset tolerance threshold, expressed as:
[0043] |Q diff - Q sum | < δ
[0044] where Q diff is the power consumption value obtained by subtractive calculation, Q sum is the power consumption value obtained by accumulative calculation, and δ is the preset tolerance threshold, used to measure whether the deviation between the calculation results of the two methods is acceptable. If the condition is satisfied, it indicates that the results of the two calculation methods are consistent and the calculation results are reliable. If the condition is not satisfied, an alarm prompt is triggered to indicate an abnormal calculation.
[0045] It should be noted that by comparing the results of the subtractive and accumulative calculation methods, potential errors in the calculation process can be quickly detected, such as power consumption deviation caused by data loss, abnormal acquisition, or communication failure;
[0046] In the case of a calculation deviation, the maintenance personnel are timely prompted to check the source of the problem through the alarm mechanism, avoiding subsequent economic losses or business deviations caused by the use of incorrect data;
[0047] It is supported to adjust the tolerance threshold according to specific application scenarios. In scenarios with high precision requirements, a smaller threshold is set to ensure the accuracy of the results. In real-time monitoring or fast response scenarios, the threshold is appropriately increased to improve the calculation efficiency.
[0048] S3: Conduct the first calculation check on the power generation amount and handle faults.
[0049] Furthermore, conducting the first calculation check on the power generation amount includes checking the power amount through the alarm signal and judging faults.
[0050] In the embodiment of the present application, the first calculation check is to check the power amount through the alarm signal. If a fault occurs in the subtraction calculation, the cumulative calculation value is output first. If a fault occurs in the cumulative calculation, the subtraction calculation value is output first, and the correct power amount value is quickly output. After the fault is processed, the comparison calculation is resumed.
[0051] Furthermore, handling faults includes handling the faults according to the judged fault results.
[0052] It should be noted that if an alarm occurs at this moment, it only indicates that an error occurred in the calculation at the current alarm moment, but the calculation data at the previous acquisition moment is confirmed to be correct. At this time, the bottom code of the electric meter is re-acquired through power amount acquisition. The electric meter can store the bottom code data for a period of time, and the storage time ranges from several months to one year. If the acquisition fails, it indicates a communication loop fault. After handling the communication loop fault, the re-acquisition is carried out. If the acquisition can be carried out normally, the acquired data is used for manual calculation. If the cumulative value is incorrect, the cumulative value is manually modified, and the calculation process is checked and processed to output the subtraction value. If the subtraction value is incorrect, the subtraction value is manually modified, and the calculation process is checked and processed to output the cumulative value, and it is observed whether the calculation data at the next moment is normal.
[0053] Embodiment 2
[0054] Another optional embodiment of the present invention provides a redundant power amount calculation method, including: power amount calculation based on multi-sensor redundant verification, by adding multiple groups of power amount sensors in the power system, combining real-time data acquisition and algorithm optimization, to verify and correct the power amount calculation results;
[0055] Install multiple power amount sensors at key nodes of the power system, such as smart electric meters, power sensors, etc., to collect electric energy data at different positions and time points. These sensors are distributed in different regions of the power grid, and the collected parameters include real-time voltage, current, power, etc. The distributed data acquisition effectively improves the redundancy of the system and avoids incorrect power amount calculations caused by single sensor failures or abnormal acquisitions;
[0056] The system performs fusion processing on the data collected by multiple sensors, and uses methods such as weighted average, data correction, or statistical analysis to eliminate noise and outliers;
[0057] Verify the fused data result, and check whether the difference between its result and the calculation result of a single sensor is within the tolerance range. If the result of a certain sensor deviates significantly from the fused result, mark that the sensor may malfunction, and the system automatically adjusts its weight or temporarily excludes its data from the calculation;
[0058] After discovering an anomaly, use the data of the remaining sensors for dynamic compensation and correction. For example, in the case where a certain sensor completely loses data, perform interpolation compensation based on the calculation results of other sensors to ensure that the power calculation does not interrupt;
[0059] The power value after multi-sensor fusion and verification will be used as the output result. When multiple groups of sensors are detected to be abnormal simultaneously or the calculation result exceeds the reasonable range during the verification process, the system triggers an alarm prompt to remind the maintenance personnel to handle it in a timely manner.
[0060] Embodiment 3
[0061] An embodiment of the present invention provides a redundant power calculation method. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through economic benefit calculation and simulation experiments.
[0062] Design a set of experiments to simulate the power generation calculation process of the power system within a certain period of time. The experiment uses real power acquisition equipment, sets the acquisition time period to 15 minutes, and the experimental data is obtained through two calculation methods, cumulative calculation and subtraction calculation. A high-stability power supply line is selected for the experiment, and two sets of acquisition systems are connected. The bottom code values of the electricity meters at the time points are recorded respectively. The experimental time period is 90 minutes, divided into 6 time intervals, and the power data is recorded every 15 minutes;
[0063] For subtraction calculation, record the bottom code value at the time point, and calculate the power within this time period by taking the difference between adjacent time points;
[0064] For cumulative calculation, accumulate the power values every 15 minutes to generate the cumulative power value from the starting time point to the current time point;
[0065] Perform difference analysis on the cumulative calculation result and the subtraction calculation result for each time period to determine whether the deviation between the calculation results of the two methods is within the preset threshold range. If the difference exceeds the threshold, the system records and triggers an alarm. A small-range perturbation is introduced in the experiment to simulate the acquisition error, and the ability of the redundant calculation detection mechanism to capture anomalies is verified.
[0066] As shown in Table 1, the result deviation between the accumulative calculation and the subtractive calculation does not exceed the preset threshold (0.2 kWh) in each time period, indicating that the redundancy mechanism of the present invention effectively detects and corrects small-range data deviations, ensuring the accuracy of the electricity quantity calculation result. In the case of simulated errors, the calculation deviations of the two methods are strictly controlled within a reasonable range, and no alarm is triggered, indicating that the redundancy design has good fault tolerance for small errors occurring in the acquisition process. The data in each time period is calculated and compared by two independent methods, and no systematic deviation or failure occurs, verifying the stability and reliability of the redundant calculation method in the actual environment. Compared with the traditional method that only relies on subtractive calculation, the method of the present invention reduces the impact of data loss at key time points on the overall calculation result through double calculation and real-time verification mechanisms, and dynamically adjusts the calculation accuracy and response speed through difference comparison and threshold setting to meet the requirements of different application scenarios.
[0067] Table 1 Experimental Data Table
[0068]
[0069] Example 4
[0070] Reference Figure 4 , which is an embodiment of the present invention, provides a redundant electricity quantity calculation system, including: a collected value calculation module, a calculation and comparison module, and a fault inspection module.
[0071] Among them, the collected value calculation module is used to collect the electricity quantity of the electric meter and calculate the first electricity quantity collection value; the calculation and comparison module is used to calculate the power generation quantity by the first method and conduct the first comparison on the power generation quantity; the fault inspection module is used to conduct the first calculation inspection on the power generation quantity and handle faults.
[0072] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods of the various embodiments of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.
[0073] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a definitional sequence list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other systems that can fetch and execute instructions from the instruction execution system, apparatus, or device), or in conjunction with these instruction execution systems, apparatuses, or devices. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0074] More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer diskette (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium can even be paper or other suitable media on which a program can be printed, because the program can be obtained electronically, for example, by optically scanning the paper or other media, then editing, interpreting, or otherwise processing it as appropriate, and then storing it in a computer memory.
[0075] It should be understood that various parts of the present invention can be implemented using hardware, software, firmware, or combinations thereof. In the above-described embodiments, multiple steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one or a combination of the following techniques well known in the art can be used: discrete logic circuits having logic gate circuits for implementing logical functions on data signals, application specific integrated circuits having appropriate combinational logic gate circuits, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc. It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of the present invention, and they should all be covered within the scope of the claims of the present invention.
[0076] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit them. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of the present invention, and they should all be covered within the scope of the claims of the present invention.
Claims
1. A redundant power calculation method, characterized in that: include: Collecting electricity from the electric meter and calculating a first electricity collection value; Calculate the power generation by a first method and perform a first comparison on the power generation; Perform a first calculation check on the power generation and handle faults.
2. The redundant power calculation method according to claim 1, characterized in that: The collecting of the electric meter power includes collecting the electric meter power once in each fixed time period.
3. The redundant power calculation method according to claim 2, characterized in that: The calculating the first electric quantity collection value includes collecting the electric meter bottom code to calculate the first electric quantity collection value.
4. The redundant power calculation method according to claim 3, characterized in that: The calculating of the power generation by the first method includes calculating the power generation by a subtraction method or an accumulation method.
5. The redundant power calculation method according to claim 4, characterized in that: The first comparison of the power generation includes comparing the power generation calculation results, judging and executing the operation.
6. The redundant power calculation method according to claim 5, characterized in that: The first calculation check of the power generation includes checking the power generation through an alarm signal and determining a fault.
7. The redundant power calculation method according to claim 6, characterized in that: The processing of the fault includes processing the fault according to the result of judging the fault.
8. A system using the redundant power calculation method according to any one of claims 1 to 7, characterized in that: It includes a collection value calculation module, a calculation comparison module, and a fault detection module; The collected value calculation module is used to collect the electricity quantity of the electric meter and calculate the first electricity collection value; The calculation and comparison module is used to calculate the power generation by a first method and perform a first comparison on the power generation; The fault checking module is used to perform a first calculation check on the power generation and handle faults.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the redundant power calculation method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the redundant power calculation method according to any one of claims 1 to 7 are implemented.