Method, device and equipment for determining loss amount of switch unit, medium and vehicle

By automatically determining the start time of the switching unit opening and shutdown process and performing integral calculations, the problem of low loss power calculation efficiency in the prior art is solved, and more efficient and accurate determination of loss amount is achieved.

CN119986343APending Publication Date: 2025-05-13SHANGHAI LIXIANG AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311502474.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-10
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

In the prior art, the power loss calculation efficiency of the switching unit is low, and it is necessary to manually select the waveform starting point, resulting in extremely low calculation efficiency.

Method used

By obtaining the voltage and current values ​​of the switching unit under each sampling step in the preset time period, the switching unit is cycled to determine the start time of each opening and closing process of the switching unit, calculate the target opening and closing time period, and integrate the voltage and current values ​​in the time period to automatically and accurately obtain the loss amount.

Benefits of technology

There is no need to manually select the starting point of the switch unit on and off process, which significantly improves the efficiency of determining the loss and improves the calculation accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119986343A_ABST
    Figure CN119986343A_ABST
Patent Text Reader

Abstract

The invention discloses a loss determination method and device of a switch unit, equipment, a medium and a vehicle. The method comprises the following steps: acquiring a voltage value and a current value of the switch unit under each sampling step length in a first preset time period; for each sampling step length, cyclically executing the following steps: determining the starting time of each turn-on process and turn-off process of the switch unit: determining the first sampling step length as the starting time of the turn-on process under the condition of determining that the voltage value under the first sampling step length is smaller than a preset turn-on voltage threshold value; when it is determined that the voltage value under the second sampling step length is larger than the preset turn-off voltage threshold value, the second sampling step length is determined as the starting moment of the turn-off process; according to the starting time of the switching-on process and the starting time of the switching-off process, calculating a target switching-on and switching-off time period of one switching-on and switching-off process of the switching unit; and performing integral calculation on the voltage value and the current value in the target on-off time period to obtain a target loss amount. The effect of efficiently determining the loss of the switch unit is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure belongs to the field of data processing technology, and specifically relates to a method, device, equipment, medium and vehicle for determining the loss amount of a switch unit. Background Art

[0002] The power module in the car is used to convert and condition the voltage and current of the power supply to meet the needs of different electrical equipment in the car. The power module includes a switch unit, and the opening and closing of the switch unit is used to control the working state of the power module. The switch unit will lose some energy when it is opened and closed, so the power module will lose some energy. The power loss of the power module is one of the important indicators of its performance evaluation. In order to improve the calculation accuracy of the power loss of the switch unit in the power module, it is necessary to refine the three dimensional parameters of the temperature, voltage and current of the switch unit as much as possible. Through a large number of switch units, test experiments are carried out to extract the loss data and corresponding voltage and current values ​​of the switch unit under different temperature conditions. The workload is very large.

[0003] At present, the test loss calculation of the switch unit is performed by the calculation function of the oscilloscope itself. The integral calculation is performed for each turn-on and turn-off process of the target electrical parameter (including current and voltage) waveform displayed in the oscilloscope. Each calculation requires the waveform starting point to be manually selected on the oscilloscope screen, that is, the starting point of each turn-on process and turn-off process is manually selected. In this way, the efficiency of determining the power loss of the switch unit is extremely low. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a method, device, equipment, medium and vehicle for determining the loss amount of a switch unit, so as to achieve the effect of efficiently determining the loss of the switch unit.

[0005] The technical solution of this application is as follows:

[0006] In a first aspect, a method for determining a loss amount of a switch unit is provided, the method comprising:

[0007] Acquire the voltage value and current value of the switch unit at each sampling step within a first preset time period;

[0008] For each sampling step, the following steps are executed cyclically to determine the start time of each turn-on process and the start time of each turn-off process of the switch unit:

[0009] When it is determined that the voltage value at the first sampling step is less than the preset turn-on voltage threshold, determining the first sampling step as the start time of the turn-on process, and recording the first sampling step;

[0010] In the case where it is determined that the voltage value at the second sampling step is greater than the preset shutdown voltage threshold, the second sampling step is determined as the start time of the shutdown process, and the second sampling step is recorded, wherein each of the sampling steps includes the first sampling step and the second sampling step, and the initial values ​​of the first sampling step and the second sampling step are both 1;

[0011] Calculating a target on-off time period of an on-off process of the switch unit according to the start time of the on-off process and the start time of the off-off process, wherein the on-off process includes the on-off process and the off-off process;

[0012] The voltage value and the current value within the target breaking time period are integrated and calculated to obtain the target loss amount of the switch unit within the target breaking time period.

[0013] In a second aspect, a device for determining a loss amount of a switch unit is provided, the device comprising:

[0014] A first acquisition module, used to acquire a voltage value and a current value of the switch unit at each sampling step within a first preset time period;

[0015] The first determination module is used to cyclically execute the following steps for each sampling step to determine the start time of each turn-on process and the start time of each turn-off process of the switch unit:

[0016] When it is determined that the voltage value at the first sampling step is less than the preset turn-on voltage threshold, determining the first sampling step as the start time of the turn-on process, and recording the first sampling step;

[0017] In the case where it is determined that the voltage value at the second sampling step is greater than the preset shutdown voltage threshold, the second sampling step is determined as the start time of the shutdown process, and the second sampling step is recorded, wherein each of the sampling steps includes the first sampling step and the second sampling step, and the initial values ​​of the first sampling step and the second sampling step are both 1;

[0018] A first calculation module, configured to calculate a target on-off time period of an on-off process of the switch unit according to a start time of the on-off process and a start time of the off-off process, wherein the on-off process includes the on-off process and the off-off process;

[0019] The second calculation module is used to perform integral calculation on the voltage value and the current value within the target breaking time period to obtain the target loss amount of the switch unit within the target breaking time period.

[0020] In the third aspect, an embodiment of the present application provides a device for determining the loss amount of a switching unit, the device comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method for determining the loss amount of a switching unit described in any one of the embodiments of the present application.

[0021] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method for determining the loss amount of a switching unit described in any of the embodiments of the present application are implemented.

[0022] In a fifth aspect, an embodiment of the present application provides a vehicle, the vehicle comprising at least one of the following:

[0023] The loss determination device of the switch unit according to the second aspect;

[0024] The loss amount determination device of the switch unit according to the third aspect;

[0025] A computer-readable storage medium as described in the fourth aspect.

[0026] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:

[0027] In the embodiment of the present application, the voltage value and the current value of the switch unit at each sampling step in the first preset time period are obtained, and then for each sampling step, the following steps are cyclically performed to determine the start time of each turn-on process and the start time of the turn-off process of the switch unit: when it is determined that the voltage value at the first sampling step is less than the preset turn-on voltage threshold, the first sampling step is determined to be the start time of the turn-on process, and the first sampling step is recorded; and when it is determined that the voltage value at the second sampling step is greater than the preset turn-off voltage threshold, the second sampling step is determined to be the start time of the turn-off process, and the second sampling step is recorded. The initial values ​​of the sampling step and the second sampling step are both 1. According to the start time of the opening process and the start time of the closing process, the target opening and closing time period of the switching unit is calculated, and then the voltage value and the current value in the target opening and closing time period are integrated and calculated, and the target loss of the switching unit in the target opening and closing time period can be automatically and accurately obtained. In this way, the user does not need to manually select the starting point of each opening and closing process of the switching unit on the oscilloscope screen, which improves the efficiency of determining the starting point of each opening and closing process of the switching unit, and further improves the efficiency of determining the loss of the switching unit in the opening and closing process.

[0028] It should 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

[0029] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application, and do not constitute an improper limitation on the present application.

[0030] Figure 1 is a theoretical waveform diagram of the switch unit of the power module provided in the embodiment of the present application when it is turned on and off;

[0031] Figure 2 It is a flow chart of a method for determining the loss amount of a switch unit provided in an embodiment of the first aspect of the present application;

[0032] Figure 3 It is a schematic diagram of current values ​​and voltage values ​​of a switch unit collected by a sensor and displayed on an oscilloscope during three on-off processes according to an embodiment of the first aspect of the present application;

[0033] Figure 4 It is a flow chart of a method for determining the loss amount of a switch unit provided in an embodiment of the first aspect of the present application;

[0034] Figure 5 It is a structural schematic diagram of a device for determining the loss amount of a switch unit provided in an embodiment of the second aspect of the present application;

[0035] Figure 6 It is a structural schematic diagram of an electronic device provided in an embodiment of the third aspect of the present application. DETAILED DESCRIPTION

[0036] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0037] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0038] The method for determining the loss of a switch unit provided in the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0039] Before introducing the method for determining the loss of the switch unit in the embodiment of the present application, the background technology corresponding to the embodiment of the present application is first introduced. The power module is a module used to supply power to different electrical devices in the car. If the power module has too much loss during the process of turning on and off, the energy used to supply power to the electrical devices in the car will be reduced, which is not conducive to the driving of the car. Figure 1 As shown, Figure 1 is the theoretical waveform diagram of the switch unit in the power module when it is turned on and off, where: Figure 1 Figure (a) is the theoretical waveform of the switch unit when it is turned on. Figure 1 Figure (b) is the theoretical waveform of the switch unit when it is turned off. Figure 1 Medium V ds is the drain voltage of the switch unit, V gs is the gate voltage of the switching unit, U dc is the bus voltage of the switch unit, I L is the inductor current of the switching unit, I d is the drain current of the switching unit.

[0040] As described in the background technology section, in the prior art, the efficiency is low when determining the loss amount of the power module during the opening and closing process. In order to solve the above problem, the embodiments of the present application provide a method, device, equipment, medium and vehicle for determining the loss amount of the power module, by obtaining the voltage value and current value of the switch unit at each sampling step in a first preset time period, and then for each sampling step, cyclically executing the following steps to determine the start time of each opening process and the start time of the closing process of the switch unit: when it is determined that the voltage value at the first sampling step is less than the preset opening voltage threshold, determine the first sampling step as the start time of the opening process, and record the first sampling step, and then determine the voltage value at the second sampling step is greater than the opening voltage threshold; Under the condition of a preset shutdown voltage threshold, the second sampling step is determined as the starting time of the shutdown process, and the second sampling step is recorded. The initial value of the sampling step is 1. According to the starting time of the opening process and the starting time of the closing process, the target opening and closing time period of the switch unit is calculated, and then the voltage value and the current value in the target opening and closing time period are integrated and calculated, and the target loss of the switch unit in the target opening and closing time period can be accurately obtained. In this way, there is no need for the user to manually select the starting point of each opening and closing process of the switch unit on the oscilloscope screen, which improves the efficiency of determining the starting point of each opening and closing process of the switch unit, and thus improves the efficiency of determining the loss of the switch unit in the opening and closing process.

[0041] Figure 2It is a flow chart of a method for determining the loss amount of a switch unit provided in an embodiment of the present application. The executor of the method for determining the loss amount of the switch unit may be a server. It should be noted that the above-mentioned executor does not constitute a limitation on the present application.

[0042] like Figure 2 As shown, the method for determining the loss amount of a switch unit provided in an embodiment of the present application may include steps 210 to 240.

[0043] Step 210: Obtain the voltage value and current value of the switch unit at each sampling step within a first preset time period.

[0044] Among them, the first preset time period can be a period of time before the current time, and can be specifically set according to user needs, and is not limited in the embodiments of the present application.

[0045] The sampling step may be the sampling time of the voltage value and the current value of the switch unit. For example, one sampling step may be every 1 second.

[0046] In some embodiments of the present application, the voltage value and the current value of the switch unit at each sampling step in the first preset time period may be acquired by a sensor.

[0047] It should be noted that, in the embodiment of the present application, one end of the sensor is connected to the switch unit, and the other end of the sensor is connected to the oscilloscope, so that the sensor transmits the measured current value and voltage value to the oscilloscope and displays them on the oscilloscope.

[0048] In one example, reference Figure 3 , Figure 3 The current and voltage values ​​of the switch unit collected by the sensor and displayed on the oscilloscope during the three switching processes, where the sampling step is 1 second, that is, the current and voltage values ​​of the switch unit are collected every 1 second. Figure 3 The starting time of the medium wavelength is the 1st second. Figure 3 Each pulse represents a switching process of the switch unit, wherein the falling edge of each pulse represents the switching process of the switching process of this pulse, and the rising edge of each pulse represents the switching process of the switching process of this pulse. The distance between each two adjacent pulses is the interval time between two switching processes.

[0049] It should be noted that in Figure 3In the figure, point A is the moment when the first turn-on process begins, point D is the moment when the first turn-off process begins, point C is the moment when the first turn-on process ends, and point B is the moment when the first turn-off process ends. There are 50 sampling points before point A. Curve 31 is a curve composed of current values ​​at each sampling step displayed in the oscilloscope, and curve 32 is a curve composed of voltage values ​​at each sampling step displayed in the oscilloscope.

[0050] Step 220: for each sampling step, the following steps are executed cyclically to determine the start time of each turn-on process and the start time of each turn-off process of the switch unit:

[0051] When it is determined that the voltage value at the first sampling step is less than the preset turn-on voltage threshold, the first sampling step is determined as the start time of the turn-on process, and the first sampling step is recorded;

[0052] When it is determined that the voltage value at the second sampling step is greater than the preset shutdown voltage threshold, the second sampling step is determined as the start time of the shutdown process, and the second sampling step is recorded, wherein the initial value of the sampling step is 1, that is, the voltage value is obtained and determined from the first sampling step. Figure 3 As shown, the voltage value is obtained and judged from the first second whether it is less than the preset turn-on voltage threshold or greater than the preset turn-off voltage threshold.

[0053] The preset turn-on voltage threshold may be a voltage threshold preset when a switch unit is turned on. In some embodiments of the present application, when the switch unit is turned on, the voltage value will drop from a value to near 0, for example, from 100V to 0V, and the preset turn-on threshold may be a value between 0-100. The specific value may be selected according to user needs and is not limited in the embodiments of the present application.

[0054] The preset shutdown voltage threshold may be a voltage threshold when a switch unit is shut down, and the preset shutdown threshold is determined based on the bus voltage of the switch unit, and may be specifically 0.6 times the bus voltage of the switch unit. The specific number of times the bus voltage of the switch unit is taken by the preset shutdown voltage threshold can be selected according to user needs, and is not limited in the embodiments of the present application.

[0055] In some embodiments of the present application, when it is determined that the voltage value of the first sampling step is less than the preset turn-on voltage threshold, it is proved that the switch unit begins to enter the turn-on process at the first sampling step, that is, the first sampling step is determined as the moment of entering the turn-on process, that is, Figure 3 At the midpoint A. When it is determined that the voltage value of the second sampling step is greater than the preset shutdown voltage threshold, it is proved that the switch unit begins to enter the shutdown process at the second sampling step, that is, the second sampling step is determined as the moment of entering the shutdown process, that is, Figure 3 At the position of the midpoint D, the first sampling step length and the second sampling step length are recorded as the starting time of the switching-on process and the starting time of the switching-off process respectively.

[0056] Continue to refer Figure 3 , with the preset turn-on voltage threshold as 10V and the preset turn-off voltage threshold as 300V, starting from the 1st second, obtain the voltage value of the 1st second to see whether it is less than 10V. If it is less than, it is determined that the switch unit enters the turn-on process in the 1st second. If it is not less than, it is determined that it has not entered the turn-on process in the 1st second, and continue to judge whether the voltage in the 2nd second is less than the preset turn-on voltage threshold.

[0057] After determining that the switch enters the opening process in the first second, the number of pulses is increased by 1, and then it is determined whether the voltage value in the first second is greater than 300V. If it is greater, it is determined that the switch unit enters the closing process in the first second. If it is not greater, it means that the switch unit is still in the opening process in the first second.

[0058] Step 230: Calculate a target on / off time period of an on / off process of the switch unit according to the start time of the on process and the start time of the off process.

[0059] The target on-off time period may be the total time period of an on-off process of the switch unit, that is, the on-off process may include the on-off process and the off-off process of the switch unit. Figure 3 As shown, the target interruption time period is Figure 3 The time taken between AB, where point A is the starting time of the switch unit's turn-on process, point B is the final closing time of the switch unit's turn-off process, and point D is the starting time of the switch unit's turn-off process.

[0060] In some embodiments of the present application, a target on-off time period of an on-off process of the switch unit may be determined according to the recorded start time of the on-off process and the start time of the off-off process.

[0061] In one example, if it is determined that the switch unit enters the opening process at the 1st second and the last closing moment is at the 25th second during a certain opening and closing process, then the target opening and closing time period of the opening and closing process is determined to be 25 seconds.

[0062] Step 240: Integrate the voltage value and the current value within the target breaking time period to obtain the target loss of the switch unit within the target breaking time period.

[0063] The target loss amount may be the loss amount of the switch unit within the target breaking time period.

[0064] In some embodiments of the present application, the voltage value and the current value within the target breaking time period may be integrated and calculated to obtain the target loss amount of the switch unit within the target breaking time period.

[0065] In some embodiments of the present application, since the placement of the Rogowski coil in the sensor cannot ensure strict verticality with the object being measured (i.e., the switching unit), as well as other error factors, the voltage and current values ​​collected by the sensor will produce a certain bias, and these bias values ​​need to be taken into account when calculating the loss.

[0066] Therefore, in order to accurately determine the target loss amount within the target breaking time period, before step 240, the above method may further include:

[0067] Respectively obtaining a first average value of a voltage value of the switch unit in a target disconnection time period and a second average value of a current value of the switch unit in a partial time period before the target disconnection time period;

[0068] Step 240 may specifically include:

[0069] Calculate the difference between the voltage value at each sampling step in the target disconnection time period and the first average value to obtain a target voltage value set;

[0070] Calculate the difference between the current value at each sampling step in the target disconnection time period and the second average value to obtain a target current value set;

[0071] The target voltage value set and the target current value set within the target breaking time period are integrated and calculated to obtain the target loss amount of the switch unit within the target breaking time period.

[0072] Among them, the first average value may be the average value of the voltage value of the switch unit in the target disconnection time period, and specifically may be the bias value of the voltage value of the switch unit in the target disconnection time period, that is, the deviation value of the voltage of the switch unit in the target disconnection time period caused by the Rogowski coil of the sensor. The second average value may be the average value of the current value in a partial time period before the switch unit is first disconnected, and specifically may be the bias value of the current value of the switch unit in the target disconnection time period, that is, the deviation value of the current of the switch unit in the target disconnection time period caused by the Rogowski coil of the sensor. The partial time period here may be any period of time before the switch unit is first disconnected, for example, if the switch unit is first disconnected at 8:50, then the average value of the current value in a period of time before 8:50 may be selected, for example, the average value of the current value in the period between 8:40 and 8:50 may be selected.

[0073] In some embodiments of the present application, the target voltage value set may be a set of differences between the voltage value calculated at each sampling step in the target disconnection time period and the first average value. The target current value set may be a set of differences between the current value calculated at each sampling step in the target disconnection time period and the second average value.

[0074] In some embodiments of the present application, the voltage value and current value within the target breaking time period can be corrected based on a first average value of the voltage value of the switch unit within the target breaking time period and a second average value of the current value of the switch unit in a partial time period before the target breaking time period to eliminate the bias of the voltage value and current value collected by the sensor, and then the corrected target voltage value set and target current value set within the target breaking time period are integrated and calculated to obtain the target loss amount of the switch unit within the target breaking time period.

[0075] In an embodiment of the present application, by respectively obtaining a first average value of the voltage value of the switch unit in the target disconnection time period and a second average value of the current value of the switch unit in a partial time period before the target disconnection time period, and then calculating a set of difference values ​​between the voltage value at each sampling step in the target disconnection time period and the first average value, the voltage value in the target disconnection time period can be corrected to obtain a target voltage value set, and then by calculating the difference between the current value at each sampling step in the target disconnection time period and the second average value, the current value in the target disconnection time period can be corrected to obtain a target current value set, and then the target voltage value set and the target current value set in the target disconnection time period are integrated and calculated, so that the target loss of the switch unit in the target disconnection time period can be accurately determined.

[0076] In some embodiments of the present application, since the target disconnection time period is divided into the on time period of the opening process and the off time period of the closing process, the average value of the on time period of the opening process and the average value of the off time period of the closing process should be determined separately when determining the first average value. That is, the first average value may include a first sub-average value and a second sub-average value, wherein the first sub-average value may be the voltage average value of the on time period of the opening process within the target disconnection time period, specifically, it may be the bias value of the voltage value of the on time period of the opening process of the switch unit within the target disconnection time period, that is, the deviation value of the voltage of the on time period of the opening process of the switch unit within the target disconnection time period caused by the Rogowski coil of the sensor, and the second sub-average value may be the voltage average value of the off time period of the closing process within the target disconnection time period, specifically, it may be the bias value of the voltage value of the off time period of the closing process of the switch unit within the target disconnection time period, that is, the deviation value of the voltage of the off time period of the closing process of the switch unit within the target disconnection time period caused by the Rogowski coil of the sensor.

[0077] In order to further accurately determine the target loss amount of the switch unit in the target breaking time period, the step of obtaining the first average value of the voltage value of the switch unit in the target breaking time period includes:

[0078] Respectively obtaining a first sub-average value of a voltage value of the switch unit in a whole or part of a time period of a turn-on process and a second sub-average value of a voltage value in a whole or part of a time period of a turn-off process;

[0079] The step of calculating the difference between the voltage value at each sampling step in the target disconnection time period and the first average value to obtain the target voltage value includes:

[0080] Calculate a set of differences between a voltage value at each sampling step when the switch unit is in the on process during the target off time period and a first sub-average value to obtain a first target voltage value set;

[0081] Calculate a set of differences between a voltage value at each sampling step when the switch unit is in a shutdown process within a target disconnection time period and a second sub-average value to obtain a second target voltage value set;

[0082] The step of integrating and calculating the target voltage value set and the target current value set within the target breaking time period to obtain the target loss amount of the switch unit within the target breaking time period includes:

[0083] Integrating and calculating the first target voltage value set and the target current value set of the switch unit in the on-time period to obtain a first loss amount;

[0084] Integrating the second target voltage value set and the target current value set of the switch unit in the off process during the target off time period to obtain a second loss amount;

[0085] The sum of the first loss amount and the second loss amount is determined as the target loss amount.

[0086] The first target voltage value set may be a set of differences between the voltage value at each sampling step when the switch unit is in the on process and the first sub-average value calculated within the target on-off time period. The second target voltage value set may be a set of differences between the voltage value at each sampling step when the switch unit is in the off process and the second sub-average value calculated within the target on-off time period.

[0087] The first loss amount may be the loss amount of the switch unit during the on-time within the target on-time period. The second loss amount may be the loss amount of the switch unit during the off-time within the target on-time period.

[0088] In some embodiments of the present application, the average value of the voltage value of the switch unit in all time periods or part of the time period during the opening process can be obtained first to obtain a first sub-average value, and the average value of the voltage value of the switch unit in all time periods or part of the time period during the closing process can be obtained to obtain a second sub-average value, and then the voltage value in the opening process within the target opening and closing time period is corrected based on the first sub-average value to obtain a first target voltage value set, and the voltage value in the closing process within the target opening and closing time period is corrected based on the second sub-average value to obtain a second target voltage value set, and then the first target voltage value set and the target current value set of the switch unit in the opening process within the target opening and closing time period are integrated and calculated to obtain a first loss amount, and the second target voltage value set and the target current value set of the switch unit in the closing process within the target opening and closing time period are integrated and calculated to obtain a first loss amount, so that the target loss amount of the switch unit in the target opening and closing time period can be obtained according to the first loss amount and the second loss amount.

[0089] In an embodiment of the present application, a first sub-average value is obtained by obtaining the average value of the voltage values ​​of the switch unit in all time periods or part of time periods during the turn-on process, and a second sub-average value is obtained by obtaining the average value of the voltage values ​​of the switch unit in all time periods or part of time periods during the turn-off process, and then the voltage value in the turn-on process in the target turn-off time period is corrected based on the first sub-average value to obtain a first target voltage value set, and the voltage value in the turn-off process in the target turn-off time period is corrected based on the second sub-average value to obtain a second target voltage value set, and then the first target voltage value set and the target current value set of the switch unit in the turn-on process in the target turn-off time period are integrated and calculated to obtain a first loss amount, and the second target voltage value set and the target current value set of the switch unit in the turn-off process in the target turn-off time period are integrated and calculated to obtain a first loss amount, so that the target loss amount of the switch unit in the target turn-off time period can be accurately obtained based on the first loss amount and the second loss amount.

[0090] In some embodiments of the present application, to determine the target loss amount, the time period of the on-off process and the time period of the off-off process within the target on-off time period must first be determined. In order to accurately determine the time period of the on-off process and the time period of the off-off process within the target on-off time period, step 230 may specifically include:

[0091] According to the start time of the switching process and the correspondence between the preset sampling step and the start time of the switching process of the switch unit, determine the target switching time range corresponding to the start time of the switching process;

[0092] According to the start time of the shutdown process and the correspondence between the preset sampling step and the start time of the shutdown process of the switch unit, determine the target shutdown time range corresponding to the start time of the shutdown process;

[0093] According to the target on-time range and the target off-time range, a target on-off time period of an on-off process of the switch unit is calculated.

[0094] The target opening time range may be the time period of the opening process within the target opening time period. Figure 3 The target off time range can be the time period of the off process within the target on-off time period. Figure 3 The time range of the DB segment in .

[0095] The corresponding relationship between the preset sampling step length and the turn-on time range of the turn-on process of the switch unit can be specifically expressed by the following formula (1):

[0096] The start time of the opening process ±(0.5e-6 / sampling step) (1)

[0097] In some embodiments of the present application, the target opening time range corresponding to the first sampling step can be determined according to the start time of the opening process and the above formula (1), that is, Figure 3 The time range of the AC segment in .

[0098] In some embodiments of the present application, the correspondence between the preset sampling step size and the turn-off time range of the turn-off process of the switch unit may be as shown in the following formula (2):

[0099] The start time of the shutdown process ±(0.5e-6 / sampling step) (2)

[0100] The sampling steps in the above formulas (1) and (2) are the time intervals at which the voltage and current values ​​are collected. Figure 3 The sampling step length is 1 second. The constant 0.5e-6 in the above formula (1) and formula (2) is related to the performance of the switch unit, and the constant number is different for different switch units.

[0101] In some embodiments of the present application, the target off-time range corresponding to the second sampling step length can be determined according to the second sampling step length and the above formula (2), that is, Figure 3 The time range of the DB segment in .

[0102] In some embodiments of the present application, the target disconnection time period can be accurately determined according to the target disconnection time range and the target opening time range, that is, according to Figure 3 The time range of the AC segment and Figure 3 The time range of the DB segment in the Figure 3 The time range of the middle AB segment.

[0103] In an embodiment of the present application, the target turn-on time range corresponding to the start time of the turn-on process can be determined according to the start time of the turn-on process and the correspondence between the preset sampling step and the start time of the turn-on process, and then the target turn-off time range corresponding to the start time of the turn-off process can be determined according to the start time of the turn-off process and the correspondence between the preset sampling step and the start time of the turn-off process of the switching unit, and then the target turn-on time range and the target turn-off time range can be accurately determined for a turn-on and turn-off process of the switching unit.

[0104] In some embodiments of the present application, in order to accurately determine the target on-off time period of a switching process of the switch unit, the target on-off time period of a switching process of the switch unit is calculated according to the target on-time range and the target off-time range, which may specifically include:

[0105] Calculate the difference between the end time of the opening process and the start time of the closing process;

[0106] The sum of the difference, the target on-time range and the target off-time range is used as the target on-off time period of an on-off process of the switch unit.

[0107] The end time of the opening process can be the maximum time value in the target opening time range, that is, Figure 3 The moment corresponding to C in .

[0108] According to the difference between the end time of the opening process and the start time of the closing process, the time period between the target opening time range and the target closing time range within the target opening time period can be obtained, that is, Figure 3 The time between CDs.

[0109] In an embodiment of the present application, by calculating the difference between the end time of the opening process and the start time of the closing process, and then taking the sum of the difference, the target opening time range and the target closing time range as the target opening and closing time period of a single opening and closing process of the switch unit, the target opening and closing time period of a single opening and closing process of the switch unit can be accurately determined.

[0110] In some embodiments of the present application, since the current value of the switch unit at the start of the opening process displayed in the oscilloscope is a value that fluctuates back and forth, in order to accurately determine the current value of the switch unit at the start of the opening process, after determining the target opening time range corresponding to the start time of the opening process according to the start time of the opening process and the correspondence between the preset sampling step and the start time of the opening process of the switch unit, the above-mentioned method may also include:

[0111] Fitting the current value of the switch unit within the target opening time range to obtain a current curve of the switch unit within the target opening time range;

[0112] Calculating a slope between a first sampling step and a next sampling step of the first sampling step in the current curve;

[0113] The current value at the first sampling step is calculated according to the current value at the next sampling step of the first sampling step and the slope.

[0114] In some embodiments of the present application, the current value of the switch unit within the target turn-on time range can be fitted to obtain the current curve of the switch unit within the target turn-on time range. Specifically, the current values ​​of discrete switch units within the target turn-on time range can be fitted to obtain a smooth curve connecting the current values ​​of the switch units within the target turn-on time range, and then the slope between the first sampling step and the next sampling step of the first sampling step in the current curve is calculated. Specifically, the difference between the current values ​​of the first sampling step and the next sampling step of the first sampling step can be divided by the difference in time between the first sampling step and the next sampling step of the first sampling step. In this way, the current value at the first sampling step can be calculated based on the current value at the fourth sampling step and the slope, and the current value is accurate and not fluctuating.

[0115] In an embodiment of the present application, the current value of the switching unit within the target turn-on time range is fitted to obtain the current curve of the switching unit within the target turn-on time range, and then the slope between the first sampling step and the next sampling step of the first sampling step in the current curve is calculated. Then, according to the current value at the next sampling step of the first sampling step and the slope, the current value at the first sampling step can be accurately obtained, so as to facilitate subsequent other calculations based on the current value at the first sampling step, providing a calculation basis for calculations in other directions.

[0116] In some embodiments of the present application, in order to more clearly understand the technical solutions of the embodiments of the present application, Figure 3 The example in the embodiment of the present application is used to illustrate the method for determining the loss amount of the switch unit provided by the embodiment of the present application, such as Figure 4As shown, the method for determining the loss amount of the switch unit may include steps 401 to 415:

[0117] Step 401: Obtain the voltage value and current value of the switch unit at each sampling step within a first preset time period.

[0118] Step 402: Initialize i=1, pulse=0.

[0119] Here i is the sampling step, pulse is the number of pulses, and pulse increases by 1 each time the switch unit is opened.

[0120] Step 403 , determine whether Uds(i) is less than a preset turn-on voltage threshold, if so, execute step 404 , if not, execute step 405 .

[0121] Step 404: Determine that the first activation occurs and record the value of i.

[0122] Step 405, pulse = [((i-50) / 100)+1].

[0123] The I-50 here is because Figure 3 There are 50 sampling points before the first opening, so these 50 sampling points should be subtracted. The 100 here is because Figure 3 Each pulse consists of 100 sampling points.

[0124] Step 406 , determine whether the first opening occurs and whether Uds(i) is greater than the preset shutdown voltage threshold. If so, execute step 407 ; if not, execute step 408 .

[0125] Step 407: Record the value of i.

[0126] Step 408 : Is pulse greater than 1 and is Uds(i) greater than a preset turn-off voltage threshold? If so, execute step 409 ; if not, execute step 410 .

[0127] Step 409: determine pulse=1, and record the value of i.

[0128] Step 410, i=i+1.

[0129] Step 411, whether i is greater than 600, if so, execute step 412, if not, return to execute step 403.

[0130] The 600 here is because Figure 3 In this example, there are 100 sampling points for one pulse, 100 sampling points between two adjacent pulses, and 50 sampling points after the third pulse. Figure 3 There are 600 sampling points in total.

[0131] Step 412: record the start time of each opening process and the start time of each closing process, and calculate the target opening time range and the target closing time range.

[0132] Here, the target turn-on time range and the target turn-off time range are calculated according to the start time of each turn-on process and the start time of the turn-off process. The target turn-on time range corresponding to the start time of the turn-on process can be determined according to the start time of the turn-on process and the correspondence between the preset sampling step and the start time of the turn-on process of the switch unit in the above-mentioned embodiment; the target turn-off time range corresponding to the start time of the turn-off process can be determined according to the start time of the turn-off process and the correspondence between the preset sampling step and the start time of the turn-off process of the switch unit. The process is consistent and is not limited here.

[0133] Step 413: Calculate the bias values ​​of the voltage and current of each breaking process.

[0134] The calculation of the bias values ​​of the voltage and current of each breaking process here can refer to the process of calculating the first sub-average value, the second sub-average value and the second average value in the above embodiment, which will not be repeated here.

[0135] Step 414: Calculate the actual voltage value and the actual current value of each breaking process.

[0136] The calculation of the actual voltage value and the actual current value of each breaking process here can refer to the process of calculating the first target voltage value set, the second target voltage value set and the target current value set in the above embodiment, which will not be repeated here.

[0137] Step 415: Calculate the target loss, the first loss, the second loss, the current value at the switching-on time, and the average value of the voltage in a partial time period before switching-on.

[0138] The current value at the time of opening here can refer to the current value at the first sampling step in the above embodiment. The average value of the voltage in the partial time period before opening here can be based on Figure 3 As shown, the average value of the voltage in the partial time period before point A in the waveform diagram is obtained.

[0139] It should be noted that the method for determining the loss of a switch unit provided in the embodiment of the present application may be executed by a device for determining the loss of a switch unit, or a control module in the device for determining the loss of a switch unit for executing the method for determining the loss of a switch unit.

[0140] Based on the same inventive concept as the above-mentioned method for determining the loss amount of a switch unit, the present application also provides a device for determining the loss amount of a switch unit. Figure 5The loss determination device of the switch unit provided in the embodiment of the present application is described in detail.

[0141] Figure 5 It is a structural schematic diagram of a device for determining the loss amount of a switch unit according to an exemplary embodiment.

[0142] like Figure 5 As shown, the switch unit loss determination device 500 may include:

[0143] A first acquisition module 510 is used to acquire a voltage value and a current value of a switch unit at each sampling step within a first preset time period;

[0144] The first determination module 520 is used to cyclically execute the following steps for each sampling step to determine the start time of each turn-on process and the start time of each turn-off process of the switch unit:

[0145] When it is determined that the voltage value at the first sampling step is less than the preset turn-on voltage threshold, determining the first sampling step as the start time of the turn-on process, and recording the first sampling step;

[0146] In the case where it is determined that the voltage value at the second sampling step is greater than the preset shutdown voltage threshold, the second sampling step is determined as the start time of the shutdown process, and the second sampling step is recorded, wherein each of the sampling steps includes the first sampling step and the second sampling step, and the initial values ​​of the first sampling step and the second sampling step are both 1;

[0147] A first calculation module 530, configured to calculate a target on-off time period of an on-off process of the switch unit according to a start time of the on-off process and a start time of the off-off process, wherein the on-off process includes the on-off process and the off-off process;

[0148] The second calculation module 540 is used to perform integral calculation on the voltage value and the current value within the target breaking time period to obtain the target loss amount of the switch unit within the target breaking time period.

[0149] In the embodiment of the present application, the voltage value and the current value of the switch unit at each sampling step in the first preset time period are obtained, and then for each sampling step, the following steps are cyclically performed to determine the start time of each turn-on process and the start time of the turn-off process of the switch unit: when it is determined that the voltage value at the first sampling step is less than the preset turn-on voltage threshold, the first sampling step is determined to be the start time of the turn-on process, and the first sampling step is recorded; and when it is determined that the voltage value at the second sampling step is greater than the preset turn-off voltage threshold, the second sampling step is determined to be the start time of the turn-off process, and the second sampling step is recorded. The initial values ​​of the sampling step and the second sampling step are both 1. According to the start time of the opening process and the start time of the closing process, the target opening and closing time period of the switching unit is calculated, and then the voltage value and the current value in the target opening and closing time period are integrated and calculated, and the target loss of the switching unit in the target opening and closing time period can be automatically and accurately obtained. In this way, the user does not need to manually select the starting point of each opening and closing process of the switching unit on the oscilloscope screen, which improves the efficiency of determining the starting point of each opening and closing process of the switching unit, and further improves the efficiency of determining the loss of the switching unit in the opening and closing process.

[0150] In some embodiments of the present application, the above-mentioned device may further include:

[0151] A second acquisition module is used to respectively acquire a first average value of a voltage value of the switch unit in the target disconnection time period and a second average value of a current value of the switch unit in a partial time period before the first disconnection;

[0152] The second calculation module 540 may specifically include:

[0153] a first calculation unit, configured to calculate a difference between a voltage value at each sampling step in the target breaking time period and the first average value, to obtain a target voltage value set;

[0154] a second calculation unit, configured to calculate a difference between a current value at each sampling step within the target breaking time period and the second average value, to obtain a target current value set;

[0155] The third calculation unit is used to perform integral calculation on the target voltage value set and the target current value set within the target breaking time period to obtain a target loss amount of the switch unit within the target breaking time period.

[0156] In some embodiments of the present application, the first average value includes a first sub-average value and a second sub-average value, and the second acquisition module can be specifically used to:

[0157] Respectively acquiring a first sub-average value of a voltage value of the switch unit in the entire or partial time period of the turn-on process and a second sub-average value of a voltage value of the switch unit in the entire or partial time period of the turn-off process;

[0158] The first computing unit may be specifically configured to:

[0159] Calculate the difference between the voltage value at each sampling step when the switch unit is in the on process during the target off time period and the first sub-average value to obtain a first target voltage value set;

[0160] Calculate the difference between the voltage value at each sampling step when the switch unit is in the off process within the target off time period and the second sub-average value to obtain a second target voltage value set;

[0161] The second computing unit may be specifically configured to:

[0162] Integrating the first target voltage value set and the target current value set when the switch unit is in the on process during the target off time period to obtain a first loss amount;

[0163] Integrating the second target voltage value set and the target current value set when the switch unit is in the off process within the target off time period to obtain a second loss amount;

[0164] The sum of the first loss amount and the second loss amount is determined as the target loss amount.

[0165] In some embodiments of the present application, the first calculation module 530 may specifically include:

[0166] A first determining unit, configured to determine a target turn-on time range corresponding to the start time of the turn-on process according to the start time of the turn-on process and a correspondence between a preset sampling step and the start time of the turn-on process of the switch unit;

[0167] a second determining unit, configured to determine a target shutoff time range corresponding to the start time of the shutoff process according to the start time of the shutoff process and a correspondence between a preset sampling step and the start time of the shutoff process of the switch unit;

[0168] The fourth calculation unit is used to calculate a target on-off time period of an on-off process of the switch unit according to the target on-time range and the target off-time range.

[0169] In some embodiments of the present application, the fourth computing unit may be specifically used for:

[0170] Calculating the difference between the end time of the on-process and the start time of the off-process;

[0171] The sum of the difference, the target on-time range and the target off-time range is used as the target on-off time period of an on-off process of the switch unit.

[0172] In some embodiments of the present application, the above-mentioned device may further include:

[0173] A fitting module, used for fitting the current value of the switch unit within the target opening time range to obtain a current curve of the switch unit within the target opening time range;

[0174] A third calculation module, used for calculating the slope between the first sampling step and the next sampling step of the first sampling step in the current curve;

[0175] The fourth calculation module is used to calculate the current value at the first sampling step according to the current value at the next sampling step of the first sampling step and the slope.

[0176] The device for determining the loss amount of a switch unit provided in the embodiment of the present application can be used to execute the method for determining the loss amount of a switch unit provided in the above-mentioned method embodiments. Its implementation principle and technical effect are similar, and for the sake of simplicity, they will not be repeated here.

[0177] Based on the same inventive concept, an embodiment of the present application also provides an electronic device.

[0178] Figure 6 Schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 6 As shown, the electronic device may include a processor 601 and a memory 602 storing computer programs or instructions.

[0179] Specifically, the processor 601 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiment of the present invention.

[0180] The memory 602 may include a large capacity memory for data or instructions. For example, but not limitation, the memory 602 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 602 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 602 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 602 is a non-volatile solid-state memory. The memory may include a read-only memory (ROM), a random access memory (RAM), a disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described in the method for determining the loss amount of a switching unit provided in the above-mentioned embodiments.

[0181] The processor 601 reads and executes computer program instructions stored in the memory 602 to implement any one of the methods for determining the loss of a switch unit in the above embodiments.

[0182] In one example, the electronic device may further include a communication interface 603 and a bus 610. Figure 6 As shown, the processor 601, the memory 602, and the communication interface 603 are connected via a bus 610 and communicate with each other.

[0183] The communication interface 603 is mainly used to implement the communication between the modules, devices, units and / or devices in the embodiment of the present invention.

[0184] Bus 610 includes hardware, software or both, and the parts of electronic equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 610 may include one or more buses. Although the embodiment of the present invention describes and shows a specific bus, the present invention considers any suitable bus or interconnection.

[0185] The electronic device can execute the method for determining the loss amount of the switch unit in the embodiment of the present invention, thereby achieving Figure 2 A method for determining the loss amount of a switching unit is described.

[0186] In addition, in combination with the loss determination method of the switch unit in the above embodiment, the embodiment of the present invention can provide a readable storage medium for implementation. The readable storage medium stores program instructions; when the program instructions are executed by the processor, any one of the loss determination methods of the switch unit in the above embodiment is implemented.

[0187] In addition, in combination with the method for determining the loss of a switch unit in the above embodiment, an embodiment of the present invention can provide a vehicle for implementation. The vehicle includes the apparatus for determining the loss of a switch unit in the above embodiment, a device for determining the loss of a switch unit, and a computer-readable storage medium.

[0188] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.

[0189] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0190] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.

[0191] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (system) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.Such a processor can be but is not limited to a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.

[0192] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprises" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0193] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.

Claims

1. A method for determining the loss of a switch unit, characterized in that: The method comprises: Acquire the voltage value and current value of the switch unit at each sampling step within a first preset time period; For each sampling step, the following steps are executed cyclically to determine the start time of each turn-on process and the start time of each turn-off process of the switch unit: When it is determined that the voltage value at the first sampling step is less than the preset turn-on voltage threshold, determining the first sampling step as the start time of the turn-on process; In the case where it is determined that the voltage value at the second sampling step is greater than the preset shutdown voltage threshold, determining the second sampling step as the start time of the shutdown process; Calculating a target on-off time period of an on-off process of the switch unit according to the start time of the on-off process and the start time of the off-off process, wherein the on-off process includes the on-off process and the off-off process; The voltage value and the current value within the target breaking time period are integrated and calculated to obtain the target loss amount of the switch unit within the target breaking time period.

2. The method according to claim 1, characterized in that Before performing integral calculation on the voltage value and the current value within the target breaking time period to obtain the target loss amount of the switch unit within the target breaking time period, the method further includes: Respectively obtaining a first average value of a voltage value of the switch unit in the target disconnection time period and a second average value of a current value of the switch unit in a partial time period before the first disconnection; The step of integrating and calculating the voltage value and the current value within the target breaking time period to obtain the target loss amount of the switch unit within the target breaking time period includes: Calculate the difference between the voltage value at each sampling step in the target disconnection time period and the first average value to obtain a target voltage value set; Calculate the difference between the current value at each sampling step in the target breaking time period and the second average value to obtain a target current value set; The target voltage value set and the target current value set within the target breaking time period are integrated and calculated to obtain a target loss amount of the switch unit within the target breaking time period.

3. The method according to claim 2, characterized in that The first average value includes a first sub-average value and a second sub-average value, and obtaining the first average value of the voltage value of the switch unit in the target disconnection time period includes: Respectively acquiring a first sub-average value of a voltage value of the switch unit in the entire or partial time period of the turn-on process and a second sub-average value of a voltage value of the switch unit in the entire or partial time period of the turn-off process; The calculating the difference between the voltage value at each sampling step in the target disconnection time period and the first average value to obtain a target voltage value set includes: Calculate the difference between the voltage value at each sampling step when the switch unit is in the on process during the target off time period and the first sub-average value to obtain a first target voltage value set; Calculate the difference between the voltage value at each sampling step when the switch unit is in the off process within the target off time period and the second sub-average value to obtain a second target voltage value set; The step of integrating and calculating the target voltage value set and the target current value set within the target breaking time period to obtain the target loss amount of the switch unit within the target breaking time period includes: Integrating the first target voltage value set and the target current value set when the switch unit is in the on process during the target off time period to obtain a first loss amount; Integrating the second target voltage value set and the target current value set when the switch unit is in the off process within the target off time period to obtain a second loss amount; The sum of the first loss amount and the second loss amount is determined as the target loss amount.

4. The method according to claim 3, characterized in that The calculating, according to the start time of the on-off process and the start time of the off-off process, a target on-off time period of an on-off process of the switch unit comprises: According to the start time of the switching process and the correspondence between the preset sampling step and the start time of the switching process of the switch unit, determining a target switching time range corresponding to the start time of the switching process; Determining a target shutdown time range corresponding to the start time of the shutdown process according to the start time of the shutdown process and the correspondence between a preset sampling step and the start time of the shutdown process of the switch unit; A target on-off time period of an on-off process of the switch unit is calculated according to the target on-time range and the target off-time range.

5. The method according to claim 4, characterized in that The step of calculating the target on-off time period of an on-off process of the switch unit according to the target on-time range and the target off-time range includes: Calculating the difference between the end time of the on-process and the start time of the off-process; The sum of the difference, the target on-time range and the target off-time range is used as the target on-off time period of an on-off process of the switch unit.

6. The method according to claim 4, characterized in that After determining the target turn-on time range corresponding to the first sampling step length according to the first sampling step length and the correspondence between the preset sampling step length and the turn-on time range of the turn-on process of the switch unit, the method further includes: Fitting the current value of the switch unit within the target opening time range to obtain a current curve of the switch unit within the target opening time range; Calculating a slope between a first sampling step and a next sampling step of the first sampling step in the current curve; The current value at the first sampling step is calculated according to the current value at the next sampling step of the first sampling step and the slope.

7. A device for determining the loss of a switch unit, characterized in that: The device comprises: A first acquisition module, used to acquire a voltage value and a current value of the switch unit at each sampling step within a first preset time period; The first determination module is used to cyclically execute the following steps for each sampling step to determine the start time of each turn-on process and the start time of each turn-off process of the switch unit: When it is determined that the voltage value at the first sampling step is less than the preset turn-on voltage threshold, determining the first sampling step as the start time of the turn-on process, and recording the first sampling step; In the case where it is determined that the voltage value at the second sampling step is greater than the preset shutdown voltage threshold, the second sampling step is determined as the start time of the shutdown process, and the second sampling step is recorded, wherein each of the sampling steps includes the first sampling step and the second sampling step, and the initial values ​​of the first sampling step and the second sampling step are both 1; A first calculation module, configured to calculate a target on-off time period of an on-off process of the switch unit according to a start time of the on-off process and a start time of the off-off process, wherein the on-off process includes the on-off process and the off-off process; The second calculation module is used to perform integral calculation on the voltage value and the current value within the target breaking time period to obtain the target loss amount of the switch unit within the target breaking time period.

8. A device for determining the loss amount of a switching unit, characterized in that: The switch unit loss determination device comprises: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the switch unit loss determination method according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the method for determining the loss amount of a switch unit according to any one of claims 1 to 6 is implemented.

10. A vehicle, characterized in that: The vehicle comprises the following: The loss determination device of the switch unit according to claim 7; The loss amount determining device of the switching unit according to claim 8; The computer readable storage medium of claim 9.