A method, system, and storage medium for accumulating electrical charge.

By introducing an intermediate storage unit into the electricity meter to store electricity consumption information and determine the direction of electricity accumulation after the power register is updated, the problem of inaccurate electricity accumulation when users send electricity to the grid is solved, and the accuracy and reliability of the electricity metering system are improved.

CN120577592BActive Publication Date: 2025-10-28HANGZHOU MINGTE TECH
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202511013106.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-07-23
Publication Date
2025-10-28
Estimated Expiration
2045-07-23

AI Technical Summary

Technical Problem

Existing electricity metering systems suffer from inaccurate electricity accumulation when users supply power to the grid, leading to reduced reliability of the systems.

Method used

An intermediate storage unit is introduced to store the power consumption information. After the power register is updated, the power accumulation direction is determined based on the power value to ensure the accuracy of power accumulation.

Benefits of technology

This improves the accuracy of electricity accumulation in the electricity meter, prevents electricity from being accumulated in the wrong direction before the load direction is updated, and enhances the reliability of the electricity metering system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120577592B_ABST
    Figure CN120577592B_ABST
Patent Text Reader

Abstract

This invention provides a method, system, and storage medium for accumulating electricity consumption. The method includes: acquiring a working signal; receiving electricity consumption information based on the working signal; storing the electricity consumption information in an intermediate storage unit; determining whether a power value has been received; if so, acquiring target electricity consumption information corresponding to the power value from the intermediate storage unit; determining an accumulation direction for accumulating the target electricity consumption information based on the power value; and accumulating the target electricity consumption information using the accumulation direction to obtain a latest electricity consumption value. This application can improve the accuracy of electricity consumption accumulation in electricity meters.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of power technology, and in particular to a method, system and storage medium for accumulating electrical energy. Background Technology

[0002] In electricity metering systems, accurate measurement of electrical energy is crucial for applications such as electricity billing and energy consumption analysis. Currently, the common approach to processing electrical energy in existing programs is to default to consuming electricity, that is, to positively accumulate the user's electricity consumption. This is correct for situations where only electricity from the grid is used. However, in real-world scenarios, users not only consume electricity from the grid, but also supply electricity to the grid, such as power plants supplying electricity to the grid. If the system simply positively accumulates the user's electricity meter whenever a change in grid electricity consumption is detected, the accuracy of the electricity accumulation will be low, thus reducing the reliability of the electricity metering system. Summary of the Invention

[0003] To improve the accuracy of electricity accumulation in electricity meters, embodiments of this application provide a method, system, and storage medium for electricity accumulation processing.

[0004] Firstly, this embodiment provides a method for accumulating battery power, the method comprising:

[0005] Acquire working signals, receive power consumption information based on the working signals, and store the power consumption information in an intermediate storage unit;

[0006] Determine whether a power value has been received. If so, retrieve the target power consumption information corresponding to the power value from the intermediate storage unit, and determine the accumulation direction for accumulating the power consumption information based on the power value. Use the accumulation direction to accumulate the power consumption information to obtain the latest power consumption value.

[0007] In some embodiments, the intermediate storage unit includes a plurality of ordered intermediate storage bits, and storing the electricity consumption information in the intermediate storage unit includes:

[0008] Obtain the target bit in the intermediate storage unit that is closest to the first bit and does not contain electricity consumption information, and store the electricity consumption information in the target bit;

[0009] The information stored in the target bit is converted according to a preset rule to obtain the information to be verified. The electricity consumption information is converted according to a preset rule to obtain the verification sample information. It is determined whether the information to be verified is the same as the verification sample information. If they are the same, a representation is generated to realize the stored information of the electricity consumption information in the intermediate storage unit.

[0010] If they are not the same, the verification sample information is used to replace the information stored in the target bit. Then, the verification sample information is subjected to an inverse transformation rule to obtain the information to be stored. The information to be stored is then used to replace the verification sample information to store the electricity consumption information in the intermediate storage unit.

[0011] In some embodiments, obtaining the latest electricity consumption value further includes:

[0012] Delete the target electricity consumption information, and shift the storage bits of all bits storing electricity consumption information after the target bit corresponding to the target electricity consumption information by one bit in the first direction.

[0013] In some embodiments, the power value includes a power direction value and a power magnitude value, and determining whether a power value is received includes:

[0014] Obtain the value sent by the power register, and determine whether the value is zero. If it is zero, no power value has been received.

[0015] If it is not zero, the received power value is obtained.

[0016] In some embodiments, determining the accumulation direction for accumulating the target electricity consumption information based on the power value includes:

[0017] If the power direction value of the power value is positive and the power magnitude value is non-zero, then the accumulation direction of the target power consumption information for power accumulation is positive.

[0018] If the power direction value of the power value is negative and the power magnitude value is non-zero, then the accumulation direction of the target power consumption information for power accumulation is negative.

[0019] In some embodiments, the method further includes:

[0020] If no power value is received, obtain the time interval between the current time and the last received power value, and determine whether the interval is less than the preset time. If it is not less than the preset time, generate an early warning signal.

[0021] If it is less than the received power value, continue to wait for the received power value.

[0022] In some embodiments, the preset time is the reciprocal of the update frequency of the power register in the energy meter.

[0023] In some embodiments, each power consumption information corresponds to a receiving time, and obtaining the target power consumption information corresponding to the power value from the intermediate storage unit includes:

[0024] Obtain the current time, subtract the preset time from the current time to obtain the target reception time, and determine the power consumption information corresponding to the reception time that is consistent with the target reception time from the intermediate storage unit as the target power consumption information.

[0025] Secondly, this embodiment provides a power accumulation processing system, the system comprising: an intermediate storage module and a processing module; wherein,

[0026] The intermediate storage module is used to acquire working signals, receive power consumption information based on the working signals, and store the power consumption information in the intermediate storage unit.

[0027] The processing module is used to determine whether a power value is received. If a power value is received, it retrieves the target power consumption information corresponding to the power value from the intermediate storage unit, and determines the accumulation direction for accumulating the power consumption information based on the power value. The latest power consumption value is obtained by accumulating the power consumption information using the accumulation direction.

[0028] Thirdly, this embodiment provides a computer-readable storage medium having a computer program stored thereon that can run on a processor, wherein when the computer program is executed by the processor, it implements a power accumulation processing method as described in the first aspect.

[0029] By employing the above method, this application first acquires a working signal, receives electricity consumption information based on the working signal, and stores the electricity consumption information in an intermediate storage unit. Then, it determines whether a power value has been received. If received, it retrieves the target electricity consumption information corresponding to the power value from the intermediate storage unit, and determines the accumulation direction for accumulating the target electricity consumption information based on the power value. The latest electricity consumption value is obtained by accumulating the target electricity consumption information using the accumulation direction. In this way, by introducing an intermediate storage unit, when the power is not updated, the electrical energy is first placed in the intermediate storage unit. After the power is correctly updated, the electricity meter program determines the load direction and then accumulates the intermediate-state electrical energy into the corresponding direction's electricity consumption. This prevents electrical energy from being accumulated into the incorrect direction's electricity consumption before the load direction is updated, thereby improving the accuracy of electricity consumption accumulation in the electricity meter. Attached Figure Description

[0030] Figure 1 This is a block diagram of a power accumulation processing method provided in this application.

[0031] Figure 2 This is a block diagram of a method for storing electricity consumption information in an intermediate storage unit, as provided in this application.

[0032] Figure 3 This is a block diagram of the accumulation direction method provided in this application for determining the target electricity consumption information based on the power value.

[0033] Figure 4 This is a connection diagram of a power accumulation processing system provided in this application. Detailed Implementation

[0034] To better understand the purpose, technical solutions, and advantages of this application, it has been described and illustrated below with reference to the accompanying drawings and embodiments. However, those skilled in the art should understand that this application can be implemented without these details. It will be apparent to those skilled in the art that various modifications can be made to the embodiments disclosed in this application, and the general principles defined in this application can be applied to other embodiments and application scenarios without departing from the principles and scope of this application. Therefore, this application is not limited to the illustrated embodiments, but is consistent with the broadest scope claimed in this application.

[0035] The embodiments of this application will now be described in further detail with reference to the accompanying drawings.

[0036] Figure 1 This is a block diagram of a power accumulation processing method provided in this application. For example... Figure 1 As shown, a method for accumulating battery power includes the following steps:

[0037] Step S100: Obtain the working signal, receive power consumption information based on the working signal, and store the power consumption information in the intermediate storage unit.

[0038] The specific application scenario of this application is an electricity meter. This application describes the process from the perspective of the processing end of the electricity meter. The aforementioned working signal refers to the signal that requires the processing end to perform electricity accumulation processing. After the electricity meter is installed and put into use, the processing end needs to operate according to the electricity consumption of the user corresponding to the meter. This working signal can be sent by the operator after the meter installation is completed, or it can be automatically sent by the meter after the installation is completed. No further limitations are made on the method of obtaining the working signal here.

[0039] After receiving the working signal, the processing unit enters the working state and can immediately receive electricity consumption information when the amount of electricity in the power grid corresponding to the electricity meter changes. Specifically, the electricity consumption information refers to the amount of electricity used, and the electricity consumption update is real-time. To determine whether the electricity consumption represents the user using electricity from the grid or sending electricity into the grid, a power register is installed inside the electricity meter. This power register is used to determine the power value generated based on the electricity consumption information. However, the power register does not generate power values ​​in real time; there is a time lag. The update speed of the power register is not real-time but has an update frequency, the specific of which is determined based on the performance of the power register itself. Once the power register is determined, the corresponding update frequency is also determined. Therefore, when electricity consumption information is generated, it is not possible to simultaneously determine whether the electricity consumption information represents sending electricity into the grid or the user using electricity from the grid. To reduce the loss of electricity consumption information and to ensure accurate accumulation of electricity consumption information later, the received electricity consumption information needs to be stored in an intermediate storage unit.

[0040] The intermediate storage unit consists of several ordered intermediate storage bits. Figure 2 This is a block diagram of a method for storing electricity consumption information in an intermediate storage unit, as provided in this application. Figure 2 As shown, storing electricity consumption information in an intermediate storage unit includes the following steps:

[0041] Step S101: Obtain the target bit in the intermediate storage unit that is closest to the first bit and does not contain electricity consumption information, and store the electricity consumption information in the target bit.

[0042] Step S102: Perform a preset conversion rule on the information stored in the target bit to obtain the information to be verified, perform a preset conversion rule on the electricity consumption information to obtain the verification sample information, determine whether the information to be verified is the same as the verification sample information, and if they are the same, generate a representation to realize the stored information of the electricity consumption information in the intermediate storage unit.

[0043] Step S103: If they are not the same, replace the information stored in the target bit with the verification sample information, then perform the reverse transformation rule on the verification sample information to obtain the information to be stored, and replace the verification sample information with the information to be stored to realize the storage of user information in the intermediate storage unit.

[0044] The intermediate storage unit contains several intermediate storage bits that are ordered, including a first and a last bit. The first intermediate storage bit in the intermediate storage unit is the first bit, and the last intermediate storage bit is the last bit. There is a specific storage rule when storing electricity consumption information in the intermediate storage unit: the electricity consumption information is stored in the intermediate storage bit closest to the first bit that does not currently store electricity consumption information, and this intermediate storage bit is designated as the target bit. For example, if the intermediate storage unit has 5 intermediate storage bits, the first and second intermediate storage bits both store electricity consumption information, and the third to fifth intermediate storage bits do not store electricity consumption information, then the third intermediate storage bit is the target bit, and the received electricity consumption information needs to be stored in the third intermediate storage bit.

[0045] Considering the possibility of storage errors when storing electricity consumption information, i.e., the electricity consumption information is changed during storage, in order to ensure that the electricity consumption information is accurately stored in the intermediate storage unit and to facilitate accurate electricity consumption accumulation in subsequent steps, the user information already stored in the target location in step S101 is converted according to a preset conversion rule to obtain a verification information. The most recently obtained electricity consumption information is also converted according to the preset conversion rule to obtain a verification sample information. Then, the verification sample information and the information to be verified are compared. If the verification sample information and the information to be verified are the same, it indicates that the user information already stored in the target location has been accurately stored without any storage error. Then, the processing end will generate a stored information indicating that the electricity consumption information has been accurately stored in the intermediate storage unit, thus demonstrating that the electricity consumption information has been accurately stored in the intermediate storage unit.

[0046] The preset conversion rules are pre-defined and not limited to any specific rule, but the intermediate storage space must display both the information to be verified and the verification sample information. By converting the electricity consumption information and the information stored in the target space before comparison, it's possible to conceal subtle changes made to the electricity consumption information that are not outwardly visible. For example, the intermediate storage space might only display two decimal places, but the electricity consumption information to be stored in the intermediate space contains more than two decimal places. Therefore, by changing the data after the two decimal places in the electricity consumption information, simply comparing the electricity consumption information stored in the target space with the received electricity consumption information is insufficient to determine the accuracy of the user information stored in the target space. Thus, by using the preset conversion rules to obtain the corresponding information and then comparing it, it's possible to more accurately determine whether the electricity consumption information is accurately stored in the intermediate storage unit.

[0047] If the verification sample information differs from the information to be verified, it indicates that the user information stored in the target bit is not accurately stored, resulting in a storage error. The user information stored in step S101 needs to be replaced. To reduce the risk of malicious tampering with the information to be stored, the verification sample information replaces the information stored in the target bit. Since attackers are unaware of the conversion rules, it is difficult to tamper with the verification sample information without leaving any trace of tampering. Then, the verification sample information is subjected to the inverse conversion rule to obtain the information to be stored, which is the electricity consumption information that needs to be stored. Finally, the information to be stored replaces the verification sample information in the target bit, thus ensuring that the received electricity consumption information is accurately stored in the intermediate storage unit.

[0048] Step S200: Determine whether a power value has been received. If received, retrieve the target power consumption information corresponding to the power value from the intermediate storage unit, and determine the accumulation direction for accumulating the power consumption information based on the power value. Use the accumulation direction to accumulate the power consumption information to obtain the latest power consumption value.

[0049] The power value includes a power direction value and a power magnitude value, which is generated by the power register. Determining whether a power value has been received involves: obtaining the value sent by the power register, and checking if the value is zero. If it is zero, no power value has been received; otherwise, a power value has been received.

[0050] Specifically, when the power register has not reached the time corresponding to the transmission update frequency, it will send a blank value, i.e., a value with a power magnitude of zero. When the time corresponding to the transmission update frequency is reached, and the power register is operating normally, it will send a non-blank value, i.e., a value with a power magnitude that is not zero. By receiving each value sent by the power register and checking whether the power magnitude value in the received value is zero, it is possible to determine if the power value is zero. If it is zero, it indicates that the processing end has not received a power value. If it is not zero, it indicates that the processing end has received a power value.

[0051] If no power value is received at the processing end, it could be because the power register has not yet reached the update frequency, or it could be that the power register is not functioning properly. To ensure timely power accumulation processing, it is necessary to determine the power register's status. If no power value is received, the interval between the current time and the most recently received power value is retrieved, and it is determined whether this interval is less than a preset time. If it is not less, a warning signal is generated; otherwise, the system continues to wait for a power value to be received.

[0052] The preset time is the reciprocal of the update frequency of the power register in the electricity meter. The update frequency of the power register can be determined according to the actual situation, and is not further limited here. This application preferentially sets the update frequency of the power register to 3.495Hz. If the interval between the current time and the most recently received power value is not less than the preset time, it indicates that the power register is not sending the power value normally according to the update frequency. At this time, the power register is not working normally, and the processor will generate a warning signal to inform the relevant personnel that the power register is abnormal and needs to be dealt with as soon as possible to reduce the impact on subsequent power accumulation processing. If the interval between the current time and the most recently received power value is less than the preset time, it indicates that the time for the power register to send the power value normally according to the update frequency has not yet arrived, and the system continues to wait for the power value to be received.

[0053] When the processing end receives the power value, it indicates that the power register is working normally and has reached the time corresponding to the update frequency. At this point, it is necessary to retrieve the target electricity consumption information corresponding to the power register from the intermediate storage unit, and determine the accumulation direction for accumulating the electricity consumption information based on the power value. That is, the power value is now obtained. The power value can be used to further determine which previously obtained electricity consumption information needs to be superimposed, and whether the electricity consumption information belongs to electricity consumption or power transmission. Finally, the target electricity consumption information is accumulated according to the accumulation direction, selecting the corresponding base electricity consumption to obtain the latest electricity consumption value. For example, if the target electricity consumption information corresponding to the power value is 5.48 Wh, and the accumulation direction for accumulating the target electricity consumption information is positive, and the current positive electricity consumption recorded by the electricity meter is 50 Wh, then the latest electricity consumption value is 50 + 5.48 = 55.48 Wh.

[0054] After obtaining the latest electricity consumption value, the processing end also deletes the target electricity consumption information and moves the storage bits of all the electricity consumption information stored after the target bit corresponding to the target electricity consumption information by one bit in the first direction.

[0055] Once a latest electricity consumption value is obtained, it indicates that the electricity consumption information stored in the intermediate storage unit has been determined to have its accumulation direction and has undergone accumulation processing. To free up space in the intermediate storage unit, reduce interference from the already accumulated electricity consumption information on subsequent accumulation processes, and accelerate the efficiency of subsequent accumulation processing of other electricity consumption information, this application first deletes the already accumulated target electricity consumption information from the target bit in the intermediate storage unit. Then, it shifts all electricity consumption information in each storage bit following the target bit forward by one bit, leaving later storage bits in the intermediate storage unit to prepare for receiving subsequent electricity consumption information. This ensures that each received electricity consumption time is stored sequentially in the intermediate storage unit in ascending order of time, with the electricity consumption information closer to the beginning of the intermediate storage unit being received earlier.

[0056] Each piece of electricity consumption information corresponds to a receiving time, which is the time when the processing terminal receives the electricity consumption information. Obtaining the target electricity consumption information corresponding to the power value from the intermediate storage unit includes: obtaining the current time, subtracting a preset time from the current time to obtain the target receiving time, and determining the electricity consumption information corresponding to the receiving time that matches the target receiving time from the intermediate storage unit as the target electricity consumption information.

[0057] When the processing terminal stores the power consumption information in the intermediate storage unit, it also stores the corresponding reception time in the same storage location. By subtracting the preset time from the current time, the processing terminal obtains the time when it received the target power consumption information, i.e., the target reception time. Then, the processing terminal locates the power consumption information stored in the storage location corresponding to the reception time that matches the target reception time in the intermediate storage unit; this is the target power consumption information corresponding to the power value. In other words, under normal circumstances, the power consumption information stored at the first position in the intermediate storage unit is the target power consumption information corresponding to the power value. By using both the time and the position in the intermediate storage unit, the target power consumption information corresponding to the currently received power value is found twice. Based on the accurate storage of power consumption information in the intermediate storage unit in step S100, and further accurately finding the corresponding target power consumption information in the intermediate storage unit when the power value is received, the accuracy of the target power consumption information is improved.

[0058] Furthermore, when the processing end receives the power value, it needs to further determine the accumulation direction for accumulating the target power consumption information based on the power value. The two steps—obtaining the target power consumption information corresponding to the power value from the intermediate storage unit and determining the accumulation direction for accumulating the target power consumption information based on the power value—can be performed simultaneously; alternatively, the step of obtaining the target power consumption information corresponding to the power value from the intermediate storage unit can be performed first, followed by the step of determining the accumulation direction for accumulating the target power consumption information based on the power value; or alternatively, the step of determining the accumulation direction for accumulating the target power consumption information based on the power value can be performed first, followed by the step of obtaining the target power consumption information corresponding to the power value from the intermediate storage unit. This application does not impose further limitations.

[0059] Figure 3 This is a block diagram of the accumulation direction method provided in this application, which determines the target electricity consumption information based on the power value. (For example...) Figure 3 As shown, determining the accumulation direction for accumulating target electricity consumption information based on power values ​​includes the following steps:

[0060] Step S201: If the power direction value of the power value is positive and the power magnitude value is not zero, then the accumulation direction of the target power consumption information for power accumulation is positive.

[0061] Step S202: If the power direction value of the power value is negative and the power magnitude value is not zero, then the accumulation direction of the target power consumption information for power accumulation is negative.

[0062] In this system, the power direction value is either zero or one, and it is located in the highest digit of the power value, while the power magnitude value is located in the lowest digit. Taking a power direction value of zero as representing a positive direction value and one as representing a negative direction value as an example, if the power magnitude value is not equal to zero and the power direction value is zero, it means that the target power consumption information needs to be accumulated in the positive direction, i.e., the target power consumption information is added. If the power magnitude value is not equal to zero and the power direction value is one, it means that the target power consumption information needs to be accumulated in the negative direction, i.e., the target power consumption information is subtracted. Alternatively, a power direction value of zero can represent a negative direction value, and a power direction value of one can represent a positive direction value; this will not be elaborated further here. The specific method can be determined based on the actual situation, and once determined, it is fixed. By introducing an intermediate storage unit, this application stores electrical energy in the intermediate storage unit before the power is updated. After the power is updated correctly, the electricity meter program determines the load direction and then adds the intermediate electrical energy to the corresponding load. This prevents electrical energy from being added to the load in the wrong direction before the load direction is updated, thereby improving the accuracy of the electricity meter's accumulation.

[0063] Figure 4 This is a connection diagram of a power accumulation processing system provided in this application. For example... Figure 4 As shown, a power accumulation processing system includes an intermediate storage module and a processing module.

[0064] The intermediate storage module is used to acquire working signals, receive power consumption information based on the working signals, and store the power consumption information in the intermediate storage unit. The processing module is used to determine whether a power value has been received. If received, it retrieves the target power consumption information corresponding to the power value from the intermediate storage unit, and determines the accumulation direction for accumulating the target power consumption information based on the power value. It then uses the accumulation direction to accumulate the target power consumption information to obtain the latest power consumption value.

[0065] The other functions performed by the aforementioned intermediate storage module and processing module, as well as the technical details of each function, are the same as or similar to the corresponding features in the previously described power accumulation processing method, and therefore will not be repeated here.

[0066] This application also provides a computer storage medium storing a computer program that, when run on a computer, enables the computer to execute the steps in the power accumulation processing method described above.

[0067] It should be understood that although the steps in the flowcharts in the accompanying figures are shown sequentially as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order requirement for the execution of these steps, and they can be performed in other orders.

[0068] The above description is only a partial embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A method for accumulating electrical charge, characterized in that, The method includes: Acquire working signals, receive power consumption information based on the working signals, and store the power consumption information in an intermediate storage unit; Determine whether a power value is received. If received, retrieve the target power consumption information corresponding to the power value from the intermediate storage unit, and determine the accumulation direction for accumulating the power consumption information based on the power value. Use the accumulation direction to accumulate the power consumption information to obtain the latest power consumption value. The power value includes a power direction value and a power magnitude value, and the determination of whether a power value is received includes: Obtain the value sent by the power register, and determine whether the value is zero. If it is zero, no power value has been received. If it is not zero, the received power value; The step of determining the accumulation direction for accumulating the target electricity consumption information based on the power value includes: If the power direction value of the power value is positive and the power magnitude value is non-zero, then the accumulation direction of the target power consumption information for power accumulation is positive. If the power direction value of the power value is negative and the power magnitude value is non-zero, then the accumulation direction of the target power consumption information for power accumulation is negative.

2. The method according to claim 1, characterized in that, The intermediate storage unit includes several ordered intermediate... Storage location, wherein storing the electricity consumption information in the intermediate storage unit includes: Obtain the target bit in the intermediate storage unit that is closest to the first bit and does not contain electricity usage information, and then store the electricity usage information. The information is stored in the target bit; The information stored in the target bit is converted according to a preset rule to obtain the information to be verified, and the electricity consumption information is then processed. A preset transformation rule is applied to obtain verification sample information, and it is determined whether the information to be verified is similar to the verification sample information. If they are the same, the generated representation realizes the stored information of the electricity consumption information in the intermediate storage unit; If they are not the same, replace the information stored in the target bit with the verification sample information, and then process the verification sample. This information undergoes a reverse transformation rule to obtain the information to be stored, and the information to be stored replaces the verification sample information. This allows the electricity consumption information to be stored in an intermediate storage unit.

3. The method according to claim 2, characterized in that, After obtaining the latest electricity consumption value, the process also includes: Delete the target electricity consumption information, and shift the storage bits of all bits storing electricity consumption information after the target bit corresponding to the target electricity consumption information by one bit in the first direction.

4. The method according to claim 1, characterized in that, The method further includes: If no power value is received, obtain the time interval between the current time and the last received power value, and determine whether the interval is less than the preset time. If it is not less than the preset time, generate an early warning signal. If it is less than the received power value, continue to wait for the received power value.

5. The method according to claim 4, characterized in that, The preset time is the reciprocal of the update frequency of the power register in the energy meter.

6. The method according to claim 4, characterized in that, Each piece of electricity consumption information corresponds to a receiving time. The step of retrieving the target electricity consumption information corresponding to the power value from the intermediate storage unit includes: Obtain the current time, subtract the preset time from the current time to obtain the target reception time, and determine the power consumption information corresponding to the reception time that is consistent with the target reception time from the intermediate storage unit as the target power consumption information.

7. A power accumulation processing system, characterized in that, The system includes: an intermediate storage module and a processing module; wherein... The intermediate storage module is used to acquire working signals, receive power consumption information based on the working signals, and store the power consumption information in the intermediate storage unit. The processing module is used to determine whether a power value is received. If a power value is received, it retrieves the target power consumption information corresponding to the power value from the intermediate storage unit, and determines the accumulation direction for accumulating the power consumption information based on the power value. The target power consumption information is then accumulated using the accumulation direction to obtain the latest power consumption value. The power value includes a power direction value and a power magnitude value, and the determination of whether a power value is received includes: Obtain the value sent by the power register, and determine whether the value is zero. If it is zero, no power value has been received. If it is not zero, the received power value; The step of determining the accumulation direction for accumulating the target electricity consumption information based on the power value includes: If the power direction value of the power value is positive and the power magnitude value is non-zero, then the accumulation direction of the target power consumption information for power accumulation is positive. If the power direction value of the power value is negative and the power magnitude value is non-zero, then the accumulation direction of the target power consumption information for power accumulation is negative.

8. A computer-readable storage medium having a computer program stored thereon that can run on a processor, characterized in that, When the computer program is executed by the processor, it implements a power accumulation processing method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Real-time bidirectional independent electric-energy metering system

    CN104237632A