Method and device for evaluating driving capability of electric pulse output interface and electric energy meter
By inputting a sinusoidal wave signal into the electrical device and using a 0.8V voltage comparator and an analog-to-digital converter to monitor the output voltage of the electric pulse output interface and calculate the driving current, the problem of the existing technology that the driving capability of the electric pulse output interface cannot be accurately evaluated is solved, and an efficient and accurate evaluation method is achieved.
Patent Information
- Application Number
- CN202510803081.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-16
- Publication Date
- 2025-09-05
- Estimated Expiration
- 2045-06-16
AI Technical Summary
In the prior art, the driving capability evaluation method of the electric pulse output interface cannot accurately identify the actual driving capability of the device and lacks a scientific evaluation basis.
A sine wave signal is input to the electrical device under test, and the output voltage of the electric pulse output interface is monitored through a 0.8V voltage comparator and an analog-to-digital converter. The driving current is calculated as an evaluation indicator, and the corresponding driving current is generated using the sine wave voltage fluctuation.
It realizes the accurate evaluation of the driving capability of the electric pulse output interface, improves the test efficiency, and provides a scientific basis for evaluation.
Smart Images

Figure CN120595221A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of circuit testing, and in particular to a method and device for evaluating the driving capability of an electric pulse output interface, and an electric energy meter. Background Art
[0002] According to the technical specifications of the State Grid Corporation of China, when pulse output interfaces of electrical equipment such as energy meters are generating pulses, the voltage drop at the pulse output interface must not exceed 0.8V when passing a current of 5mA. The requirements are even stricter in some regions, requiring that the voltage drop at the pulse output interface must not exceed 0.8V when passing a current of 10mA.
[0003] The electrical pulse output interface of an electrical device is generally composed of an optocoupler output interface. Due to factors such as insufficient circuit design margin and the discreteness of the optocoupler current transmission ratio, the driving capability of the pulse output interface may not meet the requirements of the technical specifications. In the existing technology, the driving capability evaluation of the pulse output interface usually adopts the following test method: apply a driving current of 5mA or 10mA to the pulse output interface, and test the voltage drop of the pulse output interface when there is a pulse output. If it is less than 0.8V, it is judged to be qualified, and if it is greater than 0.8V, it is judged to be unqualified. However, this test method can only make judgments by measuring the voltage drop of the pulse output interface, and cannot accurately identify the actual driving capability of the device's pulse output interface, and lacks a scientific basis for judgment. Summary of the Invention
[0004] The present invention provides a method, device and electric energy meter for evaluating the driving capability of an electric pulse output interface, which are used to solve the defects of the existing testing method in that the actual driving capability of the pulse output interface of an electric device cannot be accurately identified and there is a lack of scientific evaluation basis.
[0005] The present invention provides a method for evaluating the driving capability of an electric pulse output interface, comprising: Input a sine wave signal to the circuit of the electrical equipment to be tested; When it is determined that the output voltage of the electric pulse output interface is greater than the voltage drop specification value, collecting the sinusoidal wave voltage of the sinusoidal wave signal in the circuit; The driving current of the electric pulse output interface of the electrical device to be tested is calculated according to the sinusoidal wave voltage, and the driving current is used as the driving capability index of the electric pulse output interface.
[0006] In some embodiments, the period of the sinusoidal wave signal is less than the pulse output time of the electric pulse output interface, and the input amplitude of the sinusoidal wave signal is greater than the specified voltage of the electric pulse output interface, and the specified voltage is calculated based on the driving current specified by the electric pulse output interface and the resistance in the circuit.
[0007] In some embodiments, calculating the driving current of the device under test at the electrical pulse output interface based on the sinusoidal wave voltage includes: Determine the difference between the sinusoidal wave voltage and the voltage drop standard value as the driving voltage of the electric pulse output interface of the electrical device to be tested; The ratio of the driving voltage to the resistance in the circuit is determined as the driving current of the electrical device to be tested at the pulse output interface.
[0008] In some embodiments, the method further comprises: obtaining an output voltage of an electric pulse output interface of the electrical device to be tested by detecting using a 0.8V voltage comparator; When the 0.8V voltage comparator changes from outputting a low level to outputting a high level, it is determined that the output voltage of the electric pulse output interface is greater than the voltage drop specification value, wherein the voltage drop specification value is 0.8V, the high level is output when the 0.8V voltage comparator detects that the output voltage of the electric pulse output interface is greater than 0.8V, and the low level is output when the 0.8V voltage comparator detects that the output voltage of the electric pulse output interface is not greater than 0.8V.
[0009] In some embodiments, the method further comprises: When the 0.8V voltage comparator outputs the low level, the rising edge of the electric pulse output interface is monitored in real time; When the 0.8V voltage comparator outputs the high level, the input of the sine wave signal to the circuit of the electrical device to be tested is stopped, and the analog-to-digital converter is triggered to collect the sine wave voltage of the sine wave signal in the circuit.
[0010] The present invention also provides an electric pulse output interface driving capability evaluation device, comprising: a sine wave generator, a micro control unit, a 0.8V voltage comparator, and an analog-to-digital converter; The sine wave generator is used to input a sine wave signal into the circuit of the electrical device to be tested; The microcontrol unit is configured to trigger the analog-to-digital converter to collect the sinusoidal voltage of the sinusoidal wave signal in the circuit when the 0.8V voltage comparator determines that the output voltage of the electric pulse output interface is greater than the voltage drop specification value; The micro control unit is further used to calculate the driving current of the electric pulse output interface of the electrical device to be tested based on the sinusoidal wave voltage, and use the driving current as the driving capability indicator of the electric pulse output interface.
[0011] The present invention further provides an electric energy meter, wherein the electric energy meter is provided with the above-mentioned electric pulse output interface driving capability evaluation device, and the electric pulse output interface driving capability evaluation device is connected to the electric pulse output interface of the electric energy meter via a circuit; The electric pulse output interface driving capability evaluation device is used to evaluate the driving capability index of the electric pulse output interface by taking the electric energy meter as the electrical device to be tested.
[0012] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for evaluating the driving capability of an electric pulse output interface as described above is implemented.
[0013] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for evaluating the driving capability of an electric pulse output interface as described above is implemented.
[0014] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned methods for evaluating the driving capability of an electric pulse output interface.
[0015] The electric pulse output interface driving capability evaluation method, device and electric energy meter provided by the present invention use sinusoidal wave voltage instead of DC voltage drive, use the voltage fluctuation of the sinusoidal wave to generate a corresponding sinusoidal wave driving current, monitor the output voltage of the electric pulse output interface, record the sinusoidal wave voltage under the voltage drop specification value, and finally calculate the maximum driving current of the electric pulse output interface as the driving capability evaluation index, which is used to accurately and intuitively evaluate the driving capability of the electric pulse output interface and has high test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced one by one below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0017] Figure 1 It is a flow chart of the method for evaluating the driving capability of an electric pulse output interface provided by the present invention.
[0018] Figure 2 It is a schematic diagram of the driving capability evaluation method of the electric pulse output interface provided by the present invention.
[0019] Figure 3 This is a circuit schematic diagram of a 0.8V voltage comparator provided by the present invention.
[0020] Figure 4 It is a circuit principle diagram of the analog-to-digital converter provided by the present invention.
[0021] Figure 5It is a principle diagram of the driving capability evaluation process of the electric pulse output interface provided by the present invention.
[0022] Figure 6 It is a structural schematic diagram of the electric pulse output interface driving capability evaluation device provided by the present invention.
[0023] Figure 7 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0024] To make the objectives, technical solutions, and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.
[0025] The following describes the method, device and electric energy meter for evaluating the driving capability of an electric pulse output interface of the present invention with reference to the accompanying drawings. Figure 1 FIG. 1 is a flow chart of a method for evaluating the driving capability of an electric pulse output interface provided by the present invention. Figure 1 As shown, the method includes the following steps 101 to 103, which are described in detail below.
[0026] Step 101: Input a sine wave signal to a circuit of an electrical device to be tested.
[0027] Here, as Figure 2 As shown, a sine wave generator is installed in the circuit where the electrical device under test is located. The sine wave generator continuously outputs a sine wave to generate a corresponding sine wave signal. The electrical device under test can be a device with an electrical pulse output interface, such as an energy meter or a pulse meter.
[0028] Furthermore, the period of the sine wave signal is less than the pulse output time of the electrical pulse output interface. The pulse output time is 80ms here, and the period of the sine wave signal needs to be less than 80ms, for example, 20ms, so the output frequency of the sine wave is 50Hz.
[0029] Moreover, the input amplitude of the sine wave signal here is greater than the specified voltage of the electric pulse output interface, so as to ensure that the amplitude of the sine wave can provide sufficient driving capability. The specified voltage is calculated based on the driving current specified by the electric pulse output interface and the resistance in the circuit. In the embodiment of the present invention, the driving current specified by the electric pulse output interface is used to measure the driving capability of the electric pulse output interface. The driving current is generally required to be greater than 10mA. If the resistance in the circuit (i.e. Figure 2 R2 in the figure is 100Ω, so the amplitude of the sine wave, V, is: (1) In this way, when the sine wave generator inputs a sine wave signal to the circuit of the electrical device under test, it is necessary to ensure that the input sine wave period is 20ms and the amplitude of the sine wave is 10V. This ensures that the electrical pulse output interface has sufficient driving capability to facilitate driving capability evaluation.
[0030] Step 102: When it is determined that the output voltage of the electric pulse output interface of the electrical device to be tested is greater than the voltage drop specification value, the sinusoidal wave voltage of the sinusoidal wave signal in the circuit is collected.
[0031] like Figure 2 As shown in the figure, when a sine wave signal generated by a sine wave generator is input into a circuit, a sine wave voltage is generated within the circuit. This in turn generates an output voltage at the pulse output interface of the device under test. By measuring this output voltage, it can be determined whether the voltage drop specification is met. The voltage drop specification is the technical specification requirement that the pulse output interface of the device under test must meet, which is 0.8V.
[0032] In some embodiments, the output voltage of the electric pulse output interface of the electrical device to be tested can be detected by a 0.8V voltage comparator. That is, the output voltage of the electric pulse output interface is tested in real time by a 0.8V voltage comparator. The test position is as follows: Figure 2 The test point 2 is shown in the figure. Then the real-time monitored output voltage is used to determine whether it is greater than 0.8V. The judgment process is described in detail below.
[0033] First, when the 0.8V voltage comparator changes from outputting a low level to outputting a high level, it is determined that the output voltage of the electric pulse output interface is greater than the voltage drop specification value, where the voltage drop specification value is 0.8V. The high level is output when the 0.8V voltage comparator detects that the output voltage of the electric pulse output interface is greater than 0.8V, and the low level is output when the 0.8V voltage comparator detects that the output voltage of the electric pulse output interface is not greater than 0.8V.
[0034] The 0.8V voltage comparator is controlled by the microcontroller unit (MCU) connected to the circuit. The microcontroller unit can be a single chip microcomputer, microcomputer and other devices. Figure 3 As shown, Figure 3 The working principle of the 0.8V voltage comparator is shown. When the voltage provided to the 0.8V voltage comparator is 5V, it is divided by resistors R1, R2, R3 and capacitor C1 and then filtered to output a 0.8V voltage to the negative input terminal 2 of the 0.8V voltage comparator. The output voltage of the electric pulse output interface is When input, it will be input to the positive input terminal 3 of the 0.8V voltage comparator through the resistor R5 and the diode D1. The diode D1 plays a circuit protection role. By comparing the voltage of the positive and negative input terminals, that is, comparing the output voltage Corresponding to the size of 0.8V, at the output terminal 1, after voltage division by capacitor C2 and resistor R4, a high level or a low level is output.
[0035] The aforementioned 0.8V voltage comparator accurately determines whether the output voltage of the electrical pulse output interface is greater than 0.8V. The 0.8V voltage comparator outputs a low level when it detects that the output voltage of the electrical pulse output interface is not greater than 0.8V. When the 0.8V voltage comparator outputs a low level, the microcontroller unit determines that the output voltage of the electrical pulse output interface is within the voltage drop specification value, and the 0.8V voltage comparator continues monitoring until the output voltage reaches 0.8V.
[0036] When the output voltage of the electric pulse output interface is detected to be greater than 0.8V, it will change from outputting a low level to outputting a high level. When the 0.8V voltage comparator outputs a high level, the microcontroller unit can determine that the output voltage of the electric pulse output interface is greater than the voltage drop specification value.
[0037] When it is determined that the output voltage of the electric pulse output interface is greater than the voltage drop specification value, the sine wave voltage of the sine wave signal in the circuit is collected. Figure 2 As shown in the figure, an analog to digital converter (ADC) is also installed in the circuit. The ADC is also controlled by the microcontroller. When it is determined that the output voltage of the electric pulse output interface is greater than the voltage drop specification value, the ADC is triggered to collect the sine wave voltage of the sine wave signal in the circuit, which is recorded as , the collection location is as follows Figure 2 Test point 1 shown in .
[0038] like Figure 4 As shown, Figure 4 The voltage sampling circuit diagram of the analog-to-digital converter is shown. The sinusoidal voltage is divided by resistors R6, R7 and capacitor C3, and then enters the analog-to-digital converter of the microcontroller through diode D2, thereby transmitting the sinusoidal voltage to the microcontroller. Diode D2 plays a circuit protection role.
[0039] In an embodiment of the present invention, a 0.8V voltage comparator outputs a high level or a low level, which can more intuitively and accurately monitor whether the output voltage of the electric pulse output interface reaches the voltage drop specification value of 0.8V, and when it reaches it, the analog-to-digital converter is used to collect the sinusoidal wave voltage of the sinusoidal wave signal in the circuit, so as to facilitate the subsequent calculation of the driving current while meeting the technical specifications to evaluate the driving capability of the electric pulse output interface.
[0040] In some embodiments, when the 0.8V voltage comparator outputs a low level, the rising edge of the electrical pulse output interface is monitored in real time. Here, because the sinusoidal wave signal is continuously input into the circuit, the output voltage of the electrical pulse output interface gradually rises. When the output voltage does not reach 0.8V, the 0.8V voltage comparator continues to output a low level while also monitoring the rising edge of the electrical pulse output interface, i.e., determining whether the output voltage has reached 0.8V, thereby changing the output from a low level to a high level.
[0041] Correspondingly, when the 0.8V voltage comparator outputs a high level, the input of the sine wave signal to the circuit of the electrical device under test is stopped, and the analog-to-digital converter is triggered to collect the sine wave voltage of the sine wave signal in the circuit.
[0042] Here, when the 0.8V voltage comparator outputs a high level, it means that the rising edge of the electric pulse output interface has been detected, and the output voltage of the electric pulse output interface has reached 0.8V. At this time, the sine wave generator can be triggered to stop inputting the sine wave signal to the circuit of the electrical equipment under test, and the analog-to-digital converter can be triggered to collect the sine wave voltage of the sine wave signal in the circuit.
[0043] In the embodiment of the present invention, the rising edge is monitored in real time by a 0.8V voltage comparator, which can ensure that the output voltage of the electric pulse output interface has reached 0.8V, thereby reducing measurement errors and ensuring the accuracy of subsequent drive current calculations.
[0044] Step 103: Calculate the driving current of the electric pulse output interface of the electrical device to be tested based on the sinusoidal wave voltage, and use the driving current as a driving capability indicator of the electric pulse output interface.
[0045] like Figure 2 As shown, after the output voltage and the sine wave voltage of the electric pulse output interface are collected at test point 1 and test point 2 respectively, the driving current of the electric pulse output interface can be calculated in combination with the resistance R2 between test point 1 and test point 2.
[0046] First, the difference between the sinusoidal wave voltage and the voltage drop standard value is determined as the driving voltage of the electrical pulse output interface of the electrical device under test, and then the ratio of the driving voltage to the resistance in the circuit is determined as the driving current of the electrical device under test at the pulse output interface.
[0047] Here, the output voltage of the electric pulse output interface takes the voltage drop standard value, which is 0.8V, and then calculates the sine wave voltage The difference between 0.8V and 0.8V is used as the driving voltage of the electric pulse output interface of the electrical device under test. The resistance in the circuit is R2. Therefore, the ratio of the driving voltage to R2 is determined as the driving current of the electrical device under test at the pulse output interface. The driving current is the current output by the electric pulse output interface of the electrical device under test, which is recorded as , expressed as the following formula: (2) According to the above formula (2), when the sine wave voltage collected by the analog-to-digital converter is When the voltage is 2.3V and R2 is 100Ω, the calculated driving current is It is 0.015A, or 15mA.
[0048] Here, the drive current is used as an indicator of the driving capability of the pulse output interface to evaluate the driving capability of the device under test. For example, the calculated drive current is 15mA, which exceeds the 5mA required by the device under test and still has a margin of 10mA. This indicates that the driving capability of the device under test's pulse output interface meets the technical specifications.
[0049] In an embodiment of the present invention, the output voltage of the electric pulse output interface is monitored, and the sinusoidal voltage under the voltage drop specification value is recorded to calculate the driving capability evaluation index. In this way, when the electrical equipment to be tested meets the voltage drop specification value, an accurate evaluation of the driving capability can be achieved, and a more scientific basis for judgment can be provided. In an embodiment of the present invention, a sinusoidal voltage is used instead of a DC voltage drive, and the voltage fluctuation of the sinusoidal wave is used to generate a corresponding sinusoidal driving current. By monitoring the output voltage of the electric pulse output interface and recording the sinusoidal voltage under the voltage drop specification value, the maximum driving current of the electric pulse output interface is finally calculated as the driving capability evaluation index, which is used to accurately and intuitively evaluate the driving capability of the electric pulse output interface, and has high test efficiency.
[0050] The electric pulse output interface driving capability evaluation device provided by the present invention is described below. The electric pulse output interface driving capability evaluation device described below and the electric pulse output interface driving capability evaluation method described above can be referenced to each other.
[0051] like Figure 5 As shown, the electric pulse output interface driving capability evaluation device includes four modules, specifically: a sine wave generator 301, a micro control unit 302, a 0.8V voltage comparator 303 and an analog-to-digital converter 304. Each module is connected to the circuit where the electrical device to be tested is located, that is, the modules are connected through the circuit.
[0052] Specifically, the sine wave generator 301 is used to input a sine wave signal into the circuit of the electrical device under test; the micro control unit 302 is used to trigger the analog-to-digital converter 304 to collect the sinusoidal wave voltage of the sine wave signal in the circuit when the 0.8V voltage comparator 303 determines that the output voltage of the electric pulse output interface is greater than the voltage drop specification value; the micro control unit 302 is also used to calculate the driving current of the electric pulse output interface of the electrical device under test based on the sinusoidal wave voltage, and use the driving current as the driving capability indicator of the electric pulse output interface.
[0053] The following describes the process of evaluating the driving capability of the electric pulse output interface from the perspective of the micro control unit 302. Figure 6 As shown, at the beginning, the microcontroller unit 302 is initialized first, and then after the sine wave generator 301 inputs a sine wave signal into the circuit, the 0.8V voltage comparator 303 is monitored for a rising edge. If so, it means that the output voltage of the electric pulse output interface has reached 0.8V, and the analog-to-digital converter 304 is controlled to collect the sine wave voltage. If not, the 0.8V voltage comparator 303 is continuously monitored for a rising edge. After collecting the sine wave voltage, it is determined whether the sine wave voltage is greater than 0.8V. If not, the 0.8V voltage comparator 303 is continuously monitored for a rising edge. If so, the driving current of the electric pulse output interface is calculated and the driving current magnitude is output, thus completing the evaluation process.
[0054] It should be noted that the beneficial effects of the electric pulse output interface driving capability evaluation device here and the electric pulse output interface driving capability evaluation method mentioned above can correspond to each other, so the beneficial effects of the electric pulse output interface driving capability evaluation device will not be repeated here.
[0055] The following describes an electric energy meter provided by an embodiment of the present invention, in which a Figure 6 The electric pulse output interface driving capability evaluation device shown is connected to the electric pulse output interface of the electric energy meter via a circuit and can be installed inside the electric energy meter.
[0056] The device for evaluating the driving capability of an electrical pulse output interface is used to assess the driving capability of an electrical pulse output interface, using the energy meter as the electrical device under test. When the driving capability of the electrical pulse output interface of the energy meter needs to be evaluated, the device is activated directly by switching on the circuit. The device then automatically performs the driving capability evaluation, treating the energy meter as the electrical device under test.
[0057] The electric energy meter provided by the embodiment of the present invention sets the electric pulse output interface driving capability evaluation device in the electric energy meter, so that the driving capability evaluation of the electric energy meter can be performed at any time by simply operating the circuit switch, which is convenient, meets the real-time evaluation requirements, and has high testing efficiency.
[0058] Figure 7 An example of a physical structure diagram of an electronic device is shown below. Figure 7 As shown, the electronic device may include: a processor 410, a communications interface 420, a memory 430, and a communications bus 440, wherein the processor 410, the communications interface 420, and the memory 430 communicate with each other via the communications bus 440. The processor 410 may call logic instructions in the memory 430 to execute a method for evaluating the driving capability of an electric pulse output interface. The method includes: inputting a sinusoidal wave signal into a circuit of the electrical device under test; when it is determined that the output voltage of the electric pulse output interface is greater than a voltage drop specification value, collecting the sinusoidal wave voltage of the sinusoidal wave signal in the circuit; and calculating the driving current of the electric pulse output interface of the electrical device under test based on the sinusoidal wave voltage, and using the driving current as an indicator of the driving capability of the electric pulse output interface.
[0059] Furthermore, the logic instructions in the aforementioned memory 430 can be implemented as software functional units and, when sold or used as independent products, 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 a portion of the technical solution, can be embodied in the form of a software product. This computer software product, stored in a storage medium, 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 medium includes various media capable of storing program code, such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0060] On the other hand, the present invention also provides a computer program product, which includes a computer program, and the computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the electric pulse output interface driving capability evaluation method provided by the above methods, the method including: inputting a sinusoidal wave signal into the circuit of the electrical device to be tested; when it is determined that the output voltage of the electric pulse output interface is greater than the voltage drop specification value, collecting the sinusoidal wave voltage of the sinusoidal wave signal in the circuit; calculating the driving current of the electric pulse output interface of the electrical device to be tested based on the sinusoidal wave voltage, and using the driving current as the driving capability indicator of the electric pulse output interface.
[0061] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the electric pulse output interface driving capability evaluation method provided by the above-mentioned methods. The method includes: inputting a sinusoidal wave signal into the circuit of the electrical device to be tested; when it is determined that the output voltage of the electric pulse output interface is greater than the voltage drop specification value, collecting the sinusoidal wave voltage of the sinusoidal wave signal in the circuit; calculating the driving current of the electric pulse output interface of the electrical device to be tested based on the sinusoidal wave voltage, and using the driving current as the driving capability indicator of the electric pulse output interface.
[0062] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.
[0063] Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented using software plus a necessary general-purpose hardware platform, or of course, hardware. Based on this understanding, the essence of the above technical solution, or the portion that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, or an optical disk, and includes a number of instructions for causing a computer device (such as a personal computer, server, or network device) to execute the methods described in each embodiment or certain portions of the embodiments.
[0064] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A method for evaluating the driving capability of an electric pulse output interface, characterized in that: include: Input a sine wave signal to the circuit of the electrical equipment to be tested; When it is determined that the output voltage of the electric pulse output interface of the electrical device to be tested is greater than the voltage drop specification value, collecting the sinusoidal wave voltage of the sinusoidal wave signal in the circuit; The driving current of the electric pulse output interface is calculated according to the sinusoidal wave voltage, and the driving current is used as a driving capability indicator of the electric pulse output interface.
2. The method for evaluating the driving capability of an electric pulse output interface according to claim 1, wherein: The period of the sinusoidal wave signal is less than the pulse output time of the electric pulse output interface, and the input amplitude of the sinusoidal wave signal is greater than the specified voltage of the electric pulse output interface, and the specified voltage is calculated based on the driving current specified by the electric pulse output interface and the resistance in the circuit.
3. The method for evaluating the driving capability of an electric pulse output interface according to claim 1, wherein: The step of calculating the driving current of the device under test at the electric pulse output interface according to the sinusoidal wave voltage includes: Determine the difference between the sinusoidal wave voltage and the voltage drop standard value as the driving voltage of the electric pulse output interface of the electrical device to be tested; The ratio of the driving voltage to the resistance in the circuit is determined as the driving current of the electric pulse output interface of the electrical device to be tested.
4. The method for evaluating the driving capability of an electric pulse output interface according to claim 1, wherein: The method further comprises: obtaining an output voltage of an electric pulse output interface of the electrical device to be tested by detecting with a 0.8V voltage comparator; When the 0.8V voltage comparator changes from outputting a low level to outputting a high level, it is determined that the output voltage of the electric pulse output interface is greater than the voltage drop specification value, wherein the voltage drop specification value is 0.8V, the high level is output when the 0.8V voltage comparator detects that the output voltage of the electric pulse output interface is greater than 0.8V, and the low level is output when the 0.8V voltage comparator detects that the output voltage of the electric pulse output interface is not greater than 0.8V.
5. The method for evaluating the driving capability of an electric pulse output interface according to claim 4, wherein: The method further comprises: When the 0.8V voltage comparator outputs the low level, monitoring the rising edge of the electric pulse output interface in real time; When the 0.8V voltage comparator outputs the high level, the input of the sine wave signal to the circuit of the electrical device to be tested is stopped, and the analog-to-digital converter is triggered to collect the sine wave voltage of the sine wave signal in the circuit.
6. An electric pulse output interface driving capability evaluation device, characterized in that: include: Sine wave generator, microcontroller unit, 0.8V voltage comparator, analog-to-digital converter; The sine wave generator is used to input a sine wave signal into the circuit of the electrical device to be tested; The microcontrol unit is configured to trigger the analog-to-digital converter to collect the sinusoidal voltage of the sinusoidal wave signal in the circuit when the 0.8V voltage comparator determines that the output voltage of the electric pulse output interface of the electrical device to be tested is greater than the voltage drop specification value; The micro control unit is further configured to calculate the driving current of the electric pulse output interface based on the sinusoidal wave voltage, and use the driving current as an indicator of the driving capability of the electric pulse output interface.
7. An electric energy meter, characterized in that: The electric energy meter is provided with an electric pulse output interface driving capability evaluation device as claimed in claim 5, and the electric pulse output interface driving capability evaluation device is connected to the electric pulse output interface of the electric energy meter via a circuit; The electric pulse output interface driving capability evaluation device is used to evaluate the driving capability index of the electric pulse output interface by taking the electric energy meter as the electrical device to be tested.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the method for evaluating the driving capability of an electric pulse output interface according to any one of claims 1 to 4 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for evaluating the driving capability of an electric pulse output interface according to any one of claims 1 to 4 is implemented.
10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method for evaluating the driving capability of an electric pulse output interface according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Power supply testing device for USB connection socket
CN101545936A
Quasi-synchronous wideband reactive energy meter based on Hilbert algorithm and sampling method thereof
CN102495250A
Double-input-type digital standard energy meter, detecting system and quantity value source tracing system
CN103558577A
Direct-current watt-hour meter calibrating device
CN105334487A
Industrial frequency current measurement method and device thereof
CN105467200A