CN105183574B - Electronic device and its distal end method for restarting - Google Patents
Electronic device and its distal end method for restarting Download PDFInfo
- Publication number
- CN105183574B CN105183574B CN201510504352.5A CN201510504352A CN105183574B CN 105183574 B CN105183574 B CN 105183574B CN 201510504352 A CN201510504352 A CN 201510504352A CN 105183574 B CN105183574 B CN 105183574B
- Authority
- CN
- China
- Prior art keywords
- central processing
- timing
- processing unit
- electronic device
- interrupt signal
- 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.)
- Active
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
A kind of electronic device of present invention offer and its distal end method for restarting.Judge whether the interrupt signal of central processing unit output is maintained at preset state, when interrupt signal is not maintained at preset state and timing reaches preset time, reset signal is exported, to restart central processing unit, wherein preset time is more than the time started needed for central processing unit.Automatically boots is carried out when the present invention can make electronic device abnormal state occur, the state of crash is persistently in avoid electronic device, causes the puzzlement of user.
Description
Technical field
The present invention relates to a kind of electronic device more particularly to a kind of electronic devices and its distal end method for restarting.
Background technology
In recent years, With the fast development of internet, the skill upgrading of software and hardware, user can be remote by network
End starts at home or the various electronic devices of office are obtained remote with limited in local side resource using network
Calculation resources, storage resources or the service of side.For example, user can be by network remote access in far end device audio and video file
Case or file can still enjoy personal favorite film, music and photograph or immediate inquiring and browsing weight even if being away from home
Want file.
So due to the stability of general electronic device and non-perfect, sometimes because the defect of software or hardware cause to occur it is dead
The situation of machine usually must in a manual fashion be restarted by user by device at this time.If right user is logical
It when crossing network access far end device, will be unable to carry out manual boots to it nearby, and it allowed persistently to be in the state of crash, make
At the puzzlement of user.
Invention content
A kind of electronic device of present invention offer and its distal end method for restarting, it is automatic when electronic device can be made abnormal state occur
Boots is carried out, the state of crash is persistently in avoid electronic device, causes the puzzlement of user.
The electronic device of the present invention, which is characterized in that including timing unit and central processing unit.Wherein timing unit
To carry out time timing, reset signal is exported when timing reaches preset time.Central processing unit couples timing unit, uses
To export interrupt signal to timing unit, and interrupt signal is maintained preset state, when being carried out to interrupt timing unit
Between timing, wherein reset signal to reset central processing unit, preset time be more than start needed for central processing unit when
Between.
The distal end method for restarting of the electronic device of the present invention, which is characterized in that include the following steps.Judge central processing list
Whether the interrupt signal of member output is maintained at preset state.If interrupt signal is maintained at preset state, timing is interrupted.In if
Break signal is not maintained at preset state, restarts to carry out timing.Judge whether that timing reaches preset time.If timing reaches
Preset time, output reset signal reset central processing unit, and wherein preset time is more than restarting central processing unit institute
The time needed.
Based on above-mentioned, the embodiment of the present invention judges whether interrupt signal is maintained at preset state, interrupt signal not
It is maintained at preset state and when timing reaches preset time, exports reset signal, to restart central processing unit, wherein
Preset time is more than the time needed for restarting central processing unit.So determined by the way that whether timing reaches preset time
Whether central processing unit is restarted, when the situation of abnormal state occurs in electronic device, electronic device can be carried out automatically
Boots, and then solving user can not allow electronic device to be persistently in crash state electronic device restarting from distal end
The problem of.
To make the foregoing features and advantages of the present invention clearer and more comprehensible, special embodiment below, and it is detailed to coordinate attached drawing to make
Carefully it is described as follows.
Description of the drawings
Fig. 1 is the schematic diagram according to a kind of electronic device of the embodiment of the present invention;
Fig. 2A is the waveform diagram according to the interrupt signal of one embodiment of the invention;
Fig. 2 B are the waveform diagrams according to the reset signal of one embodiment of the invention;
Fig. 3 is the flow diagram according to a kind of distal end method for restarting of electronic device of one embodiment of the invention;
Fig. 4 is the flow diagram according to the distal end method for restarting of another electronic device of one embodiment of the invention;
Fig. 5 is the flow diagram according to the distal end method for restarting of another electronic device of one embodiment of the invention.
Reference sign:
100:Electronic device;
102:Timing unit;
104:Central processing unit;
RS1:Reset signal;
ITR1:Interrupt signal;
S302~S310, S402, S502:The step of distal end method for restarting of electronic device.
Specific implementation mode
Fig. 1 is to please refer to Fig. 1 according to a kind of schematic diagram of electronic device of the embodiment of the present invention.Electronic device 100 wraps
Timing unit 102 and central processing unit 104 are included, timing unit 102 couples central processing unit 104.Timing unit 102 is not
Belong to a part for central processing unit 104, though central processing unit 104 crash or can not normal operation, timing unit 102
It all can normal operation.Wherein electronic device 100 may be, for example, desk computer, laptop or server, network dress
Set ... etc., so it is not limited.Timing unit 102 can for example be implemented with microcontroller or 555 timers, timing unit
102 to timing, and to export reset signal RS1 when timing reaches preset time to central processing unit 104, with again
Start central processing unit 104.Wherein preset time may be set to be more than the time started needed for central processing unit 104, lift
Example for, if central processing unit 104 restart the required time be 30 seconds, preset time can for example be set as 30 seconds,
40 seconds or 1 minute (being so not limited) etc. are more than 30 seconds time, to allow central processing unit 104 to have time enough again
Start, avoid that central processing unit 104 is caused to be reset again in the midway restarted, and can not complete to open again forever
Dynamic situation.Central processing unit 104 can be used to receive the instruction of the system update from far end device, carry out the work of software upgrading
Industry and be activated again, or be activated from the enabled instruction of far end device to receive.Wherein far end device can be such as
For desk computer, laptop or server ... etc., so it is not limited.
In the case of 104 normal operation of central processing unit, central processing unit 104 can be used to export to timing list
The interrupt signal ITR1 of member 102 maintains preset state, carries out time timing to interrupt timing unit 102, allows timing unit 102
Can not timing reach preset time and send out reset signal RS1.And during the startup of central processing unit 104, central processing
Though unit 104 starts because not yet completing due to can not continue output interrupt signal ITR1, so since preset time is set to be greater than
It completes to start the time needed for central processing unit 104, if therefore not crashing during the startup of central processing unit 104
Situation, when complete central processing unit 104 startup when, timing does not reach preset time to timing unit 102.In in this way,
Central Processing Unit 104 can to before timing unit 102 exports reset signal RS1 output maintain the interruption letter of preset state
Number ITR1 avoids timing unit 102 from sending out reset signal RS1 to timing unit 102, and then can favorably accomplish electronic device
100 initiating task or the operation of software upgrading.
If on the contrary, the situation to crash occurs during startup in central processing unit 104, central processing unit 104 is by nothing
Method is completed to start before 102 timing of timing unit reaches preset time, namely can not be when 102 timing of timing unit reaches default
Between the preceding interrupt signal ITR1 for maintaining preset state that exports to timing unit 102.In this way, when 102 timing of timing unit reaches
When preset time, timing unit 102 can be to send out reset signal RS1 to central processing unit 104, and restarts center
Processing unit 104 avoids electronic device 100 from being constantly in crash state, and causes the puzzlement of user.Wherein, timing list
Member 102 can be used to cycle repeatedly through timing preset time, if in this way, causing the factor that central processing unit 104 crashes that can not lead to
Cross single time restarting exclude namely central processing unit 104 when being restarted once more during startup
The situation of crash, and cause 102 timing of timing unit reach preset time when, timing unit 102 can also send out again resetting letter
Number RS1 resets central processing unit 104.Timing preset time is so cycled repeatedly through by timing unit 102, it can be in centre
It manages unit 104 continuously to occur in the case of crashing, central processing unit 104 is repeatedly reset, until central processing unit 104 is extensive
It is multiple to can normal operation state and until sustainably exporting the interrupt signal ITR1 with predetermined period.Similarly, if in
There is the situation to crash at other times in Central Processing Unit 104, and can not export the interrupt signal for maintaining preset state
ITR1 also can be sent out reset signal RS1 by timing unit 102 to reset central processing unit 104, made to timing unit 102
It is restored to can normal operation state and until sustainably exporting the interrupt signal ITR1 with predetermined period.
Fig. 2A is according to the waveform diagram of the interrupt signal of one embodiment of the invention, and Fig. 2 B are implemented according to the present invention one
The waveform diagram of the reset signal of example.Please also refer to Fig. 2A, for example, above-mentioned interrupt signal ITR1 may be, for example, period letter
Number, the period may be, for example, 100ms, 200ms or 300ms etc., so be not limited.When central processing unit 104 sustainably
When exporting the interrupt signal ITR1 with predetermined period, timing unit 102 can be made to stop timing.And work as central processing unit 104
Operate it is abnormal or in start during when, central processing unit 104 will be unable to constantly export the interruption with predetermined period
Signal ITR1, such as interrupt signal ITR1 may become nonperiodic signal (such as becoming the signal in low voltage level),
Or the period changes, and timing unit 102 is made to restart timing.When 102 timing of timing unit reaches preset time,
The voltage quasi position of 102 changeable reset signal RS1 of timing unit, to reset central processing unit 104.Such as implement in Fig. 2 B
In example, reset signal RS1 is switched to low voltage level by timing unit 102 when timing reaches preset time by high voltage level,
To reset central processing unit 104, then reset signal RS1 is restored to the state of high voltage level.If central processing unit
104 there is the situation to crash again during startup, and 102 timing of timing unit is caused to reach preset time, timing unit 102
To change the state of reset signal RS1 again, to reset central processing unit 104, so cycle repeatedly through timing it is default when
Between, to reset central processing unit 104, believe until central processing unit 104 sustainably exports the interruption with predetermined period
Until number ITR1.
It is worth noting that, the embodiment of above-mentioned interrupt signal ITR1 and reset signal RS1 is only exemplary implementation
, it is not limited thereto in practical application.In other embodiments, interrupt signal ITR1 also may be, for example, nonperiodic signal, and
The preset state of interrupt signal ITR1 may be, for example, specific voltage level.In addition, reset signal RS1, which is not limited to, yet switchs to low electricity
Central processing unit 104 is reset when pressing level, such as can also be designed according to actual circuit and be changed to reset when switching to high voltage level
Central processing unit 104.
Fig. 3 please be joined according to a kind of flow diagram of the distal end method for restarting of electronic device of one embodiment of the invention
According to Fig. 3.By above-described embodiment it is found that the flow of the distal end method for restarting of electronic device may include the following steps.In first, it is determined that
Whether the interrupt signal of Central Processing Unit output is maintained at preset state (step S302), and wherein interrupt signal is in default shape
It may be, for example, periodic signal when state, be so not limited.If interrupt signal is maintained at preset state, timing (step is interrupted
S304), if on the contrary, interrupt signal is not maintained at preset state, restart to carry out timing (step S306), then,
It is risen after one section of preset time restarting timing, judges whether that timing reaches preset time (step S308).It is fallen into a trap
When preset time mode may be, for example, recycle timing mode, preset time may be, for example, 30 seconds, so also be not limited.If
Timing reaches preset time, and output reset signal resetting central processing unit (step S310), wherein preset time are more than again
Start the time needed for central processing unit.And if non-timing reaches the interrupt signal of central processing unit output before preset time
Restored preset state, and so that timing is interrupted and can not timing reach preset time, step S302 can be returned to and continue to judge
Whether the interrupt signal of central processing unit output is maintained at preset state.In some embodiments, step S308 judgement be
The mode that no timing reaches preset time also may be, for example, the situation that constantly whether monitoring timing has stopping, if timing stops,
The interrupt signal for maintaining preset state can normally be exported by representing electronic device, can be immediately returned at this time step S302 after
It is continuous to judge whether the interrupt signal of central processing unit output is maintained at preset state.And if there is no the feelings stopped for timing
Shape can just be made timing and arrived the judgement of preset time until the accumulative arrival preset time of timing, and enter step
S310, output reset signal reset central processing unit.
Fig. 4 is asked according to the flow diagram of the distal end method for restarting of another electronic device of one embodiment of the invention
With reference to Fig. 4.The present embodiment and Fig. 3 embodiments the difference is that, the present embodiment further includes step before step S302
S402, namely receive the system update instruction from far end device and restart central processing unit, wherein in central processing
Interrupt signal is not maintained at preset state during the startup of unit.
Fig. 5 is asked according to the flow diagram of the distal end method for restarting of another electronic device of one embodiment of the invention
With reference to Fig. 5.The present embodiment and Fig. 3 embodiments the difference is that, the present embodiment further includes step before step S302
S502, namely receive and start central processing unit from the enabled instruction of far end device, wherein opening in central processing unit
Interrupt signal is not maintained at preset state during dynamic.
In conclusion the embodiment of the present invention judge central processing unit output interrupt signal whether be maintained at it is default
State exports reset signal when interrupt signal is not maintained at preset state and timing reaches preset time, with restarting
Central processing unit, wherein preset time are more than the time needed for restarting central processing unit.So by timing whether
Reach preset time to decide whether to restart central processing unit, starts electronic device in distal end or electronics is filled in distal end
When setting progress software upgrading, if the situation of abnormal state occurs in electronic device, electronic device can automatically carry out boots, in turn
Solve the problems, such as that electronic device can not be restarted from distal end and electronic device is allowed persistently to be in crash state by user.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Present invention has been described in detail with reference to the aforementioned embodiments for pipe, it will be understood by those of ordinary skill in the art that:Its according to
So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into
Row equivalent replacement;And these modifications or replacements, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.
Claims (11)
1. a kind of electronic device, which is characterized in that including:
Timing unit, to carry out time timing, to export reset signal when timing reaches preset time;And
Central processing unit couples the timing unit, to receive the system update instruction from far end device and continue
Property output interrupt signal to the timing unit, and the interrupt signal is maintained preset state, by interrupt it is described in terms of
Shi Danyuan carries out time timing, wherein the reset signal, to reset the central processing unit, the preset time is more than
Start the time needed for the central processing unit.
2. electronic device according to claim 1, which is characterized in that the central processing unit, which receives, comes from the distal end
The system update of device is instructed and is restarted, wherein the interruption letter during the startup of the central processing unit
Number it is not maintained at the preset state.
3. electronic device according to claim 1, which is characterized in that the central processing unit also comes from institute to receive
State the enabled instruction of far end device and be activated, wherein during the startup of the central processing unit interrupt signal not by
Maintain the preset state.
4. electronic device according to claim 1, which is characterized in that the interrupt signal is not in the preset state
When, the timing unit restarts timing.
5. electronic device according to claim 1, which is characterized in that the preset time is more than 30 seconds.
6. electronic device according to claim 1, which is characterized in that the timing unit is preset to recycle described in timing
Time.
7. a kind of distal end method for restarting of electronic device, which is characterized in that including:
System update instruction and duration output interrupt signal from far end device are received by central processing unit;
Judge whether the interrupt signal of the central processing unit duration output is maintained at preset state;
If the interrupt signal is maintained at the preset state, timing is interrupted;
If the interrupt signal is not maintained at the preset state, restart to carry out timing;
Judge whether that timing reaches preset time;And
If timing reaches the preset time, output reset signal resets the central processing unit, wherein the preset time
More than the time restarted needed for the central processing unit.
8. the distal end method for restarting of electronic device according to claim 7, which is characterized in that further include:
It receives the instruction of the system update from the far end device and restarts the central processing unit, wherein in institute
The interrupt signal is not maintained at the preset state during stating the startup of central processing unit.
9. the distal end method for restarting of electronic device according to claim 7, which is characterized in that further include:
It receives the enabled instruction from the far end device and starts the central processing unit, wherein in the central processing list
The interrupt signal is not maintained at the preset state during the startup of member.
10. the distal end method for restarting of electronic device according to claim 7, which is characterized in that the preset time is more than
30 seconds.
11. the distal end method for restarting of electronic device according to claim 7, which is characterized in that wherein carry out the step of timing
Suddenly include:
Recycle preset time described in timing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510504352.5A CN105183574B (en) | 2015-08-17 | 2015-08-17 | Electronic device and its distal end method for restarting |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510504352.5A CN105183574B (en) | 2015-08-17 | 2015-08-17 | Electronic device and its distal end method for restarting |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105183574A CN105183574A (en) | 2015-12-23 |
CN105183574B true CN105183574B (en) | 2018-10-19 |
Family
ID=54905669
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510504352.5A Active CN105183574B (en) | 2015-08-17 | 2015-08-17 | Electronic device and its distal end method for restarting |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105183574B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002287807A (en) * | 2001-03-27 | 2002-10-04 | Digital Electronics Corp | System and method for detecting operation abnormality of control device |
CN1967489A (en) * | 2005-11-14 | 2007-05-23 | 鸿富锦精密工业(深圳)有限公司 | Method and system for preventing computer down |
CN101453366A (en) * | 2007-11-30 | 2009-06-10 | 英业达股份有限公司 | Method and system for on-line repair in real-time |
CN101751300A (en) * | 2008-10-17 | 2010-06-23 | 环旭电子股份有限公司 | Computer resetting system and system resetting method |
CN102375767A (en) * | 2010-08-17 | 2012-03-14 | 鸿富锦精密工业(深圳)有限公司 | Computer restart testing system and method |
-
2015
- 2015-08-17 CN CN201510504352.5A patent/CN105183574B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002287807A (en) * | 2001-03-27 | 2002-10-04 | Digital Electronics Corp | System and method for detecting operation abnormality of control device |
CN1967489A (en) * | 2005-11-14 | 2007-05-23 | 鸿富锦精密工业(深圳)有限公司 | Method and system for preventing computer down |
CN101453366A (en) * | 2007-11-30 | 2009-06-10 | 英业达股份有限公司 | Method and system for on-line repair in real-time |
CN101751300A (en) * | 2008-10-17 | 2010-06-23 | 环旭电子股份有限公司 | Computer resetting system and system resetting method |
CN102375767A (en) * | 2010-08-17 | 2012-03-14 | 鸿富锦精密工业(深圳)有限公司 | Computer restart testing system and method |
Also Published As
Publication number | Publication date |
---|---|
CN105183574A (en) | 2015-12-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113656175B (en) | Method and equipment for training model based on distributed system | |
EP3663925B1 (en) | Method for processing refreshing display abnormality, and terminal | |
WO2017215756A1 (en) | Technique for resolving a link failure | |
CN104965727A (en) | Method and device for restarting server | |
JP2018180793A5 (en) | ||
US20100169695A1 (en) | Autonomous multi-device event synchronization and sequencing technique eliminating master and slave assignments | |
CN104572150B (en) | Information processing method and device | |
CN102957806A (en) | Method and device for restarting mobile phone | |
CN108710534A (en) | The tune of multi-process plays method, apparatus, terminal device and computer storage media | |
CN105183574B (en) | Electronic device and its distal end method for restarting | |
CN107465756B (en) | Service request processing method and device | |
CN114679481A (en) | Robot control method and device, storage medium and robot cluster | |
CN105933160B (en) | Method for realizing rapid connection of wired network on Android smart television | |
CN100458695C (en) | Automatic total remote controlling method | |
CN108591035A (en) | A kind of compressor start control method, device, equipment and readable storage medium storing program for executing | |
CN117319376A (en) | File downloading control method and device, electronic equipment and storage medium | |
CN115033462B (en) | Storage server start detection method, system, device, equipment and storage medium | |
CN105930215A (en) | Control method and control device for mobile terminal | |
EP3798800A1 (en) | Control method and apparatus of intelligent device, electronic device, and storage medium | |
CN109491771B (en) | Task processing method based on system performance optimization and related equipment | |
CN115421859A (en) | Dynamic loading method and device of configuration file, computer equipment and storage medium | |
CN113747423B (en) | Cloud mobile phone state synchronization method, device, equipment, storage medium and program product | |
CN112019933B (en) | Service method and device of intelligent hardware equipment | |
CN111158984B (en) | Method, device, equipment and storage medium for monitoring server hardware | |
JP2006172389A (en) | Start control method, duplex platform system, and information processor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |