Diagnosis method, device and equipment for multi-channel driving chip
By receiving and analyzing the diagnostic enable signals sent by the controller, detecting the electrical performance parameters of the multi-channel driver chip channel under different duty cycles, solving the problem that the channel failure cannot be effectively diagnosed in the prior art, and improving the applicability of the diagnosis and accuracy.
Patent Information
- Application Number
- CN202411505340.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2025-02-18
AI Technical Summary
The existing multi-channel driver chip diagnostic methods cannot effectively diagnose whether the channel has a fault, especially when some channels need to remain in the output state, the offline diagnostic function cannot be triggered.
By receiving the first diagnostic enable signal and the second diagnostic enable signal sent by the controller, the electrical performance parameters of the target channel at 0% and 100% of the duty cycle are detected, and the operating status of the channel is determined.
It realizes effective diagnosis of the channel operating status in the multi-channel driver chip, and improves the applicability and accuracy of the diagnosis.
Smart Images

Figure CN119471302A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of chip communication diagnosis, and in particular, relates to a diagnosis method, device and equipment for a multi-channel driver chip. Background Art
[0002] Multi-channel driver chips are generally used to receive controller commands, convert the commands into actual outputs to drive motors or high and low side loads, and monitor the operation of peripheral loads in real time, and feed back the current to the controller. Diagnostic protection functions are provided when the operating temperature, voltage, current and other related values exceed the internal configuration threshold. The diagnostic protection function provides the whole vehicle with monitoring of peripheral loads on the one hand, and on the other hand, it prevents the load from running in a fault state for a long time, causing the whole vehicle power supply to be depleted or the load to burn out. Therefore, efficient diagnosis of the driver chip is a necessary condition to ensure the safety and stable operation of the vehicle.
[0003] For the multi-channel driver chips currently on the market, offline diagnosis is usually used. The process is to diagnose whether each channel is in an open circuit, short ground, or short power state by reading the internal register value of the driver chip when all channel outputs are not driven.
[0004] Offline diagnosis requires all output channels to be shut down. However, according to the requirements of the entire vehicle, some channels need to maintain output status when used for power distribution. At this time, the offline diagnosis function of the driver chip cannot be triggered. Therefore, the existing diagnostic method cannot effectively diagnose whether there are faults in each channel of the driver chip. Summary of the invention
[0005] The embodiments of the present application provide a method, device and apparatus for diagnosing a multi-channel driver chip, which improve the applicability of diagnosing the operating status of channels in the multi-channel driver chip.
[0006] According to a first aspect of the present application, an embodiment of the present application provides a diagnosis method for a multi-channel driver chip, the method comprising:
[0007] In the case of determining that there is a target channel that needs to be turned on in the multi-channel driver chip, receiving a first diagnosis enable signal sent by the controller for diagnosing the target channel, where the duty cycle of the first diagnosis enable signal is 0%;
[0008] Detecting an electrical performance parameter of a target channel when a first diagnosis enable signal is enabled, and obtaining a first detection result;
[0009] When the first detection result indicates that the target channel is in a normal state, receiving a second diagnosis enable signal sent by the controller for diagnosing the target channel, the duty cycle of the second diagnosis enable signal being 100%;
[0010] The electrical performance parameter of the target channel enabled by the second diagnosis enable signal is detected to obtain a second detection result.
[0011] Optionally, the method further comprises:
[0012] When the second detection result indicates that the target channel is in a normal state, obtaining a first driving signal for driving the load to operate;
[0013] Sending a first driving signal to a target channel to drive a load to operate;
[0014] Detecting the current of the target channel when the first driving signal is enabled to obtain the driving current;
[0015] According to the magnitude relationship between the driving current and the preset current, it is determined whether the operating state of the target channel is normal.
[0016] Optionally, the preset current includes: a maximum current for driving the load and a minimum current for driving the load;
[0017] According to the relationship between the driving current and the preset current, determine whether the operating status of the target channel is normal, including:
[0018] When the driving current is continuously greater than the maximum current of the driving load for a period longer than a first preset period, determining that the target channel is in a power short circuit fault state;
[0019] When the duration during which the driving current is continuously less than the minimum current of the driving load is greater than the second preset duration, it is determined that the target channel is in a ground short circuit state or an open circuit state.
[0020] Optionally, before receiving the first diagnosis enable signal sent by the controller for diagnosing the target channel, the method further includes:
[0021] receiving a second driving signal, where the second driving signal is used to drive a load through a target channel in the multi-channel driving chip;
[0022] storing the second driving signal in a target storage location;
[0023] When the second detection result indicates that the target channel is in a normal state, before obtaining the first driving signal for driving the load to operate, the method further includes:
[0024] When the second detection result indicates that the target channel is in a normal state, reading a second driving signal from the target storage location;
[0025] The second driving signal is sent to the target channel to drive the load to operate.
[0026] Optionally, sending the second driving signal to the target channel to drive the load to operate includes:
[0027] receiving an operating duty cycle corresponding to a second driving signal;
[0028] sending a second drive signal and an operating duty cycle to a target channel;
[0029] The first driving signal is sent to the load through the target channel according to the operation duty cycle to drive the load to operate.
[0030] Optionally, the electrical performance parameters include: current;
[0031] Detecting an electrical performance parameter of a target channel when a first diagnostic enable signal is enabled to obtain a first detection result, including:
[0032] When the first detection result indicates that there is current in the target channel, determining that the target channel is in a short-circuited power state;
[0033] In a case where the first detection result indicates that no current exists in the target channel, it is determined that the target channel is in a normal state.
[0034] Optionally, the electrical performance parameters include: current;
[0035] Detecting the electrical performance parameters of the target channel when the second diagnostic enable signal is enabled to obtain a second detection result, including:
[0036] When the second detection result indicates that there is current in the target channel, determining that the target channel is in a normal state;
[0037] When the second detection result indicates that there is no current in the target channel, the second detection result is determined as the target channel is in an open circuit state or a short ground state.
[0038] Optionally, the method further comprises:
[0039] In the case that there is no opened channel in the multi-channel driver chip, reading register values of registers in the multi-channel driver chip;
[0040] The register value is parsed to determine the third detection result of the multi-channel driver chip.
[0041] According to a second aspect of the present application, an embodiment of the present application provides a diagnostic device for a multi-channel driver chip, comprising:
[0042] A first receiving module is used to receive a first diagnosis enable signal for diagnosing the target channel sent by the controller when it is determined that there is a target channel that needs to be turned on in the multi-channel driver chip, wherein the duty cycle of the first diagnosis enable signal is 0%;
[0043] A first detection module, used to detect an electrical performance parameter of a target channel when a first diagnosis enable signal is enabled, and obtain a first detection result;
[0044] A second receiving module is used to receive a second diagnosis enable signal sent by the controller for diagnosing the target channel when the first detection result indicates that the target channel is in a normal state, and the duty cycle of the second diagnosis enable signal is 100%;
[0045] The second detection module is used to detect the electrical performance parameters of the target channel when enabled by the second diagnosis enable signal to obtain a second detection result.
[0046] According to a third aspect of the present application, an embodiment of the present application provides a diagnostic device for a multi-channel driver chip, the device comprising: a processor and a memory storing computer program instructions;
[0047] When the processor executes the computer program instructions, the diagnostic method for the multi-channel driver chip of any one of the first aspects is implemented.
[0048] According to the fourth aspect of the present application, an embodiment of the present application provides a computer storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the diagnostic method for a multi-channel driver chip of any one of the first aspects is implemented.
[0049] According to the fifth aspect of the present application, an embodiment of the present application provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the diagnostic method for a multi-channel driver chip of any one of the first aspects.
[0050] The diagnostic method, device and equipment of the multi-channel driver chip of the embodiment of the present application, when it is determined that there is a target channel that needs to be turned on in the multi-channel driver chip, receives a first diagnostic enable signal sent by a controller for diagnosing the target channel, so that the target channel can operate according to the duty cycle of 0% of the first diagnostic enable signal, thereby detecting the electrical performance parameters of the target channel when the duty cycle is 0% at this time, and obtaining a first detection result according to the numerical value of the electrical performance parameter. If the first detection result indicates that the target channel is in a normal state, then receiving a second diagnostic enable signal sent by the controller for diagnosing the target channel, so that the target channel can operate according to the duty cycle of 100% of the second diagnostic enable signal, thereby detecting the electrical performance parameters of the target channel when the duty cycle is 100% at this time, and obtaining a second detection result according to the numerical value of the electrical performance parameter at this time. Based on this, when there is a target channel that needs to be turned on in a multi-channel driver chip, by receiving the first diagnostic enable signal and the second diagnostic enable signal, the electrical performance parameters when the duty cycle is 0% and 100% are detected, so as to determine the first detection result and the second detection result according to the electrical performance parameters, thereby realizing the detection of the operating status of the turned-on target channel and improving the applicability of the channel operating status diagnosis in the multi-channel driver chip. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0052] Figure 1 is a flow chart of a diagnosis method of a multi-channel driver chip according to an exemplary embodiment;
[0053] Figure 2 A hardware circuit structure diagram of a diagnosis method for a multi-channel driver chip according to an exemplary embodiment;
[0054] Figure 3 is a schematic diagram of an overall flow chart of a diagnosis method for a multi-channel driver chip according to an exemplary embodiment;
[0055] Figure 4 is a timing diagram of a diagnosis method for a multi-channel driver chip according to an exemplary embodiment;
[0056] Figure 5 is a structural block diagram of a diagnostic device for a multi-channel driver chip according to an exemplary embodiment;
[0057] Figure 6FIG. 4 is a structural block diagram of a diagnostic device for a multi-channel driver chip according to an exemplary embodiment. DETAILED DESCRIPTION
[0058] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0059] It should be noted that, in this article, relational terms such as first and second, etc. 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 terms "include", "comprise" or any other variants thereof are intended to cover non-otherwise 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 "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0060] As described in the background technology section, in the prior art, offline diagnosis requires that all output channels in a multi-channel driver chip be shut down. However, according to the requirements of the entire vehicle, some channels need to maintain an output state when used for power distribution. At this time, the offline diagnosis function of the driver chip cannot be triggered; therefore, the existing diagnostic method cannot effectively diagnose whether there are faults in each channel of the driver chip.
[0061] Based on this, in the diagnosis method of the multi-channel driver chip provided in the embodiment of the present application, when there is a target channel that needs to be turned on in the multi-channel driver chip, by receiving the first diagnostic enable signal and the second diagnostic enable signal, the electrical performance parameters when the duty cycle is 0% and 100% are detected, so as to determine the first detection result and the second detection result according to the electrical performance parameters, thereby realizing the detection of the operating status of the turned-on target channel and improving the applicability of the channel operating status diagnosis in the multi-channel driver chip.
[0062] The present application provides a diagnosis method, device and apparatus for a multi-channel driver chip. The following first introduces the diagnosis method for a multi-channel driver chip provided in an embodiment of the present application.
[0063] Figure 1 FIG. 1 is a flow chart of a method for diagnosing a multi-channel driver chip provided by an embodiment of the present application. Figure 1 As shown, the method may include the following steps:
[0064] S101, when it is determined that there is a target channel that needs to be turned on in the multi-channel driver chip, receiving a first diagnosis enable signal sent by a controller for diagnosing the target channel, wherein the duty cycle of the first diagnosis enable signal is 0%;
[0065] S102, detecting an electrical performance parameter of the target channel when the first diagnosis enable signal is enabled, and obtaining a first detection result;
[0066] S103, when the first detection result indicates that the target channel is in a normal state, receiving a second diagnosis enable signal sent by the controller for diagnosing the target channel, wherein the duty cycle of the second diagnosis enable signal is 100%;
[0067] S104, detecting an electrical performance parameter of the target channel when the second diagnosis enable signal is enabled, and obtaining a second detection result.
[0068] Based on the above embodiment, by determining that there is a target channel that needs to be turned on in the multi-channel driver chip, a first diagnostic enable signal sent by the controller for diagnosing the target channel is received, so that the target channel can operate according to the duty cycle of the first diagnostic enable signal of 0%, thereby detecting the electrical performance parameters of the target channel when the duty cycle is 0%, and obtaining a first detection result according to the numerical value of the electrical performance parameter. If the first detection result indicates that the target channel is in a normal state, a second diagnostic enable signal sent by the controller for diagnosing the target channel is received, so that the target channel can operate according to the duty cycle of the second diagnostic enable signal of 100%, thereby detecting the electrical performance parameters of the target channel when the duty cycle is 100%, and obtaining a second detection result according to the numerical value of the electrical performance parameter. Based on this, when there is a target channel that needs to be turned on in a multi-channel driver chip, by receiving the first diagnostic enable signal and the second diagnostic enable signal, the electrical performance parameters when the duty cycle is 0% and 100% are detected, so as to determine the first detection result and the second detection result according to the electrical performance parameters, thereby realizing the detection of the operating status of the turned-on target channel and improving the applicability of the channel operating status diagnosis in the multi-channel driver chip.
[0069] In the above S101, when a command is received and a target channel in a multi-channel chip needs to be turned on, it is necessary to detect whether the target channel is normal. Therefore, it is necessary to receive a first diagnostic enable signal sent by the control for diagnosing whether the target channel is normal, wherein the duty cycle of the first diagnostic enable signal is 0%, which means that the target channel is in a closed state, and the duty cycle refers to the ratio of the target channel opening time to the total time.
[0070] As an example, a multi-channel driver chip may include multiple channels for transmitting signals, wherein the channel that needs to be opened for signal transmission is the target channel.
[0071] In the above S102, it is detected that the target channel is running the first diagnosis enable signal, and the electrical performance parameters in the target channel are obtained, and a first detection result is obtained according to the magnitude of the electrical performance parameters.
[0072] As an example, the electrical performance parameter may include current, voltage, etc.
[0073] When the electrical performance parameter is current, the above S102 may include:
[0074] S1021, when the first detection result indicates that there is current in the target channel, determining that the target channel is in a short-circuited power state;
[0075] S1022: When the first detection result indicates that there is no current in the target channel, determine that the target channel is in a normal state.
[0076] In the above S1021, the current of the target channel is detected by the sampling resistor. If the current of the target channel is not zero at this time, that is, there is current, it means that the target channel has other power supplies to supply power to the load, so the target channel is short-connected to the power supply, and the short-connected power supply state of the target channel is reported to the controller.
[0077] As an example, the load may include at least one of a motor, a light bulb, a heater, or other devices requiring power to drive.
[0078] In the above S1022, on the contrary, if the sampling resistor detects that there is no current in the target channel, it can be said that the target channel is in a normal state. Similarly, it is also necessary to report the normal state of the target channel to the controller.
[0079] As an example, when the electrical performance parameter is voltage, if voltage is detected in the target channel, it means that the target channel is in an open circuit state. Similarly, the open circuit state of the target channel also needs to be reported to the controller.
[0080] In the above S103, if the controller sends a second diagnostic enable signal to the multi-channel driver chip after receiving the signal that the target channel is in a normal state, the multi-channel driver chip can receive the second diagnostic enable signal sent by the controller, wherein the duty cycle of the second diagnostic enable signal is 100%, i.e., the target channel is in a fully open state.
[0081] In the above S104 , the electrical performance parameters of the target channel are detected when the duty cycle is 100%, thereby obtaining a second detection result of the target channel.
[0082] As an example, the electrical performance parameters include current and voltage;
[0083] When the electrical performance parameter is current, the above S104 may include:
[0084] S1042: When the second detection result indicates that there is no current in the target channel, determine that the second detection result is that the target channel is in an open circuit state or a short-to-ground state.
[0085] S1041, when the second detection result indicates that there is current in the target channel, determining that the target channel is in a normal state;
[0086] In the above S1041, since the duty cycle of the target channel is 100% at this time, there should be current, so the current of the target channel is collected through the sampling resistor. If the current of the target channel is zero at this time, that is, there is no current, it means that the load is not driven. At this time, the target channel is open or there is a short ground state (short ground state) in the target channel, and the open circuit state or short ground state of the target channel is reported to the controller. In addition, in the absence of current, there may be a short ground state in other circuits connected to the target channel.
[0087] In the above S1042 , on the contrary, if the sampling resistor detects that there is current in the target channel, it can be said that the target channel is in a normal state. Similarly, it is also necessary to report the normal state of the target channel to the controller.
[0088] In order to more accurately diagnose the multi-channel driver chip, the present application also provides another implementation of the diagnosis method of the multi-channel driver chip.
[0089] After the above S104, the method may further include the following steps:
[0090] S201, when the second detection result indicates that the target channel is in a normal state, obtaining a first driving signal for driving the load to operate;
[0091] S202, sending a first driving signal to a target channel to drive a load to operate;
[0092] S203, detecting the current of the target channel when the first driving signal is enabled, and obtaining the driving current;
[0093] S204, determining whether the operation status of the target channel is normal according to the magnitude relationship between the driving current and the preset current.
[0094] Based on the above embodiment, by predetermining that the target channel itself is in a normal state, receiving the first drive signal for driving the load to operate, and sending the first drive signal to the target channel in the multi-channel driver chip, the target channel can operate the first drive signal to drive the load to operate. In the process of the target channel operating the first drive signal, the current enabled by the first drive signal is detected, so as to obtain the drive current of the first drive signal during the operation of the target channel. Therefore, whether the target channel is normal can be determined based on the relationship between the drive current and the preset current. Based on this, when it is known that the target channel itself is in a normal state in the multi-channel driver chip, whether the target channel is normal during the operation of the drive signal can be diagnosed, so as to more accurately diagnose whether the multi-channel driver chip is normal.
[0095] In the above S201, when the controller receives the second detection result indicating that the target channel is in a normal state, the multi-channel driver chip obtains the first drive signal sent by the controller for driving the load to operate.
[0096] In the above S202, since the first driving signal is used to detect the target channel, it is necessary to send the first driving signal to the target channel in the multi-channel driving chip, and run the first driving signal through the target channel to drive the load to run.
[0097] In the above S203, the current of the target channel when the first driving signal is enabled is detected by a sampling resistor, and the current is the driving current.
[0098] In the above S204, the magnitudes of the driving current and the preset current are compared, so as to determine whether the operation state of the target channel is normal according to the magnitudes.
[0099] Specifically, the preset current includes: a maximum current for driving the load and a minimum current for driving the load;
[0100] The above S204 may include:
[0101] S2041, when the driving current is continuously greater than the maximum current of the driving load for a period longer than a first preset period, determining that the target channel is in a power short circuit fault state;
[0102] S2042: When the driving current is continuously less than the minimum current of the driving load for a period longer than a second preset period, determine that the target channel is in a ground short circuit state or an open circuit state.
[0103] Based on the above embodiment, by determining whether the target channel is in a power short circuit fault state, a ground short circuit state, or an open circuit state when the duration of the driving current being greater than the maximum current of the driving load is greater than a first preset duration, and when the duration of the driving current being continuously less than the minimum current of the driving load is greater than a second preset duration, the possibility of the transient zero state of the driving current being falsely reported as a short circuit or open circuit fault is reduced, thereby improving the accuracy of diagnosing the multi-channel driver chip.
[0104] In the above S2041, if the duration during which the driving current of the target channel is greater than the maximum current of the driving load is greater than the first preset duration, it can be indicated that the target channel is in a power short circuit fault state.
[0105] In the above S2042, if the duration during which the driving current of the target channel is less than the minimum current of the driving load is greater than the second preset duration, it can be indicated that the target channel is in a short-circuit state or an open-circuit state.
[0106] In order to enable the multi-channel driver chip to correctly process each driving signal, the present application also provides another implementation of the diagnosis method of the multi-channel driver chip.
[0107] Before the above S101, the method may further include the following steps:
[0108] S301, receiving a second driving signal, where the second driving signal is used to drive a load through a target channel in a multi-channel driving chip;
[0109] S302, storing the second driving signal to a target storage location;
[0110] Before the above S201, the method may further include the following steps:
[0111] S303, when the second detection result indicates that the target channel is in a normal state, reading a second driving signal from the target storage location;
[0112] S304: Send the second driving signal to the target channel to drive the load to operate.
[0113] Based on the above embodiment, after receiving the second drive signal that is originally required to run through the target channel, since it is uncertain whether the target channel is normal, the second drive signal needs to be stored in the target storage position, and then when it is determined that the target channel is in a normal state, the second drive signal is read from the target storage position again, and then the second drive signal is sent to the target channel, so that the original second drive signal can run through the target channel to drive the load to run.
[0114] In the above S301, a second driving signal sent by the controller to the multi-channel driving chip and required to be run through a target channel in the multi-channel driving chip is received.
[0115] In the above S302, since it cannot be determined whether the target channel is normal, it is necessary to store the second driving signal in the target storage location in advance.
[0116] In the above S303, after determining that the target channel is in a normal state, the original second driving signal can be run in the target channel again, so the second driving signal needs to be read from the target storage location.
[0117] In the above S304, after the second driving signal is read, the second driving signal is resent to the target channel in a normal state, so that the target channel runs the second driving signal, thereby achieving driving load operation.
[0118] Specifically, S304 may include:
[0119] S3041, receiving an operating duty cycle corresponding to a second driving signal;
[0120] S3042, sending the second driving signal and the operating duty cycle to the target channel;
[0121] S3043, sending a first driving signal to the load through the target channel according to the operating duty cycle to drive the load to operate.
[0122] In the above S3041, after the controller receives the second driving signal, the controller will immediately perform real-time operations. These operations may include numerical calculations, logical judgments, data searches, etc., so as to determine the operating duty cycle corresponding to the second driving signal and send the operating duty cycle to the multi-channel driving chip.
[0123] In the above S3042, since the operation duty cycle is of the second driving signal and the second driving signal is to be operated through the target channel, the operation duty cycle needs to be sent to the target channel.
[0124] In the above S3043, after the target channel receives the second drive signal and the operating duty cycle, it sends the first drive signal to the load, wherein the first drive signal and the second drive signal are the same drive signal, and by adjusting the duty cycle of the load drive signal, the target channel can control the operation mode of the load. For example, if the duty cycle increases, the load may operate at a higher speed or power; if the duty cycle decreases, the load may operate at a lower speed or power.
[0125] In order to improve the applicability of diagnosing a multi-channel driver chip, the present application also provides another implementation of a diagnosis method for a multi-channel driver chip.
[0126] The method may further comprise the following steps:
[0127] S401, when there is no opened channel in the multi-channel driver chip, reading register values of registers in the multi-channel driver chip;
[0128] S402, analyzing the register value to determine the third detection result of the multi-channel driving chip.
[0129] Based on the above embodiment, by determining the third detection result of the multi-channel driver chip by reading and parsing the register value when there is no open channel in the multi-channel driver chip, it is possible to perform diagnosis both when there is no open channel in the multi-channel driver chip and when there is an open target channel, thereby improving the applicability of diagnosis of the multi-channel driver chip.
[0130] In the above S401, when no channel in the multi-channel driving chip is in an open state, the system will perform a read operation to obtain data from the register of the multi-channel driving chip.
[0131] The reading operation can be completed through a specific communication protocol (such as I2C, SPI, etc.) or a control pin.
[0132] The register values read usually contain status, configuration information or other critical data about the multi-channel driver chip.
[0133] In the above S402, after reading the register values, the system needs to parse these values. Specifically, the parsing process may involve the interpretation of bit fields, flag bits or other coded data.
[0134] Through analysis, the system can determine the third detection result of the multi-channel driver chip, wherein the third detection result can be a specific state or fault indication, such as an open circuit state, a short power state, an open circuit state, and a normal state.
[0135] It should be noted that the application scenarios described in the above-mentioned embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0136] In another embodiment of the present application, the hardware circuit used in the embodiment of the present application is introduced.
[0137] Figure 2 FIG. 1 shows a hardware circuit structure diagram of a multi-channel driver chip diagnostic method provided by an embodiment of the present application. Figure 2 As shown, the circuit includes a controller (MCU), a multi-channel driver chip and a load, wherein the multi-channel driver chip may be DRV8718. The main function of the MCU is to collect external signals or communication messages (i.e., drive signals), process related commands and transmit them to the multi-channel driver chip DRV8718. After receiving the related commands, the multi-channel driver chip DRV8718 drives and controls the external load, and the external load includes some RC devices or motor structures that need to output continuously.
[0138] The MCU controls the multi-channel driver chip DRV8718 through SPI communication and controls the load running speed through PWM. The multi-channel driver chip DRV8718 controls the external load and collects the running status of the load through hard-wire connection.
[0139] In one embodiment of the present application, Figure 3 The figure shows an overall flow chart of a method for diagnosing a multi-channel driver chip provided by an embodiment of the present application.
[0140] like Figure 3 As shown, the method includes:
[0141] (1) Determine whether all channels are closed;
[0142] (2) When a channel output is not closed, the channel duty cycle value is saved, and the channel is even output with a zero duty cycle; (equivalent to the above embodiment, when it is determined that there is a target channel that needs to be turned on in the multi-channel driver chip, a first diagnosis enable signal for diagnosing the target channel sent by the receiving controller is received, and the duty cycle of the first diagnosis enable signal is 0%;)
[0143] (3) when it is determined that the current is not zero, determining that the channel is a short-circuited power supply; (equivalent to determining that the target channel is in a short-circuited power supply state when the first detection result indicates that there is current in the target channel)
[0144] (4) when it is determined that the current is zero, setting the channel to output at a duty cycle of 100%; (equivalent to the above embodiment, when the first detection result indicates that there is no current in the target channel, determining that the target channel is in a normal state. And when the first detection result indicates that the target channel is in a normal state, receiving a second diagnosis enable signal sent by the controller for diagnosing the target channel, the duty cycle of the second diagnosis enable signal being 100%)
[0145] (5) Based on step (4), determine again whether there is current;
[0146] (6) In the absence of current, determining that the channel is open or shorted to ground; (equivalent to S1042 in the above embodiment, in the case where the second detection result indicates that there is no current in the target channel, determining that the second detection result is that the target channel is open or shorted to ground)
[0147] (7) when there is current, taking out the duty cycle value for driving; (equivalent to the above-mentioned embodiment, when the second detection result indicates that there is current in the target channel, determining that the target channel is in a normal state, and when the second detection result indicates that the target channel is in a normal state, obtaining a first drive signal for driving the load to operate, and sending the first drive signal to the target channel to drive the load to operate)
[0148] (8) Based on (7), the collected current is compared with the threshold value to determine the fault; (equivalent to detecting the current of the target channel when the first drive signal is enabled to obtain the drive current; and determining whether the operating state of the target channel is normal according to the magnitude relationship between the drive current and the preset current.)
[0149] (9) Based on (1), if all channels are closed, the offline diagnosis function is started, and the register value is read to obtain the channel fault. (This is equivalent to reading the register value of the register in the multi-channel driver chip when there is no open channel in the multi-channel driver chip in the above embodiment; parsing the register value to determine the third detection result of the multi-channel driver chip.)
[0150] In this embodiment, by determining that there is a target channel that needs to be turned on in the multi-channel driver chip, a first diagnostic enable signal sent by the controller for diagnosing the target channel is received, so that the target channel can operate according to the duty cycle of 0% of the first diagnostic enable signal, thereby detecting the electrical performance parameters of the target channel when the duty cycle is 0% at this time, and obtaining a first detection result according to the numerical value of the electrical performance parameter. If the first detection result indicates that the target channel is in a normal state, a second diagnostic enable signal sent by the controller for diagnosing the target channel is received, so that the target channel can operate according to the duty cycle of 100% of the second diagnostic enable signal, thereby detecting the electrical performance parameters of the target channel when the duty cycle is 100% at this time, and obtaining a second detection result according to the numerical value of the electrical performance parameter at this time. Based on this, when there is a target channel that needs to be turned on in a multi-channel driver chip, by receiving the first diagnostic enable signal and the second diagnostic enable signal, the electrical performance parameters when the duty cycle is 0% and 100% are detected, so as to determine the first detection result and the second detection result according to the electrical performance parameters, thereby realizing the detection of the operating status of the turned-on target channel and improving the applicability of the channel operating status diagnosis in the multi-channel driver chip.
[0151] In one embodiment of the present application, Figure 4 A timing diagram of a diagnostic method for a multi-channel driver chip provided in one embodiment of the present application is shown.
[0152] like Figure 4 As shown, when powered on, 1 in the curve EN means that a channel is turned on for output, and 0 means that all channels are not outputting; the curve PWM is the speed regulation signal, DIAG is the fault diagnosis status, STB is short to battery short power fault, OPL is open load open circuit status, STG is short to ground short ground, and AD is the analog value of the collected current.
[0153] Based on the same inventive concept, the present application also provides a diagnostic device for a multi-channel driver chip. Figure 5 Provide detailed explanation.
[0154] Figure 5 A schematic diagram of the hardware structure of a diagnostic device 200 for a multi-channel driver chip provided in an embodiment of the present invention is shown.
[0155] like Figure 5 As shown, the diagnostic device 500 of the multi-channel driver chip may include:
[0156] A first receiving module 510 is used to receive a first diagnosis enable signal for diagnosing the target channel sent by the controller when it is determined that there is a target channel that needs to be turned on in the multi-channel driver chip, and the duty cycle of the first diagnosis enable signal is 0%;
[0157] A first detection module 520, configured to detect an electrical performance parameter of a target channel when a first diagnosis enable signal is enabled, and obtain a first detection result;
[0158] A second receiving module 530 is used to receive a second diagnosis enable signal for diagnosing the target channel sent by the controller when the first detection result indicates that the target channel is in a normal state, and the duty cycle of the second diagnosis enable signal is 100%;
[0159] The second detection module 540 is used to detect the electrical performance parameters of the target channel when enabled by the second diagnosis enable signal to obtain a second detection result.
[0160] In the diagnostic device 500 for a multi-channel driver chip provided in this embodiment, the first receiving module 510 receives a first diagnostic enable signal for diagnosing the target channel sent by the controller when it is determined that there is a target channel that needs to be turned on in the multi-channel driver chip, so that the target channel can operate according to the duty cycle of 0% of the first diagnostic enable signal. As a result, the first detection module 520 detects the electrical performance parameters of the target channel when the duty cycle is 0% at this time, so as to obtain a first detection result according to the numerical value of the electrical performance parameter. If the first detection result indicates that the target channel is in a normal state, the second receiving module 530 receives a second diagnostic enable signal for diagnosing the target channel sent by the controller, so that the target channel can operate according to the duty cycle of 100% of the second diagnostic enable signal. As a result, the second detection module 540 detects the electrical performance parameters of the target channel when the duty cycle is 100% at this time, so as to obtain a second detection result according to the numerical value of the electrical performance parameter at this time. Based on this, when there is a target channel that needs to be turned on in a multi-channel driver chip, by receiving the first diagnostic enable signal and the second diagnostic enable signal, the electrical performance parameters when the duty cycle is 0% and 100% are detected, so as to determine the first detection result and the second detection result according to the electrical performance parameters, thereby realizing the detection of the operating status of the turned-on target channel and improving the applicability of the channel operating status diagnosis in the multi-channel driver chip.
[0161] Optionally, the diagnostic device 500 for the multi-channel driver chip further includes:
[0162] A first acquisition module, used for acquiring a first driving signal for driving the load to operate when the second detection result indicates that the target channel is in a normal state;
[0163] A first sending module, used for sending a first driving signal to a target channel to drive a load to operate;
[0164] A third detection module, used to detect the current of the target channel when the first driving signal is enabled, and obtain the driving current;
[0165] The first determination module is used to determine whether the operation state of the target channel is normal according to the magnitude relationship between the driving current and the preset current.
[0166] Optionally, the preset current may include: a maximum current for driving the load and a minimum current for driving the load;
[0167] The first determination module may include:
[0168] A first determining unit, configured to determine that the target channel is in a power short circuit fault state when the driving current is continuously greater than the maximum current of the driving load for a period longer than a first preset period;
[0169] The second determining unit is used to determine that the target channel is in a ground short circuit state or an open circuit state when the driving current is continuously less than the minimum current of the driving load for a period longer than a second preset period.
[0170] Optionally, the diagnostic device 500 for the multi-channel driver chip may further include:
[0171] A third receiving module, used for receiving a second driving signal, where the second driving signal is used for driving a load through a target channel in the multi-channel driving chip;
[0172] A storage module, used for storing the second driving signal in a target storage location;
[0173] The second acquisition module is used for acquiring, when the second detection result indicates that the target channel is in a normal state, a first driving signal for driving the load to operate, and the method further includes:
[0174] A first reading module, configured to read a second driving signal from a target storage location when the second detection result indicates that the target channel is in a normal state;
[0175] The second sending module is used to send the second driving signal to the target channel to drive the load to operate.
[0176] Optionally, the second sending module may include:
[0177] A receiving unit, configured to receive an operating duty cycle corresponding to a second driving signal;
[0178] A first sending unit, used for sending a second driving signal and an operating duty cycle to a target channel;
[0179] The second sending unit is used to send the first driving signal to the load through the target channel according to the operation duty cycle, so as to drive the load to operate.
[0180] Optionally, the electrical performance parameters include: current;
[0181] The first detection module 520 may include:
[0182] A first determining unit, configured to determine that the target channel is in a short-circuited power state when the first detection result indicates that there is current in the target channel;
[0183] The second determining unit is configured to determine that the target channel is in a normal state when the first detection result indicates that there is no current in the target channel.
[0184] Optionally, the electrical performance parameters include: current;
[0185] The second detection module 540 may include:
[0186] a third determining unit, configured to determine that the target channel is in a normal state when the second detection result indicates that there is current in the target channel;
[0187] The fourth determining unit is used to determine that the second detection result is that the target channel is in an open circuit state or a short ground state when the second detection result indicates that there is no current in the target channel.
[0188] Optionally, the diagnostic device 500 for the multi-channel driver chip may further include:
[0189] A second reading module is used to read the register value of the register in the multi-channel driving chip when there is no opened channel in the multi-channel driving chip;
[0190] The parsing module is used to parse the register value and determine the third detection result of the multi-channel driver chip.
[0191] The diagnostic device 500 for the multi-channel driver chip provided in the embodiment of the present application can realize Figure 1 The various processes implemented by the method embodiment can achieve the same technical effect, and to avoid repetition, they will not be described here.
[0192] Figure 6 A schematic diagram of the hardware structure of a diagnostic device for a multi-channel driver chip provided by an embodiment of the present invention is shown.
[0193] The diagnostic device for data encryption and decryption of a multi-channel driver chip may include a processor 601 and a memory 602 storing computer program instructions.
[0194] 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.
[0195] The memory 602 may include a large capacity memory for data or instructions. By way of example and 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.
[0196] In certain embodiments, the memory 602 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage media device, an optical storage media device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, typically, the memory 602 includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors 601), it is operable to perform the operations described with reference to the method according to an aspect of the present application.
[0197] The processor 601 implements any one of the data encryption and / or decryption multi-channel driver chip diagnostic devices in the above embodiments by reading and executing computer program instructions stored in the memory 602 .
[0198] In one example, the diagnostic device for data encryption and decryption of a multi-channel driver chip may further include a communication interface 603 and a bus 604. As shown in the figure, the processor 601, the memory 602, and the communication interface 603 are connected through the bus 604 and communicate with each other.
[0199] The communication interface 603 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiment of the present invention.
[0200] The bus 604 includes hardware, software or both. For example, but not limitation, the bus 604 may include an accelerated graphics port (AGP) or other graphics bus, an enhanced industry standard architecture (EISA) bus, a front-side bus (FSB), a hypertransport (HT) interconnect, an industry standard architecture (ISA) bus, a wireless bandwidth interconnect, a low pin count (LPC) bus, a memory bus, a microchannel architecture (MCA) bus, a peripheral control interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a serial advanced technology attachment (SATA) bus, a video electronics standard association local (VLB) bus or other suitable bus or a combination of two or more of these. Where appropriate, the bus 604 may include one or more buses 604. Although the present application embodiment describes and shows a specific bus 604, the present application considers any suitable bus 604 or interconnection.
[0201] The data encryption and decryption multi-channel driver chip diagnostic device can be based on the current data encryption and decryption multi-channel driver chip diagnostic method, thereby realizing the combination Figure 1-2 A method and device for diagnosing a multi-channel driver chip are described.
[0202] In addition, the embodiment of the present application also provides a computer program product, including computer program instructions, and when the computer program product is executed by the processor 301, the steps and corresponding contents of the aforementioned method embodiment can be implemented.
[0203] It should be clear that the present application 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 application 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 application.
[0204] 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 application 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.
[0205] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0206] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data encryption and / or decryption multi-channel driver chip diagnostic device to produce a machine so that these instructions executed by the processor of a computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or 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 box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0207] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application 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 in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A diagnostic method for a multi-channel driver chip, characterized in that: The method comprises: In the case of determining that there is a target channel that needs to be turned on in the multi-channel driver chip, receiving a first diagnosis enable signal sent by the controller for diagnosing the target channel, wherein the duty cycle of the first diagnosis enable signal is 0%; Detecting an electrical performance parameter of the target channel when the first diagnosis enable signal is enabled, and obtaining a first detection result; When the first detection result indicates that the target channel is in a normal state, receiving a second diagnosis enable signal sent by the controller for diagnosing the target channel, wherein the duty cycle of the second diagnosis enable signal is 100%; The electrical performance parameter of the target channel when enabled by the second diagnosis enable signal is detected to obtain a second detection result.
2. The method according to claim 1, characterized in that The method further comprises: When the second detection result indicates that the target channel is in a normal state, obtaining a first driving signal for driving a load to operate; Sending the first driving signal to the target channel to drive the load to operate; Detecting the current of the target channel when the first driving signal is enabled to obtain a driving current; Whether the operating state of the target channel is normal is determined according to the magnitude relationship between the driving current and the preset current.
3. The method according to claim 2, characterized in that The preset current includes: a maximum current for driving the load and a minimum current for driving the load; The determining whether the operating state of the target channel is normal according to the magnitude relationship between the driving current and the preset current includes: In a case where the driving current continues to be greater than the maximum current driving the load for a period longer than a first preset period, determining that the target channel is in a power short circuit fault state; When the duration during which the driving current is continuously less than the minimum current for driving the load is greater than a second preset duration, it is determined that the target channel is in a ground short circuit state or an open circuit state.
4. The method according to claim 2, characterized in that Before the receiving controller sends a first diagnosis enable signal for diagnosing the target channel, the method further includes: receiving a second driving signal, where the second driving signal is used to drive the load through a target channel in a multi-channel driving chip; storing the second driving signal in a target storage location; When the second detection result indicates that the target channel is in a normal state, before acquiring a first driving signal for driving the load to operate, the method further includes: When the second detection result indicates that the target channel is in a normal state, reading the second driving signal from the target storage location; The second driving signal is sent to the target channel to drive the load to operate.
5. The method according to claim 4, characterized in that The sending the second driving signal to the target channel to drive the load to operate includes: receiving an operating duty cycle corresponding to the second driving signal; sending the second drive signal and the operating duty cycle to the target channel; The first driving signal is sent to the load through the target channel according to the operation duty cycle to drive the load to operate.
6. The method according to claim 1, characterized in that The electrical performance parameters include: current; The detecting the electrical performance parameter of the target channel when the first diagnostic enable signal is enabled to obtain a first detection result includes: When the first detection result indicates that there is current in the target channel, determining that the target channel is in a short-circuited power state; When the first detection result indicates that no current exists in the target channel, it is determined that the target channel is in a normal state.
7. The method according to claim 1, characterized in that The electrical performance parameters include: current; The detecting the electrical performance parameter of the target channel when the second diagnostic enable signal is enabled to obtain a second detection result includes: When the second detection result indicates that there is current in the target channel, determining that the target channel is in a normal state; When the second detection result indicates that no current exists in the target channel, the second detection result is determined as the target channel is in an open circuit state or a short-to-ground state.
8. The method according to any one of claims 1 to 7, characterized in that The method further comprises: In the case that there is no opened channel in the multi-channel driving chip, reading a register value of a register in the multi-channel driving chip; The register value is analyzed to determine a third detection result of the multi-channel driving chip.
9. A diagnostic device for a multi-channel driver chip, characterized in that: The device comprises: A first receiving module is used to receive a first diagnosis enable signal sent by a controller for diagnosing a target channel that needs to be turned on when it is determined that there is a target channel that needs to be turned on in the multi-channel driver chip, wherein the duty cycle of the first diagnosis enable signal is 0%; A first detection module, configured to detect an electrical performance parameter of the target channel when the first diagnosis enable signal is enabled, and obtain a first detection result; a second receiving module, configured to receive a second diagnosis enable signal sent by the controller for diagnosing the target channel when the first detection result indicates that the target channel is in a normal state, wherein the duty cycle of the second diagnosis enable signal is 100%; The second detection module is used to detect the electrical performance parameters of the target channel when the second diagnosis enable signal is enabled, and obtain a second detection result.
10. A diagnostic device for a multi-channel driver chip, characterized in that: The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the method according to any one of claims 1 to 8 is implemented.