A kind of Fault Locating Method and system, electronic equipment
Technical field
The invention belongs to electronic failure detection technique field, more particularly to a kind of Fault Locating Method and system,
Electronic equipment.
Background technology
With the development of the communication technology, family's box-shaped device (such as:IAD (Integrated Access Device, it is comprehensive
Close access device), ONU (Optical Network Terminal, optical network unit)) it is commonly used so that numeral
Access terminal equipment just spreads out use in the whole world with exponential speed.
However, when attendant is disposing family's box-shaped device, the obstructed situation of business can be usually run into, but can not
Find the reason for breaking down in time;In addition, after attendant has disposed family's box-shaped device, user is using family's box
During formula equipment, can occur the situation that the business such as voice, broadband can not perform suddenly, now user can only be to family's boxlike
The attendant of equipment sends guarantee notice, is visited by attendant and carries out malfunction elimination to family's box-shaped device, extended
The time of family's box-shaped device troubleshooting, while bring very big inconvenience to the use of user.
For example, home router.At present during router volume production, it may appear that some start, can not started etc. extremely reality
The problem of room is difficult to reproduction is tested, and lacks means and method that serial ports etc. obtains abnormal information during volume production, producing line can not be accurate
Really description malfunction, laboratory are only capable of by describing conjecture problem, then test investigation problem by many experiments, add serial ports
Tool, which is collected, first closes the positioning that fault message completes failure problems.So do great wasting manpower and material resources, electronic equipment production capacity
Also can be by strong influence.
Therefore, how a kind of Fault Locating Method and system, electronic equipment are provided, it is fixed in investigation in the prior art to solve
During the electronic failure of position producing line can not accurate description malfunction, laboratory is only capable of by describing conjecture problem, then by big
Amount experiment test investigates problem and causes manpower and materials significant wastage, and electronic equipment production capacity also can be a variety of scarce by extreme influence etc.
Fall into, it is real to have turned into practitioner in the art's technical problem urgently to be resolved hurrily.
The content of the invention
In view of the above the shortcomings that prior art, it is an object of the invention to provide a kind of Fault Locating Method and it is
System, electronic equipment, for solve prior art when investigating Positioning Electronic Devices failure producing line can not accurate description malfunction,
Laboratory is only capable of by describing conjecture problem, then tests investigation problem by many experiments to cause manpower and materials significant wastage,
The problem of electronic equipment production capacity also can be by extreme influence.
In order to achieve the above objects and other related objects, one aspect of the present invention provides a kind of Fault Locating Method applied to electricity
Sub- equipment, the start-up course of the electronic equipment include N number of startup stage, and N is the positive integer more than or equal to 3, and the failure is determined
Position method includes:When the electronic equipment enters initial start up phase, detection is flowed through as initial start up phase configuration
Whether the fault detection signal pulse of the first indicator lamp is in high level to judge whether the electronic equipment is initially opened by this
The dynamic stage;If so, next step is then continued executing with, if it is not, then by fault location in initial start up phase;Treat that the electronics is set
During for entering jth startup stage, detection flows through the fault detection signal arteries and veins of the jth indicator lamp for jth startup stage configuration
Whether punching from high level switches to low level, if so, next step is then continued executing with, if it is not, then starting fault location in jth
In stage;Wherein, j is followed successively by 2 to N-1 positive integer;When the electronic equipment enters N startup stages, treated described in detection
Whether measurement equipment connects ancillary equipment, if so, then making all indicator lamps recover to normal operating conditions, if it is not, output connection refers to
Order.
Alternatively, when detect flow through for the initial start up phase configure the first indicator lamp fault detection signal pulse
In high level, then it represents that first indicator lamp is in illuminating state, and the electronic equipment passes through the initial start up phase.
Alternatively, first indicator lamp is power lights.
Alternatively, when detect successively flow through for the second startup stage to the N-1 startup stages configure second refer to
Show that lamp fault detection signal pulse of each indicator lamp into N-1 indicator lamps switches to low level from high level, then it represents that stream
Through the second indicator lamp, into N-1 indicator lamps, each indicator lamp is transformed to OFF state from illuminating state, and the electronic equipment leads to
Spend the second startup stage each startup stage into N-1 startup stages.
Alternatively, when detect successively flow through for the second startup stage to the N-1 startup stages configure second refer to
Show that lamp i-th indicator lamp into N-1 indicator lamps does not switch to low level from high level, then it represents that flow through the second indicator lamp to N-
The i-th indicator lamp is constantly in illuminating state in 1 indicator lamp, and the electronic equipment is not by with being constantly in the i-th of illuminating state
I-th startup stage corresponding to indicator lamp, by fault location in the i-th startup stage, wherein, i is less than or equal to N-1 more than or equal to 2.
A kind of fault location system of the another aspect of the present invention offer, applied to electronic equipment, the electronic equipment opens
Dynamic process includes N number of startup stage, and N is the positive integer more than or equal to 3, and the fault location system includes N number of detection module;Its
In, preliminary detection module, for when the electronic equipment enters initial start up phase, detection to be flowed through as the initial start rank
Whether the fault detection signal pulse of the first indicator lamp of section configuration is in high level to judge whether the electronic equipment passes through
The initial start up phase;If so, then calling jth detection module, the jth detection module is followed successively by the second detection module to N-
1 detection module, when the electronic equipment enters jth startup stage, detection flows through the jth for jth startup stage configuration
Whether the fault detection signal pulse of indicator lamp from high level switches to low level, if so, then calling the detection module of jth+1;Work as j
During=N-1, when the electronic equipment enters N startup stages, N detection modules detect whether the Devices to test connects periphery
Equipment, all indicator lamps are made to recover to the control module of normal operating conditions if so, then calling, if it is not, calling for the company of output
Connect the command output module of instruction;If it is not, then call for by fault location in the second startup stage into N-1 startup stages
Each startup stage in fault location module;If it is not, the fault location module is then called initially to open fault location
In the dynamic stage.
Alternatively, the first indicator lamp is configured when the preliminary detection module detects to flow through for the initial start up phase
Fault detection signal pulse is in high level, then it represents that first indicator lamp is in illuminating state, and the electronic equipment passes through
The initial start up phase.
Alternatively, start when second detection module detects to flow through successively to N-1 detection modules for described second
The fault detection signal arteries and veins for the second indicator lamp each indicator lamp into N-1 indicator lamps that stage to N-1 startup stages configure
Punching from high level switches to low level, then it represents that flow through the second indicator lamp into N-1 indicator lamps each indicator lamp from lighting shape
State is transformed to OFF state, the electronic equipment each startup rank into N-1 startup stages by second startup stage
Section.
Alternatively, start when second detection module detects to flow through successively to N-1 detection modules for described second
The second indicator lamp that stage to N-1 startup stages configure i-th indicator lamp into N-1 indicator lamps does not switch to low from high level
Level, then it represents that flow through the second indicator lamp i-th indicator lamp into N-1 indicator lamps and be constantly in illuminating state, the electronics is set
It is standby not by the i-th indicator lamp with being constantly in illuminating state corresponding i-th startup stage, fault location is started into rank i-th
Section, wherein, i is less than or equal to N-1 more than or equal to 2.
Another aspect of the invention also provides a kind of electronic equipment, and the start-up course of the electronic equipment includes N number of startup rank
Section, N are the positive integer more than or equal to 3;The electronic equipment includes:Fault location system as described in any in claim 6-9
System, and the N-1 indicator lamps being connected with fault location system.
As described above, the Fault Locating Method and system of the present invention, have the advantages that:
Fault Locating Method of the present invention and system application on an electronic device when, LED that electronic equipment is carried
Lamp, lighted in order in start-up course, each process that display electronic equipment starts, when there is abnormal problem, facilitate producing line
Worker clearly describes problem, and problem scope is reduced in research and development positioning.And without additionally increasing hardware input, do not influence to produce;Simply
Quick positioning question, facilitates producing line to describe phenomenon, and problem scope is reduced in exploitation;The bright light only in start-up course, after normal startup
Recover, do not influence the use of electronic equipment;Suitable for the electronic equipment of all configuration LEDs.
Brief description of the drawings
Fig. 1 is shown as the Fault Locating Method schematic flow sheet schematic diagram of the present invention.
Fig. 2 is shown as the theory structure schematic diagram of the fault location system of the present invention.
Fig. 3 is shown as the theory structure schematic diagram of the electronic equipment of the present invention.
Component label instructions
10 fault location systems
101 preliminary detection modules
102 second detection modules
103 the 3rd detection modules
104 the 4th detection modules
105 the 5th detection modules
106 fault location modules
107 control modules
108 command output modules
2 electronic equipments
21 fault location systems
22 indicator lamps
S1~S11 steps
Embodiment
Illustrate embodiments of the present invention below by way of specific instantiation, those skilled in the art can be by this specification
Disclosed content understands other advantages and effect of the present invention easily.The present invention can also pass through specific realities different in addition
The mode of applying is embodied or practiced, the various details in this specification can also be based on different viewpoints with application, without departing from
Various modifications or alterations are carried out under the spirit of the present invention.It should be noted that in the case where not conflicting, following examples and implementation
Feature in example can be mutually combined.
It should be noted that the diagram provided in following examples only illustrates the basic structure of the present invention in a schematic way
Think, only show the component relevant with the present invention in schema then rather than according to component count, shape and the size during actual implement
Draw, kenel, quantity and the ratio of each component can be a kind of random change during its actual implementation, and its assembly layout kenel
It is likely more complexity.
The present invention provides a kind of Fault Locating Method and system, electronic equipment, the Fault Locating Method and system application
In the electronic device, the electronic equipment includes router etc. family's box-shaped device.The present invention is by taking router as an example, basic skill
Art scheme is:The bright light order of diverse location, the start-up course of explicit routing device in start-up course.Its detailed process is:
(1) router bootup process is divided into each stage, each stage lights a LED;
(2) after router completes a stage, corresponding LED is extinguished;
(3) according to the position of LED bright lights in router bootup process, it can quick and precisely describe problem and produce the stage;
(4) after router normally starts, LED recovers normal.
Embodiment one
The present embodiment provides a kind of Fault Locating Method, applied to electronic equipment, the start-up course bag of the electronic equipment
N number of startup stage is included, N is the positive integer more than or equal to 3.In the present embodiment, the electronic equipment is router, the route
The start-up course of device is divided into 5 startup stages.Referring to Fig. 1, it is shown as Fault Locating Method schematic flow sheet.As shown in figure 1,
The Fault Locating Method comprises the following steps:
S1, when the router enters initial start up phase, i.e. the first startup stage, detection flows through initially opens to be described
Whether the fault detection signal pulse of the first indicator lamp of dynamic stage configuration is in high level whether to judge the electronic equipment
Pass through the initial start up phase;If, then it represents that the router passes through initial start up phase, continues next step, i.e.,
Step S2, if it is not, step S3 is then performed, by fault location in initial start up phase.Initially opened to be described when detecting to flow through
The fault detection signal pulse that the dynamic stage configures the first indicator lamp is in high level, then it represents that first indicator lamp is in and lighted
State, the electronic equipment pass through the initial start up phase.In the present embodiment, first indicator lamp is power lights
(POWER) power lights, are allocated to the initial start up phase, the initial start up phase of the router is electricity on router,
And the stage of hardware check is carried out, the router passes through initial start up phase and illustrates that router hardware self-test passes through.
S2, when the router entered for the second startup stage, detection flows through for second startup stage configuration
Whether the fault detection signal pulse of two indicator lamps from high level switches to low level, if so, representing that the router smoothly leads to
After the second startup stage, and next step is continued executing with, i.e. step S4.If it is not, step S5 is then performed, by fault location second
In startup stage.In the present embodiment, the second indicator lamp of the second startup stage configuration is wireless lamp (WLAN), and second opens
The dynamic stage is that route system enters CFE (Common firmware environment), switchs to extinguish if wireless lamp is lighted,
Represent that router CFE is normal, if wireless lamp keeps Chang Liang, represent that router CFE breaks down.
S4, when the router entered for three startup stages, detection flows through for the 3rd startup stage configuration
Whether the fault detection signal pulse of three indicator lamps from high level switches to low level, if so, representing that the router smoothly leads to
Spent for the 3rd startup stage, and continue executing with next step, be i.e. step S6.If it is not, step S7 is then performed, by fault location the 3rd
In startup stage.In the present embodiment, the 3rd indicator lamp of the 3rd startup stage configuration is WAN mouth lamps, and the 3rd starts rank
On the ad-hoc location that route system is unziped to memory headroom by section for router under CFE guiding, switch to if WAN mouth lamps are lighted
Extinguish, represent smoothly decompression, if WAN mouths lamp keeps Chang Liang, represent decompression failure.
S6, when the router entered for four startup stages, detection flows through for the 4th startup stage configuration
Whether the fault detection signal pulse of four indicator lamps from high level switches to low level, if so, representing that the router smoothly leads to
Spent for the 4th startup stage, and continue executing with next step, be i.e. step S8.If it is not, step S9 is then performed, by fault location the 4th
In startup stage.In the present embodiment, the 4th indicator lamp of the 4th startup stage configuration is LAN mouth lamps, and the 4th starts rank
Section starts for route system, detection CPU, internal memory, periphery, establishes file system, load driver.Switch to if LAN mouth lamps are lighted
Extinguish, represent that detection loading passes through, if LAN mouths lamp keeps Chang Liang, represent detection loading failure.
In other words, in the fault detection method described in the present embodiment, start when detecting to flow through successively for described second
The fault detection signal arteries and veins for the second indicator lamp each indicator lamp into N-1 indicator lamps that stage to N-1 startup stages configure
Punching from high level switches to low level, then it represents that flow through the second indicator lamp into N-1 indicator lamps each indicator lamp from lighting shape
State is transformed to OFF state, the electronic equipment each startup rank into N-1 startup stages by second startup stage
Section.N is 5.Flowed through when detecting successively as the second indicator lamp that second startup stage to N-1 startup stages configures to
The i-th indicator lamp does not switch to low level from high level in N-1 indicator lamps, then it represents that flows through the second indicator lamp to N-1 indicator lamps
In the i-th indicator lamp be constantly in illuminating state, the electronic equipment does not pass through the i-th indicator lamp pair with being constantly in illuminating state
The i-th startup stage answered, by fault location in the i-th startup stage, wherein, i is less than or equal to N-1 more than or equal to 2.
S8, when the router entered for five startup stages, detect whether the router connects ancillary equipment, if
It is then to perform step S10, even all indicator lamps recover to normal operating conditions, if it is not, then performing step S11, i.e. output connects
Connect instruction.In the present embodiment, the 5th startup stage is router normal startup stage, and at this stage, detection periphery is set
Standby connection state, if being connected with ancillary equipment, for example, mobile phone, flat board, notebook lamp, make the indicator lamp of the router extensive
Arrive normal operating conditions, i.e. power lights again, wireless lamp, WAN mouth lamps, LAN mouth lamps are remain on state.
Fault Locating Method application described in the present embodiment the LED for carrying router, was starting on the router
Lighted in order in journey, each process that explicit routing device starts, when there is abnormal problem, facilitating producing line worker, clearly description is asked
Problem scope is reduced in topic, research and development positioning.And without additionally increasing hardware input, do not influence to produce;Simple and quick orientation problem, side
Just producing line describes phenomenon, and problem scope is reduced in exploitation;The bright light only in start-up course, recover after normal startup, do not influence electronics
The use of equipment;Suitable for the electronic equipment of all configuration LEDs.
Embodiment two
The present embodiment provides a kind of fault location system 10, applied to electronic equipment, the start-up course of the electronic equipment
Including N number of startup stage, N is the positive integer more than or equal to 3.In the present embodiment, the electronic equipment is router, the road
5 startup stages are divided into by the start-up course of device.Wherein, preliminary detection module, initially opened for entering in the electronic equipment
During the dynamic stage, whether detection flows through is in for the fault detection signal pulse of the first indicator lamp of initial start up phase configuration
Whether high level is to judge the electronic equipment by the initial start up phase;If so, then call jth detection module, the jth
Detection module is followed successively by the second detection module to N-1 detection modules, when the electronic equipment enters jth startup stage, inspection
It is low whether fault detection signal pulse of the flow measurement through the jth indicator lamp for jth startup stage configuration switches to from high level
Level, if so, then calling the detection module of jth+1;As j=N-1, when the electronic equipment enters N startup stages, N inspections
Survey module and detect whether the Devices to test connects ancillary equipment, make all indicator lamps recover to normal work if so, then calling
The control module of state, if it is not, calling the command output module for exporting link order;It is used for if it is not, then calling by failure
The fault location module being positioned in each startup stage in the second startup stage to N-1 startup stages;If it is not, then call
The fault location module is by fault location in initial start up phase.
Referring to Fig. 2, it is shown as the theory structure schematic diagram of fault location system.As shown in Fig. 2 the fault location system
System includes 5 detection modules, i.e. preliminary detection module 101, the second detection module 102, the detection of the 3rd detection module the 103, the 4th
Module 104, the 5th detection module 105, fault location module 106, control module 107 and command output module 108.
The preliminary detection module 101 is used for when the router enters initial start up phase, i.e. the first startup stage,
Detection flow through for the initial start up phase configuration the first indicator lamp fault detection signal pulse whether in high level with
Judge the electronic equipment whether by the initial start up phase;If, then it represents that the router passes through initial start
In the stage, continue to call the second detection module 102, if it is not, fault location module 106 is then called, by fault location in initial start
Stage.The fault detection signal pulse of the first indicator lamp is configured in high electricity for the initial start up phase when detecting to flow through
It is flat, then it represents that first indicator lamp is in illuminating state, and the electronic equipment passes through the initial start up phase.In the present embodiment
In, first indicator lamp is power lights (POWER), and power lights are allocated into the initial start up phase, the router
Initial start up phase is electricity on router, and carries out the stage of hardware check, and the router passes through initial start up phase
Illustrate that router hardware self-test passes through.
Second detection module 102 is connected to treat that the router enters second with the preliminary detection module 101
During startup stage, detection flow through for second startup stage configuration the second indicator lamp fault detection signal pulse whether from
High level switches to low level, if so, representing that the router passed through for the second startup stage, continues to call the 3rd inspection
Survey module 103.If it is not, then call the fault location module 106 by fault location in the second startup stage.In the present embodiment
In, the second indicator lamp of the second startup stage configuration is wireless lamp (WLAN), and the second startup stage entered for route system
Enter CFE (Common firmware environment), switch to extinguish if wireless lamp is lighted, represent that router CFE is normal, if
Wireless lamp keeps Chang Liang, represents that router CFE breaks down.
The 3rd detection module 103 being connected with second detection module 102 is used to treat that the router opens into the 3rd
During the dynamic stage, whether detection flows through the fault detection signal pulse for the 3rd indicator lamp of the 3rd startup stage configuration from height
Level switches to low level, if so, representing that the router passed through for the 3rd startup stage, and continues to call the 4th detection mould
Block 104.If it is not, fault location module 106 is then called, by fault location in the 3rd startup stage.In the present embodiment, it is described
3rd startup stage the 3rd indicator lamp of configuration be WAN mouth lamps, the 3rd startup stage be router in the case where CFE guides by router
System is unziped on the ad-hoc location of memory headroom, switchs to extinguish if WAN mouth lamps are lighted, and represents smoothly decompression, if WAN mouths lamp is protected
Chang Liang is held, represents decompression failure.
The 4th detection module 104 being connected with the 3rd detection module 103 is used to treat that the router opens into the 4th
During the dynamic stage, whether detection flows through the fault detection signal pulse for the 4th indicator lamp of the 4th startup stage configuration from height
Level switches to low level, if so, representing that the router passed through for the 4th startup stage, and calls the 5th detection module
105.If it is not, call fault location module 106 by fault location in the 4th startup stage.In the present embodiment, the described 4th
Startup stage the 4th indicator lamp of configuration be LAN mouth lamps, and the 4th startup stage was route system startup, detect CPU, internal memory,
Periphery, establish file system, load driver.Switch to extinguish if LAN mouth lamps are lighted, represent that detection loading passes through, if LAN mouths
Lamp keeps Chang Liang, represents detection loading failure.
In other words, in described fault detection system, when second detection module to N-1 detection modules is examined successively
Measure that to flow through the second indicator lamp configured for the second startup stage to the N-1 startup stages each into N-1 indicator lamps
The fault detection signal pulse of indicator lamp switches to low level from high level, then it represents that flows through the second indicator lamp to N-1 instructions
Each indicator lamp is transformed to OFF state from illuminating state in lamp, and the electronic equipment passes through second startup stage to N-
Each startup stage in 1 startup stage.N is 5.Flowed through when second detection module detects successively to N-1 detection modules
The second indicator lamp configured for the second startup stage to the N-1 startup stages into N-1 indicator lamps the i-th indicator lamp not from
High level switches to low level, then it represents that flows through the second indicator lamp i-th indicator lamp into N-1 indicator lamps and is constantly in and lights shape
By the i-th indicator lamp with being constantly in illuminating state corresponding i-th startup stage, failure is not determined for state, the electronic equipment
Position in the i-th startup stage, wherein, i is less than or equal to N-1 more than or equal to 2.
The 5th detection module 105 being connected with the 4th detection module 104 treats that the router enters the 5th and starts rank
Duan Shi, detects whether the router connects ancillary equipment, makes all indicator lamps recover to normal operating conditions if so, then calling
Control module 107, if it is not, then calling the command output module 108 for exporting link order.In the present embodiment, it is described
5th startup stage was router normal startup stage, at this stage, detected the connection state of ancillary equipment, if being connected with periphery
Equipment, for example, mobile phone, flat board, notebook lamp, make the indicator lamp of the router return to normal operating conditions, i.e. power lights,
Wireless lamp, WAN mouth lamps, LAN mouth lamps are remain on state.
Embodiment three
The present embodiment provides a kind of electronic equipment 2, referring to Fig. 3, being shown as the theory structure schematic diagram of electronic equipment.Such as
Shown in Fig. 3, the electronic equipment 2 includes the fault location system 21 described in the embodiment two as described in, and N-1 are determined with failure
The indicator lamp 22 that position system 21 connects.The indicator lamp 22 can use LED.
In summary, when Fault Locating Method provided by the present invention and system are applied on an electronic device, electronics is set
The standby LED carried, is lighted in order in start-up course, each process that display electronic equipment starts, abnormal problem occurs
When, facilitate producing line worker clearly to describe problem, problem scope is reduced in research and development positioning.And without additionally increasing hardware input, not shadow
Ring production;Simple and quick orientation problem, facilitates producing line to describe phenomenon, and problem scope is reduced in exploitation;The bright light only in start-up course,
Recover after normal startup, do not influence the use of electronic equipment;Suitable for the electronic equipment of all configuration LEDs.So present invention
Effectively overcome various shortcoming of the prior art and have high industrial utilization.
The above-described embodiments merely illustrate the principles and effects of the present invention, not for the limitation present invention.It is any ripe
Know the personage of this technology all can carry out modifications and changes under the spirit and scope without prejudice to the present invention to above-described embodiment.Cause
This, those of ordinary skill in the art is complete without departing from disclosed spirit and institute under technological thought such as
Into all equivalent modifications or change, should by the present invention claim be covered.