CN106326049A - Fault locating method and terminal - Google Patents
Fault locating method and terminal Download PDFInfo
- Publication number
- CN106326049A CN106326049A CN201610674422.6A CN201610674422A CN106326049A CN 106326049 A CN106326049 A CN 106326049A CN 201610674422 A CN201610674422 A CN 201610674422A CN 106326049 A CN106326049 A CN 106326049A
- Authority
- CN
- China
- Prior art keywords
- hardware device
- mark
- terminal
- threshold value
- predetermined threshold
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2247—Verification or detection of system hardware configuration
Abstract
The embodiment of the invention discloses a fault locating method and a terminal. The fault locating method comprises the following steps: performing statistics to obtain the interrupt frequency of hardware equipment; detecting whether the interrupt frequency is greater than a preset threshold or not; if the interrupt frequency is greater than the preset threshold, correspondingly writing an identifier of the hardware equipment and the interrupt frequency into a preset storage region, so that maintenance personnel can directly read content in the preset storage region, and failed hardware equipment can be located rapidly and conveniently.
Description
Technical field
The present invention relates to electronic technology field, particularly relate to a kind of Fault Locating Method and terminal.
Background technology
At present, along with the development of electronic technology, the terminal such as smart mobile phone, panel computer and portable set is to hardware mould
The configuration requirement of block is more and more higher, but, frequently result in power consumption when these hardware modules break down and be increased dramatically, take end
The process resource of end, has a strong impact on the use of user.
In order to determine the hardware module causing power consumption of terminal to be increased dramatically, it is often necessary to terminal is opened craft by maintainer
Detecting the working condition of each hardware module, fault location process is loaded down with trivial details.
Summary of the invention
The embodiment of the invention discloses a kind of Fault Locating Method and terminal, it is possible to simplify fault location process.
The embodiment of the invention discloses a kind of Fault Locating Method, including:
The interruption frequency of statistics hardware device;
Whether detect described interruption frequency more than predetermined threshold value;
If more than predetermined threshold value, then corresponding with described interruption frequency for the mark of described hardware device being written to is preset storage
Region.
Alternatively, described method also includes:
If described interruption frequency is not more than described predetermined threshold value, then whether the clock of hardware device described in detection clock trees
It is in opening;
If being in opening, detect whether described hardware device is in running status;
If being not in running status, then abnormal to the mark of described hardware device and clock corresponding being written to is preset memory block
Territory.
Alternatively, described method also includes:
If described interruption frequency is not more than described predetermined threshold value, whether detection restarting information comprises described hardware device
Mark;
If comprising the mark of described hardware device, then by corresponding with described restarting information for the mark of described hardware device write
To presetting memory area.
Alternatively, described method also includes:
Close described hardware device.
Alternatively, described method also includes:
Output prompting message, described prompting message is used for pointing out described hardware device abnormal, so that user chooses whether to close
Close described hardware device.
Correspondingly, the embodiment of the invention also discloses a kind of terminal, including:
Statistical module, for adding up the interruption frequency of hardware device;
Detection module, is used for whether detecting described interruption frequency more than predetermined threshold value;
Writing module, for described detection module detect described interruption frequency more than predetermined threshold value time, by described firmly
Be written to corresponding with described interruption frequency of the mark of part equipment presets memory area.
Alternatively, described detection module is additionally operable to when described interruption frequency is not more than described predetermined threshold value, detects clock
Whether the clock of hardware device described in tree is in opening;If being in opening, then whether detect described hardware device
It is in running status;If being not in running status, then by said write module, the mark of described hardware device is abnormal with clock
Correspondence is written to preset memory area.
Alternatively, described detection module is additionally operable to when described interruption frequency is not more than described predetermined threshold value, and detection is restarted
Whether information comprises the mark of described hardware device;If comprising the mark of described hardware device, then will by said write module
Be written to corresponding with described restarting information of the mark of described hardware device presets memory area.
Alternatively, described terminal also includes:
Close module, be used for closing described hardware device.
Alternatively, described terminal also includes:
Output module, is used for exporting prompting message, and described prompting message is used for pointing out described hardware device abnormal, to use
Family chooses whether to close described hardware device.
Visible, the embodiment of the present invention is by adding up the interruption frequency of hardware device, and whether detection interruption frequency is more than presetting
Threshold value, if be more than predetermined threshold value, can preset memory area by corresponding with interruption frequency for the mark of hardware device being written to, make
Obtain maintainer and can directly read the content in this default memory area, navigate to the hardware device of fault quickly and easily.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, below by use required in embodiment
Accompanying drawing is briefly described, it should be apparent that, the accompanying drawing in describing below is only some embodiments of the present invention, for ability
From the point of view of the those of ordinary skill of territory, on the premise of not paying creative work, it is also possible to obtain the attached of other according to these accompanying drawings
Figure.
Fig. 1 is the schematic flow sheet of a kind of Fault Locating Method disclosed in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another kind of Fault Locating Method disclosed in the embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the embodiment of the present invention another Fault Locating Method disclosed;
Fig. 4 is the schematic flow sheet of the embodiment of the present invention another Fault Locating Method disclosed;
Fig. 5 is the structural representation of a kind of terminal disclosed in the embodiment of the present invention;
Fig. 6 is the structural representation of another kind of terminal disclosed in the embodiment of the present invention.
Detailed description of the invention
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 carried out clear, complete
Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on this
Embodiment in invention, the every other reality that those of ordinary skill in the art are obtained under not making creative work premise
Execute example, broadly fall into the scope of protection of the invention.
The embodiment of the invention discloses a kind of Fault Locating Method and terminal, it is possible to simplify fault location process.
Referring to Fig. 1, Fig. 1 is the schematic flow sheet of a kind of Fault Locating Method disclosed in the embodiment of the present invention.Such as Fig. 1 institute
Showing, this Fault Locating Method comprises the following steps:
The interruption frequency of S101, terminal statistics hardware device;
In the embodiment of the present invention, terminal can be the terminal units such as mobile phone, panel computer, notebook computer, net book, firmly
Part equipment can be the arbitrary hardware device in terminal or hardware module, and the embodiment of the present invention does not limits.Such as, terminal is
During mobile phone, the hardware device in mobile phone can include radio circuit, memorizer, input block, display unit, gravity sensor,
The modules such as voicefrequency circuit, processor and power supply, this mobile phone can include more or less of parts, or combines some portion
Part, or different parts layouts;The interruption frequency of mobile phone statistics hardware device, Ke Yiwei, mobile phone statistics display unit triggers
The interruption frequency interrupted, it is also possible to for the interruption frequency of mobile phone statistics gravity sensor, the embodiment of the present invention does not limits.Its
In, memorizer can be used for storing software program and module, performs the various functions application of terminal, can include program storage area and
Wherein, program storage area can store the application program needed for operating system, at least one function in data storage area, and such as sound is broadcast
Put program, image player program etc.;Data storage area can store data (the such as audio frequency number that the use according to terminal is created
According to, phone directory etc.) etc..In the embodiment of the present invention, memorizer can use eMMC (Embedded Multi Media Card) point
District, eMMC subregion is a kind of embedded non-volatile memory system, is made up of flash memory and flash controller two, the one of eMMC
Individual clear superiority is to be integrated with a flash controller in a package, uses unified flash interface management flash memory, improves at data
Reason speed.
In the embodiment of the present invention, the interruption frequency of step S101 terminal statistics hardware device can be: at kernel-driven layer
Add interrupt interface, start background service thread and add up the interruption frequency of hardware device.
Whether S102, terminal detect this interruption frequency more than predetermined threshold value;If more than predetermined threshold value, then performing step
S103, if no more than predetermined threshold value, then performs step S101;
In the embodiment of the present invention, when the interruption frequency of hardware device is more than this predetermined threshold value, illustrate that this hardware device is different
Often.This predetermined threshold value can be terminal for the different frequency value of each hardware device corresponding storage in advance, it is also possible to be for
The same frequency values of all hardware equipment, if for the different frequency value of each hardware device corresponding storage in advance, then this is pre-
If threshold value is variable, whether terminal frequency of breaking in the detection, more than before predetermined threshold value, also needs the mark according to hardware device to obtain
Take the predetermined threshold value that this hardware device is corresponding;If for the frequency values of all hardware equipment storage, then this predetermined threshold value is solid
Definite value, whether terminal can directly detect this interruption frequency more than predetermined threshold value.
In the embodiment of the present invention, when the interruption frequency of hardware device is not more than this predetermined threshold value, this hardware device is described
Normally, step S101 can be continued executing with, monitor this hardware device.
Corresponding with interruption frequency for the mark of this hardware device being written to is preset memory area by S103, terminal.The present invention is real
Execute in example, when the interruption frequency of hardware device is more than this predetermined threshold value, illustrate that this hardware device exists fault.
In the embodiment of the present invention, this default memory area is the region of memory defined in advance, such as EMMC (Embedded
Multi Media Card) subregion, this EMMC subregion is the embedded storages of terminal such as mobile phone, panel computer and portable set
Device;Personnel after sale can read the content of this default memory area by data line interface or other modes, knows according to mark
It does not has the hardware device that there is fault.
The embodiment of the present invention can create interface in the kernel of terminal, starts the process execution step that this interface is corresponding
S101 to S103, this process can be at backstage automatic cycling operating, it is also possible to is manually arranged by user, such as, works as terminal power
When consuming the abnormal phenomenas such as too fast, heating, the fault location described in the embodiment of the present invention can be started by maintainer or user
Method positions out of order hardware device.
Visible, the embodiment of the present invention is by adding up the interruption frequency of hardware device, and whether detection interruption frequency is more than presetting
Threshold value, if be more than predetermined threshold value, can preset memory area by corresponding with interruption frequency for the mark of hardware device being written to, make
Obtain maintainer and can directly read the content in this default memory area, navigate to the hardware device of fault quickly and easily.
Referring to Fig. 2, Fig. 2 is the schematic flow sheet of another kind of Fault Locating Method, Fig. 2 institute disclosed in the embodiment of the present invention
The Fault Locating Method shown may comprise steps of:
The interruption frequency of S201, terminal statistics hardware device;
S202, terminal detect whether this interruption frequency is more than predetermined threshold value, if more than predetermined threshold value, then performing step
S203, if no more than predetermined threshold value, then performs step S204;
In the embodiment of the present invention, step S201 is identical with the step S101 to S102 shown in S202 with Fig. 1, the most detailed
State.
Corresponding with interruption frequency for the mark of this hardware device being written to is preset memory area by S203, terminal;
In S204, terminal detection clock trees, whether the clock of this hardware device is in opening;If being in opening,
Then perform step S205, otherwise perform step S201;
S205, terminal detect whether this hardware device is in running status;If being not in running status, then perform step
S206, if being in running status, then performs step S201;
Abnormal to the mark of this hardware device and clock corresponding being written to is preset memory area by S206, terminal.
In the embodiment of the present invention, in step S204 terminal detection clock trees, whether the clock of this hardware device is in unlatching shape
State can be: adds clock interface at kernel-driven layer, starts background service thread monitor clock interface, to when not discharging
The hardware device (i.e. the clock of hardware device is in opening, but this hardware device is not in running status) of clock is defined as different
Normal hardware device, can pass through step S206, and abnormal to the mark of this hardware device and clock corresponding being written to is preset storage
Region (such as EMMC subregion).
When the interruption frequency of hardware device is not more than predetermined threshold value, when i.e. interrupting normal, can continue to check that this hardware sets
Standby clock, if clock is in opening when hardware device is not in running status, illustrates that this hardware device clock is abnormal,
I.e. the clock of this hardware device is always on cannot close, and causes terminal to cannot be introduced into low-power consumption mode.Therefore, the present invention implements
Example can more accurately determine the hardware device of fault, improves fault location process.
Refer to the schematic flow sheet that Fig. 3, Fig. 3 are the embodiment of the present invention another Fault Locating Methods disclosed, Fig. 3 institute
The Fault Locating Method shown may comprise steps of:
The interruption frequency of S301, terminal statistics hardware device;
S302, terminal detect whether this interruption frequency is more than predetermined threshold value, if more than predetermined threshold value, then performing step
S303, if no more than predetermined threshold value, then performs step S304;
Corresponding with interruption frequency for the mark of this hardware device being written to is preset memory area by S303, terminal;
Whether S304, terminal detection restarting information comprises the mark of this hardware device;If comprising the mark of this hardware device
Knowing, then perform step S305, if not comprising the mark of this hardware device, then performing step S301;
Corresponding with restarting information for the mark of hardware device being written to is preset memory area by S305, terminal.
When the interruption frequency of hardware device is not more than predetermined threshold value, when i.e. interrupting normal, can continue to check to cause and restart
Restarting information in whether comprise the mark of this hardware device, if comprising the mark of this hardware device, illustrate that this hardware device draws
Rise and restart, i.e. this hardware device may cause constantly restarting of terminal.Therefore, the embodiment of the present invention can more accurately determine event
The hardware device of barrier, improves fault location process further.
Refer to the schematic flow sheet that Fig. 4, Fig. 4 are the embodiment of the present invention another Fault Locating Methods disclosed, Fig. 4 institute
The Fault Locating Method shown may comprise steps of:
The interruption frequency of S401, terminal statistics hardware device;
S402, terminal detect whether this interruption frequency is more than predetermined threshold value, if more than predetermined threshold value, then performing step
S403, if no more than predetermined threshold value, then performs step S404;
In the embodiment of the present invention, step S401 is identical with the step S101 to S102 shown in S402 with Fig. 1, the most detailed
State.
Corresponding with interruption frequency for the mark of this hardware device being written to is preset memory area by S403, terminal;
In S404, terminal detection clock trees, whether the clock of this hardware device is in opening;If being in opening,
Then perform step S405, otherwise perform step S401;
S405, terminal detect whether this hardware device is in running status;If being not in running status, then perform step
S406, if being in running status, then performs step S407;
Abnormal to the mark of this hardware device and clock corresponding being written to is preset memory area by S406, terminal.
Whether S407, terminal detection restarting information comprises the mark of this hardware device;If comprising the mark of this hardware device
Knowing, then perform step S408, if not comprising the mark of this hardware device, then performing step S401;
Corresponding with restarting information for the mark of hardware device being written to is preset memory area by S408, terminal.
When the interruption frequency of hardware device is not more than predetermined threshold value, when i.e. interrupting normal, can continue to check that this hardware sets
Standby clock, if clock is in opening when hardware device is not in running status, illustrates that this hardware device clock is abnormal,
I.e. the clock of this hardware device is always on cannot close, and causes terminal to cannot be introduced into low-power consumption mode;If hardware device time
Clock is normal, and i.e. clock is closed or clock is opened hardware device and run, then whether comprise this hardware device in detection restarting information
Mark, if comprising the mark of this hardware device, illustrate that this hardware device causes constantly restarting of terminal.Therefore, the present invention is real
Execute example and can more accurately determine the hardware device of fault, improve fault location process further.
It should be noted that in the Fault Locating Method shown in Fig. 1 to Fig. 4, by mark and the interruption frequency of hardware device,
Or the mark of hardware device is abnormal with clock, or after the mark of hardware device memory area default with restarting information write,
This hardware device can be closed, it is to avoid the exception of this hardware device is wasted terminal power or affects the work of other hardware devices.
Such as, when mobile phone is through the arbitrary Fault Locating Method shown in Fig. 1 to Fig. 4, navigate to gravity sensor abnormal, then can close
The power supply of this gravity sensor, it is to avoid this gravity sensor is abnormal causes that the too high electric quantity consumption of mobile telephone power consumption is too fast, mobile phone is continuous
The phenomenon restarted.
Further, in the Fault Locating Method shown in Fig. 1 to Fig. 4, terminal can also carry out following steps: output is pointed out
Message, this prompting message is used for pointing out described hardware device abnormal, user chooses whether to close described hardware device;Receive and use
The operational order that family inputs for this prompting message;Perform the operation that this operational order is corresponding.If this operational order is "Yes", then
Perform the step closing this hardware device in above-mentioned embodiment, if this operational order is "No", due to default memory area
Comprise the abnormal information of this hardware device, therefore, no longer set for this hardware when the next cycle performs Fault Locating Method
Standby execution aforesaid operations.This embodiment while improving fault location, can improve the operating experience of user.
Step in Fault Locating Method embodiment shown in embodiment of the present invention Fig. 1 to Fig. 4 can be according to actual needs
Carry out order to adjust, merge and delete.Such as, terminal can perform the Fault Locating Method shown in Fig. 1, and individually detection hardware sets
Standby interruption situation determines that hardware device is the most abnormal;The clock status that can also individually detect hardware device determines hardware device
The most abnormal, it is also possible to individually the situation of restarting of detection hardware device determines that hardware device is the most abnormal, is set by abnormal hardware
Standby mark is written to preset memory area with corresponding detection content.Alternatively, terminal can detect the interruption of hardware device
Situation and clock status determine that hardware device is the most abnormal, the mark of abnormal hardware device are write with corresponding detection content
Enter to default memory area.Alternatively, terminal can detect the interruption situation of hardware device and restart situation and determine that hardware sets
Standby the most abnormal, it is written to preset memory area with corresponding detection content by the mark of abnormal hardware device.Alternatively, eventually
End can detect the clock status of hardware device and restart situation and determine that hardware device is whether abnormal, by abnormal hardware device
Mark with corresponding detection content be written to preset memory area.
Referring to Fig. 5, Fig. 5 is the structural representation of a kind of terminal disclosed in the embodiment of the present invention, as it is shown in figure 5, this is eventually
End can include with lower module:
Statistical module 501, for adding up the interruption frequency of hardware device;
Detection module 502, is used for whether detecting described interruption frequency more than predetermined threshold value;
Writing module 503, for when described detection module detects described interruption frequency more than predetermined threshold value, by described
Be written to corresponding with described interruption frequency of the mark of hardware device presets memory area.
In the embodiment of the present invention, when the interruption frequency of hardware device is more than this predetermined threshold value, illustrate that this hardware device is different
Often.This predetermined threshold value can be the different frequency value for hardware device each in terminal corresponding storage in advance, it is also possible to be pin
Same frequency values to all hardware equipment, if for the different frequency value of each hardware device corresponding storage in advance, then should
Predetermined threshold value is variable, and whether detection module 502 frequency of breaking in the detection, more than before predetermined threshold value, also needs according to hardware device
Mark obtain predetermined threshold value corresponding to this hardware device;If for the same frequency values of all hardware equipment storage, then should
Predetermined threshold value is fixed value, and whether detection module 502 can directly detect this interruption frequency more than predetermined threshold value.
In the embodiment of the present invention, when the interruption frequency of hardware device is not more than this predetermined threshold value, this hardware device is being described just
Often, detection module 502 can trigger statistical module 501 and again add up the interruption frequency of this hardware device, monitors this hardware device.
Visible, in the embodiment of the present invention, statistical module can add up the interruption frequency of hardware device, detects at detection module
Go out this interruption frequency more than predetermined threshold value time, by writing module by corresponding with interruption frequency for the mark of this hardware device be written to pre-
If memory area so that maintainer can directly read the content in this default memory area, navigate to event quickly and easily
The hardware device of barrier.
As the optional embodiment of one, detection module 502 is additionally operable to when interruption frequency is not more than predetermined threshold value, inspection
Survey whether the clock of hardware device in clock trees is in opening;If being in opening, then whether detection hardware device is located
In running status;If being not in running status, then by writing module 503 by abnormal to the mark of hardware device and clock corresponding write
To presetting memory area.This embodiment can more accurately determine the hardware device of fault, improves fault location process.
As the optional embodiment of another kind, detection module 502 is additionally operable to when interruption frequency is not more than predetermined threshold value,
Whether detection restarting information comprises the mark of hardware device;If comprising the mark of this hardware device, then will by writing module 503
Be written to corresponding with restarting information of the mark of this hardware device presets memory area.This embodiment can more accurately determine event
The hardware device of barrier, improves fault location process.
As another optional embodiment, detection module 502 is additionally operable to when hardware device is in running status, inspection
Survey the mark whether comprising this hardware device in restarting information;If comprising the mark of this hardware device, then will by writing module 503
Be written to corresponding with restarting information of the mark of this hardware device presets memory area.This embodiment can more accurately determine event
The hardware device of barrier, improves fault location process.
As the optional embodiment of one, based on above-mentioned four kinds of embodiments, this terminal can also include closing module
504, at the mark of hardware device and interruption frequency, or the mark of hardware device is abnormal with clock, or hardware device
The write of mark and restarting information preset memory area after, close this hardware device.Such as, when mobile phone is through above-mentioned four kinds of enforcements
Arbitrary fault location mode of mode, navigates to gravity sensor abnormal, then can close the power supply of this gravity sensor, it is to avoid
This gravity sensor is abnormal causes the phenomenon that the too high electric quantity consumption of mobile telephone power consumption is too fast, mobile phone is constantly restarted.
As the optional embodiment of another kind, this terminal can also include output module 505, is used for exporting prompting and disappears
Breath, this prompting message is used for pointing out this hardware device abnormal, so that user chooses whether to close this hardware device.If user selects
Do not close this hardware device, owing to default memory area has comprised the abnormal information of this hardware device, then in next cycle detection
Module 502 no longer detects the interruption of this hardware module, clock or restarting information etc..This embodiment can be determined improving fault
While Wei, improve the operating experience of user.
Referring to Fig. 6, Fig. 6 is the structural representation of another kind of terminal disclosed in the embodiment of the present invention, as shown in Figure 6, and should
Terminal can include at least one processor 501, such as CPU, user interface 502, memorizer 503, at least one communication bus
504.Wherein, communication bus 504 is for realizing the communication connection between these assemblies.Memorizer 503 can be high-speed RAM storage
Device, it is also possible to be non-labile memorizer (non-volatile memory), for example, at least one disk memory.Storage
Device 503 optionally can also is that at least one is located remotely from the storage device of aforementioned processor 501.Wherein, processor 501 is permissible
Terminal described in conjunction with Figure 5, stores batch processing code in memorizer 503, processor 501 calls in memorizer 503 and stores
Program code, be used for performing following operation:
The interruption frequency of statistics hardware device;
Whether detect this interruption frequency more than predetermined threshold value;
If more than predetermined threshold value, then corresponding with this interruption frequency for the mark of this hardware device being written to is preset memory block
Territory.
In the embodiment of the present invention, when the interruption frequency of hardware device is more than this predetermined threshold value, illustrate that this hardware device is different
Often.This predetermined threshold value can be the different frequency value for hardware device each in terminal corresponding storage in advance, it is also possible to be pin
Same frequency values to all hardware equipment, if for the different frequency value of each hardware device corresponding storage in advance, then should
Predetermined threshold value is variable, and whether detection module 502 frequency of breaking in the detection, more than before predetermined threshold value, also needs according to hardware device
Mark obtain predetermined threshold value corresponding to this hardware device;If for the same frequency values of all hardware equipment storage, then should
Predetermined threshold value is fixed value, and whether processor 501 can directly detect this interruption frequency more than predetermined threshold value.
In the embodiment of the present invention, when the interruption frequency of hardware device is not more than this predetermined threshold value, this hardware device is being described just
Often, processor 501 can add up the interruption frequency of this hardware device again, monitors this hardware device.
Visible, in the embodiment of the present invention, processor 501 can add up the interruption frequency of hardware device, in detecting this
When disconnected frequency is more than predetermined threshold value, corresponding with interruption frequency for the mark of this hardware device being written to is preset memory area so that
Maintainer can directly read the content in this default memory area, navigates to the hardware device of fault quickly and easily.
As the optional embodiment of one, processor 501 calls the program code in memorizer 503, it is also possible to perform
Following steps:
If interruption frequency is not more than predetermined threshold value, then in detection clock trees, whether the clock of hardware device is in unlatching shape
State;
If being in opening, then whether detection hardware device is in running status;
If being not in running status, then abnormal to the mark of hardware device and clock corresponding being written to is preset memory area.
This embodiment can more accurately determine the hardware device of fault, improves fault location process.
As the optional embodiment of another kind, processor 501 calls the program code in memorizer 503, it is also possible to hold
Row following steps:
If interruption frequency is not more than predetermined threshold value, whether detection restarting information comprises the mark of hardware device;
If comprising the mark of this hardware device, then it is written to default depositing by corresponding with restarting information for the mark of this hardware device
Storage area territory.
This embodiment can more accurately determine the hardware device of fault, improves fault location process.
As another optional embodiment, processor 501 calls the program code in memorizer 503, it is also possible to hold
Row following steps:
When hardware device is in running status, whether detection restarting information comprises the mark of this hardware device;
If comprising the mark of this hardware device, then
Corresponding with restarting information for the mark of this hardware device being written to is preset memory area.
This embodiment can more accurately determine the hardware device of fault, improves fault location process.
As the optional embodiment of one, at mark and the interruption frequency of hardware device, or the mark of hardware device
Abnormal with clock, or after the mark of hardware device memory area default with restarting information write, processor 501 calls memorizer
Program code in 503, it is also possible to execution following steps:
Close this hardware device.
Such as, when mobile phone is through arbitrary fault location mode of above-mentioned four kinds of embodiments, gravity sensor is navigated to different
Often, then the power supply of this gravity sensor can be closed, it is to avoid this gravity sensor is abnormal causes the too high electric quantity consumption of mobile telephone power consumption
The phenomenon that too fast, mobile phone is constantly restarted.
As the optional embodiment of another kind, processor 501 calls the program code in memorizer 503, it is also possible to hold
Row following steps:
Output prompting message, this prompting message is used for pointing out this hardware device abnormal, is somebody's turn to do so that user chooses whether to close
Hardware device.
If user selects not close this hardware device, owing to default memory area has comprised the exception letter of this hardware device
Breath, then no longer detect the interruption of this hardware module, clock or restarting information etc. in the next cycle;If it is hard that user selects to close this
Part equipment, then processor 501 can cut out this hardware device.This embodiment can improve while improving fault location
The operating experience of user.
Concrete, the terminal introduced in the present embodiment can be implemented the present invention and combine the fault location introduced in Fig. 1 to Fig. 4
Part or all of flow process in embodiment of the method.
Unit or subelement in embodiment of the present invention terminal or equipment can merge according to actual needs, divide and
Delete.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can
Completing instructing relevant hardware by program, this program can be stored in a computer-readable recording medium, storage
Medium may include that flash disk, read only memory (Read-Only Memory, ROM), random access device (Random Access
Memory, RAM), disk or CD etc..
Above Fault Locating Method a kind of disclosed in the embodiment of the present invention and terminal are described in detail, herein should
Being set forth principle and the embodiment of the present invention by specific case, the explanation of above example is only intended to help reason
Solve method and the core concept thereof of the present invention;Simultaneously for one of ordinary skill in the art, according to the thought of the present invention,
All will change in detailed description of the invention and range of application, in sum, this specification content should not be construed as this
Bright restriction.
Claims (10)
1. a Fault Locating Method, it is characterised in that including:
The interruption frequency of statistics hardware device;
Whether detect described interruption frequency more than predetermined threshold value;
If more than predetermined threshold value, then corresponding with described interruption frequency for the mark of described hardware device being written to is preset memory block
Territory.
Method the most according to claim 1, it is characterised in that described method also includes:
If described interruption frequency is not more than described predetermined threshold value, then described in detection clock trees, whether the clock of hardware device is in
Opening;
If being in opening, detect whether described hardware device is in running status;
If being not in running status, then abnormal to the mark of described hardware device and clock corresponding being written to is preset memory area.
Method the most according to claim 1, it is characterised in that described method also includes:
If described interruption frequency is not more than described predetermined threshold value, whether detection restarting information comprises the mark of described hardware device
Know;
If comprising the mark of described hardware device, then by corresponding with described restarting information for the mark of described hardware device be written to pre-
If memory area.
4. according to the method described in any one of claims 1 to 3, it is characterised in that described method also includes:
Close described hardware device.
5. according to the method described in any one of claims 1 to 3, it is characterised in that described method also includes:
Output prompting message, described prompting message is used for pointing out described hardware device abnormal, so that user chooses whether to close institute
State hardware device.
6. a terminal, it is characterised in that including:
Statistical module, for adding up the interruption frequency of hardware device;
Detection module, is used for whether detecting described interruption frequency more than predetermined threshold value;
Writing module, for when described detection module detects described interruption frequency more than predetermined threshold value, setting described hardware
Be written to corresponding with described interruption frequency of standby mark presets memory area.
Terminal the most according to claim 1, it is characterised in that described detection module is additionally operable at described interruption frequency little
When described predetermined threshold value, described in detection clock trees, whether the clock of hardware device is in opening;If being in unlatching shape
State, then detect whether described hardware device is in running status;If being not in running status, then by said write module by described
The mark of hardware device corresponding be written to abnormal with clock presets memory area.
Terminal the most according to claim 1, it is characterised in that described detection module is additionally operable at described interruption frequency little
When described predetermined threshold value, whether detection restarting information comprises the mark of described hardware device;If comprising described hardware device
Mark, then by said write module by corresponding with described restarting information for the mark of described hardware device be written to preset memory block
Territory.
9. according to the terminal described in any one of claim 6 to 8, it is characterised in that described terminal also includes:
Close module, be used for closing described hardware device.
10. according to the terminal described in any one of claim 6 to 8, it is characterised in that described terminal also includes:
Output module, is used for exporting prompting message, and described prompting message is used for pointing out described hardware device abnormal, so that user's choosing
Select and whether close described hardware device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610674422.6A CN106326049B (en) | 2016-08-16 | 2016-08-16 | A kind of Fault Locating Method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610674422.6A CN106326049B (en) | 2016-08-16 | 2016-08-16 | A kind of Fault Locating Method and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106326049A true CN106326049A (en) | 2017-01-11 |
CN106326049B CN106326049B (en) | 2019-07-19 |
Family
ID=57740030
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610674422.6A Expired - Fee Related CN106326049B (en) | 2016-08-16 | 2016-08-16 | A kind of Fault Locating Method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106326049B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111447333A (en) * | 2020-03-09 | 2020-07-24 | 深圳震有科技股份有限公司 | TDM bus fault detection method, device, equipment and readable storage medium |
CN111447106A (en) * | 2020-03-18 | 2020-07-24 | 深圳市普威技术有限公司 | Fault detection method, device, storage medium and communication equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1490982A (en) * | 2003-08-18 | 2004-04-21 | 北京港湾网络有限公司 | Network fault analysing and monitoring method and apparatus |
CN1770112A (en) * | 2005-01-14 | 2006-05-10 | 威盛电子股份有限公司 | Debug supporting unit using multi-asynchronous timepiece on chip hardware |
CN1862506A (en) * | 2005-09-09 | 2006-11-15 | 华为技术有限公司 | Apparatus and method for real-time indicating running state of computer system |
US20080288828A1 (en) * | 2006-12-09 | 2008-11-20 | Baker Marcus A | structures for interrupt management in a processing environment |
CN101770424A (en) * | 2010-01-05 | 2010-07-07 | 天津七一二通信广播有限公司 | Data acquisition and emulation system suitable for underlying protocol stack of digital communication terminal |
CN104102572A (en) * | 2013-04-01 | 2014-10-15 | 中兴通讯股份有限公司 | Method and device for detecting and processing system faults |
CN104486100A (en) * | 2014-11-28 | 2015-04-01 | 华为技术有限公司 | Device and method for treating faults |
-
2016
- 2016-08-16 CN CN201610674422.6A patent/CN106326049B/en not_active Expired - Fee Related
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1490982A (en) * | 2003-08-18 | 2004-04-21 | 北京港湾网络有限公司 | Network fault analysing and monitoring method and apparatus |
CN1770112A (en) * | 2005-01-14 | 2006-05-10 | 威盛电子股份有限公司 | Debug supporting unit using multi-asynchronous timepiece on chip hardware |
CN1862506A (en) * | 2005-09-09 | 2006-11-15 | 华为技术有限公司 | Apparatus and method for real-time indicating running state of computer system |
US20080288828A1 (en) * | 2006-12-09 | 2008-11-20 | Baker Marcus A | structures for interrupt management in a processing environment |
CN101770424A (en) * | 2010-01-05 | 2010-07-07 | 天津七一二通信广播有限公司 | Data acquisition and emulation system suitable for underlying protocol stack of digital communication terminal |
CN104102572A (en) * | 2013-04-01 | 2014-10-15 | 中兴通讯股份有限公司 | Method and device for detecting and processing system faults |
CN104486100A (en) * | 2014-11-28 | 2015-04-01 | 华为技术有限公司 | Device and method for treating faults |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111447333A (en) * | 2020-03-09 | 2020-07-24 | 深圳震有科技股份有限公司 | TDM bus fault detection method, device, equipment and readable storage medium |
CN111447333B (en) * | 2020-03-09 | 2021-07-02 | 深圳震有科技股份有限公司 | TDM bus fault detection method, device, equipment and readable storage medium |
CN111447106A (en) * | 2020-03-18 | 2020-07-24 | 深圳市普威技术有限公司 | Fault detection method, device, storage medium and communication equipment |
CN111447106B (en) * | 2020-03-18 | 2022-05-03 | 深圳市普威技术有限公司 | Fault detection method, device, storage medium and communication equipment |
Also Published As
Publication number | Publication date |
---|---|
CN106326049B (en) | 2019-07-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100501679C (en) | Electric device | |
KR20180097674A (en) | Memory reclaim method and apparatus | |
CN101770428B (en) | Method for operating non-volatile memory and data storage system using the same | |
CN103842968B (en) | A kind of moving method of internal storage data, computing machine and device | |
CN106528216A (en) | Method for starting application and terminal | |
CN103902399B (en) | Software system repair processing method and software system repair processing device | |
CN103399781B (en) | Cloud Server and virtual machine management method thereof | |
CN103164229A (en) | Method and device for clearing progresses of mobile terminal | |
CN103430151A (en) | Method and apparatus for configuring resource | |
CN103827834A (en) | Migration method of in-memory data, computer and device | |
CN103425592A (en) | Memory management method and device for multiprocess system | |
CN107480011A (en) | BIOS switching devices | |
CN104503828A (en) | Process management method and terminal | |
CN104765466A (en) | Key control method and device for mobile terminal | |
CN103279203A (en) | Key reuse method and multifunctional key | |
CN102880477A (en) | Method for realizing computer start and computer | |
CN103902011A (en) | Electronic device controlling method and electronic device | |
CN106326049A (en) | Fault locating method and terminal | |
CN106227569A (en) | A kind of application upgrade method and terminal unit | |
CN103870319A (en) | Method and device for information processing and electronic device | |
CN104375896A (en) | Information processing method and electronic equipment | |
CN104216829A (en) | Method and system for concurrent testing of embedded module | |
CN105227748A (en) | Prompting message display packing and device | |
CN103246591B (en) | The method and apparatus of signal transacting | |
CN104102498A (en) | Mobile terminal and booting method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190719 |
|
CF01 | Termination of patent right due to non-payment of annual fee |