A method and device for controlling abnormal power supply of a vehicle controller
By real-time detection and judgment of the pin information and vehicle speed data of the vehicle controller, the problem of short-term power supply recovery after opening the circuit is solved, the normal operation of the controller software in the event of a fault is realized, and the operation and driving safety of the vehicle are ensured. .
Patent Information
- Application Number
- CN202411305086.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-19
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2044-09-19
AI Technical Summary
When the power supply power supply of the vehicle controller is opened for a short time and returns to normal, the controller software enters the initialization state and cannot work normally, affecting operation and driving safety.
By real-time detection of the controller software status, obtaining pin information and vehicle speed data, and determining whether the controller software operating conditions are met. If so, the controller software will switch from the initialization state to the operating state to avoid stopping and powering up and down again.
Ensure that the vehicle controller can work normally in the event of power supply failure, improve operational and driving safety, and avoid controller software initialization problems caused by short-term power supply failure.
Smart Images

Figure CN118819119B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle control technology, and more specifically, to a method and device for controlling abnormal power supply of a vehicle controller. Background Art
[0002] The vehicle controller is the brain of the normal operation of the vehicle power system. During the driving process of the vehicle, if there are problems such as quality or improper installation position of the connector of the vehicle controller, the wiring harness connector of the vehicle controller will be loose, which will cause the power supply of the vehicle controller to be open for a short time and then return to normal. Once this happens, the controller software of the vehicle will enter the initialization state, causing the vehicle controller to fail to work properly. At this time, the driver steps on the accelerator without power, and must pull over to stop and re-power on and off to make the vehicle controller work properly, which seriously affects the operation and driving safety of the vehicle.
[0003] Therefore, how to provide a control method to control the vehicle controller to work normally when the power supply of the vehicle controller is short-circuited and then returns to normal, so as to ensure the operation and driving safety of the vehicle is an urgent problem to be solved in this application. Summary of the invention
[0004] In view of this, the present application provides a method and device for controlling power supply abnormality of a vehicle controller, so as to control the vehicle controller to work normally when the power supply of the vehicle controller is short-circuited and then returns to normal, so as to ensure the operation and driving safety of the vehicle.
[0005] In a first aspect, the present application provides a method for controlling abnormal power supply of a vehicle controller, which is applied to the controller software of the vehicle, and the method comprises:
[0006] During the driving of the vehicle, real-time detection of whether the state of the controller software is in an initialization state;
[0007] If it is detected that the state of the controller software is the initialization state, obtaining the first pin information of the vehicle controller and the first vehicle speed when the controller software enters the initialization state;
[0008] Obtaining from the memory a pin change value, the second pin information of the vehicle controller most recently stored before the controller software enters the initialization state, and the second vehicle speed;
[0009] According to the first pin information, the first vehicle speed, the pin change value, the second pin information and the second vehicle speed, judging whether the controller software meets the controller software running condition; wherein the controller software running condition is generated according to the pin change information and the vehicle speed change information generated when a short-term power supply failure occurs to the vehicle controller;
[0010] If the controller software meets the controller software running conditions, it is determined that a short-term power supply failure occurs in the vehicle controller, and the controller software is controlled to enter the running state so that the vehicle controller can work normally.
[0011] Optionally, the method further includes:
[0012] When it is detected that the vehicle is powered on, the pin information of the vehicle controller and the speed of the vehicle are obtained in real time, and the ON gear signal value of the vehicle controller and the speed of the vehicle in the pin information are stored in the memory; wherein the pin information includes the ON gear signal value and the START gear signal value of the vehicle controller;
[0013] A START gear signal change value is determined according to the START gear signal value, and the START gear signal change value is stored in the memory as a pin change value.
[0014] Optionally, after storing the change value of the START gear signal in the memory, the method further includes:
[0015] Real-time detection of whether the ON gear signal value of the vehicle controller has changed;
[0016] If it is detected that the ON gear signal value of the vehicle controller obtained changes, the ON gear signal value change information of the vehicle controller is obtained;
[0017] The START gear signal change value stored in the memory is updated according to the ON gear signal value jump information of the vehicle controller.
[0018] Optionally, updating the START gear signal change value stored in the memory according to the ON gear signal value jump information of the vehicle controller includes:
[0019] If the ON gear signal value jump information of the vehicle controller indicates that the ON gear signal value of the vehicle controller jumps from 1 to 0, the START gear signal change value stored in the memory is set to 0;
[0020] If the ON gear signal value jump information of the vehicle controller indicates that the ON gear signal value of the vehicle controller jumps from 0 to 1, the START gear signal change value stored in the content is set to 1.
[0021] Optionally, the first pin information includes the first ON gear signal value and the first START gear signal value of the vehicle controller when the controller software enters the initialization state; the second pin information includes the second ON gear signal value of the vehicle controller most recently before the controller software enters the initialization state, and the pin change value is the START gear signal change value;
[0022] Judging whether the controller software meets the controller software running condition according to the first pin information, the first vehicle speed, the second pin information and the second vehicle speed includes:
[0023] calculating a difference between the first vehicle speed and the second vehicle speed;
[0024] Determine whether the first ON gear signal value is 1, whether the second ON gear signal value is 0, whether the first START gear signal value is 0, whether the START gear signal change value is 1, and whether the difference between the first vehicle speed and the second vehicle speed is less than a difference threshold;
[0025] If the first ON gear signal value is 1, the second ON gear signal value is 0, the first START gear signal value is 0, the START gear signal change value is 1, and the difference between the first vehicle speed and the second vehicle speed is less than the difference threshold, it is determined that the controller software meets the controller software running condition;
[0026] If the first ON gear signal value is not 1, and / or the second ON gear signal value is not 0, and / or the first START gear signal value is not 0, and / or the START gear signal change value is not 1, and / or the difference between the first vehicle speed and the second vehicle speed is not less than the difference threshold, it is determined that the controller software does not meet the controller software operating conditions.
[0027] Optionally, when controlling the controller to softly enter a running state, the method further includes:
[0028] Generate first fault information and output the first fault information; wherein the first fault information is used to indicate that a short-term power supply fault occurs in the vehicle controller.
[0029] Optionally, the method further includes:
[0030] If the controller software does not meet the controller software running condition, control the controller software to maintain the initialization state and generate second fault information, wherein the second fault information is used to indicate that the vehicle controller has a fault;
[0031] The second fault information is output to prompt the user that the vehicle controller currently has a fault.
[0032] A second aspect of the present application provides a power supply abnormality control device for a vehicle controller, which is applied to the controller software of the vehicle, and the device includes:
[0033] A first detection unit is used to detect in real time whether the state of the controller software is an initialization state during the driving of the vehicle;
[0034] A first acquisition unit is used to acquire the first pin information of the vehicle controller and the first vehicle speed of the vehicle when the controller software enters the initialization state if it is detected that the state of the controller software is the initialization state;
[0035] A second acquisition unit is used to acquire from the memory a pin change value, the second pin information of the vehicle controller most recently stored before the controller software enters the initialization state, and a second vehicle speed of the vehicle;
[0036] a judgment unit, configured to judge whether the controller software meets the controller software running condition according to the first pin information, the first vehicle speed, the pin change value, the second pin information and the second vehicle speed; wherein the controller software running condition is generated according to the pin change information and the vehicle speed change information generated when a short-term power supply failure occurs to the vehicle controller;
[0037] The first control unit is used to determine that a short-term power supply failure occurs in the vehicle controller if the controller software meets the controller software running conditions, and control the controller software to enter a running state so that the vehicle controller can work normally.
[0038] Optionally, the device further comprises:
[0039] A real-time acquisition unit, used for acquiring the pin information of the vehicle controller and the speed of the vehicle in real time when it is detected that the vehicle is powered on, and storing the ON gear signal value of the vehicle controller and the speed of the vehicle in the pin information into a memory; wherein the pin information includes the ON gear signal value and the START gear signal value of the vehicle controller;
[0040] The storage unit is used to determine the START gear signal change value according to the START gear signal value, and store the START gear signal change value as the pin change value in the memory.
[0041] Optionally, after executing the storage unit, the device further includes:
[0042] A second detection unit is used to obtain whether the ON gear signal value of the vehicle controller jumps;
[0043] A third acquisition unit is used to acquire ON gear signal value jump information of the vehicle controller if it is detected that the ON gear signal value of the vehicle controller has jumped;
[0044] An updating unit is used to update the START gear signal change value stored in the memory according to the ON gear signal value jump information of the vehicle controller.
[0045] The present application provides a method and device for controlling power supply anomalies of a vehicle controller, by pre-generating corresponding controller software operating conditions based on pin change information and vehicle speed change information generated by the vehicle controller when a short-term power supply failure occurs in the vehicle controller, that is, when the power supply of the vehicle is open for a short time and then returns to normal, so as to detect in real time whether the state of the controller software of the vehicle is in an initialization state during the driving of the vehicle; if it is detected that the state of the controller software is in an initialization state, it can be determined that the controller software has entered an initialization state, in order to avoid the situation where the vehicle controller cannot work normally due to a short-term power supply failure due to mechanical or installation reasons (the power supply is open for a short time and then restored), when the controller software detects that it has entered an initialization state, it can obtain the information that it has entered an initialization state. The first pin information of the vehicle controller and the first speed of the vehicle are obtained from the memory, and the pin change value, the second pin information of the vehicle controller and the second speed of the vehicle that were most recently stored before the controller software enters initialization are obtained, so as to determine whether the controller software meets the controller software running conditions according to the first pin information, the first speed, the pin change value, the second pin information and the second speed; if the controller software meets the controller software running conditions, it means that the vehicle controller is currently due to a short-term power supply failure caused by mechanical or installation reasons, and the controller software can directly control itself to switch from the initialization state to the running state, so that the vehicle controller can work normally without stopping and re-powering on and off, thereby ensuring the operation and driving safety of the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0047] Figure 1 A schematic diagram of a flow chart of a method for detecting abnormal power supply of a vehicle controller provided in an embodiment of the present application;
[0048] Figure 2 A hardware structure diagram of a vehicle controller provided in an embodiment of the present application;
[0049] Figure 3 An example diagram of a method for detecting abnormal power supply of a vehicle controller provided in an embodiment of the present application;
[0050] Figure 4 A structural diagram of a power supply anomaly detection device for a vehicle controller provided in an embodiment of the present application. DETAILED DESCRIPTION
[0051] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0052] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0053] It should be noted that the concepts such as "first" and "second" mentioned in the present application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0054] It should be noted that the modifications of "one" and "plurality" mentioned in the disclosure of this application are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0055] See also Figure 1 , shows a flow chart of a method for controlling abnormal power supply of a vehicle controller provided in an embodiment of the present application, the method for controlling abnormal power supply of the vehicle controller is applied to the controller software of the vehicle, and the method for controlling abnormal power supply of the vehicle controller specifically includes the following steps:
[0056] S101: During the driving of the vehicle, whether the state of the controller software is the initialization state is detected in real time; if it is detected that the state of the controller software is the initialization state, execute step S102.
[0057] During the specific execution of step S101, while the vehicle is driving, the controller software can detect in real time whether the power supply of the vehicle is interrupted and then restored; if it is detected that the power supply of the vehicle is interrupted and then restored, the time from the interruption to the restoration of the power supply is obtained, and it is determined whether the time is less than the preset time; if the time is less than the preset time, it can control itself to enter initialization, that is, switch its own state to the initialization state. At this time, it can be considered that the state detected after the vehicle is powered on is the initialization state, and then step S102 can be executed.
[0058] It should be noted that the preset time can be set according to actual applications and is not limited in the embodiments of the present application.
[0059] Furthermore, in an embodiment of the present application, when it is detected that the vehicle is powered on, the controller software can start to obtain the pin information of the vehicle controller and the speed of the vehicle in real time; the ON gear signal value of the vehicle controller and the speed of the vehicle in the pin information are stored in the memory; wherein the pin information includes the ON gear signal value and the START gear signal value of the vehicle controller; the START gear signal change value is determined according to the START gear signal value, and the START gear signal change value is stored in the memory as the pin change value.
[0060] It should be noted that there are many pins on the hardware of the vehicle controller, such as Figure 2 As shown, each pin connects the vehicle controller hardware to other controllers or power supplies through connectors and wiring harnesses. If the connector has quality problems or the controller is improperly installed, the vibration amplitude will be too large, causing the connector to loosen, which may cause a short-term power interruption in the pins of the vehicle controller connected to the power supply, which may cause the vehicle controller to fail to work normally due to a short-term power supply failure due to mechanical or installation reasons.
[0061] The applicant has studied and found that if there are quality problems with the connector or the controller is improperly installed, it may cause the ON power pin and the START power pin of the vehicle controller that are connected to the power supply to become loose, causing the power supply to be open circuited for a short time and then restored, thereby causing the vehicle controller to have a short-term power supply failure due to mechanical or installation reasons. However, a short-term power supply failure in the vehicle controller will not affect the normal operation of the controller software and the vehicle controller. In other words, when the vehicle controller has a short-term power supply failure due to mechanical or installation reasons, the vehicle controller and the controller software can still work normally; therefore, in order to prevent the short-term power supply failure of the vehicle controller due to mechanical or installation reasons, causing the controller software to enter the initialization state, thereby causing the vehicle to be unable to work normally, the pin information of the vehicle controller and the speed of the vehicle can be obtained and stored in real time after the vehicle is powered on, so that when it is detected that the controller software has entered the initialization state, the pin change value stored in the memory and the controller software can be used to initialize the state. The most recently stored second pin information of the vehicle controller and the second speed of the vehicle (for the sake of distinction, the pin information of the vehicle controller and the speed of the vehicle most recently stored before the controller software enters the initialization state are referred to as the second pin information and the second speed), as well as the first pin information of the vehicle controller and the first speed of the vehicle when the controller software enters the initial operation (for the sake of distinction, the pin information of the vehicle controller and the speed of the vehicle when the controller software enters the initialization state are referred to as the first pin information and the first speed) determine whether the controller software can enter the operation state again, so as to prevent the controller software from being in the initialization state, causing the vehicle controller to fail to work normally, affecting the operation and driving safety of the vehicle.
[0062] Among them, the pin information of the vehicle controller includes the ON-gear signal value of the ON-gear signal on the ON-gear power supply pin of the vehicle controller and the START-gear signal value of the START-gear signal on the START-gear power supply pin.
[0063] It should be noted that the ON gear power supply pin is the pin through which the vehicle controller connects the vehicle's 24V / 12V battery power supply when the vehicle key is turned to the On gear. That is to say, when the vehicle key is turned to the ON gear, the vehicle controller is connected to the vehicle's 24V / 12V battery power supply (power supply) through the ON gear supply pin, so that the power supply supplies power to the ON gear supply pin; the START gear power supply pin is the pin through which the vehicle controller connects the vehicle's 24V / 12V battery power supply when the vehicle key is turned to the START gear. That is to say, when the vehicle key is turned to the START gear, the vehicle controller is connected to the vehicle's 24V / 12V battery power supply through the START gear power supply pin, so that the power supply supplies power to the START gear power supply pin.
[0064] It is worth mentioning that, through research by the applicant, it was found that after the ON gear power supply pin is powered, the ON gear signal value on the ON gear power supply pin will jump from 0 to 1, and the controller software will enter normal working state, but the controller software does not control the output torque of the whole vehicle; after the START gear power supply pin is powered, the START gear signal value on the START gear power supply pin will first jump from 0 to 1, and then jump from 1 to 0 and then stabilize.
[0065] In the embodiment of the present application, when the START gear signal value jumps from 0 to 1, the START gear signal change value can be further set to 1. After the subsequent START gear signal value jumps from 1 to 0 and stabilizes, it will no longer affect the change of the START gear signal change value. Instead, the jump of the ON gear signal value on the ON gear power supply pin will affect the change of the START gear signal change value. Therefore, the ON gear signal value of the vehicle controller and the vehicle speed can be acquired and stored in real time. At the same time, according to the second START gear signal value (1) acquired when the vehicle is powered on, the START gear signal change value is set to 1 and stored in the memory, so that the controller software can be subsequently determined whether to enter the running state again according to the START gear signal change value stored in the memory, the second ON gear signal value of the vehicle controller and the second vehicle speed stored most recently before the controller software enters the initialization, and the first ON gear signal value, the first START gear signal value, and the first vehicle speed of the vehicle controller when the controller software enters the initial running state, so as to prevent the vehicle from being unable to work normally due to a short-term power supply failure of the vehicle controller caused by mechanical or installation reasons, thereby greatly improving the driving safety of the vehicle.
[0066] Since the jump of the ON-gear signal value on the ON-gear power supply pin will affect the change of the START-gear signal change value, and the power supply change of the whole vehicle's power supply will affect the change of the ON-gear signal value on the ON-gear power supply pin, it is possible to detect in real time whether the obtained ON-gear signal value of the whole vehicle controller has jumped. If it is detected that the obtained ON-gear signal value of the whole vehicle controller has jumped, the ON-gear signal jump information of the whole vehicle controller is obtained, and the START-gear signal change value stored in the memory is updated according to the ON-gear signal jump information of the whole vehicle controller.
[0067] Optionally, after the START gear signal change value is stored in the memory, it is also possible to detect in real time whether the obtained ON gear signal value of the vehicle controller has jumped; if it is detected that the obtained ON gear signal value of the vehicle controller has jumped, and the ON gear signal value jump information of the vehicle controller indicates that the ON gear signal value of the vehicle controller has jumped from 1 to 0, the START gear signal change value stored in the memory is set to 0; if it is detected that the obtained ON gear signal value of the vehicle controller has jumped, and the ON gear signal value jump information of the vehicle controller indicates that the ON gear signal value of the vehicle controller has jumped from 0 to 1, the START gear signal change value stored in the content is set to 0.
[0068] In actual application, if it is detected that the power supply of the whole vehicle is interrupted, it can be determined that the ON signal value of the vehicle controller jumps from 1 to 0; if it is detected that the power supply of the whole vehicle is restored, it can be determined that the ON signal value of the vehicle controller jumps from 0 to 1.
[0069] S102: Obtain the first pin information of the vehicle controller and the first speed of the vehicle when the controller software enters the initialization state, and obtain the pin change value from the memory, the second pin information of the vehicle controller and the second speed of the vehicle most recently stored before the controller software enters the initialization state.
[0070] During the specific execution of step S102, when the controller software detects that its own state is the initialization state, it can obtain the first pin information of the vehicle controller and the first speed of the vehicle when it enters the initialization state, and at the same time obtain the pin change value, the second pin information of the vehicle controller and the second speed of the vehicle most recently stored before the controller software enters the initialization state from the memory.
[0071] It should be noted that the pin change value is the START gear signal change value. The first pin information includes the first ON signal value and the first START gear signal value of the vehicle controller when the controller software enters the initialization state; the second pin information includes the second ON gear signal value of the vehicle controller before the controller software enters the initialization state.
[0072] S103: Determine whether the controller software meets the controller software running conditions according to the first pin information, the first vehicle speed, the second pin information and the second vehicle speed; if the controller software meets the controller software running conditions, execute step S104; if the controller software does not meet the controller software running conditions, execute step S105.
[0073] In the embodiment of the present application, the applicant has found through research that when the controller software enters the initialization state, if the pin information and vehicle speed of the vehicle controller when the controller software enters the initialization state, as well as the most recent pin information and vehicle speed before the controller enters the initialization state meet the pre-set controller software operating conditions, then the controller software can directly enter the operating state without powering on and off again; wherein, the controller software operating conditions are generated based on the pin change information and vehicle speed change information generated when a short-term power supply failure occurs in the vehicle controller.
[0074] It should be noted that the pin change information may include the ON gear signal value and the START gear signal value when the controller software enters the initialization state, and the most recent ON gear signal value before the controller software enters the initialization state; the vehicle speed change information includes the difference between the vehicle speed when the controller software enters the initialization state and the most recent vehicle speed before the controller software enters the initialization state.
[0075] It can be determined from the vehicle speed change information that the vehicle speed when the controller software enters the initialization state is not much different from the vehicle's most recent speed before the controller software enters the initialization state. Therefore, in order to ensure the safe driving of the vehicle, a corresponding difference threshold can be set according to the difference between the vehicle speed when the controller software enters the initialization state in the vehicle speed change information and the vehicle's most recent speed before the controller software enters the initialization state.
[0076] From the pin change information, it can be determined that the ON signal value of the controller software when entering the initialization state is 1 and the START signal value is 0, and the most recent ON signal value of the controller software before entering the initialization state is 0; since the jump of the ON signal value will also affect the change of the START signal change value, therefore, according to the ON signal value (1) of the controller software when entering the initialization state and the most recent ON signal value (1) of the controller software before entering the initialization state in the pin change information, set the corresponding target START signal change value; wherein, the target SATRT signal change value is 1.
[0077] In summary, the corresponding controller software operating conditions can be generated based on the ON gear signal value (1) and START gear signal value (0) when the controller software enters the initialization state, the most recent ON gear signal value (0) before the controller software enters the initialization state, the target START gear signal change value (1) and the difference threshold.
[0078] In the specific execution process of step S103, after obtaining the first pin information of the vehicle controller and the first vehicle speed of the vehicle when the controller software enters the initialization state, and obtaining the pin change value from the memory, the second pin information of the vehicle controller most recently stored before the controller software enters the initialization state, and the second vehicle speed of the vehicle, it is possible to judge whether the controller software meets the pre-set controller software operating conditions based on the first ON gear signal value and the first START gear signal value in the first pin information, the second ON gear signal value in the second pin information, the START gear signal change value, the first vehicle speed and the second vehicle speed. If so, it can be determined that a short-term power supply failure has occurred in the vehicle controller, and the controller software can directly enter the running state, that is, execute step S104; if not, it means that the current fault of the vehicle controller may not be a short-term power supply failure, and then step S105 can be executed to prevent the controller from entering the running state and causing damage to the vehicle controller.
[0079] It should be noted that the controller software operating conditions indicate that the ON gear signal value of the controller software when entering the initialization state is 1, the START gear signal value of the controller software when entering the initialization state is 0, the most recent ON gear signal value before the controller software enters the initialization state is 0, the target START gear signal change value is 1, and the difference between the vehicle speed when the controller software enters the initialization state and the most recent vehicle speed before the controller software enters the initialization state is less than the difference threshold.
[0080] Optionally, the process of determining whether the controller software meets the controller software operating conditions based on the first pin information, the first vehicle speed, the second pin information and the second vehicle speed can be specifically as follows: calculating the difference between the first vehicle speed and the second vehicle speed; determining whether the first ON gear signal value is 1, whether the second ON gear signal value is 0, whether the first START gear signal value is 0, whether the START gear signal change value is 1, and whether the difference between the first vehicle speed and the second vehicle speed is less than a difference threshold; if the first ON gear signal value is 1, the second ON gear signal value is 0, the first START gear signal value is 0, the START gear signal change value is 1, and the difference between the first vehicle speed and the second vehicle speed is less than the difference threshold, it is determined that the controller software meets the controller software operating conditions; if the first ON gear signal value is not 1, and / or the second ON gear signal value is not 0, and / or the first START gear signal value is not 0, and / or the START gear signal change value is not 1, and / or the difference between the first vehicle speed and the second vehicle speed is not less than the difference threshold, it is determined that the controller software does not meet the controller software operating conditions.
[0081] It can be seen that the present application can store the ON gear signal value of the vehicle controller, the vehicle speed and the START gear signal change value in real time, so that when the controller software is detected to enter the initialization state during the driving process of the vehicle, the first ON gear signal value when the controller software enters the initialization state, the first START gear signal value when the controller software enters the initialization state, the first vehicle speed when the controller software enters the initialization state, the START gear signal change value, the second ON gear signal value most recently stored before the controller software enters the initialization state, and the second vehicle speed most recently stored before the controller software enters the initialization state are compared with the corresponding parameters indicated in the pre-set controller software operating conditions to determine whether the controller software enters the operating state again, thereby preventing the vehicle controller from being unable to control normally due to a short-term power supply failure of the vehicle controller caused by mechanical or installation reasons, thereby greatly improving the operation and driving safety of the vehicle.
[0082] S104: Determine that a short-term power supply failure occurs in the vehicle controller, and control the controller to enter a soft running state so that the vehicle controller can work normally.
[0083] In the specific process of executing step S104, when it is determined that the controller software meets the controller software running conditions, the controller software can directly control itself to enter the running state to enter the normal working state, thereby enabling the vehicle controller to work normally.
[0084] Furthermore, in an embodiment of the present application, while the controller software is controlling the running state, a corresponding first fault message can also be generated and output to promptly remind the user that the vehicle controller of the vehicle currently being driven has a short-term power supply failure, so that the user can promptly resolve the problem of short-term power supply failure of the vehicle controller caused by loose connection of the connector harness or improper installation position.
[0085] S105: Control the controller software to maintain the initialization state, and generate and output second fault information.
[0086] During the specific execution of step S105, when it is determined that the controller software does not meet the controller software operating conditions, the controller software can be controlled to maintain an initialized state to prevent the controller from entering an operating state and causing damage to the vehicle controller. At the same time, a second fault message indicating that a vehicle controller failure has occurred can be generated and output, allowing the user to promptly check and resolve the vehicle controller failure problem.
[0087] The present application provides a method for controlling power supply abnormality of a whole vehicle controller, by generating corresponding controller software operating conditions in advance according to pin change information and vehicle speed change information generated by the whole vehicle controller when a short-term power supply failure occurs in the whole vehicle controller, that is, when the power supply of the whole vehicle is open for a short time and then returns to normal, so as to detect in real time whether the state of the controller software of the whole vehicle is in an initialization state after the whole vehicle is powered on; if it is detected that the state of the controller software is in an initialization state, it can be determined that the controller software has entered an initialization state, in order to avoid the situation where the whole vehicle controller cannot work normally due to a short-term power supply failure due to mechanical or installation reasons (the power supply is open for a short time and then restored), when the controller software detects that it has entered the initialization state, it can obtain the state of entering the initialization state. The controller software obtains the first pin information of the vehicle controller and the first speed of the vehicle in the initialization state, and obtains the pin change value from the memory, the second pin information of the vehicle controller and the second speed of the vehicle that were most recently stored before the controller software enters the initialization state, so as to determine whether the controller software meets the controller software running conditions according to the first pin information, the first speed, the pin change value, the second pin information and the second speed; if the controller software meets the controller software running conditions, it means that the vehicle controller is currently due to a short-term power supply failure caused by mechanical or installation reasons, and the controller software can directly control itself to switch from the initialization state to the running state, so that the vehicle controller can work normally without stopping and re-powering on and off, thereby ensuring the operation and driving safety of the vehicle.
[0088] In order to better understand the power supply abnormality control method of the vehicle controller provided in the above embodiment of the present application, the following explanation is given in terms of distance, such as Figure 3 As shown. The pre-set controller software operating conditions indicate that the ON gear signal value of the controller software when entering the initialization state is 1, the START gear signal value of the controller software when entering the initialization state is 0, the most recent ON gear signal value before the controller software enters the initialization state is 0, the target START gear signal change value is 1, and the difference between the vehicle speed when the controller software enters the initialization state and the most recent vehicle speed before the controller software enters the initialization state is less than the difference threshold.
[0089] A1: When it is detected that the vehicle is powered on, the ON gear signal value of the vehicle controller and the vehicle speed are obtained in real time, and the obtained ON gear signal value of the vehicle controller and the vehicle speed are stored in the memory.
[0090] A2: Determine the START gear signal change value according to the START gear signal value of the vehicle controller when the vehicle is powered on, and store the START gear signal change value in the memory; wherein, the START gear signal change value in the memory can be updated in real time according to the detected ON gear signal value jump information of the vehicle controller.
[0091] A3: During the driving of the vehicle, whether the state of the controller software is the initialization state is detected in real time; if it is detected that the state of the controller software is the initialization state, execute A4.
[0092] A4: Get the first ON gear signal value, the first START gear signal value and the first vehicle speed of the vehicle controller when the controller software enters the initialization state. At the same time, get the START gear signal change value, the second ON gear signal value of the vehicle controller and the second vehicle speed most recently stored before the controller software enters the initialization state from the memory.
[0093] A5: Calculate the difference between the first vehicle speed and the second vehicle speed, and determine whether the first ON gear signal value is 1, whether the second ON gear signal value is 0, whether the first START gear signal value is 0, whether the START gear signal change value is 1, and whether the difference between the first vehicle speed and the second vehicle speed is less than the difference threshold; if the first ON gear signal value is 1, the second ON gear signal value is 0, the first START gear signal value is 0, the START gear signal change value is 1, and the difference between the first vehicle speed and the second vehicle speed is less than the difference threshold, execute A6; if the first ON gear signal value is not 1, and / or the second ON gear signal value is not 0, and / or the first START gear signal value is not 0, and / or the START gear signal change value is not 1, and / or the difference between the first vehicle speed and the second vehicle speed is not less than the difference threshold, execute A7.
[0094] A6: Determine that the controller software meets the controller software operating conditions, and control the controller software to enter the operating state so that the vehicle control can work normally, and at the same time generate and output the first fault information indicating that a short-term power supply failure occurs in the vehicle controller.
[0095] A7: Determine that the controller software does not meet the controller software operating conditions, and control the controller software to maintain the initialization state, while generating and outputting a second fault message to prompt the user that the vehicle controller currently has a fault.
[0096] Based on the power supply abnormality control method of the vehicle controller provided in the above embodiment of the present application, correspondingly, the embodiment of the present invention also provides a power supply abnormality control device of the vehicle controller, such as Figure 4 As shown, the power supply abnormality control device of the vehicle controller is applied to the controller software, and the power supply abnormality control device of the vehicle controller includes:
[0097] The first detection unit 41 is used to detect in real time whether the state of the controller software is in the initialization state during the driving process of the vehicle;
[0098] The first acquisition unit 42 is used to acquire the first pin information of the vehicle controller and the first vehicle speed when the controller software enters the initialization state if it is detected that the state of the controller software is the initialization state;
[0099] The second acquisition unit 43 is used to acquire from the memory the pin change value, the second pin information of the vehicle controller most recently stored before the controller software enters the initialization state, and the second vehicle speed;
[0100] The judging unit 44 is used to judge whether the controller software meets the controller software running condition according to the first pin information, the first vehicle speed, the pin change value, the second pin information and the second vehicle speed; wherein the controller software running condition is generated according to the pin change information and the vehicle speed change information generated when a short-term power supply failure occurs to the vehicle controller;
[0101] The first control unit 45 is used to determine that a short-term power supply failure occurs in the vehicle controller if the controller software meets the controller software running conditions, and control the controller software to enter the running state so that the vehicle control can work normally.
[0102] The specific principles and execution processes of each unit in the power supply abnormality control device of the whole vehicle controller disclosed in the above embodiment of the present invention are the same as the power supply abnormality control method of the whole vehicle controller disclosed in the above embodiment of the present invention. Please refer to the corresponding parts of the power supply abnormality control method of the whole vehicle controller disclosed in the above embodiment of the present invention, and will not be repeated here.
[0103] The present application provides a power supply abnormality control device for a whole vehicle controller, which generates corresponding controller software operating conditions in advance according to pin change information and vehicle speed change information generated by the whole vehicle controller when a short-term power supply failure occurs in the whole vehicle controller, that is, when the power supply of the whole vehicle is short-term open and then restored to normal, so that after the whole vehicle is powered on, it can be detected in real time whether the state of the controller software of the whole vehicle is an initialization state; if it is detected that the state of the controller software is an initialization state, it can be determined that the controller software has entered the initialization state. In order to avoid the situation where the whole vehicle controller cannot work normally due to a short-term power supply failure due to mechanical or installation reasons (the power supply is short-term open and then restored), when the controller software detects that it has entered the initialization state, it can obtain the information of entering the initialization state. The controller software obtains the first pin information of the vehicle controller and the first speed of the vehicle in the initialization state, and obtains the pin change value from the memory, the second pin information of the vehicle controller and the second speed of the vehicle that were most recently stored before the controller software enters the initialization state, so as to determine whether the controller software meets the controller software running conditions according to the first pin information, the first speed, the pin change value, the second pin information and the second speed; if the controller software meets the controller software running conditions, it means that the vehicle controller is currently due to a short-term power supply failure caused by mechanical or installation reasons, and the controller software can directly control itself to switch from the initialization state to the running state, so that the vehicle controller can work normally without stopping and re-powering on and off, thereby ensuring the operation and driving safety of the vehicle.
[0104] Optionally, the abnormal power supply control device of the vehicle controller provided in the embodiment of the present application further includes:
[0105] A real-time acquisition unit is used to acquire the pin information of the vehicle controller and the speed of the vehicle in real time when it is detected that the vehicle is powered on, and store the ON gear signal value of the vehicle controller and the speed of the vehicle in the pin information into the memory; wherein the pin information includes the ON gear signal value and the START gear signal value of the vehicle controller;
[0106] The storage unit is used to determine the START gear signal change value according to the START gear signal value, and store the START gear signal change value as the pin change value in the memory.
[0107] Optionally, after executing the storage unit, the abnormal power supply control device for the vehicle controller provided by the embodiment of the present application further includes:
[0108] The second detection unit is used to obtain whether the ON gear signal value of the vehicle controller jumps;
[0109] A third acquisition unit is used to acquire ON gear signal value jump information of the vehicle controller if it is detected that the ON gear signal value of the vehicle controller has jumped;
[0110] The updating unit is used to update the START gear signal change value stored in the memory according to the ON gear signal value jump information of the vehicle controller.
[0111] Optionally, update the unit, including:
[0112] The first updating subunit is used for setting the START gear signal change value stored in the memory to 0 if the ON gear signal value jump information of the vehicle controller indicates that the ON gear signal value of the vehicle controller jumps from 1 to 0;
[0113] The second updating subunit is used to set the START gear signal change value stored in the content to 1 if the ON gear signal value jump information of the vehicle controller indicates that the ON gear signal value of the vehicle controller jumps from 0 to 1.
[0114] Optionally, the first pin information includes a first ON gear signal value and a first START gear signal value of the vehicle controller when the controller software enters the initialization state; the second pin information includes a second ON gear signal value of the vehicle controller most recently before the controller software enters the initialization state, and the pin change value is a START gear signal change value; the judgment unit includes:
[0115] a calculation unit, configured to calculate a difference between a first vehicle speed and a second vehicle speed;
[0116] a judgment subunit, used to judge whether the first ON gear signal value is 1, whether the second ON gear signal value is 0, whether the first START gear signal value is 0, whether the START gear signal change value is 1, and whether the difference between the first vehicle speed and the second vehicle speed is less than a difference threshold;
[0117] a first determining unit, configured to determine that the controller software satisfies the controller software running condition if the first ON gear signal value is 1, the second ON gear signal value is 0, the first START gear signal value is 0, the START gear signal change value is 1, and the difference between the first vehicle speed and the second vehicle speed is less than a difference threshold;
[0118] The second determination unit is used to determine that the controller software does not meet the controller software operating conditions if the first ON gear signal value is not 1, and / or the second ON gear signal value is not 0, and / or the first START gear signal value is not 0, and / or the START gear signal change value is not 1, and / or the difference between the first vehicle speed and the second vehicle speed is not less than the difference threshold.
[0119] Optionally, when the controller software enters the running state, the power supply abnormality control device of the vehicle controller provided in the embodiment of the present application further includes:
[0120] The first output unit is used to generate first fault information and output the first fault information; wherein the first fault information is used to indicate that a short-term power supply fault occurs in the vehicle controller.
[0121] Optionally, the abnormal power supply control device of the vehicle controller provided in the embodiment of the present application further includes:
[0122] A second control unit, used for controlling the controller software to maintain an initialization state and generating second fault information if the controller software does not meet the controller software running condition, wherein the second fault information is used to indicate that a fault occurs in the vehicle controller;
[0123] The second output unit is used to output second fault information to prompt the user that the vehicle controller currently has a fault.
[0124] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, in which the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0125] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0126] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
[0127] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for controlling abnormal power supply of a vehicle controller, characterized in that: The controller software applied to the whole vehicle, the method comprises: During the driving of the vehicle, real-time detection of whether the state of the controller software is in an initialization state; If it is detected that the state of the controller software is the initialization state, obtaining the first pin information of the vehicle controller and the first vehicle speed when the controller software enters the initialization state; Obtaining from the memory the pin change value, the second pin information of the vehicle controller most recently stored before the controller software enters the initialization state, and the second vehicle speed; According to the first pin information, the first vehicle speed, the pin change value, the second pin information and the second vehicle speed, judging whether the controller software meets the controller software running condition; wherein the controller software running condition is generated according to the pin change information and the vehicle speed change information generated when a short-term power supply failure occurs to the vehicle controller; If the controller software meets the controller software running conditions, it is determined that a short-term power supply failure occurs in the vehicle controller, and the controller software is controlled to enter the running state so that the vehicle controller can work normally.
2. The method according to claim 1, characterized in that The method further comprises: When it is detected that the vehicle is powered on, the pin information of the vehicle controller and the speed of the vehicle are obtained in real time, and the ON gear signal value of the vehicle controller and the speed of the vehicle in the pin information are stored in the memory; wherein the pin information includes the ON gear signal value and the START gear signal value of the vehicle controller; A START gear signal change value is determined according to the START gear signal value, and the START gear signal change value is stored in the memory as a pin change value.
3. The method according to claim 2, characterized in that After the START gear signal change value is stored in the memory, the method further includes: Real-time detection of whether the ON gear signal value of the vehicle controller has changed; If it is detected that the ON gear signal value of the vehicle controller obtained changes, the ON gear signal value change information of the vehicle controller is obtained; The START gear signal change value stored in the memory is updated according to the ON gear signal value jump information of the vehicle controller.
4. The method according to claim 3, characterized in that: The updating of the START gear signal change value stored in the memory according to the ON gear signal value jump information of the vehicle controller includes: If the ON gear signal value jump information of the vehicle controller indicates that the ON gear signal value of the vehicle controller jumps from 1 to 0, the START gear signal change value stored in the memory is set to 0; If the ON gear signal value jump information of the vehicle controller indicates that the ON gear signal value of the vehicle controller jumps from 0 to 1, the START gear signal change value stored in the memory is set to 1.
5. The method according to claim 1, characterized in that The first pin information includes the first ON signal value and the first START signal value of the vehicle controller when the controller software enters the initialization state; the second pin information includes the second ON signal value of the vehicle controller most recently before the controller software enters the initialization state, and the pin change value is the START signal change value; Judging whether the controller software meets the controller software running condition according to the first pin information, the first vehicle speed, the second pin information and the second vehicle speed includes: calculating a difference between the first vehicle speed and the second vehicle speed; Determine whether the first ON gear signal value is 1, whether the second ON gear signal value is 0, whether the first START gear signal value is 0, whether the START gear signal change value is 1, and whether the difference between the first vehicle speed and the second vehicle speed is less than a difference threshold; If the first ON gear signal value is 1, the second ON gear signal value is 0, the first START gear signal value is 0, the START gear signal change value is 1, and the difference between the first vehicle speed and the second vehicle speed is less than the difference threshold, it is determined that the controller software meets the controller software running condition; If the first ON gear signal value is not 1, and / or the second ON gear signal value is not 0, and / or the first START gear signal value is not 0, and / or the START gear signal change value is not 1, and / or the difference between the first vehicle speed and the second vehicle speed is not less than the difference threshold, it is determined that the controller software does not meet the controller software operating conditions.
6. The method according to claim 1, characterized in that When controlling the controller software to enter a running state, the method further includes: Generate first fault information and output the first fault information; wherein the first fault information is used to indicate that a short-term power supply fault occurs in the vehicle controller.
7. The method according to claim 1, characterized in that The method further comprises: If the controller software does not meet the controller software running condition, control the controller software to maintain the initialization state and generate second fault information, wherein the second fault information is used to indicate that the vehicle controller has a fault; The second fault information is output to prompt the user that the vehicle controller currently has a fault.
8. A power supply abnormality control device for a vehicle controller, characterized in that: Controller software applied to a whole vehicle, the device comprising: A first detection unit is used to detect in real time whether the state of the controller software is an initialization state during the driving of the vehicle; A first acquisition unit is used to acquire the first pin information of the vehicle controller and the first vehicle speed of the vehicle when the controller software enters the initialization state if it is detected that the state of the controller software is the initialization state; A second acquisition unit is used to acquire from the memory the pin change value, the second pin information of the vehicle controller most recently stored before the controller software enters the initialization state, and the second vehicle speed; a judgment unit, configured to judge whether the controller software meets the controller software running condition according to the first pin information, the first vehicle speed, the pin change value, the second pin information and the second vehicle speed; wherein the controller software running condition is generated according to the pin change information and the vehicle speed change information generated when a short-term power supply failure occurs to the vehicle controller; The first control unit is used to determine that a short-term power supply failure occurs in the vehicle controller if the controller software meets the controller software running conditions, and control the controller software to enter a running state so that the vehicle controller can work normally.
9. The device according to claim 8, characterized in that The device also includes: A real-time acquisition unit, used for acquiring the pin information of the vehicle controller and the speed of the vehicle in real time when it is detected that the vehicle is powered on, and storing the ON gear signal value of the vehicle controller and the speed of the vehicle in the pin information into a memory; wherein the pin information includes the ON gear signal value and the START gear signal value of the vehicle controller; The storage unit is used to determine the START gear signal change value according to the START gear signal value, and store the START gear signal change value as the pin change value in the memory.
10. The device according to claim 9, characterized in that After executing the storage unit, the device further includes: A second detection unit is used to obtain whether the ON gear signal value of the vehicle controller jumps; A third acquisition unit is used to acquire ON gear signal value jump information of the vehicle controller if it is detected that the ON gear signal value of the vehicle controller has jumped; An updating unit is used to update the START gear signal change value stored in the memory according to the ON gear signal value jump information of the vehicle controller.
