Driving chip diagnosis method and related equipment

Through preset array structure and shared analog port connection, the problems of low diagnostic efficiency of driver chips and insufficient port resource utilization in the prior art are solved, and an efficient, reliable and scalable driver chip diagnosis method is realized.

CN119861274APending Publication Date: 2025-04-22VOYAH AUTOMOBILE TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411923843.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-25
Publication Date
2025-04-22

AI Technical Summary

Technical Problem

In the prior art, the driver chip has low diagnostic efficiency and insufficient port resource utilization, making it difficult to meet the optimization needs of regional controllers for high-density driver chip systems.

Method used

Through preset array structure and shared analog port connections, optimize the use of hardware resources, simplify diagnostic logic, and improve the efficiency, reliability and scalability of driver chip diagnostics. The specific implementation includes connecting multiple driver chips through an IO expansion chip, realizing resource multiplexing of diagnostic enable function, and reducing the number of analog ports required by the MCU through sharing analog ports.

Benefits of technology

It realizes efficient connection and diagnosis of multiple driver chips, making the use of hardware resources more optimized, the diagnostic logic simplified, and improving the efficiency, reliability and scalability of driver chip diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119861274A_ABST
    Figure CN119861274A_ABST
Patent Text Reader

Abstract

The invention discloses a driving chip diagnosis method and related equipment, and relates to the technical field of vehicles, the method comprises the steps that diagnosis enabling is carried out on a first driving chip through a first IO port of a first IO expansion chip, the first IO expansion chip is an IO expansion chip connected with a communication port of a vehicle micro-control unit, and the first IO expansion chip is connected with the communication port of the vehicle micro-control unit; an enabling pin of the first driving chip and an enabling pin of the second driving chip are connected to the first IO port; a first diagnosis voltage fed back by the first driving chip is received through a first analog sampling port, and a voltage recovery port of the first driving chip and a voltage recovery port of the third driving chip are both connected to the first analog sampling port; and determining the health state of the first driving chip based on the first diagnosis voltage. According to the invention, the preset array structure is connected with the shared analog port, so that the use of hardware resources is optimized, the diagnosis logic is simplified, and the efficiency, reliability and expandability of driving chip diagnosis are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle technology, and more specifically, to a driver chip diagnosis method and related equipment. Background Art

[0002] With the continuous development of automotive electronic and electrical architecture, driver chips, as important vehicle-mounted equipment control components, have been widely used in the fields of wipers, lights, heating wires, etc.; however, with the continuous improvement of the integration of regional controllers, the increase in the number of driver chips has put forward higher demands on the digital IO and analog port resources of the microcontroller unit (MCU), resulting in the existing MCU resources being difficult to meet the functional design requirements of complex circuits; therefore, the technology of efficiently diagnosing the health status of driver chips and optimizing the use of port resources is particularly important.

[0003] In the prior art, independent ports are usually used to collect diagnostic signals for driver chips, but this method will occupy a large amount of MCU resources, especially analog input ports, which have limited resources and high expansion costs. At the same time, the traditional port connection design only considers the independent diagnosis of a single chip, but fails to optimize the connection structure for multi-chip systems, and cannot fully solve the problem of low resource reuse efficiency in driver chip diagnosis. This design lacks reasonable abstraction and integration of driver chip port characteristics, resulting in large hardware resource usage, difficulty in expansion, and increased costs. In addition, because the processing method of diagnostic voltage signals is too dependent on hardware allocation, the software level cannot effectively perform virtualization management, which further limits the simplification of diagnostic logic and the improvement of efficiency. That is, the prior art has the problems of low driver chip diagnostic efficiency and insufficient port resource utilization, which makes it difficult to meet the optimization requirements of the regional controller for high-density driver chip systems. Summary of the invention

[0004] A series of simplified concepts are introduced in the summary of the invention, which will be further described in detail in the detailed description. The summary of the invention of this application does not mean to attempt to define the key features and essential technical features of the technical solution claimed for protection, nor does it mean to attempt to determine the scope of protection of the technical solution claimed for protection.

[0005] The driver chip diagnosis method and related devices provided in the present application can optimize the use of hardware resources, simplify the diagnostic logic, and improve the efficiency, reliability and scalability of driver chip diagnosis through a preset array structure and a shared analog port connection.

[0006] In a first aspect, the present application provides a driver chip diagnosis method, which is applied to a vehicle micro control unit, comprising: enabling diagnosis of a first driver chip through a first IO port of a first IO expansion chip, wherein the first IO expansion chip is an IO expansion chip connected to a communication port of the vehicle micro control unit, an enable pin of the first driver chip and an enable pin of the second driver chip are both connected to the first IO port, an enable pin of the third driver chip and an enable pin of the fourth driver chip are both not connected to the first IO port, the second driver chip is a driver chip in the same column as the first driver chip in a preset array structure, the third driver chip is a driver chip in the same row as the first driver chip in the preset array structure, and the fourth driver chip is a driver chip in a different row and column than the first driver chip in the preset array structure; receiving a first diagnostic voltage fed back by the first driver chip through a first analog sampling port, wherein the voltage recovery port of the first driver chip and the voltage recovery port of the third driver chip are both connected to the first analog sampling port, and the voltage recovery port of the second driver chip and the voltage recovery port of the fourth driver chip are both not connected to the first analog sampling port; and determining the health status of the first driver chip based on the first diagnostic voltage.

[0007] In a feasible implementation, the driver chip diagnosis method further includes: enabling diagnosis of the second driver chip through the first IO port; receiving a second diagnostic voltage fed back by the second driver chip through a second analog sampling port, wherein a voltage recovery port of the second driver chip is connected to the second analog sampling port; and determining a health status of the second driver chip based on the second diagnostic voltage.

[0008] In a feasible implementation, the driver chip diagnosis method further includes: enabling diagnosis of the third driver chip through the second IO port of the first IO expansion chip, wherein the enable pin of the third driver chip is connected to the second IO port; receiving a third diagnostic voltage fed back by the third driver chip through the first analog sampling port; and determining the health status of the third driver chip based on the third diagnostic voltage.

[0009] In a feasible implementation, the driver chip diagnosis method further includes: enabling diagnosis of the fourth driver chip through the third IO port of the first IO expansion chip, wherein the enable pin of the fourth driver chip is connected to the third IO port; receiving a fourth diagnostic voltage fed back by the fourth driver chip through a third analog sampling port, wherein the voltage recovery port of the fourth driver chip is connected to the third analog sampling port; and determining the health status of the fourth driver chip based on the fourth diagnostic voltage.

[0010] In a feasible implementation manner, the diagnosing and enabling the first driver chip through the first IO port of the first IO expansion chip includes: sending an enable signal to the first IO expansion chip through the communication port; the first IO expansion chip responds to the enable signal and controls the first IO port to output the enable signal to the enable pin of the first driver chip to activate the diagnostic mode of the first driver chip.

[0011] In a feasible implementation manner, the communication port communicates with the first IO expansion chip via a two-line communication protocol or a full-duplex communication protocol.

[0012] In a feasible implementation manner, before enabling the diagnosis of the first driver chip through the first IO port of the first IO expansion chip, the driver chip diagnosis method further includes: sending a load start / stop signal to the first driver chip through the fourth IO port of the second IO expansion chip, so that the first driver chip controls the working state of the first load through the first output port, wherein the first load is a load device controlled by the first driver chip.

[0013] In a second aspect, the present application further provides a driver chip diagnostic device, comprising: a diagnostic enabling unit, used to diagnose and enable a first driver chip through a first IO port of a first IO expansion chip, wherein the first IO expansion chip is an IO expansion chip connected to the communication port of the vehicle micro control unit, an enable pin of the first driver chip and an enable pin of the second driver chip are both connected to the first IO port, an enable pin of the third driver chip and an enable pin of the fourth driver chip are not connected to the first IO port, the second driver chip is a driver chip in the same column as the first driver chip in a preset array structure, and the third driver chip is connected to the first driver chip. The chips are driver chips in the same row of the preset array structure, and the fourth driver chip is a driver chip that is in a different row and column than the first driver chip in the preset array structure; a voltage recovery unit is used to receive a first diagnostic voltage fed back by the first driver chip through a first analog sampling port, wherein the voltage recovery port of the first driver chip and the voltage recovery port of the third driver chip are both connected to the first analog sampling port, and the voltage recovery port of the second driver chip and the voltage recovery port of the fourth driver chip are not connected to the first analog sampling port; a chip diagnostic unit is used to determine the health status of the first driver chip based on the first diagnostic voltage.

[0014] In a third aspect, the present application further provides an electronic device, comprising: a memory and a processor, wherein the processor is configured to implement the steps of the driver chip diagnosis method described in the first aspect when executing a computer program stored in the memory.

[0015] In a fourth aspect, the present application further provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the steps of the driver chip diagnosis method described in the first aspect are implemented.

[0016] In a fifth aspect, the present application also provides a computer program product, including a computer program or computer executable instructions, which, when executed by a processor, implements the driver chip diagnostic method provided in an embodiment of the present application.

[0017] In summary, the present application realizes efficient connection of multiple driver chips by adopting a preset array structure and shared analog port connection: multiple driver chips (the first driver chip and the second driver chip) are connected through the first IO expansion chip, thereby realizing resource reuse of the diagnostic enable function of multiple chips; the voltage recovery ports of the first driver chip and the third driver chip are connected to the same analog sampling port, thereby reducing the number of analog ports required by the MCU, thereby optimizing the use of hardware resources; the driver chips are divided into rows and columns to make the connection relationship between the driver chips clear, facilitate the implementation and expansion of the diagnostic logic, and improve the efficiency and scalability of the driver chip diagnosis; and through group management (sharing enable in the same column, sharing feedback in the same row), complex software judgment conditions are reduced, and the diagnostic voltage data collected by the analog sampling port through the logic analysis of the software layer can quickly locate the row and column positions of the problem chip without the need for independent mapping or signal calibration at the hardware level. To summarize, the driver chip diagnosis method provided in the present application optimizes the use of hardware resources, simplifies the diagnostic logic, and improves the efficiency, reliability and scalability of driver chip diagnosis through a preset array structure and shared analog port connection. The driver chip diagnosis method provides an optimized use of hardware resources, simplifies the diagnostic logic, and improves the efficiency, reliability and scalability of driver chip diagnosis through a preset array structure and shared analog port connection. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present specification. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0019] Figure 1 A schematic diagram of a process flow of a driver chip diagnosis method provided in an embodiment of the present application;

[0020] Figure 2 A schematic diagram of a structure for connecting chips according to a preset array structure provided in an embodiment of the present application;

[0021] Figure 3 A schematic diagram of the structure of a driver chip diagnostic device provided in an embodiment of the present application;

[0022] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "is" and "has" and any variations thereof involved in the present application are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0024] The term "module" or "unit" in this application refers to a computer program or a part of a computer program that has a predetermined function and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.

[0025] 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. In the following description, it is related to "some embodiments", which describes a subset of all possible embodiments, but it can be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments, and can be combined with each other without conflict.

[0026] See also Figure 1 , Figure 1 1 is a flow chart of a driver chip diagnosis method provided in an embodiment of the present application. The method may specifically include the following steps 101 to 103:

[0027] Step 101, diagnosing and enabling a first driver chip through a first IO port of a first IO expansion chip, wherein the first IO expansion chip is an IO expansion chip connected to a communication port of a vehicle micro control unit, an enable pin of the first driver chip and an enable pin of the second driver chip are both connected to the first IO port, an enable pin of the third driver chip and an enable pin of the fourth driver chip are both not connected to the first IO port, the second driver chip is a driver chip in the same column as the first driver chip in a preset array structure, the third driver chip is a driver chip in the same row as the first driver chip in the preset array structure, and the fourth driver chip is a driver chip in a different row and column than the first driver chip in the preset array structure;

[0028] Specifically, the vehicle microcontroller unit (MCU) is a main computing and control device inside the vehicle, responsible for handling various electronic control tasks of the vehicle. The communication port is a software-defined port set in the vehicle microcontroller unit, which is used for logical communication and data transmission, connected to the first IO expansion chip, and used to send control signals. The first IO expansion chip is an expansion device for increasing the output capacity of the vehicle microcontroller unit, and the first IO expansion chip is provided with multiple IO ports. The first IO port is a specific output port on the first IO expansion chip, which is connected to the enable pin of the first driver chip and the enable pin of the second driver chip to realize the diagnosis and control of the driver chip in the same column. The first driver chip is one of the target chips to be diagnosed, connected to the first IO port, and receives the enable signal from the port. The enable pin is a physical pin on the driver chip, which is used to receive the enable signal. When the enable signal is activated, the driver chip starts to enter the diagnostic mode, and the diagnostic voltage can be fed back through the voltage recovery port. The second driver chip is another driver chip in the same column as the first driver chip; the third driver chip is another driver chip in the same row as the first driver chip; the fourth driver chip is a driver chip in a different row and column from the first driver chip. The preset array structure is the organization form of all driver chips, which are arranged in rows and columns. In this structure, the physical or logical positions of the driver chips are predefined to optimize the connection and diagnosis process.

[0029] Step 102, receiving a first diagnostic voltage fed back by a first driver chip through a first analog sampling port, wherein a voltage recovery port of the first driver chip and a voltage recovery port of the third driver chip are both connected to the first analog sampling port, and a voltage recovery port of the second driver chip and a voltage recovery port of the fourth driver chip are not connected to the first analog sampling port;

[0030] Specifically, the first analog sampling port is an analog sampling port actually existing in the vehicle microcontroller unit, which is used to receive diagnostic voltage data from the connected driver chip. The first diagnostic voltage is a voltage value sent from the first driver chip to the first analog sampling port through its voltage recovery port, which is used as a direct indication of the current operating state of the driver chip to evaluate whether the driver chip is within the normal working range or whether there are any potential faults. The voltage recovery port is a specific port on the driver chip, which is responsible for outputting the current voltage state of the chip, and can feed back the real-time voltage of the chip in operation to the main control MCU for fault diagnosis. It should be noted that, assuming that the third driver chip and the fourth driver chip are in the same column, the enable state of the first driver chip and the second driver chip is the same, and the enable state of the third driver chip and the fourth driver chip is also the same, but there is a mutually exclusive relationship between the enable state of the first driver chip and the second driver chip and the enable state of the third driver chip and the fourth driver chip, that is, at the same time, only the diagnostic mode of the first driver chip, the second driver chip or the third driver chip and the fourth driver chip can be activated, and the enable state of the two groups of chips cannot be activated at the same time.

[0031] Step 103, determining a health status of the first driver chip based on the first diagnostic voltage;

[0032] Specifically, based on the set voltage threshold (such as the normal operating voltage range of 5V±0.5V), if the measured first diagnostic voltage falls within this range, the health status of the first driver chip is determined to be healthy; if the first diagnostic voltage deviates from this range, the health status of the first driver chip is determined to be unhealthy, and an alarm or prompt for further inspection will be issued.

[0033] For example, in the engine control unit of a car, the first driver chip may be responsible for controlling fuel injection. By regularly checking its voltage recovery value, voltage anomalies caused by circuit aging, connection problems or other electronic component failures can be discovered in time, thereby ensuring stable operation of the engine.

[0034] In summary, the embodiment of the present application realizes efficient connection of multiple driver chips by adopting a preset array structure and a shared analog port connection: multiple driver chips (the first driver chip and the second driver chip) are connected through the first IO expansion chip, realizing resource reuse of the diagnostic enable function of multiple chips; the voltage recovery port of the first driver chip and the third driver chip is connected to the same analog sampling port, reducing the number of analog ports required by the MCU, thereby optimizing the use of hardware resources; the driver chips are divided by rows and columns, so that the connection relationship between the driver chips is clear, which is convenient for the implementation and expansion of the diagnostic logic, and improves the efficiency and scalability of diagnosing the driver chip; and through group management (shared enable in the same column, shared feedback in the same row), complex software judgment conditions are reduced, and the diagnostic data returned by the analog sampling port through the logic analysis of the software layer can quickly locate the row and column position of the problem chip, without the need for independent mapping or signal calibration at the hardware level. In summary, the driver chip diagnosis method provided by the embodiment of the present application optimizes the use of hardware resources, simplifies the diagnostic logic, and improves the efficiency, reliability and scalability of driver chip diagnosis through a preset array structure and a shared analog port connection.

[0035] In some embodiments, the aforementioned driver chip diagnosis method may further include: enabling diagnosis of the second driver chip through the first IO port; receiving a second diagnostic voltage fed back by the second driver chip through the second analog sampling port, wherein the voltage recovery port of the second driver chip is connected to the second analog sampling port; and determining the health status of the second driver chip based on the second diagnostic voltage.

[0036] Specifically, the second analog sampling port is an analog sampling port actually existing in the vehicle micro control unit, and is used to receive the diagnostic voltage from the second driver chip. The second diagnostic voltage is a voltage signal sent from the second driver chip through its voltage sampling port. In the implementation process, the first driver chip and the second driver chip (driver chips in the same column) are controlled by a shared enable signal during diagnosis, so that only the driver chips in the same column are activated for diagnosis at the same time, while the driver chips in other columns are in a closed diagnosis mode, avoiding unnecessary hardware interference and resource waste; on this basis, the first analog sampling port receives the diagnostic voltage fed back by the first driver chip, and the second analog sampling port receives the diagnostic voltage of the second driver chip. The sampling process of the diagnostic voltage adopts a sequential sampling method: after the voltage sampling of the first driver chip is completed, the voltage of the second driver chip is sampled immediately, and so on, to ensure that the diagnostic voltage of each chip can be successfully collected in the same cycle; in this way, not only can the diagnosis of multiple chips be completed efficiently, but also the hardware overhead of allocating independent analog sampling ports to each chip is avoided, and the scalability of the driver chip diagnosis method is enhanced. With the addition of more driver chips, it is only necessary to increase the IO expansion chip and appropriately adjust the control strategy, while still maintaining the optimized utilization of hardware resources, which can ensure the efficiency and reliability of the driver chip diagnosis method.

[0037] Through the implementation of the above embodiment, the design of sharing the enable signal with the driver chips in the same column greatly reduces the demand for the number of IO ports and avoids the waste of expensive hardware resources.

[0038] In some embodiments, the aforementioned driver chip diagnosis method may further include: enabling diagnosis of the third driver chip through the second IO port of the first IO expansion chip, wherein the enable pin of the third driver chip is connected to the second IO port; receiving a third diagnostic voltage fed back by the third driver chip through the first analog sampling port; and determining the health status of the third driver chip based on the third diagnostic voltage.

[0039] Specifically, the third diagnostic voltage is a voltage signal emitted from the third driver chip through its voltage sampling port. In the implementation process, the analog sampling process is performed in groups, that is, in the same cycle, the first analog sampling port and the second analog sampling port respectively collect the diagnostic voltages of the first driver chip and the second driver chip; in this way, the health status of the two chips can be diagnosed at the same time; then, entering the next cycle, the first analog sampling port and the second analog sampling port are respectively switched to the voltage sampling ports of the third driver chip and the fourth driver chip for sampling; through this periodic and grouped method, not only the sequentiality of multi-chip diagnosis is ensured, but also the limited analog sampling ports can be fully utilized to improve the overall efficiency of the driver chip diagnosis method. The second IO port is also a specific output port on the first IO expansion chip, and the diagnostic control of the third driver chip is realized by connecting to the enable pin of the third driver chip; the second IO port and the first IO port are output ports located on the same first IO expansion chip, and they respectively control the diagnostic enable of different driver chips, are connected to the enable pins of different driver chips, and have different control objects.

[0040] Through the implementation of the above embodiments, the design of sharing port resources (analog sampling ports and IO ports) by driver chips in the same row reduces the demand for analog sampling ports and IO ports, significantly reducing hardware costs; combined with the solution of sharing enable signals by driver chips in the same column, the optimal configuration of row and column collaboration in a preset array structure is achieved through resource reuse between rows and columns, which can be applied to complex multi-chip control systems.

[0041] In some embodiments, the aforementioned driver chip diagnosis method may further include: enabling diagnosis of the fourth driver chip through the third IO port of the first IO expansion chip, wherein the enable pin of the fourth driver chip is connected to the third IO port; receiving a fourth diagnostic voltage fed back by the fourth driver chip through the third analog sampling port, wherein the voltage recovery port of the fourth driver chip is connected to the third analog sampling port; and determining the health status of the fourth driver chip based on the fourth diagnostic voltage.

[0042] Specifically, the third IO port is also a specific output port on the first IO expansion chip, and is connected to the enable pin of the fourth driver chip to realize diagnostic control of the fourth driver chip; if the fourth driver chip and the third driver chip are located in the same column in the preset array structure, the third IO port and the second IO port are the same IO port, otherwise, the third IO port is an IO port other than the first IO port and the second IO port; if the fourth driver chip and the second driver chip are located in the same row in the preset array structure, the third analog sampling port and the second analog sampling port are the same analog sampling port; if not, the third analog sampling port is an analog sampling port other than the first analog sampling port and the second analog sampling port.

[0043] Through the implementation of the above embodiment, accurate independent diagnosis of driver chips in different rows and columns from the first driver chip is achieved.

[0044] In some embodiments, the aforementioned step 101 may include: sending an enable signal to the first IO expansion chip through the communication port; the first IO expansion chip responds to the enable signal and controls the first IO port to output the enable signal to the enable pin of the first driver chip to activate the diagnostic mode of the first driver chip.

[0045] Specifically, the enable signal is an electronic command used to activate the connected device to enter a specific working state; in the diagnostic mode, the first driver chip will output its voltage value to the outside.

[0046] Through the implementation of the above embodiment, the enable signal is sent using the analog port, the activation logic of the driver chip diagnostic mode is unified, the hardware design is simplified, and the IO expansion chip responds quickly to the enable signal, ensuring the immediate activation of the driver chip diagnostic mode and improving the diagnostic efficiency.

[0047] In some embodiments, the communication port communicates with the first IO expansion chip via a two-wire communication protocol or a full-duplex communication protocol.

[0048] Specifically, a two-wire communication protocol generally refers to a communication protocol that only requires two lines (a data line and a clock line) to complete data transmission. The two-wire communication protocol in the embodiment of the present application may be an I2C (Inter-Integrated Circuit) that uses a data line (Serial Data Line, SDA) and a clock line (Serial Clock Line, SCL) for data transmission. A full-duplex communication protocol allows data to be transmitted in two directions at the same time, that is, the device can send and receive data at the same time. The full-duplex communication protocol in the embodiment of the present application may be an SPI (Serial Peripheral Interface) that uses four lines: Master Out Slave In (MOSI), Master In Slave Out (MISO), a clock line (Serial Clock, SCK) and a chip select line (Slave Select, SS).

[0049] Through the implementation of the above embodiments, a two-wire or full-duplex communication protocol is adopted to achieve high-speed, low-latency communication between the analog port and the IO expansion chip, which can adapt to high-frequency diagnosis needs.

[0050] In some embodiments, before the aforementioned step 101, the driver chip diagnostic method may further include: sending a load start / stop signal to the first driver chip through the fourth IO port of the second IO expansion chip, so that the first driver chip controls the working state of the first load through the first output port, wherein the first load is a load device controlled by the first driver chip.

[0051] Specifically, the second IO expansion chip refers to another chip different from the first IO expansion chip, which is used to add additional output functions, allowing the vehicle microcontroller unit to manage more output devices; the fourth IO port is a specific output port located on the second IO expansion chip, which is used to send a load start-stop signal to the first driver chip. The load start-stop signal is a control signal used to start or stop a specific electronic or electrical device (load); this signal is usually binary, that is, "on" (start the device) or "off" (stop the device). The first load refers to a specific load device controlled by the first driver chip, which can be any electrically controlled mechanical or electronic device in the vehicle, such as a motor, heater, lamp, etc. The port of the driver chip used to receive the load start-stop signal and the output port used to control the working state of the load must be kept independent to ensure clear signal transmission and accurate control; the port of the driver chip receiving the load start-stop signal is usually responsible for receiving the control signal and triggering the corresponding action, while the output port that controls the working state of the load directly drives the operation of the load device; due to the different characteristics of the load devices (such as power requirements, response time, etc.), the functions of these two ports must be clearly separated to avoid mutual interference to ensure stable operation of the vehicle system.

[0052] Through the implementation of the above embodiment, the load state is adjusted by the load start-stop signal before diagnosis to simulate the actual use environment, ensuring that the diagnosis result of the driver chip is consistent with the actual load condition, thereby improving the authenticity and effectiveness of the diagnosis.

[0053] For example, see Figure 2 In the figure, MCU is a vehicle microcontroller unit, IO expansion chip 1 is the first IO expansion chip, IO expansion chip 2 and IO expansion chip n are both second IO expansion chips, high-side and low-side driver chip 1_1 is the first driver chip, high-side and low-side driver chip n_1 is the second driver chip, high-side and low-side driver chip 1_2, high-side and low-side driver chip 1_3 and high-side and low-side driver chip 1_4 are all third driver chips, high-side and low-side driver chip n_2, high-side and low-side driver chip n_3 and high-side and low-side driver chip n_4 are all fourth driver chips, and the port marked Den is an enable pin, and the port marked The port marked In is the chip port for receiving the load start and stop signal, the port marked Adc is the voltage recovery port, the port marked Out is the output port for controlling the load working state, the port marked Adc_Ch0 is the first analog sampling port, the port marked Adc_Ch1 is the second analog sampling port, I2c / Spi ​​is the transmission communication protocol between the vehicle micro control unit and the IO expansion chip, the green line shows the connection between the first IO expansion chip and the enable pin, and the red line shows the connection between the analog sampling port and the voltage recovery port.

[0054] Furthermore, as an implementation of the aforementioned method embodiment, the present application also provides a driver chip diagnostic device for implementing the aforementioned method embodiment. The device embodiment corresponds to the aforementioned method embodiment. For ease of reading, the present driver chip diagnostic device embodiment will no longer repeat the details of the aforementioned method embodiment one by one, but it should be clear that the device in the embodiment of the present application can correspond to and implement all the contents of the aforementioned method embodiment. Figure 3 As shown, the driver chip diagnostic device 20 includes: a diagnostic enabling unit 201, a voltage recovery unit 202 and a chip diagnostic unit 203, wherein the diagnostic enabling unit 201 is used to diagnose and enable the first driver chip through the first IO port of the first IO expansion chip, wherein the first IO expansion chip is an IO expansion chip connected to the communication port of the vehicle micro control unit, the enable pin of the first driver chip and the enable pin of the second driver chip are both connected to the first IO port, the enable pin of the third driver chip and the enable pin of the fourth driver chip are not connected to the first IO port, and the second driver chip is a driver chip in the same column as the first driver chip in the preset array structure. The third driver chip is a driver chip that is in the same row as the first driver chip in the preset array structure, and the fourth driver chip is a driver chip that is in a different row and column than the first driver chip in the preset array structure; a voltage recovery unit 202 is used to receive a first diagnostic voltage fed back by the first driver chip through a first analog sampling port, wherein the voltage recovery port of the first driver chip and the voltage recovery port of the third driver chip are both connected to the first analog sampling port, and the voltage recovery port of the second driver chip and the voltage recovery port of the fourth driver chip are not connected to the first analog sampling port; a chip diagnosis unit 203 is used to determine the health status of the first driver chip based on the first diagnostic voltage.

[0055] In some embodiments, the diagnostic enabling unit 201 is also used to enable the diagnosis of the second driver chip through the first IO port; the voltage recovery unit 202 is also used to receive the second diagnostic voltage fed back by the second driver chip through the second analog sampling port, wherein the voltage recovery port of the second driver chip is connected to the second analog sampling port; the chip diagnostic unit 203 is also used to determine the health status of the second driver chip based on the second diagnostic voltage.

[0056] In some embodiments, the diagnostic enable unit 201 is also used to enable diagnosis of the third driver chip through the second IO port of the first IO expansion chip, wherein the enable pin of the third driver chip is connected to the second IO port; the voltage recovery unit 202 is also used to receive the third diagnostic voltage fed back by the third driver chip through the first analog sampling port; the chip diagnostic unit 203 is also used to determine the health status of the third driver chip based on the third diagnostic voltage.

[0057] In some embodiments, the diagnostic enable unit 201 is also used to enable diagnosis of the fourth driver chip through the third IO port of the first IO expansion chip, wherein the enable pin of the fourth driver chip is connected to the third IO port; the voltage recovery unit 202 is also used to receive the fourth diagnostic voltage fed back by the fourth driver chip through the third analog sampling port, wherein the voltage recovery port of the fourth driver chip is connected to the third analog sampling port; the chip diagnostic unit 203 is also used to determine the health status of the fourth driver chip based on the fourth diagnostic voltage.

[0058] In some embodiments, the diagnostic enable unit 201 is further used to send an enable signal to the first IO expansion chip through the communication port; the first IO expansion chip responds to the enable signal and controls the first IO port to output the enable signal to the enable pin of the first driver chip to activate the diagnostic mode of the first driver chip.

[0059] In some embodiments, the communication port communicates with the first IO expansion chip via a two-wire communication protocol or a full-duplex communication protocol.

[0060] In some embodiments, the diagnostic enabling unit 201 is also used to send a load start / stop signal to the first driver chip through the fourth IO port of the second IO expansion chip, so that the first driver chip controls the working state of the first load through the first output port, wherein the first load is a load device controlled by the first driver chip.

[0061] The present application also provides a computer-readable storage medium, which stores computer-executable instructions or computer programs. When the computer-executable instructions or computer programs are executed by a processor, the processor will be caused to execute any step of the driver chip diagnosis method provided in the present application.

[0062] In some embodiments, the computer-readable storage medium may be a memory such as RAM, read-only memory (ROM), flash memory, magnetic surface memory, optical disk, or compact disc read-only memory (CD-ROM); or it may be various devices including one or any combination of the above memories.

[0063] In some embodiments, computer executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0064] In some embodiments, computer-executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file storing other programs or data, for example, in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).

[0065] In some embodiments, computer executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed at multiple sites and interconnected by a communication network.

[0066] like Figure 4 As shown, the present application also provides an electronic device 30, including a memory 310, a processor 320, and a computer program 311 stored in the memory 310 and executable on the processor, and when the processor 320 executes the computer program 311, any step of the above-mentioned driver chip diagnosis method is implemented.

[0067] The present application also provides a computer program product, which includes a computer program or a computer executable instruction, and the computer program or the computer executable instruction is stored in a computer readable storage medium. The processor of the electronic device reads the computer program or the computer executable instruction from the computer readable storage medium, and the processor executes the computer program or the computer executable instruction, so that the electronic device performs any step of the driver chip diagnosis method described above in the present application.

[0068] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A driver chip diagnostic method, applied to a vehicle micro control unit, characterized in that: include: The first driver chip is diagnosed and enabled through the first IO port of the first IO expansion chip, wherein the first IO expansion chip is an IO expansion chip connected to the communication port of the vehicle micro control unit, the enable pin of the first driver chip and the enable pin of the second driver chip are both connected to the first IO port, the enable pin of the third driver chip and the enable pin of the fourth driver chip are not connected to the first IO port, the second driver chip is a driver chip in the same column as the first driver chip in a preset array structure, the third driver chip is a driver chip in the same row as the first driver chip in the preset array structure, and the fourth driver chip is a driver chip in a different row and column than the first driver chip in the preset array structure; Receiving a first diagnostic voltage fed back by the first driver chip through a first analog sampling port, wherein the voltage recovery port of the first driver chip and the voltage recovery port of the third driver chip are both connected to the first analog sampling port, and the voltage recovery port of the second driver chip and the voltage recovery port of the fourth driver chip are not connected to the first analog sampling port; Based on the first diagnostic voltage, a health status of the first driver chip is determined.

2. The driver chip diagnosis method according to claim 1, characterized in that: The driver chip diagnosis method further includes: Performing diagnosis and enabling of the second driver chip through the first IO port; Receiving a second diagnostic voltage fed back by the second driver chip through a second analog sampling port, wherein a voltage recovery port of the second driver chip is connected to the second analog sampling port; Based on the second diagnostic voltage, a health status of the second driver chip is determined.

3. The driver chip diagnosis method according to claim 1, characterized in that: The driver chip diagnosis method further includes: Diagnose and enable the third driver chip through the second IO port of the first IO expansion chip, wherein an enable pin of the third driver chip is connected to the second IO port; receiving a third diagnostic voltage fed back by the third driver chip through the first analog sampling port; Based on the third diagnostic voltage, a health status of the third driver chip is determined.

4. The driver chip diagnosis method according to claim 1, characterized in that: The driver chip diagnosis method further includes: Diagnose and enable the fourth driver chip through the third IO port of the first IO expansion chip, wherein an enable pin of the fourth driver chip is connected to the third IO port; Receiving a fourth diagnostic voltage fed back by the fourth driver chip through a third analog sampling port, wherein a voltage recovery port of the fourth driver chip is connected to the third analog sampling port; Based on the fourth diagnostic voltage, a health status of the fourth driver chip is determined.

5. The driver chip diagnosis method according to claim 1, characterized in that: The step of enabling diagnosis of the first driver chip through the first IO port of the first IO expansion chip includes: By sending an enable signal to the first IO expansion chip; In response to the enable signal, the first IO expansion chip controls the first IO port to output the enable signal to the enable pin of the first driver chip to activate the diagnosis mode of the first driver chip.

6. The driver chip diagnosis method according to claim 5, characterized in that: The communication port communicates with the first IO expansion chip via a two-line communication protocol or a full-duplex communication protocol.

7. The driver chip diagnosis method according to claim 1, characterized in that: Before enabling the first driver chip through the first IO port of the first IO expansion chip, the driver chip diagnosis method further includes: A load start / stop signal is sent to the first driver chip through the fourth IO port of the second IO expansion chip, so that the first driver chip controls the working state of the first load through the first output port, wherein the first load is a load device controlled by the first driver chip.

8. A driver chip diagnostic device, characterized in that: include: a diagnostic enabling unit, configured to enable the first driver chip through the first IO port of the first IO expansion chip for diagnosis, wherein the first IO expansion chip is an IO expansion chip connected to the communication port of the vehicle micro control unit, an enable pin of the first driver chip and an enable pin of the second driver chip are both connected to the first IO port, an enable pin of the third driver chip and an enable pin of the fourth driver chip are both not connected to the first IO port, the second driver chip is a driver chip in the same column as the first driver chip in a preset array structure, the third driver chip is a driver chip in the same row as the first driver chip in the preset array structure, and the fourth driver chip is a driver chip in a different row and column than the first driver chip in the preset array structure; A voltage recovery unit, used for receiving the first diagnostic voltage fed back by the first driver chip through a first analog sampling port, wherein the voltage recovery port of the first driver chip and the voltage recovery port of the third driver chip are both connected to the first analog sampling port, and the voltage recovery port of the second driver chip and the voltage recovery port of the fourth driver chip are not connected to the first analog sampling port; A chip diagnosis unit is used to determine a health status of the first driver chip based on the first diagnosis voltage.

9. An electronic device, comprising: A memory and a processor, wherein the processor is used to implement the steps of the driver chip diagnosis method as described in any one of claims 1 to 7 when executing the computer program stored in the memory.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the driver chip diagnosis method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Design Method of TCXO Test Circuit

    CN106199256B

  • High density test chip, test system and test method

    CN108267682A

  • Automobile motor controller, control system and automobile

    CN110936821A

  • Chip test method, device, equipment and system

    CN110967613A

  • System and method for testing fault identification function of driving chip

    CN118937962A