Disclosure of Invention
In view of the above problems, the present invention provides a vehicle control method, apparatus, storage medium and electronic device that overcome or at least partially solve the above problems, and the technical solutions are as follows:
a vehicle control method comprising:
obtaining a voltage value output by a power supply of a vehicle at a first moment;
judging whether the voltage value output by the power supply at the first moment is greater than a first preset voltage value, if so, determining whether the vehicle is normally powered on according to a first duration of time that the voltage value output by the power supply after the first moment is greater than the first preset voltage value;
when the vehicle is determined to be normally powered on, obtaining a voltage value output by the power supply at a second moment;
judging whether the voltage value output by the power supply at the second moment is not greater than a second preset voltage value or not, and if so, controlling the vehicle to be in a low power consumption state;
and after the vehicle is in the low power consumption state, when the working condition of the vehicle meets a preset working condition, controlling the vehicle to be in a rated power consumption state.
Optionally, the determining whether the vehicle is normally powered on according to a first duration that the voltage value output by the power supply after the first time is greater than the first preset voltage value includes:
and judging whether a first duration time that the voltage value output by the power supply from the first moment to the later is greater than a first preset voltage value is greater than a first preset time, if so, determining that the vehicle is normally powered on, and if not, determining that the vehicle is not normally powered on.
Optionally, the second time is later than the first time, and an interval between the first time and the second time is not shorter than the first duration.
Optionally, the controlling the vehicle in a low power consumption state includes:
controlling at least one component in the vehicle to operate according to a preset frequency;
the control of the vehicle in a rated power consumption state comprises the following steps:
controlling the at least one component in the vehicle to operate at a nominal frequency, wherein the preset frequency is lower than the nominal frequency.
Optionally, the controlling the vehicle in a low power consumption state includes:
controlling at least one preset circuit in the vehicle to be closed;
the control of the vehicle in a rated power consumption state comprises the following steps:
controlling the at least one preset circuit in the vehicle to be opened.
Optionally, the preset working condition includes:
the voltage value output by the power supply after the vehicle is in low power consumption is larger than a third preset voltage value;
or the second duration of the voltage value output by the power supply after the second moment and not greater than the second preset voltage value exceeds a second preset duration.
Optionally, the first preset voltage value is equal to the third preset voltage value, and the second preset voltage value is smaller than the first preset voltage value.
A vehicle control apparatus comprising: a power supply voltage value obtaining unit, a first voltage value judging unit, a vehicle power-on judging unit, a second voltage value judging unit and a vehicle control unit,
the power supply voltage value obtaining unit is used for obtaining a voltage value output by a power supply of the vehicle at a first moment;
the first voltage value judging unit is used for judging whether the voltage value output by the power supply at the first moment is larger than a first preset voltage value or not, and if so, the vehicle power-on judging unit is triggered;
the vehicle power-on judging unit is used for determining whether the vehicle is normally powered on or not according to a first duration time that a voltage value output by the power supply after the first moment is greater than a first preset voltage value;
the power supply voltage value obtaining unit is used for obtaining a voltage value output by the power supply at a second moment when the vehicle electrification judging unit determines that the vehicle is electrified normally;
the second voltage value judging unit is used for judging whether the voltage value output by the power supply at the second moment is not greater than a second preset voltage value or not, and if so, the vehicle control unit is triggered;
the vehicle control unit is used for controlling the vehicle to be in a low power consumption state;
the vehicle control unit is used for controlling the vehicle to be in a rated power consumption state when the working condition of the vehicle meets a preset working condition after the vehicle is in the low power consumption state.
A storage medium having a program stored thereon, the program, when executed by a processor, implementing a vehicle control method as in any one of the above.
An electronic device comprising at least one processor, and at least one memory connected to the processor, a bus; the processor and the memory complete mutual communication through the bus; the processor is configured to invoke program instructions in the memory to perform a vehicle control method as in any one of the above.
By means of the technical scheme, the vehicle control method, the vehicle control device, the storage medium and the electronic equipment provided by the invention have the advantages that the voltage value output by the power supply of the vehicle at the first moment is obtained; judging whether the voltage value output by the power supply at the first moment is greater than a first preset voltage value, if so, determining whether the vehicle is normally powered on according to a first duration of time that the voltage value output by the power supply after the first moment is greater than the first preset voltage value; when the vehicle is determined to be normally powered on, obtaining a voltage value output by the power supply at a second moment; judging whether the voltage value output by the power supply at the second moment is not greater than a second preset voltage value or not, and if so, controlling the vehicle to be in a low power consumption state; and after the vehicle is in the low power consumption state, when the working condition of the vehicle meets a preset working condition, controlling the vehicle to be in a rated power consumption state. According to the embodiment of the invention, when the voltage of the power supply of the vehicle drops, the power supply can sufficiently supply power to the main chip of the vehicle by enabling the vehicle to be in the low power consumption state, so that the technical problem that the power supply is insufficient to supply power to the main chip when the voltage drops is solved, and further, the vehicle system is prevented from being out of order.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
As shown in fig. 1, a vehicle control method according to an embodiment of the present invention may include:
and S100, obtaining a voltage value output by a power supply of the vehicle at a first moment.
The vehicle can comprise a fuel vehicle, a new energy vehicle and a hybrid vehicle. The power supply of the vehicle according to the embodiment of the present invention may be a battery that supplies power to an Electronic Control Unit (ECU) of the vehicle. For example: the power source for the vehicle may be a 12V lead acid battery. Specifically, the embodiment of the present invention may obtain a voltage value output at a first time by a Battery controlled by a Battery Management System (BMS) in the vehicle.
The first time may be a time when the power supply of the vehicle starts supplying power to the electronic control unit after the user performs the car starting operation. The embodiment of the invention can obtain the voltage value output by the power supply of the vehicle through the voltage measuring instrument. The voltage measuring instrument may include a voltmeter, a voltage inductor, and the like.
S200, judging whether the voltage value output by the power supply at the first moment is larger than a first preset voltage value, and if so, executing the step S300.
The first preset voltage value may be a voltage value required to normally power on the vehicle. The technician can set the first preset voltage value according to the voltage value required by the normal power-on of the vehicle in the vehicle experiment. For example, the first preset voltage value may be 6V.
S300, determining whether the vehicle is normally powered on or not according to a first duration of time that the voltage value output by the power supply from the first moment to the later is greater than the first preset voltage value.
The embodiment of the invention can start timing when the power output of the vehicle reaches the voltage value of the normal electrification of the vehicle, and calculate the first duration of the voltage value of the power output which is greater than the first preset voltage value. For example: if the first preset voltage value is 6V, when the voltage value output by the power supply of the vehicle reaches more than 6V, the duration of the power supply continuously outputting the voltage value of more than 6V is calculated, and if the time of the power supply continuously outputting 6V is 200ms, the determined first duration is 200 ms.
Alternatively, based on the method shown in fig. 1, as shown in fig. 2, in another vehicle control method provided in the embodiment of the present invention, step S300 may include:
s310, judging whether a first duration time that the voltage value output by the power supply from the first moment is greater than the preset voltage value is greater than a first preset duration time, if so, executing a step S320, and if not, executing a step S330.
And S320, determining that the vehicle is normally powered on.
And S330, determining that the vehicle is not normally powered on.
The first preset time period may be a voltage stabilization duration time period which can ensure that the vehicle is normally powered on after the power output reaches a voltage value required for normally powering on the vehicle. For example: the first preset duration may be 200 ms. According to the embodiment of the invention, when the voltage value output by the power supply is greater than the preset voltage value and the first duration is greater than the first preset duration, the vehicle is determined to be normally powered on. For example: when the first preset voltage value is 6V and the first preset time duration is 200ms, if the voltage value output by the power supply at the first moment is greater than 6V and the first duration lasting for the time greater than 6V is greater than 200ms, it is determined that the vehicle is normally powered on. And if the voltage value output by the power supply at the first moment is not more than 6V or the first duration of more than 6V is not more than 200ms, determining that the vehicle is not normally powered on. In an actual process, the embodiment of the invention may indicate that the vehicle is normally powered on by setting the normal power-on flag to 1, and indicate that the vehicle is not normally powered on by setting the normal power-on flag to 0.
Optionally, after step S330, the embodiment of the present invention may output power failure alarm information.
Upon determining that the vehicle has been normally powered on, step S400 is performed.
And S400, obtaining the voltage value output by the power supply at the second moment.
Optionally, the second time is later than the first time, and an interval between the first time and the second time is not shorter than the first duration. For example, when the first time is 0.1ms and the first duration is 200ms, the second time may be 200.2 ms.
S500, judging whether the voltage value output by the power supply at the second moment is not greater than a second preset voltage value, and if so, executing the step S600.
Wherein, the second preset voltage value may be a voltage sag threshold value. A technician may determine the voltage droop threshold of the power supply in vehicle experiments. And when the voltage value output by the power supply at the second moment is not greater than the voltage drop threshold value, the vehicle system determines that the voltage drop condition of the power supply occurs. Optionally, the second preset voltage value is smaller than the first preset voltage value. It can be understood that, since the voltage measuring apparatus used in the embodiment of the present invention may have an error during the use process, the second preset voltage value is set to be smaller than the first preset voltage value, so that a difference value is formed between the second preset voltage value and the first preset voltage value. For example: when the first preset voltage value is 6V, the second preset voltage value may be 5.5V, wherein the backlash value is 0.5V. According to the embodiment of the invention, the problem that a vehicle system frequently judges voltage drop due to errors of a voltage measuring instrument can be prevented by setting the second preset voltage value to be smaller than the first preset voltage value and setting the second preset voltage value to be different from the first preset voltage value, so that the vehicle is prevented from being frequently switched between the low power consumption state and the rated power consumption state.
And S600, controlling the vehicle to be in a low power consumption state.
According to the embodiment of the invention, after the condition that the voltage drop of the power supply occurs is determined, the component or the circuit which does not influence the normal operation of the vehicle system can be in the low power consumption state, so that the power supply reduces or stops supplying power to the component or the circuit, and the power supply can preferentially supply power to the main chip of the vehicle after the voltage drop occurs.
After the vehicle is in the low power consumption state, when the working condition of the vehicle meets a preset working condition, step S700 is executed.
The operating conditions of the vehicle may include the voltage value of the power supply output, the power consumption of the component, the temperature of the component, and the like.
Optionally, the preset operating condition may include:
the first condition is as follows: the voltage value output by the power supply after the vehicle is in low power consumption is greater than a third preset voltage value.
According to the embodiment of the invention, the voltage value recovered and output by the power supply after the voltage drop can be used as the third preset voltage value in the vehicle experiment. Optionally, the first preset voltage value is equal to the third preset voltage value. For example: when the first preset voltage value is 6V, the third preset voltage value is also 6V. It can be understood that, on the premise of ensuring the normal operation of each component and each circuit of the vehicle, the voltage value output by the power supply needs to be in a reasonable voltage value range, so that after the voltage drop is over, the voltage value output by the power supply can be the same as the voltage value before the voltage drop. According to the embodiment of the invention, after the vehicle is in low power consumption, if the output voltage of the power supply at the moment is detected to be greater than the third preset voltage value, the voltage drop can be determined to be finished.
Or, condition two: and the second duration of the voltage value output by the power supply after the second moment and not greater than the second preset voltage value exceeds a second preset duration.
In the actual use process, the situation that the voltage drop is always continuous may occur, that is, the voltage value output by the power supply after the second moment is always not greater than the second preset voltage value. In order to avoid inexhaustibly waiting that the voltage value output by the power supply after the second moment is greater than the second preset voltage value, the embodiment of the invention limits the time for waiting for the voltage drop to end through the second preset time length.
The embodiment of the invention can calculate the second duration from the second moment, and also can calculate the second duration after the interval with the second moment is fixed. For example: when the second preset time is 150ms, the second time is 0s and the fixed time is 3ms, if the second duration is calculated from the second time, the second duration exceeds the second preset time at the 150 ms. If the second duration is calculated after a fixed time interval from the second time, the second duration exceeds a second preset duration at 153 ms.
And S700, controlling the vehicle to be in a rated power consumption state.
According to the embodiment of the invention, after the working condition of the vehicle reaches the preset working condition, the part or the circuit which is in the low power consumption state before can be recovered to the rated power consumption state, so that the power supply can continuously supply power to the part or the circuit normally, and the normal operation of the part or the circuit is ensured.
According to the vehicle control method provided by the embodiment of the invention, the voltage value output by a power supply of a vehicle at a first moment is obtained; judging whether the voltage value output by the power supply at the first moment is greater than a first preset voltage value, if so, determining whether the vehicle is normally powered on according to a first duration of time that the voltage value output by the power supply after the first moment is greater than the first preset voltage value; when the vehicle is determined to be normally powered on, obtaining a voltage value output by the power supply at a second moment; judging whether the voltage value output by the power supply at the second moment is not greater than a second preset voltage value or not, and if so, controlling the vehicle to be in a low power consumption state; and after the vehicle is in the low power consumption state, when the working condition of the vehicle meets a preset working condition, controlling the vehicle to be in a rated power consumption state. According to the embodiment of the invention, when the voltage of the power supply of the vehicle drops, the power supply can sufficiently supply power to the main chip of the vehicle by enabling the vehicle to be in the low power consumption state, so that the technical problem that the power supply is insufficient to supply power to the main chip when the voltage drops is solved, and further, the vehicle system is prevented from being out of order.
Alternatively, based on the method shown in fig. 1, as shown in fig. 3, in another vehicle control method provided in the embodiment of the present invention, step S600 may include:
and S610, controlling at least one component in the vehicle to operate according to a preset frequency.
Wherein the component may comprise a main chip of the vehicle. The preset frequency may be a standby frequency of the component determined by a technician. For example: the standby frequency of the chip model S32K148 is 28 mhz. The embodiment of the invention can set the frequency of the component when the normal operation of the vehicle system is not influenced as the preset frequency. It will be appreciated that the preset frequencies for the different components may be different.
Step S700 may include:
and S710, controlling the at least one component in the vehicle to operate according to a rated frequency, wherein the preset frequency is lower than the rated frequency.
It can be understood that when the power supply can output a normal voltage value after the voltage drop is over, the rated frequency of the component in normal operation needs to be restored. For example: after the power supply outputs a normal voltage value, the chip with the model number of S32K148 is recovered to the rated frequency of 112 MHz from the preset frequency of 28 MHz. Generally, the rated power is higher than the preset power.
According to the embodiment of the invention, when the voltage of the power supply of the vehicle drops, at least one component in the vehicle is controlled to operate according to the preset frequency, so that the power supply reduces the power supply to the at least one component, the power supply can preferentially meet the power supply requirement of the main chip of the vehicle, the technical problem that the power supply of the power supply to the main chip is insufficient when the voltage drops is solved, and the vehicle system is prevented from breaking down.
Alternatively, based on the method shown in fig. 1, as shown in fig. 4, in another vehicle control method provided in the embodiment of the present invention, step S600 may include:
and S620, controlling at least one preset circuit in the vehicle to be closed.
The preset circuit can comprise a circuit which does not influence the normal operation of a vehicle system in the vehicle. For example: a comparison circuit connected to the vehicle VCC. According to the embodiment of the invention, when the voltage drops, the enable pin of the comparison circuit is controlled to be closed, and the power supply is stopped supplying power to the comparison circuit.
Step S700 may include:
s720, controlling the at least one preset circuit in the vehicle to be started.
It can be understood that, after the voltage drop is over, when the power supply can output a normal voltage value, the power supply needs to be controlled to normally supply power to the preset circuit. For example: according to the embodiment of the invention, the enabling pin of the comparison circuit is controlled to be opened after the power supply outputs the normal voltage value, so that the power supply can normally supply power to the comparison circuit.
According to the embodiment of the invention, when the voltage of the power supply of the vehicle drops, the power supply is stopped to supply power to the preset circuit by controlling the at least one preset circuit in the vehicle to be closed, so that the power supply can preferentially meet the power supply requirement of the main chip of the vehicle, the technical problem that the power supply of the power supply to the main chip is insufficient when the voltage drops is solved, and the vehicle system is prevented from being out of order.
It should be noted that, after determining that the voltage value output by the power supply at the second time is not greater than the second preset voltage value, the embodiment of the present invention may perform both step S610 and step S620. The execution sequence of step 610 and step 620 is not further limited in the embodiment of the present invention.
Similarly, on the basis of executing step S610 and step S620, when the working condition of the vehicle meets the preset working condition, the embodiment of the invention may execute step S710 and step S720. The execution sequence of steps 710 and 720 is not further limited by the embodiment of the present invention.
Corresponding to the above method embodiment, an embodiment of the present invention further provides a vehicle control apparatus, which has a structure as shown in fig. 5 and may include: a power supply voltage value obtaining unit 100, a first voltage value judgment unit 200, a vehicle power-on judgment unit 300, a second voltage value judgment unit 400, and a vehicle control unit 500.
The power supply voltage value obtaining unit 100 is configured to obtain a voltage value output by a power supply of the vehicle at a first time.
The vehicle can comprise a fuel vehicle, a new energy vehicle and a hybrid vehicle. The power supply of the vehicle according to the embodiment of the present invention may be a battery that supplies power to an Electronic Control Unit (ECU) of the vehicle. Specifically, the embodiment of the present invention may obtain a voltage value output at a first time by a Battery controlled by a Battery Management System (BMS) in the vehicle.
The first time may be a time when the power supply of the vehicle starts supplying power to the electronic control unit after the user performs the car starting operation. The embodiment of the invention can obtain the voltage value output by the power supply of the vehicle through the voltage measuring instrument. The voltage measuring instrument may include a voltmeter, a voltage inductor, and the like.
The first voltage value determining unit 200 is configured to determine whether a voltage value output by the power supply at the first time is greater than a first preset voltage value, and if so, trigger the vehicle power-on determining unit 300.
The first preset voltage value may be a voltage value required to normally power on the vehicle. The technician can set the first preset voltage value according to the voltage value required by the normal power-on of the vehicle in the vehicle experiment.
The vehicle power-on judging unit 300 is configured to determine whether the vehicle is normally powered on according to a first duration that the voltage value output by the power supply after the first time is greater than the first preset voltage value.
The embodiment of the invention can start timing when the power output of the vehicle reaches the voltage value of the normal electrification of the vehicle, and calculate the first duration of the voltage value of the power output which is greater than the first preset voltage value.
Alternatively, the vehicle power-on judgment unit 300 may include a first duration comparison subunit and a vehicle power-on determination subunit,
the first duration comparison subunit is configured to determine whether a first duration in which the voltage value output by the power supply after the first time is greater than the first preset voltage value is greater than a first preset duration, if so, trigger the vehicle power-on determination subunit to determine that the vehicle is normally powered on, and if not, trigger the vehicle power-on determination subunit to determine that the vehicle is not normally powered on.
The first preset time period may be a voltage stabilization duration time period which can ensure that the vehicle is normally powered on after the power output reaches a voltage value required for normally powering on the vehicle. According to the embodiment of the invention, when the voltage value output by the power supply is greater than the preset voltage value and the first duration is greater than the first preset duration, the vehicle is determined to be normally powered on. In practice, the vehicle power-on determining unit 300 may indicate that the vehicle has been normally powered on by setting the normal power-on flag to 1, and setting the normal power-on flag to 0 indicates that the vehicle has not been normally powered on.
The power supply voltage value obtaining unit 100 is configured to obtain a voltage value output by the power supply at a second time when the vehicle power-on judging unit 300 determines that the vehicle is normally powered on.
Optionally, the second time is later than the first time, and an interval between the first time and the second time is not shorter than the first duration.
The second voltage value determining unit 400 is configured to determine whether a voltage value output by the power supply at the second time is not greater than a second preset voltage value, and if so, trigger the vehicle control unit 500.
Wherein, the second preset voltage value may be a voltage sag threshold value. The voltage drop threshold of the power supply can be determined by a technician through vehicle experiments. And when the voltage value output by the power supply at the second moment is not greater than the voltage drop threshold value, the vehicle system determines that the voltage drop condition of the power supply occurs. Optionally, the second preset voltage value is smaller than the first preset voltage value. It can be understood that, since the voltage measuring apparatus used in the embodiment of the present invention may have an error during the use process, the second preset voltage value is set to be smaller than the first preset voltage value, so that a difference value is formed between the second preset voltage value and the first preset voltage value. According to the embodiment of the invention, the problem that a vehicle system frequently judges voltage drop due to errors of a voltage measuring instrument can be prevented by setting the second preset voltage value to be smaller than the first preset voltage value and setting the second preset voltage value to be different from the first preset voltage value, so that the vehicle is prevented from being frequently switched between the low power consumption state and the rated power consumption state.
The vehicle control unit 500 is configured to control the vehicle to be in a low power consumption state.
After determining that the voltage drop occurs in the power supply, the vehicle control unit 500 may place a component or a circuit that does not affect the normal operation of the vehicle system in a low power consumption state, so that the power supply reduces or stops supplying power to the component or the circuit, and it is ensured that the power supply can preferentially supply power to the main chip of the vehicle after the voltage drop occurs.
The vehicle control unit 500 is configured to control the vehicle to be in a rated power consumption state when a working condition of the vehicle meets a preset working condition after the vehicle is in a low power consumption state.
The operating conditions of the vehicle may include the voltage value of the power supply output, the power consumption of the component, the temperature of the component, and the like.
Optionally, the preset operating condition may include:
the first condition is as follows: the voltage value output by the power supply after the vehicle is in low power consumption is greater than a third preset voltage value.
Or, condition two: and the second duration of the voltage value output by the power supply after the second moment and not greater than the second preset voltage value exceeds a second preset duration.
In the actual use process, the situation that the voltage drop is always continuous may occur, that is, the voltage value output by the power supply after the second moment is always not greater than the second preset voltage value. In order to avoid inexhaustibly waiting that the voltage value output by the power supply after the second moment is greater than the second preset voltage value, the embodiment of the invention limits the time for waiting for the voltage drop to end through the second preset time length.
The embodiment of the invention can calculate the second duration from the second moment, and also can calculate the second duration after the interval with the second moment is fixed.
Optionally, the second time is later than the first time, and an interval between the first time and the second time is not shorter than the first duration.
According to the embodiment of the invention, after the working condition of the vehicle reaches the preset working condition, the part or the circuit which is in the low power consumption state before can be recovered to the rated power consumption state, so that the power supply can continuously supply power to the part or the circuit normally, and the normal operation of the part or the circuit is ensured.
According to the vehicle control device provided by the embodiment of the invention, the voltage value output by a power supply of a vehicle at a first moment is obtained; judging whether the voltage value output by the power supply at the first moment is greater than a first preset voltage value, if so, determining whether the vehicle is normally powered on according to a first duration of time that the voltage value output by the power supply after the first moment is greater than the first preset voltage value; when the vehicle is determined to be normally powered on, obtaining a voltage value output by the power supply at a second moment; judging whether the voltage value output by the power supply at the second moment is not greater than a second preset voltage value or not, and if so, controlling the vehicle to be in a low power consumption state; and after the vehicle is in the low power consumption state, when the working condition of the vehicle meets a preset working condition, controlling the vehicle to be in a rated power consumption state. According to the embodiment of the invention, when the voltage of the power supply of the vehicle drops, the power supply can sufficiently supply power to the main chip of the vehicle by enabling the vehicle to be in the low power consumption state, so that the technical problem that the power supply is insufficient to supply power to the main chip when the voltage drops is solved, and further, the vehicle system is prevented from being out of order.
The vehicle control unit 500 may be specifically configured to control at least one component in the vehicle to operate at a preset frequency.
The vehicle control unit 500 may be specifically configured to control the at least one component in the vehicle to operate at a nominal frequency, wherein the preset frequency is lower than the nominal frequency.
When the voltage of the power supply of the vehicle drops, the vehicle control unit 500 controls at least one component in the vehicle to operate according to the preset frequency, so that the power supply is reduced to supply power to the at least one component, the power supply can preferentially meet the power supply requirement of a main chip of the vehicle, the technical problem that the power supply of the power supply to the main chip is insufficient when the voltage drops is solved, and the vehicle system is prevented from breaking down.
The vehicle control unit 500 may specifically be configured to control at least one preset circuit in the vehicle to be closed.
The vehicle control unit 500 may be specifically configured to control the at least one preset circuit in the vehicle to be turned on.
When the voltage of the power supply of the vehicle drops, the vehicle control unit 500 controls at least one preset circuit in the vehicle to be closed, and the power supply is stopped to supply power to the preset circuit, so that the power supply can preferentially meet the power supply requirement of a main chip of the vehicle, the technical problem that the power supply of the power supply is insufficient to the main chip when the voltage drops is solved, and further the vehicle system is prevented from breaking down.
A storage medium according to an embodiment of the present invention stores thereon a program that, when executed by the processor 601, implements the vehicle control method according to any one of the above.
As shown in fig. 6, an electronic device 600 includes at least one processor 601, at least one memory 602 connected to the processor 601, and a bus 603; the processor 601 and the memory 602 complete communication with each other through the bus 603; the processor 601 is configured to invoke program instructions in the memory 602 to perform a vehicle control method as described in any of the above.
The vehicle control device comprises a processor 601 and a memory 602, wherein the power supply voltage value obtaining unit 100, the first voltage value judging unit 200, the vehicle power-on judging unit 300, the second voltage value judging unit 400, the vehicle control unit 500 and the like are stored in the memory 602 as program units, and the processor 601 executes the program units stored in the memory 602 to realize corresponding functions.
The processor 601 includes a kernel, and the kernel calls a corresponding program unit from the memory 602. The kernel can be set to be one or more than one, the vehicle is in a low power consumption state by adjusting kernel parameters, the power supply can sufficiently supply power to a main chip of the vehicle, the technical problem that the power supply is insufficient for supplying power to the main chip when the voltage drops is solved, and then a vehicle system is prevented from being broken down.
The electronic device 600 herein may be a server, a PC, a PAD, a cell phone, etc.
The present application also provides a computer program product adapted to execute a program initialized with the steps of the vehicle control method described above, when executed on a data processing device.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor 601 of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor 601 of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, the device includes one or more processors 601 (CPUs), memory 602, and a bus 603. The device may also include input/output interfaces, network interfaces, and the like.
The memory 602 may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory 602 includes at least one memory chip. Memory 602 is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.