CN105183574A - Electronic apparatus and remote restarting method therefor - Google Patents

Electronic apparatus and remote restarting method therefor Download PDF

Info

Publication number
CN105183574A
CN105183574A CN201510504352.5A CN201510504352A CN105183574A CN 105183574 A CN105183574 A CN 105183574A CN 201510504352 A CN201510504352 A CN 201510504352A CN 105183574 A CN105183574 A CN 105183574A
Authority
CN
China
Prior art keywords
central processing
timing
processing unit
cpu
look
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
CN201510504352.5A
Other languages
Chinese (zh)
Other versions
CN105183574B (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.)
Zhonglei Electronic (suzhou) Co Ltd
Original Assignee
Zhonglei Electronic (suzhou) 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 Zhonglei Electronic (suzhou) Co Ltd filed Critical Zhonglei Electronic (suzhou) Co Ltd
Priority to CN201510504352.5A priority Critical patent/CN105183574B/en
Publication of CN105183574A publication Critical patent/CN105183574A/en
Application granted granted Critical
Publication of CN105183574B publication Critical patent/CN105183574B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The present invention provides an electronic apparatus and a remote restarting method therefor. The method comprises: determining whether an interrupt signal output by a central processing unit is maintained in a preset state; and when the interrupt is not maintained in the preset state and a counted time reaches a preset time, outputting a reset signal to restart the central processing unit, wherein the preset time is greater than a time required for starting the central processing unit. According to the remote restarting method provided the present invention, the electronic apparatus is enabled to automatically restart when a state abnormality occurs, so as to prevent the electronic apparatus from being maintained in a crash state, which brings troubles to a user.

Description

Electronic installation and far-end method for restarting thereof
Technical field
The present invention relates to a kind of electronic installation, particularly relate to a kind of electronic installation and far-end method for restarting thereof.
Background technology
In recent years, along with the fast development of internet, the skill upgrading of software restraint, user starts at home or the various electronic installations of office by network far-end, with when local side resource-constrained, utilizes network to obtain the calculation resources in a distant place, storage resources or service.Such as, user, by the video/audio archive of network remote access in far end device or file, even if be away from home, still can enjoy film, music and photograph that individual likes, or immediate inquiring and browse vital document.
So due to the stability of general electronic installation and imperfections, sometimes because the defect of software or hardware causes the situation that occurs crashing, now usually must be restarted in a manual fashion device is other by user.If when so user is by network access far end device, manual boots cannot be carried out to it nearby, and allow it continue to be in the state of deadlock, cause the puzzlement of user.
Summary of the invention
The invention provides a kind of electronic installation and far-end method for restarting thereof, automatically carry out boots when electronic installation can be made to occur abnormal state, continue the state being in deadlock to avoid electronic installation, cause the puzzlement of user.
Electronic installation of the present invention, is characterized in that, comprises timing unit and CPU (central processing unit).Wherein timing unit is in order to carry out time timing, exports reset signal when timing reaches Preset Time.CPU (central processing unit) couples timing unit, in order to export look-at-me to timing unit, and in order to look-at-me is maintained preset state, time timing is carried out to interrupt timing unit, wherein reset signal is in order to reset CPU (central processing unit), and Preset Time is greater than the time started needed for CPU (central processing unit).
The far-end method for restarting of electronic installation of the present invention, is characterized in that, comprise the following steps.Judge whether the look-at-me that CPU (central processing unit) exports is maintained at preset state.If look-at-me is maintained at preset state, interrupt timing.If look-at-me is not maintained at preset state, restart to carry out timing.Judge whether that timing reaches Preset Time.If timing reaches Preset Time, export reset signal and reset CPU (central processing unit), wherein Preset Time is greater than the time restarted needed for CPU (central processing unit).
Based on above-mentioned, embodiments of the invention judge whether look-at-me is maintained at preset state, when look-at-me is not maintained at preset state and timing reaches Preset Time, export reset signal, to restart CPU (central processing unit), wherein Preset Time is greater than the time restarted needed for CPU (central processing unit).So whether reach Preset Time by timing to determine whether restarting CPU (central processing unit), when there is the situation of abnormal state in electronic installation, electronic installation automatically can carry out boots, and then electronic installation cannot restart from far-end and allow electronic installation continue to be in the problem of deadlock state by solution user.
For above-mentioned feature and advantage of the present invention can be become apparent, special embodiment below, and coordinate accompanying drawing to be described in detail below.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of a kind of electronic installation according to embodiments of the invention;
Fig. 2 A is the waveform schematic diagram of the look-at-me according to one embodiment of the invention;
Fig. 2 B is the waveform schematic diagram of the reset signal according to one embodiment of the invention;
Fig. 3 is the schematic flow sheet of the far-end method for restarting of a kind of electronic installation according to one embodiment of the invention;
Fig. 4 is the schematic flow sheet of the far-end method for restarting of another kind of electronic installation according to one embodiment of the invention;
Fig. 5 is the schematic flow sheet of the far-end method for restarting of another kind of electronic installation according to one embodiment of the invention.
Description of reference numerals:
100: electronic installation;
102: timing unit;
104: CPU (central processing unit);
RS1: reset signal;
ITR1: look-at-me;
S302 ~ S310, S402, S502: the step of the far-end method for restarting of electronic installation.
Embodiment
Fig. 1 is the schematic diagram of a kind of electronic installation according to embodiments of the invention, please refer to Fig. 1.Electronic installation 100 comprises timing unit 102 and CPU (central processing unit) 104, and timing unit 102 couples CPU (central processing unit) 104.Timing unit 102 does not belong to a part for CPU (central processing unit) 104, even if CPU (central processing unit) 104 crashes or cannot normal operation, timing unit 102 all can normal operation.Wherein electronic installation 100 can be such as desk computer, notebook computer or server, network equipment ... etc., so not as limit.Timing unit 102 can such as be implemented with microcontroller or 555 timers, timing unit 102 in order to timing, and in order to export reset signal RS1 when timing reaches Preset Time to CPU (central processing unit) 104, to restart CPU (central processing unit) 104.Wherein Preset Time can be set greater than the time started needed for CPU (central processing unit) 104, for example, if it is 30 seconds that CPU (central processing unit) 104 restarts the required time, then Preset Time such as can be set as that 30 seconds, 40 seconds or 1 minute (so not as limit) etc. are greater than the time of 30 seconds, time enough is had to restart to allow CPU (central processing unit) 104, avoid causing the midway that CPU (central processing unit) 104 is carrying out restarting to be reset again, and forever cannot complete the situation restarted.CPU (central processing unit) 104 in order to receive the system update instruction from far end device, can be carried out the operation of software upgrading and is again activated, or is activated in order to the enabled instruction received from far end device.Wherein far end device can be such as desk computer, notebook computer or server ... etc., so not as limit.
When CPU (central processing unit) 104 normal operation, CPU (central processing unit) 104 can in order to maintain preset state by the look-at-me ITR1 exporting timing unit 102 to, carry out time timing to interrupt timing unit 102, allow timing unit 102 timing cannot reach Preset Time and to send reset signal RS1.And between the starting period of CPU (central processing unit) 104, though CPU (central processing unit) 104 cannot continue because not yet completing startup to export look-at-me ITR1, so because Preset Time has been set to be greater than the time started needed for CPU (central processing unit) 104, the situation crashed if therefore do not occur between the starting period of CPU (central processing unit) 104, when completing the startup of CPU (central processing unit) 104, timing unit 102 not timing reaches Preset Time.So, CPU (central processing unit) 104 just can maintain the look-at-me ITR1 of preset state to timing unit 102 in order to output before timing unit 102 exports reset signal RS1, and avoid timing unit 102 to send reset signal RS1, and then successfully can complete the initiating task of electronic installation 100 or the operation of software upgrading.
On the contrary, if there is the situation crashed in CPU (central processing unit) 104 between the starting period, CPU (central processing unit) 104 cannot complete startup before timing unit 102 timing reaches Preset Time, also namely cannot export before timing unit 102 timing reaches Preset Time and maintain the look-at-me ITR1 of preset state to timing unit 102.So, when timing unit 102 timing reaches Preset Time, timing unit 102 just in order to send reset signal RS1 to CPU (central processing unit) 104, and can restart CPU (central processing unit) 104, avoid electronic installation 100 to be in deadlock state constantly, and cause the puzzlement of user.Wherein, timing unit 102 can in order to the timing Preset Time that repeatedly circulates, so, if the factor causing CPU (central processing unit) 104 to crash cannot be got rid of by single time restart, also be the situation that CPU (central processing unit) 104 crashes once more when being restarted between the starting period, and when causing timing unit 102 timing to arrive Preset Time, timing unit 102 also again can send reset signal RS1 and reset CPU (central processing unit) 104.So by timing unit 102 repeatedly circulation timing Preset Time, can when crashing appears in CPU (central processing unit) 104 continuously, repeatedly reset CPU (central processing unit) 104, until CPU (central processing unit) 104 return to can normal operation state and export the look-at-me ITR1 with predetermined period sustainably.Similarly, if there is the situation crashed at other times point in CPU (central processing unit) 104, and cannot export maintain preset state look-at-me ITR1 to timing unit 102, also send reset signal RS1 to reset CPU (central processing unit) 104 by timing unit 102, make its return to can normal operation state and till exporting the look-at-me ITR1 with predetermined period sustainably.
Fig. 2 A is the waveform schematic diagram of the look-at-me according to one embodiment of the invention, and Fig. 2 B is the waveform schematic diagram of the reset signal according to one embodiment of the invention.Please also refer to Fig. 2 A, for example, above-mentioned look-at-me ITR1 can be such as periodic signal, and its cycle can be such as 100ms, 200ms or 300ms etc., so not as limit.When CPU (central processing unit) 104 export sustainably there is the look-at-me ITR1 of predetermined period time, timing unit 102 can be made to stop timing.And when CPU (central processing unit) 104 operate abnormal or be between the starting period time; CPU (central processing unit) 104 cannot export the look-at-me ITR1 with predetermined period constantly; such as look-at-me ITR1 may become nonperiodic signal (such as becoming the signal being in low voltage level); also or the cycle change, and make timing unit 102 restart timing.When timing unit 102 timing reaches Preset Time, the voltage quasi position of the changeable reset signal RS1 of timing unit 102, to reset CPU (central processing unit) 104.Such as in Fig. 2 B embodiment, timing unit 102, when timing arrives Preset Time, transfers reset signal RS1 to low voltage level by high voltage level, to reset CPU (central processing unit) 104, then reset signal RS1 is returned to the state of high voltage level.If again there is the situation crashed in CPU (central processing unit) 104 between the starting period, and cause timing unit 102 timing to arrive Preset Time, timing unit 102 is in order to again to change the state of reset signal RS1, to reset CPU (central processing unit) 104, so repeatedly circulation timing Preset Time, reset CPU (central processing unit) 104, until CPU (central processing unit) 104 exports the look-at-me ITR1 with predetermined period sustainably.
It should be noted that the embodiment that the embodiment of above-mentioned look-at-me ITR1 and reset signal RS1 is only exemplary, not as limit in practical application.In other embodiments, look-at-me ITR1 can be also such as nonperiodic signal, and the preset state of look-at-me ITR1 can be such as specific voltage level.In addition, reset signal RS1 is not limited to when transferring low voltage level to yet and resets CPU (central processing unit) 104, such as, can change into according to side circuit design yet and reset CPU (central processing unit) 104 when transferring high voltage level to.
Fig. 3 is the schematic flow sheet of the far-end method for restarting of a kind of electronic installation according to one embodiment of the invention, please refer to Fig. 3.From above-described embodiment, the flow process of the far-end method for restarting of electronic installation can comprise the following steps.First, judging whether the look-at-me that CPU (central processing unit) exports is maintained at preset state (step S302), can be such as periodic signal when wherein look-at-me is in preset state, so not as limit.If look-at-me is maintained at preset state, then interrupt timing (step S304), on the contrary, if look-at-me is not maintained at preset state, then restart to carry out timing (step S306), then, rise after one section of Preset Time restarting timing, judge whether that timing reaches Preset Time (step S308).Wherein the mode of timing Preset Time can be such as the mode of circulation timing, and Preset Time can be such as 30 seconds, so also not as limit.If timing reaches Preset Time, export reset signal and reset CPU (central processing unit) (step S310), wherein Preset Time is greater than the time restarted needed for CPU (central processing unit).And if non-timing reach Preset Time before CPU (central processing unit) export look-at-me recovered preset state, and timing is interrupted and timing cannot reaches Preset Time, step S302 can be got back to and continue to judge whether the look-at-me that CPU (central processing unit) exports is maintained at preset state.In some embodiments, step S308 judges whether that the mode that timing reaches Preset Time also can such as monitoring the situation whether timing has stopping constantly, if timing stops, represent electronic installation and can normally export the look-at-me maintaining preset state, now just can get back to step S302 immediately and continue to judge whether the look-at-me that CPU (central processing unit) exports is maintained at preset state.And if the situation that timing does not stop, when can wait until that timing is accumulative and arrive Preset Time, just make the judgement that timing has arrived Preset Time, and enter step S310, export reset signal replacement CPU (central processing unit).
Fig. 4 is the schematic flow sheet of the far-end method for restarting of another kind of electronic installation according to one embodiment of the invention, please refer to Fig. 4.The difference of the present embodiment and Fig. 3 embodiment is, the present embodiment also comprised step S402 before step S302, namely receive the system update instruction from far end device and restart CPU (central processing unit), wherein between the starting period of CPU (central processing unit), look-at-me is not maintained at preset state yet.
Fig. 5 is the schematic flow sheet of the far-end method for restarting of another kind of electronic installation according to one embodiment of the invention, please refer to Fig. 5.The difference of the present embodiment and Fig. 3 embodiment is, the present embodiment also comprised step S502 before step S302, namely receive the enabled instruction from far end device and start CPU (central processing unit), wherein between the starting period of CPU (central processing unit), look-at-me is not maintained at preset state yet.
In sum, embodiments of the invention judge whether the look-at-me that CPU (central processing unit) exports is maintained at preset state, when look-at-me is not maintained at preset state and timing reaches Preset Time, export reset signal, to restart CPU (central processing unit), wherein Preset Time is greater than the time restarted needed for CPU (central processing unit).So whether reach Preset Time by timing to determine whether restarting CPU (central processing unit), at far-end startup electronic installation or when carrying out software upgrading at far-end to electronic installation, if there is the situation of abnormal state in electronic installation, electronic installation automatically can carry out boots, and then electronic installation cannot restart from far-end and allow electronic installation continue to be in the problem of deadlock state by solution user.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (11)

1. an electronic installation, is characterized in that, comprising:
Timing unit, in order to carry out time timing, to export reset signal when timing reaches Preset Time; And
CPU (central processing unit), couple described timing unit, in order to export look-at-me to described timing unit, and in order to described look-at-me is maintained preset state, time timing is carried out to interrupt described timing unit, wherein said reset signal is in order to reset described CPU (central processing unit), and described Preset Time is greater than the time started needed for described CPU (central processing unit).
2. electronic installation according to claim 1, it is characterized in that, described CPU (central processing unit) is also restarted in order to the system update instruction received from far end device, and wherein between the starting period of described CPU (central processing unit), described look-at-me is not maintained at described preset state.
3. electronic installation according to claim 1, it is characterized in that, described CPU (central processing unit) is also activated in order to the enabled instruction received from far end device, and wherein between the starting period of described CPU (central processing unit), described look-at-me is not maintained at described preset state.
4. electronic installation according to claim 1, is characterized in that, when described look-at-me is not in described preset state, described timing unit restarts timing.
5. electronic installation according to claim 1, is characterized in that, described Preset Time is greater than 30 seconds.
6. electronic installation according to claim 1, is characterized in that, described timing unit is in order to the Preset Time described in timing that circulates.
7. a far-end method for restarting for electronic installation, is characterized in that, comprising:
Judge whether the look-at-me that CPU (central processing unit) exports is maintained at preset state;
If described look-at-me is maintained at described preset state, interrupt timing;
If described look-at-me is not maintained at described preset state, restart to carry out timing;
Judge whether that timing reaches Preset Time; And
If timing reaches described Preset Time, export reset signal and reset described CPU (central processing unit), wherein said Preset Time is greater than the time restarted needed for described CPU (central processing unit).
8. the far-end method for restarting of electronic installation according to claim 7, is characterized in that, also comprise:
Receive the system update instruction from far end device and restart described CPU (central processing unit), wherein between the starting period of described CPU (central processing unit), described look-at-me is not maintained at described preset state.
9. the far-end method for restarting of electronic installation according to claim 7, is characterized in that, also comprise:
Receive the enabled instruction from far end device and start described CPU (central processing unit), wherein between the starting period of described CPU (central processing unit), described look-at-me is not maintained at described preset state.
10. the far-end method for restarting of electronic installation according to claim 7, is characterized in that, described Preset Time is greater than 30 seconds.
The far-end method for restarting of 11. electronic installations according to claim 7, is characterized in that, the step of wherein carrying out timing comprises:
Preset Time described in circulation timing.
CN201510504352.5A 2015-08-17 2015-08-17 Electronic device and its distal end method for restarting Active CN105183574B (en)

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 true CN105183574A (en) 2015-12-23
CN105183574B 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)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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
CN105183574B (en) 2018-10-19

Similar Documents

Publication Publication Date Title
CN108038019B (en) Automatic fault recovery method and system for substrate management controller
US8954619B1 (en) Memory module communication control
CN108123851B (en) Survival detection method and device for master-slave node synchronous link in distributed system
CN109361542B (en) Client fault processing method, device, system, terminal and server
CN106960060B (en) Database cluster management method and device
CN104965727A (en) Method and device for restarting server
CN105573777B (en) Method and device for controlling service in application
CN113656147A (en) Cluster deployment method, device, equipment and storage medium
US6351824B1 (en) Methods and apparatuses for controlling the operation of a digital processing system
CN112203270B (en) Terminal control method, device, electronic equipment and storage medium
EP3462112A1 (en) Refrigerator, intelligent detection method thereof, and intelligent detection system
US9703646B2 (en) Centralized database system
CN105183574A (en) Electronic apparatus and remote restarting method therefor
CN106293499B (en) A kind of file acquisition method and baseboard management controller, basic input output system
US20170147440A1 (en) Chip Initialization System and Method for Initializing Chip by Using Reset Pin
CN109714403A (en) A kind of method and device of determining user's online time
CN110704219B (en) Hardware fault reporting method and device and computer storage medium
CN112130886B (en) Main control program upgrading method and device of traffic signal controller
CN105608034A (en) Clump automatic hot-plug method
CN104142832A (en) Computer and rebooting method thereof
CN107133186B (en) Method for simultaneously communicating master TMC (remote control message), slave TMC (remote control message) and BMC (baseboard management controller)
CN114189305B (en) Time synchronization method, device, equipment and readable storage medium
CN115562900B (en) AMD server system installation power-off processing method, device, equipment and medium
CN108874454B (en) Adaptive starting method and device of target driver
CN116016178A (en) High availability configuration synchronization method, device, electronic equipment and readable storage medium

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