Vehicle diagnosis method and device, vehicle and storage medium
By detecting the reset and target flag bits of the target controller in the vehicle and diagnosing based on the voltage and threshold of the power supply pin, the problem of difficult to identify the vehicle power supply abnormality is solved, and the accurate identification and diagnosis of vehicle power supply abnormality is achieved to ensure that The normal operation of the vehicle controller.
Patent Information
- Application Number
- CN202411374376.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-09-29
AI Technical Summary
The prior art is difficult to accurately identify and diagnose occasional and short-lasting power supply abnormalities that occur during the vehicle's driving process, affecting the normal operation of the vehicle controller.
By obtaining the reset flag and the target flag when the start command of the target controller in the vehicle is detected, it determines whether the target controller is in an abnormal state, and diagnoses the power supply pin based on the current voltage and threshold of the power supply pin. Identify power supply abnormality.
Accurate identification and diagnosis of vehicle power supply abnormalities, timely discover and deal with abnormalities, avoid the impact on the vehicle controller, and ensure the normal operation of the vehicle.
Smart Images

Figure CN119087988A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicles, and more specifically, to a vehicle diagnosis method, device, vehicle and storage medium in the field of vehicles. Background Art
[0002] In the prior art, a vehicle is equipped with a variety of controllers for realizing control functions of the vehicle; the normal operation of the controllers requires normal power supply of the vehicle; if a power supply abnormality occurs during the driving of the vehicle, it will have a great impact on the control functions of the vehicle's controllers; therefore, when a power supply abnormality occurs in the vehicle, it is necessary to identify and repair the vehicle's power supply abnormality in a timely manner.
[0003] However, power supply anomalies are sporadic events with a short duration and are difficult to identify; therefore, how to identify power supply anomalies in vehicles is a technical problem that needs to be solved at present. Summary of the invention
[0004] The present application provides a vehicle diagnostic method, device, vehicle and storage medium. When the method detects that a controller of the vehicle is abnormal, the method determines the target power supply pin in the target controller that is in an abnormal state based on the target flag bit of the target controller read; thereby, the power supply abnormality of the vehicle can be identified.
[0005] In a first aspect, a vehicle diagnosis method is provided, the method comprising:
[0006] When a start instruction of a target controller in the vehicle is detected, a reset flag of the target controller is obtained; wherein the reset flag is used to indicate status information of the target controller;
[0007] Based on the reset flag bit, determine whether the target controller has an abnormality;
[0008] If the target controller is abnormal, read the target flag bit stored in the target controller; wherein the target flag bit is used to indicate the state of the power supply pin of the target controller;
[0009] Based on the target flag bits, diagnose the power supply pins of the target controller.
[0010] In one implementation, the state information of the target controller includes: whether the target controller is in a sleep state or in a running state.
[0011] In an embodiment of the present application, when a start-up instruction of a target controller in a vehicle is detected, it is determined whether the target controller is in an abnormal state based on a reset flag of the target controller in the vehicle; since the reset flag is used to indicate the state information of the target controller; including whether the target controller is in a dormant state or in a running state; when a start-up instruction of the target controller is detected, the state information of the target controller will change accordingly; therefore, based on the state information of the target controller, it is possible to determine whether the target controller is abnormal. If the target controller is abnormal, it means that the target controller may have a power supply abnormality; therefore, it is necessary to diagnose the power supply pin through the target flag to determine whether the target controller of the vehicle has a power supply abnormality; since the power supply abnormality is an occasional event and lasts for a short time, it is difficult to accurately identify; therefore, this scheme diagnoses the power supply pin through the target flag, that is, identifies the state of the power supply pin through the target flag, thereby determining whether the target controller has a power supply abnormality through the state of the power supply pin; that is, the identification of the power supply abnormality of the vehicle is realized; and when the target controller of the vehicle has an abnormality, the power supply pin causing the power supply abnormality is diagnosed based on the target flag.
[0012] In combination with the first aspect, in some implementations of the first aspect, the target flag is stored in a storage area of the target controller, and before reading the target flag stored in the target controller, the method further includes:
[0013] Get the current voltage of the power supply pin of the target controller;
[0014] Based on the current voltage of the power supply pin, determining whether the power supply pin is in an abnormal state;
[0015] If the power supply pin is in an abnormal state, the target flag bit corresponding to the power supply pin in the storage area is set; wherein different power supply pins correspond to different target flag bits in the storage area.
[0016] In an embodiment of the present application, based on the current voltage of the power supply pin of the target controller, it is determined whether the power supply pin is in an abnormal state; if the power supply pin is in an abnormal state, the target flag bit corresponding to the power supply pin in the storage area is set; since the target flag bit of each power supply pin is different, the state of each power supply pin in the power supply pin can be determined based on the target flag bit, thereby realizing the identification and diagnosis of vehicle power supply abnormalities.
[0017] In combination with the first aspect and the above implementations, in some implementations of the first aspect, determining whether the power supply pin is in an abnormal state based on the current voltage of the power supply pin includes:
[0018] Determine the maximum voltage threshold and the minimum voltage threshold corresponding to the power supply pin;
[0019] If the current voltage of the power supply pin is less than the minimum voltage threshold, or greater than the maximum voltage threshold, it is determined that the power supply pin is in an abnormal state.
[0020] In an embodiment of the present application, a power supply pin is used to power a target controller. If there is an abnormality in the voltage of the power supply pin, it will cause abnormal power supply to the vehicle. Since the maximum voltage threshold and the minimum voltage threshold corresponding to different power supply pins are different, the state of the power supply pin is identified based on the current voltage of the power supply pin, the maximum voltage threshold and the minimum voltage threshold of the power supply pin. Ensure that the state of each power supply pin in the target controller can be accurately judged. When it is detected that the current voltage of the power supply pin is less than the minimum voltage threshold, or greater than the maximum voltage threshold, it is determined that the power supply pin is in an abnormal state.
[0021] In combination with the first aspect and the above implementations, in some implementations of the first aspect, the following further includes:
[0022] Get the correspondence between each power supply pin and the target flag bit;
[0023] Based on the target flag bit, diagnose the power supply pins of the target controller, including:
[0024] Based on the value of the target flag bit, determine whether the target controller has a power supply abnormality;
[0025] If a power supply abnormality exists in the target controller, a target power supply pin in an abnormal state in the target controller is determined based on the corresponding relationship and the target flag bit.
[0026] In an embodiment of the present application, when determining a target power supply pin in an abnormal state, the correspondence between each power supply pin and a target flag bit is obtained; that is, each power supply pin corresponds to a target flag bit; since the target flag bit corresponding to the power supply pin in the abnormal state is set; therefore, based on the value of the target flag bit, it can be determined whether there is a power supply abnormality in the target controller; if there is a power supply abnormality, the target power supply pin in the abnormal state is determined based on the correspondence and the target flag bit; thereby realizing the diagnosis of the power supply pin in the target controller.
[0027] In combination with the first aspect and the above implementations, in some implementations of the first aspect, the target controller includes a register, and the register is connected to a backup power supply;
[0028] Read the target flag bits stored in the target controller, including:
[0029] A target flag bit stored in a register of a target controller is read; wherein the register is powered by a backup power supply.
[0030] In an embodiment of the present application, the target flag bit stored in the register of the target controller is read; the target controller includes a register, and the register is connected to a backup power supply; the register is powered by the backup power supply to ensure that when the vehicle is powered off or there is a power supply abnormality in the target controller, the target flag bit stored in the register is not lost; the target flag bit stored in the register can be read; that is, when there is a power supply abnormality in the target controller, the target power supply pin causing the power supply abnormality can be determined based on the target flag bit stored in the register.
[0031] In combination with the first aspect and the above implementations, in some implementations of the first aspect, determining whether the target controller is in an abnormal state based on the reset flag bit includes:
[0032] If the reset flag indicates that the target controller is in a dormant state, determine the duration of the target controller being in the dormant state; if the duration is greater than a preset duration, determine that an abnormality exists in the target controller;
[0033] Alternatively, if the reset flag indicates that the target controller is in a running state, it is determined that an abnormality exists in the target controller.
[0034] In an embodiment of the present application, when a startup instruction of the target controller is detected, the state of the target controller will jump from a sleep state to a running state; therefore, if the reset flag indicates that the target controller is continuously in a sleep state, and the duration of the sleep state is greater than a preset duration, it means that there is an abnormality in the target controller; or, if the reset flag indicates that the target controller is in a running state, it is determined that there is an abnormality in the target controller.
[0035] In combination with the first aspect and the above implementations, in some implementations of the first aspect, the following further includes:
[0036] determining a target number of target power supply pins in an abnormal state among the power supply pins;
[0037] Determine a prompt level corresponding to the target number based on the target number;
[0038] Output prompt information corresponding to the prompt level; wherein the prompt information is used to report the target power supply pin that is in an abnormal state.
[0039] In an embodiment of the present application, a target number of target power supply pins in an abnormal state is determined; and a prompt level corresponding to the target number is determined; since a larger number of target power supply pins has a greater impact on the target controller; therefore, when determining the target power supply pins, prompt information corresponding to the prompt level is output; ensuring that the power supply abnormality of the vehicle can be discovered in time; and corresponding prompt information is output according to the severity of the power supply abnormality, so that the user can take corresponding measures according to the prompt information to avoid safety accidents in the vehicle.
[0040] In a second aspect, a vehicle diagnostic device is provided, the device comprising:
[0041] An acquisition module, used for acquiring a reset flag of the target controller when a start instruction of the target controller in the vehicle is detected; wherein the reset flag is used to indicate the state information of the target controller;
[0042] A determination module, used for determining whether a target controller has an abnormality based on a reset flag bit;
[0043] A reading module, used for reading a target flag bit stored in the target controller if an abnormality occurs in the target controller; wherein the target flag bit is used to indicate the state of the power supply pin of the target controller;
[0044] The diagnostic module is used to diagnose the power supply pins of the target controller based on the target flag bit.
[0045] In a third aspect, a vehicle is provided, comprising a memory and a processor, wherein the memory is used to store executable program code, and the processor is used to call and run the executable program code from the memory, so that the vehicle executes the method in the above-mentioned first aspect or any possible implementation of the first aspect.
[0046] In a fourth aspect, a computer program product is provided, comprising: a computer program code, which, when executed on a computer, enables the computer to execute the method in the first aspect or any possible implementation of the first aspect.
[0047] In a fifth aspect, a computer-readable storage medium is provided, which stores instructions. When the instructions are executed on a vehicle, the vehicle executes the method in the above-mentioned first aspect or any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 is a schematic diagram of a main control chip of a controller provided in an embodiment of the present application;
[0049] Figure 2 is a schematic flow chart of a vehicle diagnostic method provided in an embodiment of the present application;
[0050] Figure 3 is a schematic flow chart of another vehicle diagnostic method provided in an embodiment of the present application;
[0051] Figure 4 is a schematic flow chart of another vehicle diagnostic method provided in an embodiment of the present application;
[0052] Figure 5is a structural schematic diagram of a vehicle diagnostic device provided in an embodiment of the present application;
[0053] Figure 6 It is a structural schematic diagram of a vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION
[0054] The technical solution in the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0055] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.
[0056] In the prior art, a vehicle is equipped with a variety of controllers to realize the control functions of the vehicle. The normal operation of the controller requires the normal power supply of the vehicle. If a power supply abnormality occurs during the driving of the vehicle, it will have a great impact on the control functions of the vehicle's controller. Therefore, when a power supply abnormality occurs in the vehicle, it is necessary to identify and repair the power supply abnormality of the vehicle in a timely manner. However, power supply abnormality is an occasional event and lasts for a short time, making it difficult to accurately identify. Therefore, how to identify the power supply abnormality of the vehicle is a technical problem that needs to be solved at present.
[0057] In view of this, the present application provides a vehicle diagnostic method, device, vehicle and storage medium. Through the embodiments of the present application, when an abnormality is detected in the vehicle's controller, the target power supply pin in the target controller that is in an abnormal state is determined based on the target flag bit of the target controller read; thereby, the vehicle's power supply abnormality can be identified.
[0058] Figure 1 It is a schematic diagram of a main control chip of a controller provided in an embodiment of the present application.
[0059] For example, Figure 1 As shown, the main control chip 100 of the vehicle is a core component of the controller in the vehicle; the main control chip 100 includes a register 101 and a pin 102 .
[0060] Among them, the main control chip 100 is used to process and control various functions in the vehicle; the register 101 is composed of a combination of triggers with storage functions, and is used to store binary codes; the pin 102 is a connection port on an integrated circuit, microcontroller or other electronic components, and is used for data exchange with external devices, control signal transmission and other functions.
[0061] Exemplarily, each trigger in the register can store 1 bit of binary code, so a register storing n bits of binary code needs to be constructed with n triggers; the n bits of binary code in the register correspond to the n bits of target flag bits stored in the register.
[0062] For example, Figure 1 The main control chip shown includes multiple pins. According to the different functions of the pins, the pins of the main control chip can be divided into data pins, communication pins and power supply pins, etc.; among them, the data pins are used to transmit data signals; for example, sensor data and control signals, etc.; the communication pins are used to communicate with other devices; the power supply pins refer to the pins used to provide power, which are usually used to power electronic devices or modules.
[0063] It should be understood that the main control chip contains multiple power supply pins. When the power supply pins of the main control chip are faulty, the vehicle controller will be powered abnormally; that is, the vehicle controller cannot operate normally. Therefore, when a fault is detected in the vehicle controller, it is necessary to determine the abnormal target power supply pin, so as to identify and diagnose the abnormal power supply of the vehicle; Figures 2 to 4 The method for diagnosing abnormal vehicle power supply provided in an embodiment of the present application is described in detail.
[0064] Figure 2 It is a schematic flow chart of a vehicle diagnostic method provided in an embodiment of the present application.
[0065] For example, Figure 2 The method 200 shown may be performed by Figure 1 It can be executed by the main control chip in the vehicle; or it can be executed by a vehicle having the above main control chip; or it can be executed by a processor in the vehicle.
[0066] like Figure 2 As shown, the vehicle diagnosis method 200 includes S210 to S240 , which will be described in detail below.
[0067] S210, when a start instruction of a target controller in the vehicle is detected, a reset flag of the target controller is obtained.
[0068] Among them, the reset flag is stored in a specific area of the main control chip of the target controller, which is used to indicate the status information of the target controller; the reset flag is a binary flag. When the reset flag is 0, it indicates that the target controller of the vehicle is in a sleep state. When the reset flag is 1, it indicates that the target controller of the vehicle is in a running state.
[0069] Exemplarily, the target controller is a controller in the vehicle, which is responsible for managing specific functions or systems of the vehicle; the controller achieves precise control of various parts of the vehicle through its own hardware and software to ensure the normal operation of the vehicle; the target controller includes but is not limited to: engine control unit, body control module, brake control unit, air conditioning control unit, seat control unit, headlight control unit, etc.
[0070] Exemplarily, different target controllers correspond to different ways of triggering start instructions; for example, when the vehicle's ignition switch is turned on, a start instruction to the engine control unit is triggered; when the sensor detects rain, a start instruction to the wiper controller is triggered; when the user presses a specific button or switch, a start instruction to the light control unit and the seat control unit is triggered; when the door is unlocked by sending a wireless signal via the remote control key, a start instruction to the door control unit is triggered.
[0071] It should be noted that this solution does not limit the method of triggering the start instruction of the target controller.
[0072] Exemplarily, when a start instruction of a target controller in a vehicle is detected, a reset flag of the target controller is acquired, that is, before the start instruction is detected and the target controller is controlled to start, the reset flag of the target controller is read.
[0073] S220: Determine whether the target controller has an abnormality based on the reset flag.
[0074] In one implementation, determining whether the target controller is in an abnormal state based on a reset flag bit includes:
[0075] If the reset flag indicates that the target controller is in a sleep state, determine how long the target controller is in the sleep state; if the duration is greater than a preset duration, determine that there is an abnormality in the target controller; or, if the reset flag indicates that the target controller is in a running state, determine that there is an abnormality in the target controller.
[0076] For example, when the target controller is in a normal state, if a start command is detected, the target flag will jump from a sleep state to a running state; therefore, when a start command of the target controller in the vehicle is detected, if the reset flag indicates that the target controller is continuously in a sleep state and does not jump to a running state within a preset time period, it indicates that there is an abnormality in the target controller; or if the reset flag indicates that the target controller is in a running state before the target controller is started, it indicates that there is an abnormality in the target controller.
[0077] For example, the preset duration is 500ms. When the start command of the target controller in the vehicle is detected, the reset flag of the target controller is obtained before the target controller is started; if the reset flag of the target controller obtained is 1, indicating that the target controller is in the running state, it means that there is an abnormality in the target controller. If the reset flag of the target controller obtained is 0, it means that the target controller is in the dormant state; then it is further determined whether the reset flag of the target controller jumps from 0 to 1 within 500ms after the start command is detected; that is, it is determined whether the target controller responds to the start command within 500ms and changes from the dormant state to the running state; if the target controller continues to be in the dormant state and the duration is greater than 500ms, it means that the target controller does not respond to the start command correctly, that is, there is an abnormality in the target controller.
[0078] It should be noted that the above preset time length is for illustration only, and this application does not limit the setting of the preset time length.
[0079] In an embodiment of the present application, when a startup instruction of the target controller is detected, the state of the target controller will jump from the sleep state to the running state; therefore, if the reset flag indicates that the target controller is continuously in the sleep state, and the time length in the sleep state is greater than the preset time length, it indicates that there is an abnormality in the target controller; or, if the reset flag indicates that the target controller is in the running state, it indicates that the target controller has not jumped from the sleep state to the running state; therefore, it is determined that there is an abnormality in the target controller.
[0080] S230: If the target controller is abnormal, read the target flag bit stored in the target controller.
[0081] Among them, the target flag is stored in the storage area of the target controller and is used to indicate the state of the power supply pin of the target controller; the target flag is composed of multiple flags, and the flag is equivalent to the bit in the data; that is, the target flag is composed of multiple bits; each power supply pin corresponds to a bit in the target flag.
[0082] It should be noted that the bit is a binary number. When there is an abnormality in the power supply pin, the bit corresponding to the power supply pin is 1, and when there is no abnormality in the power supply pin, the bit corresponding to the power supply pin is 0.
[0083] Exemplarily, before reading the target flag stored in the target controller, it is necessary to generate the target flag first. The method for generating the target flag is described below.
[0084] In one implementation, before reading the target flag bit stored in the target controller, the method further includes:
[0085] Obtaining a current voltage of a power supply pin of a target controller; determining whether the power supply pin is in an abnormal state based on the current voltage of the power supply pin;
[0086] If the power supply pin is in an abnormal state, the target flag bit corresponding to the power supply pin in the storage area is set; wherein different power supply pins correspond to different target flag bits in the storage area.
[0087] Exemplarily, whether the power supply pin is in an abnormal state is determined by the current voltage of the power supply pin; if the power supply pin is in an abnormal state, the target flag bit corresponding to the power supply pin in the storage area is set; wherein, setting means setting the value of the target flag bit corresponding to the power supply pin from 0 to 1; since different power supply pins correspond to different target flag bits in the storage area, that is, each power supply pin corresponds to a target flag bit, therefore, based on the target flag bit, the power supply pin in an abnormal state can be determined, thereby realizing the identification and diagnosis of vehicle power supply abnormalities.
[0088] It should be understood that different power supply pins correspond to different target flag bits; since the target controller includes multiple power supply pins; therefore, multiple target flag bits in the target controller constitute a flag bit set.
[0089] For example, a target flag value of 0 indicates that the power pin is in a normal state, and a target flag value of 1 indicates that the power pin is in an abnormal state; there are 5 power pins in the target controller, namely {pin 1, pin 2, pin 3, pin 4, pin 5}; if there are no faults in the 5 power pins of the target controller; then the target flag corresponding to each power pin is "0"; that is, the flag set corresponding to the power pin is "00000"; each pin corresponds to a target flag; if pin 1 of the power pins is in an abnormal state, the target flag corresponding to pin 1 is set, and the resulting flag set is "10000"; if pins 2 and pin 4 are in abnormal states, the target flags corresponding to pins 2 and 4 are set, and the resulting flag set is "01010".
[0090] It should be noted that the above is an example of the number and status of the power supply pins, and this application does not limit this.
[0091] It should be understood that each power supply pin corresponds to a target flag bit; the number of power supply pins and the number of target flag bits may be the same; if the number of power supply pins is the same as the number of target flag bits, the power supply pins and the target flag bits correspond one-to-one; the number of power supply pins and the number of target flag bits may also be different; that is, the number of flag bits is greater than the number of power supply pins.
[0092] For example, the target controller has 5 power pins, and the flag bit set contains 6 flag bits {bit1, bit2, bit3, bit4, bit5, bit6}; among them, bit6 is used to determine whether there is a power pin in the target controller that is in an abnormal state; if so, the value of bit6 is set to 1; if not, the value of bit6 is 0; bits 1 to bit 5 correspond to the 5 power pins of the target controller respectively; therefore, if pins 1 and pin 5 in the target controller are abnormal; then the target flag bit of the target controller is "100011".
[0093] In one implementation, the determining whether the power supply pin is in an abnormal state based on the current voltage of the power supply pin includes:
[0094] Determine the maximum voltage threshold and the minimum voltage threshold corresponding to the power supply pin;
[0095] If the current voltage of the power supply pin is less than the minimum voltage threshold, or greater than the maximum voltage threshold, it is determined that the power supply pin is in an abnormal state.
[0096] For example, since different power supply pins correspond to different voltage thresholds, when determining whether a power supply pin is in an abnormal state, it is necessary to first obtain the maximum voltage threshold and the minimum voltage threshold corresponding to the power supply pin; if the voltage of the power supply pin is greater than the maximum voltage threshold or less than the minimum voltage threshold, it indicates that there is an abnormality in the voltage of the power supply pin, that is, the power supply pin is in an abnormal state.
[0097] For example, there are 5 power supply pins in the target controller, namely {pin 1, pin 2, pin 3, pin 4, pin 5}; among them, pin 1 is a 5V (volt) pin, the minimum voltage threshold of pin 1 is 4V, and the maximum voltage threshold is 6V; when it is detected that the current voltage of pin 1 is greater than 6V or less than 4V, pin 1 is determined to be in an abnormal state; and the value of the target flag bit corresponding to pin 1 is set to 1. Pin 3 is a 3.3V pin, the maximum voltage threshold of pin 3 is 4.0V, and the minimum voltage threshold is 3.0V; when it is detected that the current voltage of pin 3 is less than 3.0V or greater than 4.0V, pin 3 is determined to be in an abnormal state, and the value of the target flag bit corresponding to pin 3 is set to 1.
[0098] It should be noted that the above are examples of power supply pins, maximum voltage thresholds and minimum voltage thresholds, and this application does not limit this.
[0099] It should be understood that the process of detecting the status of the power supply pin and obtaining the target flag bit is carried out in real time; ensuring that when there is an abnormality in the power supply pin, the abnormality of the power supply pin can be captured and identified in time, and the abnormal status of the power supply pin is stored in the target controller in the form of a target flag bit; ensuring that when there is an abnormality in the target controller of the vehicle subsequently, the target flag bit stored in the target controller can be read.
[0100] In an embodiment of the present application, the power supply pin is used to power the target controller. If the voltage of the power supply pin is abnormal, it will cause abnormal power supply to the vehicle; since the maximum voltage threshold and the minimum voltage threshold corresponding to different power supply pins are different; therefore, when determining whether the power supply pin is in an abnormal state based on the current voltage of the power supply pin, the maximum voltage threshold and the minimum voltage threshold corresponding to the power supply pin are determined; when the current voltage of the power supply pin is less than the minimum voltage threshold, or greater than the maximum voltage threshold, it indicates that the voltage of the power supply pin is abnormal, ensuring that the state of the power supply pin can be judged according to the different voltage thresholds corresponding to different power supply pins.
[0101] In one implementation, the target controller includes a register, the register being connected to a backup power supply;
[0102] The above-mentioned reading of the target flag bit stored in the target controller includes:
[0103] A target flag bit stored in a register of a target controller is read; wherein the register is powered by a backup power supply.
[0104] Exemplarily, the target flag bit is stored in the register of the target controller; Figure 1As shown, the register is located in the main control chip of the target controller and is used to store the target flag bit of the binary code; and the register is connected to a backup power supply to power the register; since the target flag bit stored in the register is used to diagnose the power supply anomaly of the target controller; and when the target controller has a power supply anomaly, it may cause the target controller to be powered off, that is, the main control chip of the target controller is powered off; if the register is not connected to the backup power supply, the target flag bit stored in the register may be affected by the power supply anomaly, resulting in the loss of data of the target flag bit; therefore, the register is powered by the backup power supply connected to the register to ensure that when the target controller of the vehicle has a power supply anomaly or the vehicle is powered off, the target flag bit stored in the register will not be lost; the target flag bit stored in the register can be read; and then it is ensured that when the target controller has a power supply anomaly, the target power supply pin causing the power supply anomaly can be determined based on the target flag bit stored in the register.
[0105] S240, diagnose the power supply pin of the target controller based on the target flag bit.
[0106] Exemplarily, diagnosing the power supply pin of the target controller refers to identifying the value of the target flag bit and determining whether there is a power supply pin in an abnormal state based on the value of the target flag bit, thereby diagnosing the power supply pin of the target controller.
[0107] In one implementation, a corresponding relationship between each power supply pin and a target flag bit is obtained;
[0108] Based on the target flag bit, diagnose the power supply pins of the target controller, including:
[0109] Based on the value of the target flag bit, determine whether the target controller has a power supply abnormality;
[0110] If a power supply abnormality exists in the target controller, a target power supply pin in an abnormal state in the target controller is determined based on the corresponding relationship and the target flag bit.
[0111] Exemplarily, a correspondence between each power supply pin and a target flag bit is obtained; when diagnosing the power supply pin of the target controller, whether there is a power supply abnormality in the target controller is determined based on the value of the target flag bit; for example, if the value of the target flag bit is 0, it indicates that the power supply pin is normal, and the value of the target flag bit is 1, it indicates that there is a power supply abnormality; then it is determined whether there is a target flag bit with a value of 1; if so, it indicates that there is a power supply abnormality in the target controller; and based on the correspondence and the target flag bit, the target power supply pin in an abnormal state is determined; if the values of the target flag bits are all 0, it indicates that the power supply pins in the target controller are all in a normal state, that is, there is no power supply abnormality in the target controller of the vehicle.
[0112] For example, there are 5 power supply pins in the target controller, namely {pin 1, pin 2, pin 3, pin 4, pin 5}; each power supply pin corresponds to a target flag bit; when diagnosing the power supply pin, the flag bit set of the target flag bit corresponding to the power supply pin is obtained as "00101"; the target flag bit with a value of 1 is determined to be the third target flag bit and the fifth target flag bit; then according to the correspondence between the target flag bit and the power supply pin; Pin 3 and Pin 5 are determined to be power supply pins in an abnormal state; that is, Pin 3 and Pin 5 are determined to be the target power supply pins.
[0113] It should be noted that the above is an example description of the power supply pin and the target flag bit, and this application does not limit this.
[0114] In one implementation, the method further includes: determining a target number of target power supply pins in an abnormal state among the power supply pins; determining a prompt level corresponding to the target number based on the target number; outputting prompt information corresponding to the prompt level; wherein the prompt information is used to report the target power supply pins in an abnormal state.
[0115] Exemplarily, a target number of target power supply pins in an abnormal state among the power supply pins is determined; and a prompt level corresponding to the target number is determined; since a greater number of target power supply pins has a greater impact on the target controller of the vehicle; therefore, when determining the target power supply pins, prompt information corresponding to the prompt level is output; ensuring that the power supply abnormality of the vehicle can be discovered in time; and corresponding prompt information is output according to the severity of the power supply abnormality, so that the user can take corresponding measures according to the prompt information to avoid safety accidents in the vehicle.
[0116] For example, there are 5 power supply pins in the target controller, namely {pin 1, pin 2, pin 3, pin 4, pin 5}. When the target number of target power supply pins in abnormal state is detected to be less than or equal to 2, a first-level prompt information is output; when the target number of target power supply pins is detected to be 3, a second-level prompt information is output; when the target number of target power supply pins is detected to be greater than or equal to 4, a third-level prompt information is output; wherein, the prompt information is used to report the target power supply pin; the urgency of different levels of prompt information is different. The output prompt information includes but is not limited to message prompts, pop-up prompts on the vehicle display screen, voice prompts, etc.; this application does not limit the form of output prompt information.
[0117] In an embodiment of the present application, prompt information is output based on the number of target power supply pins in an abnormal state, ensuring that the user is promptly reminded when an abnormality is detected in the power supply pin; instead of diagnosing the power supply abnormality when the target controller cannot be started, ensuring that the user can promptly discover the power supply abnormality of the vehicle.
[0118] In the above embodiment, in the embodiment of the present application, when the start-up instruction of the target controller in the vehicle is detected, based on the reset flag of the target controller in the vehicle, it is determined whether the target controller is in an abnormal state; since the reset flag is used to indicate the state information of the target controller; including whether the target controller is in a dormant state or in a running state; when the start-up instruction of the target controller is detected, the state information of the target controller will change accordingly; therefore, based on the state information of the target controller, it is possible to determine whether the target controller is abnormal. If the target controller is abnormal, it means that the target controller may have a power supply abnormality; therefore, it is necessary to diagnose the power supply pin through the target flag to determine whether the target controller of the vehicle has a power supply abnormality; since the power supply abnormality is an occasional event and lasts for a short time, it is difficult to accurately identify; therefore, this scheme diagnoses the power supply pin through the target flag, that is, identifies the state of the power supply pin through the target flag, thereby determining whether the target controller has a power supply abnormality through the state of the power supply pin; thereby realizing the identification of the power supply abnormality of the vehicle; and when the target controller of the vehicle has an abnormality, the power supply pin that causes the power supply abnormality can be diagnosed.
[0119] Figure 3 It is a schematic flow chart of another vehicle diagnostic method provided in an embodiment of the present application.
[0120] Figure 3 The method 300 shown may be performed by Figure 1 It can be executed by the main control chip in the vehicle; or it can be executed by a vehicle having the above main control chip; or it can be executed by a processor in the vehicle.
[0121] like Figure 3 As shown, the vehicle diagnosis method 300 includes S301 to S310 , which will be described in detail below.
[0122] S301, detecting a start instruction for a target controller.
[0123] Exemplarily, the target controller achieves precise control of various parts of the vehicle through respective hardware and software to ensure the normal operation of the vehicle; the target controller includes but is not limited to: engine control unit, body control module, brake control unit, air conditioning control unit, seat control unit, headlight control unit, etc.
[0124] Exemplarily, the start instruction is used to start the target controller so that the target controller changes from a dormant state to an operating state; different target controllers have different ways of triggering the start instruction; for example, when the vehicle's ignition switch is turned on, the start instruction to the engine control unit is triggered; when the sensor detects rain, the start instruction to the wiper controller is triggered; when the user presses a specific button or switch, the start instruction to the light control unit and the seat control unit is triggered; when the door is unlocked by sending a wireless signal via the remote control key, the start instruction to the door control unit is triggered.
[0125] S302, obtaining a reset flag of the target controller.
[0126] Exemplarily, the reset flag is stored in a specific area of the main control chip of the target controller, and is used to indicate the status information of the target controller; the reset flag of the target controller is obtained by reading the main control chip of the target controller.
[0127] Optionally, the implementation of S301 and S302 can refer to Figure 2 The relevant description of S210 is not repeated here.
[0128] S303, whether the target controller is in a dormant state; if so, execute S304; if not, execute S305.
[0129] For example, it is determined whether the target controller is in a dormant state; if the target controller is in a dormant state, it is determined whether the duration of the dormant state is greater than a preset duration; if the target controller is not in an operating state, there is an abnormality in the target controller.
[0130] S304: Whether the duration of being in the dormant state is greater than a preset duration.
[0131] Exemplarily, determine whether the duration in the sleep state is greater than the preset duration; if the duration is greater than the preset duration, it means that the target controller has not jumped from the sleep state to the running state; it is determined that there is an abnormality in the target controller; if the duration is less than the preset duration, it means that when it is detected that the target controller receives a start-up instruction, the target controller jumps from the sleep state to the running state, and it is determined that there is no abnormality in the target controller.
[0132] S305: Determine whether the target controller has an abnormality.
[0133] For example, if the target controller is in a normal state, the reset flag bit needs to indicate that the target controller is in a dormant state, and when the target controller is started, the target controller jumps from the dormant state to the running state. If the reset flag bit indicates that the target controller is continuously in the dormant state and does not jump to the running state within the preset time, it indicates that there is an abnormality in the target controller; or if the reset flag bit indicates that the target controller is in the running state before the target controller is started, it indicates that there is an abnormality in the target controller.
[0134] S306, reading the target flag stored in the target controller.
[0135] Among them, the target flag is used to indicate the status of the power supply pin; the power supply pin is used to supply power to the target controller; when there is an abnormality in the power supply pin, it will cause power supply abnormality in the target controller of the vehicle.
[0136] Exemplarily, when it is determined that the target controller has an abnormality, it means that the target controller may have a power supply abnormality; therefore, the target flag bit stored in the target controller is read; and it is determined whether the target controller has a power supply abnormality through the target flag bit.
[0137] S307, determining whether there is a power supply abnormality based on the value of the target flag bit.
[0138] For example, a target flag bit value of 0 indicates that the power supply pin is normal, and a target flag bit value of 1 indicates that the power supply is abnormal; then determine whether there is a target flag bit with a value of 1; if so, it indicates that there is a power supply abnormality in the target controller; and based on the corresponding relationship and the target flag bit, determine the target power supply pin in the abnormal state; if the target flag bit values are all 0, it indicates that the power supply pins in the target controller are all in a normal state, that is, there is no power supply abnormality in the target controller of the vehicle.
[0139] S308, determining the target power supply pin that is in an abnormal state.
[0140] Exemplarily, if there is a power supply abnormality in the target controller, the target power supply pin in the abnormal state is determined; since when the power supply pin is detected to be in the abnormal state, the target flag bit corresponding to the power supply pin will be set; therefore, based on the target flag bit, the target power supply pin in the abnormal state can be determined.
[0141] S309, determining a target number of target power supply pins.
[0142] Exemplarily, the target number of target power pins is determined; since there are multiple power pins in the target controller; when there is a power supply abnormality in the target controller, the multiple power pins in the target controller may be in an abnormal state; and the number of target power pins in the abnormal state is different; the degree of impact on the target controller is also different; therefore, the target number of target power pins is determined, and based on the target number, prompt information is output.
[0143] S310, outputting prompt information based on the target quantity.
[0144] Optionally, the implementation of S310 can refer to Figure 2 The relevant description of the output prompt information in S240 is not repeated here.
[0145] In an embodiment of the present application, when a start instruction of a target controller in a vehicle is detected, it is determined whether the target controller is in an abnormal state based on a reset flag of the target controller in the vehicle; since the reset flag is used to indicate the state information of the target controller; when a start instruction of the target controller is detected, the state information of the target controller will change accordingly; therefore, based on the state information of the target controller, it is possible to determine whether the target controller is abnormal. If the target controller is abnormal, the target power supply pin in the target controller that is in an abnormal state is determined based on the read target flag of the target controller; since the target flag is used to indicate the state of the power supply pin; therefore, when the target controller has a power supply abnormality, the target power supply pin in an abnormal state can be determined based on the target flag, that is, the target power supply pin that causes the power supply abnormality of the target controller is determined among the power supply pins of the target controller; thereby realizing the identification and diagnosis of the power supply abnormality of the vehicle.
[0146] Figure 4 It is a schematic flow chart of another vehicle diagnostic method provided in an embodiment of the present application.
[0147] Figure 4 The method 400 shown may be performed by Figure 1 It can be executed by the main control chip in the vehicle; or it can be executed by a vehicle having the above main control chip; or it can be executed by a processor in the vehicle.
[0148] like Figure 4 As shown, the vehicle diagnosis method 400 includes S401 to S408, and S401 to S408 are described in detail below.
[0149] S401, obtaining the current voltage of the power supply pin of the target controller.
[0150] Exemplarily, the current voltage of the power supply pin of the target controller is acquired; thereby determining whether the power supply pin is in an abnormal state based on the current voltage acquired in real time.
[0151] S402, determining a maximum voltage threshold and a minimum voltage threshold corresponding to a power supply pin.
[0152] Exemplarily, since the target controller of the vehicle includes multiple power supply pins, and the voltage values of different power supply pins are different, the corresponding maximum voltage threshold and minimum voltage threshold are also different. Therefore, the maximum voltage threshold and the minimum voltage threshold corresponding to the power supply pin are determined. Thus, the state of the power supply pin can be accurately judged based on the maximum voltage threshold and the minimum voltage threshold corresponding to the power supply pin.
[0153] For example, pin 1 in the target controller is a 5V power supply pin; the maximum voltage threshold corresponding to pin 1 is 6V, and the minimum voltage threshold is 4V; pin 2 of the target controller is a 3.3V power supply pin; the maximum voltage threshold corresponding to pin 2 is 4V; and the minimum voltage threshold is 3V.
[0154] It should be noted that the above is an example of the maximum voltage threshold and the minimum voltage threshold of the power supply pin, and the present application does not impose any limitation on this.
[0155] S403: Whether the current voltage is less than a minimum voltage threshold or greater than a maximum voltage threshold.
[0156] Exemplarily, determine whether the current voltage of the power supply pin is less than the minimum voltage threshold, or greater than the maximum voltage threshold; if so, it indicates that there is an abnormality in the power supply pin; therefore, determine the target flag bit corresponding to the power supply pin; and set the target flag bit of the target pin; if not, it indicates that there is no abnormality in the power supply pin, and the target flag bit remains unchanged.
[0157] S404, determining the target flag bit corresponding to the power supply pin.
[0158] Exemplarily, there are multiple power supply pins in the target controller; each power supply pin corresponds to a flag bit in the target flag bits; the number of power supply pins and the number of target flag bits may be the same; if the number of power supply pins is the same as the number of target flag bits, the power supply pins and the target flag bits correspond one-to-one; the number of power supply pins and the number of target flag bits may also be different; that is, the number of target flag bits is greater than the number of power supply pins.
[0159] S405, setting the target flag bit corresponding to the power supply pin.
[0160] Exemplarily, if the power supply pin is in an abnormal state, the target flag bit corresponding to the power supply pin is set; wherein, setting refers to setting the target flag bit corresponding to the power supply pin from 0 to 1.
[0161] For example, if an abnormality occurs in the 5V power supply pin in the target controller, the values of bit16 and bit28 of the register are set to 1; if an abnormality occurs in the 3.3V power supply pin, the values of bit16 and bit24 of the register are set to 1; among them, bit28 is the target flag corresponding to the 5V power supply pin; bit24 is the target flag corresponding to the 3.3V power supply pin; the bit16 flag is used to indicate whether there is an abnormal power supply pin in the target controller; if there is at least one abnormal power supply pin, the value of bit16 is 1; if there is no abnormal power supply pin, the value of bit16 is 0.
[0162] It should be noted that the above is an example description of the power supply pin and the target flag bit corresponding to the power supply pin.
[0163] S406, storing the target flag bit in the register of the target controller.
[0164] The register is located in the main control chip of the target controller and is used to store the target flag bit of the binary code; and the register is connected to a backup power supply to supply power to the register.
[0165] For example, since the target flag bits stored in the register are used to diagnose power supply anomalies of the target controller, when a power supply anomaly exists in the target controller, the target controller may be powered off. If the register is not connected to a backup power supply, the target flag bits stored in the register may be affected by the power supply anomaly, resulting in the loss of data of the target flag bits. Therefore, the register is powered by a backup power supply connected to the register to ensure that when a power supply anomaly exists in the target controller of the vehicle, the target flag bits stored in the register will not be lost.
[0166] S407, when it is detected that the target controller is abnormal, read the target flag bit.
[0167] Exemplarily, when an abnormality is detected in the target controller, the target flag bit stored in the register is read.
[0168] Optionally, the implementation method of detecting the abnormality of the target controller can be found in Figure 3 The implementation method of S303 to S305 will not be repeated here.
[0169] S408, determining an abnormal target power supply pin based on the target flag bit.
[0170] Exemplarily, a target power supply pin with an abnormality is determined based on the read target flag bit; since when an abnormality is detected in real time in a power supply pin, the target flag bit of the power supply pin with the abnormality will be set; therefore, by reading the target flag bit, it can be determined whether there is a power supply abnormality; and when there is a power supply abnormality, the target power supply pin in an abnormal state is determined.
[0171] In an embodiment of the present application, if there is an abnormality in the voltage of the power supply pin, it will cause abnormal power supply to the vehicle; since the maximum voltage threshold and the minimum voltage threshold corresponding to different power supply pins are different; therefore, the maximum voltage threshold and the minimum voltage threshold corresponding to the power supply pin are determined; thereby, based on the current voltage of the power supply pin, the minimum voltage threshold and the voltage greater than the maximum voltage threshold, it is accurately judged whether the power supply pin is in an abnormal state; and when there is an abnormality in the power supply pin, the target flag bit corresponding to the power supply pin is set; since the power supply pin in an abnormal state is set; therefore, by reading the target flag bit, based on the correspondence between the target flag bit and the power supply pin, the target power supply pin in an abnormal state is determined; thereby realizing the diagnosis of the power supply pin in the target controller.
[0172] Combination of the above Figures 1 to 4 The vehicle diagnostic method provided by the embodiment of the present application is described in detail; Figure 5 and Figure 6 The device embodiments of the present application are described in detail. It should be understood that the device in the embodiments of the present application can execute the various methods of the aforementioned embodiments of the present application, that is, the specific working processes of the following various products can refer to the corresponding processes in the aforementioned method embodiments.
[0173] Figure 5 It is a structural schematic diagram of a vehicle diagnostic device provided in an embodiment of the present application.
[0174] For example, Figure 5 As shown, the vehicle diagnostic device 500 includes:
[0175] The acquisition module 510 is used to acquire a reset flag of the target controller when a start instruction of the target controller in the vehicle is detected; wherein the reset flag is used to indicate the state information of the target controller;
[0176] A determination module 520, configured to determine whether a target controller has an abnormality based on a reset flag;
[0177] The reading module 530 is used to read the target flag bit stored in the target controller if there is an abnormality in the target controller; wherein the target flag bit is used to indicate the state of the power supply pin of the target controller;
[0178] The diagnosis module 540 is used to diagnose the power supply pin of the target controller based on the target flag bit.
[0179] Optionally, as an embodiment, it also includes a setting module, and the determination module 520 is also used to: obtain the current voltage of the power supply pin of the target controller; determine whether the power supply pin is in an abnormal state based on the current voltage of the power supply pin; if the power supply pin is in an abnormal state, set the target flag bit corresponding to the power supply pin in the storage area; wherein different power supply pins correspond to different target flag bits in the storage area.
[0180] Optionally, as an embodiment, the determination module 520 is further used to: determine a maximum voltage threshold and a minimum voltage threshold corresponding to the power supply pin;
[0181] If the current voltage of the power supply pin is less than the minimum voltage threshold, or greater than the maximum voltage threshold, it is determined that the power supply pin is in an abnormal state.
[0182] Optionally, as an embodiment, diagnosis 540 is specifically used to: obtain the correspondence between each power supply pin and the target flag bit; determine whether there is a power supply abnormality in the target controller based on the value of the target flag bit; if there is a power supply abnormality in the target controller, determine the target power supply pin in the target controller that is in an abnormal state based on the correspondence and the target flag bit.
[0183] Optionally, as an embodiment, the reading module 530 is specifically used to: read the target flag bit stored in the register of the target controller; wherein the register is powered by a backup power supply.
[0184] Optionally, as an embodiment, the determination module 520 is specifically used to: if the reset flag indicates that the target controller is in a sleep state, determine the length of time the target controller is in a sleep state; if the duration is greater than a preset duration, determine that there is an abnormality in the target controller; or, if the reset flag indicates that the target controller is in a running state, determine that there is an abnormality in the target controller.
[0185] Optionally, as an embodiment, it also includes a prompt module; the output module is used to: determine the target number of target power supply pins in an abnormal state among the power supply pins; determine the prompt level corresponding to the target number based on the target number; output prompt information corresponding to the prompt level; wherein the prompt information is used to report the target power supply pins in an abnormal state.
[0186] It should be noted that the above vehicle diagnostic device is embodied in the form of a functional unit. The term "module" here can be implemented in the form of software and / or hardware, and is not specifically limited to this.
[0187] For example, a "module" may be a software program, a hardware circuit, or a combination of the two that implements the above functions. The hardware circuit may include an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a dedicated processor, or a group processor, etc.) and a memory for executing one or more software or firmware programs, a combined logic circuit, and / or other suitable components that support the described functions.
[0188] Therefore, the units of each example described in the embodiments of the present application can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0189] Figure 6 It is a structural schematic diagram of a vehicle provided in an embodiment of the present application.
[0190] Exemplarily, vehicle 600 includes: a processor 610 , a memory 620 , and executable program code 630 .
[0191] Exemplarily, the vehicle 600 includes one or more processors 610, which can support the vehicle 600 to implement the vehicle diagnostic method in the method embodiment. The processor 610 can be a general-purpose processor or a special-purpose processor. For example, the processor 610 can be a central processing unit (CPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, such as discrete gates, transistor logic devices, or discrete hardware components.
[0192] Exemplarily, the processor 610 may be used to control the vehicle 600, execute software programs, and process data of the software programs. The vehicle 600 may also include a communication unit to implement input (reception) and output (transmission) of signals.
[0193] Exemplarily, the vehicle 600 may include one or more memories 620 on which executable program code 630 is stored. The executable program code 630 can be executed by the processor 610 to generate instructions so that the processor 610 executes the vehicle diagnostic method described in the above method embodiment according to the instructions.
[0194] Optionally, data may be stored in the memory 620. Optionally, the processor 610 may read data stored in the memory 620, which may be stored at the same storage address as the executable program code 630, or may be stored at a different storage address from the executable program code 630.
[0195] Exemplarily, the processor 610 and the memory 620 may be provided separately or integrated together, for example, integrated on a system on chip (SOC) of the terminal device.
[0196] Exemplarily, the memory 620 can be used to store relevant programs of the vehicle diagnostic method provided in the embodiment of the present application, and the processor 620 can be used to call the executable program code 630 stored in the memory 620 when controlling the vehicle to execute the vehicle diagnostic method of the embodiment of the present application; for example, when a startup instruction of the target controller in the vehicle is detected, the reset flag of the target controller is obtained; wherein the reset flag is used to indicate the status information of the target controller; based on the reset flag, determine whether the target controller has an abnormality; if the target controller has an abnormality, read the target flag stored in the target controller; wherein the target flag is used to indicate the status of the power supply pin of the target controller; based on the target flag, diagnose the power supply pin of the target controller.
[0197] The present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the vehicle diagnostic method of any of the aforementioned embodiments.
[0198] Among them, computer-readable storage media may include but are not limited to any type of disk, including floppy disks, optical disks, digital versatile disks (Digital Video Disc, DVD), compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), microdrives and magneto-optical disks, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable programmable read only memory (Electrically Erasable Programmable read only memory, EEPROM), dynamic random access memory (Dynamic Random Access Memory, DRAM), video random access memory (Video Random Access Memory, VRAM), flash memory devices, magnetic cards or optical cards, nanosystems (including molecular memory ICs), or any type of medium or device suitable for storing instructions and / or data.
[0199] The present application also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement a vehicle diagnostic method in the above-mentioned embodiment.
[0200] In addition, the vehicle provided in the embodiments of the present application may specifically be a chip, component or module, and the electronic device may include a connected processor and memory; wherein the memory is used to store instructions, and when the electronic device is running, the processor may call and execute instructions so that the chip executes a vehicle diagnostic method in the above-mentioned embodiments.
[0201] Among them, the vehicle, computer-readable storage medium, computer program product or chip provided in the present application are all used to execute the corresponding vehicle diagnostic method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding vehicle diagnostic method provided above, and will not be repeated here.
[0202] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0203] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0204] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A vehicle diagnostic method, characterized in that: The method comprises: When a start instruction of a target controller in a vehicle is detected, a reset flag of the target controller is obtained; wherein the reset flag is used to indicate status information of the target controller; Based on the reset flag, determining whether the target controller has an abnormality; If the target controller is abnormal, read the target flag bit stored in the target controller; wherein the target flag bit is used to indicate the state of the power supply pin of the target controller; Based on the target flag bit, the power supply pin of the target controller is diagnosed.
2. The method according to claim 1, characterized in that The target flag is stored in a storage area of the target controller, and before reading the target flag stored in the target controller, the method further includes: Obtaining the current voltage of the power supply pin of the target controller; determining whether the power supply pin is in the abnormal state based on the current voltage of the power supply pin; If the power supply pin is in the abnormal state, the target flag bit corresponding to the power supply pin in the storage area is set; wherein different power supply pins correspond to different target flag bits in the storage area.
3. The method according to claim 2, characterized in that The determining whether the power supply pin is in the abnormal state based on the current voltage of the power supply pin includes: Determine a maximum voltage threshold and a minimum voltage threshold corresponding to the power supply pin; If the current voltage of the power supply pin is less than the minimum voltage threshold, or greater than the maximum voltage threshold, it is determined that the power supply pin is in the abnormal state.
4. The method according to claim 2, characterized in that: Also includes: Obtaining a correspondence between each of the power supply pins and the target flag bit; The diagnosing the power supply pin of the target controller based on the target flag bit includes: Based on the value of the target flag bit, determining whether the target controller has a power supply abnormality; If the target controller has the power supply abnormality, a target power supply pin in the target controller that is in an abnormal state is determined based on the corresponding relationship and the target flag bit.
5. The method according to claim 1, characterized in that The target controller includes a register connected to a backup power supply; The reading of the target flag bit stored in the target controller includes: The target flag bit is stored in the register of the target controller; wherein the register is powered by the backup power supply.
6. The method according to claim 1, characterized in that The determining whether the target controller is in an abnormal state based on the reset flag bit includes: If the reset flag indicates that the target controller is in a sleep state, determine the duration of the target controller being in the sleep state; if the duration is greater than a preset duration, determine that an abnormality exists in the target controller; Alternatively, if the reset flag indicates that the target controller is in a running state, it is determined that an abnormality exists in the target controller.
7. The method according to any one of claims 1 to 5, characterized in that Also includes: determining a target number of target power supply pins in an abnormal state among the power supply pins; Determining a prompt level corresponding to the target number based on the target number; Outputting prompt information corresponding to the prompt level; wherein the prompt information is used to report the target power supply pin in the abnormal state.
8. A vehicle diagnostic device, characterized in that: The device comprises: An acquisition module, used for acquiring a reset flag of a target controller in a vehicle when a startup instruction of the target controller is detected; wherein the reset flag is used to indicate status information of the target controller; A determination module, used for determining whether the target controller has an abnormality based on the reset flag; A reading module, used for reading a target flag bit stored in the target controller if an abnormality occurs in the target controller; wherein the target flag bit is used to indicate the state of a power supply pin of the target controller; A diagnosis module is used to diagnose the power supply pin of the target controller based on the target flag bit.
9. A vehicle, characterized in that: The vehicle comprises: A memory for storing executable program codes; A processor is used to call and run the executable program code from the memory so that the vehicle executes the method as claimed in any one of claims 1 to 7.
10. A computer storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a vehicle, the vehicle is caused to perform the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Whole vehicle diagnosis method and device, vehicle and electronic equipment
CN113126587A
Equipment abnormal restart detection method and device, computer equipment and medium
CN114637644A
Current monitoring method and device, power distribution controller and vehicle
CN118330295A
Reset signal failure protection method and device, vehicle and storage medium
CN118426991A
Vehicular power supply control device
JP2008087573A
Cited By
Controller performance test method and system
CN119690052A
