Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention more comprehensible, right hereinafter, referring to the drawings and the embodiments,
Scheme of the present invention is described in further detail.
The embodiment of the invention discloses a kind of methods of intelligent fault diagnosis maintenance, include the following steps, flow diagram
As shown in Figure 1.
Step 11 obtains fault type;
Step 12 determines corresponding pre-set regular class file, the rule class file packet according to fault type
Containing diagnosis and repair information, and the regular class file is loaded based on the diagnosis and repair information processing failure;
Step 13, the output diagnosis and repair information.
In one embodiment, the acquisition fault type in step 11 includes:
Receive the fault diagnosis request that user is sent with speech form or image format;
It is integrated according to fault diagnosis request, determines fault type.
It should be noted that requesting for fault diagnosis, user can be with speech form, image format, etc., Ke Yishi
Any form of other failure makes requests, including but not limited to voice or image format.
In the embodiment of the present invention, Web Service interface can be called directly to obtain from the fault data source after integration
All fault types corresponding to the failure.
Web Services: by enterprise publication completion its specific business needs application on site service, other companies or
Application software can be accessed by Internet and use this online service.Web Service technology to operate in not
It need not be by additional, special third party software or hardware, i.e. exchange data or integrated with the different application on machine.According to
According between the application of Web Service enforcement of regulations, no matter what their used language, platform or internal agreements are, all
Data can be exchanged with each other.It therefore, can be entire enterprise even more than between tissue by calling Web Service interface
The integrated of operation flow provide a general mechanism, consequently facilitating obtain fault type.
In one embodiment, corresponding pre-set Regularia text is determined according to fault type in step 12
Part includes:
Fault diagnosis data table is inquired according to fault type to determine the Regularia filename for corresponding to fault type;According to
Regularia filename corresponding to fault type obtains determining regular class file from fault data configuration file.
For example, fault diagnosis data table and fault data configuration file are stored in advance in regulation engine.
Fault diagnosis data table, the corresponding relationship for record rule class file and fault type;
Fault data configuration file, for storing the regular class file for corresponding to various fault types.
After obtaining fault type, fault diagnosis data table is inquired according to fault type and corresponds to fault type to determine
Then Regularia filename obtains determining regular class file from fault data configuration file again.
In one embodiment, the load regular class file in step 12 is based at the diagnosis and repair information
Managing failure includes:
The regular class file is loaded into memory, diagnosis and repair information, and create-rule packet are parsed;
Execute rule packet.
For example, regulation engine can obtain corresponding regular class file according to fault type after obtaining fault type
(class), regular class file includes diagnosis and repair information.Then regular class file is loaded into memory with create-rule
Packet, then starts the diagnosis and repair information in executing rule packet.After being finished, then by rule packet in diagnosis and repair information,
It is returned to the application program of calling rule packet.Entire implementation procedure is simple and efficient, to ensure that regulation engine to greatest extent
Stability and performance.
In one embodiment, the output diagnosis and repair information in step 13 includes:
The diagnosis and repair information is shown in user interface (UI, User Interface), to prompt user
It is operated according to the diagnosis and repair information.
After embodiments of the present invention, each rule can be configured by dynamic flexible in fault data configuration file
Class file so as to the abnormality processing rule of the dynamic adaptation production numerous variation of walking intermediate frequency, while being also greatly reduced code
Maintenance cost, regular configuration process is also very simple, only need to be in the configuration page configuration rule class file name of regulation engine, rule
The rule configuration of new business can be completed in condition (diagnosis and repair information).
In addition, the control to regular all-dimensional multi-angle may be implemented in the regulation engine, rule is such as opened repeatedly, monitors certain
The application time of one rule, the data such as applying frequency.In addition, can be carried out when existing configuration is unable to complete a certain rule corresponding
The suggestion of new rule.Moreover, the regulation engine only needs to be simply input some basic datas and passes through for system user
The foundation of rule can be completed in mouse drag.
Based on same inventive concept, the embodiment of the present invention also proposed a kind of device of intelligent fault diagnosis maintenance, such as
Shown in Fig. 2.The device includes:
Acquiring unit 201 obtains fault type;
Processing unit 202 determines corresponding pre-set regular class file, the Regularia text according to fault type
Part includes diagnosis and repair information, and loads the regular class file based on the diagnosis and repair information processing failure;
Output unit 203 exports the diagnosis and repair information.
The acquiring unit 201 is specifically used for:
Receive the fault diagnosis request that user is sent with speech form or image format;
It is integrated according to fault diagnosis request, determines fault type.
The processing unit 202 is specifically used for:
Fault diagnosis data table is inquired according to fault type to determine the Regularia filename for corresponding to fault type;
Determining Regularia is obtained from fault data configuration file according to the Regularia filename for corresponding to fault type
File.
The processing unit 202 is specifically used for:
The regular class file is loaded into memory, diagnosis and repair information, and create-rule packet are parsed;
Execute rule packet.
The output unit 203 is specifically used for:
The diagnosis and repair information is shown in user interface UI, to prompt user to be believed according to the diagnosis and repair
Breath is operated.
It is of the invention to clearly illustrate, concrete scene is set forth below and is illustrated.Assuming that user mobile phone occurs that electric fault is not added.
Firstly, acquiring unit gets the not powered event of the mobile phone of user's transmission by speech form or image format
Barrier diagnosis request instruction.Mobile phone is not added there are many electric faults, for example, screen is not powered, the not powered equal fault types of battery, and often
The corresponding fault handling logic of kind fault type is also different.Assuming that electric fault is not added in mobile phone in the present embodiment includes 10 kinds of events
Hinder type.Acquiring unit will provide mobile phone by integration and all 10 kinds of fault types descriptions corresponding to electric fault are not added, with
For subsequent carry out diagnosis and repair.
Then, regulation engine, that is, processing unit obtains corresponding regular class file according to 10 kinds of fault types.It is all
Regular class file is pre-configured in regulation engine.Each rule class file includes the corresponding diagnosis and repair of corresponding failure type
Information.10 regular class files are loaded into memory with create-rule packet by regulation engine, are then started in executing rule packet
Diagnosis and repair information.After being finished, then by the diagnosis and repair information in rule packet, it is returned to the application journey of calling rule packet
Sequence is sent to output unit.
It is shown in the interface UI finally, the corresponding all diagnosis and repair information of electric fault are not added in mobile phone by output unit
Come.In this way, user can voluntarily carry out diagnosis and repair according to prompt, for example, being not screen according to prompt step diagnosis confirmation
When curtain is not powered, into next prompt step, it is confirmed whether it is that battery is not powered, until being resolved result.
In conclusion method and device of the invention is not needed suitable for the diagnosis and maintenance of all electronic products as existing
Have that technology is such, by manually summarize write it is some illustrate document, operated accordingly by manually downloading, not only process is multiple in this way
It is miscellaneous, and high labor cost, it searches complicated, it is not easy to grasp.In embodiments of the present invention, fault type is obtained;According to failure
Type determines corresponding pre-set regular class file, and the rule class file includes diagnosis and repair information, and is loaded
The rule class file is to be based on the diagnosis and repair information processing failure;Export the diagnosis and repair information.It can be seen that answering
After the present invention, automation fault diagnosis maintenance mode, system Auto-matching fault message and corresponding diagnosis are realized
Maintenance flow greatly improves the accuracy of fault diagnosis, reduces artificial participation cost, improves customer experience.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.It is all
Within the spirit and principles in the present invention, any modification, equivalent replacement, improvement and so on should be included in protection of the invention
Within the scope of.