CN115658449A - Fault diagnosis data storage method and device, computer equipment and medium - Google Patents
Fault diagnosis data storage method and device, computer equipment and medium Download PDFInfo
- Publication number
- CN115658449A CN115658449A CN202211190214.0A CN202211190214A CN115658449A CN 115658449 A CN115658449 A CN 115658449A CN 202211190214 A CN202211190214 A CN 202211190214A CN 115658449 A CN115658449 A CN 115658449A
- Authority
- CN
- China
- Prior art keywords
- safety
- parameter
- stored
- data
- diagnosis data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000003745 diagnosis Methods 0.000 title claims abstract description 170
- 238000000034 method Methods 0.000 title claims abstract description 41
- 238000013500 data storage Methods 0.000 title description 3
- 230000032683 aging Effects 0.000 claims description 36
- 238000004590 computer program Methods 0.000 claims description 17
- 238000004364 calculation method Methods 0.000 claims description 6
- 238000004891 communication Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 8
- 238000007726 management method Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 206010063385 Intellectualisation Diseases 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000013024 troubleshooting Methods 0.000 description 1
Images
Abstract
The application relates to a storage method, a storage device, computer equipment and a storage medium of fault diagnosis data, wherein the storage method of the fault diagnosis data comprises the steps of obtaining the diagnosis data to be stored, wherein the diagnosis data to be stored comprises corresponding first safety correlation parameters; polling the stored diagnosis data, determining target diagnosis data and obtaining a second safety association parameter corresponding to the target diagnosis data; the numerical value of the second safety correlation parameter corresponding to the first safety correlation parameter and the target diagnosis data is compared, the diagnosis data corresponding to the larger value of the safety correlation parameter is determined, and the diagnosis data corresponding to the larger value of the safety correlation parameter is stored as execution storage data.
Description
Technical Field
The present application relates to the field of storage technologies, and in particular, to a method and an apparatus for storing fault diagnosis data, a computer device, and a medium.
Background
Automobile intellectualization is increasingly popularized, additional functions of automobiles are increased, automobile software structures are more and more complex, and automobile fault diagnosis data are increased. At present, for a storage management mechanism of fault diagnosis data, recording and storing of automobile fault diagnosis data are mainly realized by means of expanding hardware storage medium resources, increasing cost or storing fixed fault diagnosis types. Under the conditions of large quantity and many types of fault diagnosis data and limited hardware storage medium resources, the fault diagnosis data which is important for automobile safety cannot be effectively stored, and the problem of poor reliability of the fault diagnosis data in a storage space is caused.
Disclosure of Invention
Based on the above, a method and a device for storing fault diagnosis data, a computer device and a storage medium are provided, and the problem of poor reliability of the fault diagnosis data in a storage space in the prior art is solved.
In one aspect, a method for storing fault diagnosis data is provided, including:
acquiring diagnostic data to be stored, wherein the diagnostic data to be stored comprises corresponding first safety relevant parameters;
polling the stored diagnosis data, determining target diagnosis data and obtaining a second safety association parameter corresponding to the target diagnosis data;
and comparing the numerical value of the second safety correlation parameter corresponding to the first safety correlation parameter and the target diagnosis data, determining the diagnosis data corresponding to the larger value of the safety correlation parameter, and storing the diagnosis data corresponding to the larger value of the safety correlation parameter as execution storage data to replace the diagnosis data corresponding to the smaller value of the coverage safety correlation parameter.
In one embodiment, the determining target diagnostic data includes:
polling all stored diagnostic data in the storage space to obtain second safety associated parameters corresponding to the stored diagnostic data;
and comparing the numerical value of the second safety relevant parameter corresponding to each piece of stored diagnostic data, and taking the stored diagnostic data corresponding to the minimum value of the second safety relevant parameter as the target diagnostic data.
In one embodiment, further comprising:
acquiring a fault type corresponding to the diagnostic data to be stored;
inquiring whether stored diagnosis data corresponding to the fault type exist:
and if so, updating the stored diagnosis data corresponding to the fault type according to the to-be-stored diagnosis data.
In one embodiment, the step of obtaining the first security association parameter and the second security association parameter comprises:
acquiring a safety level parameter and an aging count parameter of diagnostic data, wherein the diagnostic data comprises diagnostic data to be stored or stored diagnostic data;
and calculating according to the safety grade parameter and the aging counting parameter and a preset weight proportion to obtain a corresponding safety association parameter.
In one embodiment, the security level parameter is obtained by configuring according to preset fault configuration information.
In one embodiment, the aging count parameter is calculated from an aging count value and an aging count period of the fault diagnosis data.
In one embodiment, the comparing the magnitude of the first security association parameter and the magnitude of the second security association parameter further comprises:
when the first safety-related parameter is equal to a second safety-related parameter corresponding to the target diagnosis data, comparing the numerical value of the safety-level parameter of the diagnosis data to be stored with the numerical value of the safety-level parameter of the target diagnosis data;
and determining the diagnostic data corresponding to the larger value of the safety level parameter, and storing the diagnostic data corresponding to the larger value of the safety level parameter as execution storage data to replace the diagnostic data corresponding to the smaller value of the coverage safety level parameter.
In another aspect, there is provided a storage apparatus for failure diagnosis data, the apparatus including:
the system comprises an acquisition module, a storage module and a storage module, wherein the acquisition module is used for acquiring diagnostic data to be stored, and the diagnostic data to be stored comprises corresponding first safety relevant parameters;
the polling module is used for polling the stored diagnostic data, determining target diagnostic data and obtaining a second safety association parameter corresponding to the target diagnostic data;
the comparison module is used for comparing the first safety-related parameter with the value of a second safety-related parameter corresponding to the target diagnosis data and determining the diagnosis data corresponding to the larger value of the safety-related parameter;
and the storage module is used for storing the diagnostic data corresponding to the larger value of the safety relevant parameter as execution storage data.
In an aspect, a computer device is provided, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method when executing the computer program.
A computer-readable storage medium is also provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method.
According to the method, the device, the computer equipment and the medium for storing the fault diagnosis data, the target diagnosis data used for being covered is determined by acquiring the to-be-stored diagnosis data and polling the stored diagnosis data, the diagnosis data corresponding to the larger value of the safety-related parameter is stored as the execution storage data by comparing the to-be-stored diagnosis data with the safety-related parameter of the target diagnosis data, the diagnosis data with higher safety-related property is effectively stored under the condition that the storage space is limited, and the reliability of the fault diagnosis data in the storage space is improved.
Drawings
FIG. 1 is a schematic flow chart diagram illustrating a method for storing fault diagnosis data according to one embodiment;
FIG. 2 is a flowchart illustrating a method for storing fault diagnosis data according to another embodiment
FIG. 3 is a flow diagram illustrating the polling step in one embodiment;
FIG. 4 is a schematic flow chart diagram illustrating a method for storing fault diagnosis data according to one embodiment;
FIG. 5 is a block diagram of a storage device for failure diagnosis data in one embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In the current Electronic Control Unit (ECU) of the vehicle, data such as a fault diagnosis code, a fault state, a fault snapshot, fault additional data and the like are read through a fault diagnosis module (DEM), and this method is a main way for technicians in after-sales and whole factories to analyze, evaluate, reproduce and repair the fault.
Due to the advent of various advanced driving assistance systems and the increasing sophistication of controllers in recent years, the amount of fault diagnosis data that needs to be stored is increasing, and the demand for storage space is also increasing. At present, for a storage management mechanism of fault diagnosis data, recording and storing of automobile fault diagnosis data are realized mainly by expanding hardware storage medium resources and increasing cost, or under the condition of limited storage resources, by a method of storing fixed fault diagnosis types, some fault diagnosis data with high influence on automobile safety are discarded instead, and thus technicians cannot obtain reliable data reflecting automobile safety performance from a storage space.
The storage method of the fault diagnosis data can be applied to automobiles, the fault diagnosis technology is stored in the environment with limited storage resources, the diagnosis data with high safety relevance can be effectively stored, and the reliability of the diagnosis data in the storage space is improved.
In one embodiment, as shown in fig. 1, there is provided a method of storing fault diagnosis data, comprising the steps of:
It can be understood that when a fault occurs, the fault diagnosis module DEM generates fault diagnosis data corresponding to the fault, and obtains a safety associated parameter corresponding to the fault diagnosis data according to the fault diagnosis data, where the safety associated parameter is used to evaluate the safety influence of the fault, and the larger the safety associated parameter is, the larger the safety associated parameter has influence on the safety of the vehicle, where the first safety associated parameter is obtained corresponding to the current fault.
And 102, polling the stored diagnosis data, determining target diagnosis data and obtaining a second safety association parameter corresponding to the target diagnosis data.
In the prior art, when the physical storage medium has no residual storage space, the newly generated fault diagnosis data cannot be effectively stored.
By polling the stored diagnostic data, target diagnostic data that can be used for overwriting and a security association parameter corresponding to the target diagnostic data, i.e., a second security association parameter, are determined.
Illustratively, the diagnostic data to be stored includes the corresponding first security-related parameter, which means that the security-related parameter may be directly a part of the diagnostic data structure, and obtained synchronously when the diagnostic data is acquired, or indirectly, for example, may be obtained by calculation according to a specific parameter in the diagnostic data when the diagnostic data is acquired.
And 103, comparing the numerical value of the second safety-related parameter corresponding to the first safety-related parameter and the target diagnosis data.
As described above, the larger the numerical value of the safety-related parameter is, the higher the degree of the safety influence of the corresponding fault on the automobile is, the fault with the larger safety influence is determined by comparing the safety-related parameter corresponding to the fault to be stored and the stored fault, the diagnostic data of the fault with the larger safety influence is stored, and the diagnostic data of the fault with the smaller safety influence is discarded, so that the reliability of the diagnostic data in the storage space can be improved under the condition of limited storage resources.
Illustratively, the DEM generates to-be-stored diagnosis data of a current fault, calculates to obtain a corresponding first safety-related parameter, compares the first safety-related parameter with a second safety-related parameter corresponding to target diagnosis data, and confirms that the first safety-related parameter is smaller than the second safety-related parameter corresponding to the target diagnosis data, which indicates that the current fault has a lower influence degree on safety compared with a past fault, the to-be-stored diagnosis data can be discarded, and the target diagnosis data is retained; on the contrary, when the first safety-related parameter is determined to be larger than the second safety-related parameter corresponding to the target diagnostic data, it is indicated that the current fault has a higher influence on safety than the previous fault, and the diagnostic data to be stored corresponding to the current fault can be stored to replace the coverage target diagnostic data.
According to the storage method of the fault diagnosis data, the influence of the current fault and the past fault on the safety of the automobile is evaluated through the safety related parameters, the diagnosis data corresponding to the larger value of the safety related parameters are stored as the execution storage data, and the diagnosis data stored in the storage space are guaranteed to be the diagnosis data with high safety relevance all the time.
In one embodiment, a method of determining target diagnostic data comprises: polling all stored diagnostic data in the storage space to obtain second safety associated parameters corresponding to the stored diagnostic data;
and comparing the numerical value of the second safety-related parameter corresponding to each piece of stored diagnostic data, and taking the stored diagnostic data corresponding to the minimum value of the second safety-related parameter as the target diagnostic data.
It can be understood that each stored diagnostic data corresponds to a second safety-related parameter, and the stored diagnostic data corresponding to the minimum value of the second safety-related parameter represents the storage space, and for the diagnostic data with the minimum safety influence, if the first safety-related parameter corresponding to the diagnostic data to be stored is greater than the second safety-related parameter corresponding to the target diagnostic data, the target diagnostic data can be covered by the diagnostic data to be stored, so as to ensure that the storage space contains the diagnostic data with high safety influence, and a technician can obtain the diagnostic data with high reliability from the storage space.
In one embodiment, the storage space may have a stored fault of the same type as the current fault to be stored, and at this time, the same type of fault may be updated to meet the requirement of high reliability of the diagnostic data.
The exemplary illustration updating method includes obtaining a fault type corresponding to diagnostic data to be stored;
inquiring whether stored diagnosis data corresponding to the fault type exist:
and if so, updating the stored diagnosis data corresponding to the fault type according to the to-be-stored diagnosis data.
Illustratively, when the vehicle ECU detects that the communication of the BMS of the battery management system is lost to a 6-level fault, whether the communication of the BMS is lost to the 6-level fault already exists is inquired, and if the communication of the BMS is lost to the 6-level fault already exists, old fault diagnosis data is replaced by newly generated fault diagnosis data according to a storage method.
In one embodiment, the security association parameter is obtained by a security level parameter and an aging count parameter in the diagnostic data, including:
acquiring a safety level parameter and an aging count parameter of diagnostic data, wherein the diagnostic data comprises diagnostic data to be stored or stored diagnostic data;
and calculating according to the safety grade parameter and the aging counting parameter and a preset weight proportion to obtain a corresponding safety association parameter.
The safety level parameters are obtained by configuration according to preset fault configuration information, the safety level indicates the degree of damage of the fault to the automobile safety, the safety level is determined according to actual use requirements, and the fault safety level is increased sequentially from sl =1 to sl = 10. Setting a maximum safety level gradient SLmax =10, wherein the higher the safety level is, the higher the influence factor of the safety level is, taking the diagnostic data to be stored as an example, the first safety level parameter may be obtained according to the following mathematical expression:
and M is a first safety level parameter, and sl is a safety level corresponding to the fault.
On the other hand, the aging count parameter indicates that the fault is generated and passes through a plurality of driving cycles, and is not generated again, and the aging count parameter can be obtained by calculation according to the aging count value and the aging count period of the fault diagnosis data.
Also exemplified by diagnostic data to be stored, the age count parameter is obtained using the following mathematical expression:
and N is an aging count parameter corresponding to the diagnostic data to be stored, t is an aging count value currently corresponding to the fault, the aging count value decreases with the increase of the driving cycle number, and Tmax is a preset typical value.
It can be understood that, when a fault occurs, the aging count value corresponding to the fault is set to Tmax, after a plurality of driving cycles, the fault is not generated any more, the aging count value is decremented to t according to a preset decrement rule, if the same type of fault occurs again in the midway, the fault diagnosis data can be updated according to the above updating method, and the aging count value is set to Tmax again.
In the above embodiment, the security association parameter is obtained by calculating according to the security level parameter and the aging count parameter according to a preset weight ratio. Illustratively, according to the trial and error method, the weight ratio of each parameter is preset as follows: the safety level parameter M is 0.8, and the aging counting parameter N is 0.2.
Illustratively, the first security association parameter is obtained according to the following mathematical expression:
wherein P is a first security association parameter.
In one embodiment, when a first safety-related parameter of the diagnostic data to be stored is equal to a second safety-related parameter corresponding to the target diagnostic data, the magnitude of the safety level parameter of the diagnostic data to be stored and the magnitude of the safety level parameter of the target diagnostic data can be compared;
and determining the diagnostic data corresponding to the larger value of the safety level parameter, storing the diagnostic data corresponding to the larger value of the safety level parameter as execution storage data, and replacing and covering the diagnostic data corresponding to the smaller value of the safety level parameter.
As mentioned above, the safety level parameter can represent the degree of damage of the fault to the automobile safety, and diagnostic data corresponding to the fault with high degree of damage is reserved in the storage space, so that technicians can conveniently and better check the vehicle fault.
As shown in fig. 2, which is a complete flowchart illustrating a method for storing fault diagnosis data according to the present application, in the diagram, the fault diagnosis data includes fault snapshot information, the DEM fault diagnosis module configures a security level for a newly generated fault, when it is determined that the fault is generated, queries whether the fault already exists, updates the previously diagnosed data if the previously diagnosed data of the same fault exists, resets an aging count, determines whether a blank unused area exists in a storage space if a newly added fault exists, inserts the newly generated fault into the blank area of the fault storage space if the newly generated fault exists, and otherwise, performs security association parameter judgment.
Fig. 3-4 illustrate the flow of security association parameter determination.
In the figure, the to-be-stored diagnostic data M, N, P of the current fault, the safety level parameter M1, the aging count parameter N1 and the second safety-related parameter P1 corresponding to the stored diagnostic data are calculated according to the safety level parameter mathematical expression, the aging count parameter mathematical expression and the safety-related parameter mathematical expression, and the stored diagnostic data are polled by setting the temporary safety-related parameter Ptmp and using the temporary safety level parameter Mtmp as an intermediate value to perform assignment operation.
It is to be understood that in the initial phase, both the temporary security association parameter Ptmp and the temporary security level parameter Mtmp are assigned invalid values.
Illustratively, the vehicle controller ECU detects that the battery management system BMS has lost 6-level fault communication, configures a diagnostic fault code DTC =0x0E2D06, sets a fault aging count t =40 (typical value) after the fault confirmation is generated, and captures fault diagnosis data during the operation of the vehicle. There is now a battery management system BMS communication loss level 3 fault DTC =0x0e2d03, sl =3, t =20. After confirming that the storage space has no communication loss 6-level fault of the battery management system BMS and no blank unused area in the storage space, calculating a safety level parameter, an aging count parameter and a safety association parameter according to the flow shown in FIGS. 3-4.
And calculating a fault safety level influencing factor M, a fault aging count influencing factor N and a fault important level P of 6-level faults (DTC =0x0E2D06, sl =6 and t = 40) of the BMS communication loss according to the mathematical expression. The calculation can obtain:
security level parameters: m = sl/SLmax 100% =6/10 100% =0.6;
aging counting parameters: n = t/Tmax 100% =40/40 100% =1;
the first security association parameter:
P=(sl/SLmax*100%)*80%+(t/Tmax*100%)*20%=0.6*80%+1*20%=0.68。
and circularly calculating a safety level parameter M1, an aging count parameter N1 and a second safety related parameter P1 corresponding to the stored diagnosis data with faults, and assigning the low safety related parameter to a temporary safety related parameter Ptmp, a temporary fault safety level parameter Mtmp and a temporary fault aging count parameter Ntmp. Wherein, calculating the communication loss 3-level fault of the stored diagnostic data BMS (DTC =0x0E2D03, sl =3, t = 20), calculating to obtain:
security level parameters: m1= sl/SLmax 100% =3/10 × 100% =0.3;
aging counting parameters: n1= t/Tmax 100% =20/40 × 100% =0.5;
the second security association parameter:
P1=(sl/SLmax*100%)*80%+(t/Tmax*100%)*20%=0.3*80%+0.5*20%=0.34。
the stored diagnostic data corresponding to the BMS communication loss level 3 fault (DTC =0x0e2d03, sl =3, t = 20) is determined as the target diagnostic data because the corresponding second safety-related parameter is confirmed to be the minimum value in the stored diagnostic data through polling. Thus, after polling:
Ptmp=P1=0.34;
Mtmp=M1=0.3;
Ntmp=N1=0.5。
and comparing the first safety-related parameter P with the temporary fault importance level Ptmp, P > Ptmp (namely 0.68> < 0.34) generated by the cyclic calculation, deleting the fault diagnosis data corresponding to the Ptmp (namely the stored diagnosis data corresponding to the BMS communication loss 3-level fault (DTC =0x0E2D03, sl =3, t = 20)), and replacing the fault diagnosis data with the fault diagnosis data corresponding to the P (namely the to-be-stored diagnosis data corresponding to the BMS communication loss 6-level fault (DTC =0x0E2D06, sl =6 and t = 40)), so as to complete the determination and updating of the importance degree of the fault diagnosis data.
If P < Ptmp. The failsafe hazard represented by P is considered to be low and can be discarded in case of limited resources.
By adopting the storage method of the fault diagnosis data, under the condition of limited storage resources, the newly added condition of the fault diagnosis data can be dealt with, hardware resources do not need to be additionally expanded to meet the requirement of fault diagnosis, the hardware cost is saved, 3, higher data storage right for faults which are important for automobile safety is ensured, the basis for solving the automobile fault problem is provided, and the method is beneficial for automobile professional maintenance personnel and technicians to carry out troubleshooting on the automobile fault problem.
It should be understood that although the various steps in the flow charts of fig. 1-4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-4 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 5, there is provided a storage device of failure diagnosis data, including: the device comprises an acquisition module, a polling module, a comparison module and a storage module, wherein:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring diagnostic data to be stored, and the diagnostic data to be stored comprises corresponding first safety association parameters;
the polling module is used for polling the stored diagnostic data, determining target diagnostic data and obtaining a second safety association parameter corresponding to the target diagnostic data;
the comparison module is used for comparing the first safety-related parameter with the value of a second safety-related parameter corresponding to the target diagnosis data and determining the diagnosis data corresponding to the larger value of the safety-related parameter;
and the storage module is used for storing the diagnostic data corresponding to the larger value of the safety relevant parameter as execution storage data.
In the device, the safety-related parameters of the diagnostic data to be stored and the target storage diagnostic data in the storage space are compared to judge which diagnostic data is finally stored in the storage space, wherein the safety-related parameters can represent the influence of the fault on the safety of the automobile, and the diagnostic data of the fault with larger influence is stored in the storage space, so that the reliability of the fault diagnostic data in the storage space is improved.
In one embodiment, the polling module is configured to poll all stored diagnostic data in the storage space to obtain a second security association parameter corresponding to each stored diagnostic data;
and comparing the numerical value of the second safety-related parameter corresponding to each piece of stored diagnostic data, and taking the stored diagnostic data corresponding to the minimum value of the second safety-related parameter as the target diagnostic data.
By polling, stored diagnostic data corresponding to the fault in the storage space that has the least impact on vehicle safety may be determined.
In one embodiment, the obtaining module is further configured to obtain a fault type corresponding to the diagnostic data to be stored; the polling module is used for inquiring whether the stored diagnosis data corresponding to the fault type exists:
if yes, the storage module updates the stored diagnosis data corresponding to the fault type according to the to-be-stored diagnosis data.
The storage device of the embodiment ensures that the fault diagnosis data in the storage space is always diagnosis data with high safety relevance by updating the diagnosis data of the existing fault, and improves the reliability of the diagnosis data.
In one embodiment, the safety-related parameter is obtained by calculation according to a preset weight ratio according to a safety level parameter and an aging count parameter of the diagnostic data.
In one embodiment, when the first safety-related parameter is equal to the second safety-related parameter corresponding to the target diagnosis data, comparing the numerical values of the safety level parameter of the diagnosis data to be stored with the numerical values of the safety level parameter of the target diagnosis data;
and determining the diagnostic data corresponding to the larger value of the safety level parameter, and storing the diagnostic data corresponding to the larger value of the safety level parameter as execution storage data.
For specific limitations of the storage device of the fault diagnosis data, reference may be made to the above limitations of the storage method of the fault diagnosis data, which are not described herein again. The respective modules in the above-described storage device of the fault diagnosis data may be entirely or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of storing fault diagnosis data. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
step A, acquiring diagnostic data to be stored, and acquiring a first safety association parameter corresponding to the diagnostic data to be stored according to the diagnostic data to be stored;
b, polling the stored diagnosis data, determining target diagnosis data and obtaining a second safety association parameter corresponding to the target diagnosis data;
and step C, comparing the numerical values of the first safety-related parameter and the second safety-related parameter corresponding to the target diagnosis data, determining the diagnosis data corresponding to the larger value of the safety-related parameter, and storing the diagnosis data corresponding to the larger value of the safety-related parameter as execution storage data.
According to the computer device, the diagnostic data to be stored are obtained, the stored diagnostic data are polled to determine the target diagnostic data used for being covered, the safety association parameters of the diagnostic data to be stored and the target diagnostic data are compared, the diagnostic data corresponding to the larger value of the safety association parameters are used as the execution storage data to be stored, the diagnostic data with higher safety association can be effectively stored under the condition that the storage space is limited, and the reliability of the fault diagnostic data in the storage space is improved.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring a fault type corresponding to the diagnostic data to be stored;
inquiring whether stored diagnosis data corresponding to the fault type exist:
and if so, updating the stored diagnosis data corresponding to the fault type according to the to-be-stored diagnosis data.
In the embodiment, the stored faults of the same type are updated, so that extra occupation of a storage space is avoided, and the fault condition of the safety of the associated automobile can be reliably reflected by the stored diagnostic data in the storage space.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
when the first safety-related parameter is equal to a second safety-related parameter corresponding to the target diagnosis data, comparing the numerical value of the safety-level parameter of the diagnosis data to be stored with the numerical value of the safety-level parameter of the target diagnosis data;
and determining the diagnostic data corresponding to the larger value of the safety level parameter, and storing the diagnostic data corresponding to the larger value of the safety level parameter as execution storage data.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
step A, acquiring diagnostic data to be stored, and acquiring a first safety association parameter corresponding to the diagnostic data to be stored according to the diagnostic data to be stored;
b, polling the stored diagnosis data, determining target diagnosis data and obtaining a second safety association parameter corresponding to the target diagnosis data;
and step C, comparing the numerical values of the first safety-related parameter and the second safety-related parameter corresponding to the target diagnosis data, determining the diagnosis data corresponding to the larger value of the safety-related parameter, and storing the diagnosis data corresponding to the larger value of the safety-related parameter as execution storage data.
In one embodiment, the computer program when executed by the processor further performs the steps of:
polling all stored diagnostic data in the storage space to obtain second safety associated parameters corresponding to the stored diagnostic data;
and comparing the numerical value of the second safety-related parameter corresponding to each piece of stored diagnostic data, and taking the stored diagnostic data corresponding to the minimum value of the second safety-related parameter as the target diagnostic data.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring a fault type corresponding to the diagnostic data to be stored;
inquiring whether stored diagnosis data corresponding to the fault type exist:
and if so, updating the stored diagnosis data corresponding to the fault type according to the to-be-stored diagnosis data.
In one embodiment, when the first safety-related parameter is equal to the second safety-related parameter corresponding to the target diagnosis data, comparing the numerical values of the safety level parameter of the diagnosis data to be stored with the numerical values of the safety level parameter of the target diagnosis data;
and determining the diagnostic data corresponding to the larger value of the safety level parameter, and storing the diagnostic data corresponding to the larger value of the safety level parameter as execution storage data.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent application shall be subject to the appended claims.
Claims (10)
1. A method of storing fault diagnosis data, comprising:
acquiring diagnostic data to be stored, wherein the diagnostic data to be stored comprises corresponding first safety association parameters;
polling the stored diagnosis data, determining target diagnosis data and obtaining a second safety association parameter corresponding to the target diagnosis data;
and comparing the first safety correlation parameter with the value of a second safety correlation parameter corresponding to the target diagnosis data, determining the diagnosis data corresponding to the larger value of the safety correlation parameter, and storing the diagnosis data corresponding to the larger value of the safety correlation parameter as execution storage data to replace the diagnosis data corresponding to the smaller value of the coverage safety correlation parameter.
2. The method for storing fault diagnosis data according to claim 1, wherein the determining target diagnosis data includes:
polling all stored diagnostic data in the storage space to obtain second safety associated parameters corresponding to the stored diagnostic data;
and comparing the numerical value of the second safety relevant parameter corresponding to each piece of stored diagnostic data, and taking the stored diagnostic data corresponding to the minimum value of the second safety relevant parameter as the target diagnostic data.
3. The method of storing fault diagnosis data according to claim 1, further comprising:
acquiring a fault type corresponding to the diagnostic data to be stored;
inquiring whether stored diagnosis data corresponding to the fault type exist:
and if so, updating the stored diagnosis data corresponding to the fault type according to the to-be-stored diagnosis data.
4. The method for storing fault diagnosis data according to claim 1, wherein the step of obtaining the first safety-related parameter and the second safety-related parameter comprises:
acquiring a safety level parameter and an aging count parameter of diagnostic data, wherein the diagnostic data comprises diagnostic data to be stored or stored diagnostic data;
and calculating according to the safety grade parameter and the aging counting parameter and a preset weight ratio to obtain a corresponding safety association parameter.
5. The method for storing fault diagnosis data according to claim 4, wherein the safety level parameters are configured according to preset fault configuration information.
6. The method for storing failure diagnosis data according to claim 4, wherein the aging count parameter is obtained by calculation based on an aging count value and an aging count period of the failure diagnosis data.
7. The method for storing fault diagnosis data according to any one of claims 4-6, wherein the comparing the magnitude of the first safety-related parameter and the second safety-related parameter further comprises:
when the first safety-related parameter is equal to a second safety-related parameter corresponding to the target diagnosis data, comparing the numerical value of the safety-level parameter of the diagnosis data to be stored with the numerical value of the safety-level parameter of the target diagnosis data;
and determining the diagnostic data corresponding to the larger value of the safety level parameter, and storing the diagnostic data corresponding to the larger value of the safety level parameter as execution storage data to replace the diagnostic data corresponding to the smaller value of the coverage safety level parameter.
8. An apparatus for storing fault diagnosis data, the apparatus comprising:
the system comprises an acquisition module, a storage module and a storage module, wherein the acquisition module is used for acquiring diagnostic data to be stored, and the diagnostic data to be stored comprises corresponding first safety relevant parameters;
the polling module is used for polling the stored diagnostic data, determining target diagnostic data and obtaining a second safety association parameter corresponding to the target diagnostic data;
the comparison module is used for comparing the first safety-related parameter with the value of a second safety-related parameter corresponding to the target diagnosis data and determining the diagnosis data corresponding to the larger value of the safety-related parameter;
and the storage module is used for storing the diagnostic data corresponding to the larger value of the safety relevant parameter as execution storage data.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 7 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211190214.0A CN115658449A (en) | 2022-09-28 | 2022-09-28 | Fault diagnosis data storage method and device, computer equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211190214.0A CN115658449A (en) | 2022-09-28 | 2022-09-28 | Fault diagnosis data storage method and device, computer equipment and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115658449A true CN115658449A (en) | 2023-01-31 |
Family
ID=84985613
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211190214.0A Pending CN115658449A (en) | 2022-09-28 | 2022-09-28 | Fault diagnosis data storage method and device, computer equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115658449A (en) |
-
2022
- 2022-09-28 CN CN202211190214.0A patent/CN115658449A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108710673B (en) | Method, system, computer device and storage medium for realizing high availability of database | |
CN109614527B (en) | Overhaul view generation method and device, computer equipment and storage medium | |
EP2803048B1 (en) | System and method for providing diagnostic fault information | |
CN104011688A (en) | Controller And Process Monitoring Method | |
CN111210350A (en) | Block chain transaction method and device, computer equipment and storage medium | |
CN108108262A (en) | Integrated circuit with the hardware check unit for checking selected memory access | |
CN115658449A (en) | Fault diagnosis data storage method and device, computer equipment and medium | |
CN109542782B (en) | NFC test method and device based on machine learning and computer equipment | |
CN112925546B (en) | Multistage verification method and system for preventing vehicle-mounted ECU from refreshing errors | |
CN114967634A (en) | Processor diagnostic device, processor diagnostic method, and electronic apparatus | |
CN114356769A (en) | Software learning method, device, equipment and storage medium | |
US7231548B2 (en) | Diagnosis of fault conditions in embedded systems | |
CN112860702A (en) | Test execution work order verification method and device, computer equipment and storage medium | |
CN113672258A (en) | System upgrading method and device for vehicle, computer equipment and storage medium | |
Palai | Vehicle level approach for optimization of on-board diagnostic strategies for fault management | |
KR101692114B1 (en) | Apparatus and method for diagnosing errors of task execution | |
CN112596677B (en) | Data storage method and device of electronic control unit and storage medium | |
CN111078458B (en) | Electronic control unit, software compatibility detection method and device thereof and automobile | |
CN114084157A (en) | Configuration method, device, equipment and medium based on vehicular redundant reliable module | |
CN117499369B (en) | Automatic addressing method and device for battery management system and battery management system | |
CN114371683B (en) | Diagnostic function verification method, system, storage medium and device for diagnostic apparatus | |
CN113434163B (en) | Online calibration method, system, device and medium suitable for electronic control unit | |
CN117192248A (en) | Detection method, device, equipment and storage medium of electronic parking RPB system | |
JP2022082184A (en) | Failure predictive diagnosis device and failure predictive diagnosis method | |
Wiese et al. | A method to control distributed cause-effect chains of electrical and electronic systems in the field of driving dynamics and driver assistance |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20240113 Address after: No. 13 Xingxiang Road, Zengjia Town, High tech Zone, Jiulongpo District, Chongqing, 400039 Applicant after: Chongqing Selis Phoenix Intelligent Innovation Technology Co.,Ltd. Address before: 610095 No. 2901, floor 29, unit 1, building 1, No. 151, Tianfu Second Street, high tech Zone, China (Sichuan) pilot Free Trade Zone, Chengdu, Sichuan Province Applicant before: Chengdu Thalys Technology Co.,Ltd. |
|
TA01 | Transfer of patent application right |