CN1979381A - Resetting method for preventing system from dead to stop operation by associating software and hardware - Google Patents

Resetting method for preventing system from dead to stop operation by associating software and hardware Download PDF

Info

Publication number
CN1979381A
CN1979381A CN 200510120638 CN200510120638A CN1979381A CN 1979381 A CN1979381 A CN 1979381A CN 200510120638 CN200510120638 CN 200510120638 CN 200510120638 A CN200510120638 A CN 200510120638A CN 1979381 A CN1979381 A CN 1979381A
Authority
CN
China
Prior art keywords
reset
software
hardware
counter
resets
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
CN 200510120638
Other languages
Chinese (zh)
Other versions
CN100416458C (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.)
Beijing Zhigu Tech Co Ltd
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNB200510120638XA priority Critical patent/CN100416458C/en
Publication of CN1979381A publication Critical patent/CN1979381A/en
Application granted granted Critical
Publication of CN100416458C publication Critical patent/CN100416458C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Retry When Errors Occur (AREA)

Abstract

The invention discloses a reset method for preventing system from halting and interrupting services by software and hardware cooperation, comprising the steps of: selecting software reset or hardware reset on the condition that system is abnormal; for the software reset caused by software, the system only resets the CPU and does not process the service so as to assure the service is not interrupted as software reset; if the system exceeds the preset number of software resets in the preset time, making hardware reset. And the invention largely improves system stability and intelligently processes reset signals on different conditions, improving system reset flexibility and reducing possibility of service interrupt caused by abnormal reset.

Description

A kind of software-hardware synergism prevents the repositioning method of system in case of system halt interrupting service
Technical field
The present invention relates to utilize software-hardware synergism to finish in a kind of electronic equipment and prevent the repositioning method of system in case of system halt, in particular in the reseting logic circuit design of communication field, cooperate jointly with hardware by software, anti-locking system operation is crashed and is caused the repositioning method of service disconnection.
Background technology
In the electronic equipment of prior art, for appearring in anti-locking system, the CPU race extremely or under the abnormal situation of work can carry out reset processing timely, all designed reseting logic in the system.
For a veneer, its general reseting logic is simply to be finished by the chip that resets of a band house dog, feeds the mode of dog by software and controls resetting of whole plate.This way probably can cause the newsletter of whole communication network to interrupt.When dead, do not had feeding-dog signal as running at software, veneer can be restarted.During to system software version updating, also have in the time of need restarting software resetting system or veneer.Or cause by sudden task under the situation that the CPU working load increases the weight of at some, make software can't provide feeding-dog signal timely, though at this moment CPU and software but still can cause that veneer or system equipment reset, and cause service disconnection all in operate as normal.
For the total system of equipment, system to the reset schemes of each ply-yarn drill also compare simple, security is very low.Generally be to give each ply-yarn drill a reset signal, indicate and currently whether will carry out one board forced resetting that this way causes easily because the interference on the line makes the ply-yarn drill maloperation, causes the phenomenon of whole sheet reset from master control borad.
Therefore, prior art awaits to continue to improve and development.
Summary of the invention
Purpose of the present invention is exactly that reseting logic was too simple in the past in order to solve, reset signal is not distinguished, resetting in any case all can cause restarting of whole veneer, the technical matters that causes service disconnection designs a kind of reset schemes that can solve the software-hardware synergism operation of above various imperfection situations.
Technical scheme of the present invention comprises:
A kind of software-hardware synergism prevents the repositioning method of system in case of system halt interrupting service, and it may further comprise the steps:
A, under the system exception situation, select software reset or hardware reset;
B, for the software reset who causes by the software reason, system only partly resets to CPU, and service part is not handled, and is constantly professional when guaranteeing the software reset;
C, if system has surpassed the software reset of pre-determined number in the given time, then carry out hardware reset.
Described method, wherein, the condition of described hardware reset also comprises:
Power on, by reset key, hard reset order under the webmaster, ply-yarn drill receives that forced resetting signal or veneer self check do not pass through.
Described method, wherein, described software reset's condition also comprises:
After downloading and finish, version restarts or receives software reset's order that master control borad issues.
Described method, wherein, described step C also comprises: a programmable logic device (PLD) is set in the described system, wherein be provided with two counters, one first counter is a house dog, and the numeral that its zero clearing control end needs CPU to write hello dog byte in the given time changes once at least, otherwise overflows; One second counter is counted the number of times that overflows of described first counter, overflows when counting pre-determined number; After this second counter overflows, cut off of the input of crystal oscillator clock, make the described chip that resets produce the output that resets, form the hardware reset process to the chip that resets.
Described method, wherein, described step C also comprises: the count value of this second counter is read back by the number of times byte of overflowing of software, and being used for judging is that hardware is restarted or software restarting.
Described method, wherein, described step C also comprises: the count value of described second counter is made amendment by the number of times byte of overflowing of software, to produce hardware reset when described first counter overflows next time.
A kind of software-hardware synergism provided by the present invention prevents the repositioning method of system in case of system halt interrupting service, has improved the stability of system greatly, and the reset signal under the different situations has been carried out Intelligent treatment, has strengthened the dirigibility of system reset; Reduced the possibility of the service disconnection that exceptional reset causes.
Description of drawings
Fig. 1 is the FB(flow block) that resets of the inventive method;
Fig. 2 is the watchdog reset logic diagram of the inventive method.
Embodiment
Below in conjunction with accompanying drawing, will carry out comparatively detailed explanation to each preferred embodiment of the present invention.
Described software-hardware synergism of the present invention prevents the repositioning method of system in case of system halt interrupting service, the scheme that has adopted software reset and hardware reset to combine, can produce different homing actions according to producing unusual situation difference, thereby reach the minimum that influences system and business.
Resetting in the inventive method is divided into two big classes: hardware reset and software reset, the software reset wherein CPU part that only resets, and the chip of service part is not operated, thereby business is had the influence of interruption.Hardware reset then is that all chips that can carry out reset operation on the veneer are carried out reset operation, the whole sheet reset of saying usually just, and this moment can interrupting service, exerts an influence, so non-to the essential sheet reset of not putting in order.
The condition that reseting logic described in the preferred embodiment of the present invention produces has following several, carries out corresponding reset operation according to the difference of the condition of generation.
Hardware reset The software reset
The generation condition 1, power on 2, by " hard reset " order under reset key 3, the webmaster, ply-yarn drill receives that forced resetting signal 4, veneer self check that master control borad sends do not pass through 1, version restarts 2 after downloading and finishing, receives that " software reset " order 3, software run and flies under the master control borad
5, software reset N time at the appointed time
Reset effect Return to the state when powering on Resetting does not influence single board service
Homing action CPU, special chip reset, and programmable logic device (PLD) is downloaded again Cpu reset
Hardware implementation mode 1, the chip that resets satisfies reset condition, produce hardware reset 2, programmable logic device (PLD) monitors the forced resetting signal that master control borad provides, then produce hardware reset 3, when overflowing, house dog detects the numeration of once overflowing number of times, if be N-1, then produce hardware reset Under the situation that house dog enables, if CPU software is fed dog normally at software feeding-dog signal was not provided in the cycle, then house dog is overflowed, and CPU is resetted
Software realization mode CPU is provided with the reseting register of special chip, closes house dog earlier, will overflow the number of times numeration then and be set to N CPU carries out the endless loop program, does not feed house dog
For the software reset who is caused by the software reason, system only partly resets to CPU, and service part is not handled, and is constantly professional when guaranteeing the software reset.If the software reset has appearred N time in system in the given time, then may problem be arranged total system, can't deal with problems by the software reset, veneer or system carry out hardware reset, and this moment, business can be interrupted.This times N is the basis numeral that system's characteristics can be defined by the user separately, and the described schedule time also can be preestablished according to system's characteristics separately by the user.
Be provided with 2 counters in the described complex programmable logic device (CPLD) of the inventive method, as depicted in figs. 1 and 2, first counter 1 is a house dog, the numeral (0/1) that its zero clearing control end needs CPU software to write hello dog byte in the software programmable official hour changes once at least, otherwise overflows.The time of overflowing of this counter can be done corresponding adjusting according to the busy not busy degree of CPU, can suitably the time be extended, in this case as long as corresponding regulate overflowing counting control and just can realizing of counter.First counter 1 overflows software reset's pin that end is connected to CPU, produces software reset's process.The counting of first counter 1 can enable byte control by dongle to be stopped/starting.
The number of times that overflows of 2 pairs first counters 1 of second counter is counted, and overflows when counting N.After second counter 2 overflows, cut off of the input of crystal oscillator clock, make the chip that resets produce the output that resets, form the hardware reset process to the chip that resets.The count value of this second counter 2 can be read back by the number of times byte of overflowing of software, and being used for judging is that hardware is restarted or software restarting.The count value of second counter 2 can be made amendment by the number of times byte of overflowing of software, be modified as N-1 after, if first counter 1 overflows once more, will produce hardware reset.Software starts the back at every turn will be given in official hour and overflow number of times byte register and write 0, if to guarantee under the normal condition in the stipulated time that first counter 1 overflows N time then produces hardware reset.
Also use the management clock signal of master control borad to gather the signal that master control borad offers the forced resetting line of ply-yarn drill in the CPLD, the use shift register compares, here the forced resetting signal adopts the tagged word of a string serial to represent, after monitoring this tagged word, cut off of the input of crystal oscillator clock to the chip that resets, make the chip that resets produce the output that resets, form the hardware reset process.Can effectively leach the undesired signal on the forced resetting line like this, prevent maloperation.
This logic of the inventive method is described in detail as follows:
The chip that resets in the described veneer is responsible for hardware reset, and its output that resets is connected to the resetting pin of CPU, programmable logic device (PLD) and each special chip.The hand-reset input of the described chip that resets is connected to the hand-reset end of the chip that resets, and produces the hardware reset operation by reset key.The house dog input end of the described chip that resets is connected to programmable logic device (PLD), provide clock signal by programmable logic device (PLD) for it, programmable logic device (PLD) stops to provide clock signal when producing one of following situation, the chip that resets produces hardware reset: house dog was once overflowed time counting number and reached N time in the stipulated time, or, when the forced resetting signal that master control borad sends is the tagged word of regulation.
Be provided with a house dog program in the programmable logic device (PLD) on the described veneer, the dog that feeds that requires in software dictates feeds dog (control level variation) once in the time at least, otherwise house dog overflows, and CPU is resetted.Software uses house dog hello dog byte position to write " 0 "/" 1 " and feeds dog.House dog can be under an embargo (such as start, during version updating), software uses house dog enable switch byte to write " 0 " to forbid house dog work.Logic defaults to this steering logic to forbid house dog work in the programmable logic device (PLD).
Also have the number of times that logic was once overflowed house dog to count in the programmable logic device (PLD) of the present invention, carry out hardware reset when having produced watchdog reset again after N-1 time when counting down to.Software overflows the number of times zero clearing with house dog after will be at the fixed time, to guarantee the logic of " if having in the stipulated time overflow just carry out hardware reset above N house dog ".Software uses house dog to overflow number of times byte position and writes zero and remove house dog and overflow time counting number.
The count value of the number of times that house dog was once overflowed behind the described hardware reset is 0, can use house dog once to overflow number of times and differentiate soft/sign of restarting firmly as software.When the number of times that once overflowed when house dog is 0, show it is to restart firmly; When the number of times that once overflowed when house dog is not 0, show it is soft reboot.Software reads house dog and overflows the corresponding house dog in number of times byte position and once overflowed number of times.Software can be revised house dog and once overflow number of times, and after being write as N-1, house dog is overflowed once more, will produce hardware reset, thereby realizes the software control hardware reset.
The inventive method is distinguished the reset signal under the different situations by the co-operating of software and hardware, and does suitable processing, and some software or CPU are run resetting of waiting indefinitely and cause, is guaranteeing that recovery system normally moves under the unbroken situation of communication traffic.Repositioning method of the present invention has improved the stability of system greatly, and the reset signal under the different situations has been carried out Intelligent treatment, has strengthened the dirigibility of system reset; Reduced the possibility of the service disconnection that exceptional reset causes.
Should be understood that above-mentioned description at specific embodiment is comparatively detailed, can not therefore think the restriction to scope of patent protection of the present invention, scope of patent protection of the present invention should be as the criterion with claims.

Claims (6)

1, a kind of software-hardware synergism prevents the repositioning method of system in case of system halt interrupting service, and it may further comprise the steps:
A, under the system exception situation, select software reset or hardware reset;
B, for the software reset who causes by the software reason, system only partly resets to CPU, and service part is not handled, and is constantly professional when guaranteeing the software reset;
C, if system has surpassed the software reset of pre-determined number in the given time, then carry out hardware reset.
2, method according to claim 1 is characterized in that, the condition of described hardware reset also comprises:
Power on, by reset key, hard reset order under the webmaster, ply-yarn drill receives that forced resetting signal or veneer self check do not pass through.
3, method according to claim 1 is characterized in that, described software reset's condition also comprises:
After downloading and finish, version restarts or receives software reset's order that master control borad issues.
4, according to any described method of claim 1 to 3, it is characterized in that, described step C also comprises: a programmable logic device (PLD) is set in the described system, wherein be provided with two counters, one first counter is a house dog, the numeral that its zero clearing control end needs CPU to write hello dog byte in the given time changes once at least, otherwise overflows; One second counter is counted the number of times that overflows of described first counter, overflows when counting pre-determined number; After this second counter overflows, cut off of the input of crystal oscillator clock, make the described chip that resets produce the output that resets, form the hardware reset process to the chip that resets.
5, method according to claim 4 is characterized in that, described step C also comprises: the count value of this second counter is read back by the number of times byte of overflowing of software, and being used for judging is that hardware is restarted or software restarting.
6, method according to claim 4 is characterized in that, described step C also comprises: the count value of described second counter is made amendment by the number of times byte of overflowing of software, to produce hardware reset when described first counter overflows next time.
CNB200510120638XA 2005-12-09 2005-12-09 Resetting method for preventing system from dead to stop operation by associating software and hardware Active CN100416458C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB200510120638XA CN100416458C (en) 2005-12-09 2005-12-09 Resetting method for preventing system from dead to stop operation by associating software and hardware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB200510120638XA CN100416458C (en) 2005-12-09 2005-12-09 Resetting method for preventing system from dead to stop operation by associating software and hardware

Publications (2)

Publication Number Publication Date
CN1979381A true CN1979381A (en) 2007-06-13
CN100416458C CN100416458C (en) 2008-09-03

Family

ID=38130568

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB200510120638XA Active CN100416458C (en) 2005-12-09 2005-12-09 Resetting method for preventing system from dead to stop operation by associating software and hardware

Country Status (1)

Country Link
CN (1) CN100416458C (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102238093A (en) * 2011-08-16 2011-11-09 杭州华三通信技术有限公司 Service interruption prevention method and device
CN102483713A (en) * 2009-08-04 2012-05-30 富士通株式会社 Reset method and monitor
CN104142726A (en) * 2013-05-09 2014-11-12 中国科学院微电子研究所 chip reset protection method and chip
CN104679601A (en) * 2013-11-28 2015-06-03 中国航空工业集团公司第六三一研究所 Watchdog starting method of interference preventing system
CN104991832A (en) * 2015-06-20 2015-10-21 成都彬鸿科技有限公司 Method for processing shutdown of embedded processor
CN105022467A (en) * 2014-04-29 2015-11-04 中兴通讯股份有限公司 Board reset method and device
CN105068880A (en) * 2015-08-17 2015-11-18 上海斐讯数据通信技术有限公司 Device resetting method based on watchdog
CN105677497A (en) * 2015-12-10 2016-06-15 中国航空工业集团公司西安航空计算技术研究所 High availability watchdog circuit
CN106201755A (en) * 2016-07-11 2016-12-07 锐捷网络股份有限公司 The repositioning method of the network equipment and device
CN106302618A (en) * 2015-06-11 2017-01-04 阿里巴巴集团控股有限公司 Long-range control method, remote server, management equipment and terminal
CN107132894A (en) * 2017-05-25 2017-09-05 迈锐数据(北京)有限公司 A kind of reset circuit, method and apparatus
CN108008800A (en) * 2017-11-29 2018-05-08 锐捷网络股份有限公司 A kind of reset request processing method, device and equipment
CN109510719A (en) * 2017-09-15 2019-03-22 中兴通讯股份有限公司 A kind of service board and configuration method
CN109521863A (en) * 2018-11-20 2019-03-26 湖南国科微电子股份有限公司 Chip and chip method for energizing and starting
CN110633166A (en) * 2018-06-22 2019-12-31 迈普通信技术股份有限公司 Reset device and reset method
CN113535448A (en) * 2021-06-30 2021-10-22 浙江中控技术股份有限公司 Multiple watchdog control method and control system thereof
WO2022135429A1 (en) * 2020-12-23 2022-06-30 华为技术有限公司 Rapid start-up method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6697973B1 (en) * 1999-12-08 2004-02-24 International Business Machines Corporation High availability processor based systems
CN2519335Y (en) * 2001-12-24 2002-10-30 华为技术有限公司 Controlling logic circuit of gate keeper dog
TWI243335B (en) * 2003-09-04 2005-11-11 Htc Corp Booting method for performing warm boot or cold boot when CPU is down, and its computer system

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102483713A (en) * 2009-08-04 2012-05-30 富士通株式会社 Reset method and monitor
WO2013023523A1 (en) * 2011-08-16 2013-02-21 Hangzhou H3C Technologies Co., Ltd. Restarting a line card
CN102238093B (en) * 2011-08-16 2015-01-28 杭州华三通信技术有限公司 Service interruption prevention method and device
CN102238093A (en) * 2011-08-16 2011-11-09 杭州华三通信技术有限公司 Service interruption prevention method and device
US9172634B2 (en) 2011-08-16 2015-10-27 Hangzhou H3C Technologies Co., Ltd. Restarting a line card
CN104142726B (en) * 2013-05-09 2020-04-14 中国科学院微电子研究所 Chip reset protection method and chip
CN104142726A (en) * 2013-05-09 2014-11-12 中国科学院微电子研究所 chip reset protection method and chip
CN104679601A (en) * 2013-11-28 2015-06-03 中国航空工业集团公司第六三一研究所 Watchdog starting method of interference preventing system
WO2015165154A1 (en) * 2014-04-29 2015-11-05 中兴通讯股份有限公司 Board resetting method and device
CN105022467A (en) * 2014-04-29 2015-11-04 中兴通讯股份有限公司 Board reset method and device
CN106302618A (en) * 2015-06-11 2017-01-04 阿里巴巴集团控股有限公司 Long-range control method, remote server, management equipment and terminal
CN104991832A (en) * 2015-06-20 2015-10-21 成都彬鸿科技有限公司 Method for processing shutdown of embedded processor
CN105068880A (en) * 2015-08-17 2015-11-18 上海斐讯数据通信技术有限公司 Device resetting method based on watchdog
CN105677497A (en) * 2015-12-10 2016-06-15 中国航空工业集团公司西安航空计算技术研究所 High availability watchdog circuit
CN106201755A (en) * 2016-07-11 2016-12-07 锐捷网络股份有限公司 The repositioning method of the network equipment and device
CN106201755B (en) * 2016-07-11 2019-06-14 锐捷网络股份有限公司 The repositioning method and device of the network equipment
CN107132894A (en) * 2017-05-25 2017-09-05 迈锐数据(北京)有限公司 A kind of reset circuit, method and apparatus
CN109510719A (en) * 2017-09-15 2019-03-22 中兴通讯股份有限公司 A kind of service board and configuration method
CN108008800A (en) * 2017-11-29 2018-05-08 锐捷网络股份有限公司 A kind of reset request processing method, device and equipment
CN110633166A (en) * 2018-06-22 2019-12-31 迈普通信技术股份有限公司 Reset device and reset method
CN109521863A (en) * 2018-11-20 2019-03-26 湖南国科微电子股份有限公司 Chip and chip method for energizing and starting
CN109521863B (en) * 2018-11-20 2020-09-11 湖南国科微电子股份有限公司 Chip and chip power-on starting method
WO2022135429A1 (en) * 2020-12-23 2022-06-30 华为技术有限公司 Rapid start-up method
CN113535448A (en) * 2021-06-30 2021-10-22 浙江中控技术股份有限公司 Multiple watchdog control method and control system thereof
CN113535448B (en) * 2021-06-30 2024-04-26 浙江中控技术股份有限公司 Multiple watchdog control method and control system thereof

Also Published As

Publication number Publication date
CN100416458C (en) 2008-09-03

Similar Documents

Publication Publication Date Title
CN100416458C (en) Resetting method for preventing system from dead to stop operation by associating software and hardware
US7529956B2 (en) Granular reduction in power consumption
CN103324546B (en) A kind of method and device of watchdog service delay
EP0581479B1 (en) Interrupt enable circuits and method
CN101344862B (en) Anti-interference equipment of embedded system
CN103092255A (en) Glitchless Programmable Clock Shaper
CN111026573A (en) Watchdog system of multi-core processing system and control method
CN100517177C (en) Combined type reset system processing method and device
CN106062716A (en) Method, device and single task system for realizing multiple tasks in single task system
CN101630277B (en) Over-frequency module, computer system and over-frequency method thereof
CN106776091B (en) Watchdog circuit
CN103077081B (en) Method and device of adjusting resources
CN110764829B (en) Multi-path server CPU isolation method and system
CN100447748C (en) Interrupt system realizing method
CN115964090A (en) Chip-based dormancy and awakening method and device
CN106843448B (en) Power management chip and control method for power management chip
CN110362430A (en) A kind of method being restarted automatically, system and the storage medium of server
CN109491824A (en) A kind of watchdog control method of embedded OS
US7206883B2 (en) Interruption control system and method
CN209373582U (en) A kind of cascade watchdog circuit
CN104360913B (en) Monitoring module for computer operating system
CN111221755B (en) Io interrupt control method for FPGA2 submodule
CN102270184A (en) PCI-E slot control system and method based on multiple processors
WO2022254076A1 (en) Microelectronic circuit with dynamically adjustable coverage for in-situ timing event monitors
CN102622278B (en) Watchdog monitoring circuit and monitoring method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: BEIJING Z-GOOD TECHNOLOGY SERVICE CO., LTD.

Free format text: FORMER OWNER: ZTE CORPORATION

Effective date: 20150210

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 518057 SHENZHEN, GUANGDONG PROVINCE TO: 100085 HAIDIAN, BEIJING

TR01 Transfer of patent right

Effective date of registration: 20150210

Address after: 100085 Beijing city Haidian District No. 33 Xiaoying Road 1 1F06 room

Patentee after: BEIJING ZHIGU TECHNOLOGY SERVICES CO., LTD.

Address before: 518057 Nanshan District, Guangdong high tech Industrial Park, science and Technology Industrial Park, ZTE building, block A, layer 6, layer

Patentee before: ZTE Corporation