Suppression method and system for electric energy meter and terminal pulse train, and storage medium
By using deviation integral algorithm and adjustment algorithm in the power meter to update the resistance value to ground resistance, the communication errors and cost increase in the pulse group experiment were solved, and the effect of reducing the voltage interference of the pulse group was achieved.
Patent Information
- Application Number
- CN202510525214.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-25
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2045-04-25
AI Technical Summary
During the hardware circuit design of three-phase power meter, SPI communication errors between the MCU and the metering chip in the pulse group experiment often lead to reset operations. Existing solutions such as switching to low-speed serial communication or adding filters, there are problems of reduced speed or increased costs.
By obtaining the voltage value on the communication signal line, using the deviation integration algorithm to calculate the deviation information, and calculate the resistance value adjustment amount based on the preset adjustment amount algorithm, the resistance value of the ground resistance on the left and right sides of the electrical energy metering circuit is updated to adjust the pressure difference between the neutral line and 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, avoids communication errors and reset operations between the MCU and the metering chip, and does not increase circuit cost.
Smart Images

Figure CN120044468A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electric energy meters, and more specifically, to a method, a system, and a storage medium for suppressing impulse groups of electric energy meters and terminals. Background Art
[0002] During the design process of the three-phase electric energy meter hardware circuit, the designed product needs to successfully pass the impulse group experiment. Problems at the circuit design level often cause SPI communication errors between the system MCU and the metering chip during the impulse group experiment, which in turn triggers the MCU to perform a reset operation on the metering chip.
[0003] Regarding this problem, there are currently various solutions. One solution is to change the communication method to low-speed serial communication to solve the communication problem between the MCU and the metering chip. Although this method successfully overcomes the problem of communication failure in the impulse group experiment, compared with SPI interface communication, the speed of serial communication is significantly reduced, and it is difficult to meet the actual requirements in scenarios with high real-time requirements.
[0004] Pass the impulse group experiment. Problems at the circuit design level often cause SPI communication errors between the system MCU and the metering chip during the impulse group experiment, which in turn triggers the MCU to perform a reset operation on the metering chip
[0005] Another solution is to add a filter on the SPI bus to enhance the signal stability and thus solve the problem of SPI communication being interfered by impulse groups. However, this solution has two limitations: firstly, sufficient space needs to be reserved on the circuit board to place the filter circuit; secondly, it will lead to an increase in cost. Summary of the Invention
[0006] In view of the above problems, the purpose of the present invention is to provide a method, a system, and a storage medium for suppressing impulse groups of electric energy meters and terminals, which can obtain a resistance value adjustment amount according to a voltage value obtained by a preset measurement method on a communication signal line and according to a preset adjustment amount algorithm, and is used to adjust the resistance values of the ground resistors on the left and right sides in the electric energy metering circuit, so as to adjust the voltage difference between the neutral lines on the left and right sides in the electric energy metering circuit, and achieve reducing the interference of the impulse group voltage on the communication signal in the impulse group experiment.
[0007] The first aspect of the present invention provides a method for suppressing impulse groups of electric energy meters and terminals, the method comprising: Obtain first voltage information; According to the first voltage information and a preset voltage reference value, obtain first deviation information according to a preset deviation integration algorithm; According to the first deviation information, obtain first resistance value adjustment amount information according to a preset adjustment amount algorithm; Obtain the first resistance information and the second resistance information; Update the first resistance information or the second resistance information according to the magnitude relationship between the first resistance adjustment amount information, the first resistance information, and the second resistance information.
[0008] In this solution, obtaining the first deviation information according to the first voltage information and a preset voltage reference value according to a preset deviation integration algorithm is specifically as follows: Obtain the first period information; Determine the second period information according to the first period information; Obtain the first quantity information according to the second period information and a preset integration calculation period; Collect the first voltage information according to a preset second period information; If the first voltage information exceeds a set first voltage range, then obtain a first deviation value according to the first voltage information and the first voltage range; Accumulate the first deviation value to obtain a first deviation sum; Calculate the mean value according to the first quantity information and the first deviation sum to obtain the first deviation information.
[0009] In this solution, obtaining the first deviation value according to the first voltage information and the first voltage range is specifically as follows: Obtain the level stage of the first voltage information; Obtain the first voltage range according to the level stage; Calculate the absolute value of the difference between the first voltage information and the upper limit value or the lower limit value of the first voltage range to obtain the first deviation value.
[0010] In this solution, obtaining the first resistance adjustment amount information according to the first deviation information according to a preset adjustment amount algorithm is specifically as follows: Obtain the first weight information, the second weight information, and the third weight information; Calculate the product of the first weight information and the first deviation information to obtain a first control quantity; Calculate the product of the second weight information and the integral value of the first deviation information to obtain a second control quantity; Calculate the product of the third weight information and the differential value of the first deviation information to obtain a third control quantity; Calculate the sum of the first control quantity, the second control quantity, and the third control quantity to obtain the first resistance adjustment amount information.
[0011] In this solution, updating the first resistance information or the second resistance information according to the magnitude relationship between the first resistance adjustment amount information, the first resistance information, and the second resistance information is specifically as follows: Determine the resistance adjustment direction according to the first resistance adjustment amount information; Obtain 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; Judge 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 so, set 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; 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.
[0012] In this solution, 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: Judge whether the first resistance reference value is greater than the first resistance adjustment amount information; If so, update the first resistance information according to the first resistance adjustment amount information; If not, update the first resistance information according to the first resistance reference value, and update the second resistance information according to the difference between the first resistance adjustment amount information and the first resistance reference value.
[0013] In the second aspect of the present invention, a suppression system for an electric energy meter and a terminal pulse group is provided, including 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: Obtain first voltage information; According to the first voltage information and a preset voltage reference value, obtain first deviation information according to a preset deviation integration algorithm; According to the first deviation information, obtain first resistance adjustment amount information according to a preset adjustment amount algorithm; Obtain first resistance information and second resistance information; Update the first resistance information or the second resistance information according to the magnitude relationship between the first resistance adjustment amount information, the first resistance information, and the second resistance information.
[0014] In this solution, the first deviation information is obtained according to the first voltage information and a preset voltage reference value by a preset deviation integration algorithm, specifically as follows: Obtain the first cycle information; Determine the second cycle information according to the first cycle information; Obtain the first quantity information according to the second cycle information and a preset integration calculation cycle; Collect the first voltage information according to a preset second cycle information; If the first voltage information exceeds the set first voltage range, then obtain a first deviation value according to the first voltage information and the first voltage range; Accumulate the first deviation value to obtain a first deviation sum; Calculate the mean value according to the first quantity information and the first deviation sum to obtain the first deviation information.
[0015] In this solution, the first resistance information or the second resistance information is updated according to the magnitude relationship between the first resistance adjustment amount information, the first resistance information, and the second resistance information, specifically as follows: Determine the resistance adjustment direction according to the first resistance adjustment amount information; Obtain 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; Judge 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 so, set the 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; 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.
[0016] In the third aspect of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium includes a program for the suppression method of the electric energy meter and the terminal pulse group. When the program for the suppression method of the electric energy meter and the terminal pulse group is executed by a processor, the steps of the suppression method of the electric energy meter and the terminal pulse group as described in any one of the above are implemented.
[0017] The present invention provides a method, a system and a storage medium for suppressing impulse groups of an electric energy meter and a terminal. First, according to first voltage information and a preset voltage reference value, first deviation information is obtained according to a preset deviation integration algorithm; then, according to the first deviation information, first resistance value adjustment information is obtained according to a preset adjustment amount algorithm; finally, according to the magnitude relationship between the first resistance value adjustment information and first resistance information and second resistance information, the first resistance information or the second resistance information is updated; thereby adjusting the resistance values of the ground resistors on the left and right sides in the electric energy metering circuit, so as to adjust the voltage difference between the neutral lines on the left and right sides in the electric energy metering circuit, and realizing reducing the interference of the impulse group voltage on the communication signal in the impulse group experiment. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention, and thus should not be regarded as limiting the scope.
[0019] Figure 1 The flowchart of a method for suppressing impulse groups of an electric energy meter and a terminal according to the present invention is shown; Figure 2 The execution flowchart of the deviation integration algorithm provided in this embodiment is shown; Figure 3 The flowchart of updating the resistance value of the ground resistor provided by the embodiment of the present invention is shown; Figure 4 The block diagram of a system for suppressing impulse groups of an electric energy meter and a terminal according to the present invention is shown. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0020] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0021] 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 of ordinary skill in the art to which the present invention belongs. It should also be understood that terms such as those defined in a general dictionary should be interpreted as having a meaning consistent with their meaning in the context of the relevant art, and should not be interpreted in an idealized or overly formal sense unless explicitly defined in the embodiments of the present invention.
[0022] In the embodiments of the present invention, the terms "first", "second" and similar terms do not denote any order, quantity or importance, but are only used to distinguish different components. Similar terms such as "a", "an" or "the" do not denote a quantity limitation either, but mean that there is at least one. Similarly, terms such as "comprising" or "including" mean that the elements or items appearing before this term cover the elements or items listed after this term and their equivalents, without excluding other elements or items. Terms such as "connected" or "coupled" 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 embodiments of the present invention do not necessarily need to be carried out precisely in sequence. On the contrary, they can be carried out in reverse order or simultaneously. At the same time, other operations can also be added to these processes, or one or several steps can be removed from these processes.
[0023] In addition, in each embodiment of the present invention, the functional modules can be integrated together to form an independent part, or each module can exist alone, or two or more modules can be integrated to form an independent part.
[0024] Figure 1 The flowchart of a method for suppressing impulse groups of an electric energy meter and a terminal is shown.
[0025] As Figure 1 shown, in the first aspect of the present invention, a method for suppressing impulse groups of an electric energy meter and a terminal is disclosed, and the method includes: S102, obtaining first voltage information; S104, according to the first voltage information and a preset voltage reference value, obtaining first deviation information according to a preset deviation integration algorithm; S106, according to the first deviation information, obtaining first resistance adjustment amount information according to a preset adjustment amount algorithm; S108, obtaining first resistance information and second resistance information; S110, according to the magnitude relationship between the first resistance adjustment amount information, the first resistance information and the second resistance information, updating the first resistance information or the second resistance information.
[0026] 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 grounding resistance value obtained by the set adjustment amount algorithm; the first resistance information is the resistance value of the first grounding resistance between the neutral wire trace and the ground wire trace on one side in the power metering circuit; the second resistance information is the resistance value of the second grounding resistance between the neutral wire trace and the ground wire trace on the side opposite to the first grounding resistance in the power metering circuit.
[0027] In this embodiment, a grounding resistance with an adjustable resistance value is provided on the neutral wire traces on both the left and right sides of the power metering circuit. By analyzing the voltage interference situation on the communication signal line in real time and through real-time feedback adjustment, the resistance values of the grounding resistances on both sides are adjusted to achieve the adjustment of the voltage difference between the neutral wires on both sides, and to reduce the interference of the burst voltage on the communication signal in the burst experiment. Specifically, first, after measuring the first voltage information according to the preset deviation integral algorithm, the first deviation information is calculated; among them, the deviation integral algorithm is used to analyze the fluctuation of the first voltage information within a set time period. Then, according to the first deviation information, the first resistance adjustment amount information is calculated according to the preset adjustment amount algorithm; among them, the adjustment amount algorithm is a feedback control algorithm, which can improve the sensitivity of adjustment. Finally, according to the magnitude relationship between the resistance values of the grounding resistances on both sides and the first resistance adjustment amount information, the resistance value of at least one side of the grounding resistance is updated to achieve the effect of adjusting the voltage difference between the neutral wires on both sides.
[0028] Figure 2 The execution flowchart of the deviation integral algorithm provided in this embodiment is shown.
[0029] According to an embodiment of the present invention, as Figure 2 shown, according to the first voltage information and a preset voltage reference value, the first deviation information is obtained according to the preset deviation integral algorithm, specifically: S202, obtain the first period information; S204, determine the second period information according to the first period information; S206, obtain the first quantity information according to the second period information and the preset integral calculation period; S208, collect the first voltage information according to the preset second period information; S210, if the first voltage information exceeds the set first voltage range, then obtain the first deviation value according to the first voltage information and the first voltage range; S212, accumulate the first deviation value to obtain the first deviation sum; S214. Calculate the mean value based on the first quantity information and the first total deviation to obtain the first deviation information.
[0030] 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 a set deviation integration calculation cycle; the first deviation value is the voltage value when the first voltage information exceeds the first voltage range; the first total deviation is the sum of the first deviation values within the deviation integration calculation cycle.
[0031] 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, confirm the sampling cycle according to the data transmission communication cycle of the communication line; usually, the sampling cycle is at least twice the communication cycle to improve the accuracy of data analysis; then, determine the quantity of the first voltage information sampled within the calculation cycle according to the calculation cycle of the deviation integration algorithm. Then, if the collected first voltage information exceeds the voltage range corresponding to the level, calculate the voltage value when the first voltage information exceeds the voltage range, that is, the first deviation value, for accumulation to obtain the first total deviation. Finally, calculate the quotient of the first total deviation and the first quantity information, that is, calculate the average value of the first total deviation to obtain the first deviation information.
[0032] According to an embodiment of the present invention, the obtaining of the first deviation value based on the first voltage information and the first voltage range is specifically as follows: Obtain the level stage of the first voltage information; Obtain the first voltage range according to the level stage; Calculate the absolute value of the difference between the first voltage information and the upper limit value or the lower limit value of the first voltage range to obtain the first deviation value.
[0033] It should be noted that the level stage includes a high level stage and a low level stage, which are used to represent the digital level of the communication line. The logic levels on the communication line are usually divided into high level and low level. Taking a system with a power supply of 3.3V as an example, in the low level stage, the first voltage range is [0V, 0.7V]; in the high level stage, the first voltage range is [2.7V, 3.3V]. When the measured voltage value is outside the first voltage range of the corresponding level stage, calculate the absolute value of the difference between the first voltage information and the upper limit value or the lower limit value of the first voltage range to obtain the first deviation value; for example, in the high level stage, when the first voltage information is 3.5V, its first deviation value is 0.2V.
[0034] According to an embodiment of the present invention, the obtaining of the first resistance adjustment quantity information based on the first deviation information according to a preset adjustment quantity algorithm is specifically as follows: Obtain the first weight information, the second weight information, and the third weight information; Calculate the product of the first weight information and the first deviation information to obtain a first control quantity; Calculate the product of the second weight information and the integral value of the first deviation information to obtain a second control quantity; Calculate the product of the third weight information and the differential value of the first deviation information to obtain a third control quantity; Calculate the sum of the first control quantity, the second control quantity, and the third control quantity to obtain the first resistance adjustment quantity information.
[0035] It should be noted that the first weight information is the weight for calculating the proportional control quantity in the adjustment quantity algorithm; the second weight information is the weight for calculating the integral control quantity in the adjustment quantity algorithm; the third weight information is the weight for calculating the differential control quantity in the adjustment quantity algorithm. The first control quantity is the proportional control quantity in the adjustment quantity algorithm; the second control quantity is the integral control quantity in the adjustment quantity algorithm; the third control quantity is the differential control quantity in the adjustment quantity algorithm. In this embodiment, a feedback control algorithm is applied to improve the sensitivity of adjustment. First, calculate the product of the first weight information and the first deviation information to obtain the proportional control quantity. Secondly, obtain the integral value of the first deviation information according to the record of the first deviation information, and calculate the product in combination with the second weight information to obtain the integral control quantity. Then, obtain the differential value of the first deviation information according to the record of the first deviation information, and calculate the product in combination with the third weight information to obtain the differential control quantity. Finally, calculate the sum of the proportional control quantity, the integral control quantity, and the differential control quantity to obtain the first resistance adjustment quantity information.
[0036] Figure 3 The flowchart showing the update of the ground resistance value provided by the embodiment of the present invention is shown.
[0037] According to the embodiment of the present invention, as Figure 3 shown, updating the first resistance information or the second resistance information according to the magnitude relationship between the first resistance adjustment quantity information, the first resistance information, and the second resistance information is specifically as follows: S302. Determine the resistance adjustment direction according to the first resistance adjustment quantity information; S304. Obtain 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; S306. Determine whether the sum of the first resistance reference value and the second resistance reference value is greater than the first resistance adjustment quantity information; S308, if so, set 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; 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.
[0038] It should be noted that the first resistance reference value is the upper limit value of the resistance value adjustment of the first resistance to the ground; the second resistance reference value is the upper limit value of the resistance value adjustment of the second resistance to the ground. First, determine the adjustment direction of the resistance to the ground according to the first resistance adjustment amount information, that is, upward adjustment or downward adjustment; then, according to the current resistance value of the resistance to the ground and the adjustable range of the resistance value of the resistance to the ground, confirm the upper limit value of the adjustment, that is, the resistance reference value. Then, calculate the sum of the two resistance reference values to the ground for judging 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, after calculating the distribution weight obtained, update the resistance value of the first resistance to the ground or the resistance value of the second resistance to the ground according to the distribution weight. When the sum of the reference values is not greater than the first resistance adjustment amount information, update the resistance value of the first resistance to the ground or the resistance value of the second resistance to the ground according to the upper limit value of the resistance value adjustment.
[0039] According to an embodiment of the present invention, the setting of the 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: Judge whether the first resistance reference value is greater than the first resistance adjustment amount information; If so, update the first resistance information according to the first resistance adjustment amount information; If not, update the first resistance information according to the first resistance reference value, and update the second resistance information according to the difference between the first resistance adjustment amount information and the first resistance reference value.
[0040] It should be noted that, as an implementation manner, the principle of preferentially adjusting the resistance value of the first resistance to the ground is adopted to update the resistance values of the two resistances to the ground. If the first resistance reference value is greater than the first resistance adjustment amount information, it means that only updating the resistance value of the first resistance to the ground can meet the resistance value adjustment requirement of the resistance to the ground; at this time, update the first resistance information according to the first resistance adjustment amount information. If the first resistance reference value is not greater than the first resistance adjustment amount information, it means that it is necessary to update the resistances to the ground on both sides at the same time to meet the resistance value adjustment requirement of the resistance to the ground; at this time, update the first resistance information according to the first resistance reference value; and update the second resistance information according to the difference between the first resistance adjustment amount information and the first resistance reference value.
[0041] It is worth mentioning that 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: 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; Updating the first resistance information according to the difference between the first resistance reference value and the third resistance reference value; Updating the second resistance information according to the difference between the second resistance reference value and the third resistance reference value.
[0042] It should be noted that as another implementation manner, the resistance values of two resistors to ground are updated based on the principle of balance adjustment; that is, the reference values of the adjusted resistors on both sides are the same. Determine 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; wherein, the third resistance reference value is the target reference value of the resistor to ground after adjustment. Then update the first resistance information according to the difference between the current reference value of the resistor to ground and the target reference value.
[0043] Figure 4 The block diagram of a suppression system for an electric energy meter and a terminal pulse group according to the present invention is shown.
[0044] As Figure 4 shown, a second aspect of the present invention discloses a suppression system 4 for an electric energy meter and a terminal pulse group, including a memory 41 and a processor 42. The memory includes a program for the suppression method of the electric energy meter and the terminal pulse group. When the program for the suppression method of the electric energy meter and the terminal pulse group is executed by the processor, the following steps are implemented: Obtaining first voltage information; According to the first voltage information and a preset voltage reference value, obtaining first deviation information according to a preset deviation integration algorithm; According to the first deviation information, obtaining first resistance adjustment amount information according to a preset adjustment amount algorithm; Obtaining first resistance information and second resistance information; Updating 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.
[0045] 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 a set deviation integral algorithm; the first resistance adjustment amount information is the adjustment amount for adjusting the value of the grounding resistance obtained by a set adjustment amount algorithm; the first resistance information is the resistance value of the first grounding resistance between the neutral wire routing and the ground wire routing on one side in the power metering circuit; the second resistance information is the resistance value of the second grounding resistance between the neutral wire routing and the ground wire routing on the side opposite to the first grounding resistance in the power metering circuit.
[0046] In this embodiment, a grounding resistance with an adjustable resistance value is provided on the neutral wire routing on both the left and right sides of the power metering circuit. By analyzing the voltage interference situation on the communication signal line in real time and through real-time feedback adjustment, the resistance values of the grounding resistances on both sides are adjusted, so as to adjust the voltage difference between the neutral wires on both sides and reduce the interference of the burst voltage on the communication signal in the burst experiment. Specifically, first, after measuring the first voltage information according to a preset deviation integral algorithm, the first deviation information is calculated; among them, the deviation integral algorithm is used to analyze the fluctuation situation of the first voltage information within a set time period. Then, according to the first deviation information, the first resistance adjustment amount information is calculated according to a preset adjustment amount algorithm; among them, the adjustment amount algorithm is a feedback control algorithm, which can improve the sensitivity of adjustment. Finally, according to the magnitude relationship between the resistance values of the grounding resistances on both sides and the first resistance adjustment amount information, the resistance value of at least one side of the grounding resistance is updated to achieve the effect of adjusting the voltage difference between the neutral wires on both sides.
[0047] According to the embodiment of the present invention, obtaining the first deviation information according to the first voltage information and a preset voltage reference value according to a preset deviation integral algorithm specifically includes: Obtaining the first period information; Determining the second period information according to the first period information; Obtaining the first quantity information according to the second period information and a preset integral calculation period; Collecting the first voltage information according to a preset second period information; If the first voltage information exceeds a set first voltage range, then obtaining a first deviation value according to the first voltage information and the first voltage range; Accumulating the first deviation value to obtain a first deviation sum; Calculating an average value according to the first quantity information and the first deviation sum to obtain the first deviation information.
[0048] 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 a set deviation integration calculation cycle; the first deviation value is the voltage value when the first voltage information exceeds the first voltage range; the first deviation sum is the sum of the first deviation values within the deviation integration calculation cycle.
[0049] 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, confirm the sampling cycle according to the data transmission communication cycle of the communication line; usually, the sampling cycle is at least twice the communication cycle to improve the accuracy of data analysis; then, determine the number of the first voltage information samples within the calculation cycle according to the calculation cycle of the deviation integration algorithm. Then, if the collected first voltage information exceeds the voltage range corresponding to the level, calculate the voltage value when the first voltage information exceeds the voltage range, that is, the first deviation value, for accumulating to obtain the first deviation sum. Finally, calculate the quotient of the first deviation sum and the first quantity information, that is, calculate the average value of the first deviation sum to obtain the first deviation information.
[0050] 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: Obtain the level stage of the first voltage information; According to the level stage, obtain the first voltage range; Calculate the absolute value of the difference between the first voltage information and the upper limit value or the lower limit value of the first voltage range to obtain the first deviation value.
[0051] It should be noted that the level stage includes a high level stage and a low level stage, which are used to represent the digital level of the communication line. The logic levels on the communication line are usually divided into high level and low level. Taking a system with a power supply of 3.3V as an example, in the low level stage, the first voltage range is [0V, 0.7V]; in the high level stage, the first voltage range is [2.7V, 3.3V]. When the measured voltage value is outside the first voltage range of the corresponding level stage, calculate the absolute value of the difference between the first voltage information and the upper limit value or the lower limit value of the first voltage range to obtain the first deviation value; for example, in the high level stage, when the first voltage information is 3.5V, its first deviation value is 0.2V.
[0052] According to an embodiment of the present invention, obtaining the first resistance value adjustment amount information according to the first deviation information according to a preset adjustment amount algorithm is specifically: Obtain the first weight information, the second weight information, and the third weight information; Calculate the product of the first weight information and the first deviation information to obtain a first control quantity; Calculate the product of the second weight information and the integral value of the first deviation information to obtain a second control quantity; Calculate the product of the third weight information and the differential value of the first deviation information to obtain a third control quantity; Calculate the sum of the first control quantity, the second control quantity, and the third control quantity to obtain first resistance adjustment quantity information.
[0053] It should be noted that the first weight information is the weight for calculating the proportional control quantity in the adjustment quantity algorithm; the second weight information is the weight for calculating the integral control quantity in the adjustment quantity algorithm; the third weight information is the weight for calculating the differential control quantity in the adjustment quantity algorithm. The first control quantity is the proportional control quantity in the adjustment quantity algorithm; the second control quantity is the integral control quantity in the adjustment quantity algorithm; the third control quantity is the differential control quantity in the adjustment quantity algorithm. In this embodiment, a feedback control algorithm is applied to improve the sensitivity of adjustment. First, calculate the product of the first weight information and the first deviation information to obtain the proportional control quantity. Secondly, obtain the integral value of the first deviation information based on the record of the first deviation information, and calculate the product in combination with the second weight information to obtain the integral control quantity. Then, obtain the differential value of the first deviation information based on the record of the first deviation information, and calculate the product in combination with the third weight information to obtain the differential control quantity. Finally, calculate the sum of the proportional control quantity, the integral control quantity, and the differential control quantity to obtain the first resistance adjustment quantity information.
[0054] According to an embodiment of the present invention, updating the first resistance information or the second resistance information according to the magnitude relationship between the first resistance adjustment quantity information, the first resistance information, and the second resistance information is specifically as follows: Determine the resistance adjustment direction according to the first resistance adjustment quantity information; Obtain 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; Judge whether the sum of the first resistance reference value and the second resistance reference value is greater than the first resistance adjustment quantity information; If so, set distribution weights according to the first resistance reference value and the second resistance reference value for updating the first resistance information or the second resistance information; 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.
[0055] It should be noted that the first resistance reference value is the upper limit value of the resistance value adjustment of the first resistance to the ground; the second resistance reference value is the upper limit value of the resistance value adjustment of the second resistance to the ground. First, according to the first resistance value adjustment amount information, determine the adjustment direction of the resistance to the ground, that is, upward adjustment or downward adjustment; then, according to the current resistance value of the resistance to the ground and the adjustable range of the resistance value of the resistance to the ground, confirm the upper limit value of the adjustment, that is, the resistance reference value. Then, calculate the sum of the two resistance reference values to the ground to judge the magnitude relationship between the sum of the reference values and the first resistance value adjustment amount information. When the sum of the reference values is greater than the first resistance value adjustment amount information, after calculating the allocated weight value, update the resistance value of the first resistance to the ground or the resistance value of the second resistance to the ground according to the allocated weight value. When the sum of the reference values is not greater than the first resistance value adjustment amount information, update the resistance value of the first resistance to the ground or the resistance value of the second resistance to the ground according to the upper limit value of the resistance value adjustment.
[0056] According to an embodiment of the present invention, setting an allocation weight value according to the first resistance reference value and the second resistance reference value for updating the first resistance information or the second resistance information specifically includes: Judge whether the first resistance reference value is greater than the first resistance value adjustment amount information; If so, update the first resistance information according to the first resistance value adjustment amount information; If not, update the first resistance information according to the first resistance reference value, and update the second resistance information according to the difference between the first resistance value adjustment amount information and the first resistance reference value.
[0057] It should be noted that, as an implementation manner, the principle of preferentially adjusting the resistance value of the first resistance to the ground is adopted to update the resistance values of the two resistances to the ground. If the first resistance reference value is greater than the first resistance value adjustment amount information, it means that only updating the resistance value of the first resistance to the ground can meet the resistance value adjustment requirement of the resistance to the ground; at this time, update the first resistance information according to the first resistance value adjustment amount information. If the first resistance reference value is not greater than the first resistance value adjustment amount information, it means that it is necessary to update the resistances to the ground on both sides simultaneously to meet the resistance value adjustment requirement of the resistance to the ground; at this time, update the first resistance information according to the first resistance reference value; and update the second resistance information according to the difference between the first resistance value adjustment amount information and the first resistance reference value.
[0058] It is worth mentioning that setting an allocation weight value 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: Determine 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 value adjustment amount information; Update the first resistance information according to the difference between the first resistance reference value and the third resistance reference value; Update the second resistance information according to the difference between the second resistance reference value and the third resistance reference value.
[0059] It should be noted that, as another implementation manner, the resistance values of two resistors to ground are updated by taking balance adjustment as the adjustment principle; that is, the reference values of the two adjusted resistors on both sides are made the same. Determine the 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; where the third resistance reference value is the target reference value of the resistor to ground after adjustment. Then update the first resistance information according to the difference between the current reference value and the target reference value of the resistor to ground.
[0060] The third aspect of the present invention provides a computer-readable storage medium, which includes a program for the method of suppressing impulse groups of an electric energy meter and a terminal. When the program for the method of suppressing impulse groups of an electric energy meter and a terminal is executed by a processor, the steps of the method of suppressing impulse groups of an electric energy meter and a terminal as described in any one of the above are implemented.
[0061] In summary, a method, a system and a storage medium for suppressing impulse groups of an electric energy meter and a terminal are provided. First, according to the first voltage information and a preset voltage reference value, the first deviation information is obtained according to a preset deviation integration algorithm; then, according to the first deviation information, the first resistance adjustment amount information is obtained according to a preset adjustment amount algorithm; finally, according to the magnitude relationship between the first resistance adjustment amount information and the first resistance information and the second resistance information, the first resistance information or the second resistance information is updated; thereby adjusting the resistance values of the resistors to ground on the left and right sides in the electric energy measurement circuit, so as to adjust the voltage difference between the neutral lines on the left and right sides in the electric energy measurement circuit, and realizing reducing the interference of the impulse group voltage on the communication signal in the impulse group experiment.
[0062] When the above-described function is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or a part of this technical solution can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs.
[0063] The foregoing are only the preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included within the protection scope 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 the first voltage information and a preset voltage reference value and a preset deviation integration algorithm; According to the first deviation information, first resistance adjustment amount information is obtained according to a preset adjustment amount algorithm; Acquire 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 a neutral line and a 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 the 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 the 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, a first deviation value is obtained 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 according to 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 obtaining of the first deviation value according to the first voltage information and the first voltage range is 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; Calculate the product of the first weight information and the first deviation information to obtain a first control amount; Calculate the product of the second weight information and the integral value of the first deviation information to obtain a second control amount; Calculating the product of the third weight information and the differential value of the first deviation information to obtain a third control amount; 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 magnitude 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; Determine 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 the 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 suppression system for electric energy meters and terminal pulse groups, characterized in that: The system includes a memory and a processor, wherein the memory includes a method program for suppressing an electric energy meter and a terminal pulse group, and when the method program for suppressing an electric energy meter and a terminal pulse group is executed by the processor, the following steps are implemented: Acquiring first voltage information; Obtaining first deviation information according to the first voltage information and a preset voltage reference value and a preset deviation integration algorithm; According to the first deviation information, first resistance adjustment amount information is obtained according to a preset adjustment amount algorithm; Acquire first resistance information and second resistance information; 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.
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 the 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, a first deviation value is obtained 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 according to 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 magnitude 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; Determine 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 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 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
Reliable communication through a flyback power transformer using a zero voltage switching pulse
US20210257922A1
Attenuation and termination circuit using impedance synthesis
US7660408B1