A data power-on synchronization method and device, a storage medium and an electronic device
By using a segmented dual-core data power-on synchronization process, data synchronization is achieved by utilizing the time point relationship of the electricity meter. This solves the problem of low efficiency in traditional methods, realizes efficient and accurate synchronization of electricity meter power-on data, and ensures the consistency and accuracy of electricity meter data in the event of a power outage.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ZHEJIANG CHINT INSTR & METER
- Filing Date
- 2023-04-18
- Publication Date
- 2026-06-05
Smart Images

Figure CN116471247B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electronic energy meter technology, specifically to a data power-on synchronization method, device, storage medium, and electronic device. Background Technology
[0002] For dual-cell energy meters, traditional energy meters use a trigger-based task method upon power-on, triggering minute freezes, billing day freezes, and switchover freezes separately. The delay in task processing makes it difficult to achieve data synchronization between the two cells upon power-on. Existing dual-cell meter technology uses a second-by-second energy consumption method, requiring comparison between the second-by-second energy consumption and a preset timetable. For dual-cell power-on data synchronization, multiple comparisons are required, which is inefficient. Therefore, a data synchronization method specifically for dual-cell energy meters should be sought to address this issue. Summary of the Invention
[0003] In view of this, embodiments of the present invention provide a data power-on synchronization method, apparatus, storage medium, and electronic device to solve the problem of low efficiency caused by the need for multiple comparisons when synchronizing dual-core power-on data in an energy meter.
[0004] According to a first aspect, embodiments of the present invention provide a data power-on synchronization method applied to an electricity meter, the electricity meter including a metering core and a management core, the method comprising the following steps:
[0005] Acquire the energy storage time point after the energy meter is powered on, the power failure time point of the metering core, and the power-on time point of the metering core;
[0006] Determine whether the energy synchronization storage time point is less than the metering core power-off time point and less than the metering core power-on time point;
[0007] If so, data synchronization processing is performed before and during the power outage based on the power energy synchronization storage time point and the metering chip power-on time point;
[0008] Otherwise, the time interval is determined based on the relationship between the time point of energy synchronization storage and the time point of power-on of the metering chip for data synchronization processing.
[0009] Optionally, the data synchronization processing before and during the power outage based on the energy synchronization storage time point and the metering chip power-on time point includes:
[0010] Data synchronization processing is performed before power failure based on the first time interval from the power energy synchronization storage time point to the preset first refreezing time point. The first refreezing time point is determined based on the metering core power failure time point and the metering core power-on time point.
[0011] Data synchronization processing during the power outage period is performed based on the second time interval from the first refreezing time point to the power-on time point of the metering core.
[0012] Optionally, the step of performing pre-power-out data synchronization processing based on the first time interval from the power energy synchronization storage time point to the pre-set first refreezing time point includes:
[0013] Determine whether the time interval between the power-off time of the metering core and the power-on time of the metering core is greater than a first preset time or whether the first preset time point exists within the time interval.
[0014] If the time interval is longer than the first preset time or there is a first preset time point within the time interval, then the first refreezing time point is determined according to the power failure time point of the metering core and the first preset time, and active and reactive power are synchronized within the time interval from the power synchronization storage time point to the first refreezing time point.
[0015] If the time interval is less than or equal to the first preset time or there is no first preset time point within the time interval, then the first refreezing time point is determined based on the power failure time point of the metering core and the second preset time, and active power synchronization is performed within the time interval from the power synchronization storage time point to the first refreezing time point.
[0016] Optionally, the synchronization of active and reactive power during the time interval from the energy synchronization storage time point to the preset first refreezing time point includes:
[0017] The first rate switching time is obtained based on the time interval from the energy synchronization and storage time point to the first refreezing time point;
[0018] Determine whether the first rate switching time is greater than or equal to the first refreeze time point;
[0019] If so, active and reactive power synchronization shall be carried out during the time interval from the power energy synchronization and storage time point to the first refreezing time point;
[0020] Otherwise, the first synchronization time point is determined based on the power failure time point of the metering core and the second preset time. Active energy is synchronized within the time interval from the power failure time point of the metering core to the first synchronization time point, and reactive energy is synchronized within the time interval from the first synchronization time point to the first refreezing time point.
[0021] Optionally, the step of performing data synchronization processing before the power outage based on the first time interval from the energy synchronization storage time point to the first refreezing time point further includes:
[0022] Obtain the frozen data of the management chip;
[0023] Refreeze the frozen data in the management chip;
[0024] The power data of the management core is updated based on the data after the refreezing, and the maximum demand and voltage qualification rate are calculated.
[0025] The system recovers the low-power event states of the management chip and records of events that occurred before power failure.
[0026] Optionally, the step of performing data synchronization processing during the power outage based on the second time interval from the first refreezing time point to the power-on time point of the metering core includes:
[0027] The earliest time point within the second time interval that needs to be frozen is used as the second refreeze time point;
[0028] The second synchronization time point is determined based on the second refreezing time point and the preset time.
[0029] Between the first refreezing time point and the second synchronization time point, the frozen data of the management core is refrozen;
[0030] Update the power data of the management chip and calculate the maximum demand and voltage qualification rate;
[0031] During the time interval from the second synchronization time point to the power-on time point of the metering core, the refreezing and settlement processes are cyclically operated until the refreezing and settlement processes within the second time interval are completed.
[0032] Optionally, the step of determining the time interval for data synchronization based on the relationship between the energy synchronization storage time point and the metering chip power-on time point includes:
[0033] Determine whether the energy synchronization storage time point is greater than or equal to the metering core power-on time point;
[0034] If the energy synchronization storage time point is greater than or equal to the metering core power-on time point, determine whether the energy synchronization storage time point is less than the current time point;
[0035] If the energy synchronization and storage time point is less than the current time point, data synchronization processing will be carried out in the time interval divided by the smaller value between the second rate switching time point and the minimum freeze time point determined by the energy synchronization and storage time point.
[0036] If the energy synchronization storage time is less than the metering core power-on time, data synchronization processing is performed before and during the power outage based on the energy synchronization storage time and the metering core power-on time.
[0037] Optionally, the data synchronization process, which divides the time interval based on the smaller value between the second rate switching time point determined by the power energy synchronization storage time point and the minimum freeze time point, includes:
[0038] The division time point is determined based on the smaller value between the second rate switching time point determined by the power energy synchronization storage time point and the minimum freeze time point;
[0039] The third synchronization time point is determined based on the defined time points and the preset time.
[0040] During the time interval from the first power synchronization storage point to the third synchronization point, power synchronization and data freezing are performed, the power data of the management chip is updated, and the maximum demand and voltage qualification rate are calculated.
[0041] Within the time interval from the third synchronization time point to the current time point, the refreezing and settlement processes are cyclically performed until the refreezing and settlement processes within the time interval from the power energy synchronization storage time point to the current time point are completed.
[0042] According to a second aspect, embodiments of the present invention provide a data power-on synchronization device applied to an electricity meter, the device comprising:
[0043] The acquisition module acquires the energy synchronization and storage time point after the energy meter is powered on, the power failure time point of the metering core, the power-on time point of the metering core, and the current time point;
[0044] The judgment module is used to determine whether the energy synchronization storage time point is less than the power-off time point of the metering core and less than the power-on time point of the metering core.
[0045] The first processing module is used to perform data synchronization processing before and during power outage based on the power energy synchronization storage time point and the metering core power-on time point.
[0046] The second processing module is used to determine the time interval for data synchronization processing based on the relationship between the energy synchronization storage time point and the metering core power-on time point.
[0047] According to a third aspect, embodiments of the present invention provide an electronic device, including: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the data power-on synchronization method described in the first aspect or any embodiment of the first aspect.
[0048] According to a fourth aspect, embodiments of the present invention provide a computer-readable storage medium storing computer instructions for causing the computer to perform the data power-on synchronization method described in the first aspect or any embodiment of the first aspect.
[0049] Compared with the closest existing technology, the technical solution provided by the present invention has the following beneficial effects:
[0050] (1) The data power-on synchronization method, device, storage medium and electronic device provided in the embodiments of the present invention perform data synchronization processing before and during power failure based on the power energy synchronization storage time point and the metering core power-on time point, or determine the time interval for data synchronization processing based on the size relationship between the power energy synchronization storage time point and the metering core power-on time point. That is, a segmented dual-core data power-on synchronization process is adopted. After power failure and power restoration, the frozen data at the same time point is consistent, and the power energy data of the management core is consistent with the power energy data of the metering core, which ensures the consistency of power-on data synchronization, improves the efficiency and accuracy of power-on data synchronization, and solves the problem that the power meter needs to compare multiple times when synchronizing dual-core power-on data, which is inefficient.
[0051] (2) The data power-on synchronization method provided in this embodiment of the invention determines the first refreezing time based on the power-off time and the power-on time of the metering core, and divides the data synchronization interval into the first time interval before power-off and the second time interval during power-off based on the first refreezing time. This is more conducive to processing the data synchronization during power-off in each time interval, ensuring the consistency of power-on data synchronization, and improving the efficiency and accuracy of power-on data synchronization.
[0052] (3) The data power-on synchronization method provided in this embodiment of the invention divides the time interval for power synchronization before power failure based on the relationship between the first rate switching time and the first synchronization time point. Active and reactive power are synchronized in the corresponding time intervals, ensuring the consistency of active and reactive power data synchronization between the power meter management core and the metering core before power failure.
[0053] (4) The data power-on synchronization method provided in this embodiment of the invention takes into account the power-on synchronization of rate energy, minute freeze, daily freeze, settlement day freeze and switching freeze data, ensuring the consistency of energy data and frozen data of the energy meter management core and metering core before power failure, and ending and re-judging the event status of the energy meter before power failure, thereby improving the efficiency and accuracy of power-on data synchronization.
[0054] (5) The data power-on synchronization method provided in this embodiment of the invention divides the second time interval into the time interval from the first refreezing time point to the second synchronization time point and the time interval from the synchronization time point to the power-on time point of the metering core based on the second refreezing time point and the second synchronization time point. Freezing and settlement processing are performed respectively, and the operation is repeated to ensure the real-time performance and consistency of the metering core and management core data of the electricity meter, with high accuracy.
[0055] (6) The data power-on synchronization method provided in this embodiment of the invention divides the time interval based on the minimum value between the second rate switching time and the minimum freeze time point, and performs data synchronization processing in the corresponding time interval, thereby ensuring the real-time performance, consistency and accuracy of data synchronization between the energy meter management chip and the metering chip during power outage. Attached Figure Description
[0056] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0057] Figure 1 This is a flowchart of a data power-on synchronization method provided according to an embodiment of the present invention;
[0058] Figure 2 This is a flowchart of data synchronization when the management chip and the metering chip simultaneously experience a power outage, provided according to an embodiment of the present invention.
[0059] Figure 3 This is a flowchart of the synchronization of energy data of the energy meter before power failure within a first time interval according to an embodiment of the present invention;
[0060] Figure 4 This is a flowchart illustrating the synchronization of active and reactive power within the time interval from the power synchronization storage time point to the first refreezing time point, according to an embodiment of the present invention.
[0061] Figure 5 This is a flowchart of data synchronization during a power outage of the electricity meter within a second time interval, provided according to an embodiment of the present invention.
[0062] Figure 6 This is a flowchart of a data synchronization process based on the relationship between the energy synchronization storage time point and the metering chip power-on time point, according to an embodiment of the present invention;
[0063] Figure 7 This is a flowchart of data synchronization processing based on the smaller value of the second rate switching time point and the minimum freeze time point determined by the energy synchronization storage time point, according to an embodiment of the present invention.
[0064] Figure 8 This is a flowchart of a power meter data power-on synchronization process according to another embodiment of the present invention;
[0065] Figure 9A flowchart illustrating data synchronization after the simultaneous power outage of the energy meter management chip and metering chip, according to another embodiment of the present invention;
[0066] Figure 10 A flowchart illustrating the synchronization of energy data of an energy meter before a power outage, according to another embodiment of the present invention;
[0067] Figure 11 A data synchronization flowchart of the meter management chip losing power but the metering chip not losing power, according to another embodiment of the present invention;
[0068] Figure 12 This is a structural block diagram of a data power-on synchronization device provided according to an embodiment of the present invention;
[0069] Figure 13 This is a schematic diagram of the structure of a computer-readable storage medium provided according to an embodiment of the present invention;
[0070] Figure 14 This is a schematic diagram of the structure of an electronic device provided according to an embodiment of the present invention. Detailed Implementation
[0071] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0072] With the rapid development of IoT technology and the power industry, and the widespread adoption of energy conservation and emission reduction policies, dual-core energy meters, which can meet more functional needs and expandability, are increasingly used. Dual-core energy meters typically consist of two parts: a legal metering section and a management section. The metering core is the legal metering section, primarily responsible for basic metering, such as periodically storing basic energy data. The management core is the management section, primarily responsible for overall meter management, such as data freezing and event logging. Compared to traditional integrated energy meters, the management core needs to obtain basic metering data from the metering core. In the event of a power outage, the management core may fail to obtain data from the metering core in a timely manner during and after the outage. Therefore, efficient and accurate data synchronization upon power-on can effectively reduce the impact of power outages on data collection and electricity settlement, protecting the interests of both customers and power companies. However, for dual-core energy meters, the traditional trigger task method used for power-on—triggering minute-based freezes, settlement day freezes, and switchover freezes separately—can lead to delays in task processing, making it difficult to achieve true dual-core data synchronization upon power-on. Existing dual-cell meter technology uses a per-second power consumption method, which requires comparing the per-second power consumption with a preset time schedule. When synchronizing dual-cell data upon power-on, multiple comparisons are required, resulting in low efficiency. To address this issue, a data synchronization method for dual-cell energy meters should be sought.
[0073] This invention provides a data power-on synchronization method, the flowchart of which is shown below. Figure 1 As shown, when applied to an electricity meter, the following steps are included:
[0074] Step S101: Obtain the energy synchronization and storage time point T after the energy meter is powered on. back Metering core power failure time point T off0 Power-on time T of metering chip on0 After the electricity meter is powered on, the watchdog register is configured, the MCU I / O lines are configured, and the I / O lines for memory power supply, button detection, and meter cover detection are configured. The energy synchronization time point T stored in the memory is then obtained from the management chip. back Next, the time point at which the metering core loses power is obtained is the metering core power-off time point T. off0 The time point at which the metering core is powered on is the metering core power-on time point T. on0 .
[0075] Step S102: Determine the time point T for synchronous energy storage back Is it less than the power-off time T of the metering core? off0 And less than the power-on time T of the metering core on0 To determine the power failure status of the management and metering cores within the electricity meter, and thus how to perform power synchronization, it is necessary to determine the power synchronization storage time point T. back Metering core power failure time point T off0 Power-on time T of metering chipon0 The size relationship between them determines the specific interval for data synchronization.
[0076] Step S103: When the energy is synchronously stored at time point T back Less than the power-off time T of the metering core off0 And less than the power-on time T of the metering core on0 At that time, based on the time point T of the synchronized energy storage back Power-on time T of metering chip on0 Perform data synchronization processing before and during the power outage. Specifically, when T... back Less than T off0 And less than T on0 This indicates that the last power synchronization occurred before the metering core lost power. Therefore, it is necessary to perform power synchronization before the metering core lost power, as well as power synchronization during the metering core's power outage. Furthermore, since the power synchronization occurred before the metering core lost power, it indicates that a situation occurred where both the management core and the metering core lost power simultaneously, such as a power outage.
[0077] Step S104: When the energy is synchronously stored at time point T back Greater than or equal to the power failure time T of the metering core off0 or greater than or equal to the power-on time T of the metering core on0 At that time, based on the time point T of the synchronized energy storage back Power-on time T of metering chip on0 The size relationship determines the time interval for data synchronization; specifically, when T back Greater than or equal to T off0 or greater than or equal to T on0 If the power synchronization was performed during or after the metering core was powered off, it means that a situation occurred where the management core was powered off but the metering core was not, such as an upgrade. In this case, it is necessary to synchronize the power synchronization from the current time point to the current time point.
[0078] The data power-on synchronization method provided in this embodiment of the invention adopts a segmented dual-core data power-on synchronization process. After power failure and power-on, the frozen data is replenished at the same time point to ensure consistency. The energy data of the management core and the energy data of the metering core are consistent, which ensures the consistency of power-on data synchronization, improves the efficiency and accuracy of power-on data synchronization, and solves the problem of low efficiency when the energy meter needs to make multiple comparisons when synchronizing dual-core power-on data.
[0079] As an optional embodiment of the present invention, in step 103, the step of storing electrical energy synchronously at time point T... back Power-on time T of metering chip on0 The flowchart for data synchronization processing before and during power outages is as follows: Figure 2 As shown, it includes the following steps:
[0080] Step S201: Based on the energy synchronization and storage time point T back until the preset first refreezing time point T End1 The first time interval is used for data synchronization processing before the power outage, and the preset first refreezing time point T End1 Based on the power failure time T of the metering core off0 Power-on time T of metering chip on0 Specifically, after determining the first refreezing time, the validity of the first time interval is first checked. Validity refers to whether the time interval conforms to the time data format and time order rules. If it is invalid, the second time interval T is directly processed. End1 ~T on0 The judgment.
[0081] Step S202: Based on the first refreezing time point T End1 Power-on time T of metering core on0 The second time interval is used for data synchronization during the power outage; specifically, before performing data synchronization during the power outage, the validity of the second time interval is first determined. If valid, then the data synchronization during the second time interval T is performed. End1 ~T on0 Perform data synchronization processing during power outages; if invalid, do not proceed to the second time interval T. End1 ~T on0 Data synchronization during power outages continues until a valid time interval T is reached, at which point a second time interval T is initiated. End1 ~T on0 Data synchronization during power outages.
[0082] The method provided in this embodiment of the invention is based on the power-off time point T of the metering core. off0 Power-on time T of metering chip on0 Determine the first refreezing time T End1 The data synchronization interval is divided into a first time interval before power failure and a second time interval during power failure based on the first refreezing time. This is more conducive to processing data synchronization during power failure in each time interval, ensuring the consistency of data synchronization after power failure, and improving the efficiency and accuracy of data synchronization after power failure.
[0083] As an optional embodiment of the present invention, the step of storing electrical energy synchronously at time point T... back until the preset first refreezing time point T End1 The first time interval is used for data synchronization before the power outage, and its flowchart is as follows: Figure 3 As shown, it includes the following steps:
[0084] Step S301: Determine the power-off time T of the metering core. off0 Power-on time T of metering coreon0 The time interval is determined by whether it exceeds a preset first time or whether a first preset time point exists within the time interval. Specifically, the electricity meter freezes data every 15 minutes, therefore the preset first time is 15 minutes, and the preset first time point is a time point at 15 minutes and time points that are multiples of 15 minutes. The power outage time T of the metering core is then determined. off0 Power-on time T of metering core on0 Is the time interval greater than 15 minutes, or determine the power failure time T of the metering core? off0 Power-on time T of metering core on0 Does the time interval include time points that are multiples of 15 minutes, such as 15 minutes or 30 minutes? This includes time points where the metering core drops off, assuming the time T is... off0 When it is 0, the power-on time T of the metering core on0 At 0:16, T off0 To T on0 The time interval is 16 minutes, indicating that the time interval is longer than the first preset time of 15 minutes; assuming the metering core drops off at time T. off0 The power-on time T of the metering core is 0:07. on0 At 0:16, T off0 To T on0 The time interval is 9 minutes, which is less than the first preset time of 15 minutes. However, there is a time point of 0:15 between 0:07 and 0:16. At this point, it can be determined that T... off0 To T on0 There is a first preset time point of 15 minutes within the time interval; further assume that the metering core drops at time T. off0 The power-on time T of the metering core is 0:20. on0 At 0:34, T off0 To T on0 The time interval is 14 minutes, which is less than the first preset time of 15 minutes. However, there is a time point of 0:30 between 0:20 and 0:34. At this point, it can be determined that T... off0 To T on0 The time interval includes a first preset time point that is a multiple of 15 minutes, specifically 30 minutes.
[0085] Step S302: If the time interval is greater than the first preset time or the first preset time point exists within the time interval, then the power-off time point T of the metering core is used as the determining factor. off0 The first refreezing time point T is determined by the first preset time. End1 From the point of synchronous energy storage to the first refreezing time T End1 Synchronization of active and reactive power is performed within the time interval; the first refreezing time point T is determined at this time. End1=T off0 +15min+1s; Specifically, in the embodiments provided by the present invention, the energy meter metering core needs to freeze reactive energy once every 15 minutes and active energy once every 1 minute. Therefore, a first preset time of 15 minutes and a second preset time of 1 minute are preset.
[0086] Step S303: If the time interval is less than or equal to the first preset time or there is no first preset time point within the time interval, then the power-off time point T of the metering core is used as the basis for the calculation. off0 The first refreezing time point T is determined by the second preset time. End1 From the point of synchronous energy storage to the first refreezing time T End1 Synchronization of active power is performed within a time interval, with the second preset time being 1 minute (abbreviated as 1min). Specifically, because the energy meter freezes reactive power every 15 minutes and active power every 1 minute, when the time interval is less than or equal to the first preset time of 15 minutes, or when there is no time point within the time interval that is 15 minutes from the first preset time, the first refreezing time point is determined based on the second preset time of 1 minute. The first refreezing time point T determined based on the second preset time of 1 minute is then... End1 =T off0 +1min+1s ensures the consistency of energy data synchronization between the energy meter management chip and the metering chip before a power outage. In the energy meter, important data such as energy are stored at specific times as needed. In the embodiment provided by this invention, reactive energy needs to be frozen every 15 minutes and active energy every 1 minute; therefore, a first preset time of 15 minutes and a second preset time of 1 minute are preset.
[0087] As an optional embodiment of the present invention, the energy synchronization storage time point T back Up to the first refreezing time point T End1 =T off0 Synchronization of active and reactive power is performed within a time interval of +15min + 1s, and its flowchart is as follows: Figure 4 As shown, it includes the following steps:
[0088] Step S401: Based on the energy synchronization and storage time point T back Up to the first refreezing time point T End1 Time interval to obtain the first rate switching time T switch First rate switching time T switch This refers to the time point T for synchronous energy storage. back Up to the first refreezing time point T End1 The switching point for rate-based electricity settlement within a time interval, where rate-based electricity includes both active and reactive electricity.
[0089] Step S402: Determine the first rate switching time T switch Is it greater than or equal to the first refreezing time point T? End1 According to the first rate switching time T switch and the first refreezing time point T End1 The magnitude of the values can be used to determine whether there is a rate-based energy transfer within that time interval. When there is a rate-based energy transfer, it includes the freezing of both active and reactive energy, and the synchronization of active and reactive energy is performed within the corresponding time interval. When there is no rate-based energy transfer, it means that there was no 15-minute freeze of reactive energy, only a 1-minute freeze of active energy, meaning only active energy was frozen, and the synchronization of active energy is performed within the corresponding time interval.
[0090] Step S403: If the first rate switching time T switch Greater than or equal to the first refreezing time point T End1 At the time point T for synchronous energy storage back Up to the first refreezing time point T End1 =T off0 Synchronization of active and reactive power occurs within a time interval of +15min+1s; specifically, when the first rate switching time T... switch Greater than or equal to the first refreezing time point T End1 This indicates that there was a rate-based energy switching, specifically a 15-minute freeze on reactive energy and a 1-minute freeze on active energy. Therefore, at T... back To T End1 =T off0 Synchronization of active and reactive power is carried out within a time interval of +15min +1s.
[0091] Step S404: If the first rate switching time T switch Less than the first refreezing time point T End1 According to the power outage time T of the metering core off0 The first synchronization time point is determined by the second preset time = T off0 +1min+1s, at the power-off time T of the metering core off0 up to the first synchronization time point T off0 Synchronous active power is generated within a time interval of +1 min + 1 s; specifically, when the first rate switching time T... switch Less than the first refreezing time point T End1 This indicates that there is no rate-based energy switching, only a 1-minute freeze of active energy, therefore at T off0 During the time interval leading up to the first synchronization point, only active power synchronization is performed.
[0092] Step S405: At the first synchronization time point Toff0 +1 min + 1 s until the first refreezing time point T End1 =T off0 Synchronous reactive energy is generated within a time interval of +15min+1s. Specifically, when T... off0 After synchronizing active power within the time interval up to the first synchronization time point, the time interval is modified to the first synchronization time point T. off0 +1 min + 1 s until the first refreezing time point T End1 =T off0 During the time interval of +15min+1s, at the first synchronization time point T... off0 +1 min + 1 s until the first refreezing time point T End1 =T off0 +15min+1s indicates the presence of a first preset time point of 15min, during which reactive power is frozen for 15 minutes. Therefore, reactive power synchronization is performed within this time interval.
[0093] The method provided in this embodiment of the invention synchronizes active and reactive power within the corresponding time interval based on the first rate switching time and the first synchronization time point, thereby ensuring the consistency of active and reactive power data synchronization between the power meter management chip and the metering chip before the power outage.
[0094] As an optional embodiment of the present invention, the step of storing electrical energy synchronously at time point T... back Up to the first refreezing time point T End1 =T off0 The first time interval of +15min+1s is used for data synchronization before power failure, which also includes the following steps:
[0095] Step S304: Obtain the frozen data of the management chip and replenish the frozen data of the management chip; the frozen data of the management chip includes minute freeze, daily freeze, settlement day freeze, and switchover freeze. Minute freeze refers to freezing and storing pre-configured data items every 15 minutes, including energy, current demand, instantaneous demand, etc. If the minute freeze is missed during a power outage, the next minute freeze data at the time of the power outage will be replenished when power is restored. Daily freeze is freezing and storing pre-configured data items once at midnight every day, including energy, daily maximum demand, instantaneous demand, etc. If the daily freeze is missed during a power outage, the daily freeze data will be replenished when power is restored, up to a maximum of the most recent 7 days of daily freeze data. Settlement day freeze refers to storing pre-configured data items once on a pre-set settlement day, including energy, monthly maximum demand, etc. If the settlement time is missed during a power outage, the frozen data of the previous 12 settlement days should be replenished when power is restored. Switchover freeze refers to freezing pre-configured data items, including power consumption and instantaneous quantities, when switching between two time zones or two time periods. If the switchover time is missed due to a power outage, the frozen data will be restored when the power is restored.
[0096] Step S305: Update the power data of the management core, and calculate the maximum demand and voltage qualification rate based on the data after the refreezing. Power data refers to total and rate-based power, including active power and reactive power. Maximum demand refers to the maximum demand recorded within a specified time period. Demand is the average power within the specified time period, including daily maximum demand and monthly maximum demand.
[0097] Step S306: Restore the low-power event status of the management chip and the event records that occurred before the power failure.
[0098] The method provided in this invention takes into account the power-on synchronization of rate-based energy, minute-based freezing, daily freezing, settlement day freezing, and switching freezing data, ensuring the consistency of energy data and frozen data of the energy meter management chip and metering chip before power failure, and restoring the energy meter's state to the state before power failure, thus improving the efficiency and accuracy of power-on data synchronization.
[0099] As an optional embodiment of the present invention, the step of refreezing at the first refreezing time point T End1 Power-on time T of metering core on0 The second time interval is used for data synchronization during the power outage, and its flowchart is as follows: Figure 5 As shown, it includes the following steps:
[0100] Step S501: Obtain the earliest time point that needs to be frozen within the second time interval as the second freeze time point T; the earliest time point that needs to be frozen refers to the earliest time point among the four time points of minute freeze time point, daily freeze time point, settlement day freeze time point, and switch freeze time point that data needs to be frozen.
[0101] Step S502: Determine the second synchronization time point based on the second refreezing time point T and the preset time; the preset time is 1s, and the second synchronization time point is set to =T+1s. The second synchronization time point is the starting time point 1s after the second refreezing time point T.
[0102] Step S503: At the first refreezing time point T End1 Within the second synchronization time point T+1s, the frozen data of the management chip is re-frozen;
[0103] Step S504: Update the power data of the management chip and calculate the maximum demand and voltage qualification rate;
[0104] Step S505: From the second synchronization time point T+1s to the power-on time point T of the metering core on0 Within the specified time interval, the refreezing and settlement processes are performed cyclically until the refreezing and settlement processes within the second time interval are completed. This step modifies the time interval to the period from the second synchronization time point T+1s to the metering core power-on time point T.on0 During this time interval, the process of refreezing and settling continues in a loop to ensure that all data requiring refreezing and settlement is completed.
[0105] The method provided in this embodiment of the invention is based on a second refreezing time point and a second synchronization time point. The second time interval is divided into a time interval from the first refreezing time point to the second synchronization time point and a time interval from the synchronization time point to the power-on time point of the metering core. Freezing and settlement processes are performed separately, and the operation is repeated to ensure the real-time performance and consistency of the metering core and management core data of the electricity meter, with high accuracy.
[0106] As an optional embodiment of the present invention, the step of storing electrical energy synchronously at time point T... back Power-on time T of metering chip on0 The size relationship determines the data synchronization interval for data synchronization processing, and the flowchart is as follows: Figure 6 As shown, it includes the following steps:
[0107] Step S601: Determine the time point T for synchronous energy storage. back Is it greater than or equal to the power-on time T of the metering core? on0 When the electrical energy is synchronously stored at time point T back Greater than or equal to the power-on time T of the metering core on0 If the data is within the range indicated by the power outage, it means that the data from the metering chip during the power outage has already been synchronized. Only the data from the power synchronization and saving time point to the current time point needs to be synchronized.
[0108] Step S602: If the electrical energy is synchronously stored at time point T back Greater than or equal to the power-on time T of the metering core on0 Determine the time point T for synchronous energy storage. back Is it less than the current time point T? curr If the electrical energy is synchronously stored at time point T back Greater than or equal to the current time point T curr If the data synchronization is complete, then no further data synchronization is needed, and the data synchronization process ends.
[0109] Step S603: If the electrical energy is synchronously stored at time point T back Less than the current time point T curr The second rate switching time point T′ is determined based on the energy synchronization and storage time point. switch and minimum freeze time point T Fre Data synchronization is performed within the time interval defined by the smaller value in the middle; the second rate switching time point T′ switch This refers to the time point T for synchronous energy storage. back Up to the current time point T curr The switching point for rate-based electricity billing within the specified time interval. Minimum freeze time T FreThe earliest of the four time points that requires data to be frozen: minute freeze time point, daily freeze time point, settlement day freeze time point, and rate switch freeze time point.
[0110] Step S604: If the electrical energy is synchronously stored at time point T back Less than the power-on time T of the metering core on0 Data synchronization processing is performed before and during power outages based on the energy synchronization storage time point and the metering chip power-on time point. When the energy synchronization storage time point T... back Less than the power-on time T of the metering core on0 This indicates that the power meter's management chip and metering chip are both losing power, requiring data synchronization processing before and during the power outage.
[0111] As an optional embodiment of the present invention, the step of storing electrical energy synchronously at time point T... back The determined second rate switching time point T′ switch and minimum freeze time point T Fre Data synchronization is performed by dividing the time intervals into smaller values, as shown in the flowchart below. Figure 7 As shown, it includes the following steps:
[0112] Step S701: Based on the energy synchronization and storage time point T back The determined second rate switching time point T′ switch and minimum freeze time point T Fre The smaller value in the middle determines the dividing time point; when the second rate switching time point T′ switch Greater than or equal to the minimum freezing time point T Fre Then the dividing time point is equal to the minimum freezing time point T. Fre When the second rate switching point T′ switch Less than the minimum freezing time point T Fre Then the division time point is equal to the second rate switching time point T′. switch .
[0113] Step S702: Determine the third synchronization time point T′ based on the divided time point and the preset time; when T′ switch ≧T Fre At that time, the third synchronization time point T′ = T Fre +1s; when T′ switch <T Fre At that time, the third synchronization time point T′ = T′ switch +1s. The time point starting 1s after the dividing time point is determined as the third synchronization time point T′.
[0114] Step S703: At the time point T when the electrical energy is synchronously stored backWithin the time interval up to the third synchronization time point T′, power synchronization and data freezing are performed, the power data of the management core is updated, and the maximum demand and voltage qualification rate are calculated.
[0115] Step S704: From the third synchronization time point T′ to the current time point T curr Within the time interval, the refreezing and settlement processes are carried out cyclically until the energy synchronization and storage time point T. back Up to the current time point T curr The freeze replenishment and settlement processes within the specified time interval have been completed. The time interval has been modified to the period from the third synchronization time point T′ to the current time point T. curr Within a specified time interval, the process of refreezing and settling data continues to cycle through this interval, ensuring that all data requiring refreezing and settlement is completed.
[0116] The method provided in this embodiment of the invention is based on dividing the time interval into a time interval between the energy synchronization storage time point and the third synchronization time point, and a time interval between the third synchronization time point and the current time point. Freezing and settlement processes are performed separately, and the operation is repeated to ensure the real-time performance and consistency of data during the power outage of the metering and management cells of the energy meter, with high accuracy.
[0117] The method provided in this invention employs a segmented dual-core data power-on synchronization process. After a power outage and restoration, frozen data is replenished at the same time point to ensure consistency. The energy data of the management core and the energy data of the metering core are consistent, guaranteeing the consistency of power-on data synchronization and improving its efficiency and accuracy. This solves the problem of low efficiency caused by multiple comparisons required for dual-core power-on data synchronization in electricity meters. The embodiments provided by this invention effectively reduce the impact of power outages on electricity settlement, effectively protecting the interests of both customers and power companies. The efficient and reliable operation of the electricity meter product has earned customer trust and increased product awareness in the industry.
[0118] As another optional embodiment of the present invention, a flowchart of the power-on synchronization process for electricity meter data is provided according to an embodiment of the present invention, such as... Figure 8 As shown, after the electricity meter is powered on, the watchdog register, MCU I / O lines, and I / O lines for memory power, button detection, and meter cover detection are configured first. Then, the data power-on synchronization of the metering core and the management core is performed. After the data power-on synchronization is completed, the main process of normal operation of the electricity meter is entered into a timed loop. During the power-on synchronization process, the energy synchronization time point T stored in the memory of the management core is first obtained. back If the data retrieval fails, the main process of the electricity meter's normal operation will proceed directly to the scheduled processing; if the data retrieval succeeds, the process will continue to retrieve the object container set data; then, the power failure time T of the metering core will be determined. off0 and metering core power-on time Ton0 The object container collection data mentioned above refers to the metering core data block, which is used for communication between the management core and the metering core. The management core initiates a read command, and the metering core responds. It includes data such as date and time, metering core system status word, sampling status word, terminal temperature, voltage, current, voltage and current phase angle, power, power factor, one-minute average power, harmonic fundamental distortion rate, and electrical energy.
[0119] When the time point T for synchronous energy storage is obtained back Metering core power failure time T off0 and metering core power-on time T on0 Then, compare T back T off0 and T on0 Determine if the relationship between them satisfies T. back <T off0 And T back <T on0 If T back <T off0 And T back <T on0 Then it is determined that the time interval T is within the time interval. back ~T on0 The internal system experiences a simultaneous power outage, such as when both the management chip and the metering chip lose power. If T... back ≧T off0 or T back ≧T on0 Then determine T back ~Current time T curr The internal system experiences a power outage in the management chip but not in the metering chip, such as during upgrades.
[0120] like Figure 9 As shown, when both the energy meter management cell and the metering cell lose power simultaneously, the data synchronization process after power-on includes:
[0121] Time interval T back ~T on0 Divided into two intervals, in the first time interval T back ~T End1 Data synchronization before power failure is performed in the second time interval T. End1 ~T on0 Perform data synchronization during power outages. End1 This is the first refreezing time.
[0122] like Figure 10 As shown, the data synchronization process for the first time interval before the power outage includes the following steps:
[0123] First, the validity of the time interval is determined. Validity refers to whether the time interval conforms to the time data format and time order rules. If it is invalid, proceed directly to the second time interval T. End1 ~T on0 The judgment.
[0124] If it is valid, then determine T. off0 To T on0 Is the time interval greater than 15 minutes or T? off0 To T on0 Does the time interval contain a point that passes through an integer 15 minutes? If T off0 To T on0 The time interval is less than or equal to 15 minutes or T off0 To T on0 If there are no time points exceeding 15 minutes within the time interval, then the first refreezing time T is determined. End1 =(T off0 +1min+1s), the first time interval is T back ~T End1 The internal metering core is frozen every minute to synchronize active power.
[0125] If T off0 To T on0 The time interval is greater than 15 minutes or T off0 To T on0 If there is a time point within the time interval that is an integer 15 minutes, then the first refreezing time T is determined. End1 =(T off0 +15min+1s), based on the time interval T back ~T End1 Get the first rate switching time T switch Determine whether T is satisfied. switch ≧T End1 If so, that is, T switch ≧T End1 Then in the first time interval T back ~T End1 The metering core obtains minute-by-minute frozen data to synchronize active and reactive power. Otherwise, T... switch <T End1 Then in the time interval T back ~(T) off0 Active power synchronization is performed within a time interval of +1 min + 1 s, and within the time interval (T) off0 +1min+1s)~T End1 Synchronize reactive power.
[0126] Once the power data synchronization is complete, the frozen data of the management chip is acquired and the frozen data of the management chip is refrozen.
[0127] Update the power data of the management chip and calculate the maximum demand and voltage qualification rate;
[0128] The low-power event status of the management chip and the event records that occurred before power failure are processed to end the process, and the data synchronization process before power failure is completed.
[0129] After the data synchronization process before the power outage is completed, the second time interval T during the power outage period begins. End1 ~T on0 For data synchronization, the first step is to determine the validity of the time interval; if valid, then T is obtained. End1 ~T on0 The earliest time point among the four time points within the interval—minute freeze time point, daily freeze time point, settlement day freeze time point, and switch freeze time point—that requires data to be frozen is taken as the second freeze time T. The second synchronization time point is determined based on the second freeze time point T and the preset time, and the second synchronization time point is T+1s.
[0130] The time interval is now changed to T. End1 ~(T+1s), the frozen data of the management core is re-frozen; the power data of the management core is updated, and the maximum demand and voltage qualification rate are settled; the power, maximum demand, and voltage qualification rate data in the frozen data re-frozen at the same time are obtained at the same time, thus ensuring the consistency of each frozen data; after settlement, it is ensured that when the freezing is re-frozen again, the power, maximum demand, and voltage qualification rate data in each freezing are consistent;
[0131] The time interval is now changed to (T+1s)~T on0 The process of refreezing and settling is repeated until the refreezing and settlement process in the second time interval is completed.
[0132] If the time interval is deemed invalid, the second time interval T is not processed. End1 ~T on0 Data synchronization during power outages continues until a valid time interval T is reached, at which point a second time interval T is initiated. End1 ~T on0 Data synchronization during power outages.
[0133] like Figure 11 As shown, when the power management chip of the energy meter loses power but the metering chip does not, the data synchronization process after power-on includes:
[0134] Determine if T is satisfied back ≧T on0 When T back <T on0 This indicates that the power meter management chip and metering chip are both losing power at the same time, requiring data synchronization processing before and during the power outage.
[0135] When T back ≧T on0 If, during a power outage occurs in the energy meter management chip but not in the metering chip, the system continues to determine whether a T-wave interruption has occurred. back ≧T curr If T back ≧T curr The data synchronization process is now complete.
[0136] If T back Current time point T curr Then obtain T back ~T curr The earliest time point T that needs to be refrozen among the four time points within the interval: minute freeze time point, daily freeze time point, settlement day freeze time point, and switch freeze time point. Fre Get the current second rate switching time T′ switch Compare T′ switch and T Fre The smaller value is used as the dividing time point; the third synchronization time point T′ is determined based on the dividing time point and the preset time; when T′ switch ≥T Fre At that time, the third synchronization time point T′ = T Fre +1s; when T′ switch <T Fre At that time, the third synchronization time point T′ = T′ switch +1s;
[0137] Change the time interval to T back ~(T'+1s), refreeze the minute-by-minute freeze data of the metering core, refreeze the frozen data of the management core; update the power data of the management core, and settle the maximum demand and voltage qualification rate.
[0138] The time interval is now changed to (T'+1s)~T on0 The process of refreezing and settling accounts continues in a loop until T. back ~T curr The refreezing and settlement processes within the time frame have been completed.
[0139] Accordingly, please refer to Figure 12 This invention provides a data power-on synchronization device, which includes:
[0140] The acquisition module 201 acquires the energy synchronization and storage time point after the energy meter is powered on, the power failure time point of the metering core, the power-on time point of the metering core, and the current time point;
[0141] The judgment module 202 is used to determine whether the energy synchronization storage time point is less than the power-off time point of the metering core and less than the power-on time point of the metering core;
[0142] The first processing module 203 is used to perform data synchronization processing before and during power failure based on the power energy synchronization storage time point and the metering core power-on time point.
[0143] The second processing module 204 is used to perform data synchronization processing based on the relationship between the time point of energy synchronization storage and the time point of power-on of the metering core.
[0144] The device provided in this invention solves the problem of low efficiency caused by multiple comparisons required when synchronizing dual-core power-on data in an energy meter. It adopts a segmented dual-core data power-on synchronization process, ensuring that frozen data is consistent at the same time after power failure and power-on, and that the energy data of the management core and the energy data of the metering core are consistent, thereby guaranteeing the consistency of power-on data synchronization and improving the efficiency and accuracy of power-on data synchronization.
[0145] This invention also provides a storage medium, such as... Figure 13 As shown, a computer program 601 is stored on it. When executed by a processor, this program implements the steps of the data power-on synchronization method described in the above embodiments. The storage medium also stores audio and video stream data, feature frame data, interactive request signaling, encrypted data, and a preset data size. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), random access memory (RAM), flash memory, hard disk drive (HDD), or solid-state drive (SSD), etc.; the storage medium may also include combinations of the above types of memory.
[0146] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), random access memory (RAM), flash memory, hard disk drive (HDD), or solid-state drive (SSD), etc.; the storage medium can also include combinations of the above types of memory.
[0147] This invention also provides an electronic device, such as... Figure 14As shown, the electronic device may include a processor 51 and a memory 52, wherein the processor 51 and the memory 52 may be connected via a bus or other means. Figure 14 Taking the example of a connection between China and Israel via a bus.
[0148] Processor 51 can be a central processing unit (CPU). Processor 51 can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations of the above types of chips.
[0149] The memory 52, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as the corresponding program instructions / modules in the embodiments of the present invention. The processor 51 executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions, and modules stored in the memory 52, thereby realizing the data power-on synchronization method in the above method embodiments.
[0150] The memory 52 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created by the processor 51, etc. Furthermore, the memory 52 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 52 may optionally include memory remotely located relative to the processor 51, and these remote memories may be connected to the processor 51 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0151] The one or more modules are stored in the memory 52, and when executed by the processor 51, they perform the following: Figure 1-11 Data power-on synchronization method in the illustrated embodiment.
[0152] For specific details regarding the aforementioned electronic devices, please refer to the relevant documentation. Figures 1 to 11 The relevant descriptions and effects in the illustrated embodiments are for understanding purposes only and will not be repeated here.
[0153] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A data power-on synchronization method, characterized in that, Applied to an electricity meter, the electricity meter including a metering core and a management core, the method includes the following steps: Acquire the energy storage time point after the energy meter is powered on, the power failure time point of the metering core, and the power-on time point of the metering core; Determine whether the energy synchronization storage time point is less than the power-off time point of the metering core and less than the power-on time point of the metering core; If so, perform data synchronization processing before and during the power outage based on the energy synchronization storage time point and the metering core power-on time point; The data synchronization processing before and during the power outage based on the energy synchronization storage time point and the metering core power-on time point includes: Data synchronization processing is performed before power failure based on the first time interval from the energy synchronization storage time point to the preset first refreezing time point. The first refreezing time point is determined based on the metering core power failure time point and the metering core power-on time point. Data synchronization processing during the power outage is performed based on the second time interval from the first refreezing time point to the power-on time point of the metering core. Otherwise, data synchronization processing is performed by determining a time interval based on the relationship between the energy synchronization storage time point and the metering core power-on time point; The process of determining a time interval based on the relationship between the energy synchronization storage time point and the metering core power-on time point for data synchronization includes: Determine whether the energy synchronization storage time point is greater than or equal to the metering core power-on time point; If the energy synchronization storage time point is greater than or equal to the metering core power-on time point, determine whether the energy synchronization storage time point is less than the current time point; If the energy synchronization and storage time point is less than the current time point, data synchronization processing will be carried out in the time interval divided by the smaller value between the second rate switching time point and the minimum freeze time point determined by the energy synchronization and storage time point. If the energy synchronization storage time is less than the metering core power-on time, data synchronization processing is performed before and during the power outage based on the energy synchronization storage time and the metering core power-on time.
2. The data power-on synchronization method as described in claim 1, characterized in that, The step of performing data synchronization processing before power failure based on the first time interval from the energy synchronization storage time point to the pre-set first refreezing time point includes: Determine whether the time interval from the power-off time of the metering core to the power-on time of the metering core is greater than a preset first time or whether the first preset time point exists within the time interval. If the time interval is longer than the first preset time or there is a first preset time point within the time interval, then the first refreezing time point is determined according to the power failure time point of the metering core and the first preset time, and active and reactive power are synchronized within the time interval from the power synchronization storage time point to the first refreezing time point. If the time interval is less than or equal to the first preset time or there is no first preset time point within the time interval, then the first refreezing time point is determined based on the power failure time point of the metering core and the second preset time, and active power synchronization is performed within the time interval from the power synchronization storage time point to the first refreezing time point.
3. The data power-on synchronization method as described in claim 2, characterized in that, The synchronization of active and reactive power during the time interval from the energy synchronization storage time point to the first refreezing time point includes: The first rate switching time is obtained based on the time interval from the energy synchronization and storage time point to the first refreezing time point; Determine whether the first rate switching time is greater than or equal to the first refreeze time point; If so, active and reactive power synchronization shall be carried out during the time interval from the power energy synchronization and storage time point to the first refreezing time point; Otherwise, the first synchronization time point is determined based on the power failure time point of the metering core and the second preset time. Active energy is synchronized within the time interval from the power failure time point of the metering core to the first synchronization time point, and reactive energy is synchronized within the time interval from the first synchronization time point to the first refreezing time point.
4. The data power-on synchronization method as described in claim 1, characterized in that, The step of performing data synchronization processing before power failure based on the first time interval from the energy synchronization storage time point to the pre-set first refreezing time point further includes: Obtain the frozen data of the management chip; Refreeze the frozen data in the management chip; The power data of the management core is updated based on the data after the refreezing, and the maximum demand and voltage qualification rate are calculated. The system recovers the low-power event states of the management chip and records of events that occurred before power failure.
5. The data power-on synchronization method as described in claim 1, characterized in that, The data synchronization processing during the power outage period based on the second time interval from the first refreezing time point to the power-on time point of the metering core includes: The earliest time point within the second time interval that needs to be frozen is used as the second refreeze time point; The second synchronization time point is determined based on the second refreezing time point and the preset time. Between the first refreezing time point and the second synchronization time point, the frozen data of the management core is refrozen; Update the power data of the management chip and calculate the maximum demand and voltage qualification rate; During the time interval from the second synchronization time point to the power-on time point of the metering core, the refreezing and settlement processes are cyclically operated until the refreezing and settlement processes within the second time interval are completed.
6. The data power-on synchronization method as described in claim 1, characterized in that, The data synchronization process, which divides the time interval based on the smaller of the second rate switching time point determined by the power energy synchronization storage time point and the minimum freeze time point, includes: The division time point is determined based on the smaller value between the second rate switching time point determined by the power energy synchronization storage time point and the minimum freeze time point; The third synchronization time point is determined based on the defined time points and the preset time. During the time interval from the first power synchronization storage point to the third synchronization point, power synchronization and data freezing are performed, the power data of the management chip is updated, and the maximum demand and voltage qualification rate are calculated. Within the time interval from the third synchronization time point to the current time point, the refreezing and settlement processes are cyclically performed until the refreezing and settlement processes within the time interval from the power energy synchronization storage time point to the current time point are completed.
7. A data power-on synchronization device, characterized in that, The device, applied to an electricity meter, includes: The acquisition module acquires the energy synchronization and storage time point after the energy meter is powered on, the power failure time point of the metering core, the power-on time point of the metering core, and the current time point; The judgment module is used to determine whether the energy synchronization storage time point is less than the power-off time point of the metering core and less than the power-on time point of the metering core. The first processing module is used to perform data synchronization processing before and during power outage based on the power energy synchronization storage time point and the metering core power-on time point. The data synchronization processing before and during the power outage based on the energy synchronization storage time point and the metering core power-on time point includes: Data synchronization processing is performed before power failure based on the first time interval from the energy synchronization storage time point to the preset first refreezing time point. The first refreezing time point is determined based on the metering core power failure time point and the metering core power-on time point. Data synchronization processing during the power outage is performed based on the second time interval from the first refreezing time point to the power-on time point of the metering core. The second processing module is used to determine the time interval for data synchronization processing based on the relationship between the energy synchronization storage time point and the metering core power-on time point. The process of determining a time interval based on the relationship between the energy synchronization storage time point and the metering core power-on time point for data synchronization includes: Determine whether the energy synchronization storage time point is greater than or equal to the metering core power-on time point; If the energy synchronization storage time point is greater than or equal to the metering core power-on time point, determine whether the energy synchronization storage time point is less than the current time point; If the energy synchronization and storage time point is less than the current time point, data synchronization processing will be carried out in the time interval divided by the smaller value between the second rate switching time point and the minimum freeze time point determined by the energy synchronization and storage time point. If the energy synchronization storage time is less than the metering core power-on time, data synchronization processing is performed before and during the power outage based on the energy synchronization storage time and the metering core power-on time.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to perform the data power-on synchronization method as described in any one of claims 1-6.
9. An electronic device, characterized in that, include: A memory and a processor are communicatively connected, the memory stores computer instructions, and the processor executes the computer instructions to perform the data power-on synchronization method as described in any one of claims 1-6.