Method, device and system for intelligent power distribution test of controller, and electronic equipment
Through the test case of loading and executing the intelligent distribution channel of the controller, and testing in different voltage modes, the problem of low manual testing efficiency and poor accuracy in existing technologies has been solved, and automatic testing and testing of intelligent distribution channels are realized Standard unity.
Patent Information
- Application Number
- CN202310922402.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-25
- Publication Date
- 2025-01-28
Smart Images

Figure CN119376365A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of vehicle technology, and in particular to a method and device, system, and electronic equipment for intelligent power distribution testing of a controller. Background Art
[0002] As the level of vehicle intelligence increases, more and more vehicles are using intelligent power distribution solutions, either implementing all intelligent power distribution functions by independent controllers or integrating intelligent power distribution functions into regional controllers. Currently, the intelligent power distribution function of controllers is mainly tested manually by developers. There is no unified rule for each test standard, which will affect the accuracy of the test. Summary of the invention
[0003] The present disclosure provides a method, device, system, and electronic device for testing intelligent power distribution of a controller, the main purpose of which is to realize automatic testing of intelligent power distribution channels in the controller.
[0004] According to a first aspect of the present disclosure, a method for intelligent power distribution testing of a controller is provided, comprising:
[0005] Load the test cases corresponding to the intelligent power distribution channels in the controller;
[0006] Based on the voltage mode in the test case, setting the operating voltage of the controller;
[0007] Under different voltage modes of the controller respectively, the intelligent power distribution channel is tested based on the test sub-cases in the test case, and different test sub-cases correspond to different working conditions under the intelligent power distribution channel.
[0008] Optionally, before loading the test case corresponding to the intelligent power distribution channel in the controller, the method further includes:
[0009] The test case is generated based on the load characteristics in the intelligent power distribution channel.
[0010] Optionally, setting the operating voltage of the controller based on the voltage mode in the test case includes:
[0011] The operating voltage of the controller corresponding to the voltage mode is set respectively, wherein the voltage mode includes at least one of a rated voltage mode, an overvoltage mode and an undervoltage mode.
[0012] Optionally, the testing the intelligent power distribution channel based on the test sub-cases in the test case under different voltage modes of the controller respectively includes:
[0013] Controlling the controller to work under different voltage modes of the controller respectively;
[0014] The intelligent power distribution channel is tested based on the test sub-cases in the test case, wherein the test sub-cases include at least one of a rated current test, a peak current test, a short-time thermal shock test, an overcurrent protection test, a short-circuit protection test, and a fault diagnosis test.
[0015] Optionally, the testing the intelligent power distribution channel based on the test sub-cases in the test case under different voltage modes of the controller respectively further includes:
[0016] Controlling the controller to sleep in different voltage modes of the controller respectively;
[0017] The intelligent power distribution channel is tested based on the test sub-case in the test case, wherein the test sub-case also includes at least one of a bypass function test and a reverse wake-up test.
[0018] Optionally, after testing the intelligent power distribution channel based on the test sub-cases in the test case in different voltage modes of the controller, the method further includes:
[0019] Determine whether the controller is tested in the current voltage mode;
[0020] When the controller completes the test in the current voltage mode, switching to a different voltage mode and setting a corresponding operating voltage;
[0021] Based on the reset working voltage, the intelligent power distribution channel is tested according to the test sub-cases in the test case until the test is completed in all voltage modes.
[0022] According to a second aspect of the present disclosure, a device for intelligent power distribution testing of a controller is provided, comprising:
[0023] A loading unit, used to load the test cases corresponding to the intelligent power distribution channels in the controller;
[0024] A setting unit, configured to set the operating voltage of the controller based on the voltage mode in the test case;
[0025] The first test unit is used to test the intelligent power distribution channel under different voltage modes of the controller based on the test sub-cases in the test case, and different test sub-cases correspond to different working conditions of the intelligent power distribution channel.
[0026] Optionally, the device further comprises:
[0027] A generating unit is used to generate the test case based on the load characteristics in the intelligent power distribution channel before loading the test case corresponding to the intelligent power distribution channel in the controller.
[0028] Optionally, the setting unit is further used for:
[0029] The operating voltage of the controller corresponding to the voltage mode is set respectively, wherein the voltage mode includes at least one of a rated voltage mode, an overvoltage mode and an undervoltage mode.
[0030] Optionally, the first testing unit includes:
[0031] A first control module, used for controlling the controller to work in different voltage modes of the controller respectively;
[0032] The first test module is used to test the intelligent distribution channel based on the test sub-cases in the test case, wherein the test sub-cases include at least one of a rated current test, a peak current test, a short-time thermal shock test, an overcurrent protection test, a short-circuit protection test, and a fault diagnosis test.
[0033] Optionally, the first testing unit further includes:
[0034] A second control module, used for controlling the controller to sleep in different voltage modes of the controller respectively;
[0035] The second test module is used to test the intelligent power distribution channel based on the test sub-case in the test case, wherein the test sub-case also includes at least one of a bypass function test and a reverse wake-up test.
[0036] Optionally, the device further comprises:
[0037] A determination unit, configured to determine whether the controller is tested in a current voltage mode after testing the intelligent power distribution channel based on the test sub-cases in the test case under different voltage modes of the controller respectively;
[0038] A switching unit, used to switch to a different voltage mode and set a corresponding operating voltage when the controller completes the test in the current voltage mode;
[0039] The second test unit is used to test the intelligent power distribution channel according to the test sub-cases in the test case based on the reset working voltage until the test is completed in all voltage modes.
[0040] According to a third aspect of the present disclosure, there is provided a system for intelligent power distribution testing of a controller, comprising: a test host, a test unit, a communication unit and a programmable power supply;
[0041] The test host is respectively connected to one end of the test unit, one end of the communication unit and one end of the programmable power supply; the other end of the test unit, the other end of the programmable power supply and the other end of the communication unit are connected to the controller under test;
[0042] The test host is used to load test cases and control the test unit, the communication unit and the programmable power supply to test the controller under test and generate a test report; the test unit is used to simulate the load and / or different working conditions of the intelligent power distribution channel of the controller under test according to the instructions of the test host; the programmable power supply is used to power the controller under test; and the communication unit is used to obtain the test results of the controller under test.
[0043] According to a fourth aspect of the present disclosure, there is provided an electronic device, including:
[0044] at least one processor; and
[0045] a memory communicatively connected to the at least one processor; wherein,
[0046] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect.
[0047] According to a fifth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method described in the first aspect.
[0048] According to a sixth aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the method described in the first aspect is implemented.
[0049] The present disclosure provides a method, device, system, and electronic device for testing the intelligent power distribution of a controller, which loads a test case corresponding to the intelligent power distribution channel in the controller; sets the operating voltage of the controller based on the voltage mode in the test case; and tests the intelligent power distribution channel based on the test sub-cases in the test case under different voltage modes of the controller, wherein different test sub-cases correspond to different working conditions under the intelligent power distribution channel. Compared with the related art, the embodiment of the present disclosure realizes automatic testing of the intelligent power distribution channel under different working conditions by configuring the test configuration of the intelligent power distribution channel under different working conditions as a test case. It is possible to achieve the unification of test standards, thereby improving the accuracy of the test.
[0050] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0052] Figure 1 A schematic diagram of a system for intelligent power distribution testing of a controller provided by an embodiment of the present disclosure;
[0053] Figure 2 A schematic diagram of another controller intelligent power distribution test system provided by an embodiment of the present disclosure;
[0054] Figure 3 A flowchart of a method for intelligent power distribution testing of a controller provided in an embodiment of the present disclosure;
[0055] Figure 4 A flowchart of another method for intelligent power distribution testing of a controller provided by an embodiment of the present disclosure;
[0056] Figure 5 A schematic diagram of a process of intelligent power distribution testing provided by an embodiment of the present disclosure;
[0057] Figure 6 A schematic diagram of the structure of a device for intelligent power distribution testing of a controller provided in an embodiment of the present disclosure;
[0058] Figure 7 A schematic diagram of the structure of another device for intelligent power distribution testing of a controller provided in an embodiment of the present disclosure;
[0059] Figure 8 A schematic block diagram of an exemplary electronic device provided for an embodiment of the present disclosure. DETAILED DESCRIPTION
[0060] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0061] With the improvement of vehicle intelligence, more and more vehicles have adopted intelligent power distribution solutions, either implementing all intelligent power distribution functions by independent controllers, or integrating intelligent power distribution functions into regional controllers. At present, the intelligent power distribution function test of the controller is mainly done manually by developers. Manual testing has the following disadvantages: low test coverage, unable to test all scenarios and abnormal conditions; low test accuracy, unable to accurately reflect real data; low test efficiency, setting up the environment and manually adjusting parameters takes a lot of time; high test cost, requiring a lot of manpower costs, etc. Therefore, it is necessary to realize automatic testing of the intelligent power distribution function of the controller.
[0062] The following describes the method, device, system, and electronic device for intelligent power distribution testing of a controller according to an embodiment of the present disclosure with reference to the accompanying drawings.
[0063] Figure 1 A schematic diagram of a system for intelligent power distribution testing of a controller provided by an embodiment of the present disclosure, such as Figure 1 As shown, it includes: a test host 11, a test unit 12, a communication unit 13 and a programmable power supply 14.
[0064] The test host 11 is respectively connected to one end of the test unit 12, one end of the communication unit 13 and one end of the programmable power supply 14; the other end of the test unit 12, the other end of the programmable power supply 14 and the other end of the communication unit 13 are connected to the controller under test.
[0065] The test host 11 is used to load test cases and control the test unit 12, the communication unit 13 and the programmable power supply 14 to test the controller under test and generate a test report; the test unit 12 is used to simulate the load and / or different working conditions of the intelligent power distribution channel of the controller under test according to the instructions of the test host 11; the programmable power supply 14 is used to supply power to the controller under test; the communication unit 13 is used to obtain the test results of the controller under test.
[0066] In the embodiment of the present disclosure, the test host 11 can be composed of an industrial computer, for example, which is not limited by the embodiment of the present disclosure; the test host 11 is used to import test cases, test other units in the control system, and generate test reports. The test unit 12 is used to simulate the load of the intelligent power distribution channel, realize the short-circuit simulation of the intelligent power distribution channel, and simulate the fault condition of the intelligent power distribution channel. The communication unit 13 is used to send control instructions sent by the test host 11 to the controller under test, and receive diagnostic information returned by the controller under test. The programmable power supply 14 is used to supply power to the controller under test. The programmable power supply 14 can be controlled by the test host 11 to adjust the output voltage and output current, thereby realizing the test of intelligent power distribution within the full voltage range.
[0067] As an implementable manner of the present disclosure, the test unit 12 includes an electronic load module 121 , a short circuit test module 122 , a fault injection module 123 , a power switching module 124 and a connector 125 .
[0068] One end of the electronic load module 121 and the short circuit test module 122 is connected to the test host 11, and the other end is connected to the fault injection module 123; the fault injection module 123 is respectively connected to the test host 11 and the power switching module 124; the power switching module 124 is respectively connected to the test host 11 and the connector 125.
[0069] The electronic load module 121 is used to simulate the load of the controller under test; the short-circuit test module 122 is used to test the short-circuit output of the controller under test; the fault injection module 123 is used to simulate different fault modes, wherein the fault modes include at least one of open circuit of load, short circuit to ground and short circuit to power supply; the power switching module 124 is used to switch the switching of different intelligent power distribution channels; the connector 125 is used to connect to the controller under test.
[0070] In the embodiments of the present disclosure, Figure 2As shown, the electronic load module 121 is used to simulate the actual load of the intelligent distribution channel, and the relevant load characteristics are entered through the test host 11. The relevant load characteristics can be, for example, the change of the load current over time, and the volt-ampere characteristics, etc., which are not limited by the present disclosure; the relevant parameters of the electronic load module 121 are controlled by the test host 11, and the relevant parameters can be, for example, load current, switching time and other parameters, which are not limited by the present disclosure. The short-circuit test module 122 is used to test the shutdown ability of the intelligent distribution channel when the output is short-circuited to the ground, for example, the short-circuit resistance, short-circuit time and other parameters can be configured, which are not limited by the present disclosure. The fault injection module 123 can be, for example, composed of a programmable relay card, which is not limited by the present disclosure; it is used to simulate the open circuit, short circuit to power supply, and short circuit to ground fault modes of the load. The power switching module 124 can be, for example, composed of a programmable relay card, which is not limited by the present disclosure; it is used to switch different intelligent distribution channels when testing.
[0071] The system using the controller intelligent power distribution test can perform the following four tests on the intelligent power distribution channel:
[0072] 1. Normal working test:
[0073] a Rated current test: the electronic load module 121 configures the load current according to the rated current carrying capacity of the corresponding intelligent distribution channel, reads the diagnostic information and the recovered current value through the communication interface of the communication unit 13, and then determines whether the intelligent distribution channel works normally under the rated current.
[0074] b Peak current test: the electronic load module 121 configures the load current according to the peak current carrying capacity of the corresponding intelligent distribution channel, reads the diagnostic information and the recovered current value through the communication interface of the communication unit 13, and then determines whether the intelligent distribution channel works normally under the peak current.
[0075] C bypass function test (bypass current) test, enable the controller to enter the sleep state, the electronic load module 121 configures the load current according to the bypass current capacity of the corresponding intelligent distribution channel, and then checks whether the bypass output of the intelligent distribution channel meets the requirements.
[0076] 2. Protection function test:
[0077] A short-time thermal shock (I2t protection) test, the electronic load module 121 configures the load current according to the I2t curve of the corresponding intelligent distribution channel, reads the diagnostic information through the communication interface of the communication unit 13, and then determines whether the I2t protection function of the intelligent distribution channel is normal.
[0078] B. Overcurrent protection test: the electronic load module 121 configures the load current according to the current protection threshold of the corresponding intelligent distribution channel, reads the diagnostic information through the communication interface of the communication unit 13, and then determines whether the overcurrent protection function of the intelligent distribution channel is normal.
[0079] C short-circuit protection test, the fault injection module 123 sets the short-circuit resistance and the short-circuit time, and then confirms the hardware status and diagnostic information of the intelligent power distribution channel.
[0080] 3. Fault diagnosis test:
[0081] a. Load open circuit test: a load open circuit fault is created by the fault injection module 123, and the communication interface reads the diagnostic status to confirm whether the load open circuit diagnostic function of the intelligent power distribution channel is normal.
[0082] b Short-circuit to ground test: a short-circuit to ground fault is created through the fault injection module, and the diagnostic status is read through the communication interface of the communication unit 13 to confirm whether the short-circuit to ground diagnostic function of the intelligent distribution channel is normal.
[0083] c Short circuit to power supply test: a short circuit to power supply fault is created through the fault injection module 123, and the diagnostic status is read through the communication interface of the communication unit 13 to confirm whether the short circuit to power supply diagnostic function of the intelligent power distribution channel is normal.
[0084] 4 Reverse wake-up function test: enable the controller to enter the sleep state, the electronic load module 121 configures the current load current according to the corresponding intelligent distribution channel wake-up threshold, and then checks whether the reverse wake-up function of the controller is normal.
[0085] Figure 3 A flowchart of a method for intelligent power distribution testing of a controller provided in an embodiment of the present disclosure.
[0086] like Figure 3 As shown, the method comprises the following steps:
[0087] Step 201, loading the test case corresponding to the intelligent power distribution channel in the controller.
[0088] Smart power distribution is the intelligent distribution of load power according to load requirements or power status. It can also realize data monitoring and diagnosis of load power distribution. It is usually implemented by electronic fuse (Efuse) chip or discrete sampling circuit + field effect transistor (MOSFET).
[0089] In the embodiments of the present disclosure, the intelligent power distribution channel is a circuit in the controller that implements intelligent power distribution, for example, it can be a combination of a discrete sampling circuit and a MOSFET; the present disclosure is not limited to this. Different test cases are generated according to the differences in the intelligent power distribution channels in different controllers.
[0090] Step 202: Setting the operating voltage of the controller based on the voltage mode in the test case.
[0091] In the embodiments of the present disclosure, if the power supply is unstable, the controller cannot operate at the rated voltage. Therefore, by testing the operating conditions of the controller under different voltage modes, the operating data of the controller under extreme working conditions can be obtained. The controller can be optimized and designed based on the data obtained from the test. After loading the test case, the operating voltage of the controller needs to be set first to measure the measurement data of the controller under different voltage modes.
[0092] Step 203 , testing the intelligent power distribution channel based on the test sub-cases in the test case under different voltage modes of the controller, respectively, where different test sub-cases correspond to different working conditions of the intelligent power distribution channel.
[0093] In the embodiments of the present disclosure, after setting the working voltage according to the voltage mode, the test of the intelligent power distribution channel under different working conditions is implemented according to the test sub-cases in the test case; the test under different working conditions can be a simulation test under normal working conditions of the load of the intelligent power distribution channel, such as: a test under rated current; or a fault simulation test of the intelligent power distribution channel, such as: a short circuit to ground test, etc. It should be noted that the present disclosure does not limit the test sub-cases.
[0094] The present disclosure provides a method for testing the intelligent power distribution of a controller, which includes loading a test case corresponding to an intelligent power distribution channel in the controller; setting the operating voltage of the controller based on the voltage mode in the test case; and testing the intelligent power distribution channel based on the test sub-cases in the test case under different voltage modes of the controller, wherein different test sub-cases correspond to different working conditions under the intelligent power distribution channel. Compared with the related art, the embodiment of the present disclosure realizes automatic testing of the intelligent power distribution channel under different working conditions by configuring the test configurations of the intelligent power distribution channel under different working conditions as test cases. It is possible to achieve the unification of test standards, thereby improving the accuracy of the test.
[0095] In order to clearly illustrate the embodiments of the present disclosure, the embodiments of the present disclosure provide a flowchart of another method for testing intelligent power distribution of a controller.
[0096] like Figure 4 As shown, the method comprises the following steps:
[0097] Step 301: Generate the test case based on the load characteristics in the intelligent power distribution channel.
[0098] Specifically, in the embodiments of the present disclosure, the load characteristics are characteristics of some circuits of the load corresponding to the intelligent distribution channel, such as volt-ampere characteristics, changes in current in the circuit, etc. Different intelligent distribution channels can be composed of different circuits or devices; for example, it can be an electronic fuse (Efuse) chip, or it can be a discrete sampling circuit + field effect transistor (MOSFET). There will also be differences in the loads corresponding to different intelligent distribution channels. Therefore, it is necessary to generate test cases for different intelligent distribution channels based on the load characteristics.
[0099] Step 302: Load the test case corresponding to the intelligent power distribution channel in the controller.
[0100] Step 303: Based on the voltage mode in the test case, respectively set the operating voltage of the controller corresponding to the voltage mode, wherein the voltage mode includes at least one of a rated voltage mode, an overvoltage mode and an undervoltage mode.
[0101] Specifically in the embodiments of the present disclosure, please refer to Figure 5 , load the test case through the test host, and set the operating voltage of the controller according to the voltage mode set in the test case. When generating test cases, you can select the voltage mode to be tested from the rated voltage mode, overvoltage mode and undervoltage mode according to different test purposes, and generate corresponding test cases. The above three voltage modes cover the full operating voltage range of the controller, and can realize the full voltage range test of the controller's intelligent power distribution channel. Provide test data support for optimizing the design of the controller.
[0102] Step 304: Control the controller to operate.
[0103] Step 305, testing the intelligent power distribution channel based on the test sub-cases in the test case, wherein the test sub-cases include at least one of a rated current test, a peak current test, a short-time thermal shock test, an overcurrent protection test, a short-circuit protection test, and a fault diagnosis test.
[0104] For details in the disclosed embodiments, please continue to refer to Figure 5When the controller is working, the rated current test, peak current test, short-time thermal shock test, overcurrent protection test, short-circuit protection test and fault diagnosis test of the controller's intelligent power distribution channel are implemented. Rated current test, test whether the current recovery accuracy meets the requirements. Peak current test, test whether the current acquisition accuracy and peak current duration meet the requirements. Short-time thermal shock test (I2t protection test), test whether the I2t protection curve meets the requirements. Overcurrent protection test, test whether the overcurrent protection function meets the requirements. Short-circuit protection test, test whether the short-circuit protection function meets the design requirements. Fault diagnosis test, simulate load open circuit, short circuit to ground, short circuit to power supply in turn, test whether the diagnostic function meets the design requirements.
[0105] Step 306: Control the controller to sleep.
[0106] Step 307: Test the intelligent power distribution channel based on the test sub-case in the test case, wherein the test sub-case also includes at least one of a bypass function test and a reverse wake-up test.
[0107] For details in the disclosed embodiments, please continue to refer to Figure 5 , by enabling the controller to enter the sleep state, complete the bypass function test and reverse wake-up test of the controller. Bypass function test (Bypass current test), test whether the bypass current meets the requirements. Reverse wake-up function test, test whether the reverse wake-up function of the intelligent power distribution meets the requirements.
[0108] It should be noted that the embodiment of the present disclosure does not limit the controller to be tested in sleep state first or tested in sleep state later. Therefore, there is no necessary sequence between steps 304-305 and steps 306-307.
[0109] Step 308, determining whether the controller is tested in the current voltage mode.
[0110] Step 309 : When the controller completes the test in the current voltage mode, switch to a different voltage mode and set the corresponding operating voltage.
[0111] Step 310: Based on the reset working voltage, the intelligent power distribution channel is tested according to the test sub-cases in the test case until the test is completed in all voltage modes.
[0112] For details in the disclosed embodiments, please continue to refer to Figure 5After the test is completed in the current voltage mode of the controller, a different voltage mode is switched for testing. Exemplarily, after the controller completes all the tests of steps 304 to 307 in the rated voltage mode, it switches to the overvoltage mode and sets the corresponding working voltage; continues to perform all the tests of steps 304 to 307; until all the tests of steps 304 to 307 are completed in all voltage modes. After all the tests are completed, a test report is generated.
[0113] It should be noted that the embodiments of the present disclosure may include multiple steps. For the convenience of description, these steps are numbered, but these numbers do not limit the execution time slots or execution order between the steps; these steps can be implemented in any order, and the embodiments of the present disclosure do not limit this.
[0114] Corresponding to the above-mentioned controller intelligent power distribution test method, the present invention also proposes a controller intelligent power distribution test device. Since the device embodiment of the present invention corresponds to the above-mentioned method embodiment, the details not disclosed in the device embodiment can be referred to the above-mentioned method embodiment, and will not be repeated in the present invention.
[0115] Figure 6 A schematic diagram of a device for testing intelligent power distribution of a controller provided by an embodiment of the present disclosure is shown in FIG. Figure 6 As shown, including:
[0116] A loading unit 41 is used to load test cases corresponding to the intelligent power distribution channels in the controller;
[0117] A setting unit 42, configured to set the operating voltage of the controller based on the voltage mode in the test case;
[0118] The first test unit 43 is used to test the intelligent power distribution channel under different voltage modes of the controller based on the test sub-cases in the test case, and different test sub-cases correspond to different working conditions of the intelligent power distribution channel.
[0119] Furthermore, in a possible implementation of this embodiment, as Figure 7 As shown, the device also includes:
[0120] The generating unit 44 is configured to generate the test case based on the load characteristics in the intelligent power distribution channel before loading the test case corresponding to the intelligent power distribution channel in the controller.
[0121] Furthermore, in a possible implementation of this embodiment, the setting unit 42 is further configured to:
[0122] The operating voltage of the controller corresponding to the voltage mode is set respectively, wherein the voltage mode includes at least one of a rated voltage mode, an overvoltage mode and an undervoltage mode.
[0123] Furthermore, in a possible implementation of this embodiment, as Figure 7 As shown, the first testing unit 43 includes:
[0124] A first control module 431, used to control the controller to work in different voltage modes of the controller respectively;
[0125] The first test module 432 is used to test the intelligent distribution channel based on the test sub-cases in the test case, wherein the test sub-cases include at least one of a rated current test, a peak current test, a short-time thermal shock test, an overcurrent protection test, a short-circuit protection test, and a fault diagnosis test.
[0126] Furthermore, in a possible implementation of this embodiment, as Figure 7 As shown, the first testing unit 43 also includes:
[0127] A second control module 433, used for controlling the controller to sleep in different voltage modes of the controller respectively;
[0128] The second test module 434 is used to test the intelligent power distribution channel based on the test sub-case in the test case, wherein the test sub-case also includes at least one of a bypass function test and a reverse wake-up test.
[0129] Furthermore, in a possible implementation of this embodiment, as Figure 7 As shown, the device also includes:
[0130] A determination unit 45, configured to determine whether the controller is tested in a current voltage mode after testing the intelligent power distribution channel based on the test sub-cases in the test case under different voltage modes of the controller;
[0131] A switching unit 46, used to switch to a different voltage mode and set a corresponding operating voltage when the controller completes the test in the current voltage mode;
[0132] The second test unit 47 is used to test the intelligent power distribution channel according to the test sub-cases in the test case based on the reset working voltage, until the test is completed in all voltage modes.
[0133] It should be noted that the above explanation of the method embodiment is also applicable to the device of this embodiment, and the principle is the same, which is not limited in this embodiment.
[0134] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0135] Figure 8 A schematic block diagram of an example electronic device 500 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0136] like Figure 8 As shown, the device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 502 or a computer program loaded from a storage unit 508 to a RAM (Random Access Memory) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An I / O (Input / Output) interface 505 is also connected to the bus 504.
[0137] A number of components in the device 500 are connected to the I / O interface 505, including: an input unit 506, such as a keyboard, a mouse, etc.; an output unit 507, such as various types of displays, speakers, etc.; a storage unit 508, such as a disk, an optical disk, etc.; and a communication unit 509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0138] The computing unit 501 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a CPU (Central Processing Unit), a GPU (Graphic Processing Units), various dedicated AI (Artificial Intelligence) computing chips, various computing units running machine learning model algorithms, a DSP (Digital Signal Processor), and any appropriate processor, controller, microcontroller, etc. The computing unit 501 performs the various methods and processes described above, such as a method for testing the intelligent power distribution of a controller. For example, in some embodiments, the method for testing the intelligent power distribution of a controller may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 500 via the ROM 502 and / or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the computing unit 501, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to execute the aforementioned controller intelligent power distribution test method in any other appropriate manner (for example, by means of firmware).
[0139] Various embodiments of the systems and techniques described above herein may be implemented in digital electronic circuit systems, integrated circuit systems, FPGAs (Field Programmable Gate Arrays), ASICs (Application-Specific Integrated Circuits), ASSPs (Application Specific Standard Products), SOCs (System On Chips), CPLDs (Complex Programmable Logic Devices), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that may be executed and / or interpreted on a programmable system including at least one programmable processor that may be a dedicated or general-purpose programmable processor that may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0140] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0141] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include electrical connections based on one or more lines, portable computer disks, hard disks, RAM, ROM, EPROM (Electrically Programmable Read-Only-Memory) or flash memory, optical fiber, CD-ROM (Compact Disc Read-Only Memory), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0142] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0143] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), the Internet, and blockchain networks.
[0144] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.
[0145] It should be noted that artificial intelligence is a discipline that studies how computers can simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), and includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, as well as machine learning / deep learning, big data processing technology, knowledge graph technology, and other major directions.
[0146] The various numerical numbers such as first and second involved in the present disclosure are only for the convenience of description and are not used to limit the scope of the embodiments of the present disclosure, but also indicate the order of precedence.
[0147] At least one in the present disclosure may also be described as one or more, and a plurality may be two, three, four or more, which is not limited in the present disclosure. In the embodiments of the present disclosure, for a technical feature, the technical features in the technical feature are distinguished by "first", "second", "third", "A", "B", "C" and "D", etc., and there is no order of precedence or size between the technical features described by the "first", "second", "third", "A", "B", "C" and "D".
[0148] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0149] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for testing intelligent power distribution of a controller, characterized in that: include: Load the test cases corresponding to the intelligent power distribution channels in the controller; Based on the voltage mode in the test case, setting the operating voltage of the controller; Under different voltage modes of the controller respectively, the intelligent power distribution channel is tested based on the test sub-cases in the test case, and different test sub-cases correspond to different working conditions under the intelligent power distribution channel.
2. The method according to claim 1, characterized in that Before loading the test case corresponding to the intelligent power distribution channel in the controller, the method further includes: The test case is generated based on the load characteristics in the intelligent power distribution channel.
3. The method according to claim 1, characterized in that The step of setting the operating voltage of the controller based on the voltage mode in the test case includes: The operating voltage of the controller corresponding to the voltage mode is set respectively, wherein the voltage mode includes at least one of a rated voltage mode, an overvoltage mode and an undervoltage mode.
4. The method according to claim 1, characterized in that: The testing of the intelligent power distribution channel based on the test sub-cases in the test case under different voltage modes of the controller respectively includes: Controlling the controller to work under different voltage modes of the controller respectively; The intelligent power distribution channel is tested based on the test sub-cases in the test case, wherein the test sub-cases include at least one of a rated current test, a peak current test, a short-time thermal shock test, an overcurrent protection test, a short-circuit protection test, and a fault diagnosis test.
5. The method according to claim 1, characterized in that The testing of the intelligent power distribution channel based on the test sub-cases in the test case under different voltage modes of the controller also includes: Controlling the controller to sleep in different voltage modes of the controller respectively; The intelligent power distribution channel is tested based on the test sub-case in the test case, wherein the test sub-case also includes at least one of a bypass function test and a reverse wake-up test.
6. The method according to any one of claims 3 to 5, characterized in that: After testing the intelligent power distribution channel based on the test sub-cases in the test case under different voltage modes of the controller, the method further includes: Determine whether the controller is tested in the current voltage mode; When the controller completes the test in the current voltage mode, switching to a different voltage mode and setting a corresponding operating voltage; Based on the reset working voltage, the intelligent power distribution channel is tested according to the test sub-cases in the test case until the test is completed in all voltage modes.
7. A device for testing intelligent power distribution of a controller, characterized in that: include: A loading unit, used to load the test cases corresponding to the intelligent power distribution channels in the controller; A setting unit, configured to set the operating voltage of the controller based on the voltage mode in the test case; The first test unit is used to test the intelligent power distribution channel under different voltage modes of the controller based on the test sub-cases in the test case, and different test sub-cases correspond to different working conditions of the intelligent power distribution channel.
8. A system for testing intelligent power distribution of a controller, characterized in that: include: Test host, test unit, communication unit and program-controlled power supply; The test host is respectively connected to one end of the test unit, one end of the communication unit and one end of the programmable power supply; the other end of the test unit, the other end of the programmable power supply and the other end of the communication unit are connected to the controller under test; The test host is used to load test cases and control the test unit, the communication unit and the programmable power supply to test the controller under test and generate a test report; the test unit is used to simulate the load and / or different working conditions of the intelligent power distribution channel of the controller under test according to the instructions of the test host; the programmable power supply is used to power the controller under test; and the communication unit is used to obtain the test results of the controller under test.
9. The system according to claim 8, characterized in that The test unit includes an electronic load module, a short circuit test module, a fault injection module, a power switching module and a connector; One end of the electronic load module and the short circuit test module is connected to the test host, and the other end is connected to the fault injection module; the fault injection module is connected to the test host and the power switching module respectively; the power switching module is connected to the test host and the connector respectively; The electronic load module is used to simulate the load of the controller under test; the short-circuit test module is used to test the short-circuit output of the controller under test; the fault injection module is used to simulate different fault modes, wherein the fault mode includes at least one of open circuit of load, short circuit to ground and short circuit to power supply; The power switching module is used for switching different intelligent power distribution channels; the connector is used for connecting with the controller under test.
10. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.