Vehicle control method and device, vehicle and computer readable storage medium

By generating status identification and reading target data in the vehicle control method after implementing the reset operation, the problem of inconsistent vehicle status caused by the reset operation, realizing the front and back of the vehicle status, reducing the safety risk and improving the user experience.

CN119370114APending Publication Date: 2025-01-28AVATR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411725989.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-28
Publication Date
2025-01-28

AI Technical Summary

Technical Problem

In the prior art, due to hardware or software problems, the underlying software needs to be reset to restore the normal state. The reset operation may cause the data stored before the reset to be cleared, resulting in inconsistent vehicle status, which poses a safety risk.

Method used

After performing the reset operation, the status identification is generated to characterize the status of the target data of the vehicle before reset. The target data is stored in the preset area. The reset operation has nothing to do with the data in the preset area. Determine whether the target data is read based on the status identification and the current software operation cycle, and control the vehicle according to the target data.

Benefits of technology

By storing the target data of the vehicle before reset, and combining the status identification and the current software operation cycle after reset operation, determine whether the target data before the reset is read to ensure that the vehicle is consistent before and after the reset operation, reduce the safety risk of the vehicle, improve the operation of operation Performance, guarantee user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119370114A_ABST
    Figure CN119370114A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to the technical field of automobile control, and discloses a vehicle control method and device, a vehicle and a computer readable storage medium which are applied to a controller, a state identifier is generated after reset operation is executed, the state identifier is used for representing the state of target data of the vehicle before reset, and the target data are stored in a preset area. Data in the preset area is not cleared in the process of executing the reset operation; determining whether to read the target data based on the state identifier and the current software operation cycle; if it is determined that the target data is read, the vehicle is controlled according to the target data. According to the method, the target data of the vehicle can be stored before resetting, whether the target data before resetting is read or not is determined by combining the state identifier and the current software operation period after resetting operation, then the vehicle is controlled, it is guaranteed that the states of the vehicle are consistent before and after resetting operation, the vehicle safety risk is reduced, the operation performance is improved, and the user experience is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of automobile control technology, and specifically to a vehicle control method, device, vehicle and computer-readable storage medium. Background Art

[0002] In the field of new energy vehicles, the Electronic Control Unit (ECU) sometimes needs to be reset to restore the underlying software to normal state due to hardware or software problems. Most resets are sporadic and unpredictable. The reset operation may cause the data or part of the data stored before the reset to be cleared, which may cause the vehicle to fail to operate in the state before the reset. The inconsistency between the previous and the next states affects the operation of the vehicle and poses certain safety risks. Summary of the invention

[0003] In view of the above problems, embodiments of the present invention provide a vehicle control method, device, vehicle and computer-readable storage medium, which are used to solve the problem in the prior art that the vehicle status may be inconsistent due to a reset operation.

[0004] According to one aspect of an embodiment of the present invention, a vehicle control method is provided, which is applied to a controller, and the method includes:

[0005] After performing the reset operation, a state identifier is generated, wherein the state identifier is used to represent the state of target data of the vehicle before the reset, wherein the target data is stored in a preset area, wherein the data in the preset area will not be cleared during the reset operation;

[0006] Determine whether to read target data based on the state identifier and the current software running cycle;

[0007] If it is determined to read the target data, the vehicle is controlled according to the target data.

[0008] In an optional manner, the method further includes:

[0009] Detecting the state of the vehicle to obtain state detection data, and storing the state detection data in the preset area;

[0010] If a reset operation needs to be performed, the target data before the reset is determined from the state detection data.

[0011] In an optional manner, generating a status identifier after performing a reset operation includes:

[0012] After performing the reset operation, detecting whether the target data is complete, and obtaining a detection result;

[0013] The value of the state identifier is determined based on the detection result to generate the state identifier.

[0014] In an optional manner, the determining whether to read the target data based on the state identifier and the current software running cycle includes:

[0015] If the status identifier indicates that the target data is complete and the current software running cycle is the first software running cycle after the reset operation, the target data is read from the preset area.

[0016] In an optional manner, if it is determined to read the target data, controlling the vehicle according to the target data includes:

[0017] Analyzing the target data to determine whether the vehicle is in a fault state before the resetting operation;

[0018] If the vehicle is in a fault state before the reset operation, determining a fault handling method of the vehicle before the reset operation from the target data;

[0019] The vehicle is controlled based on the fault handling method.

[0020] In an optional manner, the method further includes:

[0021] Obtaining a preset processing time corresponding to the fault handling method;

[0022] Detecting whether the process of controlling the vehicle by the fault handling method is completed within the preset processing time;

[0023] If it is completed, the current running state of the vehicle is detected to control the vehicle.

[0024] In an optional manner, the determining whether to read the target data based on the state identifier and the current software running cycle further includes:

[0025] If the status identifier indicates that the target data is incomplete or the current software operation cycle is not the first software operation cycle after the reset operation, it is determined that there is no need to read the target data, and the current operation state of the vehicle is detected to control the vehicle.

[0026] According to another aspect of an embodiment of the present invention, there is provided a vehicle control device, comprising:

[0027] an identification generating module, used for generating a state identification after performing a reset operation, wherein the state identification is used for representing the state of target data of the vehicle before the reset, wherein the target data is stored in a preset area, wherein the data in the preset area will not be cleared during the execution of the reset operation;

[0028] A judgment module, used to determine whether to read the target data based on the state identifier and the current software running cycle;

[0029] The data reading module is used to control the vehicle according to the target data if it is determined to read the target data.

[0030] According to another aspect of an embodiment of the present invention, a vehicle is provided, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;

[0031] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the operation of the vehicle control method described in any one of the above embodiments.

[0032] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, on which computer instructions are stored, and the computer instructions are used to enable a computer to execute the vehicle control method described in any one of the above embodiments.

[0033] The vehicle control method provided by the embodiment of the present invention is applied to a controller, and a state identifier is generated after a reset operation is performed, wherein the state identifier is used to characterize the state of the target data of the vehicle before the reset, the target data is stored in a preset area, and the reset operation is irrelevant to the data in the preset area; based on the state identifier and the current software operation cycle, it is determined whether to read the target data; if it is determined to read the target data, the vehicle is controlled according to the target data. This method can store the target data of the vehicle before the reset, and after the reset operation, it can determine whether to read the target data before the reset and then control the vehicle in combination with the state identifier and the current software operation cycle, thereby ensuring that the vehicle is in the same state before and after the reset operation, reducing vehicle safety risks, improving operating performance, and ensuring user experience.

[0034] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to more clearly understand the technical means of the embodiment of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present invention. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:

[0036] Figure 1 A schematic flow chart of a first embodiment of a vehicle control method provided by the present invention is shown;

[0037] Figure 2 A schematic flow chart of a second embodiment of a vehicle control method provided by the present invention is shown;

[0038] Figure 3 A schematic flow chart of a third embodiment of a vehicle control method provided by the present invention is shown;

[0039] Figure 4 A schematic flow chart of a vehicle control method provided by the present invention is shown;

[0040] Figure 5 A schematic structural diagram of a first embodiment of a vehicle control device provided by the present invention is shown;

[0041] Figure 6 A schematic structural diagram of an embodiment of a vehicle provided by the present invention is shown. DETAILED DESCRIPTION

[0042] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.

[0043] When there are serious problems with the ECU hardware or underlying software that cannot be repaired, a reset operation can be used to repair it. When an electric vehicle fails, the system may perform downgrade actions, such as limiting the vehicle speed, reducing power, etc., to ensure the safe operation of the vehicle. If during the execution of the downgrade action, if the underlying software of the ECU triggers a reset operation due to a software problem, the ECU will restart and return to normal. The reset operation may clear some or all of the data in the ECU, including diagnostic information related to the fault. Due to the clearing of data, the originally diagnosed fault data and the downgrade action-related data will disappear after the reset, resulting in inconsistent states of the faulty vehicle before and after the reset.

[0044] Based on this, an embodiment of the present invention provides a vehicle control method, which is applied to a controller. As an improvement on the existing controller, the controller can be considered as an electronic control unit (Electronic Control Unit, ECU). For example, it can be used as a vehicle control unit (VCU) or a domain controller for electric vehicles. As the central control unit of a new energy vehicle, the VCU is the core of the entire control system and can be responsible for managing and coordinating various functions of the vehicle. According to the driver's intention, the vehicle's operating status and the vehicle's control strategy, after calculation and analysis, it issues corresponding control commands to each component to achieve high-performance and safe driving of the electric vehicle. The domain controller can be designed for specific functional areas (such as power, body, infotainment, etc.), can process data from various sensors, and implement corresponding control through actuators. According to the classification of automobile functions, the domain controller can include a power domain controller, a chassis domain controller, a cockpit domain controller, an automatic driving domain controller, etc. The controller provided by the present invention is not specifically limited. A state detection module and underlying software are deployed in the controller, wherein the state detection module is a software module in the controller. The vehicle control method provided by the present invention is described in detail below. Figure 1 FIG. 1 is a flow chart showing a first embodiment of a vehicle control method of the present invention, wherein the method is executed by a controller, specifically, the controller is a VCU as an example. Figure 1 As shown, the method comprises the following steps:

[0045] Step 110: Generate a status identifier after performing the reset operation.

[0046] The state identifier is used to represent the state of the target data of the vehicle before the reset. The target data is stored in a preset area. The data in the preset area will not be cleared during the reset operation.

[0047] The controller provided in the embodiment of the present invention can be used to implement a series of functions such as analysis, processing, and transmission of vehicle data. The underlying software is provided in the electronic control unit, which can enable the hardware functions of the electronic control unit to be implemented. The state detection module is a software module of the controller application layer that can be used for vehicle fault diagnosis. It can continuously detect the operating status of the vehicle during the operation of the vehicle, determine whether the vehicle has a fault, and perform fault processing (for example, downgrade processing) according to the vehicle fault situation. Fault processing is usually a measure taken by the system when the automatic driving system fails, the performance degrades, or encounters a complex scenario that exceeds its processing capacity. Different fault handling methods can be used according to different situations, for example, downgrading from a fully automatic driving mode to an assisted driving mode, or from an assisted driving mode to a manual driving mode. The underlying software and the application layer can be associated through the middle layer, and data transmission between the underlying software and the application layer can be achieved through a specific data association mechanism.

[0048] The status detection module transmits the detected status detection data to the underlying software and stores it in the preset area of ​​the underlying software. The preset area is a specific address segment. The data stored in the preset area will not be affected by the reset operation and will not be cleared due to the reset operation. The reset operation has nothing to do with the data in the preset area. The target data is the last status detection data received by the controller before the reset operation.

[0049] The underlying software has an arbitration function. After the reset operation, the arbitration function is enabled to detect the state of the target data stored in the preset area, and then generate a corresponding state identifier. The state identifier is used to characterize the state of the vehicle's target data before the reset. The data state includes whether the data is complete. The state identifier can represent different data states, that is, different data states can be represented by different values. The state of the target data is continuously detected during the reset operation, and a unique state identifier is determined after the controller reset is completed.

[0050] Step 120: Determine whether to read target data based on the state identifier and the current software running cycle.

[0051] Whether the target data needs to be read is determined based on the value of the status identifier and the current operation cycle, and can be specifically read from the preset area of ​​the underlying software by the status detection module. Among them, determining the operation cycle may include determining whether it is in the first software operation cycle after reset. The target data includes fault-related data, including fault codes, fault downgrade requirements, fault judgment status, etc.

[0052] Step 130: If it is determined to read the target data, the vehicle is controlled according to the target data.

[0053] If it is determined that the target data is to be read, the state detection module reads the target data from the preset area, and controls the vehicle by reading the target data. The target data may store control instructions for the vehicle before the vehicle is reset. The control instructions are generated based on the vehicle state, such as vehicle fault handling instructions. If the target data is not read, the vehicle state can be detected normally based on the current situation, and then the fault control method for the vehicle can be determined based on the detection results.

[0054] The vehicle control method provided by the embodiment of the present invention is applied to a controller, and a state identifier is generated after a reset operation is performed, wherein the state identifier is used to characterize the state of the target data of the vehicle before the reset, the target data is stored in a preset area, and the reset operation is irrelevant to the data in the preset area; based on the state identifier and the current software operation cycle, it is determined whether to read the target data; if it is determined to read the target data, the vehicle is controlled according to the target data. This method can store the target data of the vehicle before the reset, and after the reset operation, it can determine whether to read the target data before the reset and then control the vehicle in combination with the state identifier and the current software operation cycle, thereby ensuring that the vehicle is in the same state before and after the reset operation, reducing vehicle safety risks, improving operating performance, and ensuring user experience.

[0055] In some embodiments, the vehicle control method further includes: detecting the state of the vehicle to obtain state detection data, and storing the state detection data in a preset area; if a reset operation is required, determining the target data before the reset from the state detection data.

[0056] The status detection module continuously detects the status of the vehicle and obtains status detection data, which includes fault-related data, including fault codes, fault downgrade requirements, fault judgment status, etc. The status detection data is sent to the underlying software and stored in the preset area. Since the status detection data changes in real time, when the controller needs to perform a reset operation, the underlying software determines the target data before the reset operation from the status detection data to ensure that the target data is the latest data before the reset operation is performed.

[0057] Based on the above-mentioned embodiments, this embodiment shows a second embodiment of the vehicle control method of the present invention. Figure 2 A flow chart showing a second embodiment of a vehicle control method of the present invention is shown, the method comprising the following steps:

[0058] Step 210: Generate a status flag after performing the reset operation.

[0059] Specifically, step 210 includes:

[0060] Step 211, after performing the reset operation, detect whether the target data is complete and obtain a detection result.

[0061] The underlying software of the controller has an arbitration function. After the controller is reset, the arbitration function is enabled to determine whether the target data stored in the preset area is damaged or valid. The integrity of the target data means that there is no data damage, loss, invalidity, etc.

[0062] Step 212: determine the value of the state identifier based on the detection result to generate a state identifier.

[0063] The state of the target data can be represented by different values, for example, when the detection result represents that the target data is complete, the state identifier = 1, and when the detection result represents that the target data is incomplete, the state identifier = 0. By detecting the target data, a corresponding state identifier is generated, and the state identifier can be sent to the state detection module.

[0064] Step 220: Determine whether to read the target data based on the state identifier and the current software running cycle.

[0065] Specifically, step 220 includes:

[0066] Step 221 : if the status flag indicates that the target data is complete and the current software running cycle is the first software running cycle after the reset operation, the target data is read from the preset area.

[0067] Different types of vehicles (such as passenger cars, commercial vehicles, electric vehicles, etc.) and different vehicle systems (such as engines, braking systems, electrical systems, etc.) may have different fault detection requirements. Therefore, the operating cycle of the software where the status detection module for these vehicles and systems is located will also be different. After the reset is completed, the status detection module restarts. After startup, a series of initialization operations are required, such as loading configurations, establishing connections, etc. The time of this stage is usually short, but it depends on the complexity of the software and the operating environment. When entering the detection state, the vehicle system is detected according to the set detection method and frequency. The time of this stage depends on the frequency of detection and the complexity of the vehicle system. Each operating cycle can be set to the same duration or different durations, which can be set according to actual conditions.

[0068] After obtaining the state identification, if the state identification indicates that the target data is complete, the state detection module detects the current software operation cycle. If the current operation cycle is the first operation cycle after the reset operation, the state detection module reads the target data from the preset area.

[0069] Step 222: If the status indicator indicates that the target data is incomplete or the current software operation cycle is not the first software operation cycle after the reset operation, it is determined that there is no need to read the target data, and the current operation state of the vehicle is detected to control the vehicle.

[0070] If the state identifier indicates that the target data is complete, the current software operation cycle is detected. After detection, if the current software operation cycle is not the first operation cycle after the reset operation, since the state detection module is executed in cycles, it indicates that the state detection module has detected the vehicle state at that time in the first operation cycle after the reset is completed and may determine the vehicle control method (including fault handling method) according to the situation at that time. Therefore, there is no need to read the target data in the second operation cycle and subsequent operation cycles. The state detection module can detect the current operating state of the vehicle and determine the vehicle control method based on the detected current vehicle operation data. If it is detected that the current vehicle has a fault and needs to perform fault handling, the corresponding fault handling method can be determined according to the fault situation, so that the vehicle operates according to the fault handling method.

[0071] If the status mark indicates that the target data is incomplete, it means that the target data may be damaged to a certain extent during the reset process, and the target data cannot be read and the corresponding operation cannot be performed. Therefore, when the received status mark indicates that the target data is incomplete, there is no need to read the target data. The status detection module can detect the current operating state of the vehicle and determine the vehicle control method based on the detected current vehicle operating data. If it is detected that the current vehicle has a fault and fault handling needs to be performed, the corresponding fault handling method can be determined according to the fault situation, so that the vehicle operates according to the fault handling method.

[0072] Step 230: If it is determined to read the target data, the vehicle is controlled according to the target data.

[0073] Specifically, step 230 includes:

[0074] Step 231 , analyzing the target data to determine whether the vehicle is in a fault state before the reset operation.

[0075] The target data includes the vehicle operating status before the reset operation, and may contain data related to fault detection and degradation processing. By reading the data, it is determined whether the vehicle is in a fault state before the reset operation is performed.

[0076] Step 232: If the vehicle is in a fault state before the reset operation, determine the fault handling method of the vehicle before the reset operation from the target data.

[0077] Step 233, controlling the vehicle based on the fault handling method.

[0078] If a vehicle fault is detected before the reset operation and the fault handling is performed, the fault data and fault handling data will be recorded in the target data, and the fault handling method includes the fault data and fault handling data. Usually, the downgrade process is completed within one operation cycle. When the vehicle is in a fault state before the reset operation is performed, it indicates that the vehicle fault has been detected before the reset and the fault handling has been performed, and the vehicle is in a fault state. In order to keep the vehicle in the corresponding fault handling state in the first software operation cycle after the reset, it should be consistent with the state before the reset. The vehicle is controlled to execute the fault handling method by reading the fault data and fault handling data.

[0079] If it is found through reading the target data that the vehicle is not in a fault state before performing the reset operation, no fault processing is required, and the state detection module in the controller can operate normally to detect the current state of the vehicle.

[0080] The fault state of the vehicle may include various types of faults, such as high-voltage faults, power-related faults, gear faults, etc. Different faults have corresponding fault handling methods. For example, when a high-voltage fault occurs, the fault handling method includes cutting off the high-voltage power to prevent the fault from expanding; when a power-related fault occurs, the fault handling method includes limiting the power output of the vehicle, activating the backup power system, etc.

[0081] In the vehicle control method provided by the embodiment of the present invention, the vehicle state can be detected to obtain state detection data, and a state identifier is generated after the reset operation. If the state identifier indicates that the target data is complete and is in the first software operation cycle, the target data is read, and it is determined whether the vehicle is in a fault state before the reset operation is performed based on the target data. If it is detected that the vehicle is in a fault state before the reset, the vehicle is controlled to execute the fault handling method in the target data. If the state identifier indicates that the target data is complete or the current software operation cycle is not the first software operation cycle after the reset operation, the current operating state of the vehicle is detected. Through this method, the vehicle that performs fault handling can continue to maintain the fault handling state after the reset, and the fault data will not be lost due to the reset operation. For the user, the situation that the vehicle state changes due to the reset will not be perceived, thereby improving the user experience.

[0082] In some embodiments, Figure 3 As shown, the above method also includes the following steps:

[0083] Step 310: Obtain a preset processing time corresponding to the fault handling method.

[0084] It takes some time to read the fault handling method and complete the execution. After reading the target data, a certain delay time can be processed. The delay time will be set according to the actual situation to ensure that it can be executed for different degradation actions or different fault states. The delay time is the preset processing time. Different fault handling methods can set corresponding preset processing times. After determining the fault handling method, the corresponding preset processing time is obtained. For example, if the complete process of executing a certain fault handling method requires 500ms, then the corresponding preset processing time is 500ms.

[0085] Step 320, detecting whether the process of controlling the vehicle by the fault handling method is completed within a preset processing time.

[0086] After the fault handling method is obtained, the fault handling method can be executed on the vehicle to detect whether the process of controlling the vehicle is completed within a preset processing time.

[0087] Step 330, if completed, then detect the current running state of the vehicle to control the vehicle.

[0088] The current running state is used to control the vehicle. If the vehicle is controlled according to the fault handling method within the preset processing time, the state detection module can restore the normal detection state to detect the current running state of the vehicle.

[0089] The method of this embodiment provides a certain delay time for vehicle control by setting a preset processing time corresponding to the fault handling method, thereby ensuring that the vehicle fault handling is completed within the preset processing time.

[0090] As an example, Figure 4 The flowchart of the vehicle control method provided by the present invention is shown in the figure. The execution subject is a controller. After the reset operation, a status identifier is generated. When the status identifier = 1, it means that the target data is complete, and then it is determined whether the current operation is the first operation cycle. When it is in the first operation cycle, the target data is read, and based on the result of reading the target data, it is determined whether the vehicle is in a fault state before the reset operation is performed. When it is not the first operation cycle, the current operation state of the vehicle is detected, and the vehicle is controlled according to the current operation state without reading the target data. When the status identifier is not equal to 1, the current operation state of the vehicle is detected, and the vehicle is controlled according to the current operation state without reading the target data.

[0091] Figure 5 The schematic diagram of the structure of an embodiment of the vehicle control device of the present invention is shown, and the device is applied to a controller such as Figure 5 As shown, the device 400 includes: an identification generating module 410 , a judging module 420 and a data reading module 430 .

[0092] The identification generating module 410 is used to generate a state identification after performing the reset operation, wherein the state identification is used to represent the state of the target data of the vehicle before the reset, wherein the target data is stored in a preset area, wherein the data in the preset area will not be cleared during the reset operation;

[0093] A determination module 420 is used to determine whether to read target data based on the state identifier and the current software running cycle;

[0094] The data reading module 430 is configured to control the vehicle according to the target data if it is determined to read the target data.

[0095] In an optional manner, the device further includes:

[0096] A state detection module, used to detect the state of the vehicle, obtain state detection data, and store the state detection data in the preset area;

[0097] The target data determination module is used to determine the target data before resetting from the state detection data if a resetting operation needs to be performed.

[0098] In an optional manner, the identification generation module 410 includes:

[0099] A complete detection unit, used to detect whether the target data is complete after performing the reset operation, and obtain a detection result;

[0100] An identifier generating unit is used to determine the value of the state identifier based on the detection result to generate the state identifier.

[0101] In an optional manner, the determination module 420 includes:

[0102] The first judgment unit is configured to read the target data from the preset area if the status identifier indicates that the target data is complete and the current software running cycle is the first software running cycle after the reset operation.

[0103] In an optional manner, the data reading module 430 includes:

[0104] a fault determination unit, configured to analyze the target data to determine whether the vehicle is in a fault state before the reset operation;

[0105] a fault handling method determining unit, configured to determine, from the target data, a fault handling method of the vehicle before the resetting operation if the vehicle is in a fault state before the resetting operation;

[0106] A fault handling unit is used to control the vehicle based on the fault handling method.

[0107] In an optional manner, the device further includes:

[0108] A duration acquisition module, used to acquire a preset processing duration corresponding to the fault handling method;

[0109] An execution detection module, used for detecting whether the process of controlling the vehicle by the fault handling method is completed within the preset processing time;

[0110] The current detection module is used to detect the current running state of the vehicle if it has been completed, so as to control the vehicle.

[0111] In an optional manner, the determination module 520 includes:

[0112] The second judgment unit is used to determine that it is not necessary to read the target data if the status identifier indicates that the target data is incomplete or the current software operation cycle is not the first software operation cycle after the reset operation, and detect the current operation status of the vehicle to control the vehicle.

[0113] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0114] Figure 6 A schematic structural diagram of an embodiment of a vehicle of the present invention is shown, and the specific embodiment of the present invention does not limit the specific implementation of the vehicle.

[0115] like Figure 6 As shown, the vehicle may include: a processor 502 , a communications interface 504 , a memory 506 , and a communications bus 508 .

[0116] The processor 502, the communication interface 504, and the memory 506 communicate with each other via the communication bus 508. The communication interface 504 is used to communicate with other devices such as a client or other server network elements. The processor 502 is used to execute the program 512, which can specifically execute the relevant steps in the above-mentioned vehicle control method embodiment.

[0117] Specifically, program 512 may include program code including computer-executable instructions.

[0118] The processor 502 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiment of the present invention. The one or more processors included in the vehicle device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0119] The memory 506 is used to store the program 512. The memory 506 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0120] Program 512 may be specifically called by processor 502 to execute the vehicle control method as described in any of the previous embodiments.

[0121] In an embodiment of the present invention, the electronic control unit can store target data before resetting, and send a status identifier and target data to the status detection module after the resetting operation, so that the status detection module determines whether to read the target data based on the status identifier and the operation cycle, thereby avoiding the situation where the reset operation causes the loss of data before resetting. After the resetting operation, the data before resetting can be read according to the actual situation to control the vehicle, ensuring that the vehicle is in the same state before and after the resetting operation, reducing vehicle safety risks, and improving user experience.

[0122] The embodiment of the present invention provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to make the computer execute the vehicle control method described in any of the above method embodiments. The above method according to the embodiment of the present invention can be implemented in hardware, firmware, or implemented as a computer code that can be recorded in a storage medium, or downloaded through a network and originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memory. It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor or hardware, the method shown in the above embodiment is implemented.

[0123] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system or other device. In addition, the embodiments of the present invention are not directed to any particular programming language.

[0124] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. Similarly, in order to simplify the present invention and help understand one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. Wherein, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself is a separate embodiment of the present invention.

[0125] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and further may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive.

[0126] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.

Claims

1. A vehicle control method, characterized in that: Applied to a controller, the method comprises: After performing the reset operation, a state identifier is generated, wherein the state identifier is used to represent the state of target data of the vehicle before the reset, wherein the target data is stored in a preset area, wherein the data in the preset area will not be cleared during the reset operation; Determine whether to read target data based on the state identifier and the current software running cycle; If it is determined to read the target data, the vehicle is controlled according to the target data.

2. The method according to claim 1, characterized in that: The method further comprises: Detecting the state of the vehicle to obtain state detection data, and storing the state detection data in the preset area; If a reset operation needs to be performed, the target data before the reset is determined from the state detection data.

3. The method according to claim 1, characterized in that The generating of the state identifier after performing the reset operation comprises: After performing the reset operation, detecting whether the target data is complete, and obtaining a detection result; The value of the state identifier is determined based on the detection result to generate the state identifier.

4. The method according to claim 1, characterized in that: The determining whether to read the target data based on the state identifier and the current software running cycle includes: If the status identifier indicates that the target data is complete and the current software running cycle is the first software running cycle after the reset operation, the target data is read from the preset area.

5. The method according to claim 4, characterized in that If it is determined to read the target data, controlling the vehicle according to the target data includes: Analyzing the target data to determine whether the vehicle is in a fault state before the resetting operation; If the vehicle is in a fault state before the reset operation, determining a fault handling method of the vehicle before the reset operation from the target data; The vehicle is controlled based on the fault handling method.

6. The method according to claim 5, characterized in that The method further comprises: Obtaining a preset processing time corresponding to the fault handling method; Detecting whether the process of controlling the vehicle by the fault handling method is completed within the preset processing time; If completed, the current running state of the vehicle is detected to control the vehicle.

7. The method according to claim 1, characterized in that The determining whether to read the target data based on the state identifier and the current software running cycle also includes: If the status identifier indicates that the target data is incomplete or the current software operation cycle is not the first software operation cycle after the reset operation, it is determined that there is no need to read the target data, and the current operation state of the vehicle is detected to control the vehicle.

8. A vehicle control device, characterized in that: The device comprises: an identification generating module, used for generating a state identification after performing a reset operation, wherein the state identification is used for representing the state of target data of the vehicle before the reset, wherein the target data is stored in a preset area, wherein the data in the preset area will not be cleared during the execution of the reset operation; A judgment module, used to determine whether to read the target data based on the state identifier and the current software running cycle; The data reading module is used to control the vehicle according to the target data if it is determined to read the target data.

9. A vehicle, characterized in that: include: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform the operation of the vehicle control method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the vehicle control method according to any one of claims 1 to 7.