CN107145402A - A kind of inspection software is delayed the method and electronic equipment of machine - Google Patents

A kind of inspection software is delayed the method and electronic equipment of machine Download PDF

Info

Publication number
CN107145402A
CN107145402A CN201710390582.2A CN201710390582A CN107145402A CN 107145402 A CN107145402 A CN 107145402A CN 201710390582 A CN201710390582 A CN 201710390582A CN 107145402 A CN107145402 A CN 107145402A
Authority
CN
China
Prior art keywords
machine
software
delayed
interrupt
interruption
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710390582.2A
Other languages
Chinese (zh)
Other versions
CN107145402B (en
Inventor
周华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hefei Lianbao Information Technology Co Ltd
Original Assignee
Hefei Lianbao Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hefei Lianbao Information Technology Co Ltd filed Critical Hefei Lianbao Information Technology Co Ltd
Priority to CN201710390582.2A priority Critical patent/CN107145402B/en
Publication of CN107145402A publication Critical patent/CN107145402A/en
Application granted granted Critical
Publication of CN107145402B publication Critical patent/CN107145402B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0766Error or fault reporting or storing
    • G06F11/0772Means for error signaling, e.g. using interrupts, exception flags, dedicated error registers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0766Error or fault reporting or storing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/079Root cause analysis, i.e. error or fault diagnosis

Abstract

Delayed the embodiments of the invention provide a kind of inspection software the method and electronic equipment of machine, methods described includes:Monitor the interrupt instruction for machine of being delayed on inspection software;The interruption for machine of being delayed for inspection software is performed based on the interrupt instruction, the interruption includes the first interruption of one executable program of operation;The described first implementation status interrupted is monitored, and judges when monitoring that described first interrupts and perform abnormal to occur software and is delayed machine.The characteristics of embodiment of the present invention has simple and convenient, Consumer's Experience is good.

Description

A kind of inspection software is delayed the method and electronic equipment of machine
Technical field
The present embodiments relate to electronic device field, the delay method and electronics of machine of more particularly to a kind of inspection software is set It is standby.
Background technology
At present, computer operating system in the course of the work, due to the exception of software and hardware, can cause operating system to go out Now crash or delay the situation of machine.And in this case, user typically judges by the way of manually operated pressure is restarted Be due to delayed caused by running software failure machine be also due to the failure of hardware device caused by hardware delay machine.This mode is more Bother and Consumer's Experience is bad.
The content of the invention
Easily the delay inspection software of machine of inspection software it can be delayed the method and electricity of machine the embodiments of the invention provide a kind of Sub- equipment.
In order to solve the above-mentioned technical problem, the embodiments of the invention provide following technical scheme:
A kind of inspection software is delayed the method for machine, and it includes:
Monitor the interrupt instruction for machine of being delayed on inspection software;
The interruption for machine of being delayed for inspection software is performed based on the interrupt instruction, the interruption includes the executable journey of operation one The first of sequence is interrupted;
The implementation status of first interruption is monitored, and judges that generation is soft when monitoring that described first interrupts and perform abnormal Part is delayed machine.
As the presently preferred embodiments, the interruption also includes the second interruption that priority is interrupted higher than described first;And institute The implementation status for monitoring the interruption is stated, and judges occur software Dang Jibao when monitoring that described first interrupts and perform abnormal Include:
The implementation status that monitoring described first is interrupted is interrupted based on described second, and is monitoring that described first interrupts execution Judge that occurring software delays machine when abnormal.
As the presently preferred embodiments, the monitoring includes on the delay interrupt instruction of machine of inspection software:
Detect the trigger action or trigger signal for machine of being delayed for inspection software;
Be judged as monitoring delaying on inspection software the middle severed finger of machine when detecting the trigger action or trigger signal Order.
As the presently preferred embodiments, described detect includes for the delay trigger action of machine of inspection software:
The trigger action is detected by detecting the triggering of programmable button.
As the presently preferred embodiments, second interruption includes program of the triggering timing device according to preset time timing.
As the presently preferred embodiments, it is described to interrupt the implementation status that monitoring described first is interrupted based on described second, and in prison Measure described first and interrupt and be judged as that occurring the software machine of delaying includes when performing abnormal:
Judge whether first interruption is performed or whether completes to perform in the preset time;
Determine that first interruption performs exception if the described first interruption is not performed or do not completed and performs, and be judged as Generation software is delayed machine.
As the presently preferred embodiments, methods described also includes:
Export the testing result for machine of being delayed on software.
As the presently preferred embodiments, methods described also includes:
Judge software delay machine when restart electronic equipment.
The embodiment of the present invention additionally provides a kind of electronic equipment, and its inspection software as described in above-mentioned embodiment of application is delayed machine Method;Also, including:
Processor, it is configured to the interrupt instruction for monitoring machine of being delayed on inspection software, and is performed based on the interrupt instruction The first execution feelings interrupted of the executable program of operation one delayed for inspection software in the interruption of machine, and the monitoring interruption Condition, and judge when monitoring that described first interrupts and perform abnormal to occur software and delay machine.
As the presently preferred embodiments, the interruption also includes the second interruption that priority is interrupted higher than described first, and
The processor is further configured to based on the described second implementation status for interrupting monitoring first interruption, and Described first interrupts and judges to occur as software when performing abnormal and delay machine.
Compared with prior art, the beneficial effect of the embodiment of the present invention is:
Pass through the above-mentioned configuration of the embodiment of the present invention, in that context it may be convenient to which inspection software is delayed the situation of machine, facilitates the behaviour of user Make, improve Consumer's Experience effect.
Brief description of the drawings
Fig. 1 be the embodiment of the present invention in a kind of inspection software delay machine method principle flow chart;
Fig. 2 be the embodiment of the present invention in monitoring on inspection software delay machine interrupt instruction principle flow chart;
Fig. 3 is to be judged as occurring software in the embodiment of the present invention when described first interrupts and perform abnormal to delay the principle stream of machine Cheng Tu;
Fig. 4 be the embodiment of the present invention in a kind of electronic equipment principle assumption diagram.
Embodiment
Below, the specific embodiment of the present invention is described in detail with reference to accompanying drawing, but it is not as limiting to the invention.
It should be understood that can disclosed embodiments be made with various modifications.Therefore, description above should not be regarded To limit, and only as the example of embodiment.Those skilled in the art will expect within the scope and spirit of this Other modifications.
Comprising in the description and constituting the accompanying drawing of a part of specification and show embodiment of the disclosure, and with it is upper Substantially description and the detailed description given below to embodiment of this disclosure that face is provided are used to explain the disclosure together Principle.
It is of the invention by description with reference to the accompanying drawings to the preferred form of the embodiment that is given as non-limiting examples These and other characteristic will become apparent.
It is also understood that although with reference to some instantiations, invention has been described, people in the art Member realize with can determine the present invention many other equivalents, they have feature as claimed in claim and therefore all In the protection domain limited whereby.
When read in conjunction with the accompanying drawings, in view of described further below, above and other aspect, the feature and advantage of the disclosure will become It is more readily apparent.
The specific embodiment of the disclosure is described hereinafter with reference to accompanying drawing;It will be appreciated, however, that the disclosed embodiments are only The example of the disclosure, it can be implemented using various ways.The function and structure known and/or repeated is not described in detail to avoid Unnecessary or unnecessary details causes the disclosure smudgy.Therefore, specific structural and feature disclosed herein is thin Section is not intended to restrictions, but as just the basis of claim and representative basis for instruct those skilled in the art with Substantially any appropriate detailed construction diversely uses the disclosure.
This specification can be used phrase " in one embodiment ", " in another embodiment ", " in another embodiment In " or " in other embodiments ", it may refer to according to one or more of identical or different embodiment of the disclosure.
Below, the embodiment of the present invention is described in detail with reference to accompanying drawing, is delayed machine the embodiments of the invention provide a kind of software Method, this method can be without forced shutdown, without using other extra monitoring devices, you can with by electronic equipment from The configuration of body carrys out convenient inspection software and delayed machine, with effect easy to use.
As shown in figure 1, the principle flow chart for the method for machine of being delayed for the inspection software in the embodiment of the present invention.It is wherein of the invention This method in embodiment can include:
Monitor the interrupt instruction for machine of being delayed on inspection software;
The interruption for machine of being delayed for inspection software is performed based on the interrupt instruction, the interruption includes the executable journey of operation one The first of sequence is interrupted;
The described first implementation status interrupted is monitored, and judges that occuring as software delays when described first interrupts and perform abnormal Machine.
The method of what the embodiment of the present invention was provided be used for inspection software delays machine can be using in the electronic device, the electronics Equipment can be the message processing device for information processing, and it can include notebook computer, PAD, desktop computer, audio frequency process Equipment, mobile phone or other intelligent terminals.But the embodiment of the present invention is not limited to this.
In the embodiment of the present invention, electronic equipment can monitor the interrupt instruction for machine of being delayed for inspection software in real time, and can To perform the corresponding interruption of the interrupt instruction when monitoring the interrupt instruction, and the first interruption generation in judging to interrupt is different Chang Shi, is judged as that electronic equipment occurs software and delayed machine.
Specifically, first can be included and interrupt by being used for the delay interruption of machine of inspection software in the embodiment of the present invention, this is in first Disconnected to include running an executable program, i.e., first interruption can be software interrupt in embodiments of the present invention.Suspect in user Electronic equipment may occur software delay machine when, software can be performed with control electronics and be delayed the detection of machine, and electronic equipment can be with The interrupt instruction for machine of being delayed on inspection software is generated based on the control, while the device of such as processor in electronic equipment is in inspection When measuring the interrupt instruction of the interruption, can perform can in the corresponding interrupt routine of the interrupt instruction, such as embodiment of the present invention Judge that software is delayed the situation of machine to be interrupted by first, this first interrupts and include one executable program of operation, as in software Disconnected, electronic equipment judges whether current electronic equipment there occurs that software is delayed by detecting the running situation of the software interrupt Machine.Software interrupt wherein in the embodiment of the present invention can be used for software program (the i.e. above-mentioned executable journey for calling electronic equipment Sequence);For example:Various external device management interrupt service routines in BIOS ROM are (in Keyboard management interruption, display management Disconnected, printer management is interrupted etc.) and DOS system function call (INT 21H) etc. be all software interrupt.
As described above, the processor in electronic equipment can be judged whether by detecting first implementation status interrupted It there occurs that software is delayed machine.Specifically, judgement can be completed by judging whether first interruption is performed or whether performs Whether electronic equipment, which occurs software, is delayed machine.;For example can be detected by detecting whether operating system returns to corresponding data One interrupts whether be performed or whether complete execution.
For example, in the embodiment of the present invention, not completed judging that the first interruption is not performed or performed, then may determine that electricity Sub- equipment there occurs that software is delayed machine.And when judging that the first interruption is completed successfully, then may determine that and delayed machine for software does not occur.
Further, the embodiment of the present invention can be delayed the testing result of machine with output display on software, for example, judging Electronic equipment occur software delay machine when, processor triggering electronic equipment blue screen can be crossed, and the internal storage data of current system is protected It is stored in dump file, and restarts computer system, so as to reaches the purpose for retaining log files and reset system.And in detection Go out not occurring software delay machine when, alarm is performed by processor control triggering, such as buzzing alarm can also reset backlight aobvious Show, so as to point out user job normal.It can realize that the software of electronic equipment is delayed the automatic detection of machine, Yi Ji electricity by the configuration The replacement of sub- equipment, facilitates the operation of user.
Moreover, the embodiment of the present invention can realize the execution feelings just performed when receiving interrupt instruction for software interrupt The monitoring of condition, and it is preferably arranged such that the processor of electronic equipment only performs the prison for software interrupt in preset time Control, judges to there occurs that software is delayed machine if judging that the software interrupt is not performed or be not carried out to complete in the preset time. It thereby may be ensured that processor is run without the moment, reduce the power consumption and operating pressure of processor.
In addition, in present invention preferred embodiment as shown in Figure 2, the middle severed finger for monitoring machine of being delayed on inspection software Order includes:
Detect the trigger action or trigger signal for machine of being delayed for inspection software;And
Be judged as monitoring delaying on inspection software the middle severed finger of machine when detecting the trigger action or trigger signal Order.
In embodiments of the present invention, electronic equipment can detect in real time for inspection software delay machine trigger action or Trigger signal, above-mentioned detection, which is used for the delay trigger action of machine of inspection software, can include the input of the default shortcut key of detection, or Switching of person's preset switches etc..Namely can be provided with advance in electronic equipment for control perform software delay machine detection it is fast Prompt button or switching switch, user can control to perform software by triggering the default shortcut key or switching switch Delay the detection of machine, and electronic equipment is when detecting the triggering of the shortcut key or switching switch is switched to corresponding state, It may determine that the interrupt instruction for detecting machine of being delayed for inspection software.And above-mentioned detection be used for inspection software delay machine triggering letter Number can be the trigger signal for detecting the switching of triggering or cut-flower switch due to above-mentioned triggering button and generating, can also It is to perform being used for of detecting that electronic equipment receives software to delay the trigger signal of machine testing.I.e. electronic equipment, which can also be received, comes Delay the trigger signal of machine testing, delayed the detection of machine so as to perform software on performing software from other equipment.
In addition, electronic equipment is when detecting above-mentioned trigger action or trigger signal, that is, it is judged as monitoring on soft Part is delayed the interrupt instruction of machine, the processor in corresponding electronic equipment be also based on the interrupt instruction obtain with trigger action or The information of the corresponding interrupt routine of trigger signal, the information such as the program function name, parameter or address of interrupt routine, leads to Corresponding interruption can be performed by crossing the information of the interrupt routine of the acquisition.In embodiments of the present invention, electronic equipment can be passed through Processor obtain the information of corresponding interrupt routine, and it is (following to perform interruption to control corresponding software interrupt to perform object Device) perform software interrupt.That is, when electronic equipment monitoring is to interrupt instruction, can obtain the interrupt instruction it is corresponding in The information of disconnected program, such as the above-mentioned first information interrupted, and the following second information interrupted.
In addition, in embodiments of the present invention, delayed judging whether to occur software after machine, different display sides can also be passed through Formula performs the feedback of judged result.
Specifically, for example, can judge to occur software delay machine when, on the one hand can be carried by restarting for electronic equipment Awake user there occurs that software is delayed machine, and timely reset electronic equipment, manually operated without user;On the other hand it can also pass through The reminding unit of electronic equipment is reminded, and the reminding unit can include buzzer, vibrator or display.By carrying When unit of waking up is reminded, it can control to perform buzzing, or control vibrator according to default according to preset time in buzzer Time performs vibration operation, can also either control display to show that software is delayed machine message or can also according to preset time It is blue screen state according to preset time to control display, and the internal storage data of electronic equipment is carried out into unloading backup, generates daily record File, to check corresponding memory file and machine record of delaying.Furthermore it is also possible to control to hold again after above-mentioned prompting operation is performed The reboot operation of row electronic equipment, further improves Consumer's Experience.
Pass through the above-mentioned configuration of the embodiment of the present invention, in that context it may be convenient to which inspection software is delayed the situation of machine, facilitates the behaviour of user Make, improve Consumer's Experience effect.
It is used to the delay interruption of machine of inspection software in addition, in another embodiment of the invention, in the embodiment of the present invention may be used also To be interrupted including second, also, second priority interrupted is higher than software interrupt, it is preferable that second interrupts to perform interruption The interruption of middle highest priority.
Wherein, the implementation status that the monitoring described first is interrupted, and be judged as when described first interrupts and perform abnormal The generation software machine of delaying includes:Interrupted based on the described second implementation status for interrupting the monitoring software interrupt, and described second Judge to occur as software when performing abnormal to delay machine.
In embodiments of the present invention, in electronic equipment monitoring to interrupt instruction and the corresponding interrupt routine of interrupt instruction is performed When, it can be performed according to the priority of interrupt routine, the second interrupt priority level wherein in the embodiment of the present invention is higher than in first It is disconnected, therefore, the second interruption can be first carried out.And the second interruption in the embodiment of the present invention can include triggering timing device according to pre- If time timing, and the operation that monitoring of software is interrupted in preset time.So as to need what is performed in electronic equipment When interrupt routine is excessive, it can interrupt to trigger the monitoring of the first interruption by high priority second, so as to avoid in first It is disconnected not to be performed because priority is too low, cause software to be delayed the erroneous judgement of machine, further increasing software and delay the detection of machine Accuracy.The second interruption in the embodiment of the present invention can include hardware interrupts.The priority of the hardware interrupts program will height In software-interrupt routine.
As shown in figure 3, the implementation status that monitoring described first is interrupted is interrupted based on described second in the embodiment of the present invention, and It is judged as that occurring the software machine of delaying includes when described first interrupts and perform abnormal:
Judge whether the first interruption is performed or whether completes to perform in the preset time;
If first interruption determines that first interruption performs exception when not being performed, and is judged as that occurring software delays Machine.
In an embodiment of the present invention, above-mentioned first interruption can also include triggering timing device according to the time of setting timing The first program, and triggering perform first interrupt execution the second program, and including detection the timer according to it is default when Between timing first implementation status interrupted when completing, if it is determined that the first abnormal interruption, be then judged as there occurs that software is delayed machine;It is no Then it is judged as not occurring software to delay machine.Above-mentioned judgement first, which is interrupted, performs abnormal can be included in described the in the preset time One interrupts the situation for not being performed or not completing and perform.
By the above-mentioned configuration of the embodiment of the present invention, it can avoid because the priority of software interrupt is too low and causes erroneous judgement Disconnected situation, improves software and delays the accuracy of detection of machine.
In addition, the embodiment of the present invention can also provide a kind of electronic equipment, the electronic equipment can be applied to be implemented as described above Software described in example is delayed the detection method of machine, so as to easily realize that the software of electronic equipment is delayed the detection of machine.It is of the invention real Apply that example provided be used for inspection software delay the method for machine can be using in the electronic device, the electronic equipment can be used to believe Cease processing message processing device, its can include notebook computer, PAD, desktop computer, audio processing equipment, mobile phone or its His intelligent terminal.But the embodiment of the present invention is not limited to this.
The principle assumption diagram for a kind of electronic equipment being illustrated in figure 4 in the embodiment of the present invention, wherein the electronic equipment can With including:Processor 100, the processor can monitor the interrupt instruction for machine of being delayed on inspection software, and be interrupted based on described Instruction performs first of the executable program of operation one in the interruption for machine of being delayed for inspection software, and the monitoring interruption The implementation status of interruption, and judge when described first interrupts and perform abnormal to occur as software and delay machine;Wherein delayed machine for detection Interrupt can include operation one executable program first interrupt.
In the embodiment of the present invention, the processor 100 in electronic equipment can be monitored in real time delays machine for inspection software Interrupt instruction, it is possible to the corresponding interruption of the interrupt instruction is performed when monitoring the interrupt instruction, and is monitored in the interruption The first implementation status interrupted, and when judging that the first interruption occurs abnormal, be judged as that electronic equipment generation software is delayed machine.
Specifically, in the embodiment of the present invention be used for inspection software delay machine interruption can include first interrupt;This is in first Disconnected to include running an executable program, i.e., first interruption can be software interrupt in embodiments of the present invention.Suspect in user Electronic equipment may occur software delay machine when, software can be performed with control electronics and be delayed the detection of machine, and electronic equipment can be with The interrupt instruction for machine of being delayed on inspection software is generated based on the control, while the processor 100 in electronic equipment is detecting this When interrupting corresponding interrupt instruction, can perform in the interruption, such as embodiment of the present invention to interrupt to judge by first Software is delayed the situation of machine, and this first interrupts and include running an executable program, as software interrupt, and electronic equipment is by detecting this The running situation of software interrupt judges whether current electronic equipment there occurs software interrupt.Wherein in the embodiment of the present invention Software interrupt can be used for the software program (i.e. above-mentioned executable program) for calling electronic equipment;For example:It is each in ROM BIOS Kind of external device management interrupt service routine (Keyboard management is interrupted, display management is interrupted, printer management is interrupted etc.) and DOS system function call (INT21H) etc. is all software interrupt.The embodiment of the present invention is controlled to perform interruption journey by above-mentioned The device of sequence be referred to as interrupt performer 200, the interruption performer 200 can the control based on processor 100 and correspond to Execution software interrupt.For example the interruption performer 200 can include Keyboard management relay, display management relay or Person's printer management relay etc., but the present invention is not limited thereto.
As described above, the processor 100 in electronic equipment can also be sentenced by detecting first implementation status interrupted It is disconnected whether to there occurs that software is delayed machine.Specifically, processor 100 can be by judging to interrupt whether performer 200 performs the Whether one interrupt or perform and complete first interrupt routine and delayed machine to judge whether electronic equipment occurs software.
For example, in the embodiment of the present invention, processor 100 judge the first interruption be not performed or perform it is unfinished, then It may determine that electronic equipment there occurs that software is delayed machine;And when judging that the first interruption is completed successfully, then may determine that not occur Software is delayed machine.
Further, in the embodiment of the present invention judge electronic equipment occur software delay machine when, processor 100 can also be controlled System performs restarting for electronic equipment.For example, processor 100 can also be connected with the power supervisor 300 of electronic equipment, the power supply Manager 300 can be used for the start of control electronics, shut down, restart, the operation of dormancy or sleep, and processor 100 The reboot operation that when judgement generation software delays machine power supervisor 300 can be controlled to perform equipment, so as to realize electronics The software of equipment is delayed the automatic detection of machine, and electronic equipment replacement, facilitate the operation of user.
In addition, in embodiments of the present invention, above-mentioned interrupt instruction can be generated based on a trigger action, can also Other electronic equipments of outside are received from,
Specifically, the processor 100 in the embodiment of the present invention can detect for inspection software delay machine trigger action or In trigger signal, and the machine that is judged as when detecting the trigger action or trigger signal monitoring delaying on inspection software Severed finger makes.
In embodiments of the present invention, processor 100 can detect in real time for inspection software delay machine trigger action or Person's trigger signal, above-mentioned detection, which is used for the delay trigger action of machine of inspection software, can include the input of the default shortcut key of detection, Or the switching of preset switches etc..Namely can be provided with advance in electronic equipment and to be delayed the detection of machine for controlling to perform software Shortcut key or switching switch, user can be soft to control to perform by triggering the default shortcut key or switching switch Part is delayed the detection of machine, and processor 100 can be connected with keyboard equipment and switching switch, and is detecting default shortcut key Triggering or switching switch when being switched to corresponding state, you can to judge the middle severed finger for detecting machine of being delayed for inspection software Order.And above-mentioned detection be used for inspection software delay machine trigger signal can be detect due to above-mentioned triggering button triggering or The switching of cut-flower switch and the trigger signal that generates or being used for of detecting that electronic equipment receives perform software and delayed machine The trigger signal of detection.Processor 100 i.e. in electronic equipment can also be received delays from other equipment on execution software The trigger signal of machine testing, delays the detection of machine so as to perform software.
In addition, the processor 100 in electronic equipment is judged as when detecting above-mentioned trigger action or trigger signal Monitor to delay on software the interrupt instruction of machine, and the processor 100 in corresponding electronic equipment is also based on the interrupt instruction Obtain the information of corresponding with trigger action or trigger signal interrupt routine, the program function of such as interrupt routine, parameter or The information such as person address, corresponding interruption can be performed by the information of the interrupt routine of the acquisition.In embodiments of the present invention, may be used To obtain the information of corresponding interrupt routine by the processor 100 of electronic equipment, and corresponding software is controlled to perform interruption Device 200 performs corresponding executable program.That is, when processor 100 monitors interrupt instruction, severed finger in this can be obtained Make the information of corresponding interrupt routine, such as the above-mentioned first information interrupted, and the following second information interrupted.
In addition, in embodiments of the present invention, delayed judging whether to occur software after machine, processor 100 can also pass through control Different display modes is made to perform the feedback of judged result.
Specifically, for example, can judge to occur software delay machine when, on the one hand can be by the weight of power supervisor 300 Open operation to remind user to there occurs that software is delayed machine, and timely reset electronic equipment, it is manually operated without user;On the other hand Can also be reminded by the reminding unit 400 of electronic equipment, the reminding unit 400 can include buzzer, vibrator or Person's display.When processor 100 is reminded by controlling reminding unit 400, can control buzzer according to it is default when Between perform buzzing, either control vibrator according to preset time perform vibration operation or display can also be controlled according to pre- The machine message if time showing software is delayed, or display can also be controlled to be blue screen state according to preset time, furthermore it is also possible to Control to perform the reboot operation of electronic equipment again after control performs above-mentioned prompting operation, further improve Consumer's Experience.
Pass through the above-mentioned configuration of the embodiment of the present invention, in that context it may be convenient to which inspection software is delayed the situation of machine, facilitates the behaviour of user Make, improve Consumer's Experience effect.
In addition, in another embodiment of the invention, the interruption generated by above-mentioned trigger action or trigger signal Signal, which can also include second, to be interrupted, also, second interrupt priority level is interrupted higher than first;, it is preferable that second interrupts to hold The interruption of highest priority during row is interrupted.
Wherein, further, processor 100 is also based on the implementation status that the second interruption monitoring described first is interrupted, And judge to occur as software when first interrupts and perform abnormal and delay machine.
In embodiments of the present invention, in processor 100 monitors interrupt signal and controls interruption performer 200 to perform During the corresponding interrupt routine of break signal, interrupting performer 200 can perform according to the priority of interrupt routine, wherein the present invention The second interrupt priority level in embodiment is higher than the first hardware interrupts, therefore, the second interruption can be first carried out.And the present invention is implemented Second in example interrupts and can be interrupted including triggering first, and monitors the first implementation status interrupted.So as to be set in electronics When the interrupt routine that standby interior needs are performed is excessive, it can interrupt trigger the execution of the first interruption by high priority second, And the first running situation interrupted is detected, so as to avoid the first interruption from not being performed because priority is too low, cause software to be delayed The erroneous judgement of machine, further increasing software delay machine detection accuracy.Second in the embodiment of the present invention interrupt can be with Including hardware interrupts program.The priority of the hardware interrupts program is higher than software-interrupt routine.
Specifically, processor 100 can also judge in the preset time software interrupt whether be performed or whether Complete to perform;If being determined when software interrupt is not performed, the software interrupt performs exception, and is judged as occurring software and delays machine.
In an embodiment of the present invention, above-mentioned second interruption can also include triggering timing device according to preset time timing First program, and triggering perform the second program of the first execution interrupted, and including detecting the timer according to preset time First implementation status interrupted when timing is completed, if it is determined that the first abnormal interruption, is then judged as there occurs that software is delayed machine;Otherwise It is judged as not occurring software to delay machine.Above-mentioned judgement first, which is interrupted, performs abnormal can be included in described first in the preset time Interrupt the situation for not being performed or not completing and perform.
By the above-mentioned configuration of the embodiment of the present invention, it can avoid causing erroneous judgement because the first priority interrupted is too low Disconnected situation, improves software and delays the accuracy of detection of machine.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the data of foregoing description The electronic equipment that processing method is applied to, may be referred to the correspondence description in before-mentioned products embodiment, will not be repeated here.
Above example is only the exemplary embodiment of the present invention, is not used in the limitation present invention, protection scope of the present invention It is defined by the claims.Those skilled in the art can make respectively in the essence and protection domain of the present invention to the present invention Modification or equivalent substitution are planted, this modification or equivalent substitution also should be regarded as being within the scope of the present invention.

Claims (10)

  1. A kind of method of machine 1. inspection software is delayed, it includes:
    Monitor the interrupt instruction for machine of being delayed on inspection software;
    The interruption for machine of being delayed for inspection software is performed based on the interrupt instruction, the interruption includes one executable program of operation First interrupts;
    The described first implementation status interrupted is monitored, and judges that occurring software delays when monitoring that described first interrupts and perform abnormal Machine.
  2. 2. according to the method described in claim 1, wherein, it is described interruption also include priority be higher than described first interrupt second Interrupt;And the implementation status that the monitoring described first is interrupted, and judge when monitoring that described first interrupts and perform abnormal The generation software machine of delaying includes:
    Based on described second interrupt monitoring it is described first interrupt implementation status, and monitor it is described first interrupt perform exception When judge that occurring software delays machine.
  3. 3. according to the method described in claim 1, wherein, the monitoring includes on the delay interrupt instruction of machine of inspection software:
    Detect the trigger action or trigger signal for machine of being delayed for inspection software;
    Be judged as monitoring delaying on inspection software the interrupt instruction of machine when detecting the trigger action or trigger signal.
  4. 4. method according to claim 3, wherein, described detect includes for the delay trigger action of machine of inspection software:
    The trigger action is detected by detecting the triggering of programmable button.
  5. 5. method according to claim 2, wherein, second interruption includes triggering timing device according to preset time timing Program.
  6. 6. method according to claim 5, wherein, it is described to interrupt the execution that monitoring described first is interrupted based on described second Situation, and it is judged as that occurring the software machine of delaying includes when monitoring that described first interrupts and perform abnormal:
    Judge whether first interruption is performed or whether completes to perform in the preset time;
    Determine that first interruption performs exception if the described first interruption is not performed or do not completed and performs, and be judged as occurring Software is delayed machine.
  7. 7. according to the method described in claim 1, wherein, methods described also includes:
    Export the testing result for machine of being delayed on software.
  8. 8. according to the method described in claim 1, wherein, methods described also includes:
    Judge software delay machine when restart electronic equipment.
  9. 9. a kind of electronic equipment, the method for its machine of being delayed using the inspection software as described in any one in claim 1-8;And And, including:
    Processor, it is configured to the interrupt instruction for monitoring machine of being delayed on inspection software, and based on the interrupt instruction execution The first execution feelings interrupted of the executable program of operation one delayed for inspection software in the interruption of machine, and the monitoring interruption Condition, and judge when monitoring that described first interrupts and perform abnormal to occur software and delay machine.
  10. 10. electronic equipment according to claim 8, wherein, the interruption also includes priority and interrupted higher than described first Second interrupt, and
    The processor is further configured to interrupt the implementation status that monitoring described first is interrupted based on described second, and described First interrupts and judges to occur as software when performing abnormal and delay machine.
CN201710390582.2A 2017-05-27 2017-05-27 Method for detecting software downtime and electronic equipment Active CN107145402B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710390582.2A CN107145402B (en) 2017-05-27 2017-05-27 Method for detecting software downtime and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710390582.2A CN107145402B (en) 2017-05-27 2017-05-27 Method for detecting software downtime and electronic equipment

Publications (2)

Publication Number Publication Date
CN107145402A true CN107145402A (en) 2017-09-08
CN107145402B CN107145402B (en) 2020-11-10

Family

ID=59780776

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710390582.2A Active CN107145402B (en) 2017-05-27 2017-05-27 Method for detecting software downtime and electronic equipment

Country Status (1)

Country Link
CN (1) CN107145402B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107145402B (en) * 2017-05-27 2020-11-10 合肥联宝信息技术有限公司 Method for detecting software downtime and electronic equipment
CN113742113A (en) * 2020-05-29 2021-12-03 上海微电子装备(集团)股份有限公司 Embedded system health management method, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1581079A (en) * 2003-08-15 2005-02-16 英业达股份有限公司 Network server down auto-reset method and system
CN101241460A (en) * 2008-02-25 2008-08-13 中兴通讯股份有限公司 Method for checking CPU dead halt
CN101895440A (en) * 2010-07-22 2010-11-24 北京天融信科技有限公司 Security gateway and failure detection method thereof
CN104991832A (en) * 2015-06-20 2015-10-21 成都彬鸿科技有限公司 Method for processing shutdown of embedded processor
CN106502846A (en) * 2016-10-14 2017-03-15 合肥联宝信息技术有限公司 A kind of computer glitch detection method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107145402B (en) * 2017-05-27 2020-11-10 合肥联宝信息技术有限公司 Method for detecting software downtime and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1581079A (en) * 2003-08-15 2005-02-16 英业达股份有限公司 Network server down auto-reset method and system
CN101241460A (en) * 2008-02-25 2008-08-13 中兴通讯股份有限公司 Method for checking CPU dead halt
CN101895440A (en) * 2010-07-22 2010-11-24 北京天融信科技有限公司 Security gateway and failure detection method thereof
CN104991832A (en) * 2015-06-20 2015-10-21 成都彬鸿科技有限公司 Method for processing shutdown of embedded processor
CN106502846A (en) * 2016-10-14 2017-03-15 合肥联宝信息技术有限公司 A kind of computer glitch detection method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107145402B (en) * 2017-05-27 2020-11-10 合肥联宝信息技术有限公司 Method for detecting software downtime and electronic equipment
CN113742113A (en) * 2020-05-29 2021-12-03 上海微电子装备(集团)股份有限公司 Embedded system health management method, equipment and storage medium

Also Published As

Publication number Publication date
CN107145402B (en) 2020-11-10

Similar Documents

Publication Publication Date Title
RU2608471C2 (en) Method, device and unit for prevention of incorrect operation
KR102416906B1 (en) Terminal control method, device and terminal
EP2506114B1 (en) Method and device for intelligent terminal reset
US6587966B1 (en) Operating system hang detection and correction
CN100401820C (en) Cellular phone and operational mode switching method thereof
US8976380B2 (en) Image forming apparatus that shifts to different power state, method of controlling the same, and storage medium
CN108540664B (en) Starting method and electronic equipment
CN103106040A (en) Mobile terminal operation method and device using the same
CN110209428A (en) A kind of terminal screen awakening method, device, terminal and storage medium
CN107145402A (en) A kind of inspection software is delayed the method and electronic equipment of machine
CN104821996A (en) Method for answering or hanging up mobile terminal, and system thereof
WO2016101605A1 (en) Interaction method and apparatus, and user terminal
JP2016115028A (en) Information processor and information processor control method
TWI230328B (en) Method and computer system for reducing occurrence of cold reset
CN111290926A (en) Terminal prompting method and device, storage medium and terminal
JP2004362543A (en) Safety power disconnection system and its method
CN111212371A (en) Bluetooth headset control method and device, storage medium and electronic equipment
US9672048B2 (en) Electronic device and method for waking up operating system thereof
CN106775296B (en) Terminal control method and device
JP5954816B2 (en) Power supply control apparatus, information processing apparatus, and power supply control method
CN112783354A (en) Control method, device and equipment of touch device and storage medium
CN108108273B (en) Motherboard and computer system thereof
CN111163218A (en) Interactive reminding method and device, storage medium and electronic equipment
KR101180164B1 (en) Method and apparatus for controlling reset according to power state
JP2007221228A (en) Mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant