CN113127541A - Fault code management method and device - Google Patents

Fault code management method and device Download PDF

Info

Publication number
CN113127541A
CN113127541A CN202110488970.0A CN202110488970A CN113127541A CN 113127541 A CN113127541 A CN 113127541A CN 202110488970 A CN202110488970 A CN 202110488970A CN 113127541 A CN113127541 A CN 113127541A
Authority
CN
China
Prior art keywords
fault
code
fault code
codes
value
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.)
Granted
Application number
CN202110488970.0A
Other languages
Chinese (zh)
Other versions
CN113127541B (en
Inventor
王映娟
周广飞
操四胜
赵勇
刘启武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Hongmei Intelligent Technology Co Ltd
Original Assignee
Sichuan Hongmei Intelligent Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Sichuan Hongmei Intelligent Technology Co Ltd filed Critical Sichuan Hongmei Intelligent Technology Co Ltd
Priority to CN202110488970.0A priority Critical patent/CN113127541B/en
Publication of CN113127541A publication Critical patent/CN113127541A/en
Application granted granted Critical
Publication of CN113127541B publication Critical patent/CN113127541B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2462Approximate or statistical queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2477Temporal data queries

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Probability & Statistics with Applications (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Debugging And Monitoring (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a fault code management method and a fault code management device, wherein the method comprises the following steps: acquiring historical fault information comprising at least two fault codes aiming at target equipment; each fault code corresponds to different fault information; for each fault code, performing: determining a fault element corresponding to the fault code, and determining the attribute of the fault element according to a preset variable element list; wherein the attribute of the failed element comprises that the failed element is a variable element or a fixed element; summarizing all fault codes which correspond to the same fault element and have the attribute of a variable element to obtain a fault code set corresponding to the variable fault element; sequencing the fault code set and each fault code of the corresponding fixed element to obtain serial numbers corresponding to at least two fault codes; acquiring fault values carried in at least two fault codes; and according to the fault value and the serial number, at least two fault codes are statistically stored. The scheme can improve the use experience of the user.

Description

Fault code management method and device
Technical Field
The invention relates to the technical field of equipment maintenance, in particular to a fault code management method and a fault code management device.
Background
In order to facilitate subsequent research and development and maintenance of equipment, a set of fault self-diagnosis system is correspondingly arranged during design of an equipment system, and corresponding fault elements and reasons are determined through fault codes to realize fault analysis. However, in the conventional fault handling mechanism, the fault codes are usually directly counted and stored, but when the system is equipped with displays having different fault display modes, because the fault codes and the corresponding fault definitions are different, the number of the fault codes and the time for system logic processing are increased, and the situation that the same fault information corresponds to different fault display contents is easily caused, so that the management efficiency of the fault codes is low, and the user experience is poor.
The chinese patent application No. 202010729248.7 discloses a system capable of being configured to realize display of vehicle failure information, which transmits received failure data to a failure list query module through message analysis; and processing fault data according to the configurable file, and looking up a table to output fault content to be displayed. The method does not solve the problems of increased fault code amount, increased system logic processing time and different display contents caused by configuring a display with multiple fault display modes, and the use experience of a user is still poor.
Disclosure of Invention
The invention provides a fault code management method and device, which can improve the use experience of a user.
In a first aspect, an embodiment of the present invention provides a fault code management method, including:
acquiring historical fault information aiming at target equipment; the historical fault information comprises at least two fault codes, and each fault code corresponds to different fault information;
for each fault code, performing: determining a fault element corresponding to the fault code, and determining the attribute of the fault element according to a preset variable element list; wherein the attribute of the failed element comprises that the failed element is a variable element or a fixed element;
summarizing all fault codes which correspond to the same fault element and have the attribute of a variable element to obtain a fault code set corresponding to the variable fault element;
sequencing the fault code set and each fault code of the corresponding fixed element to obtain serial numbers corresponding to the at least two fault codes; wherein the serial number of each fault code in the fault code set is the same;
acquiring fault values carried in the at least two fault codes;
and according to the fault value and the serial number, performing statistical storage on the at least two fault codes.
Optionally, the determining the attribute of the failed component according to the preset variable component list includes:
analyzing the fault code to obtain an identification code corresponding to the fault element; the fault information comprises fault element information and identification code information thereof;
judging whether the identification code exists in the preset variable element list or not;
if so, determining that the attribute of the fault element is a variable element;
if not, the attribute of the failed component is determined to be a fixed component.
Optionally, the statistically storing the at least two fault codes according to the fault value and the serial number includes:
for each fault code, performing:
when the attribute of the fault element corresponding to the fault code is a variable element, storing the fault code according to the fault value and the serial number of the fault code;
when the attribute of the fault element corresponding to the fault code is a fixed element, determining a marking value corresponding to the fault value of the fault code, and storing the fault code according to the marking value and the serial number; wherein the flag value is used to characterize the presence of a failure of the fixed element.
Optionally, the statistically storing the at least two fault codes according to the fault value and the serial number includes:
for each fault code, performing:
determining a timestamp for acquiring the fault code;
generating a statistical value corresponding to the fault code according to the timestamp, the fault value carried by the fault code and the serial number corresponding to the fault code;
sequentially storing the statistical values corresponding to the fault codes according to the time stamps;
wherein, the statistic value corresponding to the fault code is calculated and generated through the following formula;
Figure BDA0003045914870000031
wherein D is used for representing a statistical value corresponding to the fault code; n is the number of bits used to characterize the fault value; t is used for representing the acquired timestamp of the fault code; mod is used to characterize the remainder function; int is used for characterizing the rounding function; a for characterizing
Figure BDA0003045914870000032
Calculating the digit corresponding to the result; m is used for characterizing the sequence number; d0For characterizing the fault value.
Optionally, after the statistically storing the at least two fault codes, the method further includes:
receiving a current fault code of the target device;
determining a target serial number corresponding to the current fault code from the serial numbers of the at least two fault codes;
acquiring a target fault value carried in the current fault code;
and storing the current fault code according to the target serial number and the target fault value.
Optionally, after the statistically storing the at least two fault codes, the method further includes:
receiving a fault checking request of a user for the target equipment at a target time;
acquiring a first fault value and a first serial number which are correspondingly stored in the target time;
performing fault code recombination on the first fault value and the first serial number to obtain a first fault code;
and returning the first fault code to the user so that the user determines fault information according to the first fault code.
In a second aspect, an embodiment of the present invention further provides a fault code management apparatus, including:
the acquisition module is used for acquiring historical fault information aiming at the target equipment; the historical fault information comprises at least two fault codes, and each fault code corresponds to different fault information;
a determining module, configured to execute, for each fault code acquired by the acquiring module: determining a fault element corresponding to the fault code, and determining the attribute of the fault element according to a preset variable element list; wherein the attribute of the failed element comprises that the failed element is a variable element or a fixed element;
the integration module is used for summarizing the fault codes which correspond to the same fault element and are determined by the determination module and have the attribute of a variable element to obtain a fault code set corresponding to the variable fault element;
the sequencing module is used for sequencing the fault code set obtained by the integration module and each fault code of the corresponding fixed element determined by the determination module to obtain serial numbers corresponding to the at least two fault codes; wherein the serial number of each fault code in the fault code set is the same;
the analysis module is used for acquiring fault values carried in the at least two fault codes acquired by the acquisition module;
and the statistical storage module is used for performing statistical storage on the at least two fault codes according to the fault values acquired by the analysis module and the serial numbers acquired by the sequencing module.
Optionally, the determining module is further configured to:
analyzing the fault code to obtain an identification code corresponding to the fault element; the fault information comprises fault element information and identification code information thereof;
judging whether the identification code exists in the preset variable element list or not;
if so, determining that the attribute of the fault element is a variable element;
if not, the attribute of the failed component is determined to be a fixed component.
In a third aspect, the present invention further provides a fault code management apparatus, including: at least one memory and at least one processor;
the at least one memory to store a machine readable program;
the at least one processor is configured to invoke the machine-readable program to execute the fault code management method provided by the first aspect or any possible implementation manner of the first aspect.
In a fourth aspect, the present invention further provides a computer-readable medium, on which computer instructions are stored, and when executed by a processor, the computer instructions cause the processor to execute the fault code management method provided in the first aspect or any possible implementation manner of the first aspect.
It can be known from the foregoing solutions that, in the fault code management method and apparatus provided in the embodiments of the present invention, historical fault information including at least two fault codes is classified, and for each fault code, the historical fault information is divided into a fault of a variable element and a fault of a fixed element by determining an attribute of a fault element corresponding to the fault code, where fault codes of variable elements corresponding to the same fault element are summarized into a fault code set of the variable fault element, so as to sort the fault code set and fault codes corresponding to the fixed elements, obtain a serial number corresponding to each fault code, and implement statistical storage of each fault code according to a fault value and the serial number of each fault code. Therefore, the historical fault information is sequenced and defined, the fault codes and the serial numbers are designed in a correlation mode, and therefore the fault codes can be statistically stored through correspondingly storing the fault values and the serial numbers. The display corresponding to different fault display modes can perform induction statistics on fault records based on the serial numbers and the fault values, so that the efficiency of fault information statistics is improved, a more efficient and feasible method is provided for management of different types of fault codes, and the use experience of users is further improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flow chart of a fault code management method provided by an embodiment of the invention;
fig. 2 is a schematic diagram of a device in which a fault code management apparatus according to an embodiment of the present invention is located;
FIG. 3 is a schematic diagram of a fault code management device according to an embodiment of the present invention;
fig. 4 is a flowchart of another fault code management method according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the scope of the present invention.
In the prior art, in the existing fault handling mechanism, the fault codes are usually directly counted and stored, so when a system is equipped with displays with different fault display modes, the number of the fault codes and the time for system logic processing are increased, and the situation that the same fault information corresponds to different fault display contents is easily generated.
Meanwhile, in the prior art, the stored content of the historical fault is usually a fault code, and when the definition of the fault code needs to be changed, the condition of missed change is very easy to occur, so that the phenomenon that the historical fault cannot correctly reflect the operating state of the early-stage air conditioner occurs after the system software of the target equipment is upgraded.
Based on this, the processing mode that the fault codes are sequenced and defined, the fault codes and the serial numbers are designed in an associated mode, and the fault codes are statistically stored based on the serial numbers is considered, so that the defects are solved.
The foregoing is the concept provided by the present invention, and specific implementations of the concept provided by the present invention are described below.
As shown in fig. 1, an embodiment of the present invention provides a fault code management method, which may include the following steps:
step 101: acquiring historical fault information aiming at target equipment; the historical fault information comprises at least two fault codes, and each fault code corresponds to different fault information;
step 102: for each fault code, performing: determining a fault element corresponding to the fault code, and determining the attribute of the fault element according to a preset variable element list; wherein the attribute of the failed element comprises that the failed element is a variable element or a fixed element;
step 103: summarizing all fault codes which correspond to the same fault element and have the attribute of a variable element to obtain a fault code set corresponding to the variable fault element;
step 104: sequencing the fault code set and each fault code of the corresponding fixed element to obtain serial numbers corresponding to at least two fault codes; the serial numbers of all fault codes in the fault code set are the same;
step 105: acquiring fault values carried in at least two fault codes;
step 106: and according to the fault value and the serial number, at least two fault codes are statistically stored.
The fault code management method provided by the embodiment of the invention comprises the steps of classifying historical fault information comprising at least two fault codes, and dividing the historical fault information into the fault of a variable element and the fault of a fixed element by determining the attribute of a corresponding fault element aiming at each fault code, wherein the fault codes of the variable element corresponding to the same fault element are summarized into a fault code set of the variable fault element, so as to sort the fault code set and each fault code of the corresponding fixed element, obtain a serial number corresponding to each fault code, and realize the statistical storage of each fault code according to the fault value and the serial number of each fault code. Therefore, the historical fault information is sequenced and defined, the fault codes and the serial numbers are designed in a correlation mode, and therefore the fault codes can be statistically stored through correspondingly storing the fault values and the serial numbers. The display corresponding to different fault display modes can summarize and count fault records based on the serial numbers and the fault values, corresponding fault codes do not need to be stored, the efficiency of counting fault information is improved, a more efficient and feasible method is provided for management of different types of fault codes, and therefore the use experience of users is further improved.
The failure information included in the history failure information is different from one another. Specifically, the historical fault information is fault codes of all different types of fault types that may occur at the same time by the target device, each fault code corresponds to different fault information, and different fault information may correspond to the same fault element. The elements are components and parts in target equipment.
Optionally, on the basis of the fault code management method shown in fig. 1, step 102 determines the attribute of the faulty component according to a preset variable component list, including:
analyzing the fault code to obtain an identification code corresponding to the fault element; the fault information comprises fault element information and identification code information thereof;
judging whether an identification code exists in a preset variable element list or not;
if so, determining that the attribute of the fault element is a variable element;
if not, the attribute of the failed component is determined to be a fixed component.
In the prior art, when the fault code definition needs to be changed, the condition of missed change is very easy to occur, and meanwhile, because the content of historical fault storage in the prior art is usually fault codes, the phenomenon that the historical fault cannot correctly reflect the operating state of the early-stage air conditioner occurs after the system software of the target equipment is upgraded. Therefore, in order to ensure that the target device can correctly reflect the previous air conditioner operation state after the element replacement, the replaceable element (variable element) needs to be distinguished in advance.
The variable element is a component or a part which causes a change in a fault code when the component or the part of the target device is replaced. The fixed element is a component or part of the target equipment, which has a fixed and unchangeable corresponding fault code. For example, the drive in the air conditioner can be replaced by the drive of brand a to the drive of brand b, and the fault code of the corresponding drive can be changed accordingly. The preset variable element list stores variable elements and corresponding identification codes thereof. For example, the identification code corresponding to the drive is D; the corresponding identification code of the compressor is C.
In the embodiment of the invention, the fault code is analyzed, the identification code of the fault element corresponding to the fault code can be obtained, and when the identification code exists in the preset variable element list, the attribute of the fault element is determined to be the variable element; when the identification code does not exist in the preset variable element list, determining the attribute of the fault element as a fixed element.
Specifically, in the embodiment of the invention, the fault code of the variable element is composed of the identification code and the fault value, wherein the identification code is not changed along with the replacement and the upgrade of the variable element. Therefore, fault codes are distinguished, fault codes of variable elements are flexibly defined, and universality and expandability of fault code management are improved.
In step 103, the fault codes corresponding to the same fault element and having the attribute of a variable element are summarized to obtain a fault code set corresponding to the variable fault element, so that when sorting is performed in step 104, only one serial number can be assigned to the fault code set of the variable fault element, that is, the serial number of each fault code in the fault code set is the same, and all fault codes corresponding to the variable fault element are mapped to one serial number. Therefore, the fault code which changes along with the subsequent element replacement can still correspond to the serial number, the fault code management mode is still feasible without re-sequencing, the efficient management of the fault code is realized, and the use experience of a user is improved.
In step 104, the fault code sets and the fault codes of the corresponding fixed elements are sorted to obtain serial numbers corresponding to at least two fault codes. Specifically, for example, as described in the previous example, the historical failure information includes five failure codes: SE0, SE1, F10, D07, D09; if the identification codes of D07 and D09 are D, the variable element driver is identified, and according to step 103, a set D including D07 and D09 fault codes is obtained0Then for SE0, SE1, F10, D0Sorting to obtain corresponding SE0, SE1, F10 and D0Are respectively 01, 02, 03 and 04. Wherein D07 and D09 both correspond to sequence number 04.
Optionally, on the basis of the fault code management method shown in fig. 1, step 106 statistically stores at least two fault codes according to the fault value and the serial number, including:
for each fault code, performing:
when the attribute of the fault element corresponding to the fault code is a variable element, storing the fault code according to the fault value and the serial number of the fault code;
when the attribute of the fault element corresponding to the fault code is a fixed element, determining a marking value corresponding to the fault value of the fault code, and storing the fault code according to the marking value and the serial number; wherein the flag value is used to flag the malfunctioning fixed element.
In the embodiment of the invention, a fault value carried by each fault code is acquired, and when the attribute of a fault element corresponding to the fault code is a variable element, the fault code is directly stored according to the fault value and a serial number; when the attribute of the fault element corresponding to the fault code is a fixed element, determining a marking value corresponding to the fault value of the fault code, and storing the fault code according to the marking value and the serial number; wherein the flag value is used to indicate that the fixation element is malfunctioning.
In the embodiment of the invention, the corresponding variable element needs to store the serial number and the fault value of the corresponding variable element because the fault value is variable; for the fixed element, as the fault value is fixed and unchanged, the fault information can be stored through the mark value and the serial number which represent that the fault exists, and the accurate statistical storage of the corresponding fault information is ensured while the quantity of the stored information is reduced.
Specifically, as described in the previous example, for D07, if the attribute of the corresponding fault element is a variable element, the fault value of the fault code is 07, and the serial number is 04, the corresponding 0407 is stored; for F10, if the attribute of the corresponding fault element is a fixed element, the corresponding mark value of the fault code is AA, and the serial number is 03, storing 03AA correspondingly; for SE1, if the attribute of the corresponding fault element is a fixed element, the fault value of the fault code corresponds to a flag value AA, and the serial number is 02, then 02AA is stored correspondingly.
Optionally, on the basis of the fault code management method shown in fig. 1, step 106 statistically stores at least two fault codes according to the fault value and the serial number, including:
for each fault code, performing:
determining a timestamp for acquiring the fault code;
generating a statistical value corresponding to the fault code according to the timestamp, the fault value carried by the fault code and the serial number corresponding to the fault code;
sequentially storing the statistical values corresponding to the fault codes according to the time stamps;
wherein, the statistic value corresponding to the fault code is calculated and generated through the following formula;
Figure BDA0003045914870000101
wherein D is used for representing a statistical value corresponding to the fault code; n is the number of bits used to characterize the fault value; t is used for representing the acquired timestamp of the fault code; mod is used to characterize the remainder function; int is used for characterizing the rounding function; a for characterizing
Figure BDA0003045914870000102
Calculating the digit corresponding to the result; m is used for characterizing the serial number; d0For characterizing fault values.
In the embodiment of the invention, for each fault code, a timestamp of the fault code is correspondingly determined and acquired, and a statistical value corresponding to the fault code is generated according to the timestamp, the fault value and a serial number corresponding to the fault code, so that the statistical value is correspondingly stored according to the timestamp sequence. Therefore, the increase of the number of fault codes and the increase of logic processing time caused by directly storing the fault codes are avoided, and the statistical storage of the fault codes is realized more simply and efficiently by only storing the serial numbers and the statistical values.
In addition, in the embodiment of the invention, as the statistical value also comprises the timestamp, the statistical value has uniqueness, so that the time of the fault code can be further accurately determined through the statistical value, so that the user can conveniently check and count, and the use experience of the user is improved.
Specifically, as described in the previous example, for the fault code D07, for example, it is determined that its timestamp is 12/04/2021 (i.e., 20210412), the fault value of the fault code is 07, and the serial number is 04, then the statistical value of the fault code is:
Figure BDA0003045914870000111
wherein n is 2;
Figure BDA0003045914870000112
the remainder of the results is 12;
Figure BDA0003045914870000113
if the result of rounding of (1) is 4, a is 1.
Optionally, on the basis of the fault code management method shown in fig. 1, after the step 106 of statistically storing at least two fault codes, the method further includes:
receiving a current fault code of a target device;
determining a target serial number corresponding to the current fault code from the serial numbers of at least two fault codes;
acquiring a target fault value carried in a current fault code;
and storing the current fault code according to the target serial number and the target fault value.
In the embodiment of the invention, when the current fault code of the target equipment is received, the target serial number of the current fault code is determined from the serial number corresponding to the fault code in the historical fault information, and the target fault value carried in the current fault code is obtained, so that the current fault code is stored according to the target serial number and the target fault value. Therefore, the current fault codes do not need to be directly stored, the number of the stored fault codes is reduced, efficient recording and management of the fault information of the target equipment are facilitated, and the use experience of a user is improved.
In the embodiment of the present invention, the number of fault codes is usually limited in the storage process, and therefore when the currently stored fault codes reach the upper limit of the number, the currently stored fault codes are usually stored by using a cyclic shift method, that is, the first stored fault codes are correspondingly deleted, so as to leave a space for storing the current fault codes.
Optionally, on the basis of the fault code management method shown in fig. 1, after the step 106 of statistically storing at least two fault codes, the method further includes:
receiving a fault checking request of a user for target equipment at a target time;
acquiring a first fault value and a first serial number which are correspondingly stored at a target time;
carrying out fault code recombination on the first fault value and the first serial number to obtain a first fault code;
and returning the first fault code to the user so that the user can determine fault information according to the first fault code.
In the embodiment of the invention, when a fault checking request of a user for a target device at a target event is received, a first fault value and a first serial number (namely, statistical values) stored at the target event are acquired, and fault code recombination is performed according to the first fault value and the first serial number to determine fault information. Therefore, the fault code can be restored through the fault value and the serial number, the problem that the historical fault can not correctly reflect the running state of the air conditioner in the early stage after the system software of the target device is upgraded is solved, and therefore only the fault value and the serial number are stored, the management efficiency of the fault code is improved, the fault code is more applicable, and the use experience of a user can be further improved.
As shown in fig. 2 and 3, an embodiment of the present invention provides a fault code management apparatus. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. From a hardware level, as shown in fig. 2, a hardware structure diagram of a device in which a fault code management apparatus provided in the embodiment of the present invention is located is shown, where in addition to the processor, the memory, the network interface, and the nonvolatile memory shown in fig. 2, the device in which the apparatus is located in the embodiment may also generally include other hardware, such as a forwarding chip responsible for processing a packet, and the like. Taking a software implementation as an example, as shown in fig. 3, as a logical apparatus, the apparatus is formed by reading, by a CPU of a device in which the apparatus is located, corresponding computer program instructions in a non-volatile memory into a memory for execution. As shown in fig. 3, an embodiment of the present invention provides a fault code management apparatus, including:
an obtaining module 301, configured to obtain historical failure information for a target device; the historical fault information comprises at least two fault codes, and each fault code corresponds to different fault information;
a determining module 302, configured to perform, for each fault code acquired by the acquiring module 301: determining a fault element corresponding to the fault code, and determining the attribute of the fault element according to a preset variable element list; wherein the attribute of the failed element comprises that the failed element is a variable element or a fixed element;
an integrating module 303, configured to summarize the fault codes that are determined by the determining module 302 and correspond to the same faulty component and have the attribute of a variable component, so as to obtain a fault code set corresponding to the variable faulty component;
a sorting module 304, configured to sort the fault code set obtained by the integrating module 303 and the fault codes of the corresponding fixed elements determined by the determining module 302 to obtain serial numbers corresponding to at least two fault codes; the serial numbers of all fault codes in the fault code set are the same;
an analyzing module 305, configured to obtain a fault value carried in at least two fault codes obtained by the obtaining module 301;
and a statistical storage module 306 for performing statistical storage on at least two fault codes according to the fault values obtained by the analysis module 305 and the serial numbers obtained by the sorting module 304.
Optionally, on the basis of the fault code management apparatus shown in fig. 3, the determining module 302 is further configured to perform the following operations:
analyzing the fault code to obtain an identification code corresponding to the fault element; the fault information comprises fault element information and identification code information thereof;
judging whether an identification code exists in a preset variable element list or not;
if so, determining that the attribute of the fault element is a variable element;
if not, the attribute of the failed component is determined to be a fixed component.
Optionally, on the basis of the fault code management apparatus shown in fig. 3, the statistical storage module 306 is further configured to perform the following operations:
for each fault code, performing:
when the attribute of the fault element corresponding to the fault code is a variable element, storing the fault code according to the fault value and the serial number of the fault code;
when the attribute of the fault element corresponding to the fault code is a fixed element, determining a marking value corresponding to the fault value of the fault code, and storing the fault code according to the marking value and the serial number; wherein the flag value is used to indicate that the fixation element is malfunctioning.
Optionally, on the basis of the fault code management apparatus shown in fig. 3, the statistical storage module 306 is further configured to perform the following operations:
for each fault code, performing:
determining a timestamp for acquiring the fault code;
generating a statistical value corresponding to the fault code according to the timestamp, the fault value carried by the fault code and the serial number corresponding to the fault code;
sequentially storing the statistical values corresponding to the fault codes according to the time stamps;
wherein, the statistic value corresponding to the fault code is calculated and generated through the following formula;
Figure BDA0003045914870000141
wherein D is used forCharacterizing a statistical value corresponding to the fault code; n is the number of bits used to characterize the fault value; t is used for representing the acquired timestamp of the fault code; mod is used to characterize the remainder function; int is used for characterizing the rounding function; a for characterizing
Figure BDA0003045914870000142
Calculating the digit corresponding to the result; m is used for characterizing the serial number; d0For characterizing fault values.
Optionally, on the basis of the fault code management apparatus shown in fig. 3, the statistical storage module 306 is further configured to perform the following operations:
receiving a current fault code of a target device;
determining a target serial number corresponding to the current fault code from the serial numbers of at least two fault codes;
acquiring a target fault value carried in a current fault code;
and storing the current fault code according to the target serial number and the target fault value.
Optionally, on the basis of the fault code management apparatus shown in fig. 3, the apparatus further includes: a query module to perform the following operations:
receiving a fault checking request of a user for target equipment at a target time;
acquiring a first fault value and a first serial number which are correspondingly stored at a target time;
carrying out fault code recombination on the first fault value and the first serial number to obtain a first fault code;
and returning the first fault code to the user so that the user can determine fault information according to the first fault code.
It is to be understood that the illustrated structure of the embodiment of the present invention does not specifically limit the fault code management apparatus. In other embodiments of the invention, the fault code management device may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, firmware, or a combination of firmware and hardware.
Because the content of information interaction, execution process, and the like among the modules in the device is based on the same concept as the method embodiment of the present invention, specific content can be referred to the description in the method embodiment of the present invention, and is not described herein again.
As shown in fig. 4, in order to more clearly illustrate the technical solution and the advantages of the present invention, the following further describes in detail the fault code management method provided by the embodiment of the present invention, which specifically includes:
step 401: and sequencing the historical fault messages of the target equipment.
Specifically, historical fault information for the target device is acquired; the historical fault information comprises at least two fault codes, and each fault code corresponds to different fault information;
for each fault code, performing: determining a fault element corresponding to the fault code;
analyzing the fault code to obtain an identification code corresponding to the fault element; the fault information comprises fault element information and identification code information thereof;
judging whether an identification code exists in a preset variable element list or not;
if so, determining that the attribute of the fault element is a variable element;
if not, determining the attribute of the failed element as a fixed element
Summarizing all fault codes which correspond to the same fault element and have the attribute of a variable element to obtain a fault code set corresponding to the variable fault element;
sequencing the fault code set and each fault code of the corresponding fixed element to obtain serial numbers corresponding to at least two fault codes; wherein the serial number of each fault code in the fault code set is the same.
Step 402: and storing the historical fault information.
Specifically, for each fault code, the following is performed:
determining a timestamp for acquiring the fault code;
acquiring fault values carried in at least two fault codes;
when the attribute of the fault element corresponding to the fault code is a variable element, generating a statistical value corresponding to the fault code according to the timestamp, the fault value carried by the fault code and the serial number corresponding to the fault code, and storing the statistical value;
when the attribute of the fault element corresponding to the fault code is a fixed element, determining a marking value corresponding to the fault value of the fault code, generating a statistical value corresponding to the fault code according to the marking value, the timestamp and the serial number corresponding to the fault code, and storing the statistical value; wherein the flag value is used to indicate that the fixation element is faulty;
wherein, the statistic value corresponding to the fault code is calculated and generated through the following formula;
Figure BDA0003045914870000161
wherein D is used for representing a statistical value corresponding to the fault code; n is the number of bits used to characterize the fault or flag value; t is used for representing the acquired timestamp of the fault code; mod is used to characterize the remainder function; int is used for characterizing the rounding function; a for characterizing
Figure BDA0003045914870000171
Calculating the digit corresponding to the result; m is used for characterizing the serial number; d0For characterizing fault values or signature values.
Step 403: and storing the current fault code.
Specifically, receiving a current fault code of a target device;
determining a target serial number corresponding to the current fault code from the serial numbers of at least two fault codes;
acquiring a target fault value carried in a current fault code;
and storing the current fault code according to the target serial number and the target fault value.
It should be noted that, according to step 402, the current fault code is stored according to the target serial number and the target fault value.
Step 404: and acquiring a corresponding fault code according to the fault checking request.
Specifically, a fault checking request of a user for target equipment at a target time is received;
acquiring a first fault value and a first serial number which are correspondingly stored at a target time;
carrying out fault code recombination on the first fault value and the first serial number to obtain a first fault code;
and returning the first fault code to the user so that the user can determine fault information according to the first fault code.
The present invention also provides a computer readable medium storing instructions for causing a machine to perform a fault code management method as described herein. Specifically, a system or an apparatus equipped with a storage medium on which firmware program codes that realize the functions of any of the above-described embodiments are stored may be provided, and a computer (or a CPU or MPU) of the system or the apparatus is caused to read out and execute the program codes stored in the storage medium.
In this case, the program code itself read from the storage medium can realize the functions of any of the above-described embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.
Examples of the storage medium for supplying the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (e.g., CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD + RW), a magnetic tape, a nonvolatile memory card, and a ROM. Alternatively, the program code may be downloaded from a server computer via a communications network.
Further, it should be clear that the functions of any one of the above-described embodiments may be implemented not only by executing the program code read out by the computer, but also by causing an operating system or the like operating on the computer to perform a part or all of the actual operations based on instructions of the program code.
Further, it is to be understood that the program code read out from the storage medium is written to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion module connected to the computer, and then causes a CPU or the like mounted on the expansion board or the expansion module to perform part or all of the actual operations based on instructions of the program code, thereby realizing the functions of any of the above-described embodiments.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a" does not exclude the presence of other similar elements in a process, method, article, or apparatus that comprises the element.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it is to be noted that: the above description is only a preferred embodiment of the present invention, and is only used to illustrate the technical solutions of the present invention, and not to limit the protection scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. The fault code management method comprises the following steps:
acquiring historical fault information aiming at target equipment; the historical fault information comprises at least two fault codes, and each fault code corresponds to different fault information;
for each fault code, performing: determining a fault element corresponding to the fault code, and determining the attribute of the fault element according to a preset variable element list; wherein the attribute of the failed element comprises that the failed element is a variable element or a fixed element;
summarizing all fault codes which correspond to the same fault element and have the attribute of a variable element to obtain a fault code set corresponding to the variable fault element;
sequencing the fault code set and each fault code of the corresponding fixed element to obtain serial numbers corresponding to the at least two fault codes; wherein the serial number of each fault code in the fault code set is the same;
acquiring fault values carried in the at least two fault codes;
and according to the fault value and the serial number, performing statistical storage on the at least two fault codes.
2. The method of claim 1, wherein determining the attributes of the failed component from a preset list of variable components comprises:
analyzing the fault code to obtain an identification code corresponding to the fault element; the fault information comprises fault element information and identification code information thereof;
judging whether the identification code exists in the preset variable element list or not;
if so, determining that the attribute of the fault element is a variable element;
if not, the attribute of the failed component is determined to be a fixed component.
3. The method of claim 1, wherein the statistically storing the at least two fault codes based on the fault value and the sequence number comprises:
for each fault code, performing:
when the attribute of the fault element corresponding to the fault code is a variable element, storing the fault code according to the fault value and the serial number of the fault code;
when the attribute of the fault element corresponding to the fault code is a fixed element, determining a marking value corresponding to the fault value of the fault code, and storing the fault code according to the marking value and the serial number; wherein the flag value is used to characterize the presence of a failure of the fixed element.
4. The method of claim 1, wherein the statistically storing the at least two fault codes based on the fault value and the sequence number comprises:
for each fault code, performing:
determining a timestamp for acquiring the fault code;
generating a statistical value corresponding to the fault code according to the timestamp, the fault value carried by the fault code and the serial number corresponding to the fault code;
sequentially storing the statistical values corresponding to the fault codes according to the time stamps;
wherein, the statistic value corresponding to the fault code is calculated and generated through the following formula;
Figure FDA0003045914860000021
wherein D is used for representing a statistical value corresponding to the fault code; n is the number of bits used to characterize the fault value; t is used for representing the acquired timestamp of the fault code; mod is used to characterize the remainder function; int is used for characterizing the rounding function; a for characterizing
Figure FDA0003045914860000022
Calculating the digit corresponding to the result; m is used for characterizing the sequence number; d0For characterizing the fault value.
5. The method of claim 1, further comprising, after said statistically storing said at least two fault codes:
receiving a current fault code of the target device;
determining a target serial number corresponding to the current fault code from the serial numbers of the at least two fault codes;
acquiring a target fault value carried in the current fault code;
and storing the current fault code according to the target serial number and the target fault value.
6. The method according to any one of claims 1 to 5, further comprising, after said statistically storing said at least two fault codes:
receiving a fault checking request of a user for the target equipment at a target time;
acquiring a first fault value and a first serial number which are correspondingly stored in the target time;
performing fault code recombination on the first fault value and the first serial number to obtain a first fault code;
and returning the first fault code to the user so that the user determines fault information according to the first fault code.
7. A fault code management device, comprising:
the acquisition module is used for acquiring historical fault information aiming at the target equipment; the historical fault information comprises at least two fault codes, and each fault code corresponds to different fault information;
a determining module, configured to execute, for each fault code acquired by the acquiring module: determining a fault element corresponding to the fault code, and determining the attribute of the fault element according to a preset variable element list; wherein the attribute of the failed element comprises that the failed element is a variable element or a fixed element;
the integration module is used for summarizing the fault codes which correspond to the same fault element and are determined by the determination module and have the attribute of a variable element to obtain a fault code set corresponding to the variable fault element;
the sequencing module is used for sequencing the fault code set obtained by the integration module and each fault code of the corresponding fixed element determined by the determination module to obtain serial numbers corresponding to the at least two fault codes; wherein the serial number of each fault code in the fault code set is the same;
the analysis module is used for acquiring fault values carried in the at least two fault codes acquired by the acquisition module;
and the statistical storage module is used for performing statistical storage on the at least two fault codes according to the fault values acquired by the analysis module and the serial numbers acquired by the sequencing module.
8. The apparatus of claim 7, wherein the determining module is further configured to:
analyzing the fault code to obtain an identification code corresponding to the fault element; the fault information comprises fault element information and identification code information thereof;
judging whether the identification code exists in the preset variable element list or not;
if so, determining that the attribute of the fault element is a variable element;
if not, the attribute of the failed component is determined to be a fixed component.
9. A fault code management device, comprising: at least one memory and at least one processor;
the at least one memory to store a machine readable program;
the at least one processor, configured to invoke the machine readable program to perform the fault code management method of any of claims 1 to 6.
10. Computer readable medium having stored thereon computer instructions which, when executed by a processor, cause the processor to perform the fault code management method of any of claims 1 to 6.
CN202110488970.0A 2021-04-29 2021-04-29 Fault code management method and device Active CN113127541B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110488970.0A CN113127541B (en) 2021-04-29 2021-04-29 Fault code management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110488970.0A CN113127541B (en) 2021-04-29 2021-04-29 Fault code management method and device

Publications (2)

Publication Number Publication Date
CN113127541A true CN113127541A (en) 2021-07-16
CN113127541B CN113127541B (en) 2022-09-20

Family

ID=76781525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110488970.0A Active CN113127541B (en) 2021-04-29 2021-04-29 Fault code management method and device

Country Status (1)

Country Link
CN (1) CN113127541B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090213779A1 (en) * 2006-09-18 2009-08-27 Aimin Zhang Multi-hop wireless relay communication system and downlink data transmitting method and device
US20140164873A1 (en) * 2012-12-12 2014-06-12 HGST Netherlands B.V. Techniques For Storing Bits in Memory Cells Having Stuck-at Faults
US20150138579A1 (en) * 2013-11-15 2015-05-21 Toshiba Tec Kabushiki Kaisha Maintenance method and maintenance apparatus for information processing apparatus
CN106886406A (en) * 2017-01-19 2017-06-23 阿里巴巴集团控股有限公司 The generation method and device of exploitation code or document
CN110347402A (en) * 2019-06-20 2019-10-18 深圳市掌握时代互联网应用科技有限公司 A kind of code storage system based on HECF
CN111930273A (en) * 2020-06-02 2020-11-13 广州视源电子科技股份有限公司 Capacitive touch screen and electronic equipment
JP2021005758A (en) * 2019-06-25 2021-01-14 東芝三菱電機産業システム株式会社 Failure data recording system and failure data transmitting device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090213779A1 (en) * 2006-09-18 2009-08-27 Aimin Zhang Multi-hop wireless relay communication system and downlink data transmitting method and device
US20140164873A1 (en) * 2012-12-12 2014-06-12 HGST Netherlands B.V. Techniques For Storing Bits in Memory Cells Having Stuck-at Faults
US20150138579A1 (en) * 2013-11-15 2015-05-21 Toshiba Tec Kabushiki Kaisha Maintenance method and maintenance apparatus for information processing apparatus
CN106886406A (en) * 2017-01-19 2017-06-23 阿里巴巴集团控股有限公司 The generation method and device of exploitation code or document
CN110347402A (en) * 2019-06-20 2019-10-18 深圳市掌握时代互联网应用科技有限公司 A kind of code storage system based on HECF
JP2021005758A (en) * 2019-06-25 2021-01-14 東芝三菱電機産業システム株式会社 Failure data recording system and failure data transmitting device
CN111930273A (en) * 2020-06-02 2020-11-13 广州视源电子科技股份有限公司 Capacitive touch screen and electronic equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
ARNE ANSPER等: "Improving the availability of time-stamping services", 《INFORMATION SECURITY AND PRIVACY》 *
TAO JI等: "Automated program repair by using similar code containing fix ingredients", 《2016 IEEE 40TH ANNUAL COMPUTER SOFTWARE AND APPLICATIONS CONFERENCE 》 *
陆赛菊: "案例推理在汽车故障诊断中的运用", 《中国高新技术企业 》 *

Also Published As

Publication number Publication date
CN113127541B (en) 2022-09-20

Similar Documents

Publication Publication Date Title
US8230259B2 (en) Automatic analysis of log entries through use of clustering
JP6780655B2 (en) Log analysis system, method and program
US20080120601A1 (en) Information processing apparatus, method and program for deciding priority of test case to be carried out in regression test background of the invention
US20090199118A1 (en) System and Method for Visualization of Time-Based Events
US20110246835A1 (en) Management server and management system
CN111240876B (en) Fault positioning method and device for micro-service, storage medium and terminal
CN112579327B (en) Fault detection method, device and equipment
CN111767350A (en) Data warehouse testing method and device, terminal equipment and storage medium
WO2018069950A1 (en) Method, system, and program for analyzing logs
US8090994B2 (en) System, method, and computer readable media for identifying a log file record in a log file
CN113127541B (en) Fault code management method and device
JPWO2018066661A1 (en) Log analysis method, system and recording medium
CN107391551B (en) Web service data analysis method and system based on data mining
US6681347B1 (en) Method for testing keyboard complied with language code
CN114491044A (en) Log processing method and device
JPWO2018122889A1 (en) Anomaly detection method, system and program
CN113220594A (en) Automatic testing method, device, equipment and storage medium
CN113836152A (en) High-efficiency data consistency checking method and device and storage medium
US7587519B2 (en) Method and device for modifying modular messages
CN117931635B (en) Analysis method, device, equipment and medium for database test case execution result
CN113360505B (en) Time sequence data-based data processing method and device, electronic equipment and readable storage medium
CN113783849B (en) Sensitive information detection method and terminal
CN115470865A (en) Failure analysis standard process adjusting method and system
CN116303627A (en) Query method and device for semiconductor test data, electronic equipment and storage medium
JP2002222098A (en) System and method for analyzing log file

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
GR01 Patent grant
GR01 Patent grant