Metering method and system for multi-pulse constant detection and storage medium
By adjusting the pulse constant in the power meter meter meter and obtaining the corresponding power signals according to different pulse constants, the verification of multi-pulse constants is achieved, and the production and verification efficiency is improved, and the problem of inefficiency caused by the single pulse constant in the prior art is solved.
Patent Information
- Application Number
- CN202411961423.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-04-11
AI Technical Summary
Due to the inherent single pulse constant of existing electrical energy metering devices, the production and verification efficiency are low, and a multi-pulse constant detection metering technology is urgently needed to improve efficiency.
The pulse constant is adjusted through the set communication method. If the adjusted pulse constant is the same as the inherent pulse constant, the calibration signal will be driven based on the active power signal and reactive power signal of the fixed pulse constant; if it is different, the corresponding signal will be obtained based on the adjusted pulse constant and the active power and reactive power used to drive the calibration signal.
Through the verification of multi-pulse constants, the production efficiency and calibration efficiency of the metering device are improved, and the problem of inefficiency caused by a single pulse constant is solved.
Smart Images

Figure CN119805350A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electric meter measurement, and more specifically, to a measurement method, system and storage medium for multi-pulse constant detection. Background Art
[0002] An electric energy meter is an instrument used to measure electric energy. It is used to measure the electric energy consumed over a period of time. It is usually installed in the power system of a home, factory or commercial place to record the amount of electric energy consumed. At present, the metering device used in the electric energy meter usually adopts an inherent pulse constant. The metering device sends a pulse according to the power consumption to drive the calibration signal. However, due to the long waiting time for each round of calibration and the single pulse constant, the production and calibration efficiency is low.
[0003] Therefore, there is an urgent need for a multi-pulse constant detection metrology technology that can improve the production and calibration efficiency of metrology devices. Summary of the invention
[0004] In view of the above problems, the purpose of the present invention is to provide a metering method, system and storage medium for multi-pulse constant detection, wherein the pulse constant is adjusted through a set communication method. If the adjusted pulse constant is the same as the inherent pulse constant, the verification signal is driven according to the active power signal and reactive power signal of the fixed pulse constant; if the adjusted pulse constant is different from the inherent pulse constant, the active power signal and reactive power signal are obtained according to the adjusted pulse constant and the active power and reactive power of the electricity used to drive the verification signal; by applying the verification of multiple pulse constants, the purpose of improving production efficiency and verification efficiency is achieved.
[0005] A first aspect of the present invention provides a metrology method for multi-pulse constant detection, the method comprising:
[0006] Acquiring a first power signal and a second power signal;
[0007] determining first pulse constant information according to the first power signal and the second power signal;
[0008] Acquiring first communication instruction information;
[0009] Obtaining second pulse constant information according to the first communication instruction information;
[0010] Determining whether the first pulse constant information is the same as the second pulse constant information;
[0011] If yes, then set to enter the first pulse mode;
[0012] Determine a first active signal according to the first power signal, and determine a first reactive signal according to the second power signal;
[0013] If not, then set to enter the second pulse mode;
[0014] determining a third power signal and a fourth power signal according to the second pulse constant information;
[0015] Determine a first active signal according to the third power signal, and determine a first reactive signal according to the fourth power signal;
[0016] First calibration information is obtained according to the first active signal and the first reactive signal.
[0017] In this solution, the first pulse constant information is determined according to the first power signal and the second power signal, specifically:
[0018] obtaining first time information according to the first power signal;
[0019] According to the first time information and a preset measurement formula, a first active power relationship equation is obtained;
[0020] obtaining second time information according to the second power signal;
[0021] According to the second time information, a first reactive power relationship is obtained according to a preset measurement formula;
[0022] According to the first active power relationship equation and the first reactive power relationship equation, first pulse constant information is obtained according to the inherent rules of active power and reactive power.
[0023] In this solution, the third power signal and the fourth power signal are determined according to the second pulse constant information, specifically:
[0024] Obtain active power information and reactive power information;
[0025] Obtaining third time information according to the second pulse constant information and the active power information and a preset measurement formula;
[0026] Obtaining a third power signal according to the third time information and a preset pulse time threshold;
[0027] Obtain fourth time information according to the second pulse constant information and the reactive power information and a preset measurement formula;
[0028] A fourth power signal is obtained according to the fourth time information and a preset pulse time threshold.
[0029] In this solution, the first calibration information is specifically:
[0030] A first electrical signal or a first optical information;
[0031] When it is determined that the first calibration information is a first electrical signal;
[0032] Determine a first optocoupler signal and a second optocoupler signal according to the first active signal and the first reactive signal;
[0033] When it is determined that the first calibration information is first light information;
[0034] A first LED state and a second LED state are determined according to the first active signal and the first reactive signal.
[0035] In this solution, the first optical coupler signal and the second optical coupler signal are determined according to the first active signal and the first reactive signal, specifically:
[0036] Determining whether the first active signal is at a preset first level;
[0037] If yes, setting the first optical coupler signal to second level information;
[0038] If not, setting the first optical coupler signal to the first level information;
[0039] Determining whether the first reactive signal is at a preset first level;
[0040] If yes, setting the second optical coupler signal to second level information;
[0041] If not, the second optocoupler signal is set to the first level information.
[0042] In this solution, determining the first LED state and the second LED state according to the first active signal and the first reactive signal is specifically:
[0043] Determining whether the first active signal is at a preset first level;
[0044] If yes, set the first LED to off state;
[0045] If not, setting the first LED to a lighted state;
[0046] Determining whether the first reactive signal is at a preset first level;
[0047] If yes, set the second LED to off state;
[0048] If not, the second LED is set to be on.
[0049] A second aspect of the present invention provides a metrology system for multi-pulse constant detection, including a metrology method program for multi-pulse constant detection, wherein the metrology method program for multi-pulse constant detection implements the following steps when executed by the processor:
[0050] Acquiring a first power signal and a second power signal;
[0051] determining first pulse constant information according to the first power signal and the second power signal;
[0052] Acquiring first communication instruction information;
[0053] Obtaining second pulse constant information according to the first communication instruction information;
[0054] Determining whether the first pulse constant information is the same as the second pulse constant information;
[0055] If yes, then set to enter the first pulse mode;
[0056] Determine a first active signal according to the first power signal, and determine a first reactive signal according to the second power signal;
[0057] If not, then set to enter the second pulse mode;
[0058] determining a third power signal and a fourth power signal according to the second pulse constant information;
[0059] Determine a first active signal according to the third power signal, and determine a first reactive signal according to the fourth power signal;
[0060] First calibration information is obtained according to the first active signal and the first reactive signal.
[0061] In this solution, the first pulse constant information is determined according to the first power signal and the second power signal, specifically:
[0062] obtaining first time information according to the first power signal;
[0063] According to the first time information and a preset measurement formula, a first active power relationship equation is obtained;
[0064] obtaining second time information according to the second power signal;
[0065] According to the second time information, a first reactive power relationship is obtained according to a preset measurement formula;
[0066] According to the first active power relationship equation and the first reactive power relationship equation, first pulse constant information is obtained according to the inherent rules of active power and reactive power.
[0067] In this solution, the third power signal and the fourth power signal are determined according to the second pulse constant information, specifically:
[0068] Obtain active power information and reactive power information;
[0069] Obtaining third time information according to the second pulse constant information and the active power information and a preset measurement formula;
[0070] Obtaining a third power signal according to the third time information and a preset pulse time threshold;
[0071] Obtain fourth time information according to the second pulse constant information and the reactive power information and a preset measurement formula;
[0072] A fourth power signal is obtained according to the fourth time information and a preset pulse time threshold.
[0073] A third aspect of the present invention provides a computer-readable storage medium, which includes a metering method program for multi-pulse constant detection. When the metering method program for multi-pulse constant detection is executed by a processor, the steps of the metering method for multi-pulse constant detection as described in any one of the above items are implemented.
[0074] The present invention provides a metering method, system and storage medium for multi-pulse constant detection. First, first pulse constant information is determined according to a first power signal and a second power signal; then, second pulse constant information is obtained according to first communication instruction information; when it is determined that the first pulse constant information is the same as the second pulse constant information, a first active signal is determined according to the first power signal and a first reactive signal is determined according to the second power signal; when it is determined that the first pulse constant information is not the same as the second pulse constant information, a third power signal and a fourth power signal are first determined according to the second pulse constant information, and then a first active signal is determined according to the third power signal and a first reactive signal is determined according to the fourth power signal; finally, first calibration information is obtained according to the first active signal and the first reactive signal to drive a verification signal; by applying the verification of multi-pulse constants, the purpose of improving production efficiency and verification efficiency is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and should not be regarded as limiting the scope.
[0076] Figure 1 A flow chart of a measurement method for multi-pulse constant detection of the present invention is shown;
[0077] Figure 2 A flowchart of determining first pulse constant information provided by an embodiment of the present invention is shown;
[0078] Figure 3 A flowchart of determining a third power signal and a fourth power signal provided by an embodiment of the present invention is shown;
[0079] Figure 4 A block diagram of a metering system for multi-pulse constant detection according to the present invention is shown. DETAILED DESCRIPTION
[0080] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0081] Unless otherwise defined, all terms (including technical and scientific terms) used in the embodiments of the present invention have the same meanings as commonly understood by those of ordinary skill in the art to which the present invention belongs. It should also be understood that terms such as those defined in common dictionaries should be interpreted as having meanings consistent with their meanings in the context of the relevant technology, and should not be interpreted in an idealized or extremely formal sense, unless the embodiments of the present invention are clearly defined in this way.
[0082] The words "first", "second" and similar words used in the embodiments of the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. Words such as "one", "an" or "the" and similar words do not indicate a quantity limitation, but indicate the existence of at least one. Similarly, words such as "include" or "comprise" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Words such as "connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The steps before or after the method of the embodiment of the present invention are not necessarily carried out in order. On the contrary, various steps can be processed in reverse order or simultaneously. At the same time, other operations can also be added to these processes, or a step or several steps can be removed from these processes.
[0083] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
[0084] Figure 1A flow chart of a measurement method for multi-pulse constant detection of the present invention is shown.
[0085] like Figure 1 As shown, the first aspect of the present invention discloses a measurement method for multi-pulse constant detection, the method comprising:
[0086] S102, acquiring a first power signal and a second power signal;
[0087] S104, determining first pulse constant information according to the first power signal and the second power signal;
[0088] S106, obtaining first communication instruction information;
[0089] S108, obtaining second pulse constant information according to the first communication instruction information;
[0090] S110, determining whether the first pulse constant information is the same as the second pulse constant information;
[0091] S112, if yes, set to enter the first pulse mode;
[0092] S114, determining a first active signal according to the first power signal, and determining a first reactive signal according to the second power signal;
[0093] S116, if not, setting to enter the second pulse mode;
[0094] S118, determining a third power signal and a fourth power signal according to the second pulse constant information;
[0095] S120, determining a first active signal according to the third power signal, and determining a first reactive signal according to the fourth power signal;
[0096] S122: Obtain first calibration information according to the first active signal and the first reactive signal.
[0097] It should be noted that the first pulse constant information is an inherent pulse constant, that is, an inherent pulse constant used by the metering device; the second pulse constant is an instruction pulse constant, that is, a pulse constant obtained according to a communication instruction. The first communication instruction information is a communication instruction for adjusting the pulse constant, including but not limited to information such as pulse constant and power consumption. The first pulse mode is a verification information driving mode using an inherent pulse constant; the second pulse mode is a verification information driving mode using a communication pulse constant. The first power signal is a pulse signal of active power when the inherent pulse constant is used; the second power signal is a pulse signal of reactive power when the inherent pulse constant is used; the third power signal is a pulse signal of active power when the communication pulse constant is used; the fourth power signal is a pulse signal of reactive power when the communication pulse constant is used. The first active signal is a driving signal for active power verification information; the first reactive signal is a driving signal for reactive power verification information; the first calibration information is information showing the results of active power and reactive power verification.
[0098] In this embodiment, first, the first power signal and the second power signal are collected and recorded, and then the first pulse constant information is calculated according to the metering formula of the power signal. Secondly, if the first communication instruction information is received, the first communication instruction information is parsed to obtain the second pulse constant information. Then, it is determined whether the first pulse constant information is equal to the second pulse constant information; if so, the mode output pin is set to the state corresponding to the first pulse mode, indicating that the drive signal obtained by using the inherent pulse constant is used to drive the verification information, therefore, the drive of the active power verification information is obtained according to the first power signal, that is, the first active signal and the drive of the reactive power verification information obtained according to the second power signal, that is, the first reactive signal; if not, the mode output pin is set to the state corresponding to the second pulse mode, indicating that the drive signal obtained by using the communication pulse constant is used to drive the verification information, at this time, the third power signal and the fourth power signal are first calculated according to the metering formula of the power signal according to the communication pulse information, and then the drive of the active power verification information is obtained according to the third power signal, that is, the first active signal and the drive of the reactive power verification information obtained according to the fourth power signal, that is, the first reactive signal. Finally, first calibration information is obtained according to the first active signal and the first reactive signal to display the verification results of the active power and the reactive power.
[0099] Figure 2 A flow chart for determining first pulse constant information provided by an embodiment of the present invention is shown.
[0100] According to an embodiment of the present invention, Figure 2 As shown, the first pulse constant information is determined according to the first power signal and the second power signal, specifically:
[0101] S202, obtaining first time information according to the first power signal;
[0102] S204, obtaining a first active power relationship equation according to the first time information and a preset measurement formula;
[0103] S206, obtaining second time information according to the second power signal;
[0104] S208, obtaining a first reactive power relationship according to the second time information and a preset measurement formula;
[0105] S210: Obtain first pulse constant information according to the first active power relationship equation and the first reactive power relationship equation and in accordance with inherent rules of active power and reactive power.
[0106] It should be noted that the first time information is the time during which the first power signal is at the first level within the preset pulse time threshold; the second time information is the time during which the second power signal is at the first level within the preset pulse time threshold. The preset measurement formula is:
[0107] T1 = k / C*P;
[0108] T2 = k / C*Q;
[0109] In the formula:
[0110] T1 is the time when the pulse signal of active power is at the first level, which corresponds to the first time information in this embodiment;
[0111] T2 is the time during which the reactive power pulse signal is at the first level, which corresponds to the second time information in this embodiment;
[0112] k is the fixed calculation coefficient set by the metering device;
[0113] C is a pulse constant, which corresponds to the first pulse constant information in this embodiment;
[0114] P is the active power of the electrical power;
[0115] Q is the reactive power of the electrical power.
[0116] The above formulas can be used to obtain the relationship between the first pulse constant information and the active power of electricity, namely the first active relationship, and the relationship between the first pulse constant information and the reactive power of electricity, namely the first reactive relationship.
[0117] In the electric energy metering system, the inherent rules satisfied by the active power and reactive power are:
[0118]
[0119] Where S is the apparent power, i.e. the total power provided by the power supply; is the power factor.
[0120] Therefore, the first pulse constant information can be calculated based on the first active power relationship, the first reactive power relationship and the above inherent power rule.
[0121] Figure 3 A flow chart for determining a third power signal and a fourth power signal provided by an embodiment of the present invention is shown.
[0122] According to an embodiment of the present invention, Figure 3 As shown, the third power signal and the fourth power signal are determined according to the second pulse constant information, specifically:
[0123] S302, obtaining active power information and reactive power information;
[0124] S304, obtaining third time information according to the second pulse constant information and the active power information according to a preset measurement formula;
[0125] S306, obtaining a third power signal according to the third time information and a preset pulse time threshold;
[0126] S308, obtaining fourth time information according to the second pulse constant information and the reactive power information according to a preset measurement formula;
[0127] S310: Obtain a fourth power signal according to the fourth time information and a preset pulse time threshold.
[0128] It should be noted that, in this embodiment, by parsing the first communication instruction information, the active power and reactive power measured by the electric energy meter, that is, the active power information and the reactive power information, are obtained. According to the above preset measurement formula, the time when the third power signal is at the first level, that is, the third time information, and the time when the fourth power signal is at the first level, that is, the fourth time information, can be obtained. Finally, according to the preset pulse time threshold as the pulse period of the third power signal and the fourth power signal, according to the corresponding third time information and fourth time information, the third power signal and the fourth power signal are obtained and output; wherein, in actual application, the preset pulse time threshold adopts 80ms.
[0129] According to an embodiment of the present invention, the first calibration information is specifically:
[0130] A first electrical signal or a first optical information;
[0131] When it is determined that the first calibration information is a first electrical signal;
[0132] Determine a first optocoupler signal and a second optocoupler signal according to the first active signal and the first reactive signal;
[0133] When it is determined that the first calibration information is first light information;
[0134] A first LED state and a second LED state are determined according to the first active signal and the first reactive signal.
[0135] It should be noted that, in this embodiment, an electrical signal or an optical signal is used to transmit or display the active power and reactive power verification results, that is, to display the first calibration information. As an implementation method, an optocoupler is used to achieve the effect of transmitting an electrical signal, and there is an advantage of electrical isolation. The first optocoupler signal is determined according to the first active signal, and the purpose of transmitting the active power verification result is achieved by switching the electrical signal output by the first optocoupler; the second optocoupler signal is determined according to the first reactive signal, and the purpose of transmitting the reactive power verification result is achieved by switching the electrical signal output by the second optocoupler. As another implementation method, an LED is used to achieve the effect of displaying an optical signal, and there is also an advantage of electrical isolation. The state of the first LED is determined according to the first active signal, and the purpose of displaying the active power verification result is achieved by switching the on and off state of the first LED; the state of the second LED is determined according to the first reactive signal, and the purpose of displaying the reactive power verification result is achieved by switching the on and off state of the second LED.
[0136] According to an embodiment of the present invention, determining the first optocoupler signal and the second optocoupler signal according to the first active signal and the first reactive signal is specifically:
[0137] Determining whether the first active signal is at a preset first level;
[0138] If yes, setting the first optical coupler signal to second level information;
[0139] If not, setting the first optical coupler signal to the first level information;
[0140] Determining whether the first reactive signal is at a preset first level;
[0141] If yes, setting the second optical coupler signal to second level information;
[0142] If not, the second optocoupler signal is set to the first level information.
[0143] It should be noted that, as an implementation method, an optocoupler is used to achieve the effect of transmitting electrical signals. Determine whether the first active signal is a preset first level; if so, drive the first optocoupler to set the first optocoupler signal to the second level information; if not, drive the first optocoupler to set the first optocoupler signal to the first level information. Determine whether the first reactive signal is a preset first level; if so, drive the second optocoupler to set the second optocoupler signal to the second level information; if not, drive the second optocoupler to set the second optocoupler signal to the first level information.
[0144] According to an embodiment of the present invention, determining the first LED state and the second LED state according to the first active signal and the first reactive signal is specifically:
[0145] Determining whether the first active signal is at a preset first level;
[0146] If yes, set the first LED to off state;
[0147] If not, setting the first LED to a lighted state;
[0148] Determining whether the first reactive signal is at a preset first level;
[0149] If yes, set the second LED to off state;
[0150] If not, the second LED is set to be on.
[0151] It should be noted that, as another implementation, an LED is used to achieve the effect of displaying a light signal. It is determined whether the first active signal is a preset first level; if so, the first LED is driven to be in an off state; if not, the first LED is driven to be in an on state. It is determined whether the first reactive signal is a preset first level; if so, the second LED is driven to be in an off state; if not, the second LED is driven to be in an on state.
[0152] Figure 4 A block diagram of a metering system for multi-pulse constant detection according to the present invention is shown.
[0153] like Figure 4 As shown, the second aspect of the present invention discloses a multi-pulse constant detection metering system 4, comprising a memory 41 and a processor 42, wherein the memory comprises a multi-pulse constant detection metering method program, and when the multi-pulse constant detection metering method program is executed by the processor, the following steps are implemented:
[0154] Acquiring a first power signal and a second power signal;
[0155] determining first pulse constant information according to the first power signal and the second power signal;
[0156] Acquiring first communication instruction information;
[0157] Obtaining second pulse constant information according to the first communication instruction information;
[0158] Determining whether the first pulse constant information is the same as the second pulse constant information;
[0159] If yes, then set to enter the first pulse mode;
[0160] Determine a first active signal according to the first power signal, and determine a first reactive signal according to the second power signal;
[0161] If not, then set to enter the second pulse mode;
[0162] determining a third power signal and a fourth power signal according to the second pulse constant information;
[0163] Determine a first active signal according to the third power signal, and determine a first reactive signal according to the fourth power signal;
[0164] First calibration information is obtained according to the first active signal and the first reactive signal.
[0165] It should be noted that the first pulse constant information is an inherent pulse constant, that is, an inherent pulse constant used by the metering device; the second pulse constant is an instruction pulse constant, that is, a pulse constant obtained according to a communication instruction. The first communication instruction information is a communication instruction for adjusting the pulse constant, including but not limited to information such as pulse constant and power consumption. The first pulse mode is a verification information driving mode using an inherent pulse constant; the second pulse mode is a verification information driving mode using a communication pulse constant. The first power signal is a pulse signal of active power when the inherent pulse constant is used; the second power signal is a pulse signal of reactive power when the inherent pulse constant is used; the third power signal is a pulse signal of active power when the communication pulse constant is used; the fourth power signal is a pulse signal of reactive power when the communication pulse constant is used. The first active signal is a driving signal for active power verification information; the first reactive signal is a driving signal for reactive power verification information; the first calibration information is information showing the results of active power and reactive power verification.
[0166] In this embodiment, first, the first power signal and the second power signal are collected and recorded, and then the first pulse constant information is calculated according to the metering formula of the power signal. Secondly, if the first communication instruction information is received, the first communication instruction information is parsed to obtain the second pulse constant information. Then, it is determined whether the first pulse constant information is equal to the second pulse constant information; if so, the mode output pin is set to the state corresponding to the first pulse mode, indicating that the drive signal obtained by using the inherent pulse constant is used to drive the verification information, therefore, the drive of the active power verification information is obtained according to the first power signal, that is, the first active signal and the drive of the reactive power verification information obtained according to the second power signal, that is, the first reactive signal; if not, the mode output pin is set to the state corresponding to the second pulse mode, indicating that the drive signal obtained by using the communication pulse constant is used to drive the verification information, at this time, the third power signal and the fourth power signal are first calculated according to the metering formula of the power signal according to the communication pulse information, and then the drive of the active power verification information is obtained according to the third power signal, that is, the first active signal and the drive of the reactive power verification information obtained according to the fourth power signal, that is, the first reactive signal. Finally, first calibration information is obtained according to the first active signal and the first reactive signal to display the verification results of the active power and the reactive power.
[0167] According to an embodiment of the present invention, determining the first pulse constant information according to the first power signal and the second power signal is specifically:
[0168] obtaining first time information according to the first power signal;
[0169] According to the first time information and a preset measurement formula, a first active power relationship equation is obtained;
[0170] obtaining second time information according to the second power signal;
[0171] According to the second time information, a first reactive power relationship is obtained according to a preset measurement formula;
[0172] According to the first active power relationship equation and the first reactive power relationship equation, first pulse constant information is obtained according to the inherent rules of active power and reactive power.
[0173] It should be noted that the first time information is the time during which the first power signal is at the first level within the preset pulse time threshold; the second time information is the time during which the second power signal is at the first level within the preset pulse time threshold. The preset measurement formula is:
[0174] T1 = k / C*P;
[0175] T2 = k / C*Q;
[0176] In the formula:
[0177] T1 is the time when the pulse signal of active power is at the first level, which corresponds to the first time information in this embodiment;
[0178] T2 is the time during which the reactive power pulse signal is at the first level, which corresponds to the second time information in this embodiment;
[0179] k is the fixed calculation coefficient set by the metering device;
[0180] C is a pulse constant, which corresponds to the first pulse constant information in this embodiment;
[0181] P is the active power of the electrical power;
[0182] Q is the reactive power of the electrical power.
[0183] The above formulas can be used to obtain the relationship between the first pulse constant information and the active power of electricity, namely the first active relationship, and the relationship between the first pulse constant information and the reactive power of electricity, namely the first reactive relationship.
[0184] In the electric energy metering system, the inherent rules satisfied by the active power and reactive power are:
[0185]
[0186] Where S is the apparent power, i.e. the total power provided by the power supply; is the power factor.
[0187] Therefore, the first pulse constant information can be calculated based on the first active power relationship, the first reactive power relationship and the above inherent power rule.
[0188] According to an embodiment of the present invention, determining the third power signal and the fourth power signal according to the second pulse constant information is specifically:
[0189] Obtain active power information and reactive power information;
[0190] Obtaining third time information according to the second pulse constant information and the active power information and a preset measurement formula;
[0191] Obtaining a third power signal according to the third time information and a preset pulse time threshold;
[0192] Obtain fourth time information according to the second pulse constant information and the reactive power information and a preset measurement formula;
[0193] A fourth power signal is obtained according to the fourth time information and a preset pulse time threshold.
[0194] It should be noted that, in this embodiment, by parsing the first communication instruction information, the active power and reactive power measured by the electric energy meter, that is, the active power information and the reactive power information, are obtained. According to the above preset measurement formula, the time when the third power signal is at the first level, that is, the third time information, and the time when the fourth power signal is at the first level, that is, the fourth time information, can be obtained. Finally, according to the preset pulse time threshold as the pulse period of the third power signal and the fourth power signal, according to the corresponding third time information and fourth time information, the third power signal and the fourth power signal are obtained and output; wherein, in actual application, the preset pulse time threshold adopts 80ms.
[0195] According to an embodiment of the present invention, the first calibration information is specifically:
[0196] A first electrical signal or a first optical information;
[0197] When it is determined that the first calibration information is a first electrical signal;
[0198] Determine a first optocoupler signal and a second optocoupler signal according to the first active signal and the first reactive signal;
[0199] When it is determined that the first calibration information is first light information;
[0200] A first LED state and a second LED state are determined according to the first active signal and the first reactive signal.
[0201] It should be noted that, in this embodiment, an electrical signal or an optical signal is used to transmit or display the active power and reactive power verification results, that is, to display the first calibration information. As an implementation method, an optocoupler is used to achieve the effect of transmitting an electrical signal, and there is an advantage of electrical isolation. The first optocoupler signal is determined according to the first active signal, and the purpose of transmitting the active power verification result is achieved by switching the electrical signal output by the first optocoupler; the second optocoupler signal is determined according to the first reactive signal, and the purpose of transmitting the reactive power verification result is achieved by switching the electrical signal output by the second optocoupler. As another implementation method, an LED is used to achieve the effect of displaying an optical signal, and there is also an advantage of electrical isolation. The state of the first LED is determined according to the first active signal, and the purpose of displaying the active power verification result is achieved by switching the on and off state of the first LED; the state of the second LED is determined according to the first reactive signal, and the purpose of displaying the reactive power verification result is achieved by switching the on and off state of the second LED.
[0202] According to an embodiment of the present invention, determining the first optocoupler signal and the second optocoupler signal according to the first active signal and the first reactive signal is specifically:
[0203] Determining whether the first active signal is at a preset first level;
[0204] If yes, setting the first optical coupler signal to second level information;
[0205] If not, setting the first optical coupler signal to the first level information;
[0206] Determining whether the first reactive signal is at a preset first level;
[0207] If yes, setting the second optical coupler signal to second level information;
[0208] If not, the second optocoupler signal is set to the first level information.
[0209] It should be noted that, as an implementation method, an optocoupler is used to achieve the effect of transmitting electrical signals. Determine whether the first active signal is a preset first level; if so, drive the first optocoupler to set the first optocoupler signal to the second level information; if not, drive the first optocoupler to set the first optocoupler signal to the first level information. Determine whether the first reactive signal is a preset first level; if so, drive the second optocoupler to set the second optocoupler signal to the second level information; if not, drive the second optocoupler to set the second optocoupler signal to the first level information.
[0210] According to an embodiment of the present invention, determining the first LED state and the second LED state according to the first active signal and the first reactive signal is specifically:
[0211] Determining whether the first active signal is at a preset first level;
[0212] If yes, set the first LED to off state;
[0213] If not, setting the first LED to a lighted state;
[0214] Determining whether the first reactive signal is at a preset first level;
[0215] If yes, set the second LED to off state;
[0216] If not, the second LED is set to be on.
[0217] It should be noted that, as another implementation, an LED is used to achieve the effect of displaying a light signal. It is determined whether the first active signal is a preset first level; if so, the first LED is driven to be in an off state; if not, the first LED is driven to be in an on state. It is determined whether the first reactive signal is a preset first level; if so, the second LED is driven to be in an off state; if not, the second LED is driven to be in an on state.
[0218] A third aspect of the present invention provides a computer-readable storage medium, which includes a metering method program for multi-pulse constant detection. When the metering method program for multi-pulse constant detection is executed by a processor, the steps of the metering method for multi-pulse constant detection as described in any one of the above items are implemented.
[0219] In summary, the present invention provides a metering method, system and storage medium for multi-pulse constant detection. First, the first pulse constant information is determined according to the first power signal and the second power signal; then, the second pulse constant information is obtained according to the first communication instruction information; when it is judged that the first pulse constant information is the same as the second pulse constant information, the first active signal is determined according to the first power signal and the first reactive signal is determined according to the second power signal; when it is judged that the first pulse constant information is not the same as the second pulse constant information, the third power signal and the fourth power signal are first determined according to the second pulse constant information, and then the first active signal is determined according to the third power signal and the first reactive signal is determined according to the fourth power signal; finally, the first calibration information is obtained according to the first active signal and the first reactive signal to drive the verification signal; by applying the verification of multi-pulse constants, the purpose of improving production efficiency and verification efficiency is achieved.
[0220] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0221] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A measurement method for multi-pulse constant detection, characterized in that: The method comprises: Acquiring a first power signal and a second power signal; determining first pulse constant information according to the first power signal and the second power signal; Acquiring first communication instruction information; Obtaining second pulse constant information according to the first communication instruction information; Determining whether the first pulse constant information is the same as the second pulse constant information; If yes, then set to enter the first pulse mode; Determine a first active signal according to the first power signal, and determine a first reactive signal according to the second power signal; If not, then set to enter the second pulse mode; determining a third power signal and a fourth power signal according to the second pulse constant information; Determine a first active signal according to the third power signal, and determine a first reactive signal according to the fourth power signal; First calibration information is obtained according to the first active signal and the first reactive signal.
2. A measurement method for multi-pulse constant detection according to claim 1, characterized in that: The determining of the first pulse constant information according to the first power signal and the second power signal is specifically: obtaining first time information according to the first power signal; According to the first time information and a preset measurement formula, a first active power relationship equation is obtained; obtaining second time information according to the second power signal; According to the second time information, a first reactive power relationship is obtained according to a preset measurement formula; According to the first active power relationship equation and the first reactive power relationship equation, first pulse constant information is obtained according to the inherent rules of active power and reactive power.
3. A measurement method for multi-pulse constant detection according to claim 1, characterized in that: The determining of the third power signal and the fourth power signal according to the second pulse constant information is specifically: Obtain active power information and reactive power information; Obtaining third time information according to the second pulse constant information and the active power information and a preset measurement formula; Obtaining a third power signal according to the third time information and a preset pulse time threshold; Obtain fourth time information according to the second pulse constant information and the reactive power information and a preset measurement formula; A fourth power signal is obtained according to the fourth time information and a preset pulse time threshold.
4. A measurement method for multi-pulse constant detection according to claim 1, characterized in that: The first calibration information is specifically: A first electrical signal or a first optical information; When it is determined that the first calibration information is a first electrical signal; Determine a first optocoupler signal and a second optocoupler signal according to the first active signal and the first reactive signal; When it is determined that the first calibration information is first light information; A first LED state and a second LED state are determined according to the first active signal and the first reactive signal.
5. A measurement method for multi-pulse constant detection according to claim 4, characterized in that: The determining of the first optocoupler signal and the second optocoupler signal according to the first active signal and the first reactive signal is specifically: Determining whether the first active signal is at a preset first level; If yes, setting the first optical coupler signal to second level information; If not, setting the first optical coupler signal to the first level information; Determining whether the first reactive signal is at a preset first level; If yes, setting the second optical coupler signal to second level information; If not, the second optocoupler signal is set to the first level information.
6. A measurement method for multi-pulse constant detection according to claim 4, characterized in that: The determining of the first LED state and the second LED state according to the first active signal and the first reactive signal is specifically: Determining whether the first active signal is at a preset first level; If yes, set the first LED to off state; If not, setting the first LED to a lighted state; Determining whether the first reactive signal is at a preset first level; If yes, set the second LED to off state; If not, the second LED is set to be on.
7. A multi-pulse constant detection metering system, characterized in that: The system includes a memory and a processor, wherein the memory includes a metrology method program for multi-pulse constant detection, and when the metrology method program for multi-pulse constant detection is executed by the processor, the following steps are implemented: Acquiring a first power signal and a second power signal; determining first pulse constant information according to the first power signal and the second power signal; Acquiring first communication instruction information; Obtaining second pulse constant information according to the first communication instruction information; Determining whether the first pulse constant information is the same as the second pulse constant information; If yes, then set to enter the first pulse mode; Determine a first active signal according to the first power signal, and determine a first reactive signal according to the second power signal; If not, then set to enter the second pulse mode; determining a third power signal and a fourth power signal according to the second pulse constant information; Determine a first active signal according to the third power signal, and determine a first reactive signal according to the fourth power signal; First calibration information is obtained according to the first active signal and the first reactive signal.
8. A multi-pulse constant detection metering system according to claim 7, characterized in that: The determining of the first pulse constant information according to the first power signal and the second power signal is specifically: obtaining first time information according to the first power signal; According to the first time information and a preset measurement formula, a first active power relationship equation is obtained; obtaining second time information according to the second power signal; According to the second time information, a first reactive power relationship is obtained according to a preset measurement formula; According to the first active power relationship equation and the first reactive power relationship equation, first pulse constant information is obtained according to the inherent rules of active power and reactive power.
9. A multi-pulse constant detection metering system according to claim 7, characterized in that: The determining of the third power signal and the fourth power signal according to the second pulse constant information is specifically: Obtain active power information and reactive power information; Obtaining third time information according to the second pulse constant information and the active power information and a preset measurement formula; Obtaining a third power signal according to the third time information and a preset pulse time threshold; Obtain fourth time information according to the second pulse constant information and the reactive power information and a preset measurement formula; A fourth power signal is obtained according to the fourth time information and a preset pulse time threshold.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer-readable storage medium includes a metrology method program for multi-pulse constant detection. When the metrology method program for multi-pulse constant detection is executed by a processor, the steps of the metrology method for multi-pulse constant detection as described in any one of claims 1 to 6 are implemented.