A method and device for measuring electric energy of a smart meter and a smart meter
By monitoring the electricity load, dynamically adjusting the collection frequency and entering low-power mode or sleep state, the problem of power consumption and resource waste caused by high-frequency collection of smart meters is solved, and the accuracy and energy efficiency balance of electric energy measurement are achieved.
Patent Information
- Application Number
- CN202411081396.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-08-08
AI Technical Summary
When smart meters collect high-frequency signals, they increase power consumption and waste computing resources, affecting measurement accuracy and energy efficiency.
By monitoring the power load, dynamically adjust the collection frequency, enter low-power metering mode or low-power sleep mode, reduce the sampling frequency or enter regular sleep state, reducing unnecessary sampling and data processing.
On the premise of ensuring the accuracy of electric energy measurement, it can significantly reduce the overall energy consumption of smart meters, optimize resource utilization, reduce wear and aging, and improve equipment reliability.
Smart Images

Figure CN118604442B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electric energy metering, and in particular to an electric energy metering method and device for a smart meter and a smart meter. Background Art
[0002] In modern power systems, smart meters have become the main tool for measuring energy consumption, and are mainly used in energy management systems, digital substations, distribution networks, and smart buildings. Smart meters obtain relevant energy measurement parameters through sampling circuits, such as collecting analog signals of current and voltage on the power consumption side, and the metering chip converts the analog signals into digital signals to measure the consumed energy.
[0003] In order to ensure the accuracy of measurement, smart meters usually collect analog signals of current and voltage on the power consumption side at a fixed high frequency for energy measurement. However, the high-frequency signal collection of smart meters not only increases the power consumption of smart meters, but also wastes the computing resources of smart meters. Summary of the invention
[0004] The present application provides an electric energy metering method and device for a smart meter, and a smart meter, which solves the technical problem that the current metering chip of the smart meter measures electric energy at a fixed collection frequency, which is not conducive to the low-power design of the smart meter, and achieves the technical effect of being able to flexibly adjust the collection frequency according to the power load situation to reduce the power consumption of the smart meter, thereby ensuring that the smart meter achieves a balance between measurement accuracy and energy efficiency.
[0005] In order to achieve the above objectives, the main technical solutions adopted in this application include:
[0006] In a first aspect, an embodiment of the present application provides an electric energy metering method of a smart meter, wherein the smart meter has a low power consumption metering mode and a low power consumption sleep mode, and the method includes:
[0007] Sampling the real-time metering parameters of the electricity consumption end, and performing electric energy metering according to the sampled real-time metering parameters;
[0008] When it is detected that the real-time metering parameter is in a low fluctuation state, monitoring the power load of the power consumption end according to the real-time metering parameter;
[0009] If the current power load of the power consumption end is greater than a preset threshold, the sampling frequency of the real-time metering parameter is reduced so that the smart meter enters the low power consumption metering mode;
[0010] If the current power load of the power consumption end is less than or equal to a preset threshold, the smart meter is controlled to enter the low-power sleep mode, wherein the low-power sleep mode means that the smart meter enters the sleep state periodically and samples the real-time metering parameters when awake.
[0011] The electric energy metering method proposed in the embodiment of the present application can monitor and analyze the changes in the electric load in real time, and can realize accurate electric energy metering at a normal sampling frequency when the load changes greatly. When the load changes slightly, it can timely capture the situation where the electric load changes less at the power consumption end according to the fluctuation of the real-time metering parameters, and then choose to enter the low-power metering mode or low-power sleep mode according to the specific situation of the power load, so as to realize the dynamic adjustment of the sampling frequency of the smart meter when performing electric energy metering, effectively reduce the over-sampling and data processing of the real-time metering parameters by the smart meter, and can enter the sleep state in the extreme situation where there is no electric load at the power consumption end by setting the corresponding low-power sleep mode in the non-essential period, so as to minimize the energy consumption of the smart meter.
[0012] To sum up, the embodiments of the present application can adaptively reduce the sampling frequency or even enter a periodic sleep state when the power load is low, thereby significantly reducing the overall energy consumption of the smart meter while ensuring the electricity metering function, and realizing the optimal utilization of the resources of the smart meter. It can not only reserve more computing resources for other functions of the smart meter, such as data communication and fault monitoring, but also reduce the wear and aging of the smart meter during the high-frequency operation phase, thereby improving the equipment reliability of the smart meter.
[0013] Optionally, when the smart meter enters the low-power sleep mode, the duration of the sleep state is greater than the duration of the wake-up state.
[0014] The embodiment of the present application aims at the low-power sleep mode, and reduces energy consumption by setting the sleep state, and maintains the electric energy metering function of the smart meter by setting the wake-up state. Furthermore, by setting the duration of the sleep state to be longer than the duration of the wake-up state, the smart meter can achieve the effect of meeting the electric energy metering requirements of the current power load and effectively reducing energy consumption.
[0015] Optionally, the monitoring that the real-time metering parameter is in a low fluctuation state includes:
[0016] Obtaining a sliding window of a preset width, moving the sliding window with a preset step length, and comparing the real-time measurement parameters in the sliding window before and after the movement;
[0017] When the sliding window is moved continuously for a preset number of times and the real-time metering parameters in the sliding window before and after the movement are the same, it is determined that the real-time metering parameters are in a low fluctuation state.
[0018] The embodiment of the present application realizes the judgment of the fluctuation state of the real-time metering parameters by continuous comparison and multiple verification of the parameters in the sliding window, and judges it as a low fluctuation state when the parameters are monitored to be continuously stable. It can be seen that this fine-grained fluctuation monitoring method can accurately capture the parameter changes related to the electric energy metering at the power consumption end, ensure the accuracy of fluctuation monitoring and reduce the possibility of misjudgment, thereby improving the ability to accurately perceive the changes in the power load at the power consumption end.
[0019] Optionally, reducing the sampling frequency of the real-time metering parameter includes:
[0020] Determining a stable load period and a fluctuating load period of the power consumption end during a day;
[0021] In the case where the low fluctuation state occurs in the stable load period, taking the inverse of the width of the sliding window as the current sampling frequency of the smart meter;
[0022] In the case where the low fluctuation state occurs during the fluctuating load period, a preset adjustment coefficient is obtained, and a product of the preset adjustment coefficient and the inverse of the width of the sliding window is used as the current sampling frequency of the smart meter.
[0023] The embodiment of the present application divides a day into a stable load period and a fluctuating load period, and on this basis realizes accurate adjustment of the sampling frequency. It can adjust the quantitative strategy of reducing the sampling frequency accordingly according to the daily electricity consumption habits of the load power consumption end, so that when the adjusted current sampling frequency is used for parameter sampling, it can satisfy the electric energy metering sampling under the fluctuating state, and can maintain a sufficient sampling frequency to capture the load fluctuation situation with uncertain general direction, thereby improving the flexibility of sampling frequency adjustment and random response capability.
[0024] Optionally, the determining of the stable load period and the fluctuating load period of the power consumption terminal in a day includes:
[0025] Acquire historical load data of the power consumption terminal from several days ago to the current date, and fit the historical load data according to the time sequence of one day to obtain a historical load fitting sequence of the power consumption terminal in one day;
[0026] Dividing the historical load fitting sequence into a plurality of subsequences according to preset intervals, and analyzing the variance of each subsequence;
[0027] The time interval corresponding to the subsequence whose variance is lower than the preset variance threshold is taken as the stable load period, and the time interval whose variance is higher than the preset variance threshold is taken as the fluctuating load period.
[0028] The embodiments of the present application take into account that the electricity usage habits of the electricity user usually have a certain time sequence. Therefore, in order to make the sampling frequency of the smart meter more in line with the actual electricity usage habits, an adjustment mechanism is set for the current sampling frequency based on the reference historical load conditions, so that the adjustment of the current sampling frequency is more in line with the actual electricity usage habits of the electricity user.
[0029] Optionally, when the smart meter enters the low power consumption metering mode, the method further includes:
[0030] The real-time metering parameters acquired at two adjacent sampling moments are compared, and when the comparison result shows that the real-time metering parameters are different, it is determined that the low fluctuation state is eliminated, and the smart meter is controlled to exit the low power consumption metering mode.
[0031] The embodiment of the present application realizes timely monitoring when the low fluctuation state is eliminated by setting a parameter comparison mechanism at two adjacent sampling moments, so as to prevent the occurrence of electric energy metering errors caused by continuing to use a reduced sampling frequency, and ensure that the low power consumption metering mode can be stopped in time according to the real-time power consumption situation, thereby meeting the accuracy requirements of electric energy metering.
[0032] Optionally, when it is determined that the low fluctuation state is eliminated, the method further includes:
[0033] Acquire pre-cached electric energy metering traceback data, wherein the electric energy metering traceback data includes real-time metering parameters acquired between the two adjacent sampling moments;
[0034] Measuring the electric energy between the two adjacent sampling moments according to the electric energy metering backtracking data to obtain the electric energy compensation amount;
[0035] The error compensation is performed on the current electric energy measurement result based on the electric energy compensation amount.
[0036] The embodiment of the present application utilizes electric energy metering backtracking data to compensate for the electric energy metering error caused by reducing the acquisition frequency during the switching stage between the low-power metering mode and the normal metering mode, so that the smart meter can avoid energy waste caused by excessive sampling and data processing, and ensure the accuracy of the electric energy metering results, which is conducive to eliminating the electric energy metering error caused by reducing the sampling frequency.
[0037] Optionally, when it is monitored that the real-time metering parameter is not in a low fluctuation state, the method further includes:
[0038] The current sampling frequency is maintained to sample the real-time metering parameters of the electricity consumption end.
[0039] The embodiment of the present application can measure electric energy at the normal high sampling frequency of the smart meter when the load fluctuation at the electricity consumption end is large, thereby achieving a low power consumption design without affecting the normal accurate electric energy measurement function of the smart meter.
[0040] In a second aspect, an embodiment of the present application provides an electric energy metering device of a smart meter, wherein the smart meter has a low power consumption metering mode and a low power consumption sleep mode, and the electric energy metering device includes:
[0041] A sampling unit, used to sample real-time metering parameters of the electricity consumption end;
[0042] A metering unit, used for measuring electric energy according to the sampled real-time metering parameters;
[0043] A monitoring unit, configured to monitor the real-time metering parameter, and when it is detected that the real-time metering parameter is in a low fluctuation state, monitor the power load of the power consumption end according to the real-time metering parameter;
[0044] The metering unit is also used to reduce the sampling frequency of the real-time metering parameters when the current power load of the power consumption end is greater than a preset threshold value, so that the smart meter enters the low-power metering mode, and to control the smart meter to enter the low-power sleep mode when the current power load of the power consumption end is less than or equal to the preset threshold value, wherein the low-power sleep mode means that the smart meter periodically enters the sleep state and samples the real-time metering parameters when it is awake.
[0045] The electric energy metering method proposed in the embodiment of the present application can monitor and analyze the changes in the power load in real time, and can achieve accurate electric energy metering at a normal sampling frequency when the load changes greatly. When the load changes slightly, it can timely capture the situation of low power load at the power consumption end according to the fluctuation of the real-time metering parameters, and then realize the dynamic adjustment of the sampling frequency of the smart meter when performing electric energy metering according to the specific situation of the power load, which effectively reduces the over-sampling and data processing of the real-time metering parameters by the smart meter. In addition, the embodiment of the present application also takes into account the extreme situation that there is no power load at the power consumption end, and by setting the corresponding low-power sleep mode, it enters the sleep state during non-essential periods, thereby minimizing the energy consumption of the smart meter.
[0046] To sum up, the embodiments of the present application can adaptively reduce the sampling frequency or even enter a periodic sleep state when the power load is low, thereby significantly reducing the overall energy consumption of the smart meter while ensuring the electricity metering function, and achieving optimal utilization of the resources of the smart meter. It can not only reserve more computing resources for other functions of the smart meter, such as data communication and fault monitoring, but also reduce the wear and aging of the smart meter under high sampling frequency operation.
[0047] On the third aspect, an embodiment of the present application proposes a smart meter, comprising a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to execute the electric energy metering method of the smart meter described in the above embodiment.
[0048] The electric energy metering method proposed in the embodiment of the present application can monitor and analyze the changes in the power load in real time, and can achieve accurate electric energy metering at a normal sampling frequency when the load changes greatly. When the load changes slightly, it can timely capture the situation of low power load at the power consumption end according to the fluctuation of the real-time metering parameters, and then realize the dynamic adjustment of the sampling frequency of the smart meter when performing electric energy metering according to the specific situation of the power load, which effectively reduces the over-sampling and data processing of the real-time metering parameters by the smart meter. In addition, the embodiment of the present application also takes into account the extreme situation that there is no power load at the power consumption end, and by setting the corresponding low-power sleep mode, it enters the sleep state during non-essential periods, thereby minimizing the energy consumption of the smart meter.
[0049] To sum up, the embodiments of the present application can adaptively reduce the sampling frequency or even enter a periodic sleep state when the power load is low, thereby significantly reducing the overall energy consumption of the smart meter while ensuring the electricity metering function, and realizing the optimal utilization of the resources of the smart meter. It can not only reserve more computing resources for other functions of the smart meter, such as data communication and fault monitoring, but also reduce the wear and aging of the smart meter during high-frequency operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0051] Figure 1 A schematic diagram of a flow chart of an electric energy metering method for a smart meter proposed in an embodiment of the present application;
[0052] Figure 2 A schematic diagram of components of a smart meter proposed in an embodiment of the present application;
[0053] Figure 3 A schematic diagram of the structure of an electric energy metering device of a smart meter proposed in an embodiment of the present application. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0055] As a new generation of digital energy metering products, when the smart energy meter is working, the analog signals of the three-phase voltage and three-phase current of the power consumption end are collected through the voltage transformer and the current transformer respectively. At the same time, the metering chip samples the analog signals collected by the voltage transformer and the current transformer at a certain sampling frequency and converts them into digital signals. Subsequently, the converted digital signals are measured by the microcontroller (Micro Controller Unit, MCU) to obtain the instantaneous current and voltage values. The load parameters such as active power, reactive power and apparent power of the power consumption end can be calculated through algorithms such as Fourier transform, and then the consumed electric energy is calculated according to the integral relationship between load and time to realize the electric energy metering of the power consumption end.
[0056] In some application scenarios, the electricity consumption habits of the electricity users usually have a certain time sequence. For example, in the household scenario, there are usually peak and valley periods in a day. Users usually do not use too many electrical appliances in the late night and early morning hours. For example, in the scenario of an industrial park, the change in its electricity load is strongly correlated with the employees' commuting time, that is, the electricity consumption habits of the electricity users usually have a certain time sequence, and its trend is cyclical. It can be seen that in the above application scenarios, the electricity load during the low-power consumption period is usually stable and unchanged. In order to ensure the accuracy of measurement in related technologies, the metering chip of the smart meter usually adopts a fixed and higher sampling frequency for signal sampling and electric energy measurement, which leads to the use of too high a frequency during the low-power consumption period, which not only increases the power consumption of the smart meter, but also causes a waste of computing resources of the smart meter. At the same time, unnecessary high-frequency sampling and measurement during the low-power consumption period will also affect the service life and performance of functional components such as the metering chip in the smart meter.
[0057] The electric energy measurement method of the smart meter provided in this manual can be applied to Figure 2 The system architecture of the electric energy meter is shown. Figure 2 The components of the smart meter are shown, including a voltage transformer 10 , a current transformer 20 , a metering chip 30 , a microcontroller 40 , and a memory module 50 , wherein the memory module 50 includes an SDRAM buffer 51 and a FLASH memory 52 .
[0058] According to an embodiment of the present application, an embodiment of an electric energy metering method for a smart meter is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0059] In this embodiment, a method for measuring electric energy is provided, which can be used in electric energy measuring terminals such as the above-mentioned smart meter. Figure 1 is a flow chart of an electric energy metering method according to an embodiment of the present application, such as Figure 1 As shown, the process includes the following steps:
[0060] Step S1, sampling the real-time metering parameters of the electricity consumption end, and performing electric energy metering according to the sampled real-time metering parameters.
[0061] In the embodiment of the present application, the real-time metering parameters include the three-phase voltage and phase current of the power consumption end. Under normal power consumption at the power consumption end, the real-time metering parameters are sampled, processed and power metered at a conventional sampling frequency. That is, the embodiment of the present application can monitor and analyze the change of power load in real time through step S1, and can achieve accurate power metering at a normal sampling frequency when the load changes greatly.
[0062] Step S3: when it is detected that the real-time metering parameter is in a low fluctuation state, monitor the power load of the power consumption end according to the real-time metering parameter.
[0063] Since the power load is determined by the instantaneous power obtained by converting the three-phase voltage and the three-phase current into a digital signal and performing a product operation, the fluctuation of the real-time metering parameters, that is, the fluctuation of the three-phase voltage and the three-phase current, will inevitably cause the fluctuation of the power load. Therefore, the embodiment of the present application can timely capture the situation where the power load change at the power consumption end is low according to the fluctuation of the real-time metering parameters. Then, according to the specific situation of the power load, it is selected to enter the low-power metering mode or the low-power sleep mode to realize the dynamic adjustment of the sampling frequency of the smart meter when measuring electric energy.
[0064] Step S5: if the current power load of the power consumption end is greater than a preset threshold, the sampling frequency of the real-time metering parameter is reduced so that the smart meter enters the low power consumption metering mode.
[0065] The situation that the current user load is greater than the preset threshold value indicates that there is a certain power load at the current power consumption end, but the change range of the power load is small or even zero. Therefore, it can be considered to switch to the low-power metering mode to reduce the sampling frequency of the metering chip to avoid excessive sampling and metering processing at an excessively high frequency, thereby realizing the low-energy consumption design of the smart meter.
[0066] Step S7: if the current power load of the power consumption end is less than or equal to a preset threshold, the smart meter is controlled to enter the low-power sleep mode, wherein the low-power sleep mode means that the smart meter periodically enters the sleep state and samples the real-time metering parameters when awake.
[0067] The current user load is less than or equal to the preset threshold, indicating that the current power load of the power user is not only small in change, but also extremely small to the extent that it can be ignored, which can be regarded as zero power load, that is, the power user does not use electricity. The embodiment of the present application takes this extreme situation into consideration, and switches to a low-power sleep mode for this purpose, so that the power user can enter a sleep state at an unnecessary time when there is no power load at the power user, thereby minimizing the energy consumption of the smart meter.
[0068] The electric energy metering method of the smart meter provided in this embodiment can monitor and analyze the changes in the power load in real time, and choose to enter the low-power metering mode or the low-power sleep mode according to the specific conditions of different power loads, thereby realizing dynamic adjustment of the sampling frequency of the smart meter when performing electric energy metering, effectively reducing the over-sampling and data processing of the real-time metering parameters by the smart meter, and minimizing the energy consumption of the smart meter.
[0069] It can be seen that the embodiments of the present application can adaptively reduce the sampling frequency or even enter a periodic sleep state when the power load change is low, thereby significantly reducing the overall energy consumption of the smart meter while ensuring the electricity metering function, and realizing the optimal utilization of the resources of the smart meter. It can not only reserve more computing resources for other functions of the smart meter, such as data communication and fault monitoring, but also reduce the wear and aging of the smart meter during the high-frequency operation phase, and improve the equipment reliability of the smart meter.
[0070] In some optional implementations, when the smart meter enters the low-power sleep mode, the duration of the sleep state is greater than the duration of the wake-up state.
[0071] The embodiment of the present application aims at the low-power sleep mode, and achieves the purpose of reducing energy consumption by setting the sleep state, and maintains the electric energy metering function of the smart meter by setting the wake-up state. It can be seen that only when the duration of the sleep state is greater than the duration of the wake-up state, the smart meter can achieve lower energy consumption relative to the low-power metering mode, so that the smart meter can meet the electric energy metering requirements of the current power load situation and can minimize the energy consumption of the smart meter during non-essential periods.
[0072] It should be noted that when the smart meter enters the low-power sleep mode, Figure 2 The metering chip 30, the memory module 50 and the microcontroller 40 of the smart meter shown are all in a stopped state except for the clock module. The clock module in the microcontroller 40 is used to time the sleep state to play a periodic wake-up function. When entering the wake-up state, the metering chip 30, the microcontroller 40 and the memory module 50 resume the working state, and perform real-time metering parameter sampling and electric energy metering at the sampling frequency before entering the low-power sleep mode during the duration of the wake-up state. In addition, the voltage transformer 10 and the current transformer 20 are still in the working state in the low-power sleep mode. The purpose is that once the power consumption behavior occurs at the power consumption end, and then the three-phase voltage and three-phase current fluctuations are generated, the voltage transformer 10 and the current transformer 20 can capture this fluctuation in time, and trigger the smart meter to exit the low-power sleep mode to prevent the omission of electric energy metering.
[0073] In some optional implementations, the monitoring that the real-time metering parameter is in a low fluctuation state includes:
[0074] Step S310, obtaining a sliding window of a preset width, moving the sliding window with a preset step length, and comparing the real-time measurement parameters in the sliding window before and after the movement;
[0075] Step S320: When the sliding window is moved continuously for a preset number of times and the real-time metering parameters in the sliding window before and after the movement are the same, it is determined that the real-time metering parameters are in a low fluctuation state.
[0076] Sliding window is a data processing method that can be used to solve the problem of finding the properties of continuous intervals that meet certain conditions. It is mainly used to process sub-arrays or sub-sequences in array or sequence data. The main idea is to maintain a window of fixed width and slide along the data sequence to efficiently calculate the data features in the window. The specific process of using the sliding window to realize the low-fluctuation state monitoring of the real-time metering parameters in the embodiment of the present application is described in detail below.
[0077] First, the sliding window is initialized, and the initial position and width of the sliding window are set. Subsequently, the sliding window is moved on the timing sequence of the real-time metering parameters with a preset step size. After each movement, the real-time metering parameters in the current sliding window will be compared. If the comparison result shows that the real-time metering parameters in the current sliding window are the same, it means that within the time period corresponding to the current sliding window, the three-phase voltage and three-phase current of the power consumption end have not changed, that is, the power load of the power consumption end remains stable. On this basis, if the sliding window is moved for multiple consecutive times and the comparison result is the above-mentioned comparison result and the consecutive number of times reaches the preset number, it means that the power load of the current power consumption end has not changed within a certain set length period, that is, the power load is in a low fluctuation state. It should be noted that the preset number of times can be set manually according to actual needs. Generally speaking, the larger the preset number of times, the more accurate the monitoring result of the low fluctuation state will be.
[0078] The embodiment of the present application realizes the judgment of the fluctuation state of the real-time metering parameters by continuous comparison and multiple verification of the parameters in the sliding window, and judges it as a low fluctuation state when the parameters are monitored to be continuously stable. It can be seen that this fine-grained fluctuation monitoring method can accurately capture the parameter changes related to the electric energy metering at the power consumption end, ensure the accuracy of fluctuation monitoring and reduce the possibility of misjudgment, thereby improving the ability to accurately perceive the changes in the power load at the power consumption end.
[0079] In some optional implementations, reducing the sampling frequency of the real-time metering parameter includes:
[0080] Step S510, determining the stable load period and the fluctuating load period of the power consumption end in a day;
[0081] Step S520, when the low fluctuation state occurs in the stable load period, taking the inverse of the width of the sliding window as the current sampling frequency of the smart meter;
[0082] Step S530, when the low fluctuation state occurs in the fluctuating load period, a preset adjustment coefficient is obtained, and the product of the preset adjustment coefficient and the inverse of the width of the sliding window is used as the current sampling frequency of the smart meter.
[0083] The width of the sliding window is usually fixed according to the needs of specific problems. It should be noted that the width of the sliding window in the embodiment of the present application is set according to the sampling frequency requirement of the low-power metering mode. Therefore, it can be understood that the width of the sliding window in the embodiment of the present application should be greater than the period corresponding to the normal sampling frequency of the smart meter when the load changes greatly, that is, the inverse of the width of the sliding window should be less than the normal sampling frequency of the smart meter when the load changes greatly, thereby achieving the purpose of reducing the sampling frequency.
[0084] The embodiment of the present application divides a day into a stable load period and a fluctuating load period, and on this basis, realizes accurate adjustment of the sampling frequency. If the low fluctuation state occurs in the stable load period, it can be regarded that the current low fluctuation state is in line with the daily electricity consumption habits of the electricity user, and then the width of the sliding window is used to realize quantitative adjustment of reducing the sampling frequency. Because it can be known from the above process of using the sliding window to monitor the real-time metering parameter in the low fluctuation state, the sliding window with the current width can monitor the situation where the real-time metering parameter remains unchanged, and then in the subsequent electric energy metering, if the real-time metering parameter remains unchanged, when the parameter is sampled at the adjusted current sampling frequency, the same sampling effect can be achieved when the sliding window is used to determine the low fluctuation state, which satisfies the electric energy metering sampling under the fluctuating state.
[0085] If the low fluctuation state occurs during the period of fluctuating load, it can be regarded as the current low fluctuation state does not conform to the daily electricity consumption habits of the power user, which is an uncommon special case. Therefore, on the basis of the above quantitative adjustment, a mechanism of preset adjustment coefficient is set to improve the flexibility and random response ability of sampling frequency adjustment. In practical applications, the preset adjustment coefficient can be set to a constant greater than 1, so that the sampling frequency is both lower than the normal high sampling frequency of the smart meter when the load fluctuation at the power user is large, and the reduction in sampling frequency is smaller than when the low fluctuation state occurs during the stable load period, thereby maintaining a sufficient sampling frequency to capture the load fluctuation situation with uncertain general direction.
[0086] In some optional implementations, the determining the stable load period and the fluctuating load period of the power consumption terminal during a day includes:
[0087] Step S511, obtaining historical load data of the power consumer between several days ago and the current date, and fitting the historical load data according to the time sequence of a day to obtain a historical load fitting sequence of the power consumer in a day;
[0088] Step S512, dividing the historical load fitting sequence into a plurality of subsequences according to a preset interval, and analyzing the variance of each subsequence;
[0089] Step S513: taking the time interval corresponding to the subsequence whose variance is lower than the preset variance threshold as the stable load period, and taking the time interval whose variance is higher than the preset variance threshold as the fluctuating load period.
[0090] Among them, when obtaining the historical load data of the electricity user between several days ago and the current date, the date range of the historical load data can be set according to the actual electricity consumption situation and demand. For example, for a household scenario, you can choose to obtain the historical load data of each day in the previous week for analysis. For example, for an industrial park scenario, you can choose to obtain the historical load data of each working day in the previous month for analysis.
[0091] When fitting the historical load data according to the time sequence of one day, the embodiment of the present application adopts the least square method to achieve fitting. The least square method is a mathematical method for data fitting and regression analysis, and its goal is to find a function so that the sum of square errors between the function and the observed data is minimized. In the embodiment of the present application, the historical load data of different dates are specifically matched according to the time sequence of one day. For example, the historical load data of each day of the previous week is sorted according to the 24 hourly moments of the day to obtain the discrete values of the historical load data at the hourly moments of each day of the previous week as the observed data, and these discrete values are fitted, so as to complete the historical load fitting sequence of the approximate change trend of the power load of the power consumption end in one day, and the power load fitting values at the hourly moments of each day are included in the historical load fitting sequence. It should be noted that the time sequence of the day can be determined according to the fitting accuracy requirements, for example, it can also be fitted according to the time sequence of every half hour of a day.
[0092] Next, we analyze the change rate of the above historical load fitting sequence. Specifically, we divide the historical load fitting sequence into several subsequences and use the variance as the basis for judging the change. Variance is a measure of the degree of data dispersion. It can be seen that the larger the variance of a subsequence, the higher the degree of dispersion between the data in the subsequence, that is, the greater the fluctuation of the power load in the period corresponding to the subsequence.
[0093] The embodiments of the present application take into account that the electricity usage habits of the electricity user usually have a certain time sequence. Therefore, in order to make the sampling frequency of the smart meter more in line with the actual electricity usage habits, an adjustment mechanism is set for the current sampling frequency based on the reference historical load conditions, so that the adjustment of the current sampling frequency is more in line with the actual electricity usage habits of the electricity user.
[0094] At this point, in some optional implementations, when it is determined based on real-time metering parameters that the power load change at the power consumption end is low, the sampling frequency of the metering chip can be reduced. Therefore, when the power load remains stable, a lower sampling frequency can also meet the power metering needs, while reducing the energy consumption of the smart meter.
[0095] In some optional implementations, when the smart meter enters the low power consumption metering mode, the method further includes:
[0096] Step S540: compare the real-time metering parameters acquired at two adjacent sampling moments, and when the comparison result shows that the real-time metering parameters are different, determine that the low fluctuation state is eliminated, and control the smart meter to exit the low power consumption metering mode.
[0097] It can be seen that when the real-time metering parameters obtained at two adjacent sampling moments change, it means that at a certain moment between the two adjacent sampling moments, the power load at the power consumption end has changed. Therefore, continuing to measure electric energy at the currently reduced sampling frequency will lead to inaccurate metering results. At this time, it is necessary to exit the low-power metering mode.
[0098] The embodiment of the present application realizes timely monitoring when the low fluctuation state is eliminated by setting a parameter comparison mechanism at two adjacent sampling moments, so as to prevent the occurrence of electric energy metering errors caused by continuing to use a reduced sampling frequency, and ensure that the low power consumption metering mode can be stopped in time according to the real-time power consumption situation, thereby meeting the accuracy requirements of electric energy metering.
[0099] When it is determined that the low fluctuation state is eliminated, the method further includes:
[0100] Step S550, obtaining pre-cached electric energy metering traceback data, wherein the electric energy metering traceback data includes real-time metering parameters obtained between the two adjacent sampling moments;
[0101] Step S560, measuring the electric energy between the two adjacent sampling moments according to the electric energy metering backtracking data to obtain the electric energy compensation amount;
[0102] Step S570: performing error compensation on the current electric energy measurement result based on the electric energy compensation amount.
[0103] Considering that when measuring energy in low-power metering mode, once the power load fluctuates, the metering chip fails to perform sampling in time based on the lower sampling frequency, resulting in the risk of energy metering errors. Therefore, the embodiment of the present application proposes the above-mentioned method for realizing energy metering compensation by backtracking data.
[0104] In some optional embodiments, based on Figure 2In the smart meter shown, the voltage transformer 10 and the current transformer 20 continuously collect the three-phase voltage and three-phase current of the power consumption end, and the microcontroller 40 reads the collected three-phase voltage and three-phase current based on the current sampling frequency and stores the data in the SDRAM buffer 51. It should be noted that the SDRAM buffer 51 only stores the three-phase voltage and three-phase current between each two adjacent sampling moments, that is, only caches the real-time metering parameters of one sampling cycle. When the low fluctuation state is not eliminated, the real-time metering parameters of the previous sampling cycle are continuously replaced by the real-time metering parameters of the next sampling cycle to ensure the real-time update of the electric energy metering backtracking data, and at the same time will not occupy too many storage resources of the smart meter.
[0105] When it is determined that the low fluctuation state is eliminated, the electric energy metering back-tracing data cached in the current SDRAM buffer 51 is read through the microcontroller 40. It can be seen that the electric energy metering back-tracing data at this time completely backs up the three-phase voltage and three-phase current of the previous acquisition cycle, so it can provide data support for the electric energy metering of the previous acquisition cycle. When performing electric energy compensation, the electric energy metering result of the previous acquisition cycle when the low fluctuation state is eliminated is obtained based on the electric energy metering back-tracing data, and the difference between it and the original electric energy metering result of the acquisition cycle in the low power consumption metering mode is used as the electric energy compensation amount.
[0106] The embodiment of the present application utilizes electric energy metering backtracking data to compensate for the electric energy metering error caused by reducing the acquisition frequency during the switching phase between the low-power metering mode and the normal metering mode, thereby enabling the smart meter to avoid energy waste caused by excessive sampling and data processing while ensuring the accuracy of the electric energy metering results.
[0107] It should be noted that since the voltage transformer 10 and the current transformer 20 are provided to capture the fluctuations of the three-phase voltage and the three-phase current at the power consumption end, a mechanism is triggered for the smart meter to exit the low-power sleep mode. Therefore, there is no need to perform power error compensation processing for the low-power sleep mode.
[0108] It can be seen that the low-power metering mode and the low-power sleep mode described in the embodiment of the present application have in common that both are low-power designs for smart meters for situations where the power load at the power consumption end has a low degree of change. The difference between the two is that in the low-power metering mode, only the sampling frequency of the metering chip 30 is reduced to achieve the purpose of reducing energy consumption, and other components in the smart meter still generate working energy consumption in a conventional operating mode. In the low-power sleep mode, when entering the sleep state, not only the metering chip 30 stops working, but other components in the smart meter except the voltage transformer 10 and the current transformer 20 also stop working. Therefore, the energy consumption of the smart meter in the low-power sleep mode is lower than that in the low-power metering mode.
[0109] In some optional implementations, when it is monitored that the real-time metering parameter is not in a low fluctuation state, the method further includes:
[0110] The current sampling frequency is maintained to sample the real-time metering parameters of the electricity consumption end.
[0111] The embodiment of the present application can measure electric energy at the normal high sampling frequency of the smart meter when the load fluctuation at the electricity consumption end is large, thereby achieving a low power consumption design without affecting the normal accurate electric energy measurement function of the smart meter.
[0112] Accordingly, please refer to Figure 3 The embodiment of the present application provides an electric energy metering device of a smart meter, wherein the smart meter has a low power consumption metering mode and a low power consumption sleep mode, and the electric energy metering device includes:
[0113] The sampling unit 810 is used to sample the real-time metering parameters of the electricity consumption end;
[0114] The metering unit 820 is used to measure electric energy according to the sampled real-time metering parameters;
[0115] A monitoring unit 830 is used to monitor the real-time metering parameter, and when it is detected that the real-time metering parameter is in a low fluctuation state, monitor the power load of the power consumption end according to the real-time metering parameter;
[0116] The metering unit 820 is also used to reduce the sampling frequency of the real-time metering parameters when the current power load at the power consumption end is greater than a preset threshold value, so that the smart meter enters the low-power metering mode, and to control the smart meter to enter the low-power sleep mode when the current power load at the power consumption end is less than or equal to the preset threshold value, wherein the low-power sleep mode means that the smart meter periodically enters the sleep state and samples the real-time metering parameters when awake.
[0117] In some optional implementations, when the metering unit 820 is used for the smart meter to enter the low-power sleep mode, the duration of the sleep state is greater than the duration of the wake-up state.
[0118] In some optional implementations, the monitoring unit 830 includes:
[0119] The comparison subunit 831 is used to obtain a sliding window of a preset width, move the sliding window with a preset step length, and compare the real-time measurement parameters in the sliding window before and after the movement;
[0120] The low fluctuation state determining subunit 832 is used to determine that the real-time metering parameter is in a low fluctuation state when the sliding window is moved continuously for a preset number of times and the real-time metering parameters in the sliding window before and after the movement are the same.
[0121] In some optional implementations, the metering unit 820 includes:
[0122] The load period determination subunit 821 is used to determine the stable load period and the fluctuating load period of the power consumption terminal in a day;
[0123] A stable load period adjustment subunit 822 is configured to use the inverse of the width of the sliding window as the current sampling frequency of the smart meter when the low fluctuation state occurs in the stable load period;
[0124] The fluctuating load period adjustment subunit 823 is used to obtain a preset adjustment coefficient when the low fluctuation state occurs in the fluctuating load period, and use the product of the preset adjustment coefficient and the inverse of the width of the sliding window as the current sampling frequency of the smart meter.
[0125] In some optional implementations, the load period determination subunit 821 includes:
[0126] The fitting subunit 8211 is used to obtain the historical load data of the power consumption terminal from several days ago to the current date, and fit the historical load data according to the time sequence of one day to obtain the historical load fitting sequence of the power consumption terminal in one day;
[0127] The sequence division subunit 8212 is used to divide the historical load fitting sequence into a plurality of subsequences according to a preset interval, and analyze the variance of each subsequence;
[0128] The judgment subunit 8213 is used to take the time interval corresponding to the subsequence whose variance is lower than the preset variance threshold as the stable load period, and take the time interval whose variance is higher than the preset variance threshold as the fluctuating load period.
[0129] In some optional implementations, the electric energy metering device further includes an error compensation unit 840, which is used to compare the real-time metering parameters obtained at two adjacent sampling moments, and when the comparison result shows that the real-time metering parameters are different, determine that the low fluctuation state is eliminated, and control the smart meter to exit the low power consumption metering mode;
[0130] And for obtaining pre-cached electric energy metering back-tracing data when it is determined that the low fluctuation state is eliminated, wherein the electric energy metering back-tracing data includes real-time metering parameters obtained between the two adjacent sampling moments, and the electric energy between the two adjacent sampling moments is measured according to the electric energy metering back-tracing data to obtain the electric energy compensation amount, and the error compensation is performed on the current electric energy metering result based on the electric energy compensation amount.
[0131] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0132] The electric energy metering device in the embodiment of the present application is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0133] Accordingly, an embodiment of the present application provides a smart meter, including a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the electric energy metering method of the smart meter described in the above embodiment by executing the computer instructions.
[0134] In some optional implementations, the components of the smart meter are as follows: Figure 2 As shown, the memory is Figure 2 The FLASH memory 52 shown, the processor is Figure 2 A microcontroller 40 is shown.
[0135] Although the embodiments of the present application are described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present application, and such modifications and variations are all within the scope defined by the appended claims.
[0136] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0137] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a personal digital assistant, a tablet computer, a wearable device, or a combination of any of these devices.
[0138] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0139] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0140] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0141] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0142] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0143] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0144] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0145] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
[0146] Although the embodiments of the present application have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present application, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for measuring electric energy of a smart meter, characterized in that: The smart electric meter has a low power consumption metering mode and a low power consumption sleep mode, and the method comprises: Sampling the real-time metering parameters of the electricity consumption end, and performing electric energy metering according to the sampled real-time metering parameters; When it is detected that the real-time metering parameter is in a low fluctuation state, monitoring the power load of the power consumption end according to the real-time metering parameter; If the current power load of the power consumption end is greater than a preset threshold, the sampling frequency of the real-time metering parameter is reduced so that the smart meter enters the low power consumption metering mode; If the current power load of the power consumption end is less than or equal to a preset threshold, the smart meter is controlled to enter the low-power sleep mode, wherein the low-power sleep mode means that the smart meter enters the sleep state periodically and samples the real-time metering parameters when awake; The monitoring that the real-time metering parameter is in a low fluctuation state includes: Obtaining a sliding window of a preset width, moving the sliding window with a preset step length, and comparing the real-time measurement parameters in the sliding window before and after the movement; When the sliding window is moved continuously for a preset number of times and the real-time metering parameters in the sliding window before and after the movement are the same, determining that the real-time metering parameters are in a low fluctuation state; The step of reducing the sampling frequency of the real-time metering parameter comprises: Determining a stable load period and a fluctuating load period of the power consumption end during a day; In the case where the low fluctuation state occurs in the stable load period, taking the inverse of the width of the sliding window as the current sampling frequency of the smart meter; In the case where the low fluctuation state occurs in the fluctuating load period, obtaining a preset adjustment coefficient, and taking the product of the preset adjustment coefficient and the inverse of the width of the sliding window as the current sampling frequency of the smart meter; When the smart meter enters the low power consumption metering mode, the method further includes: Comparing the real-time metering parameters acquired at two adjacent sampling moments, and if the comparison result shows that the real-time metering parameters are different, determining that the low fluctuation state is eliminated, and controlling the smart meter to exit the low power consumption metering mode; When it is determined that the low fluctuation state is eliminated, the method further includes: Acquire pre-cached electric energy metering traceback data, wherein the electric energy metering traceback data includes real-time metering parameters acquired between the two adjacent sampling moments; Measuring the electric energy between the two adjacent sampling moments according to the electric energy metering backtracking data to obtain the electric energy compensation amount; The error compensation is performed on the current electric energy measurement result based on the electric energy compensation amount.
2. The electric energy measurement method of the smart meter according to claim 1, characterized in that: When the smart meter enters the low-power sleep mode, the duration of the sleep state is greater than the duration of the wake-up state.
3. The electric energy measurement method of the smart meter according to claim 1, characterized in that: The determining of the stable load period and the fluctuating load period of the power consumption end during a day includes: Acquire historical load data of the power consumption terminal from several days ago to the current date, and fit the historical load data according to the time sequence of one day to obtain a historical load fitting sequence of the power consumption terminal in one day; Dividing the historical load fitting sequence into a plurality of subsequences according to preset intervals, and analyzing the variance of each subsequence; The time interval corresponding to the subsequence whose variance is lower than the preset variance threshold is taken as the stable load period, and the time interval whose variance is higher than the preset variance threshold is taken as the fluctuating load period.
4. The electric energy measurement method of the smart meter according to claim 1, characterized in that: When it is monitored that the real-time metering parameter is not in a low fluctuation state, the method further includes: The current sampling frequency is maintained to sample the real-time metering parameters of the electricity consumption end.
5. An electric energy metering device for a smart meter, characterized in that: The smart electric meter has a low power consumption metering mode and a low power consumption sleep mode, and the electric energy metering device is used to execute the electric energy metering method of the smart electric meter according to any one of claims 1 to 4.
6. A smart electric meter, characterized in that: The invention comprises 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 electric energy metering method of the smart meter according to any one of claims 1 to 4 by executing the computer instructions.
Citation Information
Cited By
Electric energy meter sampling communication cooperative consumption reduction control method and system
CN122578671A
An electric energy meter sampling communication collaborative consumption reduction control method and system
CN122578671B
