Short circuit fault diagnosis method and device

By receiving control signals and controlling the status time detection of high-end MOS tubes through the target chip, the problems of high usage threshold and incomplete diagnosis in the prior art are solved, and effective diagnosis and threshold for short-circuit faults are achieved.

CN118938073APending Publication Date: 2024-11-12WEICHAI POWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411263116.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-10
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The existing short-circuit fault diagnosis methods require relevant technical knowledge and practical experience, and the threshold for use is high, especially when the driving time is short or the VBATT voltage is low, it cannot be effectively diagnosed.

Method used

The target chip receives the control signal sent by the microcontroller, controls the high-end MOS tube to perform corresponding actions based on the shutdown signal or the driving signal, and detects its status time in real time, judges whether the wiring harness has a short circuit fault based on the time threshold, and avoids setting filtering time and voltage Diagnostic threshold.

Benefits of technology

The diagnosis of various types of short circuit faults is realized, which lowers the threshold for user use and avoids the problem of inability to diagnose due to short driving time or low VBATT voltage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118938073A_ABST
    Figure CN118938073A_ABST
Patent Text Reader

Abstract

The invention provides a short-circuit fault diagnosis method and device, and the method and device are applied to a target chip, receive a control signal sent by a microcontroller, and control a corresponding high-end MOS tube to execute a corresponding control action based on the control signal. Wherein the control signal is a turn-off signal or a driving signal; determining the state time of a high-end MOS tube according to the result of a comparator arranged in the target chip, and generating corresponding short-circuit fault diagnosis information according to the state time; wherein the short-circuit fault diagnosis information is used for indicating that the wire harness connecting the high-end MOS tube and the load has a short-circuit fault or does not have a short-circuit fault.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of short-circuit fault diagnosis, and more specifically, to a short-circuit fault diagnosis method and device. Background Art

[0002] Once a short circuit occurs in the wiring harness connecting the load, it will cause a certain risk of damage to the load, and it is necessary to master the diagnosis and elimination measures. The current diagnostic techniques include observing the appearance, checking the protection device, measuring relevant parameters, etc. However, this method requires relevant technical personnel to have certain relevant knowledge and practical experience, and the threshold for use is relatively high.

[0003] Therefore, how to provide a short circuit fault diagnosis method to lower the user's usage threshold is a problem that urgently needs to be solved in this application. Summary of the invention

[0004] In view of this, the present application provides a short circuit fault diagnosis method and device, with the purpose of lowering the user's usage threshold.

[0005] A first aspect of the present application provides a short circuit fault diagnosis method, which is applied to a target chip, and the method comprises:

[0006] Receive a control signal sent by a microcontroller, and control a corresponding high-end MOS tube to perform a corresponding control action based on the control signal; wherein the control signal is a shutdown signal or a drive signal;

[0007] Determine the state time of the high-end MOS tube according to the result of the comparator set in the target chip, and generate corresponding short-circuit fault diagnosis information according to the state time;

[0008] The short-circuit fault diagnosis information is used to indicate whether a short-circuit fault occurs in a wiring harness connecting the high-end MOS tube and the load or not.

[0009] Optionally, if the control signal is a shutdown signal, the control action is shutdown;

[0010] The step of determining the state time of the high-end MOS tube according to the result of the comparator set in the target chip, and generating corresponding short-circuit fault diagnosis information according to the state time, comprises:

[0011] Starting to time the off time of the high-end MOS tube, and detecting the result of the comparator set in the target chip in real time;

[0012] If the result of the comparator is 0, stop timing to obtain the first off-time of the high-end MOS tube; wherein, when the result of the comparator is 0, the first off-time is the state time of the high-end MOS tube;

[0013] Corresponding short-circuit fault diagnosis information is generated according to the first turn-off time and the first time threshold.

[0014] Optionally, generating corresponding short-circuit fault diagnosis information according to the first turn-off time and the first time threshold includes:

[0015] Determining whether the first off time is less than a first time threshold;

[0016] If the first off time is less than a first time threshold, generating short-circuit fault diagnosis information indicating that a short-circuit fault occurs in a wiring harness connecting the high-end MOS tube and the load;

[0017] If the first off time is not less than the first time threshold, short-circuit fault diagnosis information is generated to indicate that a short-circuit fault does not occur in a wiring harness connecting the high-end MOS tube and the load.

[0018] Optionally, the method further includes:

[0019] If the result of the comparator is not 0, determine the second off time of the high-end MOS tube obtained by the current timing; wherein, when the result of the comparator is not 0, the second off time is the state time;

[0020] Determine whether the second off-time of the high-end MOS tube is greater than a second time threshold;

[0021] If the second off-time is not greater than the second preset time threshold, continue timing the off-time of the high-end MOS tube, and return to the step of executing real-time detection of the result of the comparator set in the target chip;

[0022] If the second off time is greater than the second time threshold, short-circuit fault diagnosis information is generated to indicate that a short-circuit fault does not occur in a wiring harness connecting the high-end MOS tube and the load.

[0023] Optionally, if the control information is a driving signal, the control action is conduction;

[0024] The step of determining the state time of the high-end MOS tube according to the result of the comparator set in the target chip, and generating corresponding short-circuit fault diagnosis information according to the state time, comprises:

[0025] Begin timing the on-time of the high-end MOS tube, and detect the result of the comparator of the target chip in real time;

[0026] If the result of the comparator detecting the target chip is 0, stop timing to obtain the first on-time of the high-end MOS tube; wherein, when the result of the comparator is 0, the first on-time is the state time;

[0027] Corresponding short-circuit fault diagnosis information is generated according to the first conduction time and the third time threshold.

[0028] Optionally, generating corresponding short-circuit fault diagnosis information according to the first conduction time and the third time threshold includes:

[0029] Determining whether the first on-time is less than a third time threshold;

[0030] If the first conduction time is less than a third time threshold, short-circuit fault diagnosis information is generated indicating that a short-circuit fault occurs in a wiring harness connecting the high-end MOS tube and the load;

[0031] If the first conduction time is not less than the third time threshold, short-circuit fault diagnosis information is generated to indicate that a short-circuit fault does not occur in a wiring harness connecting the high-end MOS tube and the load.

[0032] Optionally, the method further includes:

[0033] If it is detected that the result of the comparator inside the target chip is not 0, determine the second on-time of the high-end MOS tube obtained by the current timing; wherein, when the result of the comparator is not 0, the second on-time is the state time;

[0034] Determine whether the second turn-on time of the high-end MOS tube is greater than a fourth time threshold;

[0035] If the second on-time is not greater than the fourth preset time threshold, continue timing the on-time of the high-end MOS tube, and return to the step of executing real-time detection of the result of the comparator of the target chip;

[0036] If the second conduction time is greater than the fourth time threshold, short-circuit fault diagnosis information is generated to indicate that a short-circuit fault does not occur in a wiring harness connecting the high-end MOS tube and the load.

[0037] A second aspect of the present application provides a short circuit fault diagnosis device, which is applied to a target chip, and the device includes:

[0038] A control unit, used to receive a control signal sent by a microcontroller, and control a corresponding high-end MOS tube to perform a corresponding control action based on the control signal; wherein the control signal is a shutdown signal or a drive signal;

[0039] A short-circuit fault diagnosis unit, used to determine the state time of the high-end MOS tube according to the result of the comparator set in the target chip, and generate corresponding short-circuit fault diagnosis information according to the state time;

[0040] The short-circuit fault diagnosis information is used to indicate whether a short-circuit fault occurs in a wiring harness connecting the high-end MOS tube and the load or not.

[0041] Optionally, if the control signal is a shutdown signal, the control action is shutdown, and the short-circuit fault diagnosis unit includes:

[0042] A first timing unit, used to start timing the off time of the high-end MOS tube and detect the result of the comparator set in the target chip in real time;

[0043] A first stop timing unit, configured to stop timing if the result of the comparator is 0, and obtain a first off-time of the high-end MOS tube; wherein, when the result of the comparator is 0, the first off-time is the state time of the high-end MOS tube;

[0044] The first short-circuit fault diagnosis subunit is used to generate corresponding short-circuit fault diagnosis information according to the first turn-off time and the first time threshold.

[0045] Optionally, the first short-circuit fault diagnosis subunit includes:

[0046] A first judging unit, configured to judge whether the first off time is less than a first time threshold;

[0047] A first short-circuit fault diagnosis information generating unit, configured to generate short-circuit fault diagnosis information indicating that a short-circuit fault occurs in a wiring harness connecting the high-end MOS tube and the load if the first off time is less than a first time threshold;

[0048] The second short-circuit fault diagnosis information generating unit is used to generate short-circuit fault diagnosis information indicating that a short-circuit fault does not occur in a wiring harness connecting the high-end MOS tube and the load if the first turn-off time is not less than the first time threshold.

[0049] The present application provides a short-circuit fault diagnosis method and device, which are applied to a target chip, receive a control signal sent by a microcontroller, and control the corresponding high-end MOS tube to perform a corresponding control action based on the control signal; wherein the control signal is a shutdown signal or a drive signal; the state time of the high-end MOS tube is determined according to the result of a comparator set in the target chip, and the corresponding short-circuit fault diagnosis information is generated according to the state time; wherein the short-circuit fault diagnosis information is used to indicate whether a short-circuit fault occurs or does not occur in the wiring harness connecting the high-end MOS tube and the load. The technical solution provided by the present application, the target chip receives the control signal (shutdown signal or drive signal) sent by the microcontroller, and controls the corresponding high-end MOS tube to perform a corresponding control action based on the received shutdown signal or drive signal, and at the same time detects the state time of the high-end MOS tube in real time, and judges whether a short-circuit fault occurs in the wiring harness connecting the high-end MOS tube and the load according to the detected state time. The entire short-circuit fault diagnosis process does not require the user to understand any knowledge and practical experience related to professional technology, which can reduce the user's usage threshold and improve the user's usage experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0051] Figure 1 A schematic diagram of a short circuit fault diagnosis method provided in an embodiment of the present application;

[0052] Figure 2 An example diagram of a driving waveform of a high-end MOS tube under a short-circuit fault is provided for an embodiment of the present application;

[0053] Figure 3 An example diagram of comparison between the shutdown time of a high-end MOS tube when it is normally shut down and the shutdown time when a high-side short-circuit fault occurs, provided in an embodiment of the present application;

[0054] Figure 4 An example diagram of comparison between the turn-off time of another high-end MOS tube when it is normally turned off and the turn-off time when a high-side short-circuit fault occurs provided in an embodiment of the present application;

[0055] Figure 5 A structural example diagram of a HS_VSRC_FBK comparator provided in an embodiment of the present application;

[0056] Figure 6An example diagram of comparison between the conduction time of a high-end MOS tube when it is normally turned on and the conduction time when a high-side short-circuit fault occurs, provided in an embodiment of the present application;

[0057] Figure 7 An example diagram of comparison between the conduction time of another high-end MOS tube when it is normally turned on and the conduction time when a high-side short circuit to the power supply occurs provided in an embodiment of the present application;

[0058] Figure 8 An example diagram of a short circuit fault diagnosis method provided in an embodiment of the present application;

[0059] Fig. 9 An example diagram of another short circuit fault diagnosis method provided in an embodiment of the present application;

[0060] Fig.10 A schematic diagram of the structure of a short circuit fault diagnosis device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0061] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0062] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0063] It should be noted that the concepts such as "first" and "second" mentioned in the present application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0064] It should be noted that the modifications of "one" and "plurality" mentioned in the disclosure of this application are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0065] As can be seen from the above background technology, current diagnostic techniques include observing the appearance, checking the protective device, measuring relevant parameters, etc. However, this method requires relevant technical personnel to have certain relevant knowledge and practical experience, and the threshold for use is relatively high.

[0066] In the prior art, a Disable window and a comparison voltage threshold can be pre-set to implement the corresponding short-circuit fault diagnosis through the corresponding voltage comparison result and the corresponding driving state. However, if the driving time is short (the driving time is shorter than the Disable time) or the VBATT voltage is low, the short-circuit fault diagnosis cannot be implemented in this way.

[0067] It can be seen that how to provide a short-circuit fault diagnosis method to solve the problem in the prior art of realizing short-circuit fault diagnosis when the driving time is short or the VBATT voltage is low is a problem that urgently needs to be solved in this application.

[0068] Therefore, the present application provides a short-circuit fault diagnosis method and device, in which the target chip receives a control signal (shutdown signal or drive signal) sent by a microcontroller, and controls the corresponding high-end MOS tube to perform the corresponding control action based on the received shutdown signal or drive signal, and at the same time detects the state time of the high-end MOS tube in real time, and judges that a short-circuit fault occurs in the wiring harness connecting the high-end MOS tube and the load according to the detected state time. In this way, it is possible to avoid setting the corresponding filtering time and voltage diagnosis threshold, thereby avoiding the situation where the driving time is short (the driving time is shorter than the Disable time (filtering time)) or the VBATT voltage is low (when the VBATT voltage is low, the pre-set voltage diagnosis threshold becomes relatively large) and the short-circuit fault diagnosis cannot be achieved. That is, the present application can achieve various types of short-circuit fault diagnosis by time comparison.

[0069] See also Figure 1 , shows a flow chart of a short-circuit fault diagnosis method provided in an embodiment of the present application, the short-circuit fault diagnosis method is applied to a target chip, and the short-circuit fault diagnosis method specifically includes the following steps:

[0070] S101: receiving a control signal sent by a microcontroller, and controlling a corresponding high-end MOS tube to perform a corresponding control action based on the control signal; wherein the control signal is a shutdown signal or a drive signal.

[0071] In the embodiment of the present application, the applicant has found through research that the turning on or off of the high-end MOS tube requires a certain turn-on time or turn-off time, and the turn-on time and turn-off time of the high-end MOS tube are both reflected in the driving waveform of the high-end MOS tube, such as Figure 2As shown. In addition, the applicant has also found that if a short-circuit fault occurs in the wiring harness connecting the high-end MOS tube and the load, the on-time or off-time of the high-end MOS tube will change accordingly. Therefore, the present application can send a corresponding control signal (off signal or drive signal) to the target chip through a microcontroller, and the target chip controls the corresponding high-end MOS tube to turn off or on based on the received off signal or drive signal, so that the off-time or on-time of the high-end MOS tube can be detected in real time later, and the short-circuit fault occurs in the wiring harness connecting the high-end MOS tube and the load according to the detected off-time or on-time, so as to avoid setting the corresponding filtering time and voltage diagnosis threshold, thereby avoiding the situation where the short-circuit fault diagnosis cannot be realized due to the short driving time (driving time is shorter than the disable time (filtering time)) or the low VBATT voltage (when the VBATT voltage is low, the pre-set voltage diagnosis threshold becomes relatively large), that is, the present application can realize various types of short-circuit fault diagnosis by time comparison, and at the same time can reduce the user's usage threshold.

[0072] It should be noted that the target chip may be a MC33PT2000 chip, which is not limited in the embodiment of the present application.

[0073] In the process of specifically executing step S101, the target chip can receive a control signal sent by the microcontroller; if the control signal is a shutdown signal, the target chip can control the corresponding high-end MOS tube to be turned off based on the received shutdown signal; if the control signal is a drive signal, the target chip can control the corresponding high-end MOS tube to be turned on based on the received drive signal.

[0074] S102: Determine the state time of the high-end MOS tube according to the result of the comparator set in the target chip, and generate corresponding short-circuit fault diagnosis information according to the state time, wherein the short-circuit fault diagnosis information is used to indicate whether a short-circuit fault occurs in the wiring harness connecting the high-end MOS tube and the load or not.

[0075] In the specific process of executing step S102, after receiving the control signal sent by the microcontroller, the target chip can control the corresponding high-end MOS tube to perform the corresponding control action based on the received control signal, and start timing, and at the same time detect the result of the comparator set in the target chip, so as to determine the timing result according to the result of the comparator set in the target chip, that is, determine the state time of the high-end MOS tube, and generate corresponding short-circuit fault diagnosis information according to the comparison result of the state time and the preset time threshold, wherein the short-circuit fault diagnosis information is used to indicate whether a short-circuit fault occurs or not in the wiring harness connecting the high-end MOS tube and the load, if the control signal is a shutdown signal, the state time may be the shutdown time, and if the control signal is a drive signal, the state time may be the conduction time.

[0076] Specifically, if the control signal is a shutdown signal, the target chip can control the corresponding high-end MOS tube to shut down based on the received shutdown signal, and start timing the shutdown time of the high-end MOS tube, and at the same time detect the result of the comparator set in the target chip, so as to determine the shutdown time of the high-end MOS tube according to the result of the comparator, and compare the shutdown time of the high-end MOS tube with the corresponding preset time threshold to generate corresponding short-circuit fault diagnosis information; wherein, when the control signal is shutdown information, the state time can be the shutdown time.

[0077] If the control signal is a driving signal, the target chip can control the corresponding high-end MOS tube to be turned on based on the received driving signal, and start timing the turn-on time of the high-end MOS tube, and at the same time detect the result of the comparator set in the target chip, so as to determine the turn-on time of the high-end MOS tube according to the result of the comparator, and generate corresponding short-circuit fault diagnosis information by comparing the turn-on time of the high-end MOS tube with the corresponding preset time threshold; wherein, when the control signal is the turn-on information, the state time can be the turn-on time.

[0078] It should be noted that the preset time threshold is determined according to the control action of the high-end MOS tube and the comparison result of the comparator; specifically, if the control action of the high-end MOS tube is off and the result of the comparator is 0, then the preset time threshold is the first time threshold; if the control action of the high-end MOS tube is off and the result of the comparator is not 0, then the preset time threshold is the second time threshold; if the control action of the high-end MOS tube is on and the result of the comparator is 0; then the preset time threshold is the third time threshold; if the control action of the high-end MOS tube is on and the result of the comparator is not 0, then the preset time threshold is the fourth preset time threshold.

[0079] In the embodiment of the present application, the applicant has found through research that when a short circuit fault occurs in the wiring harness connecting the high-end MOS tube and the load (a high-side short circuit fault to ground), the shutdown time of the high-end MOS tube will be shorter than the shutdown time when the wiring harness does not have a short circuit fault, that is, the shutdown time of the high-end MOS tube when it is normally shut down is longer than the shutdown time when a high-side short circuit fault occurs, such as Figure 3 Moreover, the applicant has also found that even if the off time of the high-end MOS tube is greater than the off time when the wiring harness does not have a short-circuit fault, it can be considered that the wiring harness connecting the high-end MOS tube and the load does not have a short-circuit fault, such as Figure 4 As shown, therefore, two time thresholds can be set accordingly, namely, the first time threshold Ti_Threshold1 and the second time threshold Ti_Threshold2, and Ti_Threshold1 is less than Ti_Threshold2. That is, when the result of the comparator is 0, if the off time of the high-end MOS tube is less than the first time threshold, it can be determined that the wiring harness connecting the high-end MOS tube and the load has a short circuit fault; when the result of the comparator is not 0, if the off time of the high-end MOS tube is greater than the second time threshold, it can be determined that the wiring harness connecting the high-end MOS tube and the load has not a short circuit fault; when the result of the comparator is not 0, if the off time of the high-end MOS tube is less than the second time threshold, it is impossible to determine whether the wiring harness connecting the high-end MOS tube and the load has a short circuit fault, and the result of the comparator set in the target chip can be continuously detected in real time and the off time of the high-end MOS tube can be updated, so as to use the re-detected comparator result and the updated off time of the high-end MOS tube to determine whether the wiring harness connecting the high-end MOS tube and the load has a short circuit fault.

[0080] As a preferred embodiment of the present application, the control signal is a shutdown signal, the control action is shutdown, the state time of the high-end MOS tube is determined according to the result of the comparator set in the target chip, and the process of generating the corresponding short-circuit fault diagnosis information according to the state time can be specifically as follows: when the target chip controls the corresponding high-end MOS tube to be shut down based on the shutdown signal, the shutdown time of the high-end MOS tube is started to be timed, and the result of the comparator set in the target chip is detected in real time; if the result of the comparator is 0, the timing is stopped to obtain the first shutdown time of the high-end MOS tube; wherein, when the result of the comparator is 0, the first shutdown time is the state time of the high-end MOS tube; according to the first shutdown time time and a first preset time threshold; generate corresponding short-circuit fault diagnosis information; if the result of the comparator is not 0, determine the second off-time of the high-end MOS tube obtained by the current timing; wherein, when the result of the comparator is not 0, the second off-time is the state time; judge whether the second off-time of the high-end MOS tube is greater than the second time threshold; if the second off-time is not greater than the second preset time threshold, continue to time the off-time of the high-end MOS tube, and return to the step of executing the result of the comparator set in the real-time detection target chip; if the second off-time is greater than the second time threshold, generate short-circuit fault diagnosis information indicating that the wiring harness connecting the high-end MOS tube and the load has not suffered a short-circuit fault.

[0081] It should be noted that if the target chip is MC33PT2000, the comparator set in the target chip can be a HS_VSRC_FBK comparator, which is not limited in the embodiment of the present application. The structure diagram of the HS_VSRC_FBK comparator is as shown in FIG. Figure 5 shown.

[0082] Optionally, the process of generating corresponding short-circuit fault diagnosis information based on the first turn-off time and the first time threshold can be specifically as follows: determine whether the first turn-off time is less than the first time threshold; if the first turn-off time is less than the first time threshold, generate short-circuit fault diagnosis information indicating that a short-circuit fault occurs in the wiring harness connecting the high-end MOS tube and the load; if the first turn-off time is not less than the first time threshold, generate short-circuit fault diagnosis information indicating that a short-circuit fault does not occur in the wiring harness connecting the high-end MOS tube and the load.

[0083] In summary, the present application can send a corresponding shutdown signal to the target chip through a microcontroller, so that the target chip controls the corresponding high-end MOS tube to shut down based on the received shutdown signal or drive signal, so that the shutdown time (first shutdown time or second shutdown time) of the high-end MOS tube can be detected in real time later, and the short circuit fault of the wiring harness connecting the high-end MOS tube and the load is judged according to the detected shutdown time or conduction time. In this way, it is possible to avoid setting the corresponding filter time and voltage diagnosis threshold, thereby avoiding the situation where short-circuit fault diagnosis cannot be achieved due to short drive time or low VBATT voltage. That is, the present application can achieve various types of short-circuit fault diagnosis through time comparison.

[0084] In the embodiment of the present application, the applicant has found through research that when a short circuit fault occurs in the wiring harness connecting the high-end MOS tube and the load (a high-side short circuit fault to the power supply), the conduction time of the high-end of the high-end MOS tube will be shorter than the conduction time when the wiring harness does not have a short circuit fault, that is, the conduction time of the high-end MOS tube when it is normally turned on is longer than the conduction time when a high-side short circuit fault to the power supply occurs, such as Figure 6 Moreover, the applicant has also found that even if the conduction time of the high-end MOS tube is greater than the conduction time when the wiring harness does not have a short-circuit fault, it can be considered that the wiring harness connecting the high-end MOS tube and the load does not have a short-circuit fault, such as Figure 7 As shown, therefore, two time thresholds can be set accordingly, namely, the third time threshold Ti_Threshold3 and the fourth time threshold Ti_Threshold4, and Ti_Threshold3 is less than Ti_Threshold4. That is, when the result of the comparator is 0, if the conduction time of the high-end MOS tube is less than the third time threshold, it can be determined that the wiring harness connecting the high-end MOS tube and the load has a short circuit fault; when the result of the comparator is not 0, if the conduction time of the high-end MOS tube is greater than the fourth time threshold, it can be determined that the wiring harness connecting the high-end MOS tube and the load has not a short circuit fault; when the result of the comparator is not 0, if the conduction time of the high-end MOS tube is less than the fourth time threshold, it is impossible to determine whether the wiring harness connecting the high-end MOS tube and the load has a short circuit fault, and the result of the comparator set in the target chip can be continuously detected in real time and the conduction time of the high-end MOS tube can be updated, so as to use the re-detected comparator result and the updated conduction time of the high-end MOS tube to determine whether the wiring harness connecting the high-end MOS tube and the load has a short circuit fault.

[0085] As another implementation method of the embodiment of the present application, if the control information is a driving signal and the control action is conduction, the state time of the high-end MOS tube is determined according to the result of the comparator set in the target chip, and the corresponding short-circuit fault diagnosis information is generated according to the state time. The process can be specifically as follows: when the target chip controls the corresponding high-end MOS tube to be turned on based on the driving signal, the turn-on time of the high-end MOS tube is started to be timed, and the result of the comparator of the target chip is detected in real time; if the result of the comparator of the target chip is 0, the timing is stopped to obtain the first turn-on time of the high-end MOS tube; wherein, when the result of the comparator is 0, the first turn-on time is the state time. Generate corresponding short-circuit fault diagnosis information according to the first on-time and the third time threshold; if it is detected that the result of the comparator inside the target chip is not 0, determine the second on-time of the high-end MOS tube obtained by the current timing; wherein, when the result of the comparator is not 0, the second on-time is the state time; judge whether the second on-time of the high-end MOS tube is greater than a fourth time threshold; if the second on-time is not greater than the fourth preset time threshold, continue to time the on-time of the high-end MOS tube, and return to the step of executing the result of the comparator of the target chip in real time; if the second on-time is greater than the fourth time threshold, generate short-circuit fault diagnosis information indicating that no short-circuit fault occurs in the wiring harness connecting the high-end MOS tube and the load.

[0086] Optionally, the process of generating corresponding short-circuit fault diagnosis information based on the first conduction time and the third time threshold can be specifically as follows: determine whether the first conduction time is less than the third time threshold; if the first conduction time is less than the third time threshold, generate short-circuit fault diagnosis information indicating that a short-circuit fault occurs in the wiring harness connecting the high-end MOS tube and the load; if the first conduction time is not less than the third time threshold, generate short-circuit fault diagnosis information indicating that a short-circuit fault does not occur in the wiring harness connecting the high-end MOS tube and the load.

[0087] To summarize, the present application can send a corresponding conduction signal to the target chip through a microcontroller, so that the target chip controls the conduction of the corresponding high-end MOS tube based on the received conduction signal or drive signal, so that the conduction time (first conduction time or second conduction time) of the high-end MOS tube can be detected in real time later, and the short circuit fault of the wiring harness connecting the high-end MOS tube and the load can be judged according to the detected conduction time or conduction time. In this way, it is possible to avoid setting the corresponding filter time and voltage diagnosis threshold, thereby avoiding the situation where short-circuit fault diagnosis cannot be achieved due to short drive time or low VBATT voltage. That is, the present application can achieve various types of short-circuit fault diagnosis through time comparison.

[0088] The present application provides a short-circuit fault diagnosis method, which is applied to a target chip, receives a control signal sent by a microcontroller, and controls a corresponding high-end MOS tube to perform a corresponding control action based on the control signal; wherein the control signal is a shutdown signal or a drive signal; the state time of the high-end MOS tube is determined according to the result of a comparator set in the target chip, and corresponding short-circuit fault diagnosis information is generated according to the state time; wherein the short-circuit fault diagnosis information is used to indicate whether a short-circuit fault occurs in a wiring harness connecting the high-end MOS tube and a load or no short-circuit fault occurs. The technical solution provided by the present application is that the target chip receives the control signal (shutdown signal or drive signal) sent by the microcontroller, and controls the corresponding high-end MOS tube to perform the corresponding control action based on the received shutdown signal or drive signal, and at the same time detects the state time of the high-end MOS tube in real time, and judges that the wiring harness connecting the high-end MOS tube and the load has a short circuit fault according to the detected state time. In this way, it is possible to avoid setting the corresponding filtering time and voltage diagnosis threshold, thereby avoiding the situation where the driving time is short (the driving time is shorter than the Disable time (filtering time)) or the VBATT voltage is low (when the VBATT voltage is low, the pre-set voltage diagnosis threshold becomes relatively large) and the short circuit fault diagnosis cannot be realized. That is, the present application can realize various types of short circuit fault diagnosis by time comparison.

[0089] In order to better understand the short circuit diagnosis method provided in the embodiment of the present application, the target chip is MC33PT2000 chip, the comparator set in the target chip can be HS_VSRC_FBK comparator, and the control signal is a shutdown signal. Figure 8 shown.

[0090] A1: The receiving microcontroller sends a shutdown signal to shut down the corresponding high-end MOS tube and starts timing the shutdown time of the high-end MOS tube.

[0091] A2: Real-time detection of whether the result of HS_VSRC_FBK comparator is 0; if it is 0, execute A3; if not 0, execute A7.

[0092] A3: Stop timing, and determine the currently obtained timing result as the first off-time of the high-end MOS tube; wherein, when the result of the HS_VSRC_FBK comparator is 0, the first off-time is the state time of the high-end MOS tube.

[0093] A4: Determine whether the first shutdown time is less than the first time threshold; if the first shutdown time is less than the first time threshold, execute A5; if the first shutdown time is not less than the first time threshold, execute A6.

[0094] A5: It is determined that a short circuit fault occurs in a wiring harness connecting the high-end MOS tube and the load, and short circuit fault diagnosis information indicating that a short circuit fault occurs in the wiring harness connecting the high-end MOS tube and the load.

[0095] A6: Determine that a short circuit fault does not occur in the wiring harness connecting the high-end MOS tube and the load, and generate short circuit fault diagnosis information indicating that a short circuit fault does not occur in the wiring harness connecting the high-end MOS tube and the load.

[0096] A7: Determine whether the second off-time of the high-end MOS tube obtained by the current timing is greater than the second time threshold; wherein, when the result of the comparator is not 0, the second off-time is the state time, and the first time threshold is less than the second time threshold; if the second off-time is not greater than the second preset time threshold, execute A8; if the second off-time is greater than the second time threshold, execute A6.

[0097] A8: Continue to time the off time of the high-end MOS tube; after executing A8, return to execute A2.

[0098] In order to better understand the short circuit diagnosis method provided in the embodiment of the present application, the target chip is MC33PT2000 chip, the comparator set in the target chip can be HS_VSRC_FBK comparator, and the control signal is a conduction signal. Fig. 9 shown.

[0099] B1: Receives the drive signal sent by the microcontroller, turns off the corresponding high-end MOS tube, and starts timing the conduction time of the high-end MOS tube.

[0100] B2: Real-time detection of whether the result of HS_VSRC_FBK comparator is 0; if it is 0, execute B3; if not 0, execute B7.

[0101] B3: Stop timing, and determine the currently obtained timing result as the first on-time of the high-end MOS tube; wherein, when the result of the HS_VSRC_FBK comparator is 0, the first on-time is the state time of the high-end MOS tube.

[0102] B4: Determine whether the first on-time is less than the third time threshold; if the first on-time is less than the third time threshold, execute B5; if the first on-time is not less than the first time threshold, execute B6.

[0103] B5: Determine that a short circuit fault occurs in a wiring harness connecting the high-end MOS tube and the load, and generate short circuit fault diagnosis information indicating that a short circuit fault occurs in a wiring harness connecting the high-end MOS tube and the load.

[0104] B6: Determine that a short circuit fault does not occur in the wiring harness connecting the high-end MOS tube and the load, and generate short circuit fault diagnosis information indicating that a short circuit fault does not occur in the wiring harness connecting the high-end MOS tube and the load.

[0105] B7: Determine whether the second on-time of the high-end MOS tube obtained by the current timing is greater than the fourth time threshold; wherein, when the result of the comparator is not 0, the second on-time is the state time, and the third time threshold is less than the fourth time threshold; if the second on-time is not greater than the fourth preset time threshold, execute B8; if the second on-time is greater than the fourth time threshold, execute B7.

[0106] B8: Continue to time the conduction time of the high-end MOS tube; wherein, after executing B8, return to execute B2.

[0107] Based on the short-circuit fault diagnosis method provided in the above embodiment of the present application, the embodiment of the present application also provides a short-circuit fault diagnosis device, such as Fig.10 As shown, the short-circuit fault diagnosis device is applied to a target chip, and the short-circuit fault diagnosis device includes:

[0108] The control unit 101 is used to receive a control signal sent by the microcontroller, and control the corresponding high-end MOS tube to perform a corresponding control action based on the control signal; wherein the control signal is a shutdown signal or a drive signal;

[0109] The short-circuit fault diagnosis unit 102 is used to determine the state time of the high-end MOS tube according to the result of the comparator set in the target chip, and generate corresponding short-circuit fault diagnosis information according to the state time;

[0110] The short-circuit fault diagnosis information is used to indicate whether a short-circuit fault occurs in the wiring harness connecting the high-end MOS tube and the load or not.

[0111] The specific principles and execution processes of each unit in the short-circuit fault diagnosis device disclosed in the above-mentioned embodiment of the present application are the same as the short-circuit fault diagnosis method disclosed in the above-mentioned embodiment of the present application. Please refer to the corresponding parts of the short-circuit fault diagnosis method disclosed in the above-mentioned embodiment of the present application, and will not be repeated here.

[0112] The present application provides a short-circuit fault diagnosis device, which is applied to a target chip, receives a control signal sent by a microcontroller, and controls a corresponding high-end MOS tube to perform a corresponding control action based on the control signal; wherein the control signal is a shutdown signal or a drive signal; the state time of the high-end MOS tube is determined according to the result of a comparator set in the target chip, and corresponding short-circuit fault diagnosis information is generated according to the state time; wherein the short-circuit fault diagnosis information is used to indicate whether a short-circuit fault occurs in a wiring harness connecting the high-end MOS tube and a load or no short-circuit fault occurs. The technical solution provided by the present application is that the target chip receives the control signal (shutdown signal or drive signal) sent by the microcontroller, and controls the corresponding high-end MOS tube to perform the corresponding control action based on the received shutdown signal or drive signal, and at the same time detects the state time of the high-end MOS tube in real time, and judges that the wiring harness connecting the high-end MOS tube and the load has a short circuit fault according to the detected state time. In this way, it is possible to avoid setting the corresponding filtering time and voltage diagnosis threshold, thereby avoiding the situation where the driving time is short (the driving time is shorter than the Disable time (filtering time)) or the VBATT voltage is low (when the VBATT voltage is low, the pre-set voltage diagnosis threshold becomes relatively large) and the short circuit fault diagnosis cannot be realized. That is, the present application can realize various types of short circuit fault diagnosis by time comparison.

[0113] Optionally, if the control signal is a shutdown signal, the control action is shutdown, and the short-circuit fault diagnosis unit includes:

[0114] The first timing unit is used to start timing the turn-off time of the high-end MOS tube and detect the result of the comparator set in the target chip in real time;

[0115] A first stop timing unit, used to stop timing if the result of the comparator is 0, and obtain a first off-time of the high-end MOS tube; wherein, when the result of the comparator is 0, the first off-time is the state time of the high-end MOS tube;

[0116] The first short-circuit fault diagnosis subunit is used to generate corresponding short-circuit fault diagnosis information according to the first shutdown time and the first time threshold.

[0117] Optionally, the first short-circuit fault diagnosis subunit includes:

[0118] A first judging unit, used to judge whether the first off-time is less than a first time threshold;

[0119] A first short-circuit fault diagnosis information generating unit, configured to generate short-circuit fault diagnosis information indicating that a short-circuit fault occurs in a wiring harness connecting the high-end MOS tube and the load if the first off time is less than a first time threshold;

[0120] The second short-circuit fault diagnosis information generating unit is used to generate short-circuit fault diagnosis information indicating that a short-circuit fault does not occur in the wiring harness connecting the high-end MOS tube and the load if the first shutdown time is not less than the first time threshold.

[0121] Optionally, the short circuit fault diagnosis device provided in the embodiment of the present application further includes:

[0122] A first determining unit is used to determine the second off time of the high-end MOS tube obtained by the current timing if the result of the comparator is not 0; wherein, if the result of the comparator is not 0, the second off time is the state time;

[0123] A second judgment unit, used to judge whether the second off time of the high-end MOS tube is greater than a second time threshold;

[0124] A first return execution unit, configured to continue timing the off time of the high-end MOS tube if the second off time is not greater than the second preset time threshold, and return to execute the first timing unit;

[0125] The third short-circuit fault diagnosis information generating unit is used to generate short-circuit fault diagnosis information indicating that the wiring harness connecting the high-end MOS tube and the load has not suffered a short-circuit fault if the second turn-off time is greater than a second time threshold.

[0126] Optionally, if the control information is a driving signal and the control action is conduction, the short-circuit fault diagnosis unit includes:

[0127] The second timing unit is used to start timing the conduction time of the high-end MOS tube and detect the result of the comparator of the target chip in real time;

[0128] A second stop timing unit is used to stop timing if the result of the comparator detecting the target chip is 0, and obtain a first on-time of the high-end MOS tube; wherein, when the result of the comparator is 0, the first on-time is the state time;

[0129] The second short-circuit fault diagnosis subunit is used to generate corresponding short-circuit fault diagnosis information according to the first conduction time and the third time threshold.

[0130] Optionally, the second short circuit fault diagnosis subunit includes:

[0131] A third judging unit, used to judge whether the first on-time is less than a third time threshold;

[0132] a fourth short-circuit fault diagnosis generating unit, configured to generate short-circuit fault diagnosis information indicating that a short-circuit fault occurs in a wiring harness connecting the high-end MOS tube and the load if the first conduction time is less than a third time threshold;

[0133] The fifth short-circuit fault diagnosis generating unit is used to generate short-circuit fault diagnosis information indicating that a short-circuit fault does not occur in the wiring harness connecting the high-end MOS tube and the load if the first conduction time is not less than a third time threshold.

[0134] Optionally, the short circuit fault diagnosis device provided in the embodiment of the present application further includes:

[0135] A second determination unit is used to determine a second on-time of the high-end MOS tube obtained by current timing if the result of the comparator inside the target chip is not 0; wherein, when the result of the comparator is not 0, the second on-time is a state time;

[0136] A fourth judgment unit, used to judge whether the second conduction time of the high-end MOS tube is greater than a fourth time threshold;

[0137] A second return execution unit, configured to continue timing the on-time of the high-end MOS tube if the second on-time is not greater than a fourth preset time threshold, and return to execute the second timing unit;

[0138] The sixth short-circuit fault diagnosis information generating unit is used to generate short-circuit fault diagnosis information indicating that a short-circuit fault does not occur in the wiring harness connecting the high-end MOS tube and the load if the second conduction time is greater than a fourth time threshold.

[0139] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device or device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device and device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. A person of ordinary skill in the art can understand and implement it without creative work.

[0140] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0141] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

[0142] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A short circuit fault diagnosis method, characterized in that: Applied to a target chip, the method comprises: Receive a control signal sent by a microcontroller, and control a corresponding high-end MOS tube to perform a corresponding control action based on the control signal; wherein the control signal is a shutdown signal or a drive signal; Determine the state time of the high-end MOS tube according to the result of the comparator set in the target chip, and generate corresponding short-circuit fault diagnosis information according to the state time; The short-circuit fault diagnosis information is used to indicate whether a short-circuit fault occurs in a wiring harness connecting the high-end MOS tube and the load or not.

2. The method according to claim 1, characterized in that: If the control signal is a shutdown signal, the control action is shutdown; The step of determining the state time of the high-end MOS tube according to the result of the comparator set in the target chip, and generating corresponding short-circuit fault diagnosis information according to the state time, comprises: Starting to time the off time of the high-end MOS tube, and detecting the result of the comparator set in the target chip in real time; If the result of the comparator is 0, stop timing to obtain the first off-time of the high-end MOS tube; wherein, when the result of the comparator is 0, the first off-time is the state time of the high-end MOS tube; Corresponding short-circuit fault diagnosis information is generated according to the first turn-off time and the first time threshold.

3. The method according to claim 2, characterized in that The generating corresponding short-circuit fault diagnosis information according to the first turn-off time and the first time threshold includes: Determining whether the first off time is less than a first time threshold; If the first off time is less than a first time threshold, generating short-circuit fault diagnosis information indicating that a short-circuit fault occurs in a wiring harness connecting the high-end MOS tube and the load; If the first off time is not less than the first time threshold, short-circuit fault diagnosis information is generated to indicate that a short-circuit fault does not occur in a wiring harness connecting the high-end MOS tube and the load.

4. The method according to claim 2, characterized in that: Said also includes: If the result of the comparator is not 0, determine the second off time of the high-end MOS tube obtained by the current timing; wherein, when the result of the comparator is not 0, the second off time is the state time; Determine whether the second off-time of the high-end MOS tube is greater than a second time threshold; If the second off-time is not greater than the second preset time threshold, continue timing the off-time of the high-end MOS tube, and return to the step of executing real-time detection of the result of the comparator set in the target chip; If the second off time is greater than the second time threshold, short-circuit fault diagnosis information is generated to indicate that a short-circuit fault does not occur in a wiring harness connecting the high-end MOS tube and the load.

5. The method according to claim 1, characterized in that If the control information is a driving signal, the control action is conduction; The step of determining the state time of the high-end MOS tube according to the result of the comparator set in the target chip, and generating corresponding short-circuit fault diagnosis information according to the state time, comprises: Begin timing the on-time of the high-end MOS tube, and detect the result of the comparator of the target chip in real time; If the result of the comparator detecting the target chip is 0, stop timing to obtain the first on-time of the high-end MOS tube; wherein, when the result of the comparator is 0, the first on-time is the state time; Corresponding short-circuit fault diagnosis information is generated according to the first conduction time and the third time threshold.

6. The method according to claim 5, characterized in that The generating corresponding short-circuit fault diagnosis information according to the first conduction time and the third time threshold comprises: Determining whether the first on-time is less than a third time threshold; If the first conduction time is less than a third time threshold, short-circuit fault diagnosis information is generated indicating that a short-circuit fault occurs in a wiring harness connecting the high-end MOS tube and the load; If the first conduction time is not less than the third time threshold, short-circuit fault diagnosis information is generated to indicate that a short-circuit fault does not occur in a wiring harness connecting the high-end MOS tube and the load.

7. The method according to claim 5, characterized in that The method further comprises: If it is detected that the result of the comparator inside the target chip is not 0, determine the second on-time of the high-end MOS tube obtained by the current timing; wherein, when the result of the comparator is not 0, the second on-time is the state time; Determine whether the second turn-on time of the high-end MOS tube is greater than a fourth time threshold; If the second on-time is not greater than the fourth preset time threshold, continue timing the on-time of the high-end MOS tube, and return to the step of executing real-time detection of the result of the comparator of the target chip; If the second conduction time is greater than the fourth time threshold, short-circuit fault diagnosis information is generated to indicate that a short-circuit fault does not occur in a wiring harness connecting the high-end MOS tube and the load.

8. A short circuit fault diagnosis device, characterized in that: Applied to a target chip, the device comprises: A control unit, used to receive a control signal sent by a microcontroller, and control a corresponding high-end MOS tube to perform a corresponding control action based on the control signal; wherein the control signal is a shutdown signal or a drive signal; A short-circuit fault diagnosis unit, used to determine the state time of the high-end MOS tube according to the result of the comparator set in the target chip, and generate corresponding short-circuit fault diagnosis information according to the state time; The short-circuit fault diagnosis information is used to indicate whether a short-circuit fault occurs in a wiring harness connecting the high-end MOS tube and the load or not.

9. The device according to claim 8, characterized in that If the control signal is a shutdown signal, the control action is shutdown, and the short-circuit fault diagnosis unit includes: A first timing unit, used to start timing the off time of the high-end MOS tube and detect the result of the comparator set in the target chip in real time; A first stop timing unit, configured to stop timing if the result of the comparator is 0, and obtain a first off-time of the high-end MOS tube; wherein, when the result of the comparator is 0, the first off-time is the state time of the high-end MOS tube; The first short-circuit fault diagnosis subunit is used to generate corresponding short-circuit fault diagnosis information according to the first turn-off time and the first time threshold.

10. The device according to claim 9, characterized in that The first short-circuit fault diagnosis subunit comprises: A first judging unit, configured to judge whether the first off time is less than a first time threshold; A first short-circuit fault diagnosis information generating unit, configured to generate short-circuit fault diagnosis information indicating that a short-circuit fault occurs in a wiring harness connecting the high-end MOS tube and the load if the first off time is less than a first time threshold; The second short-circuit fault diagnosis information generating unit is used to generate short-circuit fault diagnosis information indicating that a short-circuit fault does not occur in a wiring harness connecting the high-end MOS tube and the load if the first turn-off time is not less than the first time threshold.