Vehicle fault-based data storage method and device, vehicle and storage medium
By detecting transmission faults while the vehicle is in motion and storing freeze frame data when the engine is turned off, the problem of loss of freeze frame data during fault code clearing or power-off operations is solved, ensuring the integrity of vehicle fault analysis.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SAIC MOTOR
- Filing Date
- 2024-12-26
- Publication Date
- 2026-06-26
AI Technical Summary
In the prior art, the frozen frame data generated when a vehicle detects a transmission fault is easily lost during fault code clearing or power-off operations, making effective fault analysis impossible.
After a transmission fault code is detected while the vehicle is in motion, a read-only memory is used to store the frozen frame data when the engine is turned off. After the storage is completed, the transmission hibernation is prohibited to ensure that the data is not lost during fault code clearing or power-off operations.
It enables the effective storage of frozen frame data during vehicle fault code clearing or power-off operations, ensuring that subsequent fault analysis can be performed based on the read-only memory.
Smart Images

Figure CN122284902A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to a data storage method, apparatus, vehicle, and storage medium based on vehicle faults. Background Technology
[0002] At present, specific faults that have a significant impact on the transmission may occur when the vehicle is in motion, generating frozen frame data. It is necessary to record the frozen frame data so that subsequent vehicle fault analysis can be performed based on the frozen frame data.
[0003] In related technologies, the data storage method based on vehicle faults refers to: when a specific fault code affecting the transmission is detected during vehicle operation, the frozen frame data corresponding to the specific fault code is obtained and the frozen frame data is stored in a temporary variable.
[0004] However, when a vehicle may undergo a fault code clearing operation or a power-off operation, the fault code clearing operation or power-off operation will cause the frozen frame data stored in the temporary variable to be lost, thus making it impossible to perform vehicle fault analysis. Summary of the Invention
[0005] In view of this, embodiments of this application provide a data storage method, apparatus, device, and storage medium based on vehicle faults, to avoid the loss of frozen frame data when a vehicle undergoes fault code clearing or power-off operations, so that subsequent vehicle fault analysis can be performed based on the frozen frame data in the read-only memory.
[0006] On one hand, embodiments of this application provide a data storage method based on vehicle faults, the method comprising:
[0007] If a target fault code is detected while the vehicle is in motion, the freeze frame data corresponding to the target fault code is obtained; the target fault code affects the vehicle's transmission.
[0008] When the engine of the vehicle is completely turned off, the frozen frame data is stored in the read-only memory to obtain the storage status of the frozen frame data.
[0009] If the storage status indicates that the frozen frame data storage is complete, it is determined that the read-only memory has stored the frozen frame data; the gearbox is prohibited from hibernation until the frozen frame data storage is complete.
[0010] Optionally, the step of storing the frozen frame data in a read-only memory and obtaining the storage state of the frozen frame data when the vehicle's engine is completely turned off includes:
[0011] When the vehicle's engine is completely shut off, a read-only memory storage request for the frozen frame data is initiated.
[0012] According to the read-only memory storage request, the frozen frame data is stored in the read-only memory to obtain the storage status;
[0013] If the storage status indicates that the frozen frame data storage is complete, determining that the read-only memory has stored the frozen frame data includes:
[0014] If the storage status indicates that the frozen frame data storage is complete, stop the read-only memory storage request and determine that the read-only memory has stored the frozen frame data.
[0015] Optionally, the complete shutdown of the vehicle's engine means that the engine completely stops rotating after the vehicle has stopped moving.
[0016] Optionally, the method further includes:
[0017] After the frozen frame data is stored, if the vehicle performs a fault code clearing operation, the read-only memory is determined to retain the frozen frame data.
[0018] Optionally, the method further includes:
[0019] After the frozen frame data is stored, if the vehicle experiences a power outage, the read-only memory is determined to retain the frozen frame data.
[0020] Optionally, the detection conditions for the target fault code include the vehicle's mileage being greater than a preset mileage, and the engine's start-up time after the vehicle is powered on being greater than a preset time period.
[0021] Optionally, the method further includes:
[0022] If the total number of frozen frame data in the read-only memory is a preset number, it is determined that the read-only memory will no longer store new frozen frame data.
[0023] On the other hand, embodiments of this application provide a data storage device based on vehicle faults, characterized in that it includes: an acquisition unit, a storage unit, and a determination unit;
[0024] The acquisition unit is used to acquire freeze frame data corresponding to the target fault code if a target fault code is detected while the vehicle is in motion; the target fault code affects the vehicle's transmission.
[0025] The storage unit is used to store the frozen frame data through a read-only memory when the engine of the vehicle is completely turned off, and to obtain the storage status of the frozen frame data.
[0026] The determining unit is configured to determine that the read-only memory has stored the frozen frame data if the storage state indicates that the frozen frame data storage is complete; the gearbox is prohibited from hibernation before the frozen frame data storage is complete.
[0027] Optionally, the storage unit is used for:
[0028] When the vehicle's engine is completely shut off, a read-only memory storage request for the frozen frame data is initiated.
[0029] According to the read-only memory storage request, the frozen frame data is stored in the read-only memory to obtain the storage status;
[0030] The determining unit is used for:
[0031] If the storage status indicates that the frozen frame data storage is complete, stop the read-only memory storage request and determine that the read-only memory has stored the frozen frame data.
[0032] Optionally, the complete shutdown of the vehicle's engine means that the engine completely stops rotating after the vehicle has stopped moving.
[0033] Optionally, the determining unit is further configured to:
[0034] After the frozen frame data is stored, if the vehicle performs a fault code clearing operation, the read-only memory is determined to retain the frozen frame data.
[0035] Optionally, the determining unit is further configured to:
[0036] After the frozen frame data is stored, if the vehicle experiences a power outage, the read-only memory is determined to retain the frozen frame data.
[0037] Optionally, the detection conditions for the target fault code include the vehicle's mileage being greater than a preset mileage, and the engine's start-up time after the vehicle is powered on being greater than a preset time period.
[0038] Optionally, the determining unit is further configured to:
[0039] If the total number of frozen frame data in the read-only memory is a preset number, it is determined that the read-only memory will no longer store new frozen frame data.
[0040] On the other hand, this application provides a vehicle, characterized in that the vehicle includes a processor and a memory:
[0041] The memory is used to store computer programs and to transfer the computer programs to the processor;
[0042] The processor is configured to execute the methods described above according to instructions in the computer program.
[0043] On the other hand, embodiments of this application provide a computer-readable storage medium for storing a computer program, which, when executed by a processor, is used to implement the methods described above.
[0044] Compared with the prior art, this application has at least the following advantages:
[0045] Using the technical solution of this application embodiment, when a target fault code affecting the vehicle's transmission is detected while the vehicle is in motion, the corresponding frozen frame data can be acquired. Once the vehicle's engine is completely shut off, the frozen frame data is stored in a read-only memory (ROM) to obtain the storage status of the frozen frame data. When the storage status indicates that the frozen frame data storage is complete, it is accurately determined that the ROM has stored the frozen frame data. The transmission is prohibited from hibernation until the frozen frame data storage is complete. This method acquires the frozen frame data corresponding to the target fault code affecting the transmission while the vehicle is in motion, and then stores the frozen frame data in the ROM when the vehicle's engine is completely shut off, continuing this process until the storage status indicates that the frozen frame data storage is complete. This ensures that the ROM can promptly complete the storage of the frozen frame data corresponding to the target fault code, preventing the loss of frozen frame data during fault code clearing or power-off operations. This allows for subsequent vehicle fault analysis based on the frozen frame data in the ROM. Attached Figure Description
[0046] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments of this application or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0047] Figure 1 This is a schematic diagram of a vehicle fault-based data storage method in related technologies;
[0048] Figure 2 This is a schematic diagram of the system framework involved in one application scenario in the embodiments of this application;
[0049] Figure 3 A flowchart illustrating a data storage method based on vehicle faults provided in an embodiment of this application;
[0050] Figure 4 A schematic diagram illustrating data storage based on vehicle faults, provided as an embodiment of this application;
[0051] Figure 5 This is a schematic diagram of a data storage device based on vehicle faults provided in an embodiment of this application. Detailed Implementation
[0052] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.
[0053] Currently, specific faults that significantly impact the transmission may occur during vehicle operation, generating frozen frame data. This frozen frame data needs to be recorded for subsequent vehicle fault analysis. Therefore, when a specific fault code affecting the transmission is detected during vehicle operation, the corresponding frozen frame data is acquired and stored in a temporary variable. However, the inventors discovered that when a fault code clearing operation or a power-off operation occurs, the frozen frame data stored in the temporary variable is lost, thus preventing vehicle fault analysis.
[0054] See Figure 1 ,Should Figure 1 This is a schematic diagram of a vehicle fault-based data storage method in related technologies. When a specific fault occurs while the vehicle is in motion, frozen frame data is generated and stored in a temporary variable. When the vehicle stops moving (i.e., the key is turned off), the frozen frame data is lost if a fault code clearing operation occurs or if a power-off operation occurs.
[0055] To address this issue, in this embodiment, after acquiring the frozen frame data corresponding to the target fault code affecting the transmission while the vehicle is in motion, the frozen frame data is stored in a read-only memory (ROM) when the vehicle's engine is completely shut off. This process continues until the frozen frame data storage status indicates that the data storage is complete. This ensures that the ROM can promptly store the frozen frame data corresponding to the target fault code, preventing the loss of frozen frame data during fault code clearing or power-off operations. This allows for subsequent vehicle fault analysis based on the frozen frame data in the ROM.
[0056] For example, one scenario in the embodiments of this application can be applied to, such as Figure 2The scenario shown includes a vehicle 200, which includes a controller 201. The controller 201 executes the implementation method provided in this application embodiment to realize data storage based on vehicle faults.
[0057] First, in the above application scenarios, although the action description of the implementation method provided in this application is executed by the controller 201, the implementation method of this application is not limited in terms of the execution subject, as long as the actions disclosed in the implementation method provided in this application are executed.
[0058] Secondly, the above scenario is only one example provided by the embodiments of this application, and the embodiments of this application are not limited to this scenario.
[0059] The following, in conjunction with the accompanying drawings, describes in detail the specific implementation methods, apparatus, devices, and storage media for data storage based on vehicle faults in the embodiments of this application.
[0060] First, the specific implementation of the data storage method based on vehicle faults in this application will be explained in detail through examples.
[0061] See Figure 3 ,Should Figure 3 This is a schematic flowchart illustrating a data storage method based on vehicle faults, provided in an embodiment of this application. In this embodiment, the method may include, for example, the following steps S301-S303.
[0062] S301: If a target fault code is detected while the vehicle is in motion, obtain the freeze frame data corresponding to the target fault code; the target fault code affects the vehicle's transmission.
[0063] In this embodiment of the application, since specific faults that may significantly affect the transmission may occur when the vehicle is in motion, and freeze frame data may be generated, it is necessary to record the freeze frame data so that vehicle fault analysis can be performed based on the freeze frame data later. Therefore, when the vehicle is in motion, it is detected whether a target fault code of the transmission that affects the vehicle is generated, so as to detect whether the vehicle has a specific fault. If so, the freeze frame data corresponding to the target fault code can be obtained.
[0064] Among them, the target fault code indicates a specific fault that occurs during vehicle operation and affects the vehicle's transmission. The freeze frame data corresponding to the target fault code is used to realize fault analysis.
[0065] S302: When the vehicle's engine is completely turned off, the frozen frame data is stored in the read-only memory to obtain the storage status of the frozen frame data.
[0066] In related technologies, the frozen frame data corresponding to the target fault code is obtained and stored in a temporary variable. However, when the vehicle undergoes a fault code clearing operation or a power-off operation, the frozen frame data stored in the temporary variable is lost, thus making it impossible to perform vehicle fault analysis.
[0067] Therefore, in this embodiment of the application, to solve the above problems, considering that the data stored in the read-only memory will not be lost when the vehicle undergoes a fault code clearing operation or a power-off operation, the read-only memory can be used to store the frozen frame data; further considering the need to avoid conflicts between the read-only memory storage operation and the vehicle's normal control operation, it is necessary to wait until the vehicle's engine is completely turned off before using the read-only memory to store the frozen frame data; in addition, in order to determine the storage status of the frozen frame data in the read-only memory, it is also necessary to obtain the storage status of the frozen frame data. Therefore, after executing the above S301 to obtain the frozen frame data corresponding to the target fault code, the read-only memory is used to store the frozen frame data when the vehicle's engine is completely turned off, thus obtaining the storage status of the frozen frame data.
[0068] Among them, read-only memory has the characteristic that once data is stored, it can only be read and cannot be modified or deleted at will. Read-only memory can be electrically erasable programmable read-only memory (EEPROM); the storage status of frozen frame data indicates whether frozen frame data is being stored or frozen frame data storage is complete.
[0069] S303: If the storage status indicates that the frozen frame data storage is complete, determine that the read-only memory has stored the frozen frame data; the gearbox is prohibited from hibernating until the frozen frame data storage is complete.
[0070] In this embodiment of the application, after executing the above S302 to obtain the storage status of the frozen frame data, when the storage status indicates that the frozen frame data storage is complete, it means that the read-only memory has completed the storage of the frozen frame data, and it can be determined that the read-only memory has stored the frozen frame data; wherein, in order for the read-only memory to realize the storage of the frozen frame data, the gearbox is prohibited from sleeping before the frozen frame data storage is complete.
[0071] Through the various implementation methods provided in this embodiment, when a target fault code affecting the vehicle's transmission is detected while the vehicle is in motion, the corresponding frozen frame data can be acquired. Once the vehicle's engine is completely shut off, the frozen frame data is stored in a read-only memory (ROM) to obtain its storage status. When the storage status indicates that the frozen frame data storage is complete, it is accurately determined that the ROM has stored the frozen frame data. The transmission is prohibited from hibernation until the frozen frame data storage is complete. This method acquires the frozen frame data corresponding to the target fault code affecting the transmission while the vehicle is in motion, and then stores the frozen frame data in the ROM when the vehicle's engine is completely shut off, continuing this process until the storage status indicates that the frozen frame data storage is complete. This ensures that the ROM can promptly store the frozen frame data corresponding to the target fault code, preventing the loss of frozen frame data during fault code clearing or power-off operations. This allows for subsequent vehicle fault analysis based on the frozen frame data in the ROM.
[0072] In this embodiment of the application, when the vehicle's engine is completely turned off in S302, the frozen frame data is stored using a read-only memory to obtain the storage status of the frozen frame data. Specifically, this can be implemented by initiating a read-only memory storage request for the frozen frame data when the vehicle's engine is completely turned off, and then storing the frozen frame data using the read-only memory. Based on this, when the vehicle's engine is completely turned off, the read-only memory storage request for the frozen frame data is initiated so that, in response to the read-only memory storage request, the frozen frame data is stored using the read-only memory to obtain the storage status of the frozen frame data. Correspondingly, when the storage status indicates that the frozen frame data storage is complete in S303, it can be implemented by stopping the read-only memory storage request for the frozen frame data when the storage status indicates that the frozen frame data storage is complete, thus determining that the read-only memory has stored the frozen frame data. Therefore, in an optional embodiment of this application, S302 may include, for example, S302a-S302b, and S303 may include, for example, S303a.
[0073] S302a: When the vehicle's engine is completely shut off, initiate a read-only memory storage request for frozen frame data.
[0074] S302b: Based on the read-only memory storage request, store the frozen frame data through the read-only memory to obtain the storage status.
[0075] S303a: If the storage status indicates that the frozen frame data storage is complete, stop the read-only memory storage request and confirm that the read-only memory has stored the frozen frame data.
[0076] Among them, the read-only memory storage request for frozen frame data is a request to store frozen frame data in read-only memory.
[0077] The aforementioned S302a-S302b and S303a, by waiting until the vehicle's engine is completely turned off, initiate a read-only memory storage request for the frozen frame data. In response to the read-only memory storage request, the read-only memory can be accurately used to store the frozen frame data. When the storage status of the frozen frame data indicates that the frozen frame data storage is complete, by stopping the read-only memory storage request for the frozen frame data, it can be accurately determined that the read-only memory has stored the frozen frame data.
[0078] In this embodiment, the complete shutdown of the vehicle's engine means that the vehicle stops moving when the key is turned off, and the engine speed is 0, meaning the engine has completely stopped rotating. Therefore, in an optional implementation of this embodiment, the complete shutdown of the vehicle's engine means that the engine completely stops rotating after the vehicle has stopped moving.
[0079] The above method takes into account that when the engine has not completely stopped rotating after the vehicle stops moving, the vehicle may still have some routine control operations. Once the engine has completely stopped rotating after the vehicle stops moving, the frozen frame data is stored using a read-only memory, which can accurately avoid conflicts between the storage operations of the read-only memory and the routine control operations of the vehicle.
[0080] Furthermore, in this embodiment, after the storage state indicates that the frozen frame data storage is complete and the read-only memory has stored the frozen frame data, since the read-only memory has the characteristic that once data is stored, it can only be read and cannot be arbitrarily modified or deleted, the frozen frame data in the read-only memory cannot be arbitrarily modified or deleted. Based on this, when a vehicle undergoes a fault code clearing operation, it is determined that the frozen frame data in the read-only memory will not be lost, that is, the read-only memory still retains the frozen frame data. Therefore, in an optional embodiment of this application, the method may further include, for example, S1: after the frozen frame data storage is complete, if a vehicle undergoes a fault code clearing operation, it is determined that the read-only memory retains the frozen frame data.
[0081] Based on the fact that the frozen frame data has been stored in the read-only memory, even if the vehicle undergoes a fault code clearing operation, the frozen frame data in the read-only memory will not be lost, so that vehicle fault analysis can be performed based on the frozen frame data in the read-only memory.
[0082] Furthermore, in this embodiment, after the storage state indicates that the frozen frame data storage is complete and the read-only memory has stored the frozen frame data, since the read-only memory has the characteristic that once data is stored, it can only be read and cannot be arbitrarily modified or deleted, the frozen frame data in the read-only memory cannot be arbitrarily modified or deleted. Based on this, when the vehicle experiences a power outage, it is determined that the frozen frame data in the read-only memory will not be lost, that is, the read-only memory still retains the frozen frame data. Therefore, in an optional embodiment of this application, the method may further include, for example, S2: after the frozen frame data storage is completed, if the vehicle experiences a power outage, it is determined that the read-only memory retains the frozen frame data.
[0083] Based on the fact that the frozen frame data has been stored in the read-only memory, the frozen frame data in the read-only memory will not be lost even if the vehicle is powered off, so that vehicle fault analysis can be performed based on the frozen frame data in the read-only memory.
[0084] Furthermore, in this embodiment, considering that a specific fault that significantly affects the transmission may occur after the vehicle's mileage exceeds a certain threshold and the engine has been running for a certain period after the vehicle is powered on and has reached a certain speed, the prerequisite for detecting whether a target fault code affecting the transmission is generated while the vehicle is in motion is that the vehicle's mileage exceeds a preset mileage and the engine's start-up time exceeds a preset time period. Therefore, in an optional implementation of this embodiment, the detection conditions for the target fault code include that the vehicle's mileage exceeds a preset mileage and the engine's start-up time exceeds a preset time period.
[0085] Among them, the preset mileage is a pre-set mileage threshold. If the vehicle's mileage is greater than the preset mileage, it means that the vehicle is not a new vehicle. The preset time period is a pre-set time period threshold. If the engine starts within a longer time period after the vehicle is powered on, it means that the vehicle is moving at a speed.
[0086] The above method detects whether a target fault code affecting the vehicle's transmission is generated only when the vehicle's mileage exceeds the preset mileage and the engine starts for a longer period of time after the vehicle is powered on, indicating that the vehicle is not a new vehicle and is moving at a certain speed. This is to detect whether a specific fault has occurred in the vehicle and to avoid erroneous detection of target fault codes affecting the transmission when the vehicle is a new vehicle or during vehicle repair.
[0087] Furthermore, in this embodiment of the application, considering further saving storage resources occupied by the read-only memory, an upper limit, i.e., a preset number, can be configured for the total number of multiple frozen frame data in the read-only memory. When the total number of multiple frozen frame data in the read-only memory is the preset number, it is determined that the read-only memory will no longer store new frozen frame data. Therefore, in an optional implementation of this embodiment of the application, the method may further include, for example, S3: if the total number of multiple frozen frame data in the read-only memory is the preset number, it is determined that the read-only memory will no longer store new frozen frame data.
[0088] The preset quantity is the upper limit of the number of frozen frame data in the read-only memory. For example, the preset quantity is 10.
[0089] The above S3 determines that the total number of multiple frozen frame data in the read-only memory is a preset number, indicating that there is enough multiple frozen frame data in the read-only memory. It then determines that the read-only memory will no longer store new frozen frame data, thus avoiding the read-only memory storing too much frozen frame data and avoiding the read-only memory occupying too much storage resources.
[0090] See Figure 4 , Figure 4 This is a schematic diagram illustrating data storage based on vehicle faults provided in an embodiment of this application. When the vehicle is in motion, a specific fault occurs at time t0, generating frozen frame data. At time t1, the vehicle stops moving (key is turned off). At time t2, the engine is completely shut off (engine speed is 0), and a read-only memory (ROM) storage request for the frozen frame data is initiated. In response to the ROM storage request, the frozen frame data is stored using the ROM. At time t3, the storage status of the frozen frame data indicates that the data storage is complete, and the ROM storage request for the frozen frame data is stopped. It is confirmed that the ROM has stored the frozen frame data. The transmission is prohibited from hibernation until the storage status of the frozen frame data at time t3 indicates that the data storage is complete; hibernation is allowed at time t3. At time t4, a fault code clearing operation occurs, and the frozen frame data in the ROM is not lost. At time t5, a power-off operation occurs, and the frozen frame data in the ROM is not lost.
[0091] Next, the specific implementation of the data storage device based on vehicle faults in this application will be described in detail through examples.
[0092] See Figure 5 , Figure 5 This is a schematic diagram of a data storage device based on vehicle faults provided in an embodiment of this application. In this embodiment, the device may specifically include, for example, an acquisition unit 501, a storage unit 502, and a determination unit 503;
[0093] The acquisition unit 501 is used to acquire the freeze frame data corresponding to the target fault code if a target fault code is detected while the vehicle is in motion; the target fault code affects the vehicle's transmission.
[0094] Storage unit 502 is used to store frozen frame data through read-only memory when the vehicle's engine is completely turned off, and to obtain the storage status of frozen frame data.
[0095] The determining unit 503 is used to determine that the read-only memory has stored the frozen frame data if the storage status indicates that the frozen frame data storage is complete; the gearbox is prohibited from hibernation before the frozen frame data storage is complete.
[0096] In one optional embodiment of this application, the storage unit 502 is used for:
[0097] When the vehicle's engine is completely shut off, initiate a read-only memory storage request for the frozen frame data;
[0098] Based on the read-only memory storage request, the frozen frame data is stored in the read-only memory to obtain the storage status;
[0099] Determine unit 503, used for:
[0100] If the storage status indicates that the frozen frame data storage is complete, stop the read-only memory storage request and confirm that the read-only memory has stored the frozen frame data.
[0101] In one optional embodiment of this application, the complete shutdown of the vehicle's engine means that the engine completely stops rotating after the vehicle has stopped moving.
[0102] In one optional embodiment of this application, the determining unit 503 is further configured to:
[0103] After the frozen frame data is stored, if a fault code clearing operation is performed on the vehicle, ensure that the read-only memory retains the frozen frame data.
[0104] In one optional embodiment of this application, the determining unit 503 is further configured to:
[0105] After the frozen frame data is stored, if the vehicle experiences a power outage, the read-only memory is guaranteed to retain the frozen frame data.
[0106] In one optional embodiment of this application, the detection conditions for the target fault code include the vehicle's mileage being greater than a preset mileage and the engine start-up time after the vehicle is powered on being greater than a preset time period.
[0107] In one optional embodiment of this application, the determining unit 503 is further configured to:
[0108] If the total number of frozen frame data in the read-only memory is the preset number, it is determined that the read-only memory will no longer store new frozen frame data.
[0109] Through various implementation methods provided in this embodiment, the vehicle fault-based data storage device includes an acquisition unit, a storage unit, and a determination unit. When the acquisition unit detects a target fault code affecting the vehicle's transmission while the vehicle is in motion, it can acquire the frozen frame data corresponding to the target fault code. The storage unit waits until the vehicle's engine is completely shut off, then uses a read-only memory to store the frozen frame data, obtaining the storage status of the frozen frame data. The determination unit accurately determines that the read-only memory has stored the frozen frame data when the storage status indicates that the frozen frame data storage is complete. The transmission is prohibited from hibernation until the frozen frame data storage is complete. After acquiring the frozen frame data corresponding to the target fault code affecting the transmission while the vehicle is in motion, the device waits until the vehicle's engine is completely shut off, then stores the frozen frame data in the read-only memory until the storage status indicates that the frozen frame data storage is complete. This ensures that the read-only memory can promptly complete the storage of the frozen frame data corresponding to the target fault code, preventing the loss of frozen frame data during fault code clearing operations or power-off operations, so that subsequent vehicle fault analysis can be performed based on the frozen frame data in the read-only memory.
[0110] Furthermore, this application also provides a vehicle, which includes a processor and a memory:
[0111] The memory is used to store computer programs and to transfer the computer programs to the processor;
[0112] The processor is configured to execute the methods described in the above embodiments according to instructions in the computer program.
[0113] Furthermore, embodiments of this application also provide a computer-readable storage medium for storing a computer program, which, when executed by a processor, is used to implement the methods described in the above embodiments.
[0114] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to the method section.
[0115] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0116] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0117] The above description is merely a preferred embodiment of this application and is not intended to limit the application in any way. Although this application has disclosed preferred embodiments above, it is not intended to limit the application. Any person skilled in the art can make many possible variations and modifications to the technical solutions of this application using the methods and techniques disclosed above, or modify them into equivalent embodiments with equivalent changes, without departing from the scope of the technical solutions of this application. Therefore, any simple modifications, equivalent changes, and modifications made to the above embodiments based on the technical essence of this application without departing from the content of the technical solutions of this application shall still fall within the protection scope of the technical solutions of this application.
Claims
1. A data storage method based on vehicle faults, characterized in that, include: If a target fault code is detected while the vehicle is in motion, obtain the freeze frame data corresponding to the target fault code; The target fault code affects the vehicle's transmission; When the engine of the vehicle is completely turned off, the frozen frame data is stored in the read-only memory to obtain the storage status of the frozen frame data. If the storage status indicates that the frozen frame data storage is complete, it is determined that the read-only memory has stored the frozen frame data; the gearbox is prohibited from hibernation until the frozen frame data storage is complete.
2. The method according to claim 1, characterized in that, The step of storing the frozen frame data in a read-only memory when the vehicle's engine is completely turned off, and obtaining the storage status of the frozen frame data, includes: When the vehicle's engine is completely shut off, a read-only memory storage request for the frozen frame data is initiated. According to the read-only memory storage request, the frozen frame data is stored in the read-only memory to obtain the storage status; If the storage status indicates that the frozen frame data storage is complete, determining that the read-only memory has stored the frozen frame data includes: If the storage status indicates that the frozen frame data storage is complete, stop the read-only memory storage request and determine that the read-only memory has stored the frozen frame data.
3. The method according to claim 1, characterized in that, The engine of the vehicle is completely shut off when the engine stops completely after the vehicle has stopped moving.
4. The method according to claim 1, characterized in that, The method further includes: After the frozen frame data is stored, if the vehicle performs a fault code clearing operation, the read-only memory is determined to retain the frozen frame data.
5. The method of claim 1, wherein, The method further includes: After the frozen frame data is stored, if the vehicle experiences a power outage, the read-only memory is determined to retain the frozen frame data.
6. The method according to any one of claims 1 to 5, characterized in that, The detection conditions for the target fault code include the vehicle's mileage being greater than a preset mileage, and the engine's start-up time after the vehicle is powered on being greater than a preset time period.
7. The method according to any one of claims 1 to 5, characterized in that, The method further includes: If the total number of frozen frame data in the read-only memory is a preset number, it is determined that the read-only memory will no longer store new frozen frame data.
8. A data storage device based on vehicle faults, characterized in that, include: Acquisition unit, storage unit, and determination unit; The acquisition unit is used to acquire the frozen frame data corresponding to the target fault code if a target fault code is detected while the vehicle is in motion. The target fault code affects the vehicle's transmission; The storage unit is used to store the frozen frame data through a read-only memory when the engine of the vehicle is completely turned off, and to obtain the storage status of the frozen frame data. The determining unit is configured to determine that the read-only memory has stored the frozen frame data if the storage state indicates that the frozen frame data storage is complete; the gearbox is prohibited from hibernation before the frozen frame data storage is complete.
9. A vehicle, characterized in that, The vehicle includes a processor and a memory: The memory is used to store computer programs and to transfer the computer programs to the processor; The processor is configured to execute the method according to any one of claims 1-7 according to instructions in the computer program.
10. A computer-readable storage medium, characterized in that, The computer readable storage medium is configured to store a computer program, which, when executed by a processor, is configured to implement the method of any one of claims 1-7.