Electric quantity storage method, system and device and electric meter
By monitoring the power changes in real time and recalculating the power according to the new rate and time period relationship, the problem of inflexible power metering in the existing power meter rate period is solved, and more accurate and reliable power metering is achieved to adapt to multi-rate demand and Flexible electricity price settlement.
Patent Information
- Application Number
- CN202411296037.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-14
- Publication Date
- 2024-12-24
AI Technical Summary
When the existing meter integrates the ladder + time-sharing electricity price function, the power metering design during the rate period is not flexible enough to meet the requirements of flexible switching of rate periods and frequent changes in the electricity price settlement policy.
Provide a power storage method, by monitoring the power changes in real time, determining the current time period, accumulating the changed power and historical power, and recalculating the power at each rate based on the relationship between the new rate and the time period, and saving the new fee The rate and power and correspondence relationship enable flexible power metering.
It improves the accuracy and reliability of power metering, adapts to multi-rate requirements, ensures the stability and flexibility of power metering, and supports flexible rate period switching and electricity price settlement.
Smart Images

Figure CN119179654A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electric energy metering, and in particular to an electric energy storage method, system, device and electric meter. Background Art
[0002] The residential electricity price settlement strategy will integrate the "ladder + time-of-use" electricity price function. Peak and flat electricity will be included in the ladder and settled in different grades, and peak and valley electricity will be settled at the rate price. At present, the electricity meter uses a fixed rate period, that is, the ladder corresponding to each time is fixed, or supports the measurement of total electricity and electricity at each rate, but the rate period electricity measurement design is not flexible enough, and in the future it will not be able to meet the requirements of flexible switching of rate periods and subsequent frequent changes in electricity price settlement policies. Summary of the invention
[0003] The purpose of the present invention is to provide a method, system, device and electric meter for storing electric power. When a new correspondence between a time period and a rate is received, the previous electric power is accumulated and the electric power of the time period under each rate is recalculated based on the new correspondence, which is more universal.
[0004] In order to solve the above technical problems, the present invention provides a method for storing electric quantity, which is applied to a processor in an electric meter, and comprises:
[0005] Monitor the change of power in real time and determine the current time period when the power changes;
[0006] Add the changed power and the historical power of the current time period as the new historical power, where the historical power is the sum of all power in the same time period as the current time period before the current date;
[0007] According to the correspondence between the current tariff and the time period, the sum of the historical electricity of all time periods corresponding to each tariff is determined according to the preset frequency, and the sum of the historical electricity of all time periods corresponding to each tariff is added to the tariff electricity of each tariff as the new tariff electricity. One tariff corresponds to at least one time period.
[0008] Save all the new rate electricity and the rates corresponding to the new rate electricity, where the rate electricity corresponds to the rates one by one;
[0009] When the updated correspondence between the rate and the time period is received, the current rate electricity is determined according to the correspondence between the current rate and the time period, and the current rate electricity and the current rate are saved, all historical electricity is cleared, and the updated correspondence between the rate and the time period is used as the current correspondence between the rate and the time period.
[0010] On the other hand, before determining the current time period when the power level changes, it also includes:
[0011] A day is divided into preset time periods. In the correspondence between rates and time periods, each time period corresponds to only one rate.
[0012] On the other hand, the electric meter further includes a first storage space and a second storage space having the same number as the time periods, and the first storage space and the second storage space correspond to the time periods one by one;
[0013] Before adding the changed power to the historical power of the current time period as the new historical power, the following is also included:
[0014] After the electric meter is powered on, synchronizing the historical electric quantity in the second storage space to the first storage space;
[0015] The first storage space erases data after power failure, and the second storage space does not erase data after power failure.
[0016] On the other hand, the power consumption changes are monitored in real time, and the current time period is determined when the power consumption changes, including:
[0017] The generated energy pulses are monitored in real time, and the current time period is determined when the energy pulses are detected.
[0018] On the other hand, the changed power is added to the historical power corresponding to the current time period as the new historical power, including:
[0019] When the energy pulse is detected, the electric energy generated by the energy pulse is used as the changed electric quantity;
[0020] The changed electric quantity is accumulated with the historical electric quantity in the first storage space.
[0021] On the other hand, according to the correspondence between the current tariff and the time period, the sum of the historical electricity of all time periods corresponding to each tariff is determined according to the preset frequency and used as the tariff electricity, including:
[0022] Acquire the historical power in the first storage space according to a preset frequency;
[0023] Determine whether the historical power in the first storage space currently obtained is the same as the historical power in the first storage space obtained last time;
[0024] If they are not the same, using the historical power in the first storage space to update the power in the second storage space;
[0025] For any rate, determine all time periods corresponding to the rate according to the correspondence between the current rate and the time period;
[0026] Determine all first storage spaces corresponding to all time periods;
[0027] The sum of the historical electricity in all the first storage spaces is determined and used as the rate electricity.
[0028] On the other hand, it also includes:
[0029] Sending all the rate electricity and the rates corresponding to the rate electricity to the server so that the server can calculate the electricity fee;
[0030] The electricity fee is the product of the rate electricity and the rate corresponding to the rate electricity.
[0031] In order to solve the above technical problems, the present invention also provides an electric power storage system, which is characterized by comprising:
[0032] A change monitoring unit is used to monitor the change of power in real time and determine the current time period when the power changes;
[0033] An accumulation unit, used to add the changed power and the historical power of the current time period as a new historical power, wherein the historical power is the sum of all power in the same time period as the current time period before the current date;
[0034] An electricity determination unit, configured to determine the sum of historical electricity of all time periods corresponding to each rate according to a preset frequency based on the correspondence between the current rate and the time period, and add the sum of historical electricity of all time periods corresponding to each rate to the rate electricity of each rate as a new rate electricity, wherein one rate corresponds to at least one time period;
[0035] A storage unit, used to store all the new rate electricity and the rates corresponding to the new rate electricity, wherein the rate electricity corresponds to the rates one by one;
[0036] The updating unit is used to determine the current rate electricity according to the corresponding relationship between the current rate and the time period when receiving the updated correspondence between the rate and the time period, and save the current rate electricity and the current rate, clear all historical electricity, and use the updated correspondence between the rate and the time period as the correspondence between the current rate and the time period.
[0037] In order to solve the above technical problems, the present invention further provides an electric power storage device, comprising:
[0038] Memory for storing computer programs;
[0039] A processor is used to implement the steps of the above-mentioned method for storing electrical quantity when executing the computer program.
[0040] In order to solve the above technical problem, the present invention also provides an electric meter, including the above electric quantity storage device.
[0041] The present invention discloses a method, system, device and electric meter for storing electric quantity, which relates to the field of electric energy metering, including real-time monitoring of changes in electric quantity, and determining the current time period when the electric quantity changes. The electric quantity that changes in the same time period of each day is accumulated as the historical electric quantity according to the time period, and the sum of all electric quantities in all time periods under each rate is determined according to the correspondence between the rate and the time period, that is, the rate electric quantity. When a new correspondence is received, the previous rate electric quantity is cleared, and the previous rate electric quantity and the rate are saved, and then the updated correspondence between the rate and the time period is used as the current correspondence between the rate and the time period. Then the content finally saved is the rate electric quantity of each rate electric quantity and the rate corresponding to the rate electric quantity, and the subsequent calculation of the electricity fee is convenient based on the rate electric quantity and the rate. This method can effectively realize multi-rate requirements, improve the accuracy and reliability of metering, is the basis of electric energy metering, and provides guarantee for stable metering. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the prior art and the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0043] Figure 1 A flow chart of a method for storing electricity provided by the present invention;
[0044] Figure 2 A flow chart of another method for storing electricity provided by the present invention;
[0045] Figure 3 A schematic diagram of the structure of an electric power storage system provided by the present invention;
[0046] Figure 4 A schematic structural diagram of an electric power storage device provided by the present invention. DETAILED DESCRIPTION
[0047] The core of the present invention is to provide a method, system, device and electric meter for storing electricity. When a new correspondence between a time period and a rate is received, the previous electricity is accumulated and the electricity in the time period under each rate is recalculated based on the new correspondence, which is more universal.
[0048] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0049] Figure 1 A flow chart of a method for storing electric quantity provided by the present invention, wherein the method for storing electric quantity is applied to a processor in an electric meter, and comprises:
[0050] S11: monitor the change of power in real time and determine the current time period when the power changes;
[0051] Considering that the electricity prices corresponding to the electricity consumption in different time periods are different, when determining whether the electricity consumption has changed, it is necessary not only to record the amount of change in electricity consumption, but also to determine the time of the change.
[0052] In order to improve the accuracy of monitoring, real-time monitoring is required, and if there are changes, the power consumption and time period need to be determined.
[0053] S12: adding the changed power and the historical power in the current time period to obtain a new historical power, where the historical power is the sum of all power in the same time period as the current time period before the current date;
[0054] Since the electricity consumption needs to be accumulated over time and then billed, the increased electricity consumption needs to be added to the historical electricity consumption. The server can calculate the new electricity fee when reading the meter and settle with the user.
[0055] For example, if the current time period is from 4:00 to 5:00, the power consumption in the time period from 4:00 to 5:00 of all previous time periods is accumulated.
[0056] S13: according to the correspondence between the current tariff and the time period, the sum of the historical electricity of all time periods corresponding to each tariff is determined according to the preset frequency, and the sum of the historical electricity of all time periods corresponding to each tariff is added to the tariff electricity of each tariff as a new tariff electricity. One tariff corresponds to at least one time period.
[0057] There is a corresponding relationship between the rate and the time period. A rate can include one time period or multiple time periods. The corresponding relationship between the current rate and the time period is stored in the meter by the host computer or at the factory. Add together the historical electricity consumption of all time periods corresponding to the rate. When there is a settlement demand, the rate and the sum of all historical electricity consumption under the rate can be sent to the server.
[0058] For example, if the time period corresponding to the current rate is 4:00-7:00, and if the time period is one hour, the historical electricity consumption in the three time periods of 4:00-5:00, 5:00-6:00 and 6:00-7:00 needs to be added together as the rate electricity consumption.
[0059] S14: Save all new rate electricity and the rates corresponding to the new rate electricity, and the rate electricity and the rates correspond one to one;
[0060] S15: When the updated correspondence between the rate and the time period is received, the current rate electricity is determined according to the correspondence between the current rate and the time period, and the current rate electricity and the current rate are saved, all historical electricity is cleared, and the updated correspondence between the rate and the time period is used as the correspondence between the current rate and the time period.
[0061] If you receive a new correspondence between a rate and a time period, you need to settle according to the previous correspondence between the rate and the time period, and save the sum of the historical electricity consumption corresponding to the previous rate before you can accumulate the electricity charges according to the new correspondence between the rate and the time period.
[0062] The present invention discloses a method for storing electric quantity, which relates to the field of electric energy metering, including real-time monitoring of changes in electric quantity, and determining the current time period when the electric quantity changes. The electric quantity that changes in the same time period of each day is accumulated as the historical electric quantity according to the time period, and the sum of all electric quantities in all time periods under each rate is determined according to the correspondence between the rate and the time period, that is, the rate electric quantity. When a new correspondence is received, the previous rate electric quantity is cleared, and the previous rate electric quantity and the rate are saved, and then the updated correspondence between the rate and the time period is used as the current correspondence between the rate and the time period. Then the content finally saved is the rate electric quantity of each rate electric quantity and the rate corresponding to the rate electric quantity, and the subsequent calculation of the electricity fee is convenient based on the rate electric quantity and the rate. This method can effectively realize multi-rate requirements, improve the accuracy and reliability of metering, is the basis of electric energy metering, and provides guarantee for stable metering.
[0063] Based on the above embodiments:
[0064] Figure 2 A flow chart of another method for storing electricity provided by the present invention;
[0065] In some embodiments, the real-time monitoring of the change in power quantity, before determining the current time period when the power quantity changes, further includes:
[0066] A day is divided into preset time periods. In the correspondence between rates and time periods, each time period corresponds to only one rate.
[0067] Considering the related technologies, the 13th edition of the electric energy meter supports 4 rates and 14 time periods, and the 20th edition of the electric energy meter supports 12 rates and 14 time periods. The current meters all support the total power and power measurement of each rate, but the rate and time period power measurement design is not flexible enough. Specifically, the 13th edition of the electric energy meter has 4 rates and 14 time periods, which means that a day is divided into 14 time periods, for example, valley power is executed from 0:00 to 2:00, and average power is executed from 2:00 to 6:00. The 20th edition of the electric energy meter has 12 rates and 14 time periods.
[0068] Therefore, the division of time periods in a day needs to adapt to the calculation of multiple time periods. This application divides a day into 96 time periods, starting from 0:00:00, with a fixed period of 15 minutes, and divides 24 hours a day into 96 time periods; for example: 00:00-00:15 is the first time period, 00:15-00:30 is the second time period, and 23:45-24:00 is the 96th time period.
[0069] Using 15 minutes as a cycle can improve the distribution of electricity meters. Even if there are 32 time periods in a day, a 15-minute cycle can meet the demand.
[0070] In some embodiments, the electric meter further includes a first storage space and a second storage space having the same number as the time periods, and the first storage space and the second storage space correspond to the time periods one by one;
[0071] Before adding the changed power to the historical power of the current time period as the new historical power, the following is also included:
[0072] After the electric meter is powered on, the historical electric quantity in the second storage space is synchronized to the first storage space;
[0073] The first storage space erases data after power failure, and the second storage space does not erase data after power failure.
[0074] The first storage space is the RAM built into the microcontroller chip, and the second storage space is the non-volatile memory EEPROM, which ensures that data is not lost when there is no power supply.
[0075] Under the condition that a day is divided into 96 time periods, the present application divides the first storage space and the second storage space into a one-to-one correspondence with the time periods. Since the first storage space is RAM, the data is erased after power failure, so after power-on, the second storage space needs to restore the internally stored historical power to the first storage space so that the first storage space can accumulate.
[0076] According to the division of a day into 96 intervals, each interval is 15 minutes, and 96 storage backups have been realized in terms of time. As long as we divide the storage interval according to the time, the storage life requirement of EEPROM can be fully met. Therefore, this solution adopts the storage method of timing and electric energy pulse change. According to the design of 1 million times of EEPROM write life, if the storage interval is designed to be 6 seconds, then the number of seconds stored per minute is: 0, 6, 12, 16, 24, 30, 36, 42, 48, 54. That is, 1 minute is stored 10 times. Since this solution divides a day into 96 intervals, one interval only needs to be stored for 15 minutes per day, so the maximum number of storage times per day is 10*15=150 times. According to the design of the 16-year life of the electric energy meter, the maximum number of storage times is 150*365*16=876000 times, which meets the 1 million times requirement of EEPROM write life. And this design requires a pulse change for another 6 seconds before it can be stored. In our power usage process, there will basically be no pulse change every 6 seconds, so the number of writes will be less than 876,000 times. Of course, the 6-second storage can be adjusted according to demand.
[0077] The present application adopts electric energy pulse as the smallest storage unit, that is, the pulse in this interval is stored at intervals of 6 seconds, with high storage accuracy, simpler storage logic, and stronger reliability. The power-off storage of this scheme only needs to store the interval electricity quantity that changes within less than 6 seconds, and the storage data is small, so the reliability is higher. Through the time zone and period table of the electric energy meter, the required rate electricity quantity is automatically generated, which is more flexible. The 1-96 rate electricity can be flexibly and automatically configured, and new requirements can be met without changing the program of the base meter. Realizing future multi-rate requirements in the electric energy meter improves real-time performance and the fairness and reliability of measurement.
[0078] In some embodiments, real-time monitoring of changes in power consumption and determining a current time period when power consumption changes include:
[0079] The generated energy pulses are monitored in real time, and the current time period is determined when the energy pulses are detected.
[0080] Real-time monitoring is performed to determine whether a minimum energy pulse with a preset resolution appears. If so, the power change is determined and the time period to which the current moment belongs is determined.
[0081] In some embodiments, adding the changed power amount to the historical power amount corresponding to the current time period as the new historical power amount includes:
[0082] When the energy pulse is detected, the electric energy generated by the energy pulse is used as the variable electric quantity;
[0083] The changed electric quantity is accumulated with the historical electric quantity in the first storage space.
[0084] Determine which interval it belongs to based on the current moment. When the user is using electricity, the newly generated electric energy (resolution is the minimum energy pulse) is accumulated in the corresponding interval electric energy register RAM. EEPROM also opens up 96 registers corresponding to RAM. Every 6 seconds, only the register RAM where the interval electric energy changes occurs is stored in the corresponding EEPROM.
[0085] Adjust the storage method to reduce the storage capacity of the energy meter. This can be achieved by using conventional EEPROM memory chips instead of ferroelectric memory chips.
[0086] In some embodiments, according to the correspondence between the current rate and the time period, the sum of the historical electricity of all time periods corresponding to each rate is determined according to the preset frequency, and used as the rate electricity, including:
[0087] Acquire the historical power in the first storage space according to a preset frequency;
[0088] Determine whether the historical power in the first storage space currently obtained is the same as the historical power in the first storage space obtained last time;
[0089] If they are not the same, the historical power in the first storage space is used to update the power in the second storage space;
[0090] For any rate, all time periods corresponding to the rate are determined based on the correspondence between the current rate and time period;
[0091] Determine all first storage spaces corresponding to all time periods;
[0092] The sum of the historical electricity in all the first storage spaces is determined and used as the rate electricity.
[0093] The electric energy meter is preset with a time zone and period table at the factory. According to the time zone and period table of the rate, the interval electricity is accumulated and calculated, and the rate energy is refreshed. The system can read the rate electricity of the electric energy meter and realize spot trading in real time. The parameters of the time zone and period table can be updated in real time on site. After the update, the original rate electricity is stored in the EEPROM, and the 96 period electricity register is cleared. According to the time zone and period table of the newly configured rate, the interval electricity is accumulated and calculated, and the rate electricity before the parameter update is added to refresh the rate energy. The system can read the rate electricity of the electric energy meter and realize spot trading in real time. If the interval of 6 seconds has not arrived and the interval electricity has changed, just store the register RAM where the interval electricity has changed in the corresponding EEPROM.
[0094] The preset frequency can reach the second level. The accuracy of the data stored in the second storage space can be achieved. The second storage space can be compared with the first storage space to determine whether there is a change, and the time period can be used as the minimum unit. If the power does not change, the historical power stored in the second storage space may not be updated.
[0095] In some embodiments, it also includes:
[0096] Send all the tariff electricity and the tariff corresponding to the tariff electricity to the server so that the server can calculate the electricity fee;
[0097] The electricity fee is the product of the rate electricity and the rate corresponding to the rate electricity.
[0098] The server reads the rate and the sum of the electricity consumed under the rate, calculates the electricity fee, and sends it to the user.
[0099] For example, if the first rate corresponds to four time periods, the historical electricity consumption stored in the four time periods needs to be added together and then multiplied by the first rate to obtain the electricity fee of the first rate. The calculation method for other rates is the same as above.
[0100] Figure 3 A schematic diagram of a power storage system provided by the present invention, wherein the power storage system comprises:
[0101] A change monitoring unit 31 is used to monitor the change of power in real time and determine the current time period when the power changes;
[0102] The accumulating unit 32 is used to add the changed power and the historical power in the current time period as the new historical power, where the historical power is the sum of all power in the same time period as the current time period before the current date;
[0103] The power determination unit 33 is used to determine the sum of historical power of all time periods corresponding to each rate according to the corresponding relationship between the current rate and the time period according to the preset frequency, and add the sum of historical power of all time periods corresponding to each rate to the rate power of each rate as the new rate power. One rate corresponds to at least one time period.
[0104] A storage unit 34 is used to store all new rate electricity and the rates corresponding to the new rate electricity, and the rate electricity corresponds to the rate rate one by one;
[0105] The updating unit 35 is used to determine the current rate electricity according to the corresponding relationship between the current rate and the time period when receiving the updated correspondence between the rate and the time period, and save the current rate electricity and the current rate, clear all historical electricity, and use the updated correspondence between the rate and the time period as the correspondence between the current rate and the time period.
[0106] Based on the above embodiments:
[0107] Also includes:
[0108] The division unit is used to divide a day into preset time periods. In the corresponding relationship between the rate and the time period, each time period corresponds to only one rate.
[0109] The electric meter also includes a first storage space and a second storage space having the same number as the time periods, and the first storage space and the second storage space correspond to the time periods one by one;
[0110] A synchronization unit, used to synchronize the historical electricity in the second storage space to the first storage space after the electricity meter is powered on;
[0111] The first storage space erases data after power failure, and the second storage space does not erase data after power failure.
[0112] The change monitoring unit 31 is specifically used to monitor the generated energy pulse in real time and determine the current time period when the energy pulse is detected.
[0113] The accumulating unit 32 is specifically used to use the electric energy generated by the energy pulse as the changed electric quantity when the energy pulse is detected;
[0114] The changed electric quantity is accumulated with the historical electric quantity in the first storage space.
[0115] The power determination unit 33 is specifically used to obtain the historical power in the first storage space according to a preset frequency;
[0116] Determine whether the historical power in the first storage space currently obtained is the same as the historical power in the first storage space obtained last time;
[0117] If they are not the same, the historical power in the first storage space is used to update the power in the second storage space;
[0118] For any rate, all time periods corresponding to the rate are determined based on the correspondence between the current rate and time period;
[0119] Determine all first storage spaces corresponding to all time periods;
[0120] The sum of the historical electricity in all the first storage spaces is determined and used as the rate electricity.
[0121] The sending unit is used to send all the rate electricity and the rates corresponding to the rate electricity to the server so that the server can calculate the electricity fee;
[0122] The electricity fee is the product of the rate electricity and the rate corresponding to the rate electricity.
[0123] For an introduction to the electricity storage system provided in the present application, please refer to the above embodiments, which will not be described in detail here.
[0124] Figure 4 A schematic diagram of the structure of an electric power storage device provided by the present invention, the electric power storage device comprises:
[0125] A memory 41, used for storing computer programs;
[0126] The processor 42 is used to implement the steps of the above-mentioned method for storing electrical quantity when executing a computer program.
[0127] For an introduction to the power storage device provided in the present application, please refer to the above embodiments, which will not be described in detail here.
[0128] The present application also provides an electric meter, comprising the above-mentioned electric quantity storage device.
[0129] For an introduction to the electric meter provided in this application, please refer to the above embodiments, which will not be repeated here.
[0130] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0131] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0132] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for storing electric power, characterized in that: Processors used in electric meters include: Monitor the change of power in real time and determine the current time period when the power changes; Add the changed power and the historical power of the current time period as the new historical power, where the historical power is the sum of all power in the same time period as the current time period before the current date; According to the correspondence between the current tariff and the time period, the sum of the historical electricity of all time periods corresponding to each tariff is determined according to the preset frequency, and the sum of the historical electricity of all time periods corresponding to each tariff is added to the tariff electricity of each tariff as the new tariff electricity. One tariff corresponds to at least one time period. Save all the new rate electricity and the rates corresponding to the new rate electricity, where the rate electricity corresponds to the rates one by one; When the updated correspondence between the rate and the time period is received, the current rate electricity is determined according to the correspondence between the current rate and the time period, and the current rate electricity and the current rate are saved, all historical electricity is cleared, and the updated correspondence between the rate and the time period is used as the current correspondence between the rate and the time period.
2. The method for storing electric quantity according to claim 1, characterized in that: Real-time monitoring of power changes, before determining the current time period when power changes, also includes: A day is divided into preset time periods. In the correspondence between rates and time periods, each time period corresponds to only one rate.
3. The method for storing electric quantity according to claim 1, characterized in that: The electric meter further comprises a first storage space and a second storage space having the same number as the time periods, and the first storage space and the second storage space correspond to the time periods one by one; Before adding the changed power to the historical power of the current time period as the new historical power, the following is also included: After the electric meter is powered on, synchronizing the historical electric quantity in the second storage space to the first storage space; The first storage space erases data after power failure, and the second storage space does not erase data after power failure.
4. The method for storing electric quantity according to claim 3, characterized in that: Monitor the changes in power in real time and determine the current time period when the power changes, including: The generated energy pulses are monitored in real time, and the current time period is determined when the energy pulses are detected.
5. The method for storing electric quantity according to claim 4, characterized in that: Add the changed power and the historical power corresponding to the current time period as the new historical power, including: When the energy pulse is detected, the electric energy generated by the energy pulse is used as the changed electric quantity; The changed electric quantity is accumulated with the historical electric quantity in the first storage space.
6. The method for storing electric quantity according to claim 3, characterized in that: According to the correspondence between the current tariff and the time period, the sum of the historical electricity of all time periods corresponding to each tariff is determined according to the preset frequency and used as the tariff electricity, including: Acquire the historical power in the first storage space according to a preset frequency; Determine whether the historical power in the first storage space currently obtained is the same as the historical power in the first storage space obtained last time; If they are not the same, using the historical power in the first storage space to update the power in the second storage space; For any rate, determine all time periods corresponding to the rate according to the correspondence between the current rate and the time period; Determine all first storage spaces corresponding to all time periods; The sum of the historical electricity in all the first storage spaces is determined and used as the rate electricity.
7. The method for storing electric quantity according to any one of claims 1 to 6, characterized in that: Also includes: Sending all the rate electricity and the rates corresponding to the rate electricity to the server so that the server can calculate the electricity fee; The electricity fee is the product of the rate electricity and the rate corresponding to the rate electricity.
8. An electric power storage system, characterized in that: include: A change monitoring unit is used to monitor the change of power in real time and determine the current time period when the power changes; An accumulation unit, used to add the changed power and the historical power of the current time period as a new historical power, wherein the historical power is the sum of all power in the same time period as the current time period before the current date; An electricity determination unit, configured to determine the sum of historical electricity of all time periods corresponding to each rate according to a preset frequency based on the correspondence between the current rate and the time period, and add the sum of historical electricity of all time periods corresponding to each rate to the rate electricity of each rate as a new rate electricity, wherein one rate corresponds to at least one time period; A storage unit, used to store all the new rate electricity and the rates corresponding to the new rate electricity, wherein the rate electricity corresponds to the rates one by one; The updating unit is used to determine the current rate electricity according to the corresponding relationship between the current rate and the time period when receiving the updated correspondence between the rate and the time period, and save the current rate electricity and the current rate, clear all historical electricity, and use the updated correspondence between the rate and the time period as the correspondence between the current rate and the time period.
9. An electric power storage device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the method for storing electric quantity as claimed in any one of claims 1 to 7 when executing the computer program.
10. An electric meter, characterized in that: A storage device for electric quantity comprising the electric quantity as claimed in claim 9.
