A method, system and storage medium for suppressing pulse groups of electric energy meters and terminals
By analyzing voltage interference in real-time and adjusting the resistance value to ground, the communication error problem of pulse group experiments in the design of the electric energy meter hardware circuit is solved, and the real-time and cost-effectiveness of communication is achieved.
Patent Information
- Application Number
- CN202510525214.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-25
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2045-04-25
AI Technical Summary
In the hardware circuit design of three-phase power meter, SPI communication errors between the system MCU and the metering chip during pulse group experiments lead to MCU reset operation. For existing solutions, if you switch to low-speed serial ports, the communication speed is slow or the addition of filters is high and the space requirements are large.
By analyzing the voltage interference on the communication signal line in real time, adjusting the ground resistance value on the left and right sides of the electrical energy metering circuit, using deviation integration and adjustment amount algorithms, the ground resistance is adjusted in real time to reduce the interference of the pulse group voltage on the communication signal.
It effectively reduces the interference of pulse group voltage on communication signals in pulse group experiments, maintains the real-time communication and reduces costs.
Smart Images

Figure CN120044468B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electric energy meters, and more particularly to a method, system and storage medium for suppressing electric energy meters and terminal pulse groups. Background Art
[0002] During the hardware circuit design process for three-phase electricity meters, the resulting product must successfully pass pulse train testing. Circuit design issues often lead to SPI communication errors between the system MCU and the metering chip during pulse train testing, causing the MCU to reset the metering chip.
[0003] Several solutions exist for this problem. One approach involves switching to low-speed serial communication to address the communication issues between the MCU and the metering chip. While this method successfully overcomes the communication failures encountered during pulse train experiments, serial communication is significantly slower than SPI communication, making it difficult to meet real-time requirements.
[0004] Through the pulse group experiment. Problems in circuit design often lead to SPI communication errors between the system MCU and the metering chip during the pulse group experiment, which in turn causes the MCU to reset the metering chip.
[0005] Another solution is to add a filter to the SPI bus to enhance signal stability and address the issue of pulse group interference in SPI communication. However, this solution has two limitations: first, it requires sufficient space on the circuit board to accommodate the filter circuit; second, it increases costs. Summary of the Invention
[0006] In view of the above problems, the purpose of the present invention is to provide a method, system and storage medium for suppressing pulse groups of electric energy meters and terminals, which can obtain a resistance adjustment amount according to a preset adjustment amount algorithm based on the voltage value obtained on the communication signal line according to a preset measurement method, and is used to adjust the resistance of the ground resistance on the left and right sides of the electric energy metering circuit, and to adjust the voltage difference between the zero lines on the left and right sides of the electric energy metering circuit, so as to reduce the interference of the pulse group voltage on the communication signal in the pulse group experiment.
[0007] A first aspect of the present invention provides a method for suppressing pulse groups of an electric energy meter and a terminal, the method comprising:
[0008] acquiring first voltage information;
[0009] Obtaining first deviation information according to a preset deviation integration algorithm based on the first voltage information and a preset voltage reference value;
[0010] Obtaining first resistance adjustment amount information according to the first deviation information and a preset adjustment amount algorithm;
[0011] Acquire first resistance information and second resistance information;
[0012] The first resistance information or the second resistance information is updated according to a magnitude relationship between the first resistance adjustment amount information and the first resistance information and the second resistance information.
[0013] In this solution, the first deviation information is obtained according to the first voltage information and the preset voltage reference value and according to a preset deviation integration algorithm, specifically:
[0014] Get the first cycle information;
[0015] determining second cycle information according to the first cycle information;
[0016] Obtaining first quantity information according to the second period information and a preset integral calculation period;
[0017] According to the preset second cycle information, collecting the first voltage information;
[0018] If the first voltage information exceeds a set first voltage range, obtaining a first deviation value according to the first voltage information and the first voltage range;
[0019] Accumulating the first deviation values to obtain a first deviation sum;
[0020] A mean is calculated based on the first quantity information and the first deviation sum to obtain first deviation information.
[0021] In this solution, the first deviation value is obtained according to the first voltage information and the first voltage range, specifically:
[0022] A level stage of obtaining first voltage information;
[0023] According to the level stage, a first voltage range is obtained;
[0024] An absolute value of a difference between the first voltage information and an upper limit or a lower limit of the first voltage range is calculated to obtain a first deviation value.
[0025] In this solution, the first resistance adjustment amount information is obtained according to the first deviation information and a preset adjustment amount algorithm, specifically:
[0026] Obtaining first weight information, second weight information, and third weight information;
[0027] Calculating the product of the first weight information and the first deviation information to obtain a first control amount;
[0028] Calculating the product of the second weight information and the integral value of the first deviation information to obtain a second control amount;
[0029] Calculating a product of the third weight information and a differential value of the first deviation information to obtain a third control variable;
[0030] The sum of the first control amount, the second control amount and the third control amount is calculated to obtain first resistance adjustment amount information.
[0031] In this solution, updating the first resistance information or the second resistance information according to the relationship between the first resistance adjustment amount information and the first resistance information and the second resistance information is specifically as follows:
[0032] determining a resistance adjustment direction according to the first resistance adjustment amount information;
[0033] Obtaining a first resistance reference value and a second resistance reference value according to the first resistance information, the second resistance information, and the resistance adjustment direction;
[0034] Determining whether the sum of the first resistance reference value and the second resistance reference value is greater than the first resistance adjustment amount information;
[0035] If yes, setting a distribution weight according to the first resistance reference value and the second resistance reference value, so as to update the first resistance information or the second resistance information;
[0036] If not, the first resistance information or the second resistance information is updated according to the first resistance reference value and the second resistance reference value.
[0037] In this solution, the allocation weight is set according to the first resistance reference value and the second resistance reference value, and is used to update the first resistance information or the second resistance information, specifically:
[0038] Determining whether the first resistance reference value is greater than the first resistance adjustment amount information;
[0039] If yes, updating the first resistance information according to the first resistance adjustment amount information;
[0040] If not, the first resistance information is updated according to the first resistance reference value, and the second resistance information is updated according to the difference between the first resistance adjustment amount information and the first resistance reference value.
[0041] A second aspect of the present invention provides a system for suppressing pulse groups of electric energy meters and terminals, including a method program for suppressing pulse groups of electric energy meters and terminals. When the method program for suppressing pulse groups of electric energy meters and terminals is executed by the processor, the following steps are implemented:
[0042] acquiring first voltage information;
[0043] Obtaining first deviation information according to a preset deviation integration algorithm based on the first voltage information and a preset voltage reference value;
[0044] Obtaining first resistance adjustment amount information according to the first deviation information and a preset adjustment amount algorithm;
[0045] Acquire first resistance information and second resistance information;
[0046] The first resistance information or the second resistance information is updated according to a magnitude relationship between the first resistance adjustment amount information and the first resistance information and the second resistance information.
[0047] In this solution, the first deviation information is obtained according to the first voltage information and the preset voltage reference value and according to a preset deviation integration algorithm, specifically:
[0048] Get the first cycle information;
[0049] determining second cycle information according to the first cycle information;
[0050] Obtaining first quantity information according to the second period information and a preset integral calculation period;
[0051] According to the preset second cycle information, collecting the first voltage information;
[0052] If the first voltage information exceeds a set first voltage range, obtaining a first deviation value according to the first voltage information and the first voltage range;
[0053] Accumulating the first deviation values to obtain a first deviation sum;
[0054] A mean is calculated based on the first quantity information and the first deviation sum to obtain first deviation information.
[0055] In this solution, updating the first resistance information or the second resistance information according to the relationship between the first resistance adjustment amount information and the first resistance information and the second resistance information is specifically as follows:
[0056] determining a resistance adjustment direction according to the first resistance adjustment amount information;
[0057] Obtaining a first resistance reference value and a second resistance reference value according to the first resistance information, the second resistance information, and the resistance adjustment direction;
[0058] Determining whether the sum of the first resistance reference value and the second resistance reference value is greater than the first resistance adjustment amount information;
[0059] If yes, setting a distribution weight according to the first resistance reference value and the second resistance reference value, so as to update the first resistance information or the second resistance information;
[0060] If not, the first resistance information or the second resistance information is updated according to the first resistance reference value and the second resistance reference value.
[0061] The third aspect of the present invention provides a computer-readable storage medium, which includes a suppression method program for an electric energy meter and a terminal pulse group. When the suppression method program for an electric energy meter and a terminal pulse group is executed by a processor, the steps of the suppression method for an electric energy meter and a terminal pulse group as described in any one of the above items are implemented.
[0062] The present invention provides a method, system and storage medium for suppressing pulse groups of electric energy meters and terminals. First, first deviation information is obtained according to first voltage information and a preset voltage reference value and a preset deviation integration algorithm. Then, first resistance adjustment amount information is obtained according to a preset adjustment amount algorithm and the first deviation information. Finally, the first resistance information or the second resistance information is updated according to the magnitude relationship between the first resistance adjustment amount information and the first resistance information and the second resistance information. Thus, the resistance values of the ground resistors on the left and right sides of the electric energy metering circuit are adjusted to adjust the voltage difference between the zero lines on the left and right sides of the electric energy metering circuit, thereby reducing the interference of the pulse group voltage on the communication signal in the pulse group experiment. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and therefore should not be regarded as limiting the scope.
[0064] Figure 1 A flow chart showing a method for suppressing pulse groups of electric energy meters and terminals according to the present invention is shown;
[0065] Figure 2 shows an execution flow chart of the deviation integration algorithm provided in this embodiment;
[0066] Figure 3 A flowchart for updating the ground resistance value provided by an embodiment of the present invention is shown;
[0067] Figure 4 A block diagram of a system for suppressing electric energy meters and terminal pulse groups according to the present invention is shown. DETAILED DESCRIPTION
[0068] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. 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 making creative efforts are within the scope of protection of the present invention.
[0069] Unless otherwise defined, all terms (including technical and scientific terms) used in the embodiments of the present invention have the same meaning as commonly understood by those skilled 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 explicitly defined in this manner in the embodiments of the present invention.
[0070] The words "first", "second" and similar terms 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" do not indicate a quantity limitation, but rather indicate the existence of at least one. Similarly, words such as "include" or "comprise" mean that the elements or objects preceding the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Words such as "connect" or "connected" 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 do not necessarily have to be performed in exact order. On the contrary, the various steps may be processed in reverse order or simultaneously. At the same time, other operations may be added to these processes, or one or more steps may be removed from these processes.
[0071] 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.
[0072] Figure 1 The flowchart of the method for suppressing pulse groups of electric energy meters and terminals of the present invention is shown.
[0073] like Figure 1 As shown, the first aspect of the present invention discloses a method for suppressing pulse groups of an electric energy meter and a terminal, the method comprising:
[0074] S102, obtaining first voltage information;
[0075] S104, obtaining first deviation information according to a preset deviation integration algorithm based on the first voltage information and a preset voltage reference value;
[0076] S106, obtaining first resistance adjustment amount information according to the first deviation information and a preset adjustment amount algorithm;
[0077] S108, obtaining first resistance information and second resistance information;
[0078] S110 , updating the first resistance information or the second resistance information according to a magnitude relationship between the first resistance adjustment amount information and the first resistance information and the second resistance information.
[0079] It should be noted that the first voltage information is the voltage value on the communication line; the first deviation information is the deviation value calculated according to the deviation integral value obtained by the set deviation integral algorithm; the first resistance adjustment amount information is the adjustment amount for adjusting the resistance of the grounding resistor obtained according to the set adjustment amount algorithm; the first resistance information is the resistance value of the first grounding resistor between the neutral line and the ground line on one side of the electric energy metering circuit; the second resistance information is the resistance value of the second grounding resistor between the neutral line and the ground line on the side opposite to the first grounding resistor in the electric energy metering circuit.
[0080] In this embodiment, an adjustable ground resistor is installed on each of the left and right neutral lines of the electric energy metering circuit. By analyzing the voltage interference on the communication signal line in real time and adjusting the resistance of the ground resistors through real-time feedback, the voltage difference between the two neutral lines is adjusted, thereby reducing the interference of the pulse group voltage on the communication signal during the pulse group experiment. Specifically, first, first voltage information is measured according to a preset deviation integration algorithm to calculate first deviation information. The deviation integration algorithm is used to analyze the fluctuation of the first voltage information within a set time period. Then, based on the first deviation information, first resistance adjustment information is calculated according to a preset adjustment algorithm. The adjustment algorithm is a feedback control algorithm that can improve the sensitivity of the adjustment. Finally, the resistance of at least one ground resistor is updated based on the relationship between the resistance of the ground resistors on both sides and the first resistance adjustment information, thereby adjusting the voltage difference between the two neutral lines.
[0081] Figure 2 The flowchart of the execution of the deviation integration algorithm provided by this embodiment is shown.
[0082] According to an embodiment of the present invention, Figure 2As shown, the first deviation information is obtained according to the first voltage information and the preset voltage reference value and the preset deviation integration algorithm, specifically:
[0083] S202, obtaining first cycle information;
[0084] S204, determining second cycle information based on the first cycle information;
[0085] S206, obtaining first quantity information according to the second period information and a preset integral calculation period;
[0086] S208, collecting the first voltage information according to the preset second cycle information;
[0087] S210, if the first voltage information exceeds a set first voltage range, obtaining a first deviation value according to the first voltage information and the first voltage range;
[0088] S212, accumulating the first deviation values to obtain a first deviation sum;
[0089] S214: Calculate a mean based on the first quantity information and the first deviation sum to obtain first deviation information.
[0090] It should be noted that the first cycle information is the communication cycle on the communication line; the second cycle information is the sampling cycle of the first voltage information; the first quantity information is the number of times the first voltage information can be collected within the set deviation integral calculation cycle; the first deviation value is the voltage value of the first voltage information exceeding the first voltage range; the first deviation sum is the sum of the first deviation values within the deviation integral calculation cycle.
[0091] In this embodiment, an execution process of a deviation integration algorithm for analyzing the fluctuation of the first voltage information within a set time period is provided. First, the sampling period is confirmed according to the data transmission communication period of the communication line; usually, the sampling period is at least twice the communication period to improve the accuracy of data analysis; then, according to the calculation period of the deviation integration algorithm, the number of first voltage information sampled within the calculation period is determined. Then, if the collected first voltage information exceeds the voltage range corresponding to the level, the voltage value of the first voltage information exceeding the voltage range is calculated, that is, the first deviation value, which is used to accumulate and obtain the first deviation sum. Finally, the quotient of the first deviation sum and the first quantity information is calculated, that is, the average value of the first deviation sum is calculated to obtain the first deviation information.
[0092] According to an embodiment of the present invention, obtaining the first deviation value according to the first voltage information and the first voltage range is specifically:
[0093] A level stage of obtaining first voltage information;
[0094] According to the level stage, a first voltage range is obtained;
[0095] An absolute value of a difference between the first voltage information and an upper limit or a lower limit of the first voltage range is calculated to obtain a first deviation value.
[0096] It should be noted that the level phase includes a high-level phase and a low-level phase, which are used to represent the digital level of the communication line. The logic levels on the communication line are generally divided into high and low levels. Taking a system with a 3.3V power supply as an example, in the low-level phase, the first voltage range is [0V, 0.7V]; in the high-level phase, the first voltage range is [2.7V, 3.3V]. When the measured voltage value is outside the first voltage range of the corresponding level phase, the absolute value of the difference between the first voltage information and the upper limit or lower limit of the first voltage range is calculated to obtain a first deviation value. For example, in the high-level phase, if the first voltage information is 3.5V, its first deviation value is 0.2V.
[0097] According to an embodiment of the present invention, the first resistance adjustment amount information is obtained according to the first deviation information and a preset adjustment amount algorithm, specifically:
[0098] Obtaining first weight information, second weight information, and third weight information;
[0099] Calculating the product of the first weight information and the first deviation information to obtain a first control amount;
[0100] Calculating the product of the second weight information and the integral value of the first deviation information to obtain a second control amount;
[0101] Calculating a product of the third weight information and a differential value of the first deviation information to obtain a third control variable;
[0102] The sum of the first control amount, the second control amount and the third control amount is calculated to obtain first resistance adjustment amount information.
[0103] It should be noted that the first weight information is the weight for calculating the proportional control variable in the adjustment algorithm; the second weight information is the weight for calculating the integral control variable in the adjustment algorithm; and the third weight information is the weight for calculating the differential control variable in the adjustment algorithm. The first control variable is the proportional control variable in the adjustment algorithm; the second control variable is the integral control variable in the adjustment algorithm; and the third control variable is the differential control variable in the adjustment algorithm. In this embodiment, a feedback control algorithm is applied to improve the sensitivity of the adjustment. First, the product of the first weight information and the first deviation information is calculated to obtain the proportional control variable. Second, the integral value of the first deviation information is obtained based on the records of the first deviation information, and the product is calculated using the second weight information to obtain the integral control variable. Third, the differential value of the first deviation information is obtained based on the records of the first deviation information, and the product is calculated using the third weight information to obtain the differential control variable. Finally, the sum of the proportional control variable, the integral control variable, and the differential control variable is calculated to obtain the first resistance adjustment variable information.
[0104] Figure 3 A flowchart for updating the ground resistance value provided by an embodiment of the present invention is shown.
[0105] According to an embodiment of the present invention, Figure 3 As shown, the updating of the first resistance information or the second resistance information according to the magnitude relationship between the first resistance adjustment amount information and the first resistance information and the second resistance information is specifically as follows:
[0106] S302, determining a resistance adjustment direction according to the first resistance adjustment amount information;
[0107] S304, obtaining a first resistance reference value and a second resistance reference value according to the first resistance information, the second resistance information, and the resistance adjustment direction;
[0108] S306, determining whether the sum of the first resistance reference value and the second resistance reference value is greater than the first resistance adjustment amount information;
[0109] S308, if yes, setting a distribution weight according to the first resistance reference value and the second resistance reference value, for updating the first resistance information or the second resistance information;
[0110] S310: If not, update the first resistance information or the second resistance information according to the first resistance reference value and the second resistance reference value.
[0111] It should be noted that the first resistance reference value is the upper limit of the resistance adjustment of the first ground resistor; the second resistance reference value is the upper limit of the resistance adjustment of the second ground resistor. First, based on the first resistance adjustment amount information, the adjustment direction of the ground resistor is determined, i.e., upward or downward adjustment. Then, based on the current resistance of the ground resistor and the adjustable resistance range of the ground resistor, the upper limit of the adjustment, i.e., the resistance reference value, is determined. Then, the sum of the two ground resistance reference values is calculated to determine the magnitude relationship between the sum of the reference values and the first resistance adjustment amount information. When the sum of the reference values is greater than the first resistance adjustment amount information, the resistance value of the first ground resistor or the second ground resistor is updated according to the calculated distribution weight. When the sum of the reference values is not greater than the first resistance adjustment amount information, the resistance value of the first ground resistor or the second ground resistor is updated according to the resistance adjustment upper limit.
[0112] According to an embodiment of the present invention, setting the allocation weight according to the first resistance reference value and the second resistance reference value for updating the first resistance information or the second resistance information is specifically as follows:
[0113] Determining whether the first resistance reference value is greater than the first resistance adjustment amount information;
[0114] If yes, updating the first resistance information according to the first resistance adjustment amount information;
[0115] If not, the first resistance information is updated according to the first resistance reference value, and the second resistance information is updated according to the difference between the first resistance adjustment amount information and the first resistance reference value.
[0116] It should be noted that, as an embodiment, the resistance values of the two ground resistors are updated based on the principle of prioritizing the adjustment of the resistance value of the first ground resistor. If the first resistance reference value is greater than the first resistance adjustment amount information, it indicates that only the resistance value of the first ground resistor needs to be updated to meet the ground resistor resistance adjustment requirement; in this case, the first resistance information is updated based on the first resistance adjustment amount information. If the first resistance reference value is not greater than the first resistance adjustment amount information, it indicates that both ground resistors need to be updated simultaneously to meet the ground resistor resistance adjustment requirement; in this case, the first resistance information is updated based on the first resistance reference value; and the second resistance information is updated based on the difference between the first resistance adjustment amount information and the first resistance reference value.
[0117] It is worth mentioning that the step of setting the allocation weight according to the first resistance reference value and the second resistance reference value for updating the first resistance information or the second resistance information further includes:
[0118] determining a third resistance reference value according to the sum of the first resistance reference value and the second resistance reference value and the first resistance adjustment amount information;
[0119] updating the first resistance information according to a difference between the first resistance reference value and the third resistance reference value;
[0120] The second resistance information is updated according to a difference between the second resistance reference value and the third resistance reference value.
[0121] It should be noted that, as another embodiment, the resistance values of the two ground resistors are updated based on a balanced adjustment principle; that is, the reference values of the resistors on both sides are made the same after adjustment. A third resistance reference value is determined based on the sum of the first resistance reference value and the second resistance reference value and the first resistance adjustment amount information; the third resistance reference value is the target reference value of the adjusted ground resistor. The first resistance information is then updated based on the difference between the current reference value of the ground resistor and the target reference value.
[0122] Figure 4 A block diagram of a system for suppressing electric energy meters and terminal pulse groups according to the present invention is shown.
[0123] like Figure 4 As shown, the second aspect of the present invention discloses a suppression system 4 for an electric energy meter and a terminal pulse group, comprising a memory 41 and a processor 42. The memory comprises a suppression method program for an electric energy meter and a terminal pulse group. When the suppression method program for an electric energy meter and a terminal pulse group is executed by the processor, the following steps are implemented:
[0124] acquiring first voltage information;
[0125] Obtaining first deviation information according to a preset deviation integration algorithm based on the first voltage information and a preset voltage reference value;
[0126] Obtaining first resistance adjustment amount information according to the first deviation information and a preset adjustment amount algorithm;
[0127] Acquire first resistance information and second resistance information;
[0128] The first resistance information or the second resistance information is updated according to a magnitude relationship between the first resistance adjustment amount information and the first resistance information and the second resistance information.
[0129] It should be noted that the first voltage information is the voltage value on the communication line; the first deviation information is the deviation value calculated according to the deviation integral value obtained by the set deviation integral algorithm; the first resistance adjustment amount information is the adjustment amount for adjusting the resistance of the grounding resistor obtained according to the set adjustment amount algorithm; the first resistance information is the resistance value of the first grounding resistor between the neutral line and the ground line on one side of the electric energy metering circuit; the second resistance information is the resistance value of the second grounding resistor between the neutral line and the ground line on the side opposite to the first grounding resistor in the electric energy metering circuit.
[0130] In this embodiment, an adjustable ground resistor is installed on each of the left and right neutral lines of the electric energy metering circuit. By analyzing the voltage interference on the communication signal line in real time and adjusting the resistance of the ground resistors through real-time feedback, the voltage difference between the two neutral lines is adjusted, thereby reducing the interference of the pulse group voltage on the communication signal during the pulse group experiment. Specifically, first, first voltage information is measured according to a preset deviation integration algorithm to calculate first deviation information. The deviation integration algorithm is used to analyze the fluctuation of the first voltage information within a set time period. Then, based on the first deviation information, first resistance adjustment information is calculated according to a preset adjustment algorithm. The adjustment algorithm is a feedback control algorithm that can improve the sensitivity of the adjustment. Finally, the resistance of at least one ground resistor is updated based on the relationship between the resistance of the ground resistors on both sides and the first resistance adjustment information, thereby adjusting the voltage difference between the two neutral lines.
[0131] According to an embodiment of the present invention, the first deviation information is obtained according to the first voltage information and a preset voltage reference value and a preset deviation integration algorithm, specifically:
[0132] Get the first cycle information;
[0133] determining second cycle information according to the first cycle information;
[0134] Obtaining first quantity information according to the second period information and a preset integral calculation period;
[0135] According to the preset second cycle information, collecting the first voltage information;
[0136] If the first voltage information exceeds a set first voltage range, obtaining a first deviation value according to the first voltage information and the first voltage range;
[0137] Accumulating the first deviation values to obtain a first deviation sum;
[0138] A mean is calculated based on the first quantity information and the first deviation sum to obtain first deviation information.
[0139] It should be noted that the first cycle information is the communication cycle on the communication line; the second cycle information is the sampling cycle of the first voltage information; the first quantity information is the number of times the first voltage information can be collected within the set deviation integral calculation cycle; the first deviation value is the voltage value of the first voltage information exceeding the first voltage range; the first deviation sum is the sum of the first deviation values within the deviation integral calculation cycle.
[0140] In this embodiment, an execution process of a deviation integration algorithm for analyzing the fluctuation of the first voltage information within a set time period is provided. First, the sampling period is confirmed according to the data transmission communication period of the communication line; usually, the sampling period is at least twice the communication period to improve the accuracy of data analysis; then, according to the calculation period of the deviation integration algorithm, the number of first voltage information sampled within the calculation period is determined. Then, if the collected first voltage information exceeds the voltage range corresponding to the level, the voltage value of the first voltage information exceeding the voltage range is calculated, that is, the first deviation value, which is used to accumulate and obtain the first deviation sum. Finally, the quotient of the first deviation sum and the first quantity information is calculated, that is, the average value of the first deviation sum is calculated to obtain the first deviation information.
[0141] According to an embodiment of the present invention, obtaining the first deviation value according to the first voltage information and the first voltage range is specifically:
[0142] A level stage of obtaining first voltage information;
[0143] According to the level stage, a first voltage range is obtained;
[0144] An absolute value of a difference between the first voltage information and an upper limit or a lower limit of the first voltage range is calculated to obtain a first deviation value.
[0145] It should be noted that the level phase includes a high-level phase and a low-level phase, which are used to represent the digital level of the communication line. The logic levels on the communication line are generally divided into high and low levels. Taking a system with a 3.3V power supply as an example, in the low-level phase, the first voltage range is [0V, 0.7V]; in the high-level phase, the first voltage range is [2.7V, 3.3V]. When the measured voltage value is outside the first voltage range of the corresponding level phase, the absolute value of the difference between the first voltage information and the upper limit or lower limit of the first voltage range is calculated to obtain a first deviation value. For example, in the high-level phase, if the first voltage information is 3.5V, its first deviation value is 0.2V.
[0146] According to an embodiment of the present invention, the first resistance adjustment amount information is obtained according to the first deviation information and a preset adjustment amount algorithm, specifically:
[0147] Obtaining first weight information, second weight information, and third weight information;
[0148] Calculating the product of the first weight information and the first deviation information to obtain a first control amount;
[0149] Calculating the product of the second weight information and the integral value of the first deviation information to obtain a second control amount;
[0150] Calculating a product of the third weight information and a differential value of the first deviation information to obtain a third control variable;
[0151] The sum of the first control amount, the second control amount and the third control amount is calculated to obtain first resistance adjustment amount information.
[0152] It should be noted that the first weight information is the weight for calculating the proportional control variable in the adjustment algorithm; the second weight information is the weight for calculating the integral control variable in the adjustment algorithm; and the third weight information is the weight for calculating the differential control variable in the adjustment algorithm. The first control variable is the proportional control variable in the adjustment algorithm; the second control variable is the integral control variable in the adjustment algorithm; and the third control variable is the differential control variable in the adjustment algorithm. In this embodiment, a feedback control algorithm is applied to improve the sensitivity of the adjustment. First, the product of the first weight information and the first deviation information is calculated to obtain the proportional control variable. Second, the integral value of the first deviation information is obtained based on the records of the first deviation information, and the product is calculated using the second weight information to obtain the integral control variable. Third, the differential value of the first deviation information is obtained based on the records of the first deviation information, and the product is calculated using the third weight information to obtain the differential control variable. Finally, the sum of the proportional control variable, the integral control variable, and the differential control variable is calculated to obtain the first resistance adjustment variable information.
[0153] According to an embodiment of the present invention, updating the first resistance information or the second resistance information according to the relationship between the first resistance adjustment amount information and the first resistance information and the second resistance information is specifically:
[0154] determining a resistance adjustment direction according to the first resistance adjustment amount information;
[0155] Obtaining a first resistance reference value and a second resistance reference value according to the first resistance information, the second resistance information, and the resistance adjustment direction;
[0156] Determining whether the sum of the first resistance reference value and the second resistance reference value is greater than the first resistance adjustment amount information;
[0157] If yes, setting a distribution weight according to the first resistance reference value and the second resistance reference value, so as to update the first resistance information or the second resistance information;
[0158] If not, the first resistance information or the second resistance information is updated according to the first resistance reference value and the second resistance reference value.
[0159] It should be noted that the first resistance reference value is the upper limit of the resistance adjustment of the first ground resistor; the second resistance reference value is the upper limit of the resistance adjustment of the second ground resistor. First, based on the first resistance adjustment amount information, the adjustment direction of the ground resistor is determined, i.e., upward or downward adjustment. Then, based on the current resistance of the ground resistor and the adjustable resistance range of the ground resistor, the upper limit of the adjustment, i.e., the resistance reference value, is determined. Then, the sum of the two ground resistance reference values is calculated to determine the magnitude relationship between the sum of the reference values and the first resistance adjustment amount information. When the sum of the reference values is greater than the first resistance adjustment amount information, the resistance value of the first ground resistor or the second ground resistor is updated according to the calculated distribution weight. When the sum of the reference values is not greater than the first resistance adjustment amount information, the resistance value of the first ground resistor or the second ground resistor is updated according to the resistance adjustment upper limit.
[0160] According to an embodiment of the present invention, setting the allocation weight according to the first resistance reference value and the second resistance reference value for updating the first resistance information or the second resistance information is specifically as follows:
[0161] Determining whether the first resistance reference value is greater than the first resistance adjustment amount information;
[0162] If yes, updating the first resistance information according to the first resistance adjustment amount information;
[0163] If not, the first resistance information is updated according to the first resistance reference value, and the second resistance information is updated according to the difference between the first resistance adjustment amount information and the first resistance reference value.
[0164] It should be noted that, as an embodiment, the resistance values of the two ground resistors are updated based on the principle of prioritizing the adjustment of the resistance value of the first ground resistor. If the first resistance reference value is greater than the first resistance adjustment amount information, it indicates that only the resistance value of the first ground resistor needs to be updated to meet the ground resistor resistance adjustment requirement; in this case, the first resistance information is updated based on the first resistance adjustment amount information. If the first resistance reference value is not greater than the first resistance adjustment amount information, it indicates that both ground resistors need to be updated simultaneously to meet the ground resistor resistance adjustment requirement; in this case, the first resistance information is updated based on the first resistance reference value; and the second resistance information is updated based on the difference between the first resistance adjustment amount information and the first resistance reference value.
[0165] It is worth mentioning that the step of setting the allocation weight according to the first resistance reference value and the second resistance reference value for updating the first resistance information or the second resistance information further includes:
[0166] determining a third resistance reference value according to the sum of the first resistance reference value and the second resistance reference value and the first resistance adjustment amount information;
[0167] updating the first resistance information according to a difference between the first resistance reference value and the third resistance reference value;
[0168] The second resistance information is updated according to a difference between the second resistance reference value and the third resistance reference value.
[0169] It should be noted that, as another embodiment, the resistance values of the two ground resistors are updated based on a balanced adjustment principle; that is, the reference values of the resistors on both sides are made the same after adjustment. A third resistance reference value is determined based on the sum of the first resistance reference value and the second resistance reference value and the first resistance adjustment amount information; the third resistance reference value is the target reference value of the adjusted ground resistor. The first resistance information is then updated based on the difference between the current reference value of the ground resistor and the target reference value.
[0170] The third aspect of the present invention provides a computer-readable storage medium, which includes a suppression method program for an electric energy meter and a terminal pulse group. When the suppression method program for an electric energy meter and a terminal pulse group is executed by a processor, the steps of the suppression method for an electric energy meter and a terminal pulse group as described in any one of the above items are implemented.
[0171] In summary, a method, system and storage medium for suppressing pulse groups of electric energy meters and terminals are provided. First, first deviation information is obtained according to a preset deviation integration algorithm based on first voltage information and a preset voltage reference value; then, first resistance adjustment amount information is obtained according to a preset adjustment amount algorithm based on the first deviation information; finally, the first resistance information or the second resistance information is updated according to the size relationship between the first resistance adjustment amount information and the first resistance information and the second resistance information; thereby adjusting the resistance to ground on the left and right sides of the electric energy metering circuit to adjust the voltage difference between the left and right neutral lines in the electric energy metering circuit, thereby reducing the interference of the pulse group voltage on the communication signal in the pulse group experiment.
[0172] If the functions are implemented as software 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 portion that contributes to the prior art, or the portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage media include various media capable of storing program code, such as USB flash drives, mobile hard drives, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical disks.
[0173] The foregoing description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Those skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention are intended to be within the scope of protection of the present invention.
Claims
1. A method for suppressing pulse groups of electric energy meters and terminals, characterized in that: The method comprises: Acquire first voltage information, wherein the first voltage information is a voltage value on the communication line; Obtaining first deviation information according to a preset deviation integration algorithm based on the first voltage information and a preset voltage reference value; Obtaining first resistance adjustment amount information according to the first deviation information and a preset adjustment amount algorithm; Obtaining first resistance information and second resistance information, wherein the first resistance information is the resistance value of a first grounding resistor between a neutral line and a ground line on one side of the electric energy metering circuit, and the second resistance information is the resistance value of a second grounding resistor between the neutral line and the ground line on a side of the electric energy metering circuit opposite to the first grounding resistor; The first resistance information or the second resistance information is updated according to a magnitude relationship between the first resistance adjustment amount information and the first resistance information and the second resistance information.
2. A method for suppressing pulse groups of electric energy meters and terminals according to claim 1, characterized in that: The first deviation information is obtained according to the first voltage information and the preset voltage reference value and according to a preset deviation integration algorithm, specifically: Get the first cycle information; Determine second cycle information according to the first cycle information, wherein the first cycle information is a communication cycle on the communication line, and the second cycle information is a sampling cycle of the first voltage information; Obtaining first quantity information according to the second period information and a preset integral calculation period; According to the preset second cycle information, collecting the first voltage information; If the first voltage information exceeds a set first voltage range, obtaining a first deviation value according to the first voltage information and the first voltage range; Accumulating the first deviation values to obtain a first deviation sum; A mean is calculated based on the first quantity information and the first deviation sum to obtain first deviation information.
3. A method for suppressing pulse groups of electric energy meters and terminals according to claim 2, characterized in that: The first deviation value is obtained according to the first voltage information and the first voltage range, specifically: A level stage of obtaining first voltage information; According to the level stage, a first voltage range is obtained; An absolute value of a difference between the first voltage information and an upper limit or a lower limit of the first voltage range is calculated to obtain a first deviation value.
4. A method for suppressing pulse groups of electric energy meters and terminals according to claim 1, characterized in that: The first resistance adjustment amount information is obtained according to the first deviation information and a preset adjustment amount algorithm, specifically: Obtaining first weight information, second weight information, and third weight information; Calculating the product of the first weight information and the first deviation information to obtain a first control amount; Calculating the product of the second weight information and the integral value of the first deviation information to obtain a second control amount; Calculating a product of the third weight information and a differential value of the first deviation information to obtain a third control variable; The sum of the first control amount, the second control amount and the third control amount is calculated to obtain first resistance adjustment amount information.
5. A method for suppressing pulse groups of electric energy meters and terminals according to claim 1, characterized in that: The updating of the first resistance information or the second resistance information according to the relationship between the first resistance adjustment amount information and the first resistance information and the second resistance information is specifically: determining a resistance adjustment direction according to the first resistance adjustment amount information; Obtaining a first resistance reference value and a second resistance reference value according to the first resistance information, the second resistance information, and the resistance adjustment direction; Determining whether the sum of the first resistance reference value and the second resistance reference value is greater than the first resistance adjustment amount information; If yes, setting a distribution weight according to the first resistance reference value and the second resistance reference value, so as to update the first resistance information or the second resistance information; If not, the first resistance information or the second resistance information is updated according to the first resistance reference value and the second resistance reference value.
6. A method for suppressing pulse groups of electric energy meters and terminals according to claim 5, characterized in that: The step of setting a distribution weight according to the first resistance reference value and the second resistance reference value, for updating the first resistance information or the second resistance information, is specifically as follows: Determining whether the first resistance reference value is greater than the first resistance adjustment amount information; If yes, updating the first resistance information according to the first resistance adjustment amount information; If not, the first resistance information is updated according to the first resistance reference value, and the second resistance information is updated according to the difference between the first resistance adjustment amount information and the first resistance reference value.
7. A system for suppressing pulse groups of electric energy meters and terminals, characterized in that: The system includes a memory and a processor. The memory includes a method program for suppressing a pulse group of an electric energy meter and a terminal. When the method program for suppressing a pulse group of an electric energy meter and a terminal is executed by the processor, the following steps are implemented: Acquire first voltage information, wherein the first voltage information is a voltage value on the communication line; Obtaining first deviation information according to a preset deviation integration algorithm based on the first voltage information and a preset voltage reference value; Obtaining first resistance adjustment amount information according to the first deviation information and a preset adjustment amount algorithm; Obtaining first resistance information and second resistance information, wherein the first resistance information is the resistance value of a first grounding resistor between a neutral line and a ground line on one side of the electric energy metering circuit, and the second resistance information is the resistance value of a second grounding resistor between the neutral line and the ground line on a side of the electric energy metering circuit opposite to the first grounding resistor; The first resistance information or the second resistance information is updated according to a magnitude relationship between the first resistance adjustment amount information and the first resistance information and the second resistance information.
8. A suppression system for electric energy meters and terminal pulse groups according to claim 7, characterized in that: The first deviation information is obtained according to the first voltage information and the preset voltage reference value and according to a preset deviation integration algorithm, specifically: Get the first cycle information; determining second cycle information according to the first cycle information; Obtaining first quantity information according to the second period information and a preset integral calculation period; According to the preset second cycle information, collecting the first voltage information; If the first voltage information exceeds a set first voltage range, obtaining a first deviation value according to the first voltage information and the first voltage range; Accumulating the first deviation values to obtain a first deviation sum; A mean is calculated based on the first quantity information and the first deviation sum to obtain first deviation information.
9. A suppression system for electric energy meters and terminal pulse groups according to claim 7, characterized in that: The updating of the first resistance information or the second resistance information according to the relationship between the first resistance adjustment amount information and the first resistance information and the second resistance information is specifically: determining a resistance adjustment direction according to the first resistance adjustment amount information; Obtaining a first resistance reference value and a second resistance reference value according to the first resistance information, the second resistance information, and the resistance adjustment direction; Determining whether the sum of the first resistance reference value and the second resistance reference value is greater than the first resistance adjustment amount information; If yes, setting a distribution weight according to the first resistance reference value and the second resistance reference value, so as to update the first resistance information or the second resistance information; If not, the first resistance information or the second resistance information is updated according to the first resistance reference value and the second resistance reference value.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer-readable storage medium includes a method program for suppressing an electric energy meter and a terminal pulse group. When the method program for suppressing an electric energy meter and a terminal pulse group is executed by a processor, the steps of the method for suppressing an electric energy meter and a terminal pulse group as described in any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Pulse interference suppression method and device for power line carrier communication, chip and equipment
CN115459810A
Communication apparatus and associated estimation method
US20140118006A1