Electric energy metering chip, metering method and terminal equipment
By designing the synchronous sampling and clock frequency configuration module of the power metering chip, the accuracy and reliability of multi-branch power metering are solved, and the efficient, accurate and flexible metering functions of multi-branch power metering are realized.
Patent Information
- Application Number
- CN202510767298.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-10
- Publication Date
- 2025-07-08
- Estimated Expiration
- 2045-06-10
AI Technical Summary
The existing power metering chips cannot meet the multi-branch metering requirements of multiple complex power systems, resulting in inaccurate metering data and insufficient reliability.
An electrical energy metering chip is designed, including an N-channel data sampling module, a clock frequency configuration module, a metering module, a synchronous sampling trigger module and a synchronous sampling correction module. Through synchronous sampling and clock frequency configuration, it realizes synchronous acquisition and metering calculation of multiple branches of electrical parameters, and has harmonic metering functions.
It realizes the accuracy and reliability of multi-branch electrical energy metering, reduces the volume and cost of the meter, is suitable for various applications, and improves the flexibility of the meter and the accuracy of the meter data.
Smart Images

Figure CN120275705A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of chips, and particularly to an electric energy metering chip, a metering method, and a terminal device. Background Art
[0002] With the development of the national economy and power system technology, the power system structure has become more and more complex and diversified. As the highest level of electric energy metering instruments, the gateway electric energy meters or the application scenarios of multi-branch metering are increasing, and the demand is becoming more and more extensive. However, the related electric energy metering chips cannot meet the requirements of current various application scenarios. Summary of the Invention
[0003] The present invention aims to solve at least one of the technical problems in the related art to some extent. For this purpose, an object of the present invention is to provide an electric energy metering chip, which has the function of processing the electric energy metering of multiple branches.
[0004] A second object of the present invention is to provide a metering method.
[0005] A third object of the present invention is to provide a terminal device.
[0006] To achieve the above object, an embodiment of the first aspect of the present invention provides an electric energy metering chip, which includes: an N-channel data sampling module for collecting electrical parameters of M branches of a power system, where N and M are integers, and 1 ≤ M ≤ N; a clock frequency configuration module for configuring the clock frequency of a metering module according to the number of branches M; the metering module is respectively connected to the clock frequency configuration module and the N-channel data sampling module, and is used for performing metering calculations on the electrical parameters of the M branches according to the clock frequency to obtain metering results of the M branches; a synchronous sampling trigger module, connected to the metering module, for generating a synchronous trigger signal according to the metering module based on a preset sampling frequency; a synchronous sampling correction module, connected to the metering module, the synchronous sampling trigger module, and the N-channel data sampling module, for receiving the synchronous trigger signal, and when receiving the synchronous trigger signal, generating a sampling pulse based on the detected delay information of each channel corresponding to the M branches to control the N-channel data sampling module to collect the electrical parameters of the corresponding channels of the corresponding branches, so as to realize the synchronous collection of the electrical parameters of the M branches by the N-channel data sampling module.
[0007] According to the electric energy metering chip of the embodiment of the present invention, when applied to the application scenario of multi-branch electric energy metering, each branch of the electric energy metering chip can complete all the functions of a previous metering chip, so that the electric energy metering chip has the metering function of processing data of multiple branches.
[0008] In addition, the electric energy metering chip proposed according to the above embodiments of the present invention may further have the following additional technical features: According to an embodiment of the present invention, the clock frequency configuration module is configured to: determine the total duration for the metering module to perform metering calculations on the electrical parameters of a single branch, and determine the clock frequency according to the total duration and the number of branches M.
[0009] According to an embodiment of the present invention, each data sampling module is connected to at most one branch, and each data sampling module includes: a data sampling unit for collecting the voltage and / or current of the corresponding branch; and a data processing unit connected to the data sampling unit for performing phase adjustment and / or gain compensation on the voltage and / or current.
[0010] According to an embodiment of the present invention, the synchronous sampling correction module includes: a delay detection unit connected to the metering module for detecting the delay information of each channel corresponding to the M branches; a delay calculation unit connected to the delay detection unit for determining the maximum delay information according to the delay information of each channel corresponding to the M branches, and generating a delay count value of each channel corresponding to the M branches according to the maximum delay information; and N delay trigger units connected to the synchronous sampling trigger module, the delay calculation unit, and the N data sampling modules for receiving the synchronous trigger signal, and performing counting according to the delay count value of each channel corresponding to the corresponding branch when receiving the synchronous trigger signal, and generating a sampling pulse when the counting is completed to control the N data sampling modules to collect the electrical parameters of the corresponding channels of the corresponding branches.
[0011] According to an embodiment of the present invention, the electric energy metering chip further includes: a data acquisition buffer module connected to the N data sampling modules for storing the electrical parameters of the M branches; and a data scheduling module connected to the data acquisition buffer module and the metering module respectively, and the metering module is further configured to control the data scheduling module to retrieve the electrical parameters of the M branches from the data acquisition buffer module within the clock cycle corresponding to the clock frequency.
[0012] According to an embodiment of the present invention, the electric energy metering chip further includes: a calculation result buffer module connected to the metering module for storing the metering results of the M branches; and an operation module connected to the calculation result buffer module for performing operations on the metering results of the M branches according to a preset operation relationship to obtain an operation result.
[0013] According to an embodiment of the present invention, the electrical parameters include voltage and current; the measurement results at least include measurement data and harmonic data, wherein the measurement data at least includes one of active power, active energy, reactive power, reactive energy, apparent power, effective voltage value, and effective current value, and the harmonic data at least includes one of harmonic active power, harmonic reactive power, harmonic apparent power, harmonic effective voltage value, harmonic effective current value, and harmonic content rate; the operation results at least include target total active power, target total active energy, target total reactive power, target total reactive energy, target total harmonic active power, and target total harmonic reactive power.
[0014] According to an embodiment of the present invention, the electric energy metering chip further includes: an operation result cache module, connected to the operation module, for storing the operation results; a communication module and a display driving module, the display driving module is connected to the calculation result cache module and / or the operation result cache module through the communication module, and the operation module is further configured to send the measurement results and / or the operation results to the display driving module through the communication module, so that the display module displays the measurement results and / or the operation results.
[0015] To achieve the above object, a second aspect embodiment of the present invention proposes a metering method for the electric energy metering chip proposed in the first aspect embodiment of the present invention, and the method includes: collecting electrical parameters of M branches of a power system; performing metering calculations on the electrical parameters of the M branches according to a clock frequency to obtain the measurement results of the M branches, wherein before collecting the electrical parameters of the M branches of the power system, the method further includes: generating a synchronous trigger signal based on a preset sampling frequency, and generating a sampling pulse based on the synchronous trigger signal and the delay information of each channel corresponding to the detected M branches to collect the electrical parameters of the corresponding channels of the corresponding branches, so as to realize synchronous collection of the electrical parameters of the M branches, and the clock frequency is determined by the number of branches M, and M is an integer.
[0016] In addition, the metering method proposed according to the above embodiments of the present invention may further have the following additional technical features: According to an embodiment of the present invention, determine the total duration of performing metering calculations on the electrical parameters of each individual branch, and determine the clock frequency according to the total duration and the number of branches M.
[0017] According to an embodiment of the present invention, before performing metering calculations on the electrical parameters of the M branches according to the clock frequency, the method further includes: performing phase adjustment and / or gain compensation on the electrical parameters of the M branches.
[0018] According to an embodiment of the present invention, generating a sampling pulse based on the synchronization trigger signal and the detected delay information of each channel corresponding to the M branches includes: detecting the delay information of each channel corresponding to the M branches; determining the maximum delay information according to the delay information of each channel corresponding to the M branches, and generating a delay count value of each channel corresponding to the M branches according to the maximum delay information; receiving the synchronization trigger signal, and performing counting according to the delay count value of each channel corresponding to the corresponding branch when the synchronization trigger signal is received, and generating a sampling pulse when the counting is completed to collect the electrical parameters of the channel corresponding to the corresponding branch.
[0019] According to an embodiment of the present invention, the method further includes: performing an operation on the measurement results of the M branches according to a preset operation relationship to obtain an operation result.
[0020] According to an embodiment of the present invention, the electrical parameters include voltage and current; the measurement results at least include measurement data and harmonic data, wherein the measurement data at least includes one of active power, active energy, reactive power, reactive energy, apparent power, effective voltage value, and effective current value, and the harmonic data at least includes one of harmonic active power, harmonic reactive power, harmonic apparent power, harmonic effective voltage value, harmonic effective current value, and harmonic content rate; the operation result at least includes target total active power, target total active energy, target total reactive power, target total reactive energy, target total harmonic active power, and target total harmonic reactive power.
[0021] To achieve the above object, an embodiment of the third aspect of the present invention proposes a terminal device, including the power metering chip proposed in the embodiment of the first aspect of the present invention.
[0022] Additional aspects and advantages of the present invention will be given in part in the following description, become apparent in part from the following description, or be understood through the practice of the present invention. Description of the Drawings
[0023] Figure 1 is a schematic diagram of a power metering chip according to an embodiment of the present invention; Figure 2 is a schematic diagram of a power metering chip according to another embodiment of the present invention; Figure 3 is a schematic diagram of a power metering chip according to still another embodiment of the present invention; Figure 4 is a schematic diagram of a power metering chip according to yet another embodiment of the present invention; Figure 5 is a schematic diagram of a power metering chip according to a specific embodiment of the present invention; Figure 6It is a flowchart of a metering method according to an embodiment of the present invention; Figure 7 It is a flowchart of collecting electrical parameters according to a specific embodiment of the present invention; Figure 8 It is a schematic diagram of a terminal device according to an embodiment of the present invention. Specific Embodiments
[0024] The embodiments of the present invention will be described in detail below. Examples of the embodiments are shown in the accompanying drawings, where the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to explain the present invention and should not be construed as limiting the present invention.
[0025] It should be noted that in the application scenario of measuring multi-branch power metering, multiple electric meters need to cooperate or multiple metering chips are integrated in one electric meter to complete multi-branch power metering.
[0026] To solve the above problems, embodiments of the present invention provide a power metering chip, a metering method, and a terminal device. The power metering chip, the metering method, and the terminal device according to the embodiments of the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.
[0027] Figure 1 It is a schematic diagram of a power metering chip according to an embodiment of the present invention. As Figure 1 shown, the power metering chip may include: An N-channel data sampling module for collecting electrical parameters of M branches of a power system, where N and M are integers, and 1 ≤ M ≤ N; A clock frequency configuration module for configuring the clock frequency of the metering module according to the number of branches M; A metering module, respectively connected to the clock frequency configuration module and the N-channel data sampling module, for performing metering calculations on the electrical parameters of M branches according to the clock frequency to obtain metering results of M branches; A synchronous sampling trigger module, connected to the metering module, for generating a synchronous trigger signal based on a preset sampling frequency by the metering module; A synchronous sampling correction module, connected to the metering module, the synchronous sampling trigger module, and the N-channel data sampling module, for receiving the synchronous trigger signal and generating a sampling pulse based on the detected delay information of each channel corresponding to M branches when receiving the synchronous trigger signal, so as to control the N-channel data sampling module to collect the electrical parameters of the corresponding channels of the corresponding branches, and realize the synchronous collection of the electrical parameters of M branches by the N-channel data sampling module.
[0028] The electric energy metering chip according to the embodiment of the present invention includes an N-channel data sampling module, a clock frequency configuration module, and a metering module, which can collect the electrical parameters of M (1≤M≤N) branches of the power system and realize the metering calculation of the electrical parameters of the M branches.
[0029] Specifically, connect the M branches of the power system to be monitored to the N-channel data sampling module. Among them, each channel of the N-channel data sampling module is connected to at most one branch. According to the number of branches M of the power system to be monitored connected to the N-channel data sampling module, configure the clock frequency of the metering module. Obtain the electrical parameters of the M branches collected by the N-channel data sampling module, and perform metering calculations on the electrical parameters of the M branches according to the clock frequency to obtain the metering results of the M branches. By using the electric energy metering chip according to the embodiment of the present invention, when measuring the metering data of multiple branches, it is not necessary to cooperate with multiple metering chips, and the functions that can only be achieved by multiple metering chips can be realized.
[0030] Among them, in order to enable the N-channel data sampling module to synchronously collect the electrical parameters of the M branches, the electric energy metering chip according to the embodiment of the present invention further includes a synchronous sampling trigger module and a synchronous sampling correction module. Among them, the synchronous sampling trigger module is connected to the metering module, and the synchronous sampling correction module is connected to the metering module, the synchronous sampling trigger module, and the N-channel data sampling module.
[0031] Implementable, the clock frequency configuration module determines a preset sampling frequency according to the clock frequency and the number of branches M of the power system to be monitored connected to the N-channel data sampling module. Among them, the clock frequency configuration module sends the preset sampling frequency to the synchronous sampling trigger module through the metering module, so that the synchronous sampling trigger module generates a synchronous trigger signal based on the preset sampling frequency. Among them, the synchronous trigger signal is used to control the N-channel data sampling module to synchronously collect the electrical parameters of the M branches.
[0032] To control the N-channel data sampling module to collect the electrical parameters of the corresponding channels of the corresponding branches, the synchronous sampling correction module receives the synchronous trigger signal, and when receiving the synchronous trigger signal, generates a sampling pulse based on the delay information detected for each channel of the M branches to control the N-channel data sampling module to collect the electrical parameters of the corresponding channels of the corresponding branches, realizing the synchronous collection of the electrical parameters of the M branches by the N-channel data sampling module.
[0033] The electric energy metering chip according to the embodiment of the present invention, when applied to the application scenario of multi-branch electric energy metering, each branch of the electric energy metering chip can complete all the functions of a previous metering chip, so that the electric energy metering chip has the metering function of processing the data of multiple branches.
[0034] The metering module in the embodiment of the present invention has a harmonic metering function.
[0035] In an embodiment of the present invention, the clock frequency configuration module is configured to: determine the total duration for the metering module to perform metering calculations on the electrical parameters of a single branch, and determine the clock frequency according to the total duration and the number of branches M.
[0036] Specifically, measure the total duration t for the metering module to perform metering calculations on the electrical parameters of a single branch. Determine the clock frequency according to the total duration t for performing metering calculations on the electrical parameters of a single branch and the number of branches M. .
[0037] In an embodiment of the present invention, the number of branches M can be determined by manual configuration or by the clock frequency configuration module. Specifically, connect the clock frequency configuration module to the N-channel data sampling module to detect the number of branches M of the power system to be monitored connected to the N-channel data sampling module, so as to determine the number of branches M.
[0038] For better effect, the number of branches determined by the clock frequency configuration module can also be compared with the number of branches configured manually to ensure the stability of the connection between the N-channel data sampling module and the number of branches of the power system to be monitored. When the number of branches determined by the clock frequency configuration module is not equal to the number of branches configured manually, an alarm is given.
[0039] In an embodiment of the present invention, the electrical parameters include voltage data and current data.
[0040] In a specific embodiment of the present invention, each branch of the power system to be monitored includes multiple channels.
[0041] Specifically, when each branch of the power system to be monitored has 3 voltages and 4 currents, each branch of the power system to be monitored has 7 channels, and the N-channel data sampling module in the embodiment of the present invention can be used for 3-channel voltage sampling and 4-channel current sampling.
[0042] It should be noted that the embodiment of the present invention does not limit the number of channels of each branch of the power system to be monitored, which can be determined according to actual needs.
[0043] In an embodiment of the present invention, as Figure 2 shown, the synchronous sampling correction module includes: A delay detection unit, connected to the metering module, for detecting the delay information of each channel corresponding to M branches; A delay calculation unit, connected to the delay detection unit, for determining the maximum delay information according to the delay information of each channel corresponding to M branches, and generating a delay count value for each channel corresponding to M branches according to the maximum delay information; The N-channel delay trigger unit is connected to the synchronous sampling trigger module, the delay calculation unit, and the N-channel data sampling module. It is used to receive the synchronous trigger signal, count according to the delay count values corresponding to each channel of the corresponding branch when receiving the synchronous trigger signal, and generate a sampling pulse when the counting is completed to control the N-channel data sampling module to collect the electrical parameters of the corresponding channels of the corresponding branch.
[0044] To enable the N-channel data sampling module to accurately synchronously collect the electrical parameters of each channel corresponding to M branches when receiving the synchronous trigger signal, the power metering chip in the embodiment of the present invention further includes a delay detection unit, a delay calculation unit, and an N-channel delay trigger unit. Among them, the delay detection unit is connected to the metering module, and the delay detection unit and the delay calculation unit are connected to the N-channel delay trigger unit. Each delay trigger unit of the N-channel delay trigger unit is connected to each data sampling module of the N-channel data sampling module.
[0045] Specifically, the delay detection unit detects the delay information of each channel corresponding to the M branches based on the electrical parameters of the M branches received by the metering module. The delay calculation unit compares and judges the size of the delay information of each channel corresponding to the M branches to determine the maximum delay information. According to the determined maximum delay information and the delay information of each channel corresponding to the M branches, the delay count values corresponding to each channel of the M branches are generated. The N-channel delay trigger unit counts based on the received synchronous trigger signal and the delay count values corresponding to each channel of the corresponding branch, and generates a sampling pulse when the counting is completed. The N-channel data sampling module collects the electrical parameters when receiving the sampling pulse of the corresponding channel of the corresponding branch, realizing the synchronous collection of the electrical parameters of each channel corresponding to the corresponding branch by the N-channel data sampling module.
[0046] It should be noted that it is impossible to achieve synchronous sampling between multiple metering chips, which will lead to inaccurate metering data. By adopting the embodiment of the present invention, it is possible to control all branches to perform synchronous sampling, thereby making the metering data more accurate and reliable.
[0047] In an embodiment of the present invention, each data sampling module is connected to at most one branch, and each data sampling module includes: A data sampling unit for collecting the voltage and / or current of the corresponding branch; A data processing unit connected to the data sampling unit for performing phase adjustment and / or gain compensation on the voltage and / or current.
[0048] Each data sampling module of the N-channel data sampling module in the embodiment of the present invention is connected to at most one branch of the power system to be monitored.
[0049] Each data sampling module in the embodiment of the present invention may include a data sampling unit and a data processing unit, and the data processing unit is connected to the data sampling unit.
[0050] Specifically, the data sampling unit collects voltage data or current data of corresponding channels of corresponding branches, and the data processing unit performs phase adjustment, or gain compensation, or both phase adjustment and gain compensation on the voltage data or current data of corresponding channels of corresponding branches.
[0051] In an embodiment of the present invention, as Figure 3 shown, the electric energy metering chip further includes: A data acquisition and caching module, connected to the N-channel data sampling module, for storing electrical parameters of M branches; A data scheduling module, connected to the data acquisition and caching module and the metering module respectively. The metering module is further configured to control the data scheduling module to retrieve the electrical parameters of M branches from the data acquisition and caching module within the clock cycle corresponding to the clock frequency.
[0052] The electric energy metering chip in the embodiment of the present invention may further include a data acquisition and caching module and a data scheduling module. Among them, the data acquisition and caching module is connected to the N-channel data sampling module, and the data scheduling module is connected to the data acquisition and caching module and the metering module respectively.
[0053] Specifically, the data acquisition and caching module stores the electrical parameters of M branches collected by the N-channel data sampling module. The metering module is further configured to control the data scheduling module to retrieve the electrical parameters of M branches from the data acquisition and caching module within the clock cycle corresponding to the clock frequency, so as to perform metering calculation on the electrical parameters of M branches and obtain the metering results of M branches.
[0054] In an embodiment of the present invention, the metering result at least includes metering data and harmonic data. Among them, the metering data at least includes one of active power, active energy, reactive power, reactive energy, apparent power, effective voltage value, and effective current value, and the harmonic data at least includes one of harmonic active power, harmonic reactive power, harmonic apparent power, harmonic effective voltage value, harmonic effective current value, and harmonic content rate.
[0055] The metering data of the metering chip in the embodiment of the present invention at least includes: active power , ,... , active energy , ,... , reactive power , ,... , reactive energy , ,... , apparent power , ,... , effective voltage value , … , effective current value , … and so on.
[0056] In the embodiments of the present invention, the harmonic data of the metering chip at least includes: the active power of each harmonic (1-kth harmonic) , … , harmonic reactive power , … , harmonic apparent power , … , effective harmonic voltage value , … , effective harmonic current value , … , harmonic content rate , … and so on.
[0057] In an embodiment of the present invention, as Figure 4 shown, the electric energy metering chip further includes: A calculation result cache module, connected to the metering module, for storing the metering results of M branches; An operation module, connected to the calculation result cache module, for performing operations on the metering results of M branches according to a preset operation relationship to obtain an operation result.
[0058] The electric energy metering chip in the embodiments of the present invention may further include a calculation result cache module and an operation module. Among them, the calculation result cache module is connected to the metering module, and the operation module is connected to the calculation result cache module.
[0059] Specifically, the calculation result cache module stores the metering results of M branches obtained by the metering calculation of the metering module. The operation module is used to perform operations on the metering results of M branches according to a preset operation relationship to obtain an operation result.
[0060] Since the power metering chip in the embodiment of the present invention can perform power metering on multiple branches. The multiple branches can be branches in multiple different regions or different branches in the same region. To monitor the power consumption of the same region and multiple regions, according to the actual application requirements and the metering results of M branches cached in the calculation result cache module, the operation relationship of the metering results of the M branches is set (according to the preset operation relationship). As a specific example, when the power metering chip in the embodiment of the present invention is used to monitor a region, such as a factory region, to calculate the total active power of the target of the factory region, the total active power of the total power consumption end branches of the factory region, and the total active power of the total power generation end branches of the factory region, subtracting the total active power of power generation from the total active power of power consumption, the target total active power of the factory region can be obtained. Monitor the power consumption of the factory region at different time periods to understand the power consumption change amount of the factory region at different time periods, so as to optimize the power grid operation and resource allocation. By comparing the power consumption of the factory region at the same time period, abnormal power consumption in the factory region can be found in time to prevent equipment failures or power theft.
[0061] In the embodiment of the present invention, the operation result at least includes the target total active power , the target total active energy , the target total reactive power , the target total reactive energy , the target total harmonic active power and the target total harmonic reactive power .
[0062]
[0063] Among them, represents the target total active power, , , , , etc. are the branches that need to accumulate the active power, , , , , are the branches that need to subtract the active power. The branches that need to be accumulated or subtracted can be configured arbitrarily according to the actual application requirements on site.
[0064]
[0065] Among them, represents the target total active energy, , , , , etc. are the branches that need to accumulate the active energy, , , , , are the branches that require active power energy subtraction. The branches that need to be accumulated or subtracted can be configured arbitrarily according to the actual application requirements on site.
[0066]
[0067] Among them, represents the target total reactive power. , , , , etc. are the branches that require reactive power accumulation. , , , , are the branches that require reactive power subtraction. The branches that need to be accumulated or subtracted can be configured arbitrarily according to the actual application requirements on site.
[0068]
[0069] Among them, represents the target total reactive energy. , , , , etc. are the branches that require reactive energy accumulation. , , , , are the branches that require reactive energy subtraction. The branches that need to be accumulated or subtracted can be configured arbitrarily according to the actual application requirements on site.
[0070]
[0071] Among them, is the total harmonic power of a certain harmonic. Among them, ≤k, , , , , etc. are the branches that require the accumulation of active power of a certain harmonic. , , , , are the branches that require the subtraction of active power of a certain harmonic. The branches that need to be accumulated or subtracted can be configured arbitrarily according to the actual application requirements on site.
[0072]
[0073] wherein, is the total harmonic power of a certain harmonic, wherein ≤k, , , , , etc. are the branches where the reactive power of a certain harmonic needs to be accumulated, , , , , are the branches where the active power of a certain harmonic needs to be subtracted. The branches that need to be accumulated or subtracted can be configured arbitrarily according to the actual application requirements on site.
[0074] The electric energy metering chip according to the embodiment of the present invention can randomly configure the metering data of each branch, so that the electric meter using the metering chip according to the embodiment of the present invention can be applicable to various application scenarios, increasing the flexibility and operability of the electric meter configuration.
[0075] In an embodiment of the present invention, the electrical parameters include voltage and current; the metering results at least include metering data and harmonic data, wherein the metering data at least includes one of active power, active electric energy, reactive power, reactive electric energy, apparent power, effective voltage value, and effective current value; the harmonic data at least includes one of harmonic active power, harmonic reactive power, harmonic apparent power, harmonic effective voltage value, harmonic effective current value, and harmonic content ratio; the operation results at least include target total active power, target total active electric energy, target total reactive power, target total reactive electric energy, target total harmonic active power, and target total harmonic reactive power.
[0076] In an embodiment of the present invention, as Figure 4 shown, the electric energy metering chip further includes: An operation result cache module, connected to the operation module, for storing operation results.
[0077] A communication module and a display driving module. The display driving module is connected to the operation result cache module through the communication module. The operation module is further configured to send the metering results and / or operation results to the display driving module through the communication module, so that the display module displays the metering results and / or operation results.
[0078] The electric energy metering chip in the embodiment of the present invention further includes an operation result cache module, a communication module, and a display driving module. Among them, the operation result cache module is connected to the operation module. The display driving module is connected to the operation result cache module through the communication module.
[0079] Specifically, the operation module is further configured to send the measurement result, or the operation result, or the measurement result and the operation result to the display driving module through the communication module, so that the display module connected to the display driving module displays the measurement result or the operation result, or the measurement result and the operation result.
[0080] Taking a specific embodiment where the power system to be monitored has N (M = N) branches, and each branch has 3 voltages and 4 currents as an example, refer to Figure 5 , the power metering chip of the embodiment of the present invention will be described: The clock frequency configuration module determines the number of branches N according to the number of branches of the power system to be monitored connected to the N-channel data sampling module, or the number of branches configured manually. The clock frequency configuration module calculates the total time t required for one branch according to the number of branches N and the metering module, and calculates the clock frequency that needs to be provided to the metering module as: . The clock frequency configuration module will also configure the sampling frequency of the N-channel data sampling module according to the number of branches N and the required sampling rate, so that the metering module and the N-channel data sampling module use the same clock, reducing the area of the power metering chip and lowering the cost.
[0081] The delay detection unit detects the delay information of each channel (1 to 7N) of each branch (1 to N). The delay calculation unit determines the delay of the maximum delay channel according to the delay information of each channel (1 to 7N) of each branch (1 to N) detected by the delay detection unit, and calculates the delay counter value of each channel according to the delay difference between the maximum delay channel and other channels. The N-channel delay trigger unit counts according to the delay counter values of each channel calculated by the delay calculation unit, and triggers the sampling pulse after the counting is completed.
[0082] The N-channel data sampling module starts to collect the voltage and current data of the corresponding branches of the power system according to the sampling start pulses sent by the N-channel delay trigger units. Each branch of the metering chip includes 3-channel voltage sampling and 4-channel current sampling. The branch 1-N data gain adjustment units are connected to the branch 1-N voltage and current sampling units. The branch 1-N data gain adjustment units are used to perform gain compensation on the voltage and current data collected by the branch 1-N voltage and current sampling units. The branch 1-N data acquisition buffer units are connected to the branch 1-N data gain adjustment units. The branch 1-N data acquisition buffer units store the voltage and current data after gain compensation output by the branch 1-N data gain adjustment units. The data scheduling module unit is connected to the branch 1-N data acquisition buffer units. The data scheduling module unit schedules the data in the branch 1-N data acquisition buffer units. When the metering module performs metering calculations on the electrical parameters of each branch of the power system to be monitored, it uses the data scheduling module to schedule the electrical parameters of the corresponding branch to obtain the metering data of each branch.
[0083] For the electric energy metering chip according to the embodiment of the present invention, a clock frequency configuration module is configured according to the number of branches of the power system to be monitored, so that the clock frequency can be adjusted according to application requirements, and thus only one set of metering algorithm calculation module units with harmonic metering can be used to implement the metering functions of multiple branches, greatly reducing the volume and cost of the multi-branch metering electric meter.
[0084] When the electric energy metering chip according to the embodiment of the present invention is applied to the application scenario of multi-branch metering, it greatly reduces the area and cost of the electric meter, and greatly improves the accuracy and reliability of the metering data.
[0085] The present invention provides a metering method.
[0086] The metering method according to the embodiment of the present invention is used for the electric energy metering chip as described above.
[0087] Figure 6 It is a flowchart of the metering method according to an embodiment of the present invention. As Figure 6 shown, the metering method may include: S101, collecting the electrical parameters of M branches of the power system; S102, performing metering calculations on the electrical parameters of M branches according to the clock frequency to obtain the metering results of M branches. Before collecting the electrical parameters of M branches of the power system, the metering method further includes: generating a synchronous trigger signal based on a preset sampling frequency, and generating a sampling pulse based on the synchronous trigger signal and the delay information of each channel corresponding to the detected M branches to collect the electrical parameters of the corresponding channels of the corresponding branches, so as to realize the synchronous collection of the electrical parameters of M branches. The clock frequency is determined by the number of branches M, and M is an integer.
[0088] Specifically, according to the number of branches M of the power system to be monitored connected to the N-channel data sampling module, the clock frequency of the metering module is configured. The electrical parameters of M branches collected by the N-channel data sampling module are obtained, and the electrical parameters of M branches are metered and calculated according to the clock frequency to obtain the metering results of M branches.
[0089] Among them, before collecting the electrical parameters of M branches of the power system, a synchronous trigger signal is generated based on a preset sampling frequency. Specifically, the clock frequency configuration module determines the preset sampling frequency according to the clock frequency and the number of branches M of the power system to be monitored connected to the N-channel data sampling module, so as to generate a synchronous trigger signal based on the preset sampling frequency to control the N-channel data sampling module to synchronously collect the electrical parameters of M branches. A sampling pulse is generated based on the synchronous trigger signal and the delay information of each channel corresponding to the detected M branches to collect the electrical parameters of the corresponding channels of the corresponding branches, realizing the synchronous collection of the electrical parameters of M branches.
[0090] The metering module in the embodiment of the present invention has a harmonic metering function.
[0091] In an embodiment of the present invention, the total duration for metering and calculating the electrical parameters of each individual branch is determined, and the clock frequency is determined according to the total duration and the number of branches M.
[0092] Specifically, the total duration t for the metering module to meter and calculate the electrical parameters of a single branch is measured. The clock frequency is determined according to the total duration t for metering and calculating the electrical parameters of a single branch and the number of branches M. 。
[0093] In the embodiment of the present invention, the number of branches M can be determined by manual configuration or by the clock frequency configuration module. Specifically, the clock frequency configuration module is connected to the N-channel data sampling module to detect the number of branches M of the power system to be monitored connected to the N-channel data sampling module, so as to determine the number of branches M.
[0094] For better results, the number of branches determined by the clock frequency configuration module can also be compared with the number of branches configured manually to ensure the stability of the connection between the N-channel data sampling module and the number of branches of the power system to be monitored. When the number of branches determined by the clock frequency configuration module is not equal to the number of branches configured manually, an alarm is given.
[0095] In an embodiment of the present invention, before metering and calculating the electrical parameters of M branches according to the clock frequency, the metering method further includes: Performing phase adjustment and / or gain compensation on the electrical parameters of M branches.
[0096] It is feasible to collect the voltage data or current data of the corresponding channels of the corresponding branches, perform phase adjustment on the voltage data or current data of the corresponding channels of the corresponding branches, or perform gain compensation, or perform phase adjustment and gain compensation.
[0097] In an embodiment of the present invention, as Figure 7 shown, a sampling pulse is generated based on the synchronous trigger signal and the delay information detected for each channel of the M branches, including: S201, detecting the delay information for each channel of the M branches; S202, determining the maximum delay information according to the delay information for each channel of the M branches, and generating a delay count value for each channel of the M branches according to the maximum delay information; S203, receiving the synchronous trigger signal, and performing counting according to the delay count value for each channel of the corresponding branch when the synchronous trigger signal is received, and generating a sampling pulse when the counting is completed to collect the electrical parameters of the corresponding channel of the corresponding branch.
[0098] To enable the N-channel data sampling module to accurately synchronously collect the electrical parameters of each channel corresponding to the M branches when receiving the synchronous trigger signal generated by the synchronous sampling trigger module, the power metering chip in the embodiment of the present invention further includes a delay detection unit, a delay calculation unit, and an N-channel delay trigger unit. Among them, the delay detection unit is connected to the metering module, and the delay detection unit and the delay calculation unit are connected to the N-channel delay trigger unit. Each channel delay trigger unit of the N-channel delay trigger unit is connected to each channel data sampling module of the N-channel data sampling module.
[0099] Specifically, the delay detection unit detects the delay information for each channel of the M branches based on the electrical parameters of the M branches received by the metering module. The delay calculation unit compares and judges the magnitudes of the delay information for each channel of the M branches to determine the maximum delay information. According to the determined maximum delay information and the delay information for each channel of the M branches, a delay count value for each channel of the M branches is generated. The N-channel delay trigger unit performs counting based on the received synchronous trigger signal and the delay count value for each channel of the corresponding branch, and generates a sampling pulse when the counting is completed. The N-channel data sampling module collects the electrical parameters when receiving the sampling pulse of the corresponding channel of the corresponding branch, realizing synchronous collection of the electrical parameters of each channel corresponding to the corresponding branches by the N-channel data sampling module.
[0100] It should be noted that it is impossible to achieve synchronous sampling between multiple metering chips, which will lead to inaccurate metering data. By adopting the embodiment of the present invention, synchronous sampling is performed on all branches, thereby making the metering data more accurate and reliable.
[0101] In an embodiment of the present invention, the metering method further includes: Perform operations on the measurement results of M branches according to a preset operation relationship to obtain an operation result.
[0102] Specifically, according to the actual application requirements and the measurement results of M branches cached in the calculation result cache module, set the operation relationship of the measurement results of M branches (according to the preset operation relationship).
[0103] In an embodiment of the present invention, the electrical parameters include voltage and current; the measurement results at least include measurement data and harmonic data, where the measurement data at least includes one of active power, active energy, reactive power, reactive energy, apparent power, effective voltage value, and effective current value, and the harmonic data at least includes one of harmonic active power, harmonic reactive power, harmonic apparent power, harmonic effective voltage value, harmonic effective current value, and harmonic content ratio; the operation result at least includes target total active power, target total active energy, target total reactive power, target total reactive energy, target total harmonic active power, and target total harmonic reactive power.
[0104] The measurement method of the embodiment of the present invention is used for the electric energy measurement chip of the embodiment of the present invention, which greatly improves the accuracy and reliability of the measurement data.
[0105] The present invention provides a terminal device.
[0106] Figure 8 It is a schematic diagram of a terminal device according to an embodiment of the present invention. As Figure 8 shown, the terminal device 1000 includes the electric energy measurement chip 100 as described above.
[0107] The terminal device in the embodiment of the present invention can be a device such as a smart meter.
[0108] When the terminal device of the embodiment of the present invention is applied to an application scenario of multi-branch measurement, it greatly reduces the area and cost of the electric meter, and greatly improves the accuracy and reliability of the measurement data.
[0109] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a definite sequence list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other systems that can fetch and execute instructions from the instruction execution system, apparatus, or device), or in combination with these instruction execution systems, apparatuses, or devices. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by or in combination with an instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection portion having one or more wirings (electronic device), a portable computer diskette case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium can even be paper or other suitable media on which the program can be printed, because the program can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpretation, or other suitable processing as necessary, and then stored in a computer memory.
[0110] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware, or a combination thereof. In the above-described embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or a combination of the following techniques well known in the art can be used: discrete logic circuits having logic gate circuits for implementing logical functions on data signals, application-specific integrated circuits having appropriate combinational logic gate circuits, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), and the like.
[0111] In the description of this specification, the description referring to terms such as "one embodiment", "some embodiments", "example", "specific example", or "some examples", etc. means that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0112] In the description of the present invention, it should be understood that the orientation or positional relationship indicated by the terms "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc. is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be construed as a limitation on the present invention.
[0113] In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include at least one of such features. In the description of the present invention, the meaning of "a plurality of" is at least two, such as two, three, etc., unless otherwise specifically and clearly defined.
[0114] In the present invention, unless otherwise clearly specified and limited, the terms "mounted", "connected", "connected to", "fixed", etc. should be understood in a broad sense. For example, it may be a fixed connection, a detachable connection, or integrated; it may be a mechanical connection or an electrical connection; it may be directly connected or indirectly connected through an intermediate medium, and it may be the communication inside two elements or the interaction relationship between two elements, unless otherwise clearly limited. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0115] In the present invention, unless otherwise clearly specified and limited, the first feature being "on" or "under" the second feature may be that the first and second features are in direct contact, or the first and second features are indirectly in contact through an intermediate medium. Moreover, the first feature being "above", "over" and "on top of" the second feature may be that the first feature is directly above or obliquely above the second feature, or merely indicates that the first feature has a higher horizontal height than the second feature. The first feature being "under", "beneath" and "underneath" the second feature may be that the first feature is directly below or obliquely below the second feature, or merely indicates that the first feature has a lower horizontal height than the second feature.
[0116] Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as a limitation on the present invention. Those of ordinary skill in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.
Claims
1. An electric energy metering chip, characterized in that, The electric energy metering chip includes: An N-channel data sampling module for collecting electrical parameters of M branches of a power system, where N and M are integers, and 1 ≤ M ≤ N; A clock frequency configuration module for configuring the clock frequency of the metering module according to the number of branches M; The metering module, respectively connected to the clock frequency configuration module and the N-channel data sampling module, for performing metering calculations on the electrical parameters of the M branches according to the clock frequency to obtain the metering results of the M branches; A synchronous sampling trigger module, connected to the metering module, for generating a synchronous trigger signal according to the metering module based on a preset sampling frequency; A synchronous sampling correction module, connected to the metering module, the synchronous sampling trigger module, and the N-channel data sampling module, for receiving the synchronous trigger signal, and when receiving the synchronous trigger signal, generating a sampling pulse based on the detected delay information of each channel corresponding to the M branches to control the N-channel data sampling module to collect the electrical parameters of the corresponding channels of the corresponding branches, so as to realize the synchronous collection of the electrical parameters of the M branches by the N-channel data sampling module.
2. The electric energy metering chip according to claim 1, wherein The clock frequency configuration module is used to: determine the total duration for the metering module to perform metering calculations on the electrical parameters of a single branch, and determine the clock frequency according to the total duration and the number of branches M.
3. The electric energy metering chip according to claim 1, wherein Each data sampling module is connected to at most one branch, and each data sampling module includes: A data sampling unit for collecting the voltage and / or current of the corresponding branch; A data processing unit, connected to the data sampling unit, for performing phase adjustment and / or gain compensation on the voltage and / or current.
4. The electric energy metering chip according to claim 1, characterized in that The synchronous sampling correction module includes: A delay detection unit, connected to the metering module, for detecting the delay information of each channel corresponding to the M branches; A delay calculation unit, connected to the delay detection unit, for determining the maximum delay information according to the delay information of each channel corresponding to the M branches, and generating a delay count value of each channel corresponding to the M branches according to the maximum delay information; An N-channel delay trigger unit, connected to the synchronous sampling trigger module, the delay calculation unit, and the N-channel data sampling module, for receiving the synchronous trigger signal, and when receiving the synchronous trigger signal, performing counting according to the delay count value of each channel corresponding to the corresponding branch, and generating a sampling pulse when the counting is completed.
5. The electric energy metering chip according to claim 1, characterized in that, The electric energy metering chip further includes: A data acquisition buffer module, connected to the N-channel data sampling module, for storing the electrical parameters of the M branches; A data scheduling module, respectively connected to the data acquisition buffer module and the metering module, and the metering module is further used to control the data scheduling module to retrieve the electrical parameters of the M branches from the data acquisition buffer module within the clock cycle corresponding to the clock frequency.
6. The electric energy metering chip according to claim 1, wherein The electric energy metering chip further includes: A calculation result buffer module, connected to the metering module, for storing the metering results of the M branches; An operation module, connected to the calculation result cache module, is configured to perform operations on the measurement results of the M branches according to a preset operation relationship to obtain an operation result.
7. The electric energy metering chip according to claim 6, wherein, The electrical parameters include voltage and current; the measurement results at least include measurement data and harmonic data, where the measurement data at least includes one of active power, active energy, reactive power, reactive energy, apparent power, effective voltage value, and effective current value, and the harmonic data at least includes one of harmonic active power, harmonic reactive power, harmonic apparent power, harmonic effective voltage value, harmonic effective current value, and harmonic content ratio. The operation result at least includes target total active power, target total active energy, target total reactive power, target total reactive energy, target total harmonic active power, and target total harmonic reactive power.
8. The electric energy metering chip according to claim 6, characterized in that, The electric energy metering chip further includes: An operation result cache module, connected to the operation module, is configured to store the operation result. A communication module and a display driving module, the display driving module is connected to the calculation result cache module and / or the operation result cache module through the communication module, and the operation module is further configured to send the measurement result and / or the operation result to the display driving module through the communication module, so that the display module displays the measurement result and / or the operation result.
9. A metering method, characterized in that, For the electric energy metering chip according to any one of claims 1-8, the method includes: Collecting electrical parameters of M branches of a power system. Performing metering calculations on the electrical parameters of the M branches according to a clock frequency to obtain the measurement results of the M branches. Before collecting the electrical parameters of the M branches of the power system, the method further includes: generating a synchronous trigger signal based on a preset sampling frequency, and generating a sampling pulse based on the synchronous trigger signal and the delay information of each channel corresponding to the detected M branches, so as to collect the electrical parameters of the corresponding channels of the corresponding branches, realizing synchronous collection of the electrical parameters of the M branches. The clock frequency is determined by the number of branches M, and M is an integer.
10. The metering method according to claim 9, characterized in that, Determining the total duration of performing metering calculations on the electrical parameters of each individual branch, and determining the clock frequency according to the total duration and the number of branches M.
11. The metering method according to claim 9, characterized in that Before performing metering calculations on the electrical parameters of the M branches according to the clock frequency, the method further includes: Performing phase adjustment and / or gain compensation on the electrical parameters of the M branches.
12. The metering method according to claim 9, characterized in that, Generating the sampling pulse based on the synchronous trigger signal and the delay information of each channel corresponding to the detected M branches includes: Detecting the delay information of each channel corresponding to the M branches. Determining the maximum delay information according to the delay information of each channel corresponding to the M branches, and generating a delay count value for each channel corresponding to the M branches according to the maximum delay information. Receiving the synchronous trigger signal, and performing counting according to the delay count value of each channel corresponding to the corresponding branch when receiving the synchronous trigger signal, and generating a sampling pulse when the counting is completed.
13. The metering method according to claim 9, characterized in that, The method further includes: Perform operations on the measurement results of the M branches according to a preset operation relationship to obtain an operation result.
14. The metering method according to claim 13, characterized in that, The electrical parameters include voltage and current; the measurement results at least include measurement data and harmonic data. Among them, the measurement data at least includes one of active power, active energy, reactive power, reactive energy, apparent power, effective voltage value, and effective current value, and the harmonic data at least includes one of harmonic active power, harmonic reactive power, harmonic apparent power, harmonic effective voltage value, harmonic effective current value, and harmonic content ratio; the operation result at least includes target total active power, target total active energy, target total reactive power, target total reactive energy, target total harmonic active power, and target total harmonic reactive power.
15. A terminal device, characterized in that, It includes the electric energy metering chip according to any one of claims 1-8.
Citation Information
Patent Citations
3G network based multi-channel electric energy quality analysis device
CN108535576A
Multichannel data synchronization circuit based on FPGA
CN112327693A
Electric energy metering chip and electric energy metering device
CN112730973A
Synchronous sampling method and system of harmonic standard meter
CN117723826A
Three-phase electric energy meter based on C8051F310SOC single chip
CN201540329U