Test method, system, device and storage medium

By obtaining the branch working status of the intelligent power distribution controller, the test parameters are automatically set, which solves the problem of inconvenience of manually setting test parameters, improves the safety and accuracy of the test, and enhances the rationality and authenticity of the test.

CN116400145BActive Publication Date: 2024-10-01CONTEMPORARY AMPEREX TECHNOLOGY CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310014384.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-05
Publication Date
2024-10-01
Estimated Expiration
2043-01-05

AI Technical Summary

Technical Problem

The test parameters of existing intelligent power distribution controllers are mainly set manually, which makes the test process inconvenient and may ignore the internal connections of the system, resulting in scene mismatch and unreasonable problems.

Method used

By obtaining the working status of each branch of the controller in the electrical device, the power consumption information of the virtual load is determined, and the test parameters are automatically set based on this information. The isolated differential voltage simulation channel and the resistance simulation channel are used to transfer the test parameters and simulate the actual scenario. , improve test safety and accuracy.

Benefits of technology

It realizes automated test parameter setting, improves the safety and accuracy of the test, avoids the inconvenience and unreasonable problems caused by manual settings, and enhances the rationality and authenticity of the test.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116400145B_ABST
    Figure CN116400145B_ABST
Patent Text Reader

Abstract

The present application discloses a test method, system, device and storage medium, the method comprising: obtaining the working state of each branch of the controller in the electrical device, the controller is used to manage the power distribution of the load in the electrical device, and the working state includes an open state and a closed state; determining the power consumption information of each virtual load based on the working state of each branch, the virtual load is a simulation model corresponding to each load in the electrical device; determining the test parameters of each branch in the controller according to the power consumption information corresponding to each virtual load. The above scheme can realize the acquisition of the test parameters of the controller.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of testing technology, and in particular to a testing method, system, device and storage medium. Background Art

[0002] Intelligent power distribution controllers are mainly used to replace the traditional manual power distribution management with the help of computer technology, communication technology, AI technology, etc. to a certain extent. Intelligent power distribution controllers are both control devices and power devices. At present, the test parameters in the test process of intelligent power distribution controllers are often set manually. Summary of the invention

[0003] The present application at least provides a testing method, system, device and storage medium.

[0004] The present application provides a testing method, including: obtaining the working status of each branch of a controller in an electrical device, the controller being used to perform power distribution management on the loads in the electrical device, the working status including an open state and a closed state; determining the power consumption information of each virtual load based on the working status of each branch, the virtual load being a simulation model corresponding to each load in the electrical device; and determining the test parameters of each branch in the controller according to the power consumption information corresponding to each virtual load.

[0005] In the above scheme, the controller is used to manage the power distribution of the loads in the electrical device, that is, the controller can be directly or indirectly connected to each load, and can supply power to each load or stop supplying power to it by controlling the conduction or disconnection of each branch. The load can generate power consumption when working under power supply, so the power consumption information of each virtual load can be determined by obtaining the working status of each branch of the controller in the electrical device. Because each load is directly or indirectly connected to the controller, the test parameters can be determined for each branch in the controller according to the power consumption information of each virtual load, without manual determination, and this scheme is more convenient. In addition, each load inside the electrical device often has a certain connection with the controller, such as energy transfer, etc. By obtaining the power consumption information of the virtual load, determining the test parameters can better simulate the actual scene. In addition, by establishing a simulation model for the load, there is no need to use the actual electrical device for testing, which can improve the safety during the test process.

[0006] In some embodiments, the method further includes: sending the test parameters to the controller so that each branch of the controller is tested under the test parameters.

[0007] In the above solution, by sending the test parameters to the controller, it is convenient for the controller to perform testing under the test parameters.

[0008] In some embodiments, the test parameters include one or more of a test current, a test voltage, and a test temperature.

[0009] In the above solution, the test parameters include test current, test voltage and test temperature, so that the test condition of the controller under different current, voltage and temperature conditions can be tested.

[0010] In some embodiments, the test parameters include a test current, and sending the test parameters to the controller includes: transmitting the test parameters to the controller through a first transmission channel connected to each branch, the first transmission channel being an isolated differential voltage simulation channel; and / or, the test parameters include a test temperature, and sending the test parameters to the controller includes: transmitting the test parameters to the controller through a second transmission channel connected to each branch, the second transmission channel being one of a resistance simulation channel and an isolated differential voltage simulation channel.

[0011] In the above scheme, by using an isolated differential voltage simulation channel or a resistance simulation channel, the transmission of the test parameters is made more accurate. In addition, by configuring different transmission channels for the test current and the test temperature, the transmission of different test parameters does not affect each other.

[0012] In some embodiments, each branch includes a parameter acquisition loop, each parameter acquisition loop corresponds to a transmission channel, and sending the test parameters to the controller includes: transmitting the test parameters to the parameter acquisition loop of each branch.

[0013] In the above solution, a parameter acquisition loop is set for each branch, and the parameter acquisition loop has an acquisition function and can receive the test parameters transmitted to the loop.

[0014] In some embodiments, obtaining the working status of each branch of a controller in an electrical device includes: using digital input channels connected to each branch in the controller to collect the working status to obtain the working status of each branch, wherein at least part of the digital input channels pull down the power resistor to ground.

[0015] In the above scheme, by using the digital input channel to connect with each branch in the controller, the working status of each branch can be collected. In addition, by pulling the power resistor of the digital input channel down to the ground, the occurrence of current verification errors when the branch is working can be reduced.

[0016] In some embodiments, at least some of the virtual loads are connected in series with a branch, and the power consumption information of each virtual load is determined based on the working status of each branch, including: determining the power consumption of each virtual load based on a preset power consumption model of each virtual load and the working status of each branch, the preset power consumption model is used to represent the power consumption of each virtual load in at least one state; determining the test parameters of each branch in the controller according to the power consumption information corresponding to each virtual load, including: determining the power consumption of the corresponding branches based on the power consumption of the virtual loads connected in series with each branch; determining the test parameters of each branch using the power consumption of each branch.

[0017] In the above scheme, the power consumption of the virtual load is determined by pre-establishing the power consumption model of each virtual load, and then the power consumption of the corresponding branch is determined according to the power consumption of the virtual load connected in series with each branch, and then the test parameters of the branch can be determined according to the power consumption of the branch.

[0018] In some embodiments, the power consumption includes current consumption, and the method further includes: obtaining a power supply mode of the controller; determining a power supply current for the controller based on the power supply mode and the current consumption; and determining a power supply voltage provided to the controller using the power supply current.

[0019] In the above solution, by obtaining the power supply mode of the controller, current distribution can be achieved according to the power supply mode and the current consumption required by the branch, and then voltage arbitration can be achieved.

[0020] In some embodiments, the power supply method includes using at least one of a DCDC power module and a battery to power the controller, and the test current includes a test current of the DCDC power module and / or a test current of the battery; using the power supply current, determining the power supply voltage provided to the controller, including: based on the test current, determining the low-voltage terminal voltage of the DCDC power module and the battery terminal voltage of the battery; in response to the power supply method being that the DCDC power module and the battery are simultaneously connected to each branch, the supply voltage is the maximum value of the low-voltage terminal voltage and the battery terminal voltage; or, in response to the power supply method being that one of the DCDC power module and the battery is connected to each branch, selecting the voltage of the one connected to the branch as the supply voltage.

[0021] In the above scheme, the power supply mode is that the DCDC power module and the battery are connected to each branch at the same time, the supply voltage is the maximum value of the low voltage terminal voltage and the battery terminal voltage, and the power supply mode is that one of the DCDC power module and the battery is connected to each branch, and the voltage of the one connected to the branch is selected as the supply voltage to reasonably control the dual power supply voltage output and avoid power supply competition (power supply parallel reverse charging).

[0022] In some embodiments, the DCDC power module is a low-voltage power module, the battery is a 12V battery, and each load is a low-voltage load.

[0023] In the above scheme, the DCDC power module is a low-voltage power module, the battery is a 12V battery, and each load is a low-voltage load, so as to simulate the working condition of the controller under the condition of low-voltage power supply and low-voltage load.

[0024] In some embodiments, the test parameters include test temperature, and the power consumption includes current consumption. The test parameters of each branch in the controller are determined based on the power consumption information corresponding to each virtual load, including: obtaining the initial temperature of the environment; determining the transfer temperature of each virtual load using the current consumption of each virtual load; and obtaining the test temperature by combining the initial temperature and the transfer temperature.

[0025] In the above scheme, considering that there may be an energy transfer relationship, such as a heat transfer relationship, between each load and the controller in the electrical device, by combining the transfer temperature of each virtual load to each branch, the actual situation can be better simulated, making the test more accurate.

[0026] In some embodiments, the method also includes: respectively obtaining test parameters of each branch in the controller when the electrical device is in each state, the state of the electrical device including at least one of a wake-up state, a working state, a power-off state, a reset state and a sleep state, the wake-up state is used to indicate the power-on process of the electrical device, the power-off state is used to indicate the power-off process of the electrical device, the reset state is used to indicate the process of unstable power supply or sudden power disconnection, the sleep state is the state after power-off is completed, and the working state is the state when the electrical device is in the working process; the test parameters corresponding to the electrical device in each state are sent to the controller.

[0027] In the above scheme, by dynamically simulating multiple scenarios (sleep, wake-up, work, exception), the rationality and authenticity of the test scenarios can be guaranteed.

[0028] In some embodiments, the method also includes: obtaining the test requirements of the controller and determining the test scenarios; setting the external environmental parameters of the controller based on a preset driving model and / or environmental model; and determining the test parameters of the controller corresponding to each state of the electrical device under the external environmental parameters.

[0029] In the above scheme, by pre-establishing the driving model and the environmental model, and then setting the external environmental parameters according to these models, the test environment is made more reasonable and realistic.

[0030] In some embodiments, the method also includes: determining a control mode selected by a user, the control mode including a closed-loop control mode and an open-loop control mode; in response to the control mode selected by the user being a closed-loop control mode, executing the step of determining the test parameters of each branch in the controller according to the power consumption information corresponding to each virtual load; in response to the control mode selected by the user being an open-loop control mode, receiving the test parameters input by the user as test parameters.

[0031] In the above solution, by providing the user with a choice of control modes, it is convenient for the user to determine the method for obtaining the test parameters according to his own needs, making the method for obtaining the test parameters more diverse.

[0032] The present application provides a test system, including: a first acquisition module, a second acquisition module and a parameter determination module. The first acquisition module is used to acquire the working state of each branch of the controller in the power-consuming device, the controller is used to perform power distribution management on the load in the power-consuming device, and the working state includes an open state and a closed state; the second acquisition module is used to determine the power consumption information of each virtual load based on the working state of each branch, the virtual load is a simulation model corresponding to each load in the power-consuming device; the parameter determination module is used to determine the test parameters of each branch in the controller according to the power consumption information corresponding to each virtual load.

[0033] The present application provides an electronic device, including a memory and a processor, wherein the processor is used to execute program instructions stored in the memory to implement any of the above methods.

[0034] The present application provides a computer-readable storage medium on which program instructions are stored. When the program instructions are executed by a processor, any of the above methods is implemented.

[0035] In the above scheme, the controller is used to manage the power distribution of the loads in the electrical device, that is, the controller can be directly or indirectly connected to each load, and can supply power to each load or stop supplying power to it by controlling the conduction or disconnection of each branch. The load can generate power consumption when working under power supply, so the power consumption information of each virtual load can be determined by obtaining the working status of each branch of the controller in the electrical device. Because each load is directly or indirectly connected to the controller, the test parameters can be determined for each branch in the controller according to the power consumption information of each virtual load, without manual determination, and this scheme is more convenient. In addition, each load inside the electrical device often has a certain connection with the controller, such as energy transfer, etc. By obtaining the power consumption information of the virtual load, determining the test parameters can better simulate the actual scene. In addition, by establishing a simulation model for the load, there is no need to use the actual electrical device for testing, which can improve the safety during the test process.

[0036] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.

[0038] Figure 1 It is a flow chart of an embodiment of a testing method provided by the present application;

[0039] Figure 2 This is a schematic diagram of the interaction between the HIL system and the controller. Figure 1 ;

[0040] Figure 3 This is a schematic diagram of the interaction between the HIL system and the controller. Figure 2 ;

[0041] Figure 4 is another flow chart of an embodiment of a testing method provided by the present application;

[0042] Figure 5 It is a structural schematic diagram of an embodiment of a test system provided by the present application;

[0043] Figure 6 It is a structural schematic diagram of an embodiment of an electronic device provided by the present application;

[0044] Figure 7 It is a structural diagram of an embodiment of a computer-readable storage medium of the present application. DETAILED DESCRIPTION

[0045] The scheme of the embodiment of the present application is described in detail below in conjunction with the drawings of the specification.

[0046] In the following description, for the purpose of explanation rather than limitation, specific details such as specific subsystem structures, interfaces, and technologies are provided to facilitate a thorough understanding of the present application.

[0047] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the objects associated before and after are in an "or" relationship. In addition, "many" in this article means two or more than two. In addition, the term "at least one" in this article means any combination of at least two of any one or more of a plurality of, for example, including at least one of A, B, and C, can mean including any one or more elements selected from the set consisting of A, B, and C.

[0048] The inventor of the present solution has discovered that the test parameters in the current testing process of the intelligent power distribution controller are often set manually. In the actual vehicle scenario, the energy flow between the high and low voltage power supplies, energy converters and low voltage loads is a real-time closed loop, and the status and response of each component are continuously monitored and controlled by the corresponding controller. Manual adjustment settings are often used to create faults for the sake of faults. Although some functions can be verified, the inherent connection of the entire system as a closed loop is often ignored, which can easily cause problems such as scene mismatch and unreasonableness. In view of this, the inventor of this case provides the following technical solutions to solve the inconvenience and unreasonableness caused by the current manual determination of test parameters.

[0049] See also Figure 1 The method provided in the present application may include the following steps S11 to S13. Step S11: Obtain the working status of each branch of the controller in the electrical device. Step S12: Determine the power consumption information of each virtual load based on the working status of each branch. Step S13: Determine the test parameters of each branch in the controller according to the power consumption information corresponding to each virtual load.

[0050] The controller is used to manage the power distribution of the load in the power consumption device. Among them, the power distribution management of the load can specifically be to supply power to the load or stop supplying power to the load. In this embodiment, the controller is an intelligent power distribution controller as an example. The working state of the branch includes an open state and a closed state. The power consumption device can be any device that includes an intelligent power distribution controller. For example, the power consumption device can be a vehicle. In this embodiment, the power consumption device is a vehicle as an example. In some application scenarios, each branch includes multiple Efuse and multiple HSD. Among them, Efuse can be considered as an intelligent fuse, which realizes the on-off of the secondary power distribution circuit by driving the external MOSFET (field effect transistor) and the internal MOSFET. HSD can be considered as a high-side driver, which drives the load by closing the power line switch directly in front of the load. The virtual load is a simulation model corresponding to each load in the power consumption device. The executor of this scheme can be a HIL test system, on which a simulation model of each load in the entire power consumption device is established to simulate the entire power consumption device. Exemplarily, the virtual load can be other vehicle controllers (VCU, BMS, TCU, EPS, body controller), vehicle high-voltage load + vehicle dynamics model (high-voltage battery, drive motor, energy conversion device, 12V battery) and other low-voltage loads. Some of the low-voltage components are directly driven by the intelligent power distribution controller (for example, direct-drive pumps, valves, etc.), and the control of other loads depends on the rest of the vehicle controllers. For example, the TCU controls the cooling water pump, and the intelligent power distribution controller (PDC) is responsible for providing 12V power to the water pump, and the control execution of the water pump depends on the TCU to issue control instructions through LIN. For example, EPS controls the power-assisted motor, the PDC is responsible for powering the EPS, and the control execution of the power-assisted motor is controlled and driven by the EPS. The power consumption information of the virtual load can be the power consumption information per unit time, or it can be the power consumption information within a preset time range. The power consumption information can be used to indicate the energy consumption of the virtual load.

[0051] In the above scheme, the controller is used to manage the power distribution of the loads in the electrical device, that is, the controller can be directly or indirectly connected to each load, and can supply power to each load or stop supplying power to it by controlling the conduction or disconnection of each branch. The load can generate power consumption when working under power supply, so the power consumption information of each virtual load can be determined by obtaining the working status of each branch of the controller in the electrical device. Because each load is directly or indirectly connected to the controller, the test parameters can be determined for each branch in the controller according to the power consumption information of each virtual load, without manual determination, and this scheme is more convenient. In addition, each load inside the electrical device often has a certain connection with the controller, such as energy transfer, etc. By obtaining the power consumption information of the virtual load, determining the test parameters can better simulate the actual scene. In addition, by establishing a simulation model for the load, there is no need to use the actual electrical device for testing, which can improve the safety during the test process.

[0052] In some embodiments, the method further includes: sending the test parameters to the controller so that each branch of the controller is tested under the test parameters.

[0053] For example, the controller mentioned above may be an intelligent power distribution controller. By sending the test parameters to the intelligent power distribution controller, each branch of the intelligent power distribution controller can be tested under the test parameters.

[0054] In the above solution, by sending the test parameters to the controller, it is convenient for the controller to perform testing under the test parameters.

[0055] In some embodiments, the test parameters include one or more of a test current, a test voltage, and a test temperature.

[0056] In some application scenarios, the test parameters include one of the test current, the test voltage, and the test temperature. In some application scenarios, the test parameters include two or three of the test current, the test voltage, and the test temperature. In some application scenarios, different test parameters can be transmitted to the controller using the same transmission channel. In some application scenarios, different test parameters can be transmitted to the controller using different transmission channels. Exemplarily, the test parameters include the test current, and the transmission channel includes a transmission channel for transmitting the test current. Exemplarily, the test parameters include the test temperature, and the test channel includes a transmission channel for transmitting the test temperature. Exemplarily, the test parameters include the test voltage, and the transmission channel includes a transmission channel for transmitting the test voltage. Wherein, each test parameter of each branch corresponds to a transmission channel.

[0057] In the above scheme, the test parameters include test current, test voltage and test temperature, so that the test condition of the controller under different current, voltage and temperature conditions can be tested. In addition, by configuring a transmission channel for each test parameter, the transmission of different test parameters does not affect each other.

[0058] In some embodiments, the test parameter includes a test current, and the test parameter is sent to the controller by transmitting the test parameter to the controller through a first transmission channel connected to each branch, and the first transmission channel is an isolated differential voltage simulation channel. Optionally, the test parameter includes a test temperature, and the test parameter is sent to the controller by transmitting the test parameter to the controller through a second transmission channel connected to each branch, and the second transmission channel is one of a resistance simulation channel and an isolated differential voltage simulation channel.

[0059] Exemplarily, for the transmission of the test temperature in each branch, the HIL cabinet needs to be equipped with a dedicated resistance simulation channel (the original circuit NTC resistor is removed), or an isolated differential voltage simulation output channel is used. Exemplarily, for the transmission of the test current in each branch, the HIL cabinet needs to be equipped with a dedicated isolated differential voltage simulation output channel (the original shunt resistor is removed, and the output voltage is greater than 0); differential voltage simulation avoids interference caused by common ground of the signal on the one hand, and can improve the output accuracy of the signal on the other hand.

[0060] In the above scheme, by using an isolated differential voltage simulation channel or a resistance simulation channel, the transmission of the test parameters is made more accurate. In addition, by configuring different transmission channels for the test current and the test temperature, the transmission of different test parameters does not affect each other.

[0061] In some embodiments, each branch includes a parameter acquisition loop, each parameter acquisition loop corresponds to a transmission channel, and sending the test parameters to the controller includes: transmitting the test parameters to the parameter acquisition loop of each branch.

[0062] In order to cooperate with the realization of signal-level current simulation and temperature simulation, the controller needs to be modified, and the current acquisition loop and temperature acquisition loop on each branch are led out separately and connected to the HIL cabinet. Among them, the HIL cabinet is equipped with a transmission channel for each test parameter. Exemplarily, for each temperature connection channel led out by Efuse and / or HSD, the HIL cabinet needs to be equipped with a dedicated resistance simulation channel (the original circuit NTC resistor is removed), or an isolated differential voltage analog output channel is used. Exemplarily, for each current connection channel led out by Efuse and / or HSD, the HIL needs to be equipped with a dedicated isolated differential voltage analog output channel (the original shunt resistor is removed, and the output voltage is greater than 0). Differential voltage simulation avoids interference caused by common ground of signals on the one hand, and can improve the output accuracy of signals on the other hand. Optionally, for the current connection channel led out from the 12V branch Efuse, the HIL cabinet needs to be equipped with a dedicated isolated differential voltage analog output channel (the original shunt resistor is removed, and the output minimum voltage should be less than 0), so as to realize the simulation of 12V branch charging and discharging scenarios.

[0063] In the above solution, a parameter acquisition loop is set for each branch, and the parameter acquisition loop has an acquisition function and can receive the test parameters transmitted to the loop.

[0064] In some embodiments, the working state of each branch of the controller in the electrical device can be obtained by collecting the working state using digital input channels connected to each branch in the controller, wherein at least some of the digital input channels pull down the power resistor to ground.

[0065] Exemplarily, for each Efuse branch, the HIL cabinet needs to be equipped with a digital input channel for data collection for closed-loop verification and control of the controlled object model. In particular, due to the use of signal-level simulation, each Efuse branch does not need to be connected to an external load. Exemplarily, for each HSD branch, the HIL cabinet needs to be equipped with a digital input channel for data collection for closed-loop verification of the controlled object model. In addition, in order to avoid current verification errors when the HSD is working, each channel should pull down the power resistor to ground. The size of the pull-down power resistor is selected based on the HSD current diagnostic characteristics and is not specifically limited here.

[0066] In the above scheme, by using the digital input channel to connect to each branch in the controller to be tested, the working status of each branch can be collected. In addition, by pulling the power resistor of the digital input channel down to the ground, the occurrence of current verification errors when the branch is working can be reduced.

[0067] In some embodiments, at least part of the virtual loads are connected in series with a branch. The above method of determining the power consumption information of each virtual load based on the working state of each branch can be: based on the preset power consumption model of each virtual load and the working state of each branch, the power consumption of each virtual load is determined. The preset power consumption model is used to represent the power consumption of each virtual load in at least one state. The above method of determining the test parameters of each branch in the controller according to the power consumption information corresponding to each virtual load can be: based on the power consumption of the virtual loads connected in series with each branch, the power consumption of the corresponding branch is determined respectively. Then, the test parameters of each branch are determined using the power consumption of each branch.

[0068] At least part of the virtual load is connected in series with a branch specifically means that there are one or more virtual loads connected in series with one of the branches. Exemplarily, virtual load a is connected in series with branch one, virtual load b is connected in series with branch two, virtual load c is connected in series with branch three... As mentioned above, virtual loads may include other vehicle controllers (VCU, BMS, TCU, EPS, body controller), vehicle high-voltage load + vehicle dynamics model (high-voltage battery, drive motor, energy conversion device, 12V battery) and other low-voltage loads. The preset power consumption model may be a power consumption model formulated for the power consumption characteristics of each virtual load. The preset power consumption model may be the power consumption of the virtual load when responding to different control instructions. Exemplarily, when the branch is closed, for the virtual load connected in series with the branch, the current consumption of the virtual load may be calculated based on the control instruction of the intelligent power distribution controller to obtain the current consumption of the branch. In the case where the power consumption is current consumption, the way to obtain the current consumption of each branch can be to use the digital acquisition channel to retrieve the channel status of each branch of the PDC, receive the load current feedback directly driven by the PDC and the load current feedback indirectly driven by the PDC, and then determine the current consumption of each branch based on these three types of information. In some other embodiments, a manual adjustment mode can also be set, and the user can manually input the current consumption of each branch. In some scenarios, if a branch is disconnected, the current consumption of the load in series on the branch is almost zero. Optionally, the current consumption of each branch can be directly used as the test current of each branch.

[0069] In the above scheme, the power consumption of the virtual load is determined by pre-establishing the power consumption model of each virtual load, and then the power consumption of the corresponding branch is determined according to the power consumption of the virtual load connected in series with each branch, and then the test parameters of the branch can be determined according to the power consumption of the branch.

[0070] In some embodiments, the power consumption includes current consumption. The test parameter includes a test voltage. The method further includes: obtaining a power supply mode of the controller. Then, based on the power supply mode and the current consumption, determining a power supply current of the controller. Then, using the power supply current, determining a power supply voltage provided to the controller.

[0071] Optionally, there may be multiple power supply modes, for example, including modes 1 to 6: Mode 1: DCDC power module + battery output at the same time; Mode 2: DCDC power module output, charging the battery and supplying power to the load at the same time; Mode 3: DCDC power module works alone; Mode 4: Battery works alone; Mode 5: Battery / DCDC power module are abnormal at the same time; Mode 6: Power-off sleep (battery parasitic mode). The specific steps of obtaining the power supply mode may be to determine the power supply mode using the working status of the above-mentioned branches, the collected DCDC power module status and the battery status. In addition, the power supply mode may also be determined with reference to the driver's instructions. The driver's instructions may be the driver's operating signals, such as key signal triggering, gear setting, acceleration and deceleration pedal control, etc. The current of the power supply channel under different power supply modes is allocated respectively.

[0072] In the above solution, by obtaining the power supply mode of the controller, current distribution can be achieved according to the power supply mode and the current consumption required by the branch, and then voltage arbitration can be achieved.

[0073] In some embodiments, the power supply method includes using at least one of a DCDC power module and a battery to power the controller. The test current includes a test current of the DCDC power module and / or a test current of the battery. The above-mentioned method of using the power supply current to determine the power supply voltage provided to the controller can be: based on the test current, determine the low-voltage terminal voltage of the DCDC power module and the battery terminal voltage of the battery. Then, in response to the power supply method that the DCDC power module and the battery are connected to each branch at the same time, the power supply voltage is the maximum value of the low-voltage terminal voltage and the battery terminal voltage. Or, in response to the power supply method that one of the DCDC power module and the battery is connected to each branch, the voltage of the one connected to the branch is selected as the power supply voltage.

[0074] The test current of the DCDC power module can specifically be the current provided by the DCDC power module for the controller to be tested, and the test current of the battery can specifically be the current provided by the battery for the intelligent power distribution controller. In some application scenarios, at least some branches are powered by the DCDC power module. In other application scenarios, at least some branches are powered by the battery. In some application scenarios, at least some branches are powered by the DCDC power module and the battery. In some application scenarios, if the branch is only powered by the DCDC power module, the supply voltage is the low-voltage terminal voltage of the DCDC power module. In some application scenarios, if the branch is only powered by the battery, the supply voltage is the battery terminal voltage of the battery.

[0075] In the above scheme, the power supply mode is that the DCDC power module and the battery are connected to each branch at the same time, the supply voltage is the maximum value of the low voltage terminal voltage and the battery terminal voltage, and the power supply mode is that one of the DCDC power module and the battery is connected to each branch, and the voltage of the one connected to the branch is selected as the supply voltage to reasonably control the dual power supply voltage output and avoid power supply competition (power supply parallel reverse charging).

[0076] In some embodiments, the DCDC power module is a low-voltage power module, the battery is a 12V battery, and each load is a low-voltage load.

[0077] Generally speaking, a working voltage below a certain value is low voltage, and a working voltage above a certain value is high voltage. Considering that electrical devices can belong to any technical field, the classification of high voltage and low voltage in different fields may be different, so no specific definition of low voltage and high voltage is made here.

[0078] In the above scheme, the DCDC power module is a low-voltage power module, the battery is a 12V battery, and each load is a low-voltage load, which can simulate the working condition of the controller to be tested under the conditions of low-voltage power supply and low-voltage load.

[0079] In some embodiments, the test parameters include a test temperature. The power consumption includes current consumption. According to the power consumption information corresponding to each virtual load, the test parameters of each branch in the controller can be determined by: obtaining an initial temperature of the environment. Determining the transfer temperature of each virtual load using the current consumption of each virtual load. Combining the initial temperature and the transfer temperature, the test temperature is obtained.

[0080] The initial temperature of the environment can be the test temperature set by the HIL system last time, or it can be the temperature measured from the environment. In some application scenarios, the control of some loads depends on the other controllers of the vehicle. For example, the TCU controls the cooling water pump, and the PDC is responsible for providing 12V power to the water pump, while the control execution of the water pump depends on the TCU to issue control instructions through LIN. For example, EPS controls the power-assist motor, and the PDC is responsible for powering the EPS, while the control execution of the power-assist motor is controlled and driven by the EPS. At this time, the control model of each other controller can be used to simulate the control instructions for each load. And, according to the preset power consumption model of each load, the power consumption of the load in response to the control instruction under the current control instruction is predicted. Through energy transfer pathways such as torque and heat transfer, it is connected in series with the rest of the loads of the vehicle to form a closed loop of energy flow inside the virtual model of the vehicle (torque and heat closed loop). The test temperature of the branch is obtained by superposition of energy.

[0081] In the above scheme, considering that there may be an energy transfer relationship, such as a heat transfer relationship, between each load in the electrical device and the controller to be tested, by combining the transfer temperature of each virtual load to each branch, the actual situation can be better simulated, making the test more accurate.

[0082] In some embodiments, the method further includes: obtaining test parameters of each branch in the controller for each state of the electrical device. The state of the electrical device includes at least one of a wake-up state, a working state, a power-off state, a reset state, and a sleep state. The wake-up state is used to indicate the power-on process of the electrical device, the power-off state is used to indicate the power-off process of the electrical device, the reset state is used to indicate the process of unstable power supply or sudden power disconnection, the sleep state is the state after power-off is completed, and the working state is the state of the electrical device in the working process. The test parameters corresponding to the electrical device in each state are sent to the controller.

[0083] The wake-up state mainly simulates the input signals of the PDC power-on process. Among them, the input signals include: 1. Hard-wired signals: driver key hard-wired signals, door signals, and secondary wake-up signals of other controllers of the vehicle; 2. Bus signals: network management messages, residual ECU messages; 3. Voltage and current signals of each branch of the PDC (the current conforms to the change trend during the power-on process of the vehicle, and the voltage changes gradually or suddenly with the current). The working state is mainly used to gradually determine and output the current, power supply voltage and temperature of each branch according to the above method. The information flows in a closed loop between the HIL system and the controller to be tested, or the current, power supply voltage and temperature of each branch are manually adjusted and output, and the information flows in an open loop between the HIL bench and the controller to be tested. The power-off state is mainly used to simulate the voltage and current changes of each branch during the power-off process of the vehicle after the key signal is turned off and before entering the dormant state. In a normal power-off scenario, the current of each load should gradually decrease to the size of the parasitic current, and the voltage should change smoothly accordingly. In an emergency power-off scenario, the current of each load may suddenly decrease, and the voltage may change significantly (induced potential). At the same time, the HIL should also stop sending bus messages under certain conditions and time. The reset state mainly simulates the scenario where the PDC power supply is unstable or suddenly disconnected. When it is necessary to simulate the power-off or voltage fluctuation reset scenario of the controller to be tested, the dual power supply voltage should be controlled to zero. After the power-off is completed, it usually enters the sleep state. At this time, for load current simulation, if the load is an ECU type, the branch current should be simulated as the parasitic current size; if it is a non-ECU type, the branch current should be simulated as 0; the corresponding voltage should also be calculated with the current size. Both the reset state and the sleep state can be directly restored to the wake-up state to simulate the current, voltage, and temperature response during the switching process of different states. When the conditions from the power-off state to the sleep state are not met (such as the PDC cannot enter sleep, the driver's intention changes), the power-off state can be directly restored to the working state.

[0084] In the above scheme, by dynamically simulating multiple scenarios (sleep, wake-up, work, exception), the rationality and authenticity of the test scenarios can be guaranteed.

[0085] In some embodiments, the method further includes: obtaining a test requirement of the controller and determining a test scenario. Based on a preset driving model and / or an environmental model, setting external environmental parameters of the controller. Determining test parameters of the controller corresponding to each state of the electrical device under the external environmental parameters.

[0086] The test requirements are used to determine the preset driving model and / or environmental module. The preset driving model is mainly used to simulate the input driver operation signal, including key signal triggering, gear setting, acceleration and deceleration pedal control, etc. The environmental model is mainly used to simulate the actual traffic environment, including road conditions, ambient temperature, etc. The model corresponding to the controlled object model can simulate the virtual environment of PDC closed-loop operation.

[0087] In the above scheme, by pre-establishing the driving model and the environmental model, and then setting the external environmental parameters according to these models, the test environment is made more reasonable and realistic.

[0088] In some embodiments, the method further includes: determining a control mode selected by a user. The control mode includes a closed-loop control mode and an open-loop control mode. In response to the control mode selected by the user being the closed-loop control mode, performing a step of determining a test parameter of each branch in the controller according to the power consumption information corresponding to each virtual load. Or, in response to the control mode selected by the user being the open-loop control mode, receiving a test parameter input by the user as the test parameter.

[0089] That is to say, in the closed-loop control mode, the test parameters are determined by the HIL system, while in the open-loop mode, the test parameters are manually input by the user.

[0090] In the above solution, by providing the user with a choice of control modes, it is convenient for the user to determine the method for obtaining the test parameters according to his own needs, making the method for obtaining the test parameters more diverse.

[0091] To better understand this solution, please refer to Figure 2 and Figure 3 , Figure 2 and Figure 3The controller is on the left and the HIL system is on the right. Specifically, taking the intelligent power distribution controller as an example, the controller to be tested is the intelligent power distribution controller. As the controller of the object under test, the intelligent power distribution controller has conventional power input, digital input, CAN communication, and LIN communication. In particular, it has multiple Efuse and multiple HSD. Efuse is an intelligent fuse that realizes the on and off of the secondary power distribution circuit by driving the external MOSFET (field effect transistor) and the internal MOSFET, and also has the function of collecting the voltage, current and temperature of each branch. In order to cooperate with the realization of signal-level current simulation and temperature simulation, it is necessary to customize the intelligent power distribution controller, and separately lead out the current collection circuit and temperature collection circuit on the Efuse in each circuit, and connect them to the cabinet-specific board channel of the HIL system.

[0092] In some embodiments, for each temperature connection channel derived from Efuse, the HIL needs to be equipped with a dedicated resistance simulation channel (NTC resistor of the original circuit is removed), or use an isolated differential voltage simulation output channel. The temperature output by the HIL system in this channel is the test temperature.

[0093] In some embodiments, for each current connection channel derived from Efuse, the HIL needs to be equipped with a dedicated isolated differential voltage analog output channel (the original shunt resistor is removed, and the output voltage is greater than 0). Differential voltage simulation avoids interference caused by common ground of signals on the one hand, and improves the output accuracy of signals on the other hand. The current output by the HIL system in this channel is the test current.

[0094] In some embodiments, for the current connection channel derived from the 12V branch Efuse, the HIL needs to be equipped with a dedicated isolated differential voltage analog output channel (the original shunt resistor is removed, and the minimum output voltage should be less than 0), so as to realize the simulation of the 12V branch charging and discharging scenarios.

[0095] In some embodiments, for each Efuse branch, the HIL needs to be equipped with a digital input channel (eg Figure 2 Channel 1 in the example is used for acquisition to be used for closed-loop verification and control of the controlled object model. In particular, since signal-level simulation is used, each Efuse branch does not need to be connected to an external load.

[0096] In some embodiments, for each HSD branch, the HIL needs to be equipped with a digital input channel (eg Figure 2 In addition, to avoid current verification errors during HSD operation, each channel should pull down the power resistor to ground. The pull-down resistor size is selected based on the HSD current diagnostic characteristics.

[0097] In some embodiments, for the cabinet of the HIL system, in addition to the conventional processor board, digital input and output board, and analog input and output board, a dual-channel independent power supply is also required. One of the power supplies simulates the DCDC power supply of the actual vehicle, and can be output in one direction. The other one simulates the 12V battery of the actual vehicle, and can be output in one direction or in two directions.

[0098] The HIL system includes IO channels, and the input signals of the IO channels are mainly conventional bus signals and hard-wired signals. Then, various test parameters are digitally converted and channel mapped, and finally output to the corresponding Efuse current acquisition and temperature acquisition pins through the hardware simulation board of the HIL system.

[0099] like Figure 3 As shown, the HIL system includes a driving model and an environmental model, as well as power consumption models of various loads (including controllers), such as a water pump power consumption model, an oil pump power consumption model, a direct drive pump power consumption model, etc. Figure 3 The arrows between the power consumption models are used to indicate the connection relationship between the loads. Among them, HIL simulates the load current by collecting the working status of Efuse and HSD, as well as the power consumption model of each virtual load, that is, determines the current consumption of the load end. Then the current distribution is performed to determine the power supply current. The method of current distribution according to the power supply method can be referred to above and will not be repeated here. When performing power supply voltage arbitration, the power supply voltage is determined. The specific method of power supply voltage arbitration can be referred to above and will not be repeated here. In addition, temperature simulation can also be performed to determine the test temperature.

[0100] To better understand the relationship between the above electrical device states, please refer to Figure 4 The testing method provided in this embodiment may further include the following steps:

[0101] Step S21: test scene input.

[0102] Specifically, test scenario inputs can be developed based on PDC functional requirements.

[0103] Step S22: Setting the vehicle working environment parameters according to the test scenario.

[0104] Specifically, based on the test scenario input, the external environment of PDC operation, including ambient temperature, road conditions, and traffic scenarios, is set and simulated through the controlled object model.

[0105] Step S23: Entering the awake state.

[0106] The wake-up state mainly simulates the input signals of the PDC power-on process. The input signals include: 1. Hard-wired signals, driver key hard-wired signals, door signals, and secondary wake-up signals of other vehicle controllers; 2. Bus signals: network management messages, residual ECU messages; 3. Voltage and current signals of each PDC branch (the current conforms to the change trend during the vehicle power-on process, and the voltage changes gradually or suddenly with the current).

[0107] Step S24: Determine the control mode.

[0108] If it is set to closed-loop mode, it enters working state one, and if it is set to open-loop mode, it enters working state two.

[0109] Step S25: Enter working state 1.

[0110] In working state 1: periodically collect the working status of each branch, calculate the power consumption of each direct-drive load, calculate the power consumption of the indirect-drive load, calculate the total current of the PDC load, dual-power supply current distribution, dual-power supply voltage arbitration and temperature simulation, and then control the differential voltage simulation output corresponding to the temperature and current through the IO module according to the simulator.

[0111] Step S26: Enter working state 2.

[0112] In working state 2: manually control the current of each load branch of PDC, manually control the current of PDC power supply, manually control the temperature of each branch of PDC, manually control the power supply voltage of PDC, and then control the differential voltage corresponding to temperature and current through the IO module according to the simulator, and simulate the output.

[0113] Step S27: Entering the power-down state.

[0114] In the power-down state, communication stops, and voltage reduction simulation and voltage simulation are performed.

[0115] Step S28: Determine whether the voltage fluctuates or the power is off.

[0116] Step S29: Entering the reset state.

[0117] In the reset state, the dual power supply has zero output control.

[0118] Step S30: Whether the sleep condition is met.

[0119] The sleep condition can be set according to the demand and is not specifically limited here.

[0120] Step S31: Entering sleep mode.

[0121] In the sleep state, current control (zero current, low power mode), voltage simulation, and temperature simulation are performed.

[0122] Among them, the reset state and the sleep state can be directly restored to the awake state to simulate the current, voltage and temperature response during the switching process of different states. When the conditions for the power-off state to the sleep state are not met (such as the PDC cannot enter sleep mode, the driver's intention changes), the power-off state can be directly restored to the working state.

[0123] In the above scheme, for the power + control coupling device such as the intelligent power distribution controller, HIL testing technology is used to establish the vehicle operation environment and low-voltage system model (including low-voltage load and low-voltage power supply), and the intelligent power distribution controller status is collected in real time to simulate the voltage, current and temperature of each branch of the intelligent power distribution controller in real time, and the low-voltage dual power supply system output (power supply current and / or power supply voltage) is simulated at the same time. Differential isolation is used, and continuous dynamic output is performed through signal-level simulation, and finally a closed-loop HIL test environment for the intelligent power distribution controller is formed, providing a signal-level test system and method for the intelligent power distribution controller test. The intelligent power distribution controller operation environment (especially the low-voltage system model) is established through HIL, and an energy and signal closed loop is formed with the intelligent power distribution controller, and the low-voltage system energy transfer process and low-voltage component status response under multiple scenarios (sleep, wake-up, work, abnormality) are dynamically simulated to ensure the rationality and authenticity of the test scenarios under the HIL environment.

[0124] In addition, for the intelligent power distribution controller under test, in order to meet the current closed loop, a preset power consumption model of each direct-drive load + indirect-drive low-voltage load was established, and a dual-power supply current distribution strategy was further constructed. In order to simulate the dual-input power supply behavior of the intelligent power distribution controller, a power supply voltage arbitration and control strategy was established. In order to match the signal-level HIL test system and method, the bench hardware environment and the intelligent power distribution controller hardware need to be matched and customized accordingly. The signal-level simulation method can easily realize the fault injection simulation of any channel combination under extreme conditions (high current, high temperature, overvoltage, undervoltage), which can not only verify the functional response of the intelligent power distribution controller, but also ensure that the power consumption is small and the risk factor is low during actual operation, thereby realizing the functional verification of the intelligent power distribution controller with low cost, high safety and easy reproduction.

[0125] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.

[0126] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as units or components can be combined or integrated into another subsystem, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0127] See also Figure 5 The test system 40 provided in this embodiment includes a first acquisition module 41, a second acquisition module 42 and a parameter determination module 43. The first acquisition module 41 is used to acquire the working state of each branch of the controller in the electrical device. The controller is used to perform power distribution management on the load in the electrical device. The working state includes an open state and a closed state. The second acquisition module 42 is used to determine the power consumption information of each virtual load based on the working state of each branch. The virtual load is a simulation model corresponding to each load in the electrical device. The parameter determination module 43 is used to determine the test parameters of each branch in the controller according to the power consumption information corresponding to each virtual load.

[0128] In the above scheme, the controller is used to manage the power distribution of the loads in the electrical device, that is, the controller can be directly or indirectly connected to each load, and can supply power to each load or stop supplying power to it by controlling the conduction or disconnection of each branch. The load can generate power consumption when working under power supply, so the power consumption information of each virtual load can be determined by obtaining the working status of each branch of the controller in the electrical device. Because each load is directly or indirectly connected to the controller, the test parameters can be determined for each branch in the controller according to the power consumption information of each virtual load, without manual determination, and this scheme is more convenient. In addition, each load inside the electrical device often has a certain connection with the controller, such as energy transfer, etc. By obtaining the power consumption information of the virtual load, determining the test parameters can better simulate the actual scene. In addition, by establishing a simulation model for the load, there is no need to use the actual electrical device for testing, which can improve the safety during the test process.

[0129] In some embodiments, the parameter determination module 43 is further used to send the test parameters to the controller so that each branch of the controller is tested under the test parameters.

[0130] In the above solution, by sending the test parameters to the controller, it is convenient for the controller to perform testing under the test parameters.

[0131] In some embodiments, the test parameters include one or more of a test current, a test voltage, and a test temperature.

[0132] In the above scheme, the test parameters include test current, test voltage and test temperature, so that the test condition of the intelligent controller under different current, voltage and temperature conditions can be tested. In addition, by configuring a transmission channel for each test parameter, the transmission of different test parameters does not affect each other.

[0133] In some embodiments, the test parameters include a test current, and sending the test parameters to the controller includes: transmitting the test parameters to the controller through a first transmission channel connected to each branch, the first transmission channel being an isolated differential voltage simulation channel; and / or, the test parameters include a test temperature, and sending the test parameters to the controller includes: transmitting the test parameters to the controller through a second transmission channel connected to each branch, the second transmission channel being one of a resistance simulation channel and an isolated differential voltage simulation channel.

[0134] In the above scheme, by using an isolated differential voltage simulation channel or a resistance simulation channel, the transmission of the test parameters is made more accurate. In addition, by configuring different transmission channels for the test current and the test temperature, the transmission of different test parameters does not affect each other.

[0135] In some embodiments, each branch includes a parameter acquisition loop, each parameter acquisition loop corresponds to a transmission channel, and the parameter determination module 43 sends the test parameters to the controller, including: transmitting the test parameters to the parameter acquisition loop of each branch.

[0136] In the above solution, a parameter acquisition loop is set for each branch, and the parameter acquisition loop has an acquisition function and can receive the test parameters transmitted to the loop.

[0137] In some embodiments, the first acquisition module 41 acquires the working status of each branch of the controller in the electrical device, including: using digital input channels connected to each branch in the controller to collect the working status to obtain the working status of each branch, wherein at least part of the digital input channels pull down the power resistor to ground.

[0138] In the above scheme, by using the digital input channel to connect with each branch in the intelligent controller, the working status of each branch can be collected. In addition, by pulling the power resistor of the digital input channel down to the ground, the occurrence of current verification errors when the branch is working can be reduced.

[0139] In some embodiments, at least part of the virtual loads are connected in series with a branch, and the second acquisition module 42 determines the power consumption information of each virtual load based on the working status of each branch, including: determining the power consumption of each virtual load based on a preset power consumption model of each virtual load and the working status of each branch, the preset power consumption model is used to represent the power consumption of each virtual load in at least one state; the parameter determination module 43 determines the test parameters of each branch in the controller according to the power consumption information corresponding to each virtual load, including: determining the power consumption of the corresponding branch based on the power consumption of the virtual load connected in series with each branch; and determining the test parameters of each branch using the power consumption of each branch.

[0140] In the above scheme, the power consumption of the virtual load is determined by pre-establishing the power consumption model of each virtual load, and then the power consumption of the corresponding branch is determined according to the power consumption of the virtual load connected in series with each branch, and then the test parameters of the branch can be determined according to the power consumption of the branch.

[0141] In some embodiments, power consumption includes current consumption, and the parameter determination module 43 is also used to: obtain the power supply mode of the intelligent controller; use the power consumption of each branch to determine the test parameters of each branch, including: based on the power supply mode and current consumption, determine the power supply current of the intelligent controller; use the power supply current to determine the power supply voltage provided for the intelligent controller.

[0142] In the above solution, by obtaining the power supply mode of the intelligent controller, current distribution can be achieved according to the power supply mode and the current consumption required by the branch, and then voltage arbitration can be achieved.

[0143] In some embodiments, the power supply method includes using at least one of a DCDC power module and a battery to power the intelligent controller, and the test current includes a test current of the DCDC power module and / or a test current of the battery; the parameter determination module 43 uses the power supply current to determine the power supply voltage provided to the intelligent controller, including: based on the test current, determining the low-voltage terminal voltage of the DCDC power module and the battery terminal voltage of the battery; in response to the power supply method that the DCDC power module and the battery are simultaneously connected to each branch, the supply voltage is the maximum value of the low-voltage terminal voltage and the battery terminal voltage; or, in response to the power supply method that one of the DCDC power module and the battery is connected to each branch, the voltage of the one connected to the branch is selected as the supply voltage.

[0144] In the above scheme, the power supply mode is that the DCDC power module and the battery are connected to each branch at the same time, the supply voltage is the maximum value of the low voltage terminal voltage and the battery terminal voltage, and the power supply mode is that one of the DCDC power module and the battery is connected to each branch, and the voltage of the one connected to the branch is selected as the supply voltage to reasonably control the dual power supply voltage output and avoid power supply competition (power supply parallel reverse charging).

[0145] In some embodiments, the DCDC power module is a low-voltage power module, the battery is a 12V battery, and each load is a low-voltage load.

[0146] In the above scheme, the DCDC power module is a low-voltage power module, the battery is a 12V battery, and each load is a low-voltage load, which can simulate the working condition of the intelligent controller under the conditions of low-voltage power supply and low-voltage load.

[0147] In some embodiments, the test parameters include test temperature, power consumption includes current consumption, and the parameter determination module 43 determines the test parameters of each branch in the controller according to the power consumption information corresponding to each virtual load: obtaining the initial ambient temperature; determining the temperature of each virtual load using the current consumption of each virtual load; and obtaining the test temperature by combining the initial temperature and the transfer temperature.

[0148] In the above scheme, considering that there may be an energy transfer relationship, such as a heat transfer relationship, between each load in the electrical device and the intelligent controller, by combining the transfer temperature of each virtual load to each branch, the actual situation can be better simulated, making the test more accurate.

[0149] In some embodiments, the parameter determination module 43 is also used to: obtain the test parameters of each branch in the intelligent controller of the electrical device in each state, respectively, the state of the electrical device includes at least one of the awake state, the working state, the power-off state, the reset state and the sleep state, the awake state is used to indicate the power-on process of the electrical device, the power-off state is used to indicate the power-off process of the electrical device, the reset state is used to indicate the process of unstable power supply or sudden power disconnection, the sleep state is the state after power-off is completed, and the working state is the state of the electrical device in the working process; the test parameters corresponding to the electrical device in each state are sent to the intelligent controller.

[0150] In the above scheme, by dynamically simulating multiple scenarios (sleep, wake-up, work, exception), the rationality and authenticity of the test scenarios can be guaranteed.

[0151] In some embodiments, the parameter determination module 43 is also used to: obtain the test requirements of the intelligent controller and determine the test scenario; set the external environmental parameters of the intelligent controller based on a preset driving model and / or environmental model; and determine the test parameters of the intelligent controller corresponding to each state of the electrical device under the external environmental parameters.

[0152] In the above scheme, by pre-establishing the driving model and the environmental model, and then setting the external environmental parameters according to these models, the test environment is made more reasonable and realistic.

[0153] In some embodiments, the parameter determination module 43 is also used to: determine the control mode selected by the user, the control mode including a closed-loop control mode and an open-loop control mode; in response to the control mode selected by the user being a closed-loop control mode, execute the step of determining the test parameters of each branch in the controller according to the power consumption information corresponding to each virtual load; in response to the control mode selected by the user being an open-loop control mode, receive the test parameters input by the user as test parameters.

[0154] In the above solution, by providing the user with a choice of control modes, it is convenient for the user to determine the method for obtaining the test parameters according to his own needs, making the method for obtaining the test parameters more diverse.

[0155] See also Figure 6 The electronic device 50 provided in this embodiment includes a memory 51 and a processor 52. The processor 52 is used to execute program instructions stored in the memory 51 to implement the steps in the above method embodiment.

[0156] Specifically, the processor 52 is used to control itself and the memory 51 to implement the steps in the above method embodiment. The processor 52 can also be called a CPU (Central Processing Unit). The processor 52 may be an integrated circuit chip with signal processing capabilities. The processor 52 can also be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field-programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. In addition, the processor 52 can be implemented by an integrated circuit chip.

[0157] In the above scheme, the controller is used to manage the power distribution of the loads in the electrical device, that is, the controller can be directly or indirectly connected to each load, and can supply power to each load or stop supplying power to it by controlling the conduction or disconnection of each branch. The load can generate power consumption when working under the condition of power supply, so the power consumption information of each virtual load can be determined by obtaining the working status of each branch of the controller in the electrical device. Because each load is directly or indirectly connected to the controller, the test parameters can be determined for each branch in the controller according to the power consumption information of each virtual load, without manual determination, and this scheme is more convenient. In addition, each load inside the electrical device often has a certain connection with the controller, such as energy transfer, etc. By obtaining the power consumption information of the virtual load, determining the test parameters can better simulate the actual scene. In addition, by establishing a simulation model for the load, there is no need to use the actual electrical device for testing, which can improve the safety during the test process.

[0158] See also Figure 7 The computer-readable storage medium 60 provided in this embodiment stores program instructions 61, and the program instructions 61 are executed by a processor. The program instructions 61 are used to implement the steps in any of the above method embodiments.

[0159] In the above scheme, the controller is used to manage the power distribution of the loads in the electrical device, that is, the controller can be directly or indirectly connected to each load, and can supply power to each load or stop supplying power to it by controlling the conduction or disconnection of each branch. The load can generate power consumption when working under the condition of power supply, so the power consumption information of each virtual load can be determined by obtaining the working status of each branch of the controller in the electrical device. Because each load is directly or indirectly connected to the controller, the test parameters can be determined for each branch in the controller according to the power consumption information of each virtual load, without manual determination, and this scheme is more convenient. In addition, each load inside the electrical device often has a certain connection with the controller, such as energy transfer, etc. By obtaining the power consumption information of the virtual load, determining the test parameters can better simulate the actual scene. In addition, by establishing a simulation model for the load, there is no need to use the actual electrical device for testing, which can improve the safety during the test process.

[0160] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.

[0161] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.

[0162] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as units or components can be combined or integrated into another subsystem, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0163] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of each implementation method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.

Claims

1. A testing method, characterized in that: include: Obtaining the working state of each branch of a controller in an electrical device, the controller being used to perform power distribution management on a load in the electrical device, the working state including an open state and a closed state; determining power consumption information of each virtual load based on the working state of each branch, the virtual load being a simulation model corresponding to each load in the electrical device; determining test parameters of each branch in the controller according to the power consumption information corresponding to each virtual load; Wherein, at least part of the virtual loads are connected in series with one of the branches, and the power consumption of the virtual loads is determined based on a preset power consumption model of each of the virtual loads and a working state of each of the branches, and the preset power consumption model is used to represent the power consumption of each of the virtual loads in at least one state; The power consumption includes current consumption, and the method further includes: Acquire a power supply mode of the controller; determine a power supply current provided to the controller based on the power supply mode and the current consumption; determine a power supply voltage provided to the controller using the power supply current; the power supply mode includes multiple modes.

2. The method according to claim 1, characterized in that: The method further comprises: The test parameters are sent to the controller so that each branch of the controller is tested under the test parameters.

3. The method according to claim 2, characterized in that The test parameters include one or more of a test current, a test voltage, and a test temperature.

4. The method according to claim 2 or 3, characterized in that: The test parameter includes a test current, and sending the test parameter to the controller includes: The test parameters are transmitted to the controller via a first transmission channel connected to each of the branches, wherein the first transmission channel is an isolated differential voltage simulation channel; and / or the test parameters include a test temperature, and sending the test parameters to the controller includes: transmitting the test parameters to the controller via a second transmission channel connected to each of the branches, wherein the second transmission channel is one of a resistance simulation channel and an isolated differential voltage simulation channel.

5. The method according to any one of claims 2 or 3, characterized in that: Each of the branches includes a parameter acquisition loop, each of the parameter acquisition loop corresponds to a transmission channel, and the sending of the test parameters to the controller includes: The test parameters are transmitted to the parameter acquisition circuit of each branch.

6. The method according to any one of claims 1 to 3, characterized in that: The obtaining of the working status of each branch of the controller in the electrical device includes: The working status is collected by using digital input channels connected to each branch in the controller to obtain the working status of each branch, wherein at least part of the digital input channels pull down the power resistor to the ground.

7. The method according to any one of claims 1 to 3, characterized in that: The determining, according to the power consumption information corresponding to each of the virtual loads, the test parameters of each of the branches in the controller comprises: Based on the power consumption of the virtual loads connected in series with each of the branches, the power consumption of the corresponding branches is determined respectively; and the test parameters of each of the branches are determined using the power consumption of each of the branches.

8. The method according to claim 1, characterized in that: The power supply method includes using at least one of a DCDC power module and a battery to power the controller, and the test current includes a test current of the DCDC power module and / or a test current of the battery; The step of determining the supply voltage provided to the controller by using the supply current includes: Based on the test current, determining the low voltage terminal voltage of the DCDC power module and the battery terminal voltage of the battery; In response to the power supply mode that the DCDC power module and the battery are simultaneously connected to each of the branches, the supply voltage is the maximum value of the low voltage terminal voltage and the battery terminal voltage; or, in response to the power supply mode that one of the DCDC power module and the battery is connected to each of the branches, the voltage of the one connected to the branch is selected as the supply voltage.

9. The method according to claim 8, characterized in that The DCDC power module is a low-voltage power module, the battery is a 12V battery, and each of the loads is a low-voltage load.

10. The method according to claim 7, characterized in that The test parameter includes a test temperature, the power consumption includes current consumption, and determining the test parameter of each branch in the controller according to the power consumption information corresponding to each virtual load includes: Acquire the initial temperature of the environment; determine the transfer temperature of each virtual load using the current consumption of each virtual load; and obtain the test temperature by combining the initial temperature and the transfer temperature.

11. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: The test parameters of each branch in the controller are respectively obtained when the electrical device is in each state, the state of the electrical device includes at least one of a wake-up state, a working state, a power-off state, a reset state and a sleep state, the wake-up state is used to indicate the power-on process of the electrical device, the power-off state is used to indicate the power-off process of the electrical device, the reset state is used to indicate the process of unstable power supply or sudden power disconnection, the sleep state is the state after power-off is completed, and the working state is the state of the electrical device in the working process; the test parameters corresponding to the electrical device in each state are sent to the controller.

12. The method according to claim 11, characterized in that The method further comprises: Acquire the test requirements of the controller and determine the test scenario; set the external environmental parameters of the controller based on a preset driving model and / or environmental model; and determine the test parameters of the controller corresponding to each state of the electrical device under the external environmental parameters.

13. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Determine the control mode selected by the user, the control mode including a closed-loop control mode and an open-loop control mode; in response to the control mode selected by the user being the closed-loop control mode, execute the step of determining the test parameters of each branch in the controller according to the power consumption information corresponding to each virtual load; in response to the control mode selected by the user being the open-loop control mode, receive the test parameters input by the user as the test parameters.

14. A testing system, characterized in that: include: A first acquisition module is used to acquire the working state of each branch of a controller in an electrical device, wherein the controller is used to perform power distribution management on a load in the electrical device, and the working state includes an open state and a closed state; A second acquisition module is used to determine the power consumption information of each virtual load based on the working state of each branch, wherein the virtual load is a simulation model corresponding to each load in the electrical device; wherein at least part of the virtual loads is connected in series with one of the branches, and the power consumption of each of the virtual loads is determined based on a preset power consumption model of each of the virtual loads and the working state of each of the branches, and the preset power consumption model is used to represent the power consumption of each of the virtual loads in at least one state; The power consumption includes current consumption. The second acquisition module is further used to acquire a power supply mode of the controller; based on the power supply mode and the current consumption, determine a power supply current provided to the controller; and using the power supply current, determine a power supply voltage provided to the controller; the power supply mode includes multiple modes; The parameter determination module is used to determine the test parameters of each branch in the controller according to the power consumption information corresponding to each virtual load.

15. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the processor is used to execute program instructions stored in the memory to implement the method according to any one of claims 1 to 13.

16. A computer-readable storage medium having program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the testing method according to any one of claims 1 to 13 is implemented.