Electronic load and switch system testing method
By designing an electronic load including capacitors, functional units, operational amplifiers and power MOS tubes, arbitrary power testing of the port load capacity of the switch system is realized, solving the problem of low accuracy of traditional electronic load testing, improving the test accuracy and Adaptability.
Patent Information
- Application Number
- CN202411017449.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2044-07-29
AI Technical Summary
It is difficult for traditional electronic loads to test the port load capacity of the switch system at any power, and the test accuracy is not high, and the power will deviate from the preset value during the switch system's voltage measurement deviation, affecting the test accuracy.
An electronic load including capacitors, functional units, operational amplifiers, power MOS tubes and controllers is designed. Through digital-to-analog conversion and mode selection control signals, the power and current of the electronic load can be continuously adjustable, and can be at constant power or The target power or current value is provided in constant current mode to ensure the accuracy of the test data.
It realizes any power load test of the port load capacity of the switch system, improves the accuracy of the test, reduces the internal space requirements of the electronic load, reduces the manufacturing cost, and adapts to the different test needs of the switch system.
Smart Images

Figure CN118555259B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic digital data processing, and in particular to a method for testing an electronic load and a switch system. Background Art
[0002] A switch is a network device used for forwarding electrical (optical) signals. Its core function is to provide an exclusive electrical signal path for any two network nodes connected to the switch. With the development of hardware devices in the switch system, the total capacity of the switch system is getting larger and larger, the number of supported ports is increasing, and the port power is also increasing.
[0003] In order to test whether the switch system is compatible with optical modules of different power levels, the port load capacity of the switch system can be tested using an electronic load (E-Load) during the R&D and production stages of the switch system.
[0004] In the related art, the traditional electronic load can simulate loads of different powers by presetting multiple discrete resistance values, so as to test the stability and reliability of the switch system for loads of different powers. Although the traditional electronic load has the advantages of simple principle and easy control to test the port load capacity of the switch system, it can only test the load of discrete power, and it is difficult to test the port load capacity of the switch system for loads of any power. In addition, since the power that the traditional electronic load can provide is provided by the preset resistance value, in the process of the switch system producing and measuring voltage deviation, the power of the traditional electronic load will obviously deviate from the preset value, thereby affecting the accuracy of the switch system test. Summary of the invention
[0005] The present invention provides an electronic load and a switch system testing method, which are used to solve the defects in the prior art that the traditional electronic load is difficult to test the port load capacity of the switch system with a load of any power and the accuracy of testing the switch system is not high, so as to achieve the test of the port load capacity of the switch system with a load of any power and improve the accuracy of testing the switch system.
[0006] The present invention provides an electronic load, comprising: a capacitor, a functional unit, an operational amplifier, a power metal oxide semiconductor field effect transistor (MOS), a current detection resistor and a controller; the input end of the controller is connected to a control module in a switch system to be tested, the output end of the controller is connected to a first input end of the functional unit, the controller is used to generate a first digital signal carrying the target power value when receiving a target power value sent by the control module, and then send the first digital signal to the functional unit; the output end of the functional unit is connected to a positive input end of the operational amplifier, and the functional unit is used to perform digital-to-analog conversion on the first digital signal when receiving the first digital signal. , after converting the first digital signal into a first analog signal corresponding to the target power value, the first analog signal is sent to the operational amplifier; the reverse input end of the operational amplifier is connected to the first end of the resistor module, the output end of the operational amplifier is connected to the first end of the switch tube, and the operational amplifier is used to amplify the first analog signal when receiving the first analog signal so that the power value of the electronic load reaches the target power value; the second end of the switch tube is connected to the first end of the resistor module, the third end of the switch tube and the first end of the capacitor are both connected to the port of the switch system to be tested, and the second end of the capacitor and the second end of the resistor module are both grounded.
[0007] According to an electronic load provided by the present invention, the second input end of the functional unit is connected to the port of the switch system to be tested, the first end of the capacitor and the third end of the switch tube; the controller is also used to generate a second digital signal carrying the target current value when receiving the target power value, the target current value and the mode selection control signal sent by the control module, and send the target power value, the second digital signal and the mode selection control signal to the functional unit, and the mode selection control signal is used to indicate that the operation mode of the electronic load is a constant power mode or a constant current mode; the functional unit is used to generate a signal corresponding to the target power value based on the input voltage value of the second input end of the functional unit and the target power value when receiving the target power value, the second digital signal and the mode selection control signal. The operational amplifier is used to amplify the second analog signal when receiving the second analog signal, so that the power value provided by the electronic load reaches the target power value, and the operational amplifier is also used to amplify the third analog signal when receiving the third analog signal, so that the current value provided by the electronic load reaches the target current value.
[0008] According to an electronic load provided by the present invention, the functional unit includes: a selection module and a digital-to-analog converter; the first input end of the functional unit is the first input end of the selection module, and the second input end of the functional unit is the second input end of the selection module; the output end of the functional unit is the output end of the selection module; the output end of the selection module is connected to the input end of the digital-to-analog converter; the selection module is used to generate a current corresponding to the target power value based on the input voltage value of the second input end of the selection module and the target power value when receiving the target power value, the second digital signal and the mode selection control signal. The digital-to-analog converter is used to perform digital-to-analog conversion on the second digital signal when receiving the second digital signal, and after converting the second digital signal into the second analog signal, send the second analog signal to the operational amplifier; the digital-to-analog converter is also used to perform digital-to-analog conversion on the third digital signal when receiving the third digital signal, and after converting the third digital signal into the third analog signal, send the third analog signal to the operational amplifier.
[0009] According to an electronic load provided by the present invention, the selection module comprises: a divider and a selector; the first input end of the selection module comprises the first input end of the divider, the second input end of the selector and the third input end of the selector, and the second input end of the selection module is the second input end of the divider; the output end of the controller comprises the first output end of the controller, the second output end of the controller and the third output end of the controller, and the output end of the selector is the output end of the selection module; the first output end of the controller is connected to the first input end of the divider, the second output end of the controller is connected to the second input end of the selector, the third output end of the controller is connected to the third input end of the selector, and the first input end of the selector is connected to the output end of the divider; the controller is used to The first input end of the divider sends the target power value to the divider, sends the second digital signal to the selector through the second output end of the controller and the second input end of the selector, and sends the mode selection control signal to the selector through the third output end of the controller and the third input end of the selector; the divider is used to generate a third digital signal carrying a current value corresponding to the target power value based on the input voltage value of the second input end of the functional unit and the target power value when receiving the target power value, and then send the third digital signal to the selector; when the selector receives the third digital signal, the second digital signal and the mode selection control signal, the selector sends the second digital signal or the third digital signal to the digital-to-analog converter in response to the mode selection control signal.
[0010] According to an electronic load provided by the present invention, the selector is specifically used to send the second digital signal to the digital-to-analog converter when it is determined that the mode selection control signal indicates that the operating mode of the electronic load is a constant power mode, and to send the third digital signal to the digital-to-analog converter when it is determined that the mode selection control signal indicates that the operating mode of the electronic load is a constant current mode.
[0011] According to an electronic load provided by the present invention, the functional unit includes: a digital-to-analog converter; the input end of the digital-to-analog converter is the first input end of the functional unit, and the output end of the digital-to-analog converter is the output end of the functional unit.
[0012] According to an electronic load provided by the present invention, the input end of the controller is connected to the control module in the switch system to be tested via a data bus, and the data bus includes an IIC bus.
[0013] According to an electronic load provided by the present invention, the resistor module includes a current detection resistor.
[0014] According to an electronic load provided by the present invention, the controller includes a programmable control module.
[0015] According to an electronic load provided by the present invention, the target power value ranges from 0 to 30W.
[0016] According to an electronic load provided by the present invention, the resistor module includes a plurality of precision resistors connected in parallel.
[0017] According to an electronic load provided by the present invention, the capacitance of the capacitor is less than .
[0018] According to an electronic load provided by the present invention, the switch tube is a power metal oxide semiconductor field effect transistor MOS tube; the first end of the switch tube is the gate of the power MOS tube, the second end of the switch tube is the source of the power MOS tube, and the third end of the switch tube is the drain of the power MOS tube.
[0019] The present invention also provides a switch system testing method implemented based on any of the above-described electronic loads, wherein when the electronic load is connected to a port of the switch system to be tested, the method comprises: upon receiving a target power value sent by a control module in the switch system to be tested, generating a first digital signal carrying the target power value; performing digital-to-analog conversion on the first digital signal, converting the first digital signal into a first analog signal corresponding to the target power value; amplifying the first analog signal so that the power value provided by the electronic load reaches the target power value, so that the control module obtains test data of the port, and then based on the test data, obtaining a port load capacity test result of the switch system to be tested, wherein the test data comprises at least one of power data, current data and voltage data.
[0020] A switch system testing method provided by the present invention also includes: upon receiving the target power value, target current value and mode selection control signal sent by the control module, generating a second digital signal carrying the target current value; based on the output voltage of the port of the switch system to be tested and the target power value, generating a third digital signal carrying the current value corresponding to the target power value; in response to the mode selection control signal, performing digital-to-analog conversion on the second digital signal, converting the second digital signal into a second analog signal corresponding to the current value corresponding to the target power value, and then amplifying the second analog signal so that the power value provided by the electronic load reaches the target power value, or, in response to the mode selection control signal, performing digital-to-analog conversion on the third digital signal, converting the third digital signal into a third analog signal corresponding to the current value corresponding to the target power value, and amplifying the third analog signal so that the current value provided by the electronic load reaches the target current value, so that the control module can obtain the test data of the port, and then based on the test data, obtain the port load capacity test result of the switch system to be tested.
[0021] The electronic load and switch system testing method provided by the present invention include an electronic load, a capacitor, a functional unit, an operational amplifier, a power MOS tube, a resistor and a controller. The control module in the switch system to be tested is connected to the functional unit through the controller. The output end of the functional unit is connected to the positive input end of the operational amplifier, the reverse input end of the operational amplifier is connected to the first end of the resistor module, the output end of the operational amplifier is connected to the first end of the switch tube, the second end of the switch tube is connected to the first end of the resistor module, the third end of the switch tube and the first end of the capacitor are both connected to the port of the switch system to be tested, the second end of the capacitor and the second end of the resistor module are both grounded, and the controller generates a first digital signal carrying the target power value when receiving the target power value sent by the control module, and then sends the first digital signal to the functional unit, so that the functional unit performs digital-to-analog conversion on the first digital signal when receiving the first digital signal, and converts the first digital signal into analog signal. After being converted into a first analog signal corresponding to the target power value, the first analog signal is sent to the operational amplifier. When receiving the first analog signal, the operational amplifier amplifies the first analog signal, thereby making the power value of the electronic load reach the target power value, and the power of the electronic load can be continuously adjustable. The electronic load in the embodiment of the present invention can be used to test the port load capacity of the switch system with any power load, and in the process of the switch system producing and measuring voltage deviation, the above-mentioned electronic load can maintain power stability during the test process, will not affect the test accuracy of the switch system, and can better adapt to various requirements of the switch system port test. Compared with the traditional electronic load, the above-mentioned electronic load has a simple structure, and can realize continuous adjustment of the power of the electronic load without parallel connection of multiple power resistors, which can greatly save the internal space of the electronic load, can better meet the packaging requirements and size requirements of the electronic load, has lower manufacturing costs, and has better market application prospects. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. 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 creative work.
[0023] Figure 1 It is a schematic diagram of the appearance of a traditional electronic load in the related technology.
[0024] Figure 2 It is a circuit diagram of a traditional electronic load in the related art.
[0025] Figure 3 This is one of the circuit schematic diagrams of the electronic load provided by the present invention.
[0026] Figure 4 This is the second circuit schematic diagram of the electronic load provided by the present invention.
[0027] Figure 5 This is the third circuit schematic diagram of the electronic load provided by the present invention.
[0028] Figure 6 This is the fourth circuit diagram of the electronic load provided by the present invention.
[0029] Figure 7 This is the fifth circuit diagram of the electronic load provided by the present invention.
[0030] Figure 8 It is a flow chart of the switch system testing method provided by the present invention.
[0031] Reference numerals:
[0032] 301: electronic load; 302: capacitor; 303: functional unit; 304: operational amplifier; 305: switch tube; 306: resistor module; 307: controller; 308: switch system to be tested; 309: control module in the switch system to be tested; 310: output end of the controller; 311: input end of the controller; 312: first input end of the functional unit; 313: output end of the functional unit; 314: positive input end of the operational amplifier; 315: negative input end of the operational amplifier; 316: first end of the resistor module; 317: output end of the operational amplifier; 318: first end of the switch tube; 319: second end of the switch tube; 320: third end of the switch tube; 321 : The first end of the capacitor; 322: The second end of the capacitor; 323: The second end of the resistor module; 324: The port of the switch system to be tested; 401: The digital-to-analog converter; 501: The second input end of the functional unit; 601: The selection module; 602: The first input end of the selection module; 603: The second input end of the selection module; 701: The divider; 702: The selector; 703: The first input end of the divider; 704: The second input end of the selector; 705: The third input end of the selector; 706: The second input end of the divider; 707: The first output end of the controller; 708: The second output end of the controller; 709: The third output end of the controller; 710: The first input end of the selector. DETAILED DESCRIPTION
[0033] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0034] In the description of the invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0035] In the description of the present application, the terms "first", "second", etc. are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are usually a class, and the number of objects is not limited. For example, the first object can be one or more. In addition, in the description of the present application, "and / or" represents at least one of the connected objects, and the character " / " generally represents that the front and back associated objects are in an "or" relationship.
[0036] It should be noted that Figure 1 This is a schematic diagram of the appearance of a traditional electronic load in the related technology. Figure 1 The traditional electronic load shown is small in size but complex in structure and difficult to design.
[0037] Will Figure 1 Traditional electronic loads are inserted into the ports of switch systems to perform power pull tests on switches. Power pull testing is a test method used to evaluate the performance of a device or system under different load conditions. Power pull testing usually involves gradually increasing the load (such as resistance or power) to observe the response of the device or system, including its stability, efficiency, power output, thermal management, etc.
[0038] Figure 2 It is a circuit diagram of a traditional electronic load in the related art. Figure 2 The solid line frame on the left represents the switch system to be tested. Figure 2 The dashed box on the right side of the figure represents the traditional electronic load.
[0039] like Figure 2 As shown, the switch system to be tested provides I2C communication and power supply for the traditional electronic load. The traditional electronic load can simulate loads of different powers by connecting power resistors of resistance values such as resistor R1, resistor R2, ..., and resistor Rn in parallel. Among them, resistor R1 is connected in series with metal oxide semiconductor field effect transistor MOS1, resistor R2 is connected in series with metal oxide semiconductor field effect transistor MOS2, and so on, resistor Rn is connected in series with metal oxide semiconductor field effect transistor MOSn. The metal oxide semiconductor field effect transistors MOS1, MOS2, ..., and MOSn in the traditional electronic load act as switches.
[0040] The programmable control module in the traditional electronic load can control the channels of the metal oxide semiconductor field effect transistor MOS1, the metal oxide semiconductor field effect transistor MOS2, ..., the metal oxide semiconductor field effect transistor MOSn.
[0041] In traditional electronic loads, the change of power load is achieved by connecting different power resistors. The metal oxide semiconductor field effect transistors in traditional electronic loads operate in the linear region of the metal oxide semiconductor field effect transistor, and the power consumption is negligible.
[0042] After the test starts, the test program of the switch system can communicate with the traditional electronic load through the I2C bus to output the power required to be pulled. The programmable control module in the traditional electronic load can turn on different metal oxide semiconductor field effect transistors based on the control instructions given by the switch system to achieve different load pulling.
[0043] Although the traditional electronic load has the advantages of simple principle and easy control, it can only realize discrete fixed power loads and cannot realize continuously adjustable power level loads because it uses limited power resistor combinations to test the port load capacity of the switch system. Therefore, it can only realize the test of discrete power loads, and it is difficult to test the port load capacity of the switch system with any power load. Among them, in the switch system test, the production test voltage deviation refers to a method of setting the internal DC voltage of the switch to deviate from the normal output voltage range (usually ±5%). This test method is designed to verify the working stability and reliability of the switch system under voltage fluctuations.
[0044] In addition, since the load that a traditional electronic load can provide is provided by a preset resistance value, during the process of voltage deviation in the production and test of the switch system, the input voltage of the traditional electronic load is too high or too low, which will cause the current and power of the traditional electronic load to be too high or too low simultaneously, causing the power of the traditional electronic load to deviate significantly from the preset value, thereby affecting the accuracy of testing the switch system.
[0045] In addition, in order to meet the needs of high-power loads, traditional electronic loads need to connect many power resistors in parallel. However, the package of electronic loads is usually small, and many power resistors connected in parallel need to occupy a large space, which makes it difficult to meet the packaging requirements of electronic loads.
[0046] Therefore, how to use an electronic load to test the port load capacity of a switch system with a load of any power and improve the accuracy of testing the switch system is a technical problem that needs to be solved urgently in the art.
[0047] In this regard, the present invention provides an electronic load. The electronic load provided by the present invention is a constant current type electronic load, which can realize continuous adjustable load, and further optimize the electronic load to a constant power type electronic load, and can realize the mode selection of the constant current type and the constant power type of the electronic load, thereby reducing the number of power resistors in the electronic load, saving space inside the electronic load, and better meeting the packaging requirements of the electronic load.
[0048] Combine the following Figure 3-Figure 7 The electronic load provided by the present invention is described.
[0049] Figure 3 FIG. 1 is one of the circuit diagrams of the electronic load provided by the present invention. The circuit structure of the electronic load provided by the present invention is as follows: Figure 3 As shown. Figure 3 As shown, the electronic load 301 includes: a capacitor 302 , a functional unit 303 , an operational amplifier 304 , a switch tube 305 , a resistor module 306 and a controller 307 .
[0050] The input end 311 of the controller is connected to the control module 309 in the switch system 308 to be tested, and the output end 310 of the controller is connected to the first input end 312 of the functional unit. The controller 307 is used to generate a first digital signal carrying the target power value when receiving the target power value sent by the control module 309, and then send the first digital signal to the functional unit 303.
[0051] The output terminal 313 of the functional unit is connected to the positive input terminal 314 of the operational amplifier. The functional unit 303 is used to perform digital-to-analog conversion on the first digital signal when receiving the first digital signal, and after converting the first digital signal into a first analog signal corresponding to the target power value, send the first analog signal to the operational amplifier 304.
[0052] The reverse input terminal 315 of the operational amplifier is connected to the first terminal 316 of the resistor module, and the output terminal 317 of the operational amplifier is connected to the first terminal 318 of the switch tube. The operational amplifier 304 is used to amplify the first analog signal when receiving the first analog signal so that the power value of the electronic load 301 reaches the target power value.
[0053] The second end 319 of the switch tube is connected to the first end 316 of the resistor module, the third end 320 of the switch tube and the first end 321 of the capacitor are both connected to the port 324 of the switch system to be tested, and the second end 322 of the capacitor and the second end 323 of the resistor module are both grounded.
[0054] Specifically, the switch system 308 to be tested is the test object of the electronic load 301 provided by the present invention. The electronic load 301 provided by the present invention can be used to test the load capacity of the port 324 of the switch system to be tested.
[0055] It is understandable that the switch system 308 to be tested may be determined based on actual requirements. In the embodiment of the present invention, the switch system 308 to be tested is not specifically limited.
[0056] It should be noted that the control module 309 in the switch system 308 under test in the embodiment of the present invention may be a central processing unit (CPU) or a baseboard management controller 307 (BMC) in the switch system 308 under test.
[0057] The third end 320 of the switch tube and the first end 321 of the capacitor are both connected to the positive pin in the port 324 of the switch system to be tested, and the port 324 of the switch system to be tested provides power to the electronic load 301 .
[0058] As an optional embodiment, the switch tube 305 is a power metal oxide semiconductor field effect transistor MOS tube; the first end 318 of the switch tube is the gate of the power MOS tube, the second end 319 of the switch tube is the source of the power MOS tube, and the third end 320 of the switch tube is the drain of the power MOS tube.
[0059] Optionally, the model of the power MOS tube is JMTQ3005A.
[0060] It should be noted that the switch tube 305 in the embodiment of the present invention is the main power consumption point of the electronic load 301, and a MOS tube with large current and high power should be selected. When selecting the switch tube 305, attention should be paid to the threshold voltage, current and voltage-current relationship curve of the MOS tube. In the embodiment of the present invention, a MOS tube of model JMTQ3005A is selected.
[0061] As an optional embodiment, the operational amplifier 304 is a TPA188X series operational amplifier.
[0062] It should be noted that, in the embodiment of the present invention, when selecting the operational amplifier 304, attention should be paid to parameters such as Supply Voltage, Offset Voltage, and Differential Input Voltage, and an operational amplifier of the TPA188X series may be selected.
[0063] As an optional embodiment, the input terminal 311 of the controller is connected to the control module 309 via a data bus, and the data bus includes an IIC bus.
[0064] It should be noted that the IIC bus is a bidirectional two-wire synchronous serial bus. The IIC bus consists of two bidirectional signal lines, where the data line (SDA) is used for data transmission and the clock line (SCL) is used for clock synchronization.
[0065] The target power value in the embodiment of the present invention may be any power value predefined according to the test requirements. The specific value of the target power value is not limited in the embodiment of the present invention.
[0066] As an optional embodiment, the target power value ranges from 0 to 30W.
[0067] It should be noted that, according to the current development of optical modules, the current highest OSFP optical module has a power consumption of 30W. Therefore, in the embodiment of the present invention, the adjustment range of the electronic load 301 is set to 0-30W, that is, the target power value range is 0 to 30W.
[0068] The control module 309 in the switch system 308 to be tested can obtain the target power value in a variety of ways, for example: the control module 309 can obtain the target power value based on the user's input; or the control module 309 can also generate the target power value corresponding to the test requirement based on the test requirement input by the user. The specific way for the switch system 308 to obtain the target power value in the embodiment of the present invention is not limited.
[0069] After the control module 309 obtains the target power value, the target power value may be sent to the controller 307 via the output terminal of the control module 309 , the IIC bus, and the input terminal 311 of the controller.
[0070] When the controller 307 receives the target power value sent by the control module 309 , it can generate a first digital signal carrying the target power value, and then send the first digital signal to the functional unit 303 through the first output terminal of the controller 307 and the first input terminal 312 of the functional unit.
[0071] When receiving the first digital signal, the functional unit 303 performs digital-to-analog conversion on the first digital signal. After converting the first digital signal into a first analog signal corresponding to the target power value, the first analog signal can be sent to the operational amplifier 304 through the output terminal 313 of the functional unit and the positive input terminal 314 of the operational amplifier.
[0072] It should be noted that the voltage at the positive input terminal 314 of the operational amplifier is a reference voltage (Reference Voltage, Vref), and the voltage at the negative input terminal 315 of the operational amplifier is a voltage feedback (Voltage Feedback, Vfb).
[0073] Since the inverting input terminal 315 of the operational amplifier is connected in series with the resistor module 306, it can be seen from the "virtual short" of the operational amplifier 304 that the reference voltage Vref at the positive input terminal 314 of the operational amplifier is equal to the voltage feedback Vfb at the inverting input terminal 315 of the operational amplifier. When the resistor module 306 has a value of R, the current value passing through the resistor module 306 is constant at Vref / R, thereby achieving a constant current value provided by the electronic load 301.
[0074] Among them, "virtual short" means that when the operational amplifier 304 is in a linear state, its two input terminals (the positive input terminal U+ and the negative input terminal U-) can be regarded as equal potential, that is, U+=U-, and this characteristic is called a false short circuit, or virtual short for short. It should be noted that the "virtual short" here is not a real short circuit, but means that the voltage difference between the two input terminals is very small and can be approximated to zero.
[0075] In the embodiment of the present invention, the switch tube 305 is selected as the main power device in the electronic load 301, and the output end of the amplifier is connected to the first end 318 of the switch tube.
[0076] When receiving the first analog signal, the operational amplifier 304 can amplify the first analog signal and output the amplified first analog signal to the resistor module 306 and the switch tube 305 through the output terminal 317 of the operational amplifier, so that the power value provided by the electronic load 301 can reach the target power value.
[0077] As an optional embodiment, the resistor module 306 includes a current detection resistor.
[0078] It should be noted that the current detection resistor, also called the shunt resistor module 306 or the current sensing resistor module 306, is a resistor module 306 used to measure the current in the circuit. The current detection resistor can detect the current value of the current passing through the current detection resistor based on Ohm's law.
[0079] In the embodiment of the present invention, a current detection resistor can be used to detect the current value of the current in the electronic load 301 in real time.
[0080] As an optional embodiment, the accuracy requirement of the current detection resistor is ±1%.
[0081] As an optional embodiment, the resistor module 306 includes a plurality of precision resistors connected in parallel.
[0082] It should be noted that due to long-term conduction, the resistor module 306 will generate a certain amount of heat, and the temperature increase of the resistor module 306 will affect the resistance value of the resistor module 306. Therefore, in order to ensure the accuracy of the current passing through the resistor module 306 in the embodiment of the present invention, the resistance value of the resistor module 306 should be required to change little with temperature, so the resistor module 306 should be a precision resistor with an accuracy requirement of ±1%.
[0083] When the electronic load 301 is pulling a large power consumption, in order to obtain a larger current, the resistance value of the resistor module 306 is required to be small and the power must be large. Therefore, the resistor module 306 can also include multiple parallel precision electronic modules to meet the needs of smaller resistance and larger power.
[0084] As an optional embodiment, the capacitance of capacitor 302 is less than .
[0085] It should be noted that the function of the capacitor 302 in the electronic load 301 is filtering. In order to prevent a large inrush current, the capacitor 302 should be a small capacitor. The capacitance of the capacitor 302 should be within the following.
[0086] As an optional embodiment, the controller 307 includes a programmable control module.
[0087] It should be noted that a programmable control module is an electronic system device that can perform digital operations. The programmable control module uses a programmable memory to store and execute logical operations, sequence control, timing / counting and arithmetic operations, and controls various electronic components through digital or analog input and output interfaces.
[0088] As an optional embodiment, the programmable control module is a single chip microcomputer.
[0089] It should be noted that a single-chip microcomputer, also known as a single-chip microcontroller or MCU (Microcontroller Unit), is an integrated circuit chip. It uses very large-scale integrated circuit technology to integrate a central processing unit (CPU) with data processing capabilities, random access memory (RAM), read-only memory (ROM), multiple I / O ports, interrupt system, timer / counter and other functions (may also include display drive circuit, pulse width modulation circuit, analog multiplexer, A / D converter and other circuits) on a silicon chip to form a small and complete microcomputer system.
[0090] The electronic load in the embodiment of the present invention includes a capacitor, a functional unit, an operational amplifier, a power MOS tube, a resistor and a controller. The control module in the switch system to be tested is connected to the functional unit through the controller. The output end of the functional unit is connected to the positive input end of the operational amplifier, the reverse input end of the operational amplifier is connected to the first end of the resistor module, the output end of the operational amplifier is connected to the first end of the switch tube, the second end of the switch tube is connected to the first end of the resistor module, the third end of the switch tube and the first end of the capacitor are both connected to the port of the switch system to be tested, the second end of the capacitor and the second end of the resistor module are both grounded, and the controller generates a first digital signal carrying the target power value when receiving the target power value sent by the control module, and then sends the first digital signal to the functional unit, so that the functional unit performs digital-to-analog conversion on the first digital signal when receiving the first digital signal, and converts the first digital signal into the target power value. After the corresponding first analog signal is sent, the first analog signal is sent to the operational amplifier. When receiving the first analog signal, the operational amplifier amplifies the first analog signal, thereby making the power value of the electronic load reach the target power value, and the power of the electronic load can be continuously adjustable. The electronic load in the embodiment of the present invention can be used to test the port load capacity of the switch system with any power load, and in the process of the switch system producing and measuring voltage deviation, the above-mentioned electronic load can maintain power stability during the test process, will not affect the test accuracy of the switch system, and can better adapt to various requirements of the switch system port test. Compared with the traditional electronic load, the above-mentioned electronic load has a simple structure and can realize continuous adjustment of the electronic load power without parallel connection of multiple power resistors, which can greatly save the internal space of the electronic load, can better meet the packaging requirements and size requirements of the electronic load, has lower manufacturing costs, and has better market application prospects.
[0091] Figure 4 This is the second circuit diagram of the electronic load provided by the present invention. Figure 4As shown, as an optional embodiment, the functional unit 303 includes: a digital-to-analog converter 401; the input end of the digital-to-analog converter 401 is the first input end 312 of the functional unit, and the output end of the digital-to-analog converter 401 is the output end 313 of the functional unit.
[0092] Specifically, the functional unit 303 in the embodiment of the present invention includes a digital-to-analog converter 401 .
[0093] After receiving the target power value sent by the control module 309 , the controller 307 generates a first digital signal carrying the target power value and can send the first digital signal to the digital-to-analog converter 401 through the first output end of the controller 307 and the input end of the digital-to-analog converter 401 .
[0094] When receiving the first digital signal, the digital-to-analog converter 401 can perform digital-to-analog conversion on the first digital signal. After converting the first digital signal into a first analog signal corresponding to the target power value, the first analog signal can be sent to the operational amplifier 304 through the output terminal 313 of the functional unit and the positive input terminal 314 of the operational amplifier.
[0095] As an optional embodiment, the digital-to-analog converter 401 is a digital-to-analog converter of the DACx0504 series.
[0096] It should be noted that the digital-to-analog converter 401 requires that the power supply voltage should meet the design requirements, the conversion resolution should be high, and the voltage conversion range should be wide. The digital-to-analog converter 401 in the embodiment of the present invention is a digital-to-analog converter of the DACx0504 series.
[0097] Figure 5 FIG. 3 is a circuit diagram of the electronic load provided by the present invention. Figure 5 As shown, as an optional embodiment, the second input terminal 501 of the functional unit is connected to the port 324, the first terminal 321 of the capacitor and the third terminal 320 of the switch tube.
[0098] The controller 307 is also used to generate a second digital signal carrying the target current value upon receiving the target power value, target current value and mode selection control signal sent by the control module 309, and send the target power value, the second digital signal and the mode selection control signal to the functional unit 303. The mode selection control signal is used to indicate that the operating mode of the electronic load 301 is a constant power mode or a constant current mode.
[0099] The functional unit 303 is used to generate a third digital signal carrying a current value corresponding to the target power value based on the input voltage value of the second input terminal 501 of the functional unit and the target power value when receiving the target power value, the second digital signal and the mode selection control signal, and then respond to the mode selection control signal to perform digital-to-analog conversion on the second digital signal, convert the second digital signal into a second analog signal corresponding to the current value corresponding to the target power value, and then send the second analog signal to the operational amplifier 304, or perform digital-to-analog conversion on the third digital signal, convert the third digital signal into a third analog signal corresponding to the current value corresponding to the target power value, and then send the third analog signal to the operational amplifier 304.
[0100] The operational amplifier 304 is used to amplify the second analog signal when receiving the second analog signal so that the power value provided by the electronic load 301 reaches the target power value. The operational amplifier 304 is also used to amplify the third analog signal when receiving the third analog signal so that the current value provided by the electronic load 301 reaches the target current value.
[0101] Specifically, the present invention also provides an electronic load 301 that can select different operation modes. The operation modes of the electronic load 301 can include a constant current mode and a constant power mode.
[0102] The electronic load 301 can provide a continuously adjustable current in the constant current mode, and the current provided by the electronic load 301 is constant during the test. The electronic load 301 can provide a continuously adjustable power in the constant power mode, and the power provided by the electronic load 301 is constant during the test.
[0103] In the embodiment of the present invention, the second input terminal 501 of the functional unit, the third terminal 320 of the switch tube and the first terminal 321 of the capacitor are all connected to the positive pin in the port 324 of the switch system to be tested, and the port 324 of the switch system to be tested provides power for the functional unit 303 and the entire electronic load 301.
[0104] The target current value in the embodiment of the present invention may be any current value predefined according to the test requirements. The specific value of the target current value is not limited in the embodiment of the present invention.
[0105] As an optional embodiment, the target current value ranges from 0 to 12A.
[0106] The embodiment of the present invention considers the range of power consumption load. For a power consumption load of 30W (the maximum value of the target power value), for the JMTQ3005A switch tube 305, based on the voltage-current curve of the switch tube 305, it is determined that the maximum value of the target current value is approximately 12A.
[0107] The control module 309 in the switch system 308 to be tested can obtain the target current value in a variety of ways, for example: the control module 309 can obtain the target current value based on the user's input; or the control module 309 can also generate the target current value corresponding to the test requirement based on the test requirement input by the user. The specific way for the switch system 308 to obtain the target current value is not limited in the embodiment of the present invention.
[0108] The mode selection control signal in the embodiment of the present invention may be generated by the control module 309 in the switch system 308 to be tested based on the user input. The control module 309 in the switch system 308 to be tested may also determine the operating mode of the electronic load 301 that matches the test requirement based on the test requirement input by the user, and then generate a mode selection control signal for instructing the electronic load 301 to execute the above operating mode.
[0109] When the control module 309 obtains the target power value, it can send the target power value to the controller 307 through the output end of the control module 309, the IIC bus and the input end 311 of the controller; when the control module 309 obtains the target current value, it can send the target current value to the controller 307 through the output end of the control module 309, the IIC bus and the input end 311 of the controller; when the control module 309 obtains the mode selection control signal, it can send the mode selection control signal to the controller 307 through the output end of the control module 309, the IIC bus and the input end 311 of the controller.
[0110] It should be noted that the control module 309 in the embodiment of the present invention does not obtain the target power value, target current value and mode selection control signal at the same time. Therefore, the controller 307 in the embodiment of the present invention does not receive the target power value, target current value and mode selection control signal sent by the control module 309 at the same time.
[0111] The controller 307 in the embodiment of the present invention can generate a second digital signal carrying the target current value when receiving the target power value, target current value and mode selection control signal sent by the control module 309, and then can send the above-mentioned second digital signal, target power value and the above-mentioned mode selection control signal to the functional unit 303 through the output terminal 310 of the controller and the first input terminal 312 of the functional unit.
[0112] When receiving the above-mentioned second digital signal, the target power value and the above-mentioned mode selection control signal, the functional unit 303 can calculate the current value corresponding to the target power value through numerical calculation based on the input voltage value of the second input terminal 501 of the functional unit and the target power value, and then generate a third digital signal carrying the current value corresponding to the target power value.
[0113] After the functional unit 303 generates a third digital signal carrying a current value corresponding to the target power value, it can perform digital-to-analog conversion on the second digital signal in response to the mode selection control signal, and convert the second digital signal into a second analog signal corresponding to the current value corresponding to the target power value, and then the second analog signal can be sent to the operational amplifier 304 through the output terminal 313 of the functional unit and the positive input terminal 314 of the operational amplifier.
[0114] After the functional unit 303 generates a third digital signal carrying a current value corresponding to the target power value, it can also perform digital-to-analog conversion on the third digital signal in response to the mode selection control signal, and convert the third digital signal into a third analog signal corresponding to the current value corresponding to the target power value, and then the third analog signal can be sent to the operational amplifier 304 through the output terminal 313 of the functional unit and the positive input terminal 314 of the operational amplifier.
[0115] When receiving the second analog signal, the operational amplifier 304 can amplify the second analog signal and output the amplified second analog signal to the resistor module 306 and the switch tube 305 through the output terminal 317 of the operational amplifier, so that the current value provided by the electronic load 301 can reach the current value corresponding to the target power value, and further the power value provided by the electronic load 301 can reach the target power value.
[0116] When receiving the third analog signal, the operational amplifier 304 can amplify the third analog signal and output the amplified third analog signal to the resistor module 306 and the switch tube 305 through the output terminal 317 of the operational amplifier, so that the current value provided by the electronic load 301 can reach the target current value.
[0117] Figure 6 FIG. 4 is a fourth circuit diagram of the electronic load provided by the present invention. Figure 6 As shown, as an optional embodiment, the functional unit 303 includes: a selection module 601 and a digital-to-analog converter 401; the first input terminal 312 of the functional unit is the first input terminal 602 of the selection module, and the second input terminal 501 of the functional unit is the second input terminal 603 of the selection module; the output terminal 313 of the functional unit is the output terminal of the digital-to-analog converter 401; the output terminal of the selection module 601 is connected to the input terminal of the digital-to-analog converter 401.
[0118] The selection module 601 is used to generate a third digital signal carrying a current value corresponding to the target power value based on the input voltage value of the second input terminal 603 of the selection module and the target power value when receiving the target power value, the second digital signal and the mode selection control signal, and then send the second digital signal or the third digital signal to the digital-to-analog converter 401 in response to the mode selection control signal.
[0119] The digital-to-analog converter 401 is used to perform digital-to-analog conversion on the second digital signal when receiving the second digital signal, and after converting the second digital signal into a second analog signal, send the second analog signal to the operational amplifier 304. The digital-to-analog converter 401 is also used to perform digital-to-analog conversion on the third digital signal when receiving the third digital signal, and after converting the third digital signal into a third analog signal, send the third analog signal to the operational amplifier 304.
[0120] Specifically, the functional unit 303 in the embodiment of the present invention includes a selection module 601 and a digital-to-analog converter 401 .
[0121] When the selection module 601 receives the second digital signal, the target power value and the above-mentioned mode selection control signal sent by the controller 307 through the output terminal 310 of the controller and the first input terminal 602 of the selection module, it can calculate the current value corresponding to the target power value based on the input voltage value of the second input terminal 603 of the selection module and the target power value through numerical calculation, and then generate a third digital signal carrying the current value corresponding to the target power value.
[0122] After the selection module 601 generates the third digital signal carrying the current value corresponding to the target power value, it can select the second digital signal to be sent to the digital-to-analog converter 401 or the third digital signal to be sent to the digital-to-analog converter 401 in response to the mode selection control signal.
[0123] When receiving the second digital signal, the digital-to-analog converter 401 can perform digital-to-analog conversion on the second digital signal, convert the second digital signal into a second analog signal, and then send the second analog signal to the operational amplifier 304, so that the operational amplifier 304 can amplify the second analog signal when receiving the second analog signal, and output the amplified second analog signal to the resistor module 306 and the switch tube 305 through the output terminal 317 of the operational amplifier, so that the current value provided by the electronic load 301 can reach the current value corresponding to the target power value, and then the power value provided by the electronic load 301 can reach the target power value.
[0124] When receiving the third digital signal, the digital-to-analog converter 401 can perform digital-to-analog conversion on the third digital signal, converting the third digital signal into a third analog signal, and then send the third analog signal to the operational amplifier 304, so that the operational amplifier 304 can amplify the third analog signal when receiving the third analog signal, and output the amplified third analog signal to the resistor module 306 and the switch tube 305 through the output terminal 317 of the operational amplifier, so that the current value provided by the electronic load 301 can reach the target current value.
[0125] Figure 7 FIG. 5 is a circuit diagram of the electronic load provided by the present invention. Figure 7 As shown, as an optional embodiment, the selection module 601 includes: a divider 701 and a selector 702; the first input terminal 602 of the selection module includes the first input terminal 703 of the divider, the second input terminal 704 of the selector and the third input terminal 705 of the selector, and the second input terminal 603 of the selection module is the second input terminal 706 of the divider; the output terminal 310 of the controller includes the first output terminal 707 of the controller, the second output terminal 708 of the controller and the third output terminal 709 of the controller, and the output terminal of the selector 702 is the output terminal of the selection module 601.
[0126] The first output terminal 707 of the controller is connected to the first input terminal 703 of the divider, the second output terminal 708 of the controller is connected to the second input terminal 704 of the selector, the third output terminal 709 of the controller is connected to the third input terminal 705 of the selector, and the first input terminal 710 of the selector is connected to the output terminal of the divider 701.
[0127] The controller 307 is used to send the target power value to the divider 701 through the first output terminal 707 of the controller and the first input terminal 703 of the divider, send the second digital signal to the selector 702 through the second output terminal 708 of the controller and the second input terminal 704 of the selector, and send the mode selection control signal to the selector 702 through the third output terminal 709 of the controller and the third input terminal 705 of the selector.
[0128] The divider 701 is used to generate a third digital signal carrying a current value corresponding to the target power value based on the input voltage value of the second input terminal 501 of the functional unit and the target power value when receiving the target power value, and then send the third digital signal to the selector 702.
[0129] When receiving the third digital signal, the second digital signal and the mode selection control signal, the selector 702 sends the second digital signal or the third digital signal to the digital-to-analog converter 401 in response to the mode selection control signal.
[0130] Specifically, the selection module 601 in the embodiment of the present invention includes a divider 701 and a selector 702. The divider 701 is a circuit or device for performing a division operation. The selector 702 is a logic circuit that can select one of two input signals for output according to a control signal.
[0131] When the divider 701 receives the target power value sent by the controller 307 through the first output terminal 707 of the controller and the first input terminal 703 of the divider, the divider 701 can calculate the quotient of the target power value and the input voltage value of the second input terminal 706 of the divider as the current value corresponding to the target power value, and then generate a third digital signal carrying the current value corresponding to the target power value, and send the above-mentioned third digital signal to the selector 702 through the output terminal of the divider 701 and the first input terminal 710 of the selector.
[0132] Upon receiving the third digital signal sent by the divider 701, the second digital signal sent by the controller 307 through the second output terminal 708 of the controller and the second input terminal 704 of the selector, and the mode selection control signal sent by the controller 307 through the third output terminal 709 of the controller and the third input terminal 705 of the selector, the selector 702 can, in response to the mode selection control signal, choose to send the second digital signal to the digital-to-analog converter 401, or choose to send the third digital signal to the digital-to-analog converter 401.
[0133] As an optional embodiment, the selector 702 is specifically used to send the second digital signal to the digital-to-analog converter 401 when it is determined that the mode selection control signal indicates that the operating mode of the electronic load 301 is the constant power mode, and to send the third digital signal to the digital-to-analog converter 401 when it is determined that the mode selection control signal indicates that the operating mode of the electronic load 301 is the constant current mode.
[0134] Specifically, when the selector 702 receives the second digital signal, the third digital signal and the mode selection control signal, if it is determined that the mode selection control signal indicates that the operating mode of the electronic load 301 is the constant power mode, the second digital signal can be sent to the digital-to-analog converter 401, so that the digital-to-analog converter 401 can perform digital-to-analog conversion on the second digital signal when receiving the second digital signal, and convert the second digital signal into a second analog signal, and then send the second analog signal to the operational amplifier 304, so that the operational amplifier 304 can amplify the second analog signal when receiving the second analog signal, and output the amplified second analog signal to the resistor module 306 and the switch tube 305 through the output terminal 317 of the operational amplifier, so that the current value provided by the electronic load 301 can reach the current value corresponding to the target power value, and then the power value provided by the electronic load 301 can reach the target power value.
[0135] When the selector 702 receives the second digital signal, the third digital signal and the mode selection control signal, if it is determined that the mode selection control signal indicates that the operation mode of the electronic load 301 is the constant current mode, the third digital signal can be sent to the digital-to-analog converter 401, so that the digital-to-analog converter 401 can perform digital-to-analog conversion on the third digital signal and convert the third digital signal into a third analog signal when receiving the third digital signal, and then the third analog signal can be sent to the operational amplifier 304, so that the operational amplifier 304 can amplify the third analog signal when receiving the third analog signal, and output the amplified third analog signal to the resistor module 306 and the switch tube 305 through the output terminal 317 of the operational amplifier, so that the current value provided by the electronic load 301 can reach the target current value.
[0136] Optionally, the model of the divider 701 in the embodiment of the present invention may be CD4020B.
[0137] Optionally, the selector 702 in the embodiment of the present invention is a two-to-one selector, and the model of the selector 702 may be AiP74LVC1G3157GC363.TR.
[0138] In the electronic load of the embodiment of the present invention, the second input end of the functional unit is connected to the port of the switch system to be tested, the first end of the capacitor and the third end of the switch tube. When the controller receives the target power value, the target current value and the mode selection control signal sent by the control module, it generates a second digital signal carrying the target current value, and sends the target power value, the second digital signal and the mode selection control signal to the functional unit, so that when the functional unit receives the target power value, the second digital signal and the mode selection control signal, it generates a third digital signal carrying the current value corresponding to the target power value based on the input voltage value and the target power value of the second input end of the functional unit, and then performs digital-to-analog conversion on the second digital signal in response to the mode selection control signal, and converts the second digital signal into a third digital signal corresponding to the current value corresponding to the target power value. After the second analog signal is transmitted, the second analog signal is sent to the operational amplifier, or the third digital signal is digital-to-analog converted, and after the third digital signal is converted into a third analog signal corresponding to the current value corresponding to the target power value, the third analog signal is sent to the operational amplifier. The electronic load in the embodiment of the present invention can switch different operating modes according to test requirements. The above-mentioned electronic load can provide continuously adjustable power in constant power mode, and keep the provided power value constant during the test. The above-mentioned electronic load can also provide continuously adjustable current in constant current mode, and keep the provided current value constant during the test, which can better meet the different test requirements of the switch system port. The above-mentioned electronic load has a simple structure, can better meet the packaging requirements and size requirements of the electronic load, has a lower manufacturing cost, and has a better market application prospect.
[0139] Based on the contents of the above embodiments, the present invention further provides a switch system testing method. The switch system testing method provided by the present invention is implemented based on the electronic load 301 described above. Figure 8 FIG. 1 is a flow chart of the switch system testing method provided by the present invention, such as Figure 8 As shown, when the electronic load 301 is connected to the port 324 of the switch system under test, the method includes the following: Step 801, when receiving the target power value sent by the control module 309 in the switch system under test 308, generate a first digital signal carrying the target power value.
[0140] Step 802: Perform digital-to-analog conversion on the first digital signal to convert the first digital signal into a first analog signal corresponding to the target power value.
[0141] Step 803, amplify the first analog signal so that the power value provided by the electronic load 301 reaches the target power value, so that the control module 309 obtains the test data of the port 324, and then obtains the port load capacity test result of the switch system 308 to be tested based on the test data, and the test data includes at least one of power data, current data and voltage data.
[0142] It should be noted that the execution subject of the embodiment of the present invention is an electronic load.
[0143] It should be noted that, in the embodiment of the present invention, when the electronic load 301 is connected to a port in the switch system to be tested, the specific steps of the electronic load 301 providing the target power value can refer to the contents of the above embodiments, which will not be repeated in the embodiment of the present invention.
[0144] The control module 309 may obtain the test data of the port 324 in a variety of ways, for example, by using a current sensor, a voltage sensor, and a power sensor to obtain the test data.
[0145] After the control module 309 obtains the test data of the port 324, it can obtain the port load capacity test result of the switch system 308 to be tested through numerical calculation, mathematical statistics, conditional judgment and deep learning technology.
[0146] The embodiment of the present invention utilizes the electronic load provided by the present invention to test the port load capacity of the switch system with any power load, and in the process of the switch system producing and testing voltage deviation, the above-mentioned electronic load can maintain power stability during the test process, will not affect the test accuracy of the switch system, and can better adapt to various requirements of the switch system port test.
[0147] As an optional embodiment, the switch system testing method further includes: upon receiving the target power value, the target current value and the mode selection control signal sent by the control module 309 , generating a second digital signal carrying the target current value.
[0148] Based on the output voltage of the port 324 of the switch system to be tested and the target power value, a third digital signal carrying a current value corresponding to the target power value is generated.
[0149] In response to the mode selection control signal, the second digital signal is digital-to-analog converted, and the second digital signal is converted into a second analog signal corresponding to the current value corresponding to the target power value, and then the second analog signal is amplified, so that the power value provided by the electronic load 301 reaches the target power value, or, in response to the mode selection control signal, the third digital signal is digital-to-analog converted, and the third digital signal is converted into a third analog signal corresponding to the current value corresponding to the target power value, and the third analog signal is amplified, so that the current value provided by the electronic load 301 reaches the target current value, so that the control module 309 can obtain the test data of the port 324, and then based on the test data, obtain the port load capacity test result of the switch system 308 to be tested.
[0150] It should be noted that, in the embodiment of the present invention, when the electronic load 301 is connected to the port in the switch system to be tested, the specific steps of the electronic load 301 switching different operating modes to provide the target power value or the target current value can be referred to the contents of the above embodiments, which will not be repeated in the embodiment of the present invention.
[0151] The embodiment of the present invention utilizes the electronic load provided by the present invention to implement a test of the load capacity of the switch system port under the condition that the power value or the current value of the electronic load is constant according to actual needs, and can test the load capacity of the switch system port with any power or any current load. In addition, in the process of the switch system producing and measuring voltage deviation, the above-mentioned electronic load can maintain power stability or current temperature during the test, will not affect the test accuracy of the switch system, and can better meet the different test requirements of the switch system port.
[0152] 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 embodiments of the present invention.
Claims
1. An electronic load, It is characterized in that include: Capacitors, functional units, operational amplifiers, switch tubes, resistor modules and controllers; The input end of the controller is connected to the control module in the switch system to be tested, and the output end of the controller is connected to the first input end of the functional unit. The controller is used to generate a first digital signal carrying the target power value when receiving the target power value sent by the control module, and then send the first digital signal to the functional unit; The output end of the functional unit is connected to the positive input end of the operational amplifier. The functional unit is used to perform digital-to-analog conversion on the first digital signal when receiving the first digital signal, convert the first digital signal into a first analog signal corresponding to the target power value, and then send the first analog signal to the operational amplifier; The inverting input terminal of the operational amplifier is connected to the first terminal of the resistor module, and the output terminal of the operational amplifier is connected to the first terminal of the switch tube. The operational amplifier is used to amplify the first analog signal when receiving the first analog signal, so that the power value of the electronic load reaches the target power value; The second end of the switch tube is connected to the first end of the resistor module, the third end of the switch tube and the first end of the capacitor are both connected to the port of the switch system to be tested, the second end of the capacitor and the second end of the resistor module are both grounded, and the on-off between the second end of the switch tube and the third end of the switch tube is determined based on the input voltage of the first end of the switch tube; The second input end of the functional unit is connected to the port of the switch system to be tested, the first end of the capacitor and the third end of the switch tube; The controller is further configured to generate a second digital signal carrying the target current value upon receiving the target power value, the target current value and the mode selection control signal sent by the control module, and send the target power value, the second digital signal and the mode selection control signal to the functional unit, wherein the mode selection control signal is used to indicate that the operation mode of the electronic load is a constant power mode or a constant current mode; The functional unit is configured to, upon receiving the target power value, the second digital signal and the mode selection control signal, generate a third digital signal carrying a current value corresponding to the target power value based on an input voltage value of a second input terminal of the functional unit and the target power value, and then, in response to the mode selection control signal, perform digital-to-analog conversion on the second digital signal, convert the second digital signal into a second analog signal corresponding to the current value corresponding to the target power value, and then send the second analog signal to the operational amplifier, or perform digital-to-analog conversion on the third digital signal, convert the third digital signal into a third analog signal corresponding to the current value corresponding to the target power value, and then send the third analog signal to the operational amplifier; The operational amplifier is used to amplify the second analog signal when receiving the second analog signal so that the power value provided by the electronic load reaches the target power value. The operational amplifier is also used to amplify the third analog signal when receiving the third analog signal so that the current value provided by the electronic load reaches the target current value. The functional unit comprises: a selection module and a digital-to-analog converter; the first input end of the functional unit is the first input end of the selection module, the second input end of the functional unit is the second input end of the selection module; the output end of the functional unit is the output end of the selection module; the output end of the selection module is connected to the input end of the digital-to-analog converter; The selection module is configured to generate a third digital signal carrying a current value corresponding to the target power value based on an input voltage value of a second input terminal of the selection module and the target power value when receiving the target power value, the second digital signal and the mode selection control signal, and then send the second digital signal or the third digital signal to the digital-to-analog converter in response to the mode selection control signal; The digital-to-analog converter is used to perform digital-to-analog conversion on the second digital signal when the second digital signal is received, and after converting the second digital signal into the second analog signal, send the second analog signal to the operational amplifier; the digital-to-analog converter is also used to perform digital-to-analog conversion on the third digital signal when the third digital signal is received, and after converting the third digital signal into the third analog signal, send the third analog signal to the operational amplifier; The selection module comprises: a divider and a selector; the first input end of the selection module comprises the first input end of the divider, the second input end of the selector and the third input end of the selector, and the second input end of the selection module is the second input end of the divider; the output end of the controller comprises the first output end of the controller, the second output end of the controller and the third output end of the controller, and the output end of the selector is the output end of the selection module; The first output terminal of the controller is connected to the first input terminal of the divider, the second output terminal of the controller is connected to the second input terminal of the selector, the third output terminal of the controller is connected to the third input terminal of the selector, and the first input terminal of the selector is connected to the output terminal of the divider; The controller is used to send the target power value to the divider through the first output terminal of the controller and the first input terminal of the divider, send the second digital signal to the selector through the second output terminal of the controller and the second input terminal of the selector, and send the mode selection control signal to the selector through the third output terminal of the controller and the third input terminal of the selector; The divider is used for, when receiving the target power value, generating a third digital signal carrying a current value corresponding to the target power value based on the input voltage value of the second input terminal of the functional unit and the target power value, and then sending the third digital signal to the selector; The selector, upon receiving the third digital signal, the second digital signal and the mode selection control signal, sends the second digital signal or the third digital signal to the digital-to-analog converter in response to the mode selection control signal; The selector is specifically used to send the second digital signal to the digital-to-analog converter when it is determined that the mode selection control signal indicates that the operating mode of the electronic load is a constant power mode, and to send the third digital signal to the digital-to-analog converter when it is determined that the mode selection control signal indicates that the operating mode of the electronic load is a constant current mode.
2. The electronic load according to claim 1, It is characterized in that The functional unit comprises: a digital-to-analog converter; the input end of the digital-to-analog converter is the first input end of the functional unit, and the output end of the digital-to-analog converter is the output end of the functional unit.
3. The electronic load according to claim 1, It is characterized in that The input end of the controller is connected to the control module in the switch system to be tested via a data bus, and the data bus includes an IIC bus.
4. The electronic load according to claim 1, It is characterized in that The resistor module includes a current detection resistor.
5. The electronic load according to claim 1, It is characterized in that The resistor module includes a plurality of precision resistors connected in parallel.
6. The electronic load according to claim 1, It is characterized in that The controller includes a programmable control module.
7. The electronic load according to claim 1, It is characterized in that The capacitance of the capacitor is less than .
8. The electronic load according to claim 1, It is characterized in that The target power value ranges from 0 to 30W.
9. The electronic load according to any one of claims 1 to 8, It is characterized in that The switch tube is a power metal oxide semiconductor field effect transistor (MOS) tube; the first end of the switch tube is the gate of the power MOS tube, the second end of the switch tube is the source of the power MOS tube, and the third end of the switch tube is the drain of the power MOS tube.
10. A switch system testing method based on the electronic load according to any one of claims 1 to 9, It is characterized in that In the case where the electronic load is connected to a port of the switch system to be tested, the method includes: Upon receiving the target power value sent by the control module in the switch system to be tested, generating a first digital signal carrying the target power value; Performing digital-to-analog conversion on the first digital signal, converting the first digital signal into a first analog signal corresponding to the target power value; Amplify the first analog signal so that the power value provided by the electronic load reaches the target power value, so that the control module can obtain the test data of the port, and then obtain the port load capacity test result of the switch system to be tested based on the test data, wherein the test data includes at least one of power data, current data and voltage data.
11. The switch system testing method according to claim 10, It is characterized in that Also includes: Upon receiving the target power value, the target current value and the mode selection control signal sent by the control module, generating a second digital signal carrying the target current value; generating a third digital signal carrying a current value corresponding to the target power value based on the output voltage of the port of the switch system to be tested and the target power value; In response to the mode selection control signal, the second digital signal is digital-to-analog converted, and the second digital signal is converted into a second analog signal corresponding to the current value corresponding to the target power value, and then the second analog signal is amplified, so that the power value provided by the electronic load reaches the target power value, or, in response to the mode selection control signal, the third digital signal is digital-to-analog converted, and the third digital signal is converted into a third analog signal corresponding to the current value corresponding to the target power value, and the third analog signal is amplified, so that the current value provided by the electronic load reaches the target current value, so that the control module can obtain the test data of the port, and then based on the test data, obtain the port load capacity test result of the switch system to be tested.
