An electric energy metering box adaptive electric energy distribution method and system

CN123018890APending Publication Date: 2026-10-30JAECELE ELECTRIC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611490797.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-23
Publication Date
2026-10-30

AI Technical Summary

Technical Problem

[0008]为了解决真实冻结时刻与通信时刻之间存在偏差、目标边界累计电能缺少可靠保证边界、多个电量对象之间难以形成完整物理守恒约束,以及计量配置缺少事前保证性预算和事后实际验证的问题,本发明提供一种电能计量箱自适应电能分配方法及系统

Benefits of technology

(1)本发明通过时间基准信息确定冻结记录的真实冻结时刻区间,并利用真实冻结时刻区间分别位于目标边界前后的前置记录和后置记录形成目标边界夹逼,避免直接将通信时刻等同于真实冻结时刻,从而提高目标时段电能归属的可靠性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123018890A_ABST
    Figure CN123018890A_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of electric energy metering and power distribution control, and particularly relates to a self-adaptive electric energy distribution method and system for an electric energy metering box. The method comprises the following steps: obtaining frozen records, reading error bounds and time reference information of a total incoming line metering channel and a plurality of outgoing line metering channels, determining real frozen time intervals of the frozen records, and obtaining net electric energy intervals of each metering channel according to the frozen records before and after a target boundary, direction cumulative electric energy and reading error bounds; obtaining electric energy attribution intervals according to the total incoming line, each outgoing line, auxiliary loop, conductor loss and energy storage change; determining net energy budget according to guarantee parameters of a current metering configuration and a candidate metering configuration, and selecting a target metering configuration; and verifying the target metering configuration according to new frozen records after the target metering configuration actually takes effect. The present application can improve the reliability of electric energy attribution in a target period, and unify metering configuration selection and actual operation verification to form a closed loop.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power metering and distribution control technology, and in particular to an adaptive power distribution method and system for power metering boxes. Background Technology

[0002] Multi-meter energy metering boxes typically have one main incoming metering channel and multiple outgoing metering channels. Each metering channel records energy data through a corresponding metering module. The controller calculates the energy consumption for the target time period based on the main incoming metering results and the metering results of each outgoing channel. With the increasing demand for bidirectional energy metering, refined energy management, and multi-object energy attribution, each metering module typically records both forward and reverse cumulative energy, and obtains the cumulative energy records corresponding to different times through synchronous latching or freezing.

[0003] However, there is usually a time difference between the moment when the controller sends a synchronization request and the moment when the metering module actually completes the freeze. This time difference may come from processes such as communication propagation, message queuing, request detection, and waiting for the counting edge. If the moment when the controller sends a synchronization request or the moment when the controller receives the freeze record is directly taken as the actual freeze moment, the cumulative energy corresponding to the target boundary is prone to a deviation in attribution, which in turn affects the reliability of the energy calculation for the target period.

[0004] Existing technologies can also use interpolation, linear extrapolation, or center value estimation to estimate the cumulative energy corresponding to the target boundary. However, these methods are usually difficult to provide a conservative boundary that can determine the coverage of the true value. In particular, when the actual freezing time range of the frozen record crosses the target boundary, if the frozen record is still used as a deterministic record on one side of the target boundary, the cumulative energy range may be incorrectly narrowed.

[0005] In addition, there may be non-independently metered outgoing lines, auxiliary circuits, conductor losses, and energy storage changes within the metering boundary between the main incoming line and the metered outgoing lines. If the above items are directly set to zero, or the difference between the main incoming line and each metered outgoing line is directly allocated to the metered outgoing lines, the resulting energy attribution result may not satisfy the true energy conservation relationship within the metering boundary.

[0006] In addition, existing metering configuration adjustment processes typically adjust the synchronization cycle and freezing strategy based on historical readings, statistical results, or single-run results. They lack a unified guarantee budget that can be determined before the actual issuance of candidate metering configurations, and they also lack a process to verify the budget again using real freeze records after the candidate metering configurations take effect. This results in a lack of consistent evaluation criteria between the configuration optimization results and the actual metering interval quality.

[0007] Therefore, there is a need for an adaptive energy allocation method and system for energy metering boxes that can perform cumulative energy squeezing based on a reliable interval of the actual freezing time of the frozen record, and further combine the complete energy conservation relationship, candidate metering configuration budget, and actual operation data verification to achieve the unity of energy attribution and adaptive selection of metering configuration. Summary of the Invention

[0008] To address the issues of discrepancies between the actual freezing time and the communication time, the lack of reliable guaranteed boundaries for the accumulated electrical energy at the target boundary, the difficulty in forming complete physical conservation constraints among multiple electrical energy objects, and the lack of pre-guaranteed budgeting and post-verification for metering configuration, this invention provides an adaptive electrical energy allocation method and system for an electrical energy metering box.

[0009] In a first aspect, the present invention provides an adaptive power distribution method for a power metering box, which adopts the following technical solution: An adaptive power distribution method for a power metering box includes: acquiring freeze records, reading error limits, and time reference information for the main incoming line metering channel and multiple outgoing line metering channels; determining the actual freeze time interval for each freeze record based on the time reference information; selecting, for each boundary of the target time period, the preceding and following records located before and after the corresponding boundary of the actual freeze time interval; and combining the directional cumulative power, reading error limits, and the monotonic relationship of directional cumulative power with time of the preceding and following records to obtain the net power range for each metering channel; and based on the main incoming line, each outgoing line, auxiliary circuit, and conductor... The energy conservation relationship of loss and energy storage changes constrains each of the net energy ranges, resulting in the energy allocation range of each of the metering channels; the guarantee parameters corresponding to the current metering configuration and candidate metering configurations are obtained. When each item in the energy conservation relationship has a finite effective range and there is no conservation conflict, the current net energy budget and candidate net energy budget are determined according to the guarantee parameters, and the target metering configuration is determined according to the budget comparison results; the target metering configuration is sent to the corresponding metering module. After the target metering configuration actually takes effect, the target metering configuration is re-verified according to the new freeze record to realize the adaptive energy allocation of the energy metering box.

[0010] Preferably, the acquisition of the freeze record and the time reference information includes: controlling the metering module to latch the forward accumulated energy, reverse accumulated energy, hardware count value, continuity generation, status information, and configuration generation at a qualifying counting edge to obtain the freeze record; responding to a synchronization request or a valid hardware timestamp anchoring event, acquiring the reference time, anchor point hardware count value, continuity generation, synchronization error guarantee, and configuration generation to obtain the anchor record as the time reference information; and establishing a unique counting relationship between the freeze record and the anchor record in the same continuous freeze chain based on the continuity generation, the configuration generation, and the hardware count value.

[0011] Preferably, determining the true freeze time interval includes: obtaining a counting cycle guarantee; determining a hardware count difference based on the anchor point hardware count value recorded by the anchor point and the hardware count value recorded by the freeze record; and determining the lower and upper bounds of the true freeze time of the freeze record based on the reference time of the anchor point record, the hardware count difference, the counting cycle guarantee, and the synchronization error guarantee, thereby obtaining the true freeze time interval.

[0012] Preferably, the determination of the net power range includes: based on the directional cumulative power and reading error boundaries of the previous and subsequent records, and combined with the monotonically non-decreasing relationship of the directional cumulative power over time, obtaining the directional cumulative power range corresponding to each boundary of the target time period; when the directional cumulative power range at the start and end of the target time period is compatible with the monotonically non-decreasing relationship of the directional cumulative power over time, obtaining the forward power range and the reverse power range based on the directional cumulative power range; and obtaining the net power range based on the forward power range and the reverse power range.

[0013] Preferably, the constraint on each of the net power intervals includes: determining the total net incoming power, the net outgoing power, the net power consumption of auxiliary circuits, the power loss of conductors, and the equivalent power of energy storage changes as conservation terms; when each of the conservation terms has a finite effective interval, according to the power conservation relationship and the current intervals of other conservation terms, performing intersection tightening and repeated propagation on the current intervals of each conservation term to obtain the power allocation interval; when any conservation term cannot obtain a finite effective interval, pausing the intersection tightening and retaining the existing net power interval, and not setting the corresponding conservation term to zero or allocating the corresponding difference to other outgoing lines; when the interval of any conservation term after intersection tightening is empty, determining that the conservation conflict has occurred and pausing the candidate metering configuration comparison.

[0014] Preferably, the determination of the current net volume budget and the candidate net volume budget includes: the guarantee parameters include the synchronization period, the maximum allowed number of consecutive synchronization slot losses, the synchronization error guarantee, the upper limit of the certification reading error, and the upper limit of the directional power guarantee; for the current metering configuration and each candidate metering configuration, the corresponding certification record span is determined according to the synchronization period, the maximum allowed number of consecutive synchronization slot losses, and the synchronization error guarantee; the single boundary guarantee budget corresponding to each boundary of the target time period is determined according to the certification record span, the upper limit of the certification reading error, and the upper limit of the directional power guarantee, and the corresponding net volume budget is determined according to each of the single boundary guarantee budgets corresponding to the same metering configuration.

[0015] Preferably, determining the target metering configuration based on the budget comparison results includes: determining the target metering configuration from candidate metering configurations that are less than the current net budget and meet the equipment execution conditions, data validity conditions, and shared resource access conditions; when there are multiple candidate metering configurations that meet the conditions, determining the target metering configuration based on the degree of budget improvement of each candidate metering configuration relative to the current metering configuration; sending the target metering configuration to the metering module, and confirming the actual effectiveness of the target metering configuration based on the actual configuration generation acknowledgment returned by the metering module.

[0016] Preferably, the re-verification of the target metering configuration includes: re-establishing a continuous freeze chain under the configuration generation corresponding to the target metering configuration; redetermining the energy attribution interval based on the freeze records after actual effectiveness; checking whether the reading error boundary corresponding to the actual freeze record is covered by the upper bound of the certified reading error, whether the maximum possible true span between the previous record and the subsequent record is covered by the span of the certified record, and whether the upper bound of the directional power guarantee remains valid within the maximum possible true time range between the previous record and the subsequent record; determining that the target metering configuration is valid when the width of the energy attribution interval is not greater than the candidate net quantity budget and all checks are satisfied; and re-issuing and verifying the current metering configuration when the verification fails and the current metering configuration can be restored.

[0017] Preferably, the method further includes: in response to the failure of the counting cycle guarantee, the failure of the synchronization error guarantee, the inability to simultaneously obtain the preceding record and the following record, the inability to uniquely recover the hardware counting difference, the unclear relationship between the continuity generation, the configuration generation, or the anchor record and the frozen record, determining that the corresponding target boundary or target time period is not reconfigurable, retaining the original record and existing valid results, and pausing the candidate metering configuration comparison; determining the frozen record that cannot meet the guarantee time condition as a coarse frozen record, the coarse frozen record is not used as the preceding record or the following record, and does not participate in the constraints of the energy conservation relationship and the candidate metering configuration comparison; after the abnormal conditions are eliminated, re-determining the true frozen time interval, and resuming the candidate metering configuration comparison when all items in the energy conservation relationship have finite valid intervals and there is no conservation conflict.

[0018] Secondly, the present invention provides an adaptive power distribution system for a power metering box, which adopts the following technical solution: An adaptive power distribution system for a power metering box includes a controller and multiple metering modules. The multiple metering modules correspond to a main incoming metering channel and multiple outgoing metering channels, respectively. Each metering module has a forward and reverse discrete and monotonically non-decreasing cumulative power register, a local hardware counter, a synchronous latch interface, a continuity generation flag, and a configuration generation receipt interface. The controller is used to acquire frozen records, reading error boundaries, and time reference information. Based on the time reference information, it determines the actual frozen time interval of the frozen records and selects preceding records located before and after the corresponding boundaries of the actual frozen time interval for each boundary of the target time period. Based on the preceding and following records, the net energy range of each metering channel is obtained according to the cumulative directional energy, reading error boundary, and the monotonically non-decreasing relationship of the cumulative directional energy over time. The net energy range is constrained according to the energy conservation relationship of the total incoming line, each outgoing line, auxiliary circuit, conductor loss, and energy storage changes to obtain the energy attribution range. The current net energy budget and candidate net energy budget are determined based on the guaranteed parameters of the current metering configuration and candidate metering configurations, and the target metering configuration is determined based on the budget comparison results. The target metering configuration is issued, and verified according to the new frozen records after it takes effect.

[0019] Compared with the prior art, the present invention has at least the following technical effects: (1) The present invention determines the real freezing time interval of the frozen record through time reference information, and uses the previous and subsequent records located before and after the target boundary respectively to form the target boundary clamping, avoiding directly equating the communication time with the real freezing time, thereby improving the reliability of the power ownership of the target time period.

[0020] (2) The present invention forms the guaranteed cumulative range of the target boundary by using the relationship between the cumulative energy in the direction and the monotonically non-decreasing relationship with time and the reading error boundary of the frozen record, and further obtains the net energy range of the target time period, so that the net energy calculation result keeps the range boundary that matches the uncertainty of the actual freezing time.

[0021] (3) This invention incorporates the total incoming line, each outgoing line, auxiliary circuit, conductor loss and energy storage change into a unified energy conservation relationship, constrains the net energy range of each metering channel, and makes the energy attribution result of each metering object satisfy the overall physical relationship within the metering boundary.

[0022] (4) The present invention pre-forms the current net quantity budget and the candidate net quantity budget by using the guarantee parameters corresponding to the current metering configuration and the candidate metering configuration, and re-verifies the target metering configuration based on the new freeze record after the target metering configuration actually takes effect, so that the configuration selection and the metering interval quality after actual operation form a unified closed-loop evaluation relationship. Attached Figure Description

[0023] Figure 1 This is a flowchart illustrating the adaptive power distribution method for the power metering box according to an embodiment of the present invention. Figure 2 This is a schematic diagram of the adaptive power distribution system of the power metering box according to an embodiment of the present invention; Figure 3 This is a schematic diagram illustrating the relationship between the actual freezing time interval and the target boundary in an embodiment of the present invention. Figure 4 This is a schematic diagram of the energy conservation relationship and the propagation process of interval constraints in an embodiment of the present invention; Figure 5 This is a schematic diagram of the configuration switching and abnormal recovery status control process in an embodiment of the present invention. Detailed Implementation

[0024] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the following embodiments are only used to explain the present invention and not to limit the scope of protection of the present invention. Other implementation methods obtained by those skilled in the art based on the embodiments of the present invention without creative effort also fall within the scope of protection of the present invention.

[0025] It should be noted that the directional cumulative energy in this embodiment includes forward cumulative energy and reverse cumulative energy. The forward cumulative energy and reverse cumulative energy are recorded by separate cumulative energy registers that are monotonically constant over real time. The net energy is determined based on the difference between the forward and reverse energy during the target time period. Therefore, the net energy itself does not have the requirement of being monotonically constant.

[0026] It should also be noted that the starting point, ending point, target boundary time, synchronization reference time, and anchor point reference time of the target time period all use the same main reference time axis. When energy conservation constraints are applied to the same target time period, the same effective topology is used. When a topology change can be determined within the target time period through switch status, topology management information, or other reliable status information, the target time period can be divided into multiple sub-time periods with unchanged topology according to the time of the topology change and processed separately. When the time of the topology change cannot be reliably determined, the conservation tightening of the corresponding target time period is suspended.

[0027] Example 1: Adaptive power distribution method for power metering boxes.

[0028] This embodiment discloses an adaptive power distribution method for a power metering box, referring to... Figure 1 The methods include S001 to S005.

[0029] S001: Obtain the freeze records, reading error limits, and time reference information for the main incoming metering channel and multiple outgoing metering channels.

[0030] Specifically, refer to Figure 2 The electricity metering box includes a controller and multiple metering modules. One metering module corresponds to the main incoming metering channel, and the remaining metering modules correspond to multiple outgoing metering channels respectively. Each metering module includes a forward cumulative energy register, a reverse cumulative energy register, a local hardware counter, a synchronous latch interface, a continuity generation flag, and a configuration generation receipt interface. The controller is connected to the multiple metering modules through a communication interface that meets the corresponding communication requirements.

[0031] For example, the controller may be an embedded controller located inside the electricity metering box, the controller including a processor, memory, communication interface and synchronization control interface; in other embodiments, the controller may also be located in a local concentrator or edge computing device connected via a communication link with bounded time delay.

[0032] Specifically, the metering module latches the forward accumulated energy, reverse accumulated energy, hardware count value, continuity generation, status information, calibration version, and configuration generation once at a qualifying counting edge, so that the above information corresponds to the same counting edge, thereby forming a frozen record; the qualifying counting edge can be the next valid counting edge that appears after the synchronization request arrives, or it can be a counting edge that meets the predetermined phase window, or it can be other deterministic edges that the metering module hardware interface can support.

[0033] It should be noted that the forward cumulative energy, reverse cumulative energy, hardware count value, continuity generation, status information, calibration version, and configuration generation in the same freeze record have a definite correspondence; records in which the correspondence between the above information cannot be determined cannot be used as subsequent guarantee pre-records or post-records.

[0034] Specifically, in response to a synchronization request or a valid hardware timestamp anchoring event, the controller obtains the reference time, anchor hardware count value, continuity generation, synchronization error guarantee, configuration generation, and related parameter versions to form an anchor record; one synchronization request or one valid hardware timestamp anchoring event corresponds to one anchor record, and subsequent frozen records can establish a unique counting relationship with valid anchor records in the same continuous frozen chain.

[0035] When there are multiple valid anchor records, the anchor record that is closer to the record to be mapped and whose corresponding guaranteed parameters are still valid can be used first, thereby reducing the width of the actual freezing time interval caused by the propagation of uncertainty in the counting period.

[0036] It should be noted that the local hardware counter adopts a unified increment and latching semantics, so that the hardware count difference between any two records with a valid counting relationship can uniquely correspond to the number of complete counting cycles. When the local hardware counter wraps around, the true hardware count difference can be recovered based on the device's existing overflow flag, extended counting information, or high-order count. If the hardware count difference cannot be uniquely recovered after wrapping or resetting, the corresponding record chain enters the non-reconfigurable process.

[0037] Specifically, in order to ensure the counting period, the nominal counting frequency is obtained. Minimum actual duration guaranteed for each cycle And the longest true duration guarantee per cycle According to the nominal counting frequency Minimum actual duration guaranteed for each cycle And the longest true duration guarantee per cycle Determine the envelope eccentricity of the counting period : ; In the formula, the nominal counting frequency is... This indicates the nominal operating frequency of the hardware counter corresponding to the metering module; the shortest actual duration guaranteed per cycle. This represents the shortest actual duration that can be guaranteed in a single counting cycle; the longest actual duration guaranteed per cycle. This represents the longest true duration that can be guaranteed by a single counting cycle; the counting cycle envelope eccentricity. Used to describe the conservative deviation range of the actual counting period from the nominal counting period.

[0038] It should be noted that the eccentricity of the counting period envelope is used. Previously, it was necessary to check the nominal counting frequency. Minimum actual duration guaranteed for each cycle Guarantee of the longest true duration per cycle And all relevant guarantee documents are valid and meet the requirements. , as well as ;when If the aforementioned conditions are not met, the corresponding counting period guarantee will be deemed invalid, and the relevant frozen records will be processed as non-reconstructable. When existing calibration data can directly provide the upper and lower bounds of the true period duration that meets the requirements, the corresponding counting period guarantee can also be used directly without needing to go through the nominal counting frequency again. Constructing the eccentricity of the envelope during the counting period .

[0039] Furthermore, obtain synchronization error guarantee Synchronization error guarantee This indicates the maximum guaranteed time deviation between the anchor reference time and the corresponding actual freeze time; synchronization error guarantee. It can be obtained through synchronization devices, deterministic buses, hardware timestamp systems, calibration data, or other information that can provide finite time guarantees.

[0040] Specifically, for any actual frozen record Obtain the actual freeze record Corresponding reading error limits Among them, the reading error boundary Actual freeze records The corresponding upper bound of absolute electrical quantity error; reading error boundary It can be obtained from the calibration certificate, verification results, metrology chip data, or other metrology technical data of the metrology module. When the data only gives the accuracy class, relative error, or maximum permissible percentage error, it needs to be converted into a reading error limit with cumulative electrical energy dimension according to the applicable metrology, verification, or calibration rules. .

[0041] S002: Determine the actual freezing time interval of each freezing record based on the time reference information, and obtain the net power range of each metering channel within the target time period.

[0042] Specifically, let the anchor point hardware count value be... The hardware count value of the record to be mapped is For a record to be mapped that belongs to the same continuous freeze chain as the anchor record and is no earlier than the anchor record, if the hardware count difference can uniquely recover the data, then... The non-negative hardware count difference after counter rewind recovery is determined as the number of valid complete count cycles. The reference time for anchor point recording is According to the reference time Synchronization error guarantee 1. Number of valid complete counting cycles Nominal counting frequency and the eccentricity of the counting period envelope To obtain the actual freeze time interval : ; In the formula, the actual freeze time interval is... This indicates a conservative interval that can cover the actual freezing time of the record to be mapped; reference time. The anchor record represents the reference time corresponding to the record to be mapped and the record to be frozen; synchronization error is guaranteed. Indicates the maximum guaranteed deviation between the anchor reference time and the actual freeze time; number of valid complete count cycles. This indicates the number of complete counting cycles between the anchor record and the frozen record to be mapped.

[0043] It should be noted that the actual freeze time interval This is used to ensure that the actual freeze time of the record to be mapped is covered by the interval, but does not require the actual freeze time interval to be covered. The two endpoints correspond to the precise freezing time that the metering module can actually achieve.

[0044] In another implementation, the metering module can generate a qualified timestamp relative to the main reference time axis directly at the qualifying counting edge using PTP (Precision Time Protocol), hardware timestamp, or other synchronization hardware. It can then guarantee the direct formation of the true frozen time interval based on the qualified timestamp and the corresponding synchronization error. In this case, the qualified timestamp still needs to form a definite correspondence with the directional accumulated energy, hardware count value, continuity generation, and configuration generation.

[0045] Specifically, the continuity generation is used to characterize whether frozen records belong to the same continuous freeze chain. When a new valid frozen record has been actually formed and the continuity generation has been updated, if subsequent records show unexplained skips, rollbacks, or duplicates, it is determined that the corresponding continuous freeze chain has been broken. If a synchronization request does not form a new valid frozen record within the specified time window, the corresponding synchronization slot will be processed according to the allowed number of synchronization slot loss attempts, rather than equating the missing synchronization slot with a continuity generation anomaly that occurred after a record has already been generated.

[0046] Furthermore, referring to Figure 3 Let the target boundary time be The actual freeze time interval corresponding to the preceding candidate record A is The interval of the actual freeze time corresponding to the subsequent candidate record B is Only when the current candidate record A and the subsequent candidate record B satisfy the following: Only then can the preceding candidate record A and the following candidate record B be determined as the target boundary time. The corresponding preceding record A and following record B.

[0047] Among them, the actual freezing time interval corresponding to the previous record A is no later than the target boundary time. The post-record B corresponds to an actual freeze time interval that is no earlier than the target boundary time. The actual freeze time interval crosses the target boundary. The frozen record cannot be used as the target boundary moment. Formal boundary record on the same side.

[0048] It should be noted that when there are multiple record pairs that simultaneously meet the time qualification, continuity qualification, and configuration generation qualification, the guaranteed directional cumulative amount interval formed by each record pair can be determined separately, and the record pair that can obtain a smaller guaranteed interval width should be given priority; the selection of record pairs is not based solely on simply taking the maximum or minimum value of the reported cumulative energy.

[0049] Furthermore, for any direction, either the forward or reverse direction... Let the cumulative electrical energy in the direction corresponding to the previous record A be... The cumulative electrical energy in the direction corresponding to B in the post-record is The reading error boundary corresponding to the previous record A is The error boundary of the reading corresponding to the post-record B is... ; Take the reading error boundary and reading error boundary The larger value in the range is used as the uniform conservative error radius. Based on the monotonic relationship between the cumulative electrical energy in the direction and real time, the target boundary time is obtained. Corresponding to the actual direction of cumulative amount range: ; In the formula, the cumulative amount in the true direction Indicates the target boundary time. Corresponding direction Actual cumulative electrical energy; cumulative electrical energy recorded in the previous direction This indicates the cumulative electrical energy in the direction of the previous record A; the cumulative electrical energy in the direction of the subsequent record. Indicates the cumulative electrical energy in the direction of the subsequent record B; unifies the conservative error radius. This represents the uniform conservative boundary for the reading errors of the preceding record A and the following record B.

[0050] When the lower bound of the aforementioned directional cumulative quantity interval is greater than the upper bound of the directional cumulative quantity interval, it indicates a conflict between the previous record A, the subsequent record B, the monotonic relationship of the directional cumulative electrical energy, and the current reading error boundary. In this case, the corresponding record pair is no longer considered as a valid guarantee for the preceding and following records.

[0051] Furthermore, targeting the starting point of the target time period respectively and the end of the target time period Form a directional cumulative quantity interval; let the lower bound of the directional cumulative quantity interval be... The upper bound of the cumulative range in the direction is Then the direction Corresponding target time period direction power range satisfy: ; In the formula, the lower bound of the directional cumulative quantity interval is... Upper bound of the cumulative range in the direction These represent the starting points of the target time period, respectively. Lower and upper bounds of cumulative amount in corresponding directions; lower bound of cumulative amount interval in direction Upper bound of the cumulative range in the direction These represent the end points of the target time period. The lower and upper bounds of the cumulative amount in the corresponding direction.

[0052] It should be noted that the starting point of the target time period and the end of the target time period Even if the cumulative quantity intervals in the corresponding directions are not empty, it is still necessary to further determine whether the cumulative quantity intervals in the two directions can simultaneously satisfy the relationship that the cumulative energy in the direction does not decrease monotonically with real time; if they cannot simultaneously satisfy the relationship, it is determined that the monotonically compatible relationship of the cumulative quantity across the boundary has failed, and the effective directional energy interval in the corresponding direction is not generated.

[0053] Specifically, the positive direction charge ranges are obtained respectively. and the reverse direction of the power range Subsequently, the net energy range for the target time period is obtained based on the forward and reverse energy ranges. : ; In the formula, the lower bound of the charge in the positive direction is... and the upper limit of the positive direction charge These represent the lower and upper bounds of the electrical charge range in the forward direction, respectively; and the lower bound of the electrical charge range in the reverse direction. Upper limit of the charge in the opposite direction These represent the lower and upper bounds of the reverse direction charge range, respectively.

[0054] It should be noted that the net electricity consumption range during the target period... Crossing to zero only indicates that the current guarantee data cannot uniquely determine the net energy flow within the target period, and does not mean that there is no actual energy flow within the target period.

[0055] S003: Based on the law of conservation of electrical energy, constrain the net energy range of each metering channel to obtain the energy attribution range of each metering channel.

[0056] Specifically, refer to Figure 4 The outgoing lines that can obtain an effective net power range are recorded in the set of measured outgoing lines. Unmeasured lines that need to be described by independent finite bounds are recorded in the set of unmeasured lines. The regulations stipulate that the total incoming line flowing into the metering boundary is positive, the outgoing line flowing out of the metering box bus is positive, the net consumption and conductor loss of the auxiliary circuit are positive, and the change in energy storage is positive when the energy storage at the end of the target time period is higher than the energy storage at the beginning of the target time period.

[0057] According to the above notation conventions, the energy conservation relationship is satisfied within the target time period: ; In the formula, the total net incoming power is... This indicates the net electricity consumption corresponding to the total incoming line metering channels within the target time period; the net electricity consumption of the outgoing lines has been measured. Indicates the set of measured lines The Middle Net power consumption corresponding to each outgoing line; net power consumption of unmeasured outgoing lines. Represents the set of unmeasured lines The corresponding net power consumption of the outgoing line; the net power consumption of the auxiliary circuit. This represents the net electrical charge consumed by the auxiliary circuit within the metering boundary; conductor loss electrical charge. This represents the dissipated electricity generated within the conductor's boundary; the equivalent electricity due to changes in energy storage. This represents the equivalent electricity corresponding to changes in energy storage within the boundary that are not repeatedly covered by other metering channels.

[0058] In this context, all conservation terms use a uniform unit of electrical quantity; the net electrical quantity consumed by the auxiliary circuit... Net power consumption of the line not measured Conductor power loss and the equivalent electricity of energy storage changes Existing metering devices, monitoring systems, protection systems, equipment design data, or other existing technologies can be used to obtain a limited effective range.

[0059] It should be noted that when any conservation term that must participate in the energy conservation relationship cannot obtain a finite effective range, the current conservation tightening is suspended, but the net energy range obtained from S002 is retained; conservation terms lacking a finite effective range cannot be forcibly determined to be zero, and the difference between the total incoming line and other known conservation terms cannot be directly allocated to other measured lines.

[0060] Furthermore, all variables on the right-hand side of the above energy conservation relation are recorded in the right-hand variable set. First, calculate the total net incoming power based on the sum of the current intervals of the conservation terms on the right. Tighten the current interval by intersecting it; then, for the set of variables on the right side... Any variable to be tightened in The update interval is determined according to the following formula: ; In the formula, the update interval Indicates the variable to be tightened The interval obtained after this energy conservation constraint; lower bound of total net incoming power. Upper limit of net incoming power These represent the lower and upper bounds of the total net incoming power range in the current iteration, respectively; the lower bounds of other conservation terms. Upper bounds of other conservation terms Represent the sets of variables on the right-hand side respectively. Excluding variables to be tightened The lower and upper bounds of the current interval for all other variables.

[0061] Specifically, during the same round of interval propagation, the latest interval obtained by updating the preceding conservation term can be used to continue calculating the subsequent conservation term; the controller repeatedly executes intersection tightening in a predetermined fixed order until the interval width change of adjacent rounds meets the preset convergence requirement, or reaches the preset maximum number of iterations.

[0062] Specifically, when the interval after intersection tightening of any conservation term is empty, a conservation conflict is determined; when the maximum number of iterations is reached but the convergence requirement is still not met, the interval that is still conservative can be retained, and a projection non-convergence flag can be set. During the period when the projection non-convergence flag is valid, the comparison of new candidate econometric configurations is suspended.

[0063] It should be noted that the numerical calculation of the upper and lower bounds of the guarantee interval can be performed by rounding outwards, fixed-point arithmetic, or other calculation methods with equivalent guarantee effects. During the numerical rounding process, the lower bound of the interval should not increase due to rounding, and the upper bound of the interval should not decrease due to rounding, so as to avoid the guarantee interval being narrowed unexpectedly due to calculation errors.

[0064] Specifically, after the compatibility constraint is completed through the energy conservation relationship, the final net energy range corresponding to each metering channel is taken as the energy allocation range of the corresponding metering object within the target time period.

[0065] S004: Determine the net volume budget based on the guaranteed parameters corresponding to the current metering configuration and the candidate metering configuration, and determine the target metering configuration based on the budget comparison results.

[0066] Specifically, the candidate metering configurations are derived from the limited configuration modes actually supported by the metering module; each candidate metering configuration may include synchronization period, qualified count edge selection mode, synchronization request hard timeout, maximum number of consecutive synchronization slot loss allowed, record retention strategy, metering or freeze working mode, and calibration guarantee version, synchronization error guarantee version and directional power guarantee version bound to the corresponding working mode.

[0067] The record retention strategy is used to ensure that the controller can save a sufficient number of historical frozen records to search for the preceding and following records corresponding to the start and end of the target time period. The synchronization error guarantee and the upper limit of the certified reading error corresponding to the candidate metering configuration are derived from the corresponding equipment data, calibration data, verification data or certification data of the corresponding metering mode. The controller cannot arbitrarily change the synchronization error guarantee or the upper limit of the certified reading error in order to reduce the candidate net quantity budget.

[0068] Specifically, for any candidate metering configuration Obtain candidate metering configuration Corresponding synchronization period Maximum number of consecutive synchronization slots lost. And synchronization error guarantee According to the synchronization period Maximum number of consecutive synchronization slots lost. And synchronization error guarantee Determine the span of authentication records : ; In the formula, the span of authentication records Indicates candidate metering configuration Record span guarantee for candidate budget authentication; synchronization period Indicates candidate metering configuration The corresponding synchronization period; the maximum allowed number of consecutive synchronization slot loss. Indicates the maximum number of synchronization slots that are allowed to have consecutive non-valid freeze records; synchronization error is guaranteed. Indicates candidate metering configuration The timing error of the corresponding synchronous freeze event is guaranteed.

[0069] It should be noted that the span of authentication records This serves as a guarantee budget before the actual issuance of candidate metering configurations; after the candidate metering configurations are actually in operation, they are no longer solely based on synchronization cycles. Instead of estimating the actual record span, the maximum possible true span is calculated based on the actual frozen time intervals corresponding to the actual preceding and subsequent records.

[0070] Furthermore, regarding direction and target endpoint Obtain candidate metering configuration Upper bound of corresponding certified reading error And directional power guarantee upper bound Based on the span of authentication records Upper bound of certified reading error and directional power guarantee upper limit Determine the single boundary guarantee budget : ; In the formula, the single-boundary guaranteed budget Indicates candidate metering configuration In direction and target endpoint Corresponding guarantee budget; upper bound of directional power guarantee This represents the upper bound of the directional power that can be guaranteed within the maximum possible real time range between the preceding and following records participating in the corresponding target boundary clamping; the upper bound of the certified reading error. This indicates that the upper bound of the recorded reading error can be effectively frozen to ensure coverage of the corresponding direction and target endpoint before the candidate metering configuration is actually issued.

[0071] In the aforementioned single-boundary guaranteed budget, the upper bound is guaranteed by directional power. and certification record span The defined energy term is used to cover the possible directional cumulative energy increase between the previous and subsequent records; the upper bound of the certified reading error is also included. The corresponding item is used to cover the cumulative energy reading error of the records before and after the freeze, as well as the worst-case width contribution when forming a guaranteed directional cumulative amount interval based on the above readings.

[0072] It should be noted that the upper limit of directional power guarantee is... It needs to cover the maximum possible true time range between the preceding and following records of the corresponding target boundary, and cannot only cover the target time period; when the existing directional power guarantee is only valid within the target time period, it cannot be directly used for the single boundary guarantee budget of the corresponding target boundary.

[0073] Furthermore, for the same candidate metering configuration, single-boundary guaranteed budgets are determined for the forward boundary of the target time period start, the reverse boundary of the target time period start, the forward boundary of the target time period end, and the reverse boundary of the target time period end; the four single-boundary guaranteed budgets are combined to form the candidate net volume budget. : ; In the formula, the candidate net volume budget Indicates candidate metering configuration A conservative upper bound for the net electricity consumption range corresponding to the complete target period; a single-boundary guaranteed budget at the starting point. Indicates direction The single-boundary guaranteed budget corresponds to the start of the target time period; the single-boundary guaranteed budget corresponds to the end of the target time period. Indicates direction The target time period ends with a single boundary guarantee budget.

[0074] It should be noted that the same candidate metering configuration comparison uses four single-boundary guarantee budgets formed by the same complete candidate metering configuration, and does not cross-combine different target boundary budgets corresponding to different candidate metering configurations.

[0075] Specifically, the current metering configuration and the candidate metering configuration adopt the same certification budget caliber. For the current metering configuration, the certification record span and the current net quantity budget are also formed based on the corresponding synchronization cycle, the maximum number of consecutive synchronization slot loss allowed, the synchronization error guarantee, the upper limit of the certification reading error, and the upper limit of the directional power guarantee.

[0076] Furthermore, the target metering configuration is determined from candidate metering configurations that have a net budget less than the current net budget and simultaneously meet the equipment execution conditions, data validity conditions, and shared resource access conditions. When there are multiple candidate metering configurations that meet the conditions, the target metering configuration can be determined based on the degree of budget improvement of each candidate metering configuration relative to the current metering configuration.

[0077] Among them, access to shared communication resources can be granted using existing scheduling, time slots, bandwidth, or resource reservation mechanisms in the fieldbus; when multiple metering objects simultaneously apply for communication resources that may conflict, the controller can uniformly confirm them serially, or a resource reservation method that can avoid duplicate occupation can be adopted.

[0078] S005: Distribute the target metering configuration to the corresponding metering module, and re-verify the target metering configuration based on the new freeze record after the target metering configuration actually takes effect.

[0079] Specifically, after the controller determines the target metering configuration, it sends the target metering configuration to the corresponding metering module. The controller's completion of sending the configuration command does not mean that the metering module has actually adopted the target metering configuration. Only after receiving the actual configuration generation acknowledgment returned by the metering module for the target metering configuration will the controller confirm that the target metering configuration has actually taken effect.

[0080] It should be noted that after the target metering configuration actually takes effect, a continuous freeze chain is re-established under the corresponding configuration generation of the target metering configuration; the freeze records formed by the old configuration generation can continue to be used for historical accounting or auditing, but they do not constitute a strict front-to-back squeeze record across configuration boundaries together with the freeze records formed by the new configuration generation.

[0081] Specifically, after the target metering configuration actually takes effect, S001 to S003 are re-executed for the first complete target time period. Based on the freeze records generated after the actual operation of the target metering configuration, the preceding record, the following record, the direction cumulative amount interval, the net power interval, and the power attribution interval are re-determined.

[0082] Furthermore, check whether the actual frozen record corresponding reading error boundary is subject to the upper limit of the certified reading error corresponding to the target metering configuration. Coverage; determine the maximum possible true span based on the actual freeze time interval corresponding to the actual preceding record and the actual following record, and check whether the maximum possible true span is affected by the span of the authentication record. Coverage; simultaneously check directional power to ensure upper limit. Whether it remains valid within the maximum possible real time frame between the actual preceding record and the actual following record.

[0083] The difference between the upper and lower bounds of the final energy allocation interval obtained after re-executing S002 and S003 is defined as the width of the energy allocation interval. When the width of the electrical energy distribution area Not greater than the candidate net volume budget Furthermore, if the reading error boundary, the maximum possible true span, and the effectiveness of the directional power guarantee corresponding to the actual frozen records all meet the corresponding requirements, the target metering configuration is determined to have passed this actual verification.

[0084] It should be noted that when the width of the electricity distribution area... Exceeding candidate net volume budget When this occurs, it indicates that the actual operating results have exceeded the guaranteed budget corresponding to the target metering configuration; at this point, the actual electricity allocation range cannot be artificially truncated to the candidate net quantity budget. Within this period, budget surpluses from other measurement objects cannot be used to compensate for the current measurement object.

[0085] Furthermore, when the target metering configuration verification fails and the original current metering configuration can still be restored, the controller reissues the original current metering configuration to the metering module; after receiving the actual configuration generation acknowledgment returned by the metering module for the original current metering configuration, it confirms that the original current metering configuration is actually effective, and re-establishes the continuous freeze chain under the corresponding configuration generation. After completing the necessary verification, it resumes the comparison of normal candidate metering configurations.

[0086] Numerical examples: Suppose a certain metering object is a unidirectional power receiving object, and the upper bound of the forward power guarantee is... The upper bound of the reverse power guarantee is The positive power is guaranteed to remain effective within the corresponding complete front and rear clamping window recorded before and after the target time period and target boundary.

[0087] Specifically, the current metering configuration adopts Synchronization period, synchronization error guaranteed to be The maximum allowed number of consecutive synchronization slot losses is 0, and the upper bound of the certified reading error corresponding to the current metering configuration is... Based on the above parameters, the span of the authentication records corresponding to the current metering configuration is: Based on the current metering configuration, the corresponding certification record span, directional power guarantee upper limit, and certification reading error upper limit, the current net volume budget is approximately [missing information]. .

[0088] Furthermore, candidate metering configuration J adopts Synchronization period, synchronization error guaranteed to be The maximum allowed number of consecutive synchronization slot losses is 0, and the upper bound of the certified reading error corresponding to candidate metering configuration J is... Based on the above parameters, the span of the certification records corresponding to candidate metering configuration J is: Based on the certification record span, directional power guarantee upper bound, and certification reading error upper bound, the candidate net quantity budget is approximately [missing information]. .

[0089] Among them, the candidate net budget corresponding to candidate metering configuration J is less than the current net budget. Therefore, when candidate metering configuration J simultaneously meets the equipment execution conditions, the data validity guarantee conditions, and the shared resource access conditions, candidate metering configuration J can be determined as the target metering configuration and enter the configuration distribution process.

[0090] For example, after the candidate metering configuration J actually takes effect, the maximum possible true span corresponding to a certain target boundary is calculated by using the actual preceding record and the actual following record through the actual freeze time interval. The maximum possible true span Smaller than the span of the authentication record Therefore, the corresponding records are checked for passing the authentication span.

[0091] Furthermore, assume that the reading error boundaries corresponding to the two actual freeze records are respectively and Neither of the two reading error boundaries exceeded the upper limit of the certified reading error corresponding to candidate metering configuration J. After re-executing S002 and S003 for the candidate metering configuration J corresponding to the first complete target time period, the width of the energy attribution interval is obtained. for .

[0092] Due to the width of the electricity distribution area Less than candidate net volume budget Furthermore, the reading error bound, maximum possible true span, and directional power guarantee effectiveness of the actual frozen records all meet the corresponding requirements. Therefore, candidate metering configuration J passed this actual verification.

[0093] It should be noted that when the maximum possible true span between the actual preceding record and the actual following record reaches approximately If the reading error boundary corresponding to any actual frozen record exceeds the upper limit of the certified reading error boundary corresponding to candidate metering configuration J, candidate metering configuration J cannot obtain the qualification for this effective budget coverage; the above values ​​are only used to illustrate the execution relationship between the current net budget, candidate net budget, actual record qualification and actual verification.

[0094] Example 2: Conservation pause processing.

[0095] Specifically, a certain electricity metering box has an unmeasured line. The unmeasured line has neither an effective independent metering channel nor can it obtain a finite power guarantee boundary through existing protection, monitoring or other technical means. In this case, the unmeasured line cannot obtain a finite effective range that can participate in the energy conservation relationship.

[0096] It should be noted that, under the above circumstances, the controller continues to retain the net power range obtained by the total incoming line metering channel and other measured line metering channels through S002, and sets a conservation pause flag; unmeasured lines cannot be forcibly determined to be zero, and the difference between the total incoming line and each measured line cannot be allocated to other measured lines.

[0097] Furthermore, when the finite effective range corresponding to the unmeasured line is subsequently obtained through independent metering, monitoring data, protection constraints, effective power limits, or other existing technologies, and other conservation conditions are met simultaneously, S003 is re-executed; after regaining valid conservation qualification, the conservation pause flag is cleared and the candidate metering configuration comparison is resumed.

[0098] Example 3: Processing of non-reconstructable and coarsely frozen records.

[0099] Specifically, when the counting cycle guarantee parameter is invalid or expired, the synchronization error guarantee fails, a frozen record that meets the strict front-to-back squeezing condition cannot be obtained, the hardware count difference cannot be uniquely recovered after the local hardware counter is rewound or reset, the continuity generation relationship is unclear, the configuration generation relationship is unclear, or the anchor point relationship is unclear, the corresponding target boundary or target time period enters an unreconfigurable state.

[0100] Furthermore, when the cumulative quantity interval corresponding to a single target boundary is empty, or when there is a conflict between the cumulative quantity interval corresponding to the start and end points of the target time period and the monotonically decreasing relationship of the cumulative electrical energy over time, it also enters an unreconfigurable state.

[0101] It should be noted that after entering the non-reconfigurable state, the controller retains the original freeze record and existing valid results that can stand alone, and saves the corresponding reason code. At the same time, it suspends the use of the corresponding measurement object to make new candidate measurement configuration comparisons; it will not use historical averages, adjacent measurement object values ​​or estimated center values ​​to replace the missing guarantee boundaries.

[0102] Specifically, freeze records that cannot meet the guarantee time conditions after the synchronization source temporarily fails, the time guarantee data expires, or the continuous freeze chain breaks are marked as coarse freeze records. Coarse freeze records can still save the original accumulated power, receiving time, equipment status, continuity generation, configuration generation, and related abnormal information for equipment operation display, fault diagnosis, trend analysis, or manual maintenance.

[0103] Among them, the coarse freeze record is not used as a formal pre- or post-record, does not participate in the guarantee of energy conservation constraints corresponding to S003, and does not participate in the qualification judgment of candidate metering configuration; when the synchronization conditions and continuity conditions are restored, a valid continuous freeze chain is re-established and the corresponding verification is completed again before normal processing is restored.

[0104] Example 4: Configuration status control.

[0105] Reference Figure 5 To ensure that metering configuration switching, verification, and anomaly recovery form a definite closed loop, the controller can be set to initialization state, normal state, configuration waiting state, configuration verification state, candidate cancellation state, non-reconfigurable state, anomaly recovery waiting state, and stop state.

[0106] Specifically, in the initialization state, the controller issues the basic metering configuration and waits for the metering module to return the actual configuration generation acknowledgment for the basic metering configuration; after receiving the actual configuration generation acknowledgment, it confirms that the basic metering configuration has actually taken effect and enters the configuration verification state, re-establishes the continuous freeze chain corresponding to the basic metering configuration, and completes the verification of the first complete target time period. After the verification is passed, it enters the normal state.

[0107] Furthermore, under normal conditions, the controller continuously collects frozen records and performs candidate metering configuration comparisons. After determining the target metering configuration that meets the conditions, the controller issues the target metering configuration and enters the configuration waiting state. After receiving the actual configuration generation acknowledgment returned by the metering module for the target metering configuration, the controller confirms that the target metering configuration has actually taken effect and enters the configuration verification state. After successful verification, the controller enters the normal state; if the verification fails, the controller enters the candidate cancellation state.

[0108] Specifically, in the candidate cancellation state, if the original current metering configuration can still be restored, the original current metering configuration will be reissued; after receiving the actual configuration generation acknowledgment returned by the metering module for the original current metering configuration and confirming that the original current metering configuration is actually effective, the historical valid qualification will not be directly inherited, but the corresponding continuous freeze chain will be re-established and the necessary verification will be completed again.

[0109] It should be noted that a maximum waiting time can be set in the configuration waiting state; if the actual configuration generation acknowledgment is not received from the metering module after the maximum waiting time, it is determined that the target metering configuration has not been effectively confirmed and enters the candidate cancellation state; the target metering configuration shall not be presumed to have actually taken effect based solely on the controller’s local configuration record or the device status that does not have a unique correspondence with the configuration generation.

[0110] Furthermore, in the non-reconfigurable state or the abnormal recovery waiting state, the controller can check the time source, calibration and parameter data, configuration generation, hardware count, continuous freeze chain and anchor point relationship according to the preset recovery cycle; after the abnormal conditions are eliminated, it re-enters the configuration verification process, and restores the normal state after regaining the valid time reconfiguration qualification and conservation qualification.

[0111] Example 5: Different execution locations.

[0112] Specifically, the adaptive power distribution method of the power metering box can be executed by the embedded controller inside the power metering box, or by a local concentrator or edge computing device connected through a deterministic or bounded delay link, or by a local processing device in collaboration with the backend main station or cloud platform.

[0113] It should be noted that when the communication link between the backend and the local processing device cannot meet the limited time guarantee required for the reconstruction of the actual freeze time interval, the hardware freeze, hardware count anchoring, and determination of the actual freeze time interval need to be completed in the local processing device that can meet the corresponding time guarantee. The backend can receive freeze records with established effective time relationships, actual freeze time intervals, or further processing results for performing energy conservation constraints, candidate metering configuration comparisons, or other management functions.

[0114] Regardless of where the metering configuration decision function is set, the target metering configuration is ultimately executed by the actual metering module, and the actual configuration generation receipt returned by the metering module for the target metering configuration is used as the basis for determining whether the target metering configuration has actually taken effect.

[0115] Example 6: System Implementation.

[0116] Reference Figure 2 The adaptive power distribution system of the power metering box includes a controller and multiple metering modules; the multiple metering modules correspond to the main incoming metering channel and multiple outgoing metering channels respectively. Each metering module includes a cumulative power register that is separate for forward and reverse directions and is monotonically non-decreasing, a local hardware counter, a synchronous latch interface, a continuity generation flag, and a configuration generation receipt interface.

[0117] Specifically, the controller may have anchor point and time interval processing functions, cumulative quantity clamping function, conservation processing function, candidate metering configuration management function, configuration execution and acknowledgment function, actual verification function, and state control function. The above functions can be implemented by a combination of software programs, processors, memory, metering chips, and communication interfaces, or by multiple processing devices working together. It is not required that each function corresponds to an independent physical module.

[0118] Among them, the anchor point and time interval processing function ensures that the frozen record corresponds to the real frozen time interval based on the synchronization reference, hardware counting and counting cycle; the cumulative quantity squeezing function searches for effective previous and subsequent records for the target boundary, and forms the target boundary direction cumulative quantity interval and the target time period net quantity interval based on the direction cumulative energy and reading error boundary.

[0119] Specifically, the energy conservation processing function establishes an energy conservation relationship based on the total incoming line, each outgoing line, auxiliary circuit, conductor loss, and energy storage changes, and performs interval compatibility checks and interval constraint propagation; the candidate metering configuration management function reads the configuration modes actually supported by the metering module and obtains the corresponding synchronization period, synchronization error guarantee, upper limit of certified reading error, maximum allowed number of consecutive synchronization slot loss times, and upper limit of directional power guarantee, thereby forming the current net quantity budget and candidate net quantity budget.

[0120] Furthermore, the configuration execution and receipt function is used to issue the target metering configuration to the metering module and obtain the actual configuration generation receipt returned by the metering module; the actual verification function redetermines the real freeze time interval after the target metering configuration actually takes effect and performs energy conservation processing, and verifies the target metering configuration based on the reading error boundary, the maximum possible real span, and the width of the energy attribution interval corresponding to the actual freeze record.

[0121] Other implementation methods: It should be noted that the parameters used for the final guarantee direction cumulative range, the energy attribution range, and the net budget are information that can form deterministic finite boundaries; historical averages, moving averages, statistical confidence intervals, or probability models can be used for equipment display, fault warning, operation and maintenance analysis, or candidate ranking, but cannot replace guarantee time boundaries, reading error boundaries, or candidate budget parameters.

[0122] Specifically, in the preferred embodiment, a single-boundary guarantee budget is formed by using the upper bound of the certified reading error corresponding to the candidate metering configuration, and the coverage effectiveness of the upper bound of the certified reading error is verified according to the reading error boundary corresponding to the actual frozen record after the candidate metering configuration actually takes effect. In other embodiments, when other equivalent guarantee interval width upper bounds can be formed based on the deterministic absolute error boundaries corresponding to the preceding and following records, the corresponding error representation method can also be used.

[0123] Specifically, for conductor losses or energy storage changes within the metering boundary, when existing metering, monitoring, or equipment management interfaces can directly obtain a finite effective range, the corresponding data should be used directly first. When a finite effective range cannot be directly obtained, but reliable equipment design parameters are available, existing electrical engineering technology can be used to form a corresponding conservative boundary. For example, a conservative range for energy storage changes can be formed based on the equipment design parameters corresponding to inductance or capacitance, as well as current and voltage guarantees. This invention does not require the use of a specific energy storage calculation model.

[0124] The above embodiments are used to illustrate the technical solution of the present invention, and not to limit the scope of protection of the present invention; any equivalent substitutions or modifications made by those skilled in the art without departing from the technical concept of the present invention shall fall within the scope of protection of the present invention.

Claims

1. An adaptive power distribution method for an electricity metering box, characterized in that, include: Obtain the freeze records, reading error limits, and time reference information of the main incoming metering channel and multiple outgoing metering channels; Based on the time reference information, the actual freezing time interval of each of the frozen records is determined. For each boundary of the target time period, the preceding and following records located before and after the corresponding boundary are selected. The net power range of each metering channel is obtained by combining the directional cumulative energy, reading error boundary and the monotonically non-decreasing relationship of directional cumulative energy with time of the preceding and following records. Based on the energy conservation relationship of the main incoming line, each outgoing line, auxiliary circuit, conductor loss and energy storage change, the energy allocation range of each metering channel is obtained by constraining each net energy range. Obtain the guarantee parameters corresponding to the current metering configuration and the candidate metering configuration. When all items in the energy conservation relationship have finite effective intervals and there is no conservation conflict, determine the current net quantity budget and the candidate net quantity budget based on the guarantee parameters, and determine the target metering configuration based on the budget comparison results. The target metering configuration is sent to the corresponding metering module. After the target metering configuration takes effect, it is re-verified according to the new freeze record to realize adaptive power distribution of the power metering box.

2. The adaptive power distribution method for power metering boxes according to claim 1, characterized in that, The acquisition of the freeze record and the time reference information includes: The metering module is controlled to latch the forward accumulated energy, reverse accumulated energy, hardware count value, continuity generation, status information and configuration generation at the qualifying counting edge to obtain the frozen record; In response to a synchronization request or a valid hardware timestamp anchoring event, the reference time, anchor point hardware count value, continuity generation, synchronization error guarantee, and configuration generation are obtained to obtain the anchor point record as the time reference information. Based on the continuity generation, the configuration generation, and the hardware count value, a unique counting relationship is established between the frozen record and the anchor record in the same continuous frozen chain.

3. The adaptive power distribution method for power metering boxes according to claim 2, characterized in that, The determination of the actual freeze time interval includes: Guarantee the counting cycle; The hardware count difference is determined based on the hardware count value of the anchor point recorded and the hardware count value of the frozen record. Based on the reference time recorded by the anchor point, the hardware count difference, the count period guarantee, and the synchronization error guarantee, the lower and upper bounds of the actual freezing time of the frozen record are determined, and the actual freezing time interval is obtained.

4. The adaptive power distribution method for power metering boxes according to claim 1, characterized in that, The determination of the net power range includes: Based on the cumulative directional energy and reading error limits of the previous and subsequent records, and combined with the monotonically increasing relationship of the cumulative directional energy over time, the intervals of cumulative directional energy corresponding to each boundary of the target time period are obtained. When the directional cumulative energy interval between the start and end of the target time period is compatible with the monotonically decreasing relationship of the directional cumulative energy over time, the positive directional energy interval and the reverse directional energy interval are obtained based on the directional cumulative energy interval. The net energy range is obtained based on the positive energy range and the negative energy range.

5. The adaptive power distribution method for power metering boxes according to claim 1, characterized in that, The constraints on each of the net power ranges include: The total net incoming power, the net outgoing power, the net power consumption of auxiliary circuits, the power loss of conductors, and the equivalent power of energy storage changes are determined as conservation terms. When each of the conservation terms has a finite effective interval, based on the energy conservation relationship and the current interval of other conservation terms, the current interval of each conservation term is subjected to intersection tightening and repeated propagation to obtain the energy attribution interval. If any of the conservation terms cannot obtain a finite effective range, the intersection tightening is suspended and the existing net electricity range is retained, and the corresponding conservation term is not set to zero or the corresponding difference is allocated to other outgoing lines; if the range of any of the conservation terms after intersection tightening is empty, the conservation conflict is determined to have occurred and the candidate metering configuration comparison is suspended.

6. The adaptive power distribution method for power metering boxes according to claim 1, characterized in that, The determination of the current net volume budget and the candidate net volume budget includes: The guaranteed parameters include the synchronization period, the maximum number of consecutive synchronization slots lost, the synchronization error guarantee, the upper limit of the authentication reading error, and the upper limit of the directional power guarantee. For the current metering configuration and each of the candidate metering configurations, the corresponding authentication record span is determined based on the synchronization period, the maximum allowed number of consecutive synchronization slot loss times, and the synchronization error guarantee. Based on the certification record span, the upper bound of the certification reading error, and the upper bound of the directional power guarantee, determine the single boundary guarantee budget corresponding to each boundary of the target time period, and determine the corresponding net quantity budget based on each of the single boundary guarantee budgets corresponding to the same metering configuration.

7. The adaptive power distribution method for a power metering box according to claim 6, characterized in that, The determination of the target metering configuration based on the budget comparison results includes: The target metering configuration is determined from the candidate metering configurations that are less than the current net budget and meet the equipment execution conditions, data validity conditions, and shared resource access conditions. When there are multiple candidate metering configurations that meet the conditions, the target metering configuration is determined based on the degree of budget improvement of each candidate metering configuration relative to the current metering configuration. The target metering configuration is sent to the metering module, and the actual effective status of the target metering configuration is confirmed based on the actual configuration generation receipt returned by the metering module.

8. The adaptive power distribution method for power metering boxes according to claim 7, characterized in that, The re-verification of the target metering configuration includes: A new continuous freeze chain is established under the configuration generation corresponding to the target metering configuration. The energy attribution interval is re-determined based on the freeze records after actual effectiveness. It is checked whether the reading error boundary corresponding to the actual freeze record is covered by the upper bound of the certified reading error, whether the maximum possible true span between the previous record and the subsequent record is covered by the span of the certified record, and whether the upper bound of the directional power guarantee is continuously effective within the maximum possible true time range between the previous record and the subsequent record. When the width of the energy attribution interval is not greater than the candidate net quantity budget and all checks are satisfied, the target metering configuration is determined to be valid. If the verification fails and the current metering configuration can be restored, the current metering configuration is reissued and verified.

9. The adaptive power distribution method for power metering boxes according to claim 3, characterized in that, Also includes: In response to the failure of the counting cycle guarantee, the failure of the synchronization error guarantee, the inability to obtain the previous record and the subsequent record simultaneously, the inability to uniquely recover the hardware counting difference, the unclear relationship between the continuity generation, the configuration generation or the anchor record and the frozen record, it is determined that the corresponding target boundary or target time period is not reconstructible, the original record and existing valid results are retained and the candidate metering configuration comparison is paused. Freeze records that fail to meet the guarantee time conditions are identified as coarse freeze records. These coarse freeze records are not used as the preceding or following records and are not involved in the constraints of the energy conservation relationship or the comparison of candidate metering configurations. After the abnormal conditions are eliminated, the actual freeze time interval is redefined, and the comparison of candidate metering configurations is resumed when all items in the energy conservation relationship have finite effective intervals and there is no conservation conflict.

10. An adaptive power distribution system for a power metering box, characterized in that, Includes a controller and multiple metering modules; The multiple metering modules correspond to the main incoming metering channel and multiple outgoing metering channels respectively. Each metering module has a forward and reverse discrete and monotonically non-decreasing cumulative energy register, a local hardware counter, a synchronous latch interface, a continuous generation flag, and a configuration generation receipt interface. The controller is used to acquire freeze records, reading error boundaries and time reference information, determine the actual freeze time interval of the freeze records based on the time reference information, select the preceding and following records of the actual freeze time intervals located before and after the corresponding boundaries for each boundary of the target time period, and obtain the net power range of each metering channel based on the directional cumulative energy, reading error boundaries and the monotonic relationship of directional cumulative energy with time of the preceding and following records. Based on the energy conservation relationship of the main incoming line, each outgoing line, auxiliary circuit, conductor loss and energy storage change, the net energy range is constrained to obtain the energy allocation range; the current net energy budget and candidate net energy budget are determined based on the guaranteed parameters of the current metering configuration and candidate metering configuration, and the target metering configuration is determined based on the budget comparison results; the target metering configuration is issued, and the target metering configuration is verified based on the new freeze record after it actually takes effect.