Electricity quantity recording method of electric energy meter, electric energy meter and readable storage medium
By judging the current time and preset rules in the electric energy meter, the method of recording electricity consumption information is determined, which solves the problem of large memory space occupied by electric energy meter information recording, and achieves the effect of saving memory space and reducing costs.
Patent Information
- Application Number
- CN202110908157.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-09
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2041-08-09
AI Technical Summary
When recording electricity consumption information, the power meter occupies a large memory space, resulting in an increase in memory cost.
By judging the current time and preset rules, decide whether to record power consumption information, and record the load's power consumption increment when the rules are not met, instead of the cumulative total, thereby optimizing the use of memory.
This effectively saves memory space, reduces memory costs, and at the same time ensures the integrity and comprehensiveness of the record of power consumption information.
Smart Images

Figure CN113777398B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data recording, and in particular to an electric quantity recording method of an electric energy meter, an electric energy meter and a readable storage medium. Background Art
[0002] When the electric energy meter records electric energy data, usually, the recording time and the recording content are recorded in the memory at regular intervals. The recording content is generally the cumulative total electricity consumption at the current time, and the cumulative total electricity consumption at least includes the cumulative total value of positive active electricity, the cumulative total value of reverse active electricity, the cumulative total value of positive reactive electricity and the cumulative total value of reverse reactive electricity. If this recording method is used, each record information will occupy a larger memory space, so the total number of information recorded in a single memory is small, which increases the cost of the memory. Summary of the invention
[0003] The present invention provides an electric energy meter electric energy recording method, an electric energy meter and a readable storage medium, aiming to solve the technical problem that a large storage space is occupied during the information recording process of the electric energy meter.
[0004] To achieve the above object, the present invention provides a method for recording electric quantity of an electric energy meter, the method comprising the following steps:
[0005] Determine whether to record electricity usage information according to the current time;
[0006] If the electricity usage information is recorded, determining whether the current record complies with the first preset rule;
[0007] If the current record does not comply with the first preset rule, the power consumption increment of the load within the first time period is calculated and the power consumption increment is recorded.
[0008] Optionally, the time difference between the time node of the current time and the time node of the power-on time of the electric energy meter is calculated;
[0009] Whether to record the electricity usage information is determined based on a determination result of whether the time difference is an integer multiple of the first time.
[0010] Optionally, determine whether this record is the first record of the day;
[0011] If the current record is the first record of the day, then whether the current record complies with the first preset rule is determined based on the first record of the day.
[0012] Optionally, if this record is the first record after the electric energy meter is powered on, the value of the day counter and the value of the interval counter are reset to zero, and it is determined that this record is the first record of the day.
[0013] Optionally, if this record is not the first record after the electric energy meter is powered on, the value of the interval counter is increased by one, and it is determined whether the value on the interval counter is greater than the first value;
[0014] If the value is greater than the first value, the value of the interval counter is reset to zero, the value of the day counter is increased by one, and the current record is determined to be the first record of the day;
[0015] If the value is less than or equal to the first value, it is determined that the current record is not the first record of the day.
[0016] Optionally, the current time, the cumulative total value of the forward active power, the cumulative total value of the reverse active power, the cumulative total value of the forward reactive power and the cumulative total value of the reverse reactive power are recorded in sequence.
[0017] Optionally, the positive active power increment value, the negative active power increment value, the positive reactive power increment value and the negative reactive power increment value are recorded in sequence.
[0018] Optionally, if the current record complies with the first preset rule, the current accumulated total power consumption of the load connected to the electric energy meter is obtained, and the current accumulated total power consumption is recorded.
[0019] To achieve the above objectives, the present application also proposes an electric energy meter, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements an electric energy recording method of the electric energy meter when executed by the processor.
[0020] To achieve the above-mentioned purpose, the present application also proposes a readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the electric energy meter's electric energy recording method is implemented.
[0021] In the technical solution of the present invention, if the electricity consumption information is recorded, it is determined whether the current record complies with the first preset rule; if the current record complies with the first preset rule, the current cumulative total electricity consumption of the load connected to the electric energy meter is obtained, and the current cumulative total electricity consumption is recorded; if the current record does not comply with the first preset rule, the electricity consumption increment of the load within the first time period is calculated and the electricity consumption increment is recorded. By determining whether the recording of the electricity consumption information each time complies with the first preset rule, the recording method of the electricity consumption information is determined, thereby adopting two different methods to record the electricity consumption information. This avoids the problem that the electric energy meter in the prior art has a single recording method and cannot select the optimal storage method. The method provided by the present invention can not only ensure the integrity and comprehensiveness of the information recording, but also solve the problem that a large amount of memory space is occupied during the information recording process of the electric energy meter. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, 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 the structures shown in these drawings without paying creative work.
[0023] Figure 1 A schematic diagram of the module structure of a method for recording electric quantity of an electric energy meter according to an embodiment of the present invention;
[0024] Figure 2 A flow chart of a method for recording electric quantity of an electric energy meter according to an embodiment of the present invention;
[0025] Figure 3 An example diagram of a method for recording electric quantity of an electric energy meter according to an embodiment of the present invention;
[0026] Figure 4 FIG. 4 is an example diagram of a method for recording electric quantity of an electric energy meter according to another embodiment of the present invention. DETAILED DESCRIPTION
[0027] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0028] Please refer to Figure 1 , Figure 1 Schematic diagram of the hardware structure of the electric energy meter provided in each embodiment of the present invention. The electric energy meter includes an execution module 01, a memory 02, a processor 03 and other components. Those skilled in the art can understand that Figure 1 The electric energy meter shown in the figure may also include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. The processor 03 is connected to the memory 02 and the execution module 01 respectively, and the memory 02 stores a computer program, which is executed by the processor 03 at the same time.
[0029] The execution module 01 can obtain the electricity usage information of the electric energy meter, store the electricity usage information of the electric energy meter in different ways, and collect the above information and send it to the processor 03.
[0030] The memory 02 can be used to store software programs and various data. The memory 02 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data or information created according to the use of the terminal, etc. In addition, the memory 02 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0031] Processor 03 is the control center of the electric energy meter. It uses various interfaces and lines to connect various parts of the entire terminal. By running or executing software programs and / or modules stored in memory 02 and calling data stored in memory 02, it executes various functions of the terminal and processes data, thereby monitoring the vehicle as a whole. Processor 03 may include one or more processing units; preferably, processor 03 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into processor 03.
[0032] Those skilled in the art will understand that Figure 1 The electric energy meter structure shown in the figure does not constitute a limitation on the electric energy meter, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0033] Based on the above hardware structure, various embodiments of the method of the present invention are proposed.
[0034] Reference Figure 2 In a first embodiment of the electric energy meter electric energy recording method of the present invention, the electric energy meter electric energy recording method comprises:
[0035] Step S100, determining whether to record power usage information according to the current time;
[0036] At present, the use of electric energy meters is widespread in the power system. In the case of low voltage and low current in a home environment, the electric energy meter can be directly connected to the circuit to measure the household electricity consumption information; in the case of high voltage or high current, the electric energy meter cannot be directly connected to the circuit and needs to be used in conjunction with a voltage transformer and a current transformer. In either case, since the power consumption varies with time, after measuring the power consumption information, it is necessary to record the power consumption information measured by the electric energy meter. In general, the electric energy meter includes components such as a microprocessor, a measurement module, and a memory; wherein the microprocessor is used to generate power consumption information recording instructions according to time and user preset rules to control the electric energy meter to record the power consumption information, and the recording method can be a table record or a bar chart or a curve chart; the measurement module is used to measure the power consumption of the load electrically connected to the electric energy meter according to the power consumption information instruction, and the memory is used to record the power consumption information measured by the measurement module.
[0037] In some embodiments, using the electric energy meter to record the load curve is a common way of recording electric energy meters. To realize the function of recording the load curve of the electric energy meter, a memory is needed. The method of recording the load curve is generally to record the recording time and the amount of electricity, record a record information at a certain time, and the content of each record information includes the current time and the current total amount of electricity, and store each record information in the memory in turn. The memory can be EEPROM (Electrically Erasable Programmable Read-Only Memory), FLASH (flash memory), etc. Among them, the amount of data recorded by the EEPROM memory is small, and although the FLASH memory has a large amount of data, it is expensive. Therefore, in general, the memory space occupied by recording the electricity information in the above manner is too large, and the recording cost is high. In this embodiment, the recording of the electricity information is regular. Before recording the electricity information, it is necessary to judge the current time first, and judge whether to record the electricity information according to the current time. In this way, the recording of the electricity information will meet the user's need to understand the electricity information and will not cause confusion. Among them, the recording of electricity usage information can be periodic, and the recording interval can be 1, 5, 10, 15, 30, or 60 minutes; the recording of electricity usage information can also be non-periodic, but in accordance with the pre-set recording rules, and users can make any adjustments according to their needs.
[0038] Step S200, if the electricity usage information is recorded, determine whether the electricity usage information recorded this time complies with the first preset rule;
[0039] In this embodiment, after determining whether to record the electricity usage information. If it is determined that the electricity usage information needs to be recorded at the current time, it is continued to determine whether the current record complies with the first preset rule; if it is determined that the electricity usage information does not need to be recorded at the current time, no operation is required. Among them, the first preset rule is a rule pre-set by technical personnel in this field according to needs, which is used to distinguish the recording method of electricity usage information. The first preset rule can be that the total electricity consumption is higher than a preset value, the electricity consumption increment within a period of time is higher than a preset value, or the current time is in a special time period.
[0040] Step S300: If the current record does not comply with the first preset rule, the power consumption increment of the load within the first time period is calculated and the power consumption increment is recorded.
[0041] In this embodiment, if the current record meets the first preset rule, the current cumulative total power consumption of the load connected to the electric energy meter is obtained, and the current cumulative total power consumption is recorded. The first preset rule is used to distinguish the way of recording power consumption information. In some embodiments, if the current record meets the first preset rule, the cumulative total power consumption of the load connected to the electric energy meter is recorded, that is, the displayed value of the electric energy meter is read; if the current record does not meet the first preset rule, the power consumption increment of the load connected to the electric energy meter within the first time length is recorded, that is, the difference between the current electric energy meter display value and the electric energy meter display value before the first time length is calculated, and the difference is used as the power consumption increment value within the first time length and recorded. Among them, the first time length is adjusted by a technician in this field according to a preset rule, and can be 1, 5, 10, 15, 30, 60 minutes or any other time length. In addition, the recording method can be to record the power consumption information in plain text in the memory, or to encrypt the power consumption information first, and then store the encrypted power consumption information in the memory, and then decrypt and read the power consumption information when the user needs to read and apply the power consumption information.
[0042] In this solution, the memory includes a first storage unit and a second storage unit. The first storage unit is used to receive and store incremental power consumption information, and the second storage unit is used to receive and store total power consumption information.
[0043] By recording electricity usage information in this way of distinguishing electricity usage information by the first preset rule, the recording of electricity usage information can be flexibly adjusted when facing different customer needs, which can not only meet multiple customer needs, but also save storage space in the recording process. Encrypting the electricity usage information can protect the security of the electricity usage information.
[0044] In one embodiment, the step of determining whether to record electricity usage information according to the current time includes:
[0045] Calculate the time difference between the current time node and the time node of the power-on time of the electric energy meter;
[0046] Whether to record the electricity usage information is determined based on a determination result of whether the time difference is an integer multiple of the first time.
[0047] In this embodiment, the memory includes an electric energy meter clock and a first judgment unit. The electric energy meter clock can be a soft clock or a hard clock. The electric energy meter clock is used to record the time node of the current time and the time node of the electric energy meter power-on time. The first judgment unit determines whether to record the electricity consumption information based on the time difference between the time node of the current time and the time node of the electric energy meter power-on time. After the electric energy meter is powered on and the user sets the first duration, the electric energy meter needs to obtain the time difference between the current time point and the time point when the electric energy meter is powered on in real time, and convert the time difference into a time unit that is unified with the first duration. Then, it is determined whether the time difference is an integer multiple of the first duration. If the time difference is an integer multiple of the first duration, the current moment electricity consumption information is recorded. If the time difference is not an integer multiple of the first duration, the current moment electricity consumption information is not recorded. For example, if the power-on time is 8:00 on any day, and the current time is 10:15 on the same day, if the first duration is 15 minutes, then the time difference between the current time and the power-on time of the electric energy meter is 135 minutes, which is exactly an integer multiple of the first duration, and the current time electricity consumption information is recorded. By comparing the duration difference with the first duration, the electricity consumption information can be evenly recorded according to the time interval set by the user, so that the user can obtain complete and continuous electricity consumption information.
[0048] In one embodiment, determining whether the current record is the first record of the day;
[0049] If the current record is the first record of the day, then whether the current record complies with the first preset rule is determined based on the first record of the day.
[0050] In this embodiment, the first preset rule is that this record is the first record of the day, so judging whether this record meets the first preset rule is to judge whether this record is the first record of the day. That is: if this record is the first record of the day, the current cumulative total power consumption of the load connected to the electric energy meter is obtained, and the current cumulative total power consumption is recorded; if this record is not the first record of the day, the power consumption increment of the load within the first time period is calculated and the power consumption increment is recorded. That is, the current cumulative total power consumption of the load connected to the electric energy meter is recorded only for the first record of each day, and the power consumption increment is recorded for other records. This recording method can also completely and clearly obtain the usage of the electric energy meter.
[0051] In some embodiments, when recording the total accumulated power consumption, each record information includes at least the recording time (5 bytes), the forward active power (4 bytes), the reverse active power (4 bytes), the forward reactive power (4 bytes) and the reverse reactive power (4 bytes), and each record occupies 21 bytes of storage space in the memory; when recording the power consumption increment, the recording time may not be recorded, and the forward active power (4 bytes), the reverse active power (4 bytes), the forward reactive power (4 bytes) and the reverse reactive power (4 bytes) are replaced with the corresponding forward active power increment (2 bytes), the reverse active power increment (2 bytes), the forward reactive power increment (2 bytes) and the reverse reactive power increment (2 bytes); at this time, each record information occupies 8 bytes of storage space in the memory. In this way, by replacing the total accumulated power consumption with the power consumption increment, each power consumption information can save 13 bytes of storage space. Therefore, by applying this recording method, a large amount of storage space can be saved while ensuring that the electricity consumption information is recorded clearly and completely. The number of records that can be stored in each memory is greatly increased, saving a lot of recording costs.
[0052] In one embodiment, the electric energy meter includes a day counter and an interval counter, the first record of the day includes the first record after the electric energy meter is powered on, and after the step of determining whether the current record is the first record of the day, the following steps are included:
[0053] If this record is the first record after the electric energy meter is powered on, the value of the day counter and the value of the interval counter are reset to zero, and it is determined that this record is the first record of the day.
[0054] In this embodiment, the memory also includes a second judgment unit. After the first judgment unit judges the recorded electricity information, the second judgment unit is used to judge whether the total electricity consumption or the incremental electricity consumption is recorded according to whether the current record is the first record of the day. Among them, the second judgment unit includes a first judgment subunit and a second judgment subunit. The first judgment subunit is used to judge whether the current record is the first record after the electric energy meter is powered on; the second judgment subunit is used to judge whether the current record is the first record of the day other than the first record after the electric energy meter is powered on. It is worth noting that the electric energy meter's judgment of the day is not based on the natural day or the time of any longitude and latitude, but on the power-on time of the electric energy meter, that is, the first 24 hours after the electric energy meter is powered on is counted as the first day, the 25th to 48th hours are counted as the second day, and so on. In addition, a day counter and an interval counter are installed on the electric energy meter, and the operation of the day counter and the interval counter is controlled by the electric energy meter. Based on this, in this scheme, the first record of the day is divided into two situations. The first situation is that this record is the first record after the electric energy meter is powered on, and the second situation is that the time difference between this record and the first record of the electric energy meter is an integer multiple of 24 hours. This scheme judges these two situations separately; first, it judges whether this record is the first record after the electric energy meter is powered on. If this record is the first record after the electric energy meter is powered on, it is judged that this record is the first record of the day, and the current cumulative total power consumption of the load connected to the electric energy meter is recorded, and the values of the day counter and the interval counter are reset to zero. If it is judged that this record is not the first record after the electric energy meter is powered on, it continues to judge whether the time difference between this record and the first record of the electric energy meter is an integer multiple of 24 hours. Resetting the values of the day counter and the interval counter to zero means starting a new round of recording for the electric energy meter. Under normal circumstances, the interval counter and the day counter will automatically reset to zero before the electric energy meter is powered on, reducing the interference of previous records on the current round of recording.
[0055] In one embodiment, after the step of determining whether the current record is the first record after the electric energy meter is powered on, the method further includes:
[0056] If the current record is not the first record after the electric energy meter is powered on, the value of the interval counter is increased by one, and it is determined whether the value on the interval counter is greater than the first value;
[0057] If the value is greater than the first value, the value of the interval counter is reset to zero, the value of the day counter is increased by one, and the current record is determined to be the first record of the day;
[0058] If the value is less than or equal to the first value, it is determined that the current record is not the first record of the day.
[0059] In this embodiment, if this record is not the first record after the electric energy meter is powered on, it is further determined whether this record is the first record of the day other than the first day. Since it is known that this record is not the first record after the electric energy meter is powered on, the interval counter will be adjusted before each record, that is, the value of the interval counter is increased by one, and each increase of the interval counter means that the electric energy meter performs a record. After the increase of one, it is determined whether this record is the first record of the day other than the first day according to the value on the interval counter. Among them, the first value is a value pre-set by a technician in this field according to specific needs. In one embodiment, the first duration is 15 minutes and the first value is 96. Therefore, the scheme in this embodiment is: if this record is not the first record after the electric energy meter is powered on, the interval counter is increased by one, and then it is determined whether the value of the interval counter is greater than 96. If the value of the interval counter is greater than 96, the value of the interval counter is reset to zero, the value of the day counter is increased by one, and it is considered that this record is the first record of the day. Since the first recording interval every two days is 24 hours, which is 96 times of 15 minutes, and the electricity meter records electricity consumption information once every 15 minutes, the interval counter will be increased by one before each recording. If the initial value of the interval counter is 0, the 97th record is exactly 24 hours away from the first record.
[0060] By recording the electricity consumption information of the electric energy meter according to this method, the first recording time of each day can be accurately calculated, thereby ensuring that the recording process of the electricity consumption information is accurate and complete.
[0061] Reference Figure 3 In one embodiment, the step of recording the current accumulated total power consumption includes:
[0062] The current time, the total accumulated value of the forward active energy, the total accumulated value of the reverse active energy, the total accumulated value of the forward reactive energy and the total accumulated value of the reverse reactive energy are recorded in sequence.
[0063] Reference Figure 4 In one embodiment, the step of recording the power consumption increment includes:
[0064] The positive active power increment value, the reverse active power increment value, the positive reactive power increment value and the reverse reactive power increment value are recorded in sequence.
[0065] In this embodiment, regardless of whether the value is a cumulative total or an incremental value, the values of the forward active power and the reverse active power are both positive values, but the current directions are opposite, and both the forward active power and the reverse active power do work on the load connected to the electric energy meter; the values of the forward reactive power and the reverse reactive power are also positive values, and the current directions are opposite, and although the forward reactive power and the reverse reactive power do not do work on the load connected to the electric energy meter, they also consume electric energy, so they will also be recorded by the electric energy meter. After the data is recorded in the memory, it can be exported in a form that is convenient for users to consult. The export method can be to export through a preset data recording table, and the electricity consumption information is automatically generated in the preset data recording table according to a pre-written program. It can also be exported in the form of text, and it can also be exported in the form of a curve coordinate graph. In the curve coordinate graph, the horizontal axis can be time and the vertical axis can be electricity consumption.
[0066] Since the value of the power consumption increment will not be too large, only two bytes of storage space need to be reserved for each record. Because the recording interval of each record is equal, there is no need to record the current time. Therefore, the storage space required to record the power consumption increment is much smaller than the storage space required to record the total power consumption. Recording power consumption in this way can save a lot of storage space.
[0067] In one embodiment, after the step of determining whether the current record complies with the first preset rule, the method further includes:
[0068] If the current record meets the first preset rule, the current accumulated total power consumption of the load connected to the electric energy meter is obtained, and the current accumulated total power consumption is recorded.
[0069] In this embodiment, before each recording, it is necessary to determine whether the remaining storage space can support the recording of power usage information once; if the remaining storage space can support the recording of power usage information once, the power usage information is recorded; if the remaining storage space cannot support the recording of power usage information once, the subsequent recording steps are stopped and the user is prompted to replace the memory. In this way, data confusion and data loss caused by insufficient memory space can be avoided.
[0070] In addition, the electric energy meter also includes a display module, which can be a display screen. The display screen can at least be used to display the current time, and the current forward active power, reverse active power, forward reactive power, and reverse reactive power when the electric energy meter is powered on. The display screen can also display the power consumption increment within a user-defined time. Through the electric energy meter display module, users can understand the power consumption of the load connected to the current electric energy meter at any time, as well as the power consumption of the load within a certain time.
[0071] The present invention further provides an electric energy meter, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is used to execute the methods described in various embodiments of the present invention.
[0072] The present invention also provides a computer-readable storage medium on which a computer program is stored. The computer-readable storage medium may be Figure 1 The memory may also be at least one of a ROM (Read-Only Memory) / RAM (Random Access Memory), a magnetic disk, and an optical disk. The computer-readable storage medium includes a number of instructions for enabling a terminal device with a processor (which may be a mobile phone, a computer, a server, a terminal, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0073] In the present invention, the terms "first", "second", "third", "fourth" and "fifth" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0074] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0075] Although the embodiments of the present invention have been shown and described above, the scope of protection of the present invention is not limited thereto. It is understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art can change, modify and replace the above embodiments within the scope of the present invention, and these changes, modifications and replacements should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.
Claims
1. A method for recording electric quantity of an electric energy meter, characterized in that: The method comprises the following steps: Determine whether to record electricity usage information according to the current time; If the electricity usage information is recorded, determining whether the electricity usage information recorded this time complies with the first preset rule; If the current record does not meet the first preset rule, the power consumption increment of the load connected to the electric energy meter within the first time period is calculated, and the power consumption increment is recorded; The step of determining whether the current record complies with the first preset rule comprises: Determine whether this record is the first record of the day; If the current record is the first record of the day, judging whether the current record meets the first preset rule according to the first record of the day; The electric energy meter includes a day counter and an interval counter, the first record of the day includes the first record after the electric energy meter is powered on, and the step of determining whether the current record is the first record of the day includes: If this record is the first record after the electric energy meter is powered on, the value of the day counter and the value of the interval counter are reset to zero, and it is determined that this record is the first record of the day; If the current record is not the first record after the electric energy meter is powered on, the value of the interval counter is increased by one, and it is determined whether the value on the interval counter is greater than the first value; If the value is greater than the first value, the value of the interval counter is reset to zero, the value of the day counter is increased by one, and the current record is determined to be the first record of the day; If the value is less than or equal to the first value, it is determined that the current record is not the first record of the day.
2. The method for recording electric quantity of an electric energy meter according to claim 1, characterized in that: The step of determining whether to record electricity usage information according to the current time includes: Calculate the time difference between the current time node and the time node of the power-on time of the electric energy meter; Whether to record the electricity usage information is determined based on a determination result of whether the time difference is an integer multiple of the first time.
3. The method for recording electric quantity of an electric energy meter according to claim 1, characterized in that: After the step of determining whether the current record conforms to the first preset rule, the method further includes: If the current record meets the first preset rule, the current accumulated total power consumption of the load connected to the electric energy meter is obtained, and the current accumulated total power consumption is recorded.
4. The method for recording electric quantity of an electric energy meter according to claim 3, characterized in that: The step of recording the current accumulated total power consumption comprises: The current time, the total accumulated value of the forward active energy, the total accumulated value of the reverse active energy, the total accumulated value of the forward reactive energy and the total accumulated value of the reverse reactive energy are recorded in sequence.
5. The method for recording electric quantity of an electric energy meter according to claim 1, characterized in that: The step of recording the power consumption increment comprises: The positive active power increment value, the reverse active power increment value, the positive reactive power increment value and the reverse reactive power increment value are recorded in sequence.
6. An electric energy meter, characterized in that: The invention comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps of the method for recording electric quantity of an electric energy meter as claimed in any one of claims 1 to 5 are implemented.
7. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for recording electric quantity of an electric energy meter as claimed in any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Compressed storage method and system applicable for load records of electric energy meter or concentrator
CN105718218A
Electric energy meter and data storage method for load curve of electric energy meter
CN106708440A