CN105446857A - Fault diagnosis method and system - Google Patents

Fault diagnosis method and system Download PDF

Info

Publication number
CN105446857A
CN105446857A CN201510784122.9A CN201510784122A CN105446857A CN 105446857 A CN105446857 A CN 105446857A CN 201510784122 A CN201510784122 A CN 201510784122A CN 105446857 A CN105446857 A CN 105446857A
Authority
CN
China
Prior art keywords
equipment
current
characterize
facility information
network
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
Application number
CN201510784122.9A
Other languages
Chinese (zh)
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.)
Shandong Chaoyue Numerical Control Electronics Co Ltd
Original Assignee
Shandong Chaoyue Numerical Control Electronics 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 Shandong Chaoyue Numerical Control Electronics Co Ltd filed Critical Shandong Chaoyue Numerical Control Electronics Co Ltd
Priority to CN201510784122.9A priority Critical patent/CN105446857A/en
Publication of CN105446857A publication Critical patent/CN105446857A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance or administration or management of packet switching networks
    • H04L41/04Architectural aspects of network management arrangements
    • H04L41/044Arrangements involving a hierarchical management structure

Abstract

The present invention provides a fault diagnosis method and system. The method comprises: determining a plurality of target devices comprised in a computer system; grouping the plurality of target devices according to types of the devices; and performing, according to a type of devices comprised in each group, fault diagnosis on devices comprised in a corresponding group. According to the diagnosis method, a plurality of devices in the computer system are grouped according to types of the devices, so that devices comprised in each group are of a same type. Fault diagnosis is separately performed on devices of a corresponding group according to a type of the devices comprised in each group, so that an accuracy rate of fault diagnosis may be improved.

Description

A kind of method for diagnosing faults and system
Technical field
The present invention relates to information monitoring technical field, particularly a kind of method for diagnosing faults and system.
Background technology
Along with the development of computer technology, fault diagnosis technology has been widely used in computerized information monitoring field, can monitor system or equipment internal module in real time, to ensure can to react the very first time when system or equipment breaks down, provide warning.
At present, by after powering on to computer motherboard for the fault diagnosis mode of computer motherboard, by detecting the heating temp of each device, by by the heating temp of each device compared with the normal temperature range of this device, whether determining device breaks down.
But existing fault diagnosis mode is single, and for some devices in computer motherboard when heating temp is higher, not necessarily illustrate and there occurs fault, therefore, the accuracy rate of this fault diagnosis mode is lower.
Summary of the invention
In view of this, the invention provides a kind of method for diagnosing faults and system, to improve the accuracy rate of fault diagnosis.
First aspect, the invention provides a kind of method for diagnosing faults, comprising:
Determine multiple target devices included in computer system;
Described multiple target device is divided into groups according to the type of equipment;
According to the type of equipment included in each grouping, fault diagnosis is carried out to included equipment in corresponding grouping.
Preferably, the type of described equipment comprises: in PCI equipment, the network equipment and CAN communication equipment any one or multiple.
Preferably, when the type of equipment included in current group is PCI equipment, described fault diagnosis is carried out to included equipment in corresponding grouping, comprising:
Obtain the facility information of the current equipment be connected with pci bus;
And the activation bit of each included PCI equipment in reading current group;
According to the activation bit of each the current PC I equipment read, search in the facility information obtained respectively, if when not finding the facility information corresponding to current PC I equipment in the facility information obtained, then characterize this current PCI equipment failure, otherwise, characterize this current PCI equipment normal.
Preferably, when the type of equipment included in current group is the network equipment, described fault diagnosis is carried out to included equipment in corresponding grouping, comprising:
Obtain the facility information of the current equipment be connected with pci bus;
And the activation bit of each included network equipment in reading current group;
According to the activation bit of each current network device read, search in the facility information obtained respectively, if when not finding the facility information corresponding to current network device in the facility information obtained, then characterize this current network equipment failure, otherwise, the Link State of checking current network device, if the Link State of current network device is abnormal, then characterize this current network equipment failure, otherwise, characterize this current network device normal.
Preferably, the type of equipment included in current group is CAN communication equipment, describedly carries out fault diagnosis to included equipment in corresponding grouping, comprising:
Determine the access way of each current C AN communication facilities in current group, comprise current C AN communication facilities in access way to be connected with URAT interface by USB interface, and utilize this URAT interface to be connected with CAN mode time, judge whether existence/dev/ttyUBU0 device node;
If do not exist, then characterize current C AN communication equipment fault;
If exist, then test according to the transceiving data of object time section to this current CAN communication equipment that pre-set, test not by time, then characterize current C AN communication equipment fault, test by time, then characterize current C AN communication facilities normal.
Preferably, comprise further:
According to fault diagnosis result, generate diagnostic trouble code, and export the diagnostic trouble code generated.
Second aspect, the invention provides a kind of fault diagnosis system, comprising:
Determining unit, for determining multiple target devices included in computer system;
Division unit, for dividing into groups described multiple target device according to the type of equipment;
Diagnosis unit, for the type according to equipment included in each grouping, carries out fault diagnosis to included equipment in corresponding grouping.
Preferably,
When the type of equipment included in current group is PCI equipment, described diagnosis unit, specifically for obtaining the facility information of the current equipment be connected with pci bus; And the activation bit of each included PCI equipment in reading current group; According to the activation bit of each the current PC I equipment read, search in the facility information obtained respectively, if when not finding the facility information corresponding to current PC I equipment in the facility information obtained, then characterize this current PCI equipment failure, otherwise, characterize this current PCI equipment normal;
And/or,
When the type of equipment included in current group is the network equipment, described diagnosis unit, specifically for obtaining the facility information of the current equipment be connected with pci bus; And the activation bit of each included network equipment in reading current group; According to the activation bit of each current network device read, search in the facility information obtained respectively, if when not finding the facility information corresponding to current network device in the facility information obtained, then characterize this current network equipment failure, otherwise, the Link State of checking current network device, if the Link State of current network device is abnormal, then characterize this current network equipment failure, otherwise, characterize this current network device normal.
Preferably, when the type of equipment included in current group is CAN communication equipment, described diagnosis unit, specifically for determining the access way of each current C AN communication facilities in current group, comprise current C AN communication facilities in access way to be connected with URAT interface by USB interface, and utilize this URAT interface to be connected with CAN mode time, judge whether existence/dev/ttyUBU0 device node; If do not exist, then characterize current C AN communication equipment fault; If exist, then test according to the transceiving data of object time section to this current CAN communication equipment that pre-set, test not by time, then characterize current C AN communication equipment fault, test by time, then characterize current C AN communication facilities normal.
Preferably, comprise further:
Processing unit, for according to fault diagnosis result, generates diagnostic trouble code, and exports the diagnostic trouble code generated.
Embodiments provide a kind of method for diagnosing faults and system, by dividing into groups according to the type of equipment to multiple equipment included in computer system, included equipment in each grouping is made to have identical type, type according to equipment included in each grouping carries out fault diagnosis to included equipment in corresponding grouping respectively, thus can improve the accuracy rate of fault diagnosis.
Accompanying drawing explanation
Fig. 1 is the method for diagnosing faults process flow diagram that the embodiment of the present invention provides;
Fig. 2 is the method for diagnosing faults process flow diagram for PCI equipment that the embodiment of the present invention provides;
Fig. 3 is the method for diagnosing faults process flow diagram for the network equipment that the embodiment of the present invention provides;
Fig. 4 is the method for diagnosing faults process flow diagram for CAN communication equipment that the embodiment of the present invention provides;
Fig. 5 is the fault diagnosis system structural representation that the embodiment of the present invention provides;
Fig. 6 is another schematic diagram of the fault diagnosis system structure that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described.Obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments provide a kind of method for diagnosing faults, the method can comprise the following steps: determine multiple target devices included in computer system; Described multiple target device is divided into groups according to the type of equipment; For the type of equipment included in each grouping, fault diagnosis is carried out to included equipment in corresponding grouping.By dividing into groups according to the type of equipment to multiple equipment included in computer system, included equipment in each grouping is made to have identical type, type according to equipment included in each grouping carries out fault diagnosis to included equipment in corresponding grouping respectively, thus can improve the accuracy rate of fault diagnosis.
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with drawings and the specific embodiments, the present invention is described in further detail.
As shown in Figure 1, embodiments provide a kind of method for diagnosing faults, the method can comprise the following steps:
Step 101: determine multiple target devices included in computer system.
In the present embodiment, multiple equipment is included in computer system, such as, sound card, video card, network interface card, hub, switch, bridge, router, gateway, network interface unit (NIC), WAP (WAP), printer, modulator-demodular unit, fiber optical transceiver, optical cable, storer and controller etc.
Wherein, each equipment included in computer system has its very important effect in computer system, if certain device fails, does not notify in time, may bring great impact to user.Therefore, need to carry out fault diagnosis to each equipment in computer system, to ensure, when certain equipment failure, the equipment of this fault to be learnt in time, and can repair or replace the equipment of this fault in time.
It should be noted that, user all can carry out fault diagnosis to equipment all in computer system, also according to business demand, can carry out fault diagnosis to the multiple target devices of specifying in computer system.Below to determine that multiple target device comprises: sound card, video card, network interface card, printer, modulator-demodular unit, storer and controller are described the present embodiment.
Step 102: the type of multiple target device according to equipment is divided into groups.
In the present embodiment, in order to improve the accuracy rate of fault diagnosis, the type of multiple target device according to equipment can be divided into groups.
In a preferred embodiment of the invention, the type of this equipment can comprise: in PCI (PeripheralComponentInterconnect) equipment, the network equipment and CAN (ControllerAreaNetwork) communication facilities any one or multiple.
Wherein, PCI equipment refers to the equipment by being connected to access computer system with pci bus.The network equipment is the physical entity for being connected in network, wherein the network equipment also can be the equipment by being connected to access computer system with pci bus, in the present embodiment, the equipment in the equipment by being connected to access computer system with pci bus except the network equipment is referred to as PCI equipment.CAN communication equipment refers to the equipment by being connected to access computer system with CAN.
Wherein, according to the multiple target devices determined in step 101, can divide into groups as follows to multiple target device:
Grouping one: the device type in this grouping is PCI equipment, and the equipment in this grouping can comprise sound card, video card.
Grouping two: the device type in this grouping is the network equipment, and the equipment in this grouping can comprise network interface card, printer, modulator-demodular unit.
Grouping three: the device type in this grouping is CAN communication equipment, and the equipment in this grouping can comprise storer, controller.
Step 103: for the type of equipment included in each grouping, carries out fault diagnosis to included equipment in corresponding grouping.
The present embodiment can use acceptance of the bid kylin operating system to carry out fault diagnosis to each equipment in computer system.
In the present embodiment, in order to improve the accuracy rate of the fault diagnosis of equipment, can for the different fault diagnosis mode of the equipment use of different types, carry out fault diagnosis respectively according to equipment in three groupings be divided into the equipment in computer system in step 102 below.
First, please refer to Fig. 2, the fault diagnosis for PCI equipment in grouping one can in the following way:
Step 201: main frame sends the facility information that order obtains the current equipment be connected with pci bus.
In the present embodiment, main frame can get the facility information of the current all devices be connected with pci bus by sending order.
Such as, the all devices be now connected with pci bus can comprise: sound card, video card, network interface card, hub, switch, bridge, router, gateway, network interface unit (NIC), WAP (WAP), printer, modulator-demodular unit, fiber optical transceiver and optical cable, so, the facility information of equipment that the current and pci bus of acquisition is connected can comprise above-mentioned all devices facility information corresponding respectively.
Step 202: the activation bit reading each PCI equipment included in current group one.
In the present embodiment, owing to dividing into groups one to comprise sound card and video card, the activation bit of this sound card and the activation bit of video card can so be read.
Step 203: according to the activation bit of each the current PC I equipment read, search in the facility information obtained respectively, if when not finding the information corresponding to current PC I equipment in the facility information obtained, perform step 204, otherwise, perform step 205.
In the present embodiment, can carry out searching the facility information that whether there is sound card in the facility information obtained according to the activation bit of sound card, and carry out searching the facility information that whether there is video card in the facility information obtained according to the activation bit of video card, if include the facility information of this sound card/video card in the facility information obtained, then characterize the normal carry of this sound card/video card in pci bus, otherwise, characterize the non-carry of this sound card/video card in pci bus, show this sound card/video card fault.
Step 204: characterize current PC I equipment failure, export the diagnostic result of this current PCI equipment failure.
Step 205: characterize current PC I equipment normal, export the normal diagnostic result of this current PCI equipment.
Secondly, please refer to Fig. 3, the fault diagnosis for the network equipment in grouping two can in the following way:
Step 301: the facility information obtaining the current equipment be connected with pci bus.
Step 301 is identical with step 201, and the present embodiment does not repeat this.
Step 302: the activation bit reading each network equipment included in current group two.
In the present embodiment, owing to dividing into groups two to comprise network interface card, printer and modulator-demodular unit, therefore, the activation bit of the activation bit of network interface card, the activation bit of printer and modulator-demodular unit can be read.
Step 303: according to the activation bit of each current network device read, search in the facility information obtained respectively, if when not finding the facility information corresponding to current network device in the facility information obtained, then perform step 305, otherwise, perform step 304.
In the present embodiment, by searching the facility information, the facility information of printer, the facility information of modulator-demodular unit that whether include network interface card in the facility information obtained, judge the corresponding network equipment whether fault.If can determine, each current network device carry is in pci bus, then show that this current network device is normal, otherwise, show this current network equipment failure.
Step 304: the Link State of checking current network device, if the Link State of current network device is abnormal, then performs step 305, otherwise, perform step 306.
In the present embodiment, when determine the normal carry of the network equipment on PCI equipment time, also need to verify the Link State of the network equipment.
In a preferred embodiment of the invention, the Link State that mii-tool instrument can be adopted current to the network equipment is checked to realize the checking to its Link State, wherein, to check that the verification mode of the mode of operation of network interface card to the network equipment of the present embodiment is described, check that the mode of operation of network interface card can by following codes implement:
#mii-tool-v
eth0:negotiated100baseTx-FD,linkok
productinfo:vendor00:aa:00,model56rev0
basicmode:autonegotiationenabled
basicstatus:autonegotiationcomplete,linkok
capabilities:100baseTx-FD100baseTx-HD10baseT-FD10baseT-HD
advertising:100baseTx-FD100baseTx-HD10baseT-FD10baseT-HDflow-control
linkpartner:100baseTx-FD100baseTx-HD10baseT-FD10baseT-HD
As can be seen from above information, under this block network interface card is operated in 100M full duplex adaptive model, " 100BaseT x-FD " means 100MFullDuplex.
By viewing the Link State of this network equipment, can according to determining this network equipment whether fault to the mode of operation set by this network equipment in advance.Such as, be 100M full duplex adaptive model to the mode of operation set network interface card in advance, so according to above-mentioned information, the Link State of this network interface card is normal.
Step 305: then characterize this current network equipment failure.
Step 306: characterize this current network device normal.
Finally, please refer to Fig. 4, the fault diagnosis for CAN communication equipment in grouping three can in the following way:
Step 401: the access way determining each current C AN communication facilities in current group, comprise current C AN communication facilities in access way to be connected with URAT interface by USB interface, and utilize this URAT interface to be connected with CAN mode time, perform step 402;
Step 402: judge whether existence/dev/ttyUBU0 device node; If exist, then perform step 403; If do not exist, then perform step 404.
In the present embodiment, CAN communication equipment is needed to determine its access way, such as, storer/controller is by USB interface and URAT (UniversalAsynchronousReceiver/Transmitter, universal asynchronous receiving-transmitting transmitter) interface is connected, and this URAT interface is connected with CAN, thus realize CAN communication equipment access computer system.
For the CAN communication equipment of this access way, can in computer system establishments/dev/ttyUBU0 device node, the present embodiment can by judging this/whether dev/ttyUBU0 device node exist to determine CAN communication equipment whether fault.If should/dev/ttyUBU0 device node do not exist, then characterize this fault.If should/existence of dev/ttyUBU0 device node, also need the test this CAN communication equipment being carried out to transceiving data, whether normal to determine this CAN communication equipment.
Step 403: test according to the transceiving data of the object time section pre-set to this current CAN communication equipment, when test is not passed through, performs step 404; Test by time, perform step 405.
In the present embodiment, can pre-set an object time section, such as, 10s, and determine whether the transceiving data of each CAN communication equipment in this object time section can reach expectation value, such as, this expectation value corresponding to object time section is 15MB.Main frame and each CAN communication equipment carry out transmission and the reception of data, and to when previous CAN communication equipment sending data/reception current C AN communication facilities time arrive object time section time, determine that data/main frame that this CAN communication equipment receives receives the data that this CAN communication equipment sends and whether is not less than expectation value, if, then show that this CAN communication equipment is normal, otherwise, show this CAN communication equipment failure.
Step 404: characterize current C AN communication equipment fault.
Step 405: characterize current C AN communication facilities normal.
Step 104: according to fault diagnosis result, generates diagnostic trouble code, and exports the diagnostic trouble code generated.
In the present embodiment, according to fault diagnosis result, predefined diagnostic trouble code can be used represent.Wherein, can a diagnostic trouble code be used to represent the diagnostic result of all target devices determined in step 101, also a diagnostic trouble code can be used respectively to represent to the diagnostic result of each target device, or other representations, the present embodiment does not do concrete restriction to this.
In a preferred embodiment of the invention, can be numbered each type in advance, such as, PCI equipment is 1, the network equipment is 2, CAN communication equipment is 3, be converted to binary data and be respectively: 01,10,11.
Correspondingly, in the present embodiment, also can be numbered each target device in advance, such as, sound card is 1, video card is 2, network interface card is 3, printer is 4, modulator-demodular unit is 5, storer be 6 and controller be 7, binary number that so each numbering is corresponding is: 0001,0010,0011,0100,0101,0110,0111.
For equipment, whether fault can diagnostic trouble code in the following way represent, is 00 when equipment is normal; Be 01 during equipment failure; Be 11 when this equipment does not support the fault detect of the type.
In the present embodiment, can adopt the diagnostic result of the diagnostic trouble code indication equipment of 8 bit positions of 1 byte, wherein, the first two bit position is used for the type of indication equipment, 3-6bit position is used for the numbering of indication equipment, and whether latter two bit position is used for the fault of indication equipment.
Such as, a diagnostic trouble code of generation is 10001101 show that type is the net card failure in the network equipment.
Step 105: according to the diagnostic trouble code exported, corresponding operating is carried out to relevant device.
In the present embodiment, if the diagnostic trouble code exported shows that this equipment is normal, then can not need to process to this equipment; If the diagnostic trouble code exported shows this equipment failure, then can repair or replace this equipment; If the diagnostic trouble code exported shows that this equipment does not support the fault detect of the type, then upgrade the fault diagnosis mode to this equipment.
As shown in Figure 5, embodiments provide a kind of fault diagnosis system, this system can comprise:
Determining unit 501, for determining multiple target devices included in computer system;
Division unit 502, for dividing into groups described multiple target device according to the type of equipment;
Diagnosis unit 503, for the type according to equipment included in each grouping, carries out fault diagnosis to included equipment in corresponding grouping.
Further, the type of described equipment comprises: in PCI equipment, the network equipment and CAN communication equipment any one or multiple.
When the type of equipment included in current group is PCI equipment, described diagnosis unit 503, specifically for obtaining the facility information of the current equipment be connected with pci bus; And the activation bit of each included PCI equipment in reading current group; According to the activation bit of each the current PC I equipment read, search in the facility information obtained respectively, if when not finding the facility information corresponding to current PC I equipment in the facility information obtained, then characterize this current PCI equipment failure, otherwise, characterize this current PCI equipment normal;
And/or,
When the type of equipment included in current group is the network equipment, described diagnosis unit 503, specifically for obtaining the facility information of the current equipment be connected with pci bus; And the activation bit of each included network equipment in reading current group; According to the activation bit of each current network device read, search in the facility information obtained respectively, if when not finding the facility information corresponding to current network device in the facility information obtained, then characterize this current network equipment failure, otherwise, the Link State of checking current network device, if the Link State of current network device is abnormal, then characterize this current network equipment failure, otherwise, characterize this current network device normal.
Further, when the type of equipment included in current group is CAN communication equipment, described diagnosis unit 503, specifically for determining the access way of each current C AN communication facilities in current group, comprise current C AN communication facilities in access way to be connected with URAT interface by USB interface, and utilize this URAT interface to be connected with CAN mode time, judge whether existence/dev/ttyUBU0 device node; If do not exist, then characterize current C AN communication equipment fault; If exist, then test according to the transceiving data of object time section to this current CAN communication equipment that pre-set, test not by time, then characterize current C AN communication equipment fault, test by time, then characterize current C AN communication facilities normal.
In an embodiment of the invention, as shown in Figure 6, this fault diagnosis system may further include:
Processing unit 601, for according to fault diagnosis result, generates diagnostic trouble code, and exports the diagnostic trouble code generated.
To sum up, the embodiment of the present invention at least can realize following beneficial effect:
1, in embodiments of the present invention, by dividing into groups according to the type of equipment to multiple equipment included in computer system, included equipment in each grouping is made to have identical type, type according to equipment included in each grouping carries out fault diagnosis to included equipment in corresponding grouping respectively, thus can improve the accuracy rate of fault diagnosis.
2, in embodiments of the present invention, by the fault diagnosis result adopting the form of diagnostic trouble code to state equipment, thus the equipment that breaks down can be determined fast, repairing or replacing with the timely equipment to breaking down, ensureing the normal operation of computer system.
The content such as information interaction, implementation between each unit in the said equipment, due to the inventive method embodiment based on same design, particular content can see in the inventive method embodiment describe, repeat no more herein.
It should be noted that, in this article, the relational terms of such as first and second and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other same factor.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that programmed instruction is relevant, aforesaid program can be stored in the storage medium of embodied on computer readable, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium in.
Finally it should be noted that: the foregoing is only preferred embodiment of the present invention, only for illustration of technical scheme of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.

Claims (10)

1. a method for diagnosing faults, is characterized in that, comprising:
Determine multiple target devices included in computer system;
Described multiple target device is divided into groups according to the type of equipment;
According to the type of equipment included in each grouping, fault diagnosis is carried out to included equipment in corresponding grouping.
2. method according to claim 1, is characterized in that, the type of described equipment comprises: in PCI equipment, the network equipment and CAN communication equipment any one or multiple.
3. method according to claim 2, is characterized in that, when the type of equipment included in current group is PCI equipment, describedly carries out fault diagnosis to included equipment in corresponding grouping, comprising:
Obtain the facility information of the current equipment be connected with pci bus;
And the activation bit of each included PCI equipment in reading current group;
According to the activation bit of each the current PC I equipment read, search in the facility information obtained respectively, if when not finding the facility information corresponding to current PC I equipment in the facility information obtained, then characterize this current PCI equipment failure, otherwise, characterize this current PCI equipment normal.
4. method according to claim 2, is characterized in that, when the type of equipment included in current group is the network equipment, describedly carries out fault diagnosis to included equipment in corresponding grouping, comprising:
Obtain the facility information of the current equipment be connected with pci bus;
And the activation bit of each included network equipment in reading current group;
According to the activation bit of each current network device read, search in the facility information obtained respectively, if when not finding the facility information corresponding to current network device in the facility information obtained, then characterize this current network equipment failure, otherwise, the Link State of checking current network device, if the Link State of current network device is abnormal, then characterize this current network equipment failure, otherwise, characterize this current network device normal.
5. method according to claim 2, is characterized in that, the type of equipment included in current group is CAN communication equipment, describedly carries out fault diagnosis to included equipment in corresponding grouping, comprising:
Determine the access way of each current C AN communication facilities in current group, comprise current C AN communication facilities in access way to be connected with URAT interface by USB interface, and utilize this URAT interface to be connected with CAN mode time, judge whether existence/dev/ttyUBU0 device node;
If do not exist, then characterize current C AN communication equipment fault;
If exist, then test according to the transceiving data of object time section to this current CAN communication equipment that pre-set, test not by time, then characterize current C AN communication equipment fault, test by time, then characterize current C AN communication facilities normal.
6., according to described method arbitrary in claim 1-5, it is characterized in that, comprise further:
According to fault diagnosis result, generate diagnostic trouble code, and export the diagnostic trouble code generated.
7. a fault diagnosis system, is characterized in that, comprising:
Determining unit, for determining multiple target devices included in computer system;
Division unit, for dividing into groups described multiple target device according to the type of equipment;
Diagnosis unit, for the type according to equipment included in each grouping, carries out fault diagnosis to included equipment in corresponding grouping.
8. fault diagnosis system according to claim 7, is characterized in that,
When the type of equipment included in current group is PCI equipment, described diagnosis unit, specifically for obtaining the facility information of the current equipment be connected with pci bus; And the activation bit of each included PCI equipment in reading current group; According to the activation bit of each the current PC I equipment read, search in the facility information obtained respectively, if when not finding the facility information corresponding to current PC I equipment in the facility information obtained, then characterize this current PCI equipment failure, otherwise, characterize this current PCI equipment normal;
And/or,
When the type of equipment included in current group is the network equipment, described diagnosis unit, specifically for obtaining the facility information of the current equipment be connected with pci bus; And the activation bit of each included network equipment in reading current group; According to the activation bit of each current network device read, search in the facility information obtained respectively, if when not finding the facility information corresponding to current network device in the facility information obtained, then characterize this current network equipment failure, otherwise, the Link State of checking current network device, if the Link State of current network device is abnormal, then characterize this current network equipment failure, otherwise, characterize this current network device normal.
9. fault diagnosis system according to claim 7, it is characterized in that, when the type of equipment included in current group is CAN communication equipment, described diagnosis unit, specifically for determining the access way of each current C AN communication facilities in current group, comprise current C AN communication facilities in access way to be connected with URAT interface by USB interface, and utilize this URAT interface to be connected with CAN mode time, judge whether existence/dev/ttyUBU0 device node; If do not exist, then characterize current C AN communication equipment fault; If exist, then test according to the transceiving data of object time section to this current CAN communication equipment that pre-set, test not by time, then characterize current C AN communication equipment fault, test by time, then characterize current C AN communication facilities normal.
10., according to described fault diagnosis system arbitrary in claim 7-9, it is characterized in that, comprise further:
Processing unit, for according to fault diagnosis result, generates diagnostic trouble code, and exports the diagnostic trouble code generated.
CN201510784122.9A 2015-11-16 2015-11-16 Fault diagnosis method and system Pending CN105446857A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510784122.9A CN105446857A (en) 2015-11-16 2015-11-16 Fault diagnosis method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510784122.9A CN105446857A (en) 2015-11-16 2015-11-16 Fault diagnosis method and system

Publications (1)

Publication Number Publication Date
CN105446857A true CN105446857A (en) 2016-03-30

Family

ID=55557089

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510784122.9A Pending CN105446857A (en) 2015-11-16 2015-11-16 Fault diagnosis method and system

Country Status (1)

Country Link
CN (1) CN105446857A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107690155A (en) * 2016-08-05 2018-02-13 富士通株式会社 Diagnostic device, method and the portable terminal device of malfunctioning node
CN109597726A (en) * 2018-10-30 2019-04-09 山东超越数控电子股份有限公司 A kind of method of main board failure active detecting

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1648870A (en) * 2005-03-09 2005-08-03 北京软通科技有限责任公司 Automatic detesting method for computer system hardware device
CN101034365A (en) * 2007-04-23 2007-09-12 杭州华为三康技术有限公司 Failure diagnosis method, device and system for PCI system
US20140325283A1 (en) * 2013-04-26 2014-10-30 Netapp, Inc. Systems and methods providing mount catalogs for rapid volume mount
CN104765664A (en) * 2014-01-08 2015-07-08 鸿富锦精密工业(深圳)有限公司 PCI (Peripheral Component Interface) equipment detection system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1648870A (en) * 2005-03-09 2005-08-03 北京软通科技有限责任公司 Automatic detesting method for computer system hardware device
CN101034365A (en) * 2007-04-23 2007-09-12 杭州华为三康技术有限公司 Failure diagnosis method, device and system for PCI system
US20140325283A1 (en) * 2013-04-26 2014-10-30 Netapp, Inc. Systems and methods providing mount catalogs for rapid volume mount
CN104765664A (en) * 2014-01-08 2015-07-08 鸿富锦精密工业(深圳)有限公司 PCI (Peripheral Component Interface) equipment detection system and method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
杜洪亮: "基于CAN总线的大型远程监控网络设计", 《中国优秀硕士学位论文全文数据库信息科技辑》 *
格雷格·克罗赫曼: "《Linux内核技术手册》", 30 June 2010, 北京:中国电力出版社 *
高剑林: "《Linux内核探秘 深入解析文件系统和设备驱动的架构与设计》", 31 January 2014, 北京:机械工业出版社 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107690155A (en) * 2016-08-05 2018-02-13 富士通株式会社 Diagnostic device, method and the portable terminal device of malfunctioning node
CN109597726A (en) * 2018-10-30 2019-04-09 山东超越数控电子股份有限公司 A kind of method of main board failure active detecting

Similar Documents

Publication Publication Date Title
CN104796273A (en) Method and device for diagnosing root of network faults
CN105205003A (en) Automated testing method and device based on clustering system
CN102928690B (en) For the method for detecting abnormality of electron device
CN105808407A (en) Equipment management method, equipment and equipment management controller
CN105116870A (en) Fault analysis method, device and system of air conditioning unit
CN104794033A (en) CPU low-frequency fault positioning method and device based on BMC
CN104598342A (en) Internal storage detection method and device
US8793366B2 (en) Method and arrangement for diagnosing networks including field bus systems
CN105446857A (en) Fault diagnosis method and system
CN105450292A (en) Fault diagnosis analysis method, fault diagnosis device, fault analysis device and fault diagnosis analysis system
CN108805359A (en) A kind of failure pre-judging method and device
CN105207797A (en) Fault locating method and fault locating device
CN105550080A (en) Method, apparatus and system for performing server program fault injection based on Linux
CN107104838A (en) A kind of information processing method, server and terminal
CN107294814A (en) The method of testing and device of a kind of network-on-chip
CN107480389A (en) A kind of intelligent alarm test emulation system and method towards scheduling station
CN107577545B (en) Method and device for detecting and repairing fault disk
CN104678292B (en) A kind of complex programmable logic device (CPLD) test method and device
CN103455313A (en) Method and device for associating input information with output information of detected system
CN103136081A (en) Testing device and testing method of data center server stability
CN104579717A (en) Method and device for locating fault of DCN
CN108989153A (en) A kind of performance test methods and device
CN109217922A (en) A kind of method and device that optical module reports Received Loss Of Signal to alert
CN108388490A (en) A kind of method and system of test high-end server memory
CN110741353A (en) Graphical user interface tool for configuring an intrusion detection system for a vehicle

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160330

WD01 Invention patent application deemed withdrawn after publication