Freezing frame data processing method and terminal

By dynamically adjusting the frozen frame parameters and using server management, the problem of low utilization of frozen frame data is solved, and efficient storage of frozen frame data and the accuracy of fault analysis is improved.

CN120541702APending Publication Date: 2025-08-26GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510543055.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-27
Publication Date
2025-08-26

AI Technical Summary

Technical Problem

In the prior art, freezing frame data may not be a parameter required for analysis of the real cause of the failure, resulting in low utilization of the frozen frame data, and freezing frame data occupying the storage space of non-volatile memory, limiting the number and number of frozen frame data.

Method used

By obtaining the update information of the frozen frame parameter, dynamically adjusting the frozen frame parameters, determining the target frozen frame parameters based on the abnormal statistical characteristics, and storing them in volatile memory. The server uses the adaptive update and management of the frozen frame parameters to reduce the storage requirements of non-volatile memory.

Benefits of technology

The utilization rate of frozen frame data is improved, the number and number of frozen frame data is increased, the storage resource usage of non-volatile memory is reduced, and the accuracy and efficiency of fault analysis is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120541702A_ABST
    Figure CN120541702A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a frozen frame data processing method and a terminal, relates to the technical field of fault analysis, and can determine a target frozen frame parameter with a larger abnormal statistical feature in a plurality of preset frozen frame parameters through frozen frame parameter update information, so that when a target fault occurs, the parameter value of the target frozen frame parameter is stored, and the abnormal statistical feature of the target frozen frame parameter is determined. As the abnormal statistical feature corresponding to the target frozen frame parameter is larger, the possibility that the parameter value of the target frozen frame parameter is related to the target fault is larger, that is, the probability that the parameter value of the target frozen frame parameter is used in fault analysis is larger, and therefore the utilization rate of the frozen frame data can be increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of fault analysis, and more specifically, to a method and terminal for processing freeze frame data. Background Art

[0002] To better troubleshoot faults, the diagnostic protocol defines a service for obtaining a freeze frame. Currently, freeze frame data is defined by engineers based on experience during the design phase, and its length and content are fixed and cannot be adjusted.

[0003] However, the freeze frame data may not be the parameters required for fault real cause analysis, resulting in low utilization of the freeze frame data of the fault. Summary of the Invention

[0004] The embodiments of the present application provide a method and a terminal for processing frozen frame data, which can improve the utilization rate of frozen frame data.

[0005] In a first aspect, an embodiment of the present application provides a method for processing freeze frame data, applied to an electronic device, the method comprising:

[0006] Obtain freeze frame parameter update information, where the freeze frame parameter update information is used to indicate that the freeze frame parameter that needs to be recorded when a target fault occurs is updated from the current freeze frame parameter to the target freeze frame parameter, where the current freeze frame parameter is at least one of a plurality of preset freeze frame parameters corresponding to the target fault, and the target freeze frame parameter is a freeze frame parameter among the plurality of preset freeze frame parameters that meets preset conditions, where the preset conditions include that an abnormal statistical feature of an abnormal parameter value of the target freeze frame parameter is greater than a minimum abnormal statistical feature, the minimum abnormal statistical feature is a minimum value among the abnormal statistical features corresponding to each of the plurality of preset freeze frame parameters, and / or the abnormal statistical feature corresponding to the target freeze frame parameter is not less than a preset threshold; in response to a target fault occurring in the electronic device, store the parameter value of the target freeze frame parameter.

[0007] The technical solution of this embodiment obtains freeze frame parameter update information, where the freeze frame parameter update information is used to indicate that the freeze frame parameter to be recorded when a target fault occurs is updated from a current freeze frame parameter to a target freeze frame parameter. The current freeze frame parameter is at least one of a plurality of preset freeze frame parameters corresponding to the target fault, and the target freeze frame parameter is a freeze frame parameter among the plurality of preset freeze frame parameters that meets preset conditions. The preset conditions include: an abnormal statistical characteristic of an abnormal parameter value of the target freeze frame parameter being greater than a minimum abnormal statistical characteristic, where the minimum abnormal statistical characteristic is the minimum value among the abnormal statistical characteristics corresponding to the plurality of preset freeze frame parameters, and / or the abnormal statistical characteristic corresponding to the target freeze frame parameter being no less than a preset threshold. In other words, the target freeze frame parameter with the greater abnormal statistical characteristic among the plurality of preset freeze frame parameters can be determined based on the freeze frame parameter update information. Thus, when a target fault occurs, the parameter value of the target freeze frame parameter is stored. Since the abnormal statistical characteristic corresponding to the target freeze frame parameter is greater, the likelihood that the parameter value of the target freeze frame parameter is related to the target fault is greater. In other words, the parameter value of the target freeze frame parameter is more likely to be used in fault analysis, thereby improving the utilization of freeze frame data.

[0008] In a possible implementation, the electronic device includes a volatile memory and a non-volatile memory, and stores parameter values ​​of target freeze frame parameters, including:

[0009] The parameter value of the target freeze frame parameter is stored in a volatile memory; and an index table for indexing the parameter value of the target freeze frame parameter is stored in a non-volatile memory, wherein the index table includes index information for indicating a storage location of the parameter value of the target freeze frame parameter in the volatile memory.

[0010] The technical solution of this embodiment is to store the parameter values ​​of the target freeze frame parameters in a volatile memory; and store an index table for indexing the parameter values ​​of the target freeze frame parameters in a non-volatile memory, wherein the index table includes index information, and the index information is used to indicate the storage location of the parameter values ​​of the target freeze frame parameters in the volatile memory. In this way, the non-volatile memory stores less data, which helps to reduce the storage resources of the non-volatile memory.

[0011] In a possible implementation, obtaining freeze frame parameter update information includes:

[0012] Receiving freeze frame parameter update information from a server, where the freeze frame parameter update information is determined based on abnormal statistical characteristics corresponding to each of a plurality of preset freeze frame parameters; the method further includes: sending parameter values ​​of target freeze frame parameters to the server, so that the server updates the abnormal statistical characteristics corresponding to the target freeze frame parameters corresponding to the target fault based on the parameter values ​​of the target freeze frame parameters.

[0013] In this embodiment, a server obtains freeze frame parameter update information and transmits the freeze frame parameter update information to an electronic device, thereby causing the electronic device to store the target freeze frame parameter value in response to the occurrence of a target fault. This allows the freeze frame parameters of different electronic devices to be determined by the server, thereby increasing the scope of adaptive freeze frame parameter adjustment. Furthermore, the abnormal statistical characteristics corresponding to each of multiple preset freeze frame parameters can be dynamically adjusted, allowing the stored freeze frame parameters to dynamically change when a target fault occurs, thereby improving the utilization of freeze frame data storage.

[0014] In a possible implementation, obtaining freeze frame parameter update information includes:

[0015] Receiving freeze frame parameter update information from a server, the freeze frame parameter update information including a target freeze frame parameter identifier of a target freeze frame parameter, where the target freeze frame parameter is determined based on abnormal statistical features corresponding to each of a plurality of preset freeze frame parameters; and storing a parameter value of the target freeze frame parameter, including: associating and storing the target freeze frame parameter identifier and the parameter value of the target freeze frame parameter in the freeze frame parameter update information.

[0016] In this embodiment, the freeze frame parameter update information includes a target freeze frame parameter identifier for the target freeze frame parameter. This reduces the amount of data carried in the instruction information, thereby reducing the transmission resources required between the server and the electronic device. Furthermore, by associating and storing the target freeze frame parameter identifier in the freeze frame parameter update information with the target freeze frame parameter value, the electronic device can determine that the target freeze frame parameter associated with each parameter value represents the target freeze frame parameter corresponding to the determined parameter value, thereby reducing the number of stored parameter values.

[0017] In one possible implementation, the electronic device stores a local freeze frame parameter library corresponding to a target fault, the local freeze frame parameter library recording current freeze frame parameter identifiers of respective current freeze frame parameters, and associates and stores the target freeze frame parameter identifier and the parameter value of the target freeze frame parameter in the freeze frame parameter update information, including:

[0018] The current frozen frame parameter identifier in the local frozen frame parameter library is replaced with the target frozen frame parameter identifier in the freeze frame parameter update information to obtain an updated local frozen frame parameter library; and the parameter value of the target frozen frame parameter is associated with the target frozen frame parameter identifier in the updated local frozen frame parameter library and stored.

[0019] In this embodiment, the freeze frame parameter update information includes a target freeze frame parameter identifier for the target freeze frame parameter. This reduces the amount of data carried in the instruction information, thereby reducing the transmission resources required between the server and the electronic device. Furthermore, by associating and storing the target freeze frame parameter identifier in the freeze frame parameter update information with the target freeze frame parameter value, the electronic device can determine that the target freeze frame parameter associated with each parameter value represents the target freeze frame parameter corresponding to the determined parameter value, thereby reducing the number of stored parameter values.

[0020] In a second aspect, an embodiment of the present application proposes a method for processing freeze frame data, which is applied to a server. The method includes:

[0021] Based on the abnormal statistical characteristics corresponding to multiple preset freeze frame parameters corresponding to the target fault, freeze frame parameter update information is determined, the freeze frame parameter update information is used to indicate that the freeze frame parameter that needs to be recorded when the target fault occurs is updated from the current freeze frame parameter to the target freeze frame parameter, the current freeze frame parameter is at least one of the multiple preset freeze frame parameters corresponding to the target fault, and the target freeze frame parameter is a freeze frame parameter that meets preset conditions among the multiple preset freeze frame parameters, the preset conditions include that the abnormal statistical characteristic of the parameter value of the target freeze frame parameter is greater than the minimum abnormal statistical characteristic, the minimum abnormal statistical characteristic is the minimum value of the abnormal statistical characteristics corresponding to the multiple preset freeze frame parameters, and / or the abnormal statistical characteristic corresponding to the target freeze frame parameter is not less than a preset threshold; the freeze frame parameter update information is sent to the electronic device so that the electronic device stores the parameter value of the target freeze frame parameter in response to the occurrence of the target fault.

[0022] In this embodiment, a server obtains freeze frame parameter update information and transmits the freeze frame parameter update information to an electronic device, thereby causing the electronic device to store the target freeze frame parameter value in response to the occurrence of a target fault. This allows the freeze frame parameters of different electronic devices to be determined by the server, thereby increasing the scope of adaptive freeze frame parameter adjustment. Furthermore, the abnormal statistical characteristics corresponding to each of multiple preset freeze frame parameters can be dynamically adjusted, allowing the stored freeze frame parameters to dynamically change when a target fault occurs, thereby improving the utilization of freeze frame data storage.

[0023] In one possible implementation, the method further includes:

[0024] Obtain parameter values ​​of freeze frame parameters to be updated, where the freeze frame parameters to be updated include target freeze frame parameters or maintenance freeze frame parameters, where the parameter values ​​of the target freeze frame parameters are sent by the electronic device to the server, and where the parameter values ​​of the maintenance freeze frame parameters are parameter values ​​of preset freeze frame parameters in maintenance information, where the maintenance information includes parameter values ​​of preset freeze frame parameters collected during the process of repairing the target fault; and update abnormal statistical features corresponding to the freeze frame parameters to be updated based on the parameter values ​​of the freeze frame parameters to be updated.

[0025] In this embodiment, the server can obtain parameter values ​​of the freeze frame parameters to be updated, where the freeze frame parameters to be updated include target freeze frame parameters or maintenance freeze frame parameters. The parameter values ​​of the target freeze frame parameters are sent by the electronic device to the server, and the parameter values ​​of the maintenance freeze frame parameters are parameter values ​​of preset freeze frame parameters in the maintenance information. The maintenance information includes parameter values ​​of the preset freeze frame parameters collected during the process of repairing the target fault. Then, based on the parameter values ​​of the freeze frame parameters to be updated, the abnormal statistical features corresponding to the freeze frame parameters to be updated are updated. In this way, the abnormal statistical features corresponding to each of the multiple preset freeze frame parameters can be dynamically adjusted, so that the freeze frame parameters stored when the target fault occurs can change dynamically, which is conducive to improving the utilization rate of the freeze frame data storage.

[0026] In a possible implementation, updating the abnormal statistical feature corresponding to the to-be-updated frozen frame parameter based on the parameter value of the to-be-updated frozen frame parameter includes:

[0027] If the parameter value of the frozen frame parameter to be updated is determined to be abnormal, the abnormal statistical feature corresponding to the frozen frame parameter to be updated is increased; and / or if the parameter value of the frozen frame parameter to be updated is determined to be normal, the abnormal statistical feature corresponding to the frozen frame parameter to be updated is decreased.

[0028] This embodiment increases the abnormal statistical feature corresponding to the to-be-updated frozen frame parameter if the parameter value of the to-be-updated frozen frame parameter is determined to be abnormal; or decreases the abnormal statistical feature corresponding to the to-be-updated frozen frame parameter if the parameter value of the to-be-updated frozen frame parameter is determined to be normal. This improves the efficiency of updating the abnormal statistical feature and reduces the resources required for updating the abnormal statistical feature. Furthermore, this embodiment increases the abnormal statistical feature corresponding to the to-be-updated frozen frame parameter if the parameter value of the to-be-updated frozen frame parameter is determined to be abnormal; or decreases the abnormal statistical feature corresponding to the to-be-updated frozen frame parameter if the parameter value of the to-be-updated frozen frame parameter is determined to be normal. This allows for faster identification of frozen frame parameters with more abnormal statistical features, thereby improving the utilization of frozen frame data.

[0029] In a possible implementation, obtaining freeze frame parameter update information includes:

[0030] Obtain a server freeze frame parameter library corresponding to a target fault. The server freeze frame parameter library records preset freeze frame parameter identifiers and corresponding flag bits of multiple preset freeze frame parameters. The flag bits are determined based on abnormal statistical characteristics corresponding to each preset freeze frame parameter. The flag bits include a first flag bit or a second flag bit. The first flag bit indicates that the abnormal statistical characteristics corresponding to the preset freeze frame parameter corresponding to the preset freeze frame parameter identifier are less than a preset threshold value. The second flag bit indicates that the abnormal statistical characteristics corresponding to the preset freeze frame parameter corresponding to the preset freeze frame parameter identifier are not less than the preset threshold value. Obtain freeze frame parameter update information based on the server freeze frame parameter library. The freeze frame parameter update information includes a target freeze frame parameter identifier of the target freeze frame parameter. The target freeze frame parameter identifier is a preset freeze frame parameter identifier in the server freeze frame parameter library, and the corresponding flag bit is the second flag bit.

[0031] In this embodiment, the server carries the preset freeze frame parameter identifier of the target freeze frame parameter, whose corresponding abnormal statistical feature is not less than the preset threshold, in the freeze frame parameter update information. After the electronic device obtains the freeze frame parameter update information, it can know the target freeze frame parameters that need to be stored when the target failure occurs. Since the freeze frame parameter update information includes the identifier of the target freeze frame parameters that need to be stored, this can reduce the amount of data carried by the indication information, thereby reducing the transmission resources required between the server and the electronic device.

[0032] In a third aspect, an embodiment of the present application provides a freeze frame data processing device, which is applied to an electronic device, and includes:

[0033] A first acquisition module is configured to acquire freeze frame parameter update information, where the freeze frame parameter update information is configured to indicate that the freeze frame parameter to be recorded when a target fault occurs is updated from a current freeze frame parameter to a target freeze frame parameter, where the current freeze frame parameter is at least one of a plurality of preset freeze frame parameters corresponding to the target fault, and the target freeze frame parameter is a freeze frame parameter among the plurality of preset freeze frame parameters that meets preset conditions, where the preset conditions include that an abnormal statistical feature of an abnormal parameter value of the target freeze frame parameter is greater than a minimum abnormal statistical feature, the minimum abnormal statistical feature is a minimum value among the abnormal statistical features corresponding to the plurality of preset freeze frame parameters, and / or that the abnormal statistical feature corresponding to the target freeze frame parameter is not less than a preset threshold; and a response module is configured to store the parameter value of the target freeze frame parameter in response to a target fault occurring in the electronic device.

[0034] In a fourth aspect, an embodiment of the present application provides a freeze frame data processing device, which is applied to a server and includes:

[0035] A second acquisition module is configured to determine freeze frame parameter update information based on the abnormal statistical characteristics corresponding to each of multiple preset freeze frame parameters corresponding to the target fault, the freeze frame parameter update information being used to indicate that the freeze frame parameter that needs to be recorded when the target fault occurs is updated from the current freeze frame parameter to the target freeze frame parameter, the current freeze frame parameter being at least one of the multiple preset freeze frame parameters corresponding to the target fault, the target freeze frame parameter being a freeze frame parameter among the multiple preset freeze frame parameters that meets preset conditions, the preset conditions including that the abnormal statistical characteristic of the parameter value of the target freeze frame parameter is greater than the minimum abnormal statistical characteristic, the minimum abnormal statistical characteristic being the minimum value among the abnormal statistical characteristics corresponding to each of the multiple preset freeze frame parameters, and / or the abnormal statistical characteristic corresponding to the target freeze frame parameter is not less than a preset threshold; a sending module is configured to send the freeze frame parameter update information to the electronic device, so that the electronic device stores the parameter value of the target freeze frame parameter in response to the occurrence of the target fault.

[0036] In a fifth aspect, an embodiment of the present application provides a terminal comprising a processor and a memory, wherein: the memory is used to store computer programs; and the processor is used to execute the programs stored in the memory to implement the above method.

[0037] In a sixth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the above method is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 A schematic diagram of a system framework provided in an embodiment of the present application;

[0039] Figure 2 A flowchart of a method for processing freeze frame data provided in an embodiment of the present application;

[0040] Figure 3 A schematic diagram of a freeze frame data storage process provided in an embodiment of the present application;

[0041] Figure 4 A schematic diagram of a freeze frame data reading process provided in an embodiment of the present application;

[0042] Figure 5 A flowchart of another method for processing freeze frame data provided in an embodiment of the present application;

[0043] Figure 6 A schematic diagram of a process for adaptively updating vehicle freeze frame parameters provided in an embodiment of the present application;

[0044] Figure 7 A schematic diagram of updating a fault diagnosis model after adaptive updating of freeze frame parameters provided in an embodiment of the present application;

[0045] Figure 8 A schematic structural diagram of a freeze frame data processing device provided in an embodiment of the present application;

[0046] Figure 9 A schematic structural diagram of another apparatus for processing freeze frame data provided in an embodiment of the present application;

[0047] Figure 10 A structural diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] In order to make the technical problems, technical solutions and beneficial effects solved by this application more clearly understood, this application is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0049] To better troubleshoot faults, the ISO 14229 Unified Diagnostic Services (UDS) diagnostic protocol defines a service for retrieving fault freeze frames. This service, called sub-function 04 of service 19, can be used to retrieve freeze frame data. Currently, freeze frame data is defined by engineers during the design phase based on experience, with fixed length and content. However, freeze frame data may not necessarily reflect the parameters needed to analyze the true cause of a vehicle fault. This results in freeze frame parameters becoming useless data and wasting ECU storage space. Furthermore, freeze frame data is typically stored in the vehicle-side controller's electrically erasable programmable read-only memory (EEPROM). EEPROM is a non-volatile memory with relatively small storage capacity and high cost. Therefore, freeze frame data cannot be defined too long, and the number of freeze frames is limited, making it difficult to accurately analyze the fault cause.

[0050] For example, when a vehicle's electronic control unit (ECU) detects a system problem, it stores a fault code and freezes detailed data at the time of the fault. This process is called "freeze frame data," a snapshot of the vehicle's fault. This driving snapshot, or fault freeze frame data, has fixed content and length and cannot be adaptively adjusted based on the actual cause of the vehicle fault. Freeze frame data can be used to assist in analyzing the various vehicle states at the time of the fault. Currently, the industry generally uses the 1904 function defined in the UDS protocol to obtain freeze frame data. Because freeze frame data must be stored for a long time until an external device (such as a test device) requests it to be cleared, to implement this function, freeze frame data is typically stored in the ECU's non-volatile EEPROM memory. However, EEROM is expensive and has limited storage space, preventing the definition of excessive information. Furthermore, freeze frame data is defined by engineers during the design phase based on experience, and its length and content are fixed and cannot be adjusted. However, freeze frame data may not necessarily be the parameters required for analyzing the true cause of the vehicle fault, resulting in vehicle fault freeze frame parameters becoming useless data and wasting ECU storage space.

[0051] As shown in Table 1, Table 1 represents a vehicle fault freeze frame data in the related art.

[0052] Table 1

[0053]

[0054] As shown in Table 1, the freeze-frame data for vehicle faults is based on four parameters established during the design phase: vehicle speed, engine speed, power supply, and key position. These parameters are essentially fixed and stored in non-volatile memory each time a fault occurs. Regardless of whether these parameters are helpful for troubleshooting, this information is permanently stored. If these parameters need to be updated after vehicle production, changes must be made to the design documentation, the diagnostic parameter list must be updated, and testing must be redeveloped, resulting in significant impact. DID stands for Data Identifier, which can be, for example, the freeze-frame parameter identifier for a freeze-frame parameter.

[0055] In light of this, embodiments of the present application propose a freeze frame data processing method and terminal that can adaptively update the frozen frame parameters stored during a fault, ensuring that the frozen frame parameters increasingly align with the parameters required for fault cause analysis, becoming truly useful data and thus improving the utilization of fault frame data. This not only increases the volume and frequency of frozen frame data, but also allows the frozen frame parameters to be used to validate intelligent diagnostic models. By linking maintenance cases with frozen frame parameters and adaptively improving the frozen frame parameters, the frozen frame parameters are more suitable for fault code troubleshooting.

[0056] First, the system framework of the embodiment of the present application is exemplarily described.

[0057] See also Figure 1 , Figure 1 This is a schematic diagram of a system framework provided by an embodiment of the present application. Figure 1 The system framework shown may include an electronic device 102 and a server 104. The electronic device 102 communicates with the server 104 via a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104, or may be placed on the cloud or other network servers. The electronic device 102 may be, but is not limited to, various vehicles (also referred to as vehicle terminals), personal computers, laptops, smartphones, tablet computers, IoT devices, and portable wearable devices. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.

[0058] In this embodiment, the server 104 may be a cloud server, which may also be referred to as a cloud server.

[0059] Next, a method for processing frame data provided in an embodiment of the application is described.

[0060] See also Figure 2 , Figure 2 This is a flow chart of a method for processing freeze frame data provided in an embodiment of the present application. The method of this embodiment is exemplified by its application to electronic equipment. Figure 2 The method shown may include:

[0061] S210. Obtain freeze frame parameter update information, where the freeze frame parameter update information is used to indicate that the freeze frame parameter that needs to be recorded when a target fault occurs is updated from the current freeze frame parameter to the target freeze frame parameter, where the current freeze frame parameter is at least one of a plurality of preset freeze frame parameters corresponding to the target fault, and the target freeze frame parameter is a freeze frame parameter among the plurality of preset freeze frame parameters that meets preset conditions, where the preset conditions include: an abnormal statistical feature of an abnormal parameter value of the target freeze frame parameter being greater than a minimum abnormal statistical feature, the minimum abnormal statistical feature being a minimum value among the abnormal statistical features corresponding to the plurality of preset freeze frame parameters, and / or the abnormal statistical feature corresponding to the target freeze frame parameter being not less than a preset threshold.

[0062] The target fault can be a predefined fault, or one of multiple predefined faults, without limitation. The preset freeze frame parameters can refer to predefined freeze frame parameters, and multiple preset freeze frame parameters can be set as needed. For example, the multiple preset freeze frame parameters can include, but are not limited to, vehicle speed, engine speed, power supply voltage, battery charge, and key position, without limitation. The current freeze frame parameters can refer to the preset freeze frame parameters stored when the target fault occurs before freeze frame parameter update information is obtained. That is, before the update information is obtained, if the target fault occurs, the parameter value of the current freeze frame parameters is stored. After the update information is obtained, if the target fault occurs, the parameter value of the target freeze frame parameters is stored. The current freeze frame parameters are at least one of the multiple preset freeze frame parameters corresponding to the target fault. That is, the current freeze frame parameters can be some or all of the multiple preset freeze frame parameters. Optionally, during initial setting, the current freeze frame parameters can be all of the multiple preset freeze frame parameters. The preset conditions can be predefined conditions. In this embodiment, the preset conditions are used to filter out the target freeze frame parameters with a high correlation with the target fault from the multiple preset freeze frame parameters. The selected target freeze frame parameters are related to the abnormal statistical characteristics corresponding to the plurality of preset freeze frame parameters, which are not limited here. In this embodiment, the preset conditions include at least one of the following:

[0063] Condition 1: The abnormal statistical feature of the abnormal parameter value of the target freeze frame parameter is greater than the minimum abnormal statistical feature, and the minimum abnormal statistical feature is the minimum value of the abnormal statistical features corresponding to multiple preset freeze frame parameters.

[0064] For example, assuming that multiple preset freeze frame parameters include parameter 1, parameter 2, parameter 3, and parameter 4, where the abnormal statistical characteristic corresponding to parameter 4 is the smallest, and the abnormal statistical characteristics corresponding to parameters 1, 2, and 3 are all greater than the abnormal statistical characteristic corresponding to parameter 4, then at least a portion of parameters 1, 2, and 3 can be used as target freeze frame parameters. In other words, at least a portion of the preset freeze frame parameters whose corresponding abnormal statistical characteristics are greater than the smallest abnormal statistical characteristic can be used as the target freeze frame parameters. Alternatively, a portion of the multiple preset freeze frame parameters can be selected as the target freeze frame parameters in order of the largest abnormal statistical characteristics, that is, the preset freeze frame parameters with the highest abnormal statistical characteristics can be selected as the target freeze frame parameters.

[0065] Condition 2: The abnormal statistical characteristics corresponding to the target freeze frame parameters are not less than the preset threshold.

[0066] For example, parameter 1, parameter 2, parameter 3 and parameter 4, where if the abnormal statistical features corresponding to parameter 1, parameter 2, and parameter 3 are not less than a preset threshold, and the abnormal statistical features corresponding to parameter 4 are less than the preset threshold, then at least part of parameter 1, parameter 2, and parameter 3 can be used as target freeze frame parameters.

[0067] The parameter value may represent the numerical value or state of the target freeze frame parameter. For example, if the target freeze frame parameter is the battery level, the parameter value of the battery level may represent the battery level. For example, if the target freeze frame parameter is the engine status, the parameter value of the engine status may indicate whether the engine is operating normally. An abnormality in the parameter value of a freeze frame parameter may indicate that the parameter value exceeds a set range of values ​​corresponding to the freeze frame parameter, or that the parameter value indicates that the freeze frame parameter is abnormal. An abnormality statistical feature may be a feature obtained by statistically analyzing data. In this embodiment, the abnormality statistical feature may be a feature obtained by statistically analyzing abnormalities in the parameter values ​​of the freeze frame parameter, indicating the likelihood that the current parameter value of the freeze frame parameter will continue to be abnormal. In other words, the greater the abnormality statistical feature, the greater the likelihood of further abnormalities. Exemplarily, the abnormality statistical feature may include, but is not limited to, a cumulative number of abnormalities or a frequency of abnormalities. If the abnormality statistical feature includes a cumulative number of abnormalities, the cumulative number of abnormalities in the parameter value of the target freeze frame parameter may be greater than the cumulative number of abnormalities in the parameter values ​​of other freeze frame parameters, or the cumulative number of abnormalities in the parameter value of the target freeze frame parameter may be greater than a threshold number of abnormalities.

[0068] In this embodiment, the freeze frame parameter update information may be determined based on abnormal statistical features of each of a plurality of preset freeze frame parameters recorded by the electronic device.

[0069] S220 : In response to a target failure occurring in the electronic device, store a parameter value of a target freeze frame parameter.

[0070] In this embodiment, the vehicle may statistically analyze the abnormal statistical characteristics of each of the multiple preset freeze frame parameters corresponding to the target fault. Then, when the target fault occurs, the abnormal statistical characteristics of each of the multiple preset freeze frame parameters are used to determine a parameter from the multiple preset freeze frame parameters as the target freeze frame parameter, so that when the target fault occurs, the parameter value of the target freeze frame parameter is stored.

[0071] The technical solution of this embodiment obtains freeze frame parameter update information, where the freeze frame parameter update information is used to indicate that the freeze frame parameter to be recorded when a target fault occurs is updated from a current freeze frame parameter to a target freeze frame parameter. The current freeze frame parameter is at least one of a plurality of preset freeze frame parameters corresponding to the target fault, and the target freeze frame parameter is a freeze frame parameter among the plurality of preset freeze frame parameters that meets preset conditions. The preset conditions include: an abnormal statistical characteristic of an abnormal parameter value of the target freeze frame parameter being greater than a minimum abnormal statistical characteristic, where the minimum abnormal statistical characteristic is the minimum value among the abnormal statistical characteristics corresponding to the plurality of preset freeze frame parameters, and / or the abnormal statistical characteristic corresponding to the target freeze frame parameter being no less than a preset threshold. In other words, the target freeze frame parameter with the greater abnormal statistical characteristic among the plurality of preset freeze frame parameters can be determined based on the freeze frame parameter update information. Thus, when a target fault occurs, the parameter value of the target freeze frame parameter is stored. Since the abnormal statistical characteristic corresponding to the target freeze frame parameter is greater, the likelihood that the parameter value of the target freeze frame parameter is related to the target fault is greater. In other words, the parameter value of the target freeze frame parameter is more likely to be used in fault analysis, thereby improving the utilization of freeze frame data.

[0072] It should be noted that in this embodiment, if the target fault is a predefined fault, then when storing the parameter value of the target freeze frame parameter, it can be determined that the parameter value of the target freeze frame parameter corresponds to the target fault. If the target fault is one of multiple predefined faults, the fault code of the target fault must also be stored to determine which fault the parameter value of the target freeze frame parameter corresponds to.

[0073] In one possible implementation, the electronic device includes a volatile memory and a non-volatile memory, wherein the volatile memory, also known as a random access memory (RAM), stores parameter values ​​of target freeze frame parameters, including:

[0074] The parameter value of the target freeze frame parameter is stored in a volatile memory; and an index table for indexing the parameter value of the target freeze frame parameter is stored in a non-volatile memory, wherein the index table includes index information indicating the storage location of the parameter value of the target freeze frame parameter in the volatile memory. Optionally, the index table may also include a time when the target fault occurred. Optionally, the index table may also include a target freeze frame parameter identifier of the target freeze frame parameter. Optionally, the index table may also include a fault code of the fault.

[0075] In this embodiment, the index table includes index information. The index table can be used to determine the storage location of the corresponding fault and the target freeze frame parameter value. Furthermore, by storing the target fault code, the corresponding fault can be determined. Furthermore, by recording the target fault occurrence time, the target fault occurrence time can also be determined, facilitating fault analysis. Furthermore, by recording the target freeze frame parameter identifier, the target freeze frame parameter recorded at the time of the fault can be determined, facilitating confirmation of whether the target freeze frame parameter value has been lost.

[0076] The technical solution of this embodiment is to store the parameter values ​​of the target freeze frame parameters in a volatile memory; and store an index table for indexing the parameter values ​​of the target freeze frame parameters in a non-volatile memory, wherein the index table includes index information, and the index information is used to indicate the storage location of the parameter values ​​of the target freeze frame parameters in the volatile memory. In this way, the non-volatile memory stores less data, which helps to reduce the storage resources of the non-volatile memory.

[0077] It should be noted that the parameter value of the target freeze frame parameter can be stored in RAM for a long time until it is read by an external device, but this poses a risk of losing the parameter value of the target freeze frame parameter. Therefore, in one possible implementation, the parameter value of the target freeze frame parameter can also be stored on a server, thereby freeing up RAM resources of the electronic device and reducing the risk of loss of the parameter value of the target freeze frame parameter stored in RAM. It should be understood that after the parameter value of the target freeze frame parameter is stored on the server, it can also continue to be stored in the RAM of the electronic device so that it can be transmitted promptly when requested by an external device.

[0078] Accordingly, in this embodiment, when the external device needs to read the freeze frame data, it can read it from the RAM of the electronic device or from the server.

[0079] See also Figure 3 , Figure 3 A schematic diagram of a storage process for freeze frame data provided in an embodiment of the present application.

[0080] like Figure 3 The stored procedures shown may include:

[0081] S310: Power on the electronic control unit.

[0082] S320. Monitor the operation status of electronic equipment in real time.

[0083] S330: Store fault codes and freeze frame data.

[0084] In this step, S330 may include S331 , storing the index table in a non-volatile memory, and S332 , storing the freeze frame data in a volatile memory.

[0085] The freeze frame data of this embodiment may include parameter values ​​of target freeze frame parameters.

[0086] S340 , obtaining a fault code from an index table stored in a non-volatile memory, obtaining freeze frame data from a volatile memory based on index information in the index table, and sending the fault code and freeze frame data to a server.

[0087] Among them, S310-S340 can be executed by an electronic device.

[0088] S350: The server stores the fault code and freeze frame data.

[0089] In this embodiment, by storing freeze frame data in the server, RAM resources of the electronic device are freed up and the risk of freeze frame data loss in RAM is reduced. In another possible implementation, the server may determine the target freeze frame parameter based on the abnormal statistical characteristics of each of multiple preset freeze frame parameters recorded by the server. The server may also update the abnormal statistical characteristics of the target freeze frame parameter value based on the freeze frame data reported by the electronic device.

[0090] In this embodiment, the target fault may be one of multiple predefined faults.

[0091] In another possible implementation, if the target fault is a predefined fault, it is not necessary to send a fault code.

[0092] See also Figure 4 , Figure 4 A schematic diagram of a freeze frame data reading process provided in an embodiment of the present application.

[0093] like Figure 4 The read flow shown may include:

[0094] S410: The external device sends a request message to the electronic device, where the request message is used to request to read the freeze frame data.

[0095] S420: The electronic device requests the server to download the freeze frame data.

[0096] In this embodiment, if the freeze frame data in the RAM of the electronic device is still saved, the electronic device can read the freeze frame data from the RAM and return it to the external device. If the freeze frame data in the RAM of the electronic device has been lost, the server can be requested to download the freeze frame data.

[0097] S430: The server sends the freeze frame data to the electronic device.

[0098] S440: The electronic device sends the acquired freeze frame data to an external device.

[0099] In this embodiment, if the freeze frame data is still stored in the electronic device's RAM, the electronic device can determine the storage location of the freeze frame data in the RAM based on the index information in the index table. The electronic device can then read the freeze frame data from the RAM and return it to the external device. If the freeze frame data in the electronic device's RAM is lost, the electronic device can request a download of the freeze frame data from the server. This ensures both efficient and successful freeze frame data reading. Optionally, the electronic device can also send a fault code to the external device.

[0100] In the above embodiment, the target freeze frame parameter is determined based on the abnormal statistical characteristics of each of a plurality of preset freeze frame parameters recorded by the electronic device for exemplary description.

[0101] In one possible implementation, the server may record the abnormal statistical characteristics of each of the multiple preset freeze frame parameters, and determine the target freeze frame parameter based on the abnormal statistical characteristics of each of the multiple preset freeze frame parameters recorded by the server, and notify the electronic device, so that the electronic device stores the parameter value of the target freeze frame parameter in response to the occurrence of a target failure.

[0102] See also Figure 5 , Figure 5 This is a flow chart of another method for processing freeze frame data provided by an embodiment of the present application. The method of this embodiment is exemplified by its application to an electronic device and a server. It should be noted that the electronic device of this embodiment can be a specific electronic device, or all electronic devices of a certain type, or all electronic devices, without limitation. Figure 5 The method shown may include:

[0103] S510. The server determines freeze frame parameter update information based on abnormal statistical features corresponding to multiple preset freeze frame parameters corresponding to the target fault. The freeze frame parameter update information is used to indicate that the freeze frame parameters to be recorded when the target fault occurs are updated from current freeze frame parameters to target freeze frame parameters.

[0104] In this embodiment, the abnormal statistical characteristics of each of the plurality of preset freeze frame parameters can be recorded in the server, and the server can determine the target freeze frame parameters based on the abnormal statistical characteristics of each of the plurality of preset freeze frame parameters.

[0105] S520: The server sends freeze frame parameter update information to the electronic device.

[0106] In this embodiment, the server sends freeze frame parameter update information to the electronic device, and the electronic device can receive the freeze frame parameter update information from the electronic device, thereby notifying the electronic device of the target freeze frame parameters that need to be recorded when a target fault occurs.

[0107] S530: In response to the occurrence of the target failure, the electronic device stores a parameter value of the target freeze frame parameter.

[0108] Among them, S530 can refer to the description of S220 and will not be repeated here.

[0109] In this embodiment, freeze frame parameter update information is obtained through a server and sent to an electronic device, so that the electronic device stores the parameter value of the target freeze frame parameter in response to the occurrence of a target fault. In this way, the determination of the freeze frame parameters of different electronic devices can be achieved through the server, thereby improving the scope of application of the adaptive adjustment of the freeze frame parameters.

[0110] In one possible implementation, after storing the parameter value of the target freeze frame parameter, the electronic device may send the parameter value of the target freeze frame parameter to the server. Accordingly, the server updates the abnormal statistical features corresponding to the target freeze frame parameter corresponding to the target fault based on the parameter value of the target freeze frame parameter.

[0111] In another possible implementation, the server may also obtain parameter values ​​of maintenance freeze frame parameters, where the parameter values ​​of maintenance freeze frame parameters are parameter values ​​of preset freeze frame parameters in maintenance information, where maintenance information includes parameter values ​​of preset freeze frame parameters collected during the process of repairing the target fault, and then based on the parameter values ​​of the maintenance freeze frame parameters, the abnormal statistical features corresponding to the maintenance freeze frame parameters corresponding to the target fault are updated.

[0112] It should be noted that the server may obtain at least one of the parameter value of the target frozen frame parameter and the parameter value of the maintenance frozen frame parameter to update the abnormal statistical features corresponding to each of the plurality of preset frozen frame parameters.

[0113] In general, in an embodiment of the present application, the server can obtain the parameter value of the freeze frame parameter to be updated, and the freeze frame parameter to be updated includes the target freeze frame parameter or the maintenance freeze frame parameter. The parameter value of the target freeze frame parameter is sent by the electronic device to the server, and the parameter value of the maintenance freeze frame parameter is the parameter value of the preset freeze frame parameter in the maintenance information. The maintenance information includes the parameter value of the preset freeze frame parameter collected during the process of repairing the target fault; then, based on the parameter value of the freeze frame parameter to be updated, the abnormal statistical characteristics corresponding to the freeze frame parameter to be updated are updated.

[0114] In this embodiment, the server can obtain parameter values ​​of the freeze frame parameters to be updated, where the freeze frame parameters to be updated include target freeze frame parameters or maintenance freeze frame parameters. The parameter values ​​of the target freeze frame parameters are sent by the electronic device to the server, and the parameter values ​​of the maintenance freeze frame parameters are parameter values ​​of preset freeze frame parameters in the maintenance information. The maintenance information includes parameter values ​​of the preset freeze frame parameters collected during the process of repairing the target fault. Then, based on the parameter values ​​of the freeze frame parameters to be updated, the abnormal statistical features corresponding to the freeze frame parameters to be updated are updated. In this way, the abnormal statistical features corresponding to each of the multiple preset freeze frame parameters can be dynamically adjusted, so that the freeze frame parameters stored when the target fault occurs can change dynamically, which is conducive to improving the utilization rate of the freeze frame data storage.

[0115] In a possible implementation, the server updates the abnormal statistical feature corresponding to the to-be-updated frozen frame parameter based on the parameter value of the to-be-updated frozen frame parameter, including:

[0116] If the parameter value of the frozen frame parameter to be updated is determined to be abnormal, the abnormal statistical feature corresponding to the frozen frame parameter to be updated is increased; and / or if the parameter value of the frozen frame parameter to be updated is determined to be normal, the abnormal statistical feature corresponding to the frozen frame parameter to be updated is decreased.

[0117] In this embodiment, increasing the abnormal statistical feature corresponding to the freeze frame parameter to be updated indicates that the abnormal statistical feature after the update is greater than the abnormal statistical feature before the update. Decreasing the abnormal statistical feature corresponding to the freeze frame parameter to be updated indicates that the abnormal statistical feature after the update is less than the abnormal statistical feature before the update.

[0118] This embodiment increases the abnormal statistical feature corresponding to the to-be-updated frozen frame parameter if it is determined that the parameter value of the to-be-updated frozen frame parameter is abnormal; or decreases the abnormal statistical feature corresponding to the to-be-updated frozen frame parameter if it is determined that the parameter value of the to-be-updated frozen frame parameter is normal. This improves the efficiency of updating the abnormal statistical feature and reduces the resources required for updating the abnormal statistical feature.

[0119] In addition, this embodiment increases the abnormal statistical characteristics corresponding to the freeze frame parameter to be updated if it is determined that the parameter value of the freeze frame parameter to be updated is abnormal; and decreases the abnormal statistical characteristics corresponding to the freeze frame parameter to be updated if it is determined that the parameter value of the freeze frame parameter to be updated is normal. In this way, freeze frame parameters with more abnormal statistical characteristics can be distinguished more quickly, which is beneficial to improving the utilization rate of freeze frame data.

[0120] The following description will be made by taking the target freeze frame parameter as the target freeze frame parameter or the maintenance freeze frame parameter as an example.

[0121] First, the freeze frame parameters to be updated are taken as target freeze frame parameters as an example for description.

[0122] If it is determined that the parameter value of the target frozen frame parameter is abnormal, the abnormal statistical feature corresponding to the target frozen frame parameter is increased by a first amplitude; and / or if it is determined that the parameter value of the target frozen frame parameter is normal, the abnormal statistical feature corresponding to the target frozen frame parameter is decreased by the first amplitude.

[0123] The following description is made by taking the freeze frame parameter to be updated as a maintenance freeze frame parameter as an example.

[0124] If it is determined that the parameter value of the maintenance freeze frame parameter is abnormal, the abnormal statistical feature corresponding to the maintenance freeze frame parameter is increased by a second amplitude; and / or if it is determined that the parameter value of the maintenance freeze frame parameter is normal, the abnormal statistical feature corresponding to the maintenance freeze frame parameter is decreased by the second amplitude.

[0125] Optionally, the second amplitude can be greater than the first amplitude. Specifically, the target freeze frame parameter value is acquired by the electronic device when the target fault is detected, but abnormalities in this parameter value may be accidental. The maintenance freeze frame parameter value in the maintenance information is determined by maintenance personnel when repairing the target fault. By setting the second amplitude greater than the first amplitude, the accuracy of the abnormality statistical characteristics can be further improved, thereby facilitating the improvement of the validity of the stored freeze frame data.

[0126] In one possible implementation, the freeze frame parameter update information includes a target freeze frame parameter identifier of a target freeze frame parameter, where the target freeze frame parameter is determined based on abnormal statistical features corresponding to each of a plurality of preset freeze frame parameters. The electronic device stores a parameter value of the target freeze frame parameter, including:

[0127] The target frozen frame parameter identifier and the parameter value of the target frozen frame parameter in the frozen frame parameter update information are associated and stored.

[0128] In this embodiment, the freeze frame parameter update information includes a target freeze frame parameter identifier for the target freeze frame parameter. This reduces the amount of data carried in the instruction information, thereby reducing the transmission resources required between the server and the electronic device. Furthermore, by associating and storing the target freeze frame parameter identifier in the freeze frame parameter update information with the target freeze frame parameter value, the electronic device can determine that the target freeze frame parameter associated with each parameter value represents the target freeze frame parameter corresponding to the determined parameter value, thereby reducing the number of stored parameter values.

[0129] In another possible implementation, data intervals corresponding to each current freeze frame parameter may be set. If the current freeze frame parameter is a freeze frame parameter that needs to be stored when a fault occurs, the parameter value of the current freeze frame parameter actually obtained may be stored in the corresponding data interval. If the current freeze frame parameter is a freeze frame parameter that does not need to be stored when a fault occurs, the parameter value of the data interval corresponding to the current freeze frame parameter may be set to 0. In this way, valid parameter values ​​and the current freeze frame parameters corresponding to the valid parameter values ​​may be determined through each data interval of the freeze frame data.

[0130] For example, if data interval 1 is used to store the parameter value of power, and data interval 2 is used to store the parameter value of voltage, if power is the target freeze frame parameter but voltage is not, the parameter value stored in data interval 1 is the actual collected power value, and the parameter value stored in data interval 2 is 0. In this case, regardless of the voltage, the parameter value stored in data interval 2 is 0. Furthermore, based on the parameter value in data interval 1, it can be determined that it is the power value.

[0131] It should be noted that, in this embodiment, when the electronic device sends the parameter value of the target freeze frame parameter to the server, it can be sent in association with the target freeze frame parameter identifier, or it can be sent to the server after filling the parameter value of the target freeze frame parameter into the data interval corresponding to the freeze frame data.

[0132] In one possible implementation, the electronic device stores a local freeze frame parameter library corresponding to a target fault, the local freeze frame parameter library recording current freeze frame parameter identifiers of respective current freeze frame parameters, and associates and stores the target freeze frame parameter identifier and the parameter value of the target freeze frame parameter in the freeze frame parameter update information, including:

[0133] The current frozen frame parameter identifier in the local frozen frame parameter library is replaced with the target frozen frame parameter identifier in the freeze frame parameter update information to obtain an updated local frozen frame parameter library; and the parameter value of the target frozen frame parameter is associated with the target frozen frame parameter identifier in the updated local frozen frame parameter library and stored.

[0134] For easier understanding, Tables 2 and 3 are provided below for comparison. Table 2 shows the vehicle-side freeze frame parameter table for the local freeze frame parameter library before the update, while Table 3 shows the vehicle-side freeze frame parameter table for the local freeze frame parameter library after the update. The vehicle-side freeze frame parameter table records the current freeze frame parameter identifiers that need to be stored when a target fault occurs.

[0135] Table 2

[0136]

[0137] Table 3

[0138]

[0139] By comparing Table 3 and Table 2, it can be seen that the current freeze frame parameter identifier in the vehicle-side freeze frame parameter table of the updated local-side freeze frame parameter library is a portion of the current freeze frame parameter identifier in the vehicle-side freeze frame parameter table of the local-side freeze frame parameter library before the update (target freeze frame parameter). In this way, the electronic device stores fewer freeze frame parameters.

[0140] Specifically, as the abnormal statistical features are updated, the preset freeze frame parameters that need to be stored when a fault occurs may also be updated accordingly.

[0141] It should be understood that Table 3 and Table 2 are only for illustration.

[0142] In a possible implementation, the server obtains freeze frame parameter update information, including:

[0143] Obtain a server freeze frame parameter library corresponding to a target fault. The server freeze frame parameter library records preset freeze frame parameter identifiers and corresponding flag bits of multiple preset freeze frame parameters. The flag bits are determined based on abnormal statistical characteristics corresponding to each preset freeze frame parameter. The flag bits include a first flag bit or a second flag bit. The first flag bit indicates that the abnormal statistical characteristics corresponding to the preset freeze frame parameter corresponding to the preset freeze frame parameter identifier are less than a preset threshold value. The second flag bit indicates that the abnormal statistical characteristics corresponding to the preset freeze frame parameter corresponding to the preset freeze frame parameter identifier are not less than the preset threshold value. Obtain freeze frame parameter update information based on the server freeze frame parameter library. The freeze frame parameter update information includes a target freeze frame parameter identifier of the target freeze frame parameter. The target freeze frame parameter identifier is a preset freeze frame parameter identifier in the server freeze frame parameter library, and the corresponding flag bit is the second flag bit.

[0144] As shown in Table 4, Table 4 is a server freeze frame parameter table provided by an embodiment of the present application. The server freeze frame parameter table includes current freeze frame parameter identifiers and corresponding flag bits of respective current freeze frame parameters.

[0145] Table 4

[0146]

[0147] The server can define all the preset freeze frame parameters of the vehicle as different DID information (also known as freeze frame parameter identification), each DID has a flag. When flag = 1, the DID information is defined as the freeze frame parameters that need to be stored in case of failure.

[0148] In this embodiment, the server carries the preset freeze frame parameter identifier of the target freeze frame parameter, whose corresponding abnormal statistical feature is not less than the preset threshold, in the freeze frame parameter update information. After the electronic device obtains the freeze frame parameter update information, it can know the target freeze frame parameters that need to be stored when the target failure occurs. Since the freeze frame parameter update information includes the identifier of the target freeze frame parameters that need to be stored, this can reduce the amount of data carried by the indication information, thereby reducing the transmission resources required between the server and the electronic device.

[0149] In another possible implementation, the freeze frame parameter update information may also include a flag bit corresponding to a preset freeze frame parameter identifier of each preset freeze frame parameter. The electronic device then uses the preset freeze frame parameter identifier with the second flag bit as the target freeze frame parameter identifier based on the freeze frame parameter update information.

[0150] For ease of understanding, the adaptive update method of the vehicle freeze frame parameters in the embodiment of the present application is described below using the electronic device as the vehicle end.

[0151] See also Figure 6 , Figure 6 This is a flow chart of an adaptive update of vehicle freeze frame parameters provided by an embodiment of the present application. Figure 6 The process shown can be applied to the server and the vehicle side (also called the vehicle), wherein the vehicle side includes: vehicle data acquisition module (referred to as data acquisition module), fault detection module and vehicle side freeze frame parameter library (also called local freeze frame parameter library). The server includes: fault diagnosis model, maintenance case, server freeze frame parameter library. Figure 6 The process may include:

[0152] S610: Server storage fault diagnosis model.

[0153] Among them, the diagnostic model algorithm engineer can establish and maintain the fault diagnosis model on the server. The fault diagnosis model can include decision trees and knowledge graphs, etc. The fault diagnosis model can obtain vehicle data uploaded by the vehicle, and detect and analyze the vehicle operating status based on the vehicle data to identify potential faults. In this embodiment, the fault diagnosis model can combine sensor data, vehicle-side network information, fault setting algorithm, etc. to detect and analyze the vehicle operating status, identify potential faults, and achieve early warning, precise positioning and diagnostic support for vehicle faults. The vehicle-side network information can be, for example, a controller area network (CAN).

[0154] S620: The vehicle data collection module on the vehicle side collects vehicle data and uploads it to the server.

[0155] The vehicle-side Central Control Unit (CCU) collects all vehicle data from the vehicle's ECU and uploads it to a server. In this embodiment, the fault code and freeze frame parameter values ​​at the time of the fault are collected and uploaded to the server. The collection of freeze frame parameter values ​​at the time of the fault can refer to the description of the above embodiment and is not repeated here. In this embodiment, the fault detection module uses real-time vehicle data and a fault setting algorithm to determine the vehicle's fault status. When a vehicle fault occurs, the fault code is stored and the freeze frame parameters related to the fault are recorded.

[0156] S630: The vehicle-side fault detection module detects a fault occurring in the vehicle.

[0157] In this embodiment, upon detecting a vehicle fault, the vehicle-side vehicle data acquisition module can be notified to collect vehicle data and upload it to the server. In this embodiment, the vehicle-side CCU can monitor the vehicle status in real time. When the vehicle fault judgment conditions are met, it sends a fault code to the vehicle data acquisition module. After the vehicle data acquisition module collects the parameter values ​​of the freeze frame parameters to be stored, it transmits the fault code and the parameter values ​​of the freeze frame parameters to be stored. In this embodiment, after the vehicle is powered on, the vehicle-side ECU can monitor the vehicle's operating status data in real time, including vehicle speed, engine speed, temperature, pressure, etc.

[0158] S640, server maintenance and repair case.

[0159] After the server's fault diagnosis model identifies a fault, it notifies maintenance personnel to initiate repairs and maintains the resulting repair case. A repair case can be a practical application of the vehicle fault diagnosis model, demonstrating how to use diagnostic results to locate the fault, perform repairs, and verify the repair results. This case should include a description of the case, the diagnostic process, the repair operations, and verification and repair results. The server's intelligent diagnostic system should select the problem vehicle, summarize the repair process for that vehicle, and confirm and enter all repair information, including the corresponding fault phenomenon, cause, location, and repair recommendations, into the intelligent diagnostic system. Also, fill in the information in Table 5 below.

[0160] Table 5

[0161]

[0162]

[0163] The exception counter may record the number of accumulated exceptions (count).

[0164] S650: The server updates the server freeze frame parameter library.

[0165] For each parameter in Table 5, a normal range value is set for each parameter. If the parameter value is not in the normal range, the abnormality counter is increased by 1; when the count is greater than a certain value (configurable), the flag corresponding to the parameter is set to 1, and the parameter is updated to the server freeze frame parameter library. Similarly, if the parameter is already a freeze frame parameter, the count is set to a default value, such as 30. If this parameter is normal in the maintenance case, the counter is reduced by 1. If the count is less than a certain value (configurable), the flag of this parameter is set to 0, and the vehicle side deletes the parameter from the vehicle side freeze frame parameter library.

[0166] In this embodiment, after the server updates the server freeze frame parameter library, it can be synchronized to the vehicle-side freeze frame parameter library. Optionally, the server synchronizes the latest freeze frame parameter library to the vehicle-side through the following instructions:

[0167] The vehicle side provides a service-oriented architecture (SOA) service for freeze frame data synchronization instructions, using a Scalable Service-Oriented Middleware over IP (some / ip) protocol. Table 6 illustrates the freeze frame data synchronization service interface. It should be noted that the identifiers (IDs) in Table 6 are not actual values, and the data lengths are examples.

[0168] Table 6

[0169]

[0170] S660: The vehicle side updates the vehicle side freeze frame parameter library.

[0171] In this embodiment, when the vehicle is powered back on, the vehicle data collection module collects relevant information based on the vehicle-side freeze frame parameter library. The fault detection module detects vehicle faults in real time and stores the fault code and freeze frame data when a fault occurs. When reading the freeze frame data, the freeze frame data can be retrieved based on an index table stored on the vehicle.

[0172] Optionally, when an external device reads freeze frame data, it can send the following diagnostic instructions to the CCU, as shown in Table 7:

[0173] Table 7

[0174]

[0175] In addition, if the freeze frame data is stored in the server, the CCU downloads the freeze frame parameters from the server through the following instructions, as shown in Table 8:

[0176] Table 8

[0177]

[0178] In this embodiment, the selection of freeze frame parameters and the recording logic can be dynamically optimized to improve the efficiency and accuracy of fault diagnosis.

[0179] Please refer to Table 9, which is a schematic diagram of freeze frame parameters reported multiple times after adopting the solution of an embodiment of the present application.

[0180] Table 9

[0181]

[0182] As shown in Table 9, as the number of storage times of freeze frame data related to the target fault is added, the current freeze frame parameters that are strongly related to the target fault are gradually retained.

[0183] In a possible implementation, after the freeze frame parameters are adaptively updated, the updated freeze frame parameters may be used to update the fault diagnosis model.

[0184] See also Figure 7 , Figure 7 A schematic diagram of updating a fault diagnosis model after adaptive updating of freeze frame parameters provided in an embodiment of the present application.

[0185] like Figure 7 As shown in the figure, freeze frame data is collected and input into the fault diagnosis model. The fault diagnosis model analyzes and processes this data to generate corresponding repair cases. During the repair case generation process, the fault diagnosis model adaptively adjusts its internal parameters based on changes in the freeze frame data. Ultimately, the fault diagnosis model outputs the adjusted parameters, which can be used for further fault diagnosis, repair guidance, or performance optimization.

[0186] The following is an exemplary description of the device embodiment of this embodiment.

[0187] See also Figure 8 , Figure 8 This is a schematic diagram of a freeze frame data processing device provided in an embodiment of the present application. Figure 8 The device shown can be applied to an electronic device, and the device may include a first acquisition module 810 and a response module 820, wherein:

[0188] The first acquisition module 810 is used to obtain freeze frame parameter update information, where the freeze frame parameter update information is used to indicate that the freeze frame parameter that needs to be recorded when a target fault occurs is updated from the current freeze frame parameter to the target freeze frame parameter, where the current freeze frame parameter is at least one of multiple preset freeze frame parameters corresponding to the target fault, and the target freeze frame parameter is a freeze frame parameter that meets preset conditions among the multiple preset freeze frame parameters, where the preset conditions include that the abnormal statistical feature of the parameter value of the target freeze frame parameter is greater than the minimum abnormal statistical feature, the minimum abnormal statistical feature is the minimum value of the abnormal statistical features corresponding to each of the multiple preset freeze frame parameters, and / or the abnormal statistical feature corresponding to the target freeze frame parameter is not less than a preset threshold; the response module 820 is used to store the parameter value of the target freeze frame parameter in response to the target fault occurring in the electronic device.

[0189] In one possible implementation, the electronic device includes a volatile memory and a non-volatile memory. When the response module 820 stores the parameter value of the target freeze frame parameter, it can be used to:

[0190] The parameter value of the target freeze frame parameter is stored in a volatile memory; and an index table for indexing the parameter value of the target freeze frame parameter is stored in a non-volatile memory, wherein the index table includes index information for indicating a storage location of the parameter value of the target freeze frame parameter in the volatile memory.

[0191] In a possible implementation, when the first obtaining module 810 obtains the freeze frame parameter update information, it can be used to:

[0192] Receive freeze frame parameter update information from the server, where the freeze frame parameter update information is determined based on abnormal statistical features corresponding to each of a plurality of preset freeze frame parameters; the response module 820 is further configured to:

[0193] The parameter value of the target freeze frame parameter is sent to the server, so that the server updates the abnormal statistical feature corresponding to the target freeze frame parameter corresponding to the target fault based on the parameter value of the target freeze frame parameter.

[0194] In a possible implementation, when the first obtaining module 810 obtains the freeze frame parameter update information, it can be used to:

[0195] Receiving freeze frame parameter update information from a server, the freeze frame parameter update information including a target freeze frame parameter identifier of a target freeze frame parameter, the target freeze frame parameter being determined based on abnormal statistical features corresponding to each of a plurality of preset freeze frame parameters; and storing the parameter value of the target freeze frame parameter by the response module 820, which can be used to:

[0196] The target frozen frame parameter identifier and the parameter value of the target frozen frame parameter in the frozen frame parameter update information are associated and stored.

[0197] In one possible implementation, the electronic device stores a local freeze frame parameter library corresponding to a target fault, and the local freeze frame parameter library records current freeze frame parameter identifiers of respective current freeze frame parameters. When the response module 820 associates and stores the target freeze frame parameter identifier and the parameter value of the target freeze frame parameter in the freeze frame parameter update information, the response module 820 may:

[0198] The current frozen frame parameter identifier in the local frozen frame parameter library is replaced with the target frozen frame parameter identifier in the freeze frame parameter update information to obtain an updated local frozen frame parameter library; and the parameter value of the target frozen frame parameter is associated with the target frozen frame parameter identifier in the updated local frozen frame parameter library and stored.

[0199] See also Figure 9 , Figure 9 This is a schematic diagram of another freeze frame data processing device provided in an embodiment of the present application. Figure 9 The device shown can be applied to a server, and the device may include a second obtaining module 910 and a sending module 920, wherein:

[0200] A second acquisition module 910 is configured to determine freeze frame parameter update information based on the abnormal statistical characteristics corresponding to each of a plurality of preset freeze frame parameters corresponding to a target fault, the freeze frame parameter update information being used to indicate that the freeze frame parameter to be recorded when the target fault occurs is updated from a current freeze frame parameter to a target freeze frame parameter, the current freeze frame parameter being at least one of the plurality of preset freeze frame parameters corresponding to the target fault, the target freeze frame parameter being a freeze frame parameter among the plurality of preset freeze frame parameters that meets a preset condition, the preset condition including that the abnormal statistical characteristic of an abnormal parameter value of the target freeze frame parameter is greater than a minimum abnormal statistical characteristic, the minimum abnormal statistical characteristic being the minimum value among the abnormal statistical characteristics corresponding to each of the plurality of preset freeze frame parameters, and / or the abnormal statistical characteristic corresponding to the target freeze frame parameter is not less than a preset threshold; a sending module 920 is configured to send the freeze frame parameter update information to the electronic device, so that the electronic device stores the parameter value of the target freeze frame parameter in response to the occurrence of the target fault.

[0201] In a possible implementation, the second obtaining module 910 is further configured to:

[0202] Obtain parameter values ​​of freeze frame parameters to be updated, where the freeze frame parameters to be updated include target freeze frame parameters or maintenance freeze frame parameters, where the parameter values ​​of the target freeze frame parameters are sent by the electronic device to the server, and where the parameter values ​​of the maintenance freeze frame parameters are parameter values ​​of preset freeze frame parameters in maintenance information, where the maintenance information includes parameter values ​​of preset freeze frame parameters collected during the process of repairing the target fault; and update abnormal statistical features corresponding to the freeze frame parameters to be updated based on the parameter values ​​of the freeze frame parameters to be updated.

[0203] In a possible implementation, when the second acquisition module 910 updates the abnormal statistical feature corresponding to the to-be-updated frozen frame parameter based on the parameter value of the to-be-updated frozen frame parameter, it may be configured to:

[0204] If the parameter value of the frozen frame parameter to be updated is determined to be abnormal, the abnormal statistical feature corresponding to the frozen frame parameter to be updated is increased; and / or if the parameter value of the frozen frame parameter to be updated is determined to be normal, the abnormal statistical feature corresponding to the frozen frame parameter to be updated is decreased.

[0205] In a possible implementation, when the second obtaining module 910 obtains the freeze frame parameter update information, it can be used to:

[0206] Obtain a server freeze frame parameter library corresponding to a target fault. The server freeze frame parameter library records preset freeze frame parameter identifiers and corresponding flag bits of multiple preset freeze frame parameters. The flag bits are determined based on abnormal statistical characteristics corresponding to each preset freeze frame parameter. The flag bits include a first flag bit or a second flag bit. The first flag bit indicates that the abnormal statistical characteristics corresponding to the preset freeze frame parameter corresponding to the preset freeze frame parameter identifier are less than a preset threshold value. The second flag bit indicates that the abnormal statistical characteristics corresponding to the preset freeze frame parameter corresponding to the preset freeze frame parameter identifier are not less than the preset threshold value. Obtain freeze frame parameter update information based on the server freeze frame parameter library. The freeze frame parameter update information includes a target freeze frame parameter identifier of the target freeze frame parameter. The target freeze frame parameter identifier is a preset freeze frame parameter identifier in the server freeze frame parameter library, and the corresponding flag bit is the second flag bit.

[0207] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the devices and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. In the several embodiments provided in the present application, the coupling between modules can be electrical. In addition, the various functional modules in the various embodiments of the present application can be integrated into a processing module, or each module can exist physically alone, or two or more modules can be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional modules.

[0208] The present application also provides a terminal 100, please refer to Figure 10 The terminal 100 includes a processor 1010 and a memory 1020, wherein the memory 1010 is used to store computer programs; the processor 1020 is used to execute the programs stored in the memory 1010 to implement the freeze frame data processing method described in any embodiment of the present application. The terminal 100 can be, for example, an electronic device or a server.

[0209] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the method for processing freeze frame data introduced in any embodiment of the present application is implemented.

[0210] In this application, a plurality refers to two or more.

[0211] In this application, unless otherwise expressly defined, the terms "mounted," "connected," and "connected" should be interpreted broadly. For example, they can refer to fixed, detachable, or integral connections; mechanical or electrical connections; direct or indirect connections through an intermediary; and internal communication between two components. A person of ordinary skill in the art will understand the specific meanings of these terms in this application.

[0212] In this application, the terms "first," "second," "third," "fourth," etc. (if any) are used to distinguish similar objects and are not necessarily used to describe a particular sequential order.

[0213] The term "and / or" in this application simply describes an association between related objects, indicating that three possible relationships exist. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this application generally indicates that the related objects are in an "or" relationship.

[0214] Unless otherwise specified, all steps of this application may be performed sequentially or randomly. For example, a statement that a method includes steps A and B indicates that the method may include steps A and B performed sequentially, or steps B and A performed sequentially. For example, a statement that a method may also include step C indicates that step C may be added to the method in any order. For example, a method may include steps A, B, and C, or steps A, C, and B, or steps C, A, and B, etc.

[0215] The above are only preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present application should be included in the scope of protection of the present application.

Claims

1. A method for processing freeze frame data, characterized in that: Applied to electronic equipment, the method includes: Obtaining freeze frame parameter update information, where the freeze frame parameter update information is used to indicate that a freeze frame parameter that needs to be recorded when a target fault occurs is updated from a current freeze frame parameter to a target freeze frame parameter, where the current freeze frame parameter is at least one of a plurality of preset freeze frame parameters corresponding to the target fault, and the target freeze frame parameter is a freeze frame parameter among the plurality of preset freeze frame parameters that meets a preset condition, where the preset condition includes that an abnormal statistical feature of an abnormal parameter value of the target freeze frame parameter is greater than a minimum abnormal statistical feature, where the minimum abnormal statistical feature is a minimum value among the abnormal statistical features corresponding to the plurality of preset freeze frame parameters, and / or that the abnormal statistical feature corresponding to the target freeze frame parameter is not less than a preset threshold; In response to the target failure occurring in the electronic device, a parameter value of the target freeze frame parameter is stored.

2. The method according to claim 1, characterized in that The electronic device includes a volatile memory and a non-volatile memory, and the storing of the parameter value of the target freeze frame parameter includes: storing a parameter value of the target freeze frame parameter in the volatile memory; An index table for indexing parameter values ​​of the target freeze frame parameters is stored in the non-volatile memory, wherein the index table includes index information, and the index information is used to indicate a storage location of the parameter value of the target freeze frame parameter in the volatile memory.

3. The method according to claim 1, characterized in that The obtaining of freeze frame parameter update information includes: receiving freeze frame parameter update information from a server, wherein the freeze frame parameter update information is determined based on the abnormal statistical features corresponding to each of the plurality of preset freeze frame parameters; The method further comprises: The parameter value of the target freeze frame parameter is sent to the server, so that the server updates the abnormal statistical feature corresponding to the target freeze frame parameter corresponding to the target fault based on the parameter value of the target freeze frame parameter.

4. The method according to any one of claims 1 to 3, characterized in that The obtaining of freeze frame parameter update information includes: receiving freeze frame parameter update information from a server, the freeze frame parameter update information including a target freeze frame parameter identifier of a target freeze frame parameter, the target freeze frame parameter being determined based on abnormal statistical features corresponding to each of the plurality of preset freeze frame parameters; The storing of the parameter value of the target freeze frame parameter includes: The target frozen frame parameter identifier and the parameter value of the target frozen frame parameter in the frozen frame parameter update information are associated and stored.

5. The method according to claim 4, characterized in that The electronic device stores a local freeze frame parameter library corresponding to the target fault, the local freeze frame parameter library recording current freeze frame parameter identifiers of the current freeze frame parameters, and associating and storing the target freeze frame parameter identifier in the freeze frame parameter update information with the parameter value of the target freeze frame parameter, including: replacing the current frozen frame parameter identifier in the local frozen frame parameter library with the target frozen frame parameter identifier in the frozen frame parameter update information to obtain an updated local frozen frame parameter library; The parameter value of the target frozen frame parameter and the target frozen frame parameter identifier in the updated local freeze frame parameter library are associated and stored.

6. A method for processing freeze frame data, characterized in that: Applied to a server, the method includes: Determining freeze frame parameter update information based on abnormal statistical features corresponding to each of a plurality of preset freeze frame parameters corresponding to a target fault, the freeze frame parameter update information being used to indicate that a freeze frame parameter that needs to be recorded when a target fault occurs is updated from a current freeze frame parameter to a target freeze frame parameter, the current freeze frame parameter being at least one of the plurality of preset freeze frame parameters, the target freeze frame parameter being a freeze frame parameter among the plurality of preset freeze frame parameters that meets a preset condition, the preset condition including that an abnormal statistical feature of an abnormal parameter value of the target freeze frame parameter is greater than a minimum abnormal statistical feature, the minimum abnormal statistical feature being a minimum value among the abnormal statistical features corresponding to each of the plurality of preset freeze frame parameters, and / or that the abnormal statistical feature corresponding to the target freeze frame parameter is not less than a preset threshold; The freeze frame parameter update information is sent to an electronic device, so that the electronic device stores a parameter value of the target freeze frame parameter in response to the occurrence of the target fault.

7. The method according to claim 6, characterized in that The method further comprises: Obtaining a parameter value of a to-be-updated freeze frame parameter, the to-be-updated freeze frame parameter including a target freeze frame parameter or a maintenance freeze frame parameter, the parameter value of the target freeze frame parameter being sent by the electronic device to the server, and the parameter value of the maintenance freeze frame parameter being a parameter value of a preset freeze frame parameter in maintenance information, the maintenance information including the parameter value of the preset freeze frame parameter collected during a repair process for the target fault; Based on the parameter value of the to-be-updated frozen frame parameter, the abnormal statistical feature corresponding to the to-be-updated frozen frame parameter is updated.

8. The method according to claim 7, characterized in that The updating of the abnormal statistical feature corresponding to the to-be-updated frozen frame parameter based on the parameter value of the to-be-updated frozen frame parameter includes: If it is determined that the parameter value of the to-be-updated frozen frame parameter is abnormal, increasing the abnormal statistical feature corresponding to the to-be-updated frozen frame parameter; and / or, If it is determined that the parameter value of the to-be-updated frozen frame parameter is normal, then the abnormal statistical feature corresponding to the to-be-updated frozen frame parameter is reduced.

9. The method according to claim 6, characterized in that The obtaining of freeze frame parameter update information includes: Obtaining a server freeze frame parameter library corresponding to the target fault, the server freeze frame parameter library recording a preset freeze frame parameter identifier and a corresponding flag bit for each of the plurality of preset freeze frame parameters, the flag bit being determined based on the abnormal statistical feature corresponding to each preset freeze frame parameter, the flag bit including a first flag bit or a second flag bit, the first flag bit indicating that the abnormal statistical feature corresponding to the preset freeze frame parameter corresponding to the preset freeze frame parameter identifier is less than a preset threshold, and the second flag bit indicating that the abnormal statistical feature corresponding to the preset freeze frame parameter corresponding to the preset freeze frame parameter identifier is not less than the preset threshold; Based on obtaining freeze frame parameter update information from the server freeze frame parameter library, the freeze frame parameter update information includes a target freeze frame parameter identifier of a target freeze frame parameter, the target freeze frame parameter identifier is a preset freeze frame parameter identifier in the server freeze frame parameter library, and the corresponding flag bit is the second flag bit.

10. A terminal, characterized in that: comprising a processor and a memory, wherein: Memory for storing computer programs; A processor, configured to execute a program stored in a memory to implement the method according to any one of claims 1 to 5, or to implement the method according to any one of claims 6 to 9.