CN106371979A - Method, device and system for monitoring extension controller - Google Patents

Method, device and system for monitoring extension controller Download PDF

Info

Publication number
CN106371979A
CN106371979A CN201611059171.7A CN201611059171A CN106371979A CN 106371979 A CN106371979 A CN 106371979A CN 201611059171 A CN201611059171 A CN 201611059171A CN 106371979 A CN106371979 A CN 106371979A
Authority
CN
China
Prior art keywords
signal
heartbeat signal
extending controller
heartbeat
duration
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.)
Pending
Application number
CN201611059171.7A
Other languages
Chinese (zh)
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201611059171.7A priority Critical patent/CN106371979A/en
Publication of CN106371979A publication Critical patent/CN106371979A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3017Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is implementing multitasking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • G06F11/3419Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment by assessing time
    • G06F11/3423Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment by assessing time where the assessed time is active or idle time

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Computer Hardware Design (AREA)
  • Measuring And Recording Apparatus For Diagnosis (AREA)

Abstract

The invention provides a method, device and system for monitoring an extension controller. The method includes the steps of inputting heartbeat signals output by the extension controller in real time through a monitoring end, starting to count the time from the starting moment of a current judgment cycle, when it is judged that high level exists in the heartbeat signals and the time counting duration does not reach the maximum duration, starting the next judgment cycle and starting to count the time again from the starting moment of the current judgment cycle, and when it is judged that the time counting duration reaches the maximum duration and no high level exists in the heartbeat signals, controlling the extension controller to reset and inputting the heartbeat signals output by the extension controller in real time again. Whether the state of the extension controller is abnormal or not is judged in real time on the basis of the heartbeat signals, the extension controller is informed to reset to eliminate abnormity when the abnormity is detected, and therefore it is ensured that the extension controller can normally run; by means of the scheme, the stability of a storage device connected with the extension controller can be improved.

Description

A kind of method of monitoring extending controller, apparatus and system
Technical field
The present invention relates to field of computer technology, particularly to a kind of method of monitoring extending controller, apparatus and system.
Background technology
With the high speed development of big data and cloud service, the scale of data volume is also increasing.Count on a large scale for storage According to amount, it usually needs use extensive, highdensity storage device.Due to the continuous expansion of storage device scale, therefore need to protect Card storage device can have high stability.
Currently for extensive, highdensity storage device, this storage device is generally connected with extending controller, but one As this extending controller is not supervised.
But, when extending controller operation exception it will usually impact the stability of storage device so that storing The stability of equipment is relatively low.
Content of the invention
The invention provides a kind of method of monitoring extending controller, apparatus and system, it is possible to increase with extending controller The stability of connected storage device.
In order to achieve the above object, the present invention is achieved through the following technical solutions:
In a first aspect, the invention provides a kind of method of monitoring extending controller, being applied to monitoring client, determining and judge week The maximum duration of phase, also includes:
First heartbeat signal of s1: the extending controller outside input output in real time;
S2: from currently judging that the initial time in cycle proceeds by timing, deposit in judging described first heartbeat signal In high level, and when timing and continuous duration is not up to described maximum duration, executes s3, be up to when judging timing and continuous To described maximum duration, and when not judging to there is high level in described first heartbeat signal, described extension is controlled to control Device is resetted, and executes s1;
S3: start the next judgement cycle, and execute s2.
Further, the described extending controller of described control is resetted, comprising: by output to described extending controller Enable signal and draw as low level, and when determining that described low level output duration reaches respective settings threshold value, by institute State enable signal and be set to high level.
Further, the described maximum duration determining the judgement cycle, comprising: when determining that the maximum in judgement cycle continues Long, and described maximum duration corresponds at least two count numbers;
Described from currently judging that the initial time in cycle proceeds by timing, comprising: from currently judge the cycle initial when Proceed by constant duration sequential counting quarter, and the numeral starting counting up is the first number in described at least two count numbers Word;
Described timing and continuous duration be not up to described maximum duration, comprising: the numeral of current count be not described in extremely Last figure in few two count numbers;
Described timing and continuous duration reaches described maximum duration, comprising: the numeral of current count is described last digit Word.
Second aspect, the invention provides a kind of method of monitoring extending controller, is applied to extending controller, comprising:
S1: in real time according to the initial heart signal of itself, generate corresponding first heartbeat signal, and export described first heart Jump signal;
S2: resetted under the control action of outside monitoring client, and execute s1.
Further, described in real time according to the initial heart signal of itself, generate corresponding first heartbeat signal, comprising: Determine the initial heart signal of itself in real time;Based on the hopping edge of described initial heart signal, and according to prolonging of pre-setting Late the time, described initial heart signal is carried out delay disposal to obtain the second heartbeat signal;Described initial heart signal is entered Row negates process to obtain the 3rd heartbeat signal, and wherein, described initial heart signal and described 3rd heartbeat signal are with for the moment The level height carved is contrary;Described second heartbeat signal and described 3rd heartbeat signal are carried out and processes to obtain first heart Jump signal, wherein, described second heartbeat signal and described 3rd heartbeat signal when synchronization is high level, described first Heartbeat signal is high level in this moment, and otherwise, described first heartbeat signal is low level in this moment.
The third aspect, the invention provides a kind of monitoring client, comprising:
Determining unit, for determining the maximum duration in judgement cycle;
Signal acquiring unit, for inputting the first heartbeat signal of the extending controller output in real time of outside;
Monitoring unit, for from currently judging that the initial time in cycle proceeds by timing, judging described first heart Jump in signal and there is high level, and when timing and continuous duration is not up to described maximum duration, trigger processing unit, judging Go out timing and continuous duration and reach described maximum duration, and when not judging to there is high level in described first heartbeat signal, Control described extending controller to be resetted, and trigger described signal acquiring unit;
Described processing unit, for starting the next judgement cycle, and triggers described monitoring unit.
Further, described monitoring unit, specifically for drawing the enable signal of output to described extending controller as low Level, and when determining that described low level output duration reaches respective settings threshold value, described enable signal is set to High level.
Further, described determining unit, specifically for determining the maximum duration in judgement cycle, and described maximum is held Continuous duration corresponds at least two count numbers;
From current, described monitoring unit, specifically for judging that the initial time in cycle proceeds by constant duration order and counts Number, and the numeral starting counting up is the first numeral in described at least two count numbers, is judging described first heart beating letter There is high level in number, and when the numeral of current count is not last figure in described at least two count numbers, at triggering Reason unit, judge current count numeral be described last figure, and do not judge in described first heartbeat signal exist During high level, control described extending controller to be resetted, and trigger described signal acquiring unit.
Fourth aspect, the invention provides a kind of extending controller, comprising:
Signal processing unit, for according to the initial heart signal of itself, generating corresponding first heartbeat signal in real time, and Export described first heartbeat signal;
Reset unit, for being resetted under the control action of outside monitoring client, and triggers described signal processing list Unit.
Further, described signal processing unit, determines the initial heart signal of itself specifically for real-time;Based on described The hopping edge of initial heart signal, and according to the time delay pre-setting, described initial heart signal is carried out at delay Reason is to obtain the second heartbeat signal;Described initial heart signal is carried out negating process to obtain the 3rd heartbeat signal, wherein, institute The level height stating initial heart signal and described 3rd heartbeat signal in synchronization is contrary;By described second heartbeat signal and Described 3rd heartbeat signal carries out and processes to obtain the first heartbeat signal, wherein, described second heartbeat signal and described the When synchronization is high level, described first heartbeat signal is high level in this moment to three heartbeat signals, otherwise, described the Heart beat signal is low level in this moment.
5th aspect, the invention provides a kind of system of monitoring extending controller, comprising:
Any of the above-described described monitoring client, and any of the above-described described extending controller.
Further, described monitoring client, specifically for being 50% timing signal according to the dutycycle pre-setting, is carried out Constant duration sequential counting, wherein, described time interval is equal with a cycle of described timing signal;
Described extending controller, specifically for according to the time delay pre-setting, described initial heart signal being carried out To obtain the second heartbeat signal, wherein, described time delay is the half of a cycle of described timing signal to delay disposal.
The invention provides a kind of method of monitoring extending controller, apparatus and system, monitoring client input expanding controller The heartbeat signal of output in real time;From currently judging that the initial time in cycle proceeds by timing, deposit in judging heartbeat signal In high level and when timing and continuous duration is not up to maximum duration, start the next judgement cycle, and execute from working as again The initial time in front judgement cycle proceeds by timing, is judging that timing and continuous duration reaches maximum duration and do not judge Go out when there is high level in heartbeat signal, control extending controller to be resetted, and execution input expanding controller is real-time again The heartbeat signal of output.Based on heartbeat signal with real-time judge extending controller whether abnormal state, and when detecting abnormal It is notified to reset to eliminate exception, thus ensureing that extending controller can normally run, therefore the present invention can improve and extension control The stability of the storage device that device processed is connected.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description are the present invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis These accompanying drawings obtain other accompanying drawings.
Fig. 1 is the flow chart of a kind of method of monitoring extending controller that one embodiment of the invention provides;
Fig. 2 is the flow chart of the method for another kind of monitoring extending controller that one embodiment of the invention provides;
Fig. 3 is a kind of schematic diagram of generation first heartbeat signal that one embodiment of the invention provides;
Fig. 4 is the flow chart of the method for another monitoring extending controller that one embodiment of the invention provides;
Fig. 5 is a kind of schematic diagram of monitoring client that one embodiment of the invention provides;
Fig. 6 is a kind of schematic diagram of extending controller that one embodiment of the invention provides;
Fig. 7 is a kind of schematic diagram of the system of monitoring extending controller that one embodiment of the invention provides.
Specific embodiment
Purpose, technical scheme and advantage for making the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described it is clear that described embodiment is The a part of embodiment of the present invention, rather than whole embodiments, based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment being obtained on the premise of not making creative work, broadly falls into the scope of protection of the invention.
As shown in figure 1, embodiments providing a kind of method of monitoring extending controller, it is applied to monitoring client, can To comprise the following steps:
Step 101: determine the maximum duration in judgement cycle.
Step 102: the first heartbeat signal of the output in real time of the extending controller outside input.
Step 103: from currently judging that the initial time in cycle proceeds by timing, judging described first heartbeat signal In there is high level, and timing and continuous duration be not up to described maximum duration when, execution step 104, judging timing Duration reaches described maximum duration, and when not judging to there is high level in described first heartbeat signal, controls institute State extending controller to be resetted, and execution step 102.
Step 104: start the next judgement cycle, and execution step 103.
Embodiments provide a kind of method of monitoring extending controller, monitoring client input expanding controller is defeated in real time The heartbeat signal going out;From currently judging that the initial time in cycle proceeds by timing, there is high electricity in judging heartbeat signal Flat and when timing and continuous duration is not up to maximum duration, start the next judgement cycle, and execute again and judge from current The initial time in cycle proceeds by timing, is judging that timing and continuous duration reaches maximum duration and do not judge heart beating When there is high level in signal, control extending controller to be resetted, and execute the output in real time of input expanding controller again Heartbeat signal.Based on heartbeat signal with real-time judge extending controller whether abnormal state, and notify it when exception is detected Reset to eliminate exception, thus ensureing that extending controller can normally run, therefore the embodiment of the present invention can improve and extension control The stability of the storage device that device processed is connected.
In an embodiment of the invention, extending controller can for pmc8054sas (serial attached scsi, Serial scsi) extending controller, accordingly, monitoring client can be watchdog module.Pmc8054 sas extending controller is real-time First heartbeat signal of output, can be as feeding-dog signal to input to watchdog module, so that watchdog module in real time Can be whether there is abnormal with the working condition of real-time monitoring pmc8054 sas extending controller according to feeding-dog signal.
In detail, staff can be continued with the maximum arranging the judgement cycle according to self-demand or based on experience value Duration.For example, maximum duration can preferably be 10s, and that is, monitoring client needs monitoring within the 10s time limit, the first heart beating letter Whether there is high level in number.
Based on the above, if monitoring client monitors there is high level in the first heartbeat signal, and monitor high level Moment was located in the 10s time limit, therefore can illustrate that extending controller work at present is normal.Meanwhile, monitoring client once monitors high electricity Flat presence, you can next time monitored immediately.Accordingly, if monitoring client, before reaching the 10s time limit, does not monitor all the time There is high level in first heartbeat signal, therefore can illustrate that extending controller work at present is abnormal, therefore the 10s time limit can reached When, control extending controller to be resetted to release exception immediately.
In an embodiment of the invention, in order to a kind of enabled side controlling extending controller to be resetted is described Formula, so, the described extending controller of described control is resetted, comprising: by the enable signal of output to described extending controller Draw as low level, and when determining that described low level output duration reaches respective settings threshold value, enable letter by described Number it is set to high level.
In detail, the enable signal exporting to extending controller can be a reset signal, and this reset signal is low electricity At ordinary times, extending controller quits work, when this reset signal is high level, extending controller normal work.Extending controller exists After experienced once the active state of normal work to restarting from quitting work, that is, achieve the one of extending controller Secondary reset.
In detail, the enable signal exporting to extending controller can be exported by external equipment, such as can be by outside confession Power supply exports.Certainly, in an embodiment of the invention, this enable signal can also be exported by watch-dog.
In detail, when monitoring client draws enable signal for low level, it usually needs certain time, for example, this is held Continuous duration can preferably be 100ms.Monitoring client persistently drags down enabling signal after 100ms, again can draw enabling signal Height, so that extending controller is reworked.Certainly, in an embodiment of the invention, monitoring client persistently drags down enabling signal After 100ms, enable signal and can also be automatically restored to high level.
When in detail, due to enabling signal for low level, extending controller quits work, therefore does not export first during this period Heartbeat signal.When enable signal reverts to high level by low level, extending controller restarts normal work, therefore continues real When export the first heartbeat signal.Accordingly, monitoring client, after controlling extending controller to be resetted, needs again input to be in real time somebody's turn to do First heartbeat signal.
In an embodiment of the invention, in order to a kind of possible timing implementation is described, so, described determination judges The maximum duration in cycle, comprising: determine the maximum duration in judgement cycle, and described maximum duration is corresponding to extremely Few two count numbers;
Described from currently judging that the initial time in cycle proceeds by timing, comprising: from currently judge the cycle initial when Proceed by constant duration sequential counting quarter, and the numeral starting counting up is the first number in described at least two count numbers Word;
Described timing and continuous duration be not up to described maximum duration, comprising: the numeral of current count be not described in extremely Last figure in few two count numbers;
Described timing and continuous duration reaches described maximum duration, comprising: the numeral of current count is described last digit Word.
As an example it is assumed that judging that the maximum duration in cycle is can be suitable with constant duration in 10s, and 10s time Sequence counts 100 times.Therefore 10s can correspond to 100 count numbers, can be such as the 0~99 of positive sequence, wherein, the first numeral is 0, last figure is 99.It is of course also possible to be the 99~0 of inverted order.
In detail, when monitoring client execution arbitrarily once judges the cycle, when the initial time judging the cycle proceeds by etc. Between intervening sequences count, such as can count 0 successively, 1,2,3,4 ..., 99.Wherein, this counting operation can be by monitoring client The enumerator of internal setting completes.
Based on the above, within the current judgement cycle, when monitoring client monitors to exist height first in the first heartbeat signal Level, and enumerator count numbers now are not 99, such as when 30 it may be said that bright extending controller is working properly, therefore permissible Terminate the current judgement cycle and start the next judgement cycle.Certainly, when entering the next judgement cycle, the current meter of enumerator Number numeral empties.
Accordingly, when enumerator starts counting up from 0, and when counting up to 99, if monitoring client does not monitor during this period all the time There is high level in first heartbeat signal it may be said that bright extending controller operation irregularity, therefore extending controller can be controlled to carry out Reset.
As shown in Fig. 2 the method embodiments providing another kind of monitoring extending controller, it is applied to extend control Device, may comprise steps of:
Step 201: in real time according to the initial heart signal of itself, generate corresponding first heartbeat signal, and export described First heartbeat signal;
Step 202: resetted under the control action of outside monitoring client, and execution step 201.
In an embodiment of the invention, extending controller can be pmc8054sas extending controller, accordingly, above-mentioned Monitoring client can be watchdog module.First heartbeat signal of pmc8054sas extending controller output in real time, can conduct Feeding-dog signal is to input in real time to watchdog module, so that watchdog module can be according to feeding-dog signal with real-time monitoring The working condition of pmc8054sas extending controller whether there is abnormal.
In detail, during extending controller normal work, a fixed frequency can be exported in real time, such as the heart beating letter of 0.5hz Number, i.e. above-mentioned initial heart signal, this heartbeat signal regular is beated similar to the heart of the mankind.Accordingly, extension controls During device abnormal work, the heartbeat signal that it exports in real time may be permanent for high level or permanent for low level.
Because monitoring client needs according to whether there is high level in heartbeat signal, with the indirect work determining extending controller State, therefore when extending controller abnormal work and when exporting the permanent heartbeat signal for high level, monitoring client is based on this heartbeat signal, The working condition of extending controller generally can not accurately be determined.Therefore, it can be processed initial heart signal, and will process The first heartbeat signal obtaining afterwards exports to monitoring client.
Therefore, in an embodiment of the invention, in order to illustrate a kind of according to initial heart signal to generate corresponding the The possible implementation of heart beat signal, so, described in real time according to the initial heart signal of itself, generate corresponding first heart Jump signal, comprising: determine the initial heart signal of itself in real time;Based on the hopping edge of described initial heart signal, and according to The time delay pre-setting, described initial heart signal is carried out delay disposal to obtain the second heartbeat signal;Will be described first Beginning heartbeat signal carries out negating process to obtain the 3rd heartbeat signal, wherein, described initial heart signal and described 3rd heart beating Signal is contrary in the level height of synchronization;Described second heartbeat signal and described 3rd heartbeat signal are carried out and process To obtain the first heartbeat signal, wherein, described second heartbeat signal and described 3rd heartbeat signal are high electricity in synchronization At ordinary times, described first heartbeat signal is high level in this moment, and otherwise, described first heartbeat signal is low level in this moment.
In detail, described hopping edge may include that and goes to low level trailing edge from high level, or, going to from low level The rising edge of high level.
In detail, be may be referred to the possible implementation generating corresponding first heartbeat signal according to initial heart signal Fig. 3.
In figure 3, clock (timer) signal, for example, time delay in Fig. 3 etc. can be taken from above-mentioned time delay Half in a cycle of clock signal.In detail, the dutycycle of clock signal is 50%.In detail, believed based on clock Number, can be counted from left to right according to time sequencing, in such as Fig. 3 be counted as 1 successively, 2 ..., 10.heartbeat (heart beating) signal can be above-mentioned initial heart signal.Heartbeat_delay (heart beating delay) signal can be above-mentioned second Heartbeat signal.Heartbeat_n signal can be above-mentioned 3rd heartbeat signal.Plus (plus and) signal can be above-mentioned first Heartbeat signal.
As shown in figure 3, heartbeat signal is carried out delay disposal, heartbeat_delay signal can be obtained, its In, time delay is the half of a cycle of clock signal.Heartbeat signal is carried out negating process, can obtain Heartbeat_n signal.Heartbeat_delay signal and heartbeat_n signal are carried out and process, can obtain To plus signal.Plus signal can be exported in real time to monitoring client.In theory, the width of each high level of plus signal It should be the half of a cycle of clock signal.
In detail, monitoring client can carry out constant duration sequential counting according to clock signal, and this time interval etc. A cycle in clock signal.The time delay that extending controller execution delay disposal is based on is equal to the one of clock signal The half in individual cycle.As shown in figure 3, when monitoring client counts up to digital 3 by numeral 1, the first heartbeat signal can be monitored, that is, There is high level in plus signal in Fig. 3.Assume, countable 100 times in maximum duration, to illustrate to count up to when digital 3 not Reach maximum duration, therefore current count numeral can be removed, terminate the current judgement cycle and start the next judgement cycle.
As shown in figure 4, one embodiment of the invention provide another monitoring extending controller method, specifically include with Lower step:
Step 401: monitoring client predefines the maximum duration in judgement cycle, and maximum duration corresponds to 100 Individual count numbers.
For example, maximum duration can be 10s, and monitoring client can carry out 100 countings in 10s, such as can To count up to 99 from 0 positive sequence, or 0 can be counted up to from 99 inverted orders.
Step 402: extending controller predefines the clock signal that dutycycle is 50%.
Step 403: extending controller determines the heartbeat signal of itself in real time.
In detail, heartbeat signal is the initial heart signal of extending controller.
Step 404: the hopping edge based on heartbeat signal for the extending controller, with the one of a cycle of clock signal Half is time delay, and heartbeat signal is carried out delay disposal to obtain heartbeat_delay signal.
In detail, hopping edge can be to go to low level trailing edge from high level, or, going to high level from low level Rising edge.
Step 405: heartbeat signal is carried out negating process to obtain heartbeat_n signal by extending controller.
In detail, heartbeat signal and heartbeat_n signal are contrary in the level height of synchronization.
Step 406: heartbeat_delay signal and heartbeat_n signal are carried out and place by extending controller Reason is to obtain plus signal, and exports plus signal in real time to monitoring client.
In detail, heartbeat_delay signal and heartbeat_n signal be when synchronization is high level, Plus signal is high level in this moment, and otherwise, plus signal is low level in this moment.
In detail, extending controller can be by the plus signal real-time Transmission being generated based on heartbeat signal to prison Control end, so that monitoring client is according to this plus signal, judges that the working condition of extending controller whether there is abnormal indirectly.
Step 407: the plus signal of monitoring client input expanding controller output in real time.
Step 408: monitoring client is from currently judging that the initial time in cycle proceeds by constant duration sequential counting, and open The numeral beginning to count is the first numeral in 100 count numbers, there is high level and currently count in judging plus signal When the numeral of number is not the last figure in 100 count numbers, execution step 409, in the numeral judging current count be Last figure and when not judging to there is high level in plus signal, execution step 410.
In detail, monitoring client equally can predefine the clock signal that above-mentioned dutycycle is 50%, and is based on clock Signal carries out constant duration sequential counting.Wherein, this time interval can be equal to a cycle of clock signal.
Step 409: monitoring client starts the next judgement cycle, and execution step 408.
In detail, when monitoring client is judged to there is high level in plus signal before reaching maximum duration, can be true Determine extending controller work at present normally, therefore the plus signal that can be exported in real time based on extending controller, sentenced next time Disconnected.
Step 410: monitoring client draws as low level to the enable signal of extending controller by exporting, and is determining low level Output duration when reaching respective settings threshold value, be set to high level by enabling signal, and execution step 407.
In detail, monitoring client passes through to control the level height enabling signal, to control extending controller to be resetted.
In detail, when to enable signal be low level, extending controller generally can not normal work, therefore can not export in real time Plus signal is to monitoring client.When enable signal reverts to high level by low level, extending controller can continue normal work, therefore Can continue to export plus signal in real time to monitoring client.Therefore, monitoring client, after controlling extending controller to be resetted, needs again The plus signal of secondary input expanding controller output in real time.
Step 411: extending controller determine enable signal high level is reverted to by low level when, execution step 403.
Same as above, when enable signal reverts to high level by low level, extending controller continues normal work, therefore needs Determine the heartbeat signal of itself again in real time, and execution follow-up based on heartbeat signal generation plus signal.
As shown in figure 5, one embodiment of the invention provides a kind of monitoring client, comprising:
Determining unit 501, for determining the maximum duration in judgement cycle;
Signal acquiring unit 502, for inputting the first heartbeat signal of the extending controller output in real time of outside;
Monitoring unit 503, for from currently judging that the initial time in cycle proceeds by timing, judging described first There is high level in heartbeat signal, and when timing and continuous duration is not up to described maximum duration, trigger processing unit 504, Judging that timing and continuous duration reaches described maximum duration, and do not judge in described first heartbeat signal, there is high electricity At ordinary times, control described extending controller to be resetted, and trigger described signal acquiring unit 502;
Described processing unit 504, for starting the next judgement cycle, and triggers described monitoring unit 503.
In an embodiment of the invention, described monitoring unit 503, specifically for exporting to described extending controller Enable signal and draw as low level, and when determining that described low level output duration reaches respective settings threshold value, by institute State enable signal and be set to high level.
In an embodiment of the invention, described determining unit 501, when the maximum specifically for determining the judgement cycle continues Long, and described maximum duration corresponds at least two count numbers;
Described monitoring unit 503, specifically for suitable from currently judging that the initial time in cycle proceeds by constant duration Sequence counts, and the numeral starting counting up is the first numeral in described at least two count numbers, is judging described first heart Jump in signal and there is high level, and when the numeral of current count is not last figure in described at least two count numbers, touch Send out processing unit, judging that the numeral of current count is described last figure, and do not judging in described first heartbeat signal When there is high level, control described extending controller to be resetted, and trigger described signal acquiring unit.
As shown in fig. 6, one embodiment of the invention provides a kind of extending controller, comprising:
Signal processing unit 601, for according to the initial heart signal of itself, generating corresponding first heart beating letter in real time Number, and export described first heartbeat signal;
Reset unit 602, for being resetted under the control action of outside monitoring client, and triggers described signal processing Unit 601.
In an embodiment of the invention, described signal processing unit 601, determines the initial heart of itself specifically for real-time Jump signal;Based on the hopping edge of described initial heart signal, and according to the time delay pre-setting, by described initial heart Signal carries out delay disposal to obtain the second heartbeat signal;Described initial heart signal is carried out negating process to obtain three-core Jump signal, wherein, described initial heart signal and described 3rd heartbeat signal are contrary in the level height of synchronization;Will be described Second heartbeat signal and described 3rd heartbeat signal carry out and process to obtain the first heartbeat signal, wherein, described second heart Jump signal and described 3rd heartbeat signal when synchronization is high level, described first heartbeat signal is high electricity in this moment Flat, otherwise, described first heartbeat signal is low level in this moment.
As shown in fig. 7, embodiments providing a kind of system of monitoring extending controller, comprising:
Any of the above-described described monitoring client 701, and any of the above-described described extending controller 702.
In detail, extending controller can be connected with storage device.Wherein, storage device being capable of carry polylith hdd (hard Disk drive, hard disk drive), it is the storage system of a set of high density, high stable and redundancy.Extending controller operation irregularity When, the stability of storage device can be affected.The heartbeat signal based on extending controller for the monitoring client is it can be determined that extending controller is No operation irregularity, and extending controller can be controlled to be resetted to eliminate when judging extending controller operation irregularity Abnormal, thus indirectly ensureing stability and the reliability of storage device, it is to avoid cause to store because extending controller occurs abnormal Equipment delay machine the problems such as.
In an embodiment of the invention, described monitoring client 701, specifically for being 50% according to the dutycycle pre-setting Timing signal, carry out constant duration sequential counting, wherein, a cycle phase of described time interval and described timing signal Deng;
Described extending controller 702, specifically for according to the time delay pre-setting, described initial heart signal being entered To obtain the second heartbeat signal, wherein, described time delay is the half of a cycle of described timing signal to row delay disposal.
In detail, refer to Fig. 3, the dutycycle of clock signal is 50%, and monitoring client can enter according to this clock signal Row constant duration sequential counting, and this time interval is equal to a cycle of clock signal.In figure 3, extending controller The half of a cycle being equal to clock signal time delay that execution delay disposal is based on.As shown in figure 3, working as monitoring client When counting up to digital 3 by numeral 1, the first heartbeat signal can be monitored, there is high level in the plus signal in Fig. 3.False If countable 100 times in maximum duration, illustrate to count up to not up to maximum duration when digital 3, therefore can remove and work as Front count numbers, terminate the current judgement cycle and start the next judgement cycle.
The contents such as the information exchange between each unit in said apparatus, implementation procedure, due to implementing with the inventive method Example is based on same design, and particular content can be found in the narration in the inventive method embodiment, and here is omitted.
In sum, each embodiment of the present invention at least has the advantages that
1st, in the embodiment of the present invention, the heartbeat signal of monitoring client input expanding controller output in real time;Judge week from current The initial time of phase proceeds by timing, there is high level and timing and continuous duration is not up to maximum in judging heartbeat signal During duration, start the next judgement cycle, and execute from currently judging that the initial time in cycle proceeds by timing again, When judging that timing and continuous duration reaches maximum duration and do not judge to there is high level in heartbeat signal, control extension Controller is resetted, and the heartbeat signal of execution input expanding controller output in real time again.Based on heartbeat signal with real-time Judge extending controller whether abnormal state, and notify when exception is detected it to reset to eliminate exception, thus ensureing to extend Controller can normally run, therefore the embodiment of the present invention can improve the stability of the storage device being connected with extending controller.
2nd, in the embodiment of the present invention, extending controller can be connected with storage device.Wherein, storage device can carry many Block hdd, is the storage system of a set of high density, high stable and redundancy.During extending controller operation irregularity, storage device can be affected Stability.The heartbeat signal based on extending controller for the monitoring client is it can be determined that extending controller whether operation irregularity, Yi Jineng Enough when judging extending controller operation irregularity, extending controller is controlled to be resetted to eliminate exception, thus indirectly ensureing The stability of storage device and reliability, it is to avoid because extending controller occur abnormal and cause storage device delay machine the problems such as.
It should be noted that herein, such as first and second etc relational terms are used merely to an entity Or operation is made a distinction with another entity or operation, and not necessarily requires or imply exist between these entities or operation Any this actual relation or order.And, term " inclusion ", "comprising" or its any other variant are intended to non- The comprising of exclusiveness, so that including a series of process of key elements, method, article or equipment not only include those key elements, But also include other key elements being not expressly set out, or also include being consolidated by this process, method, article or equipment Some key elements.In the absence of more restrictions, the key element being limited by sentence " including ", does not arrange Remove and also there is other same factor in the process including described key element, method, article or equipment.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can be passed through Completing, aforesaid program can be stored in the storage medium of embodied on computer readable the related hardware of programmed instruction, this program Upon execution, execute the step including said method embodiment;And aforesaid storage medium includes: rom, ram, magnetic disc or light Disk etc. is various can be with the medium of store program codes.
Finally it should be understood that the foregoing is only presently preferred embodiments of the present invention, it is merely to illustrate the skill of the present invention Art scheme, is not intended to limit protection scope of the present invention.All any modifications made within the spirit and principles in the present invention, Equivalent, improvement etc., are all contained in protection scope of the present invention.

Claims (10)

1. a kind of method of monitoring extending controller, it is characterised in that being applied to monitoring client, determines that the maximum in judgement cycle continues Duration, also includes:
First heartbeat signal of s1: the extending controller outside input output in real time;
S2: from currently judging that the initial time in cycle proceeds by timing, exist high in judging described first heartbeat signal Level, and when timing and continuous duration is not up to described maximum duration, execute s3, judging that timing and continuous duration reaches institute When stating maximum duration, and not judging to there is high level in described first heartbeat signal, described extending controller is controlled to enter Row resets, and executes s1;
S3: start the next judgement cycle, and execute s2.
2. method according to claim 1 it is characterised in that
Described control described extending controller resetted, comprising: by output to described extending controller enable signal draw for Low level, and when determining that described low level output duration reaches respective settings threshold value, described enable signal is put For high level;
And/or,
The described maximum duration determining the judgement cycle, comprising: determine the maximum duration in judgement cycle, and described maximum Duration corresponds at least two count numbers;
Described from currently judging that the initial time in cycle proceeds by timing, comprising: from currently judging that the initial time in cycle is opened Begin to carry out constant duration sequential counting, and the numeral starting counting up is the first numeral in described at least two count numbers;
Described timing and continuous duration be not up to described maximum duration, comprising: the numeral of current count be not described at least two Last figure in individual count numbers;
Described timing and continuous duration reaches described maximum duration, comprising: the numeral of current count is described last figure.
3. a kind of method of monitoring extending controller is it is characterised in that be applied to extending controller, comprising:
S1: in real time according to the initial heart signal of itself, generate corresponding first heartbeat signal, and export described first heart beating letter Number;
S2: resetted under the control action of outside monitoring client, and execute s1.
4. method according to claim 3 it is characterised in that
Described in real time according to the initial heart signal of itself, generate corresponding first heartbeat signal, comprising: determine itself in real time Initial heart signal;Based on the hopping edge of described initial heart signal, and according to the time delay pre-setting, will be described first Beginning heartbeat signal carries out delay disposal to obtain the second heartbeat signal;Described initial heart signal is carried out negating process to obtain 3rd heartbeat signal, wherein, described initial heart signal and described 3rd heartbeat signal are contrary in the level height of synchronization; Described second heartbeat signal and described 3rd heartbeat signal are carried out and processes to obtain the first heartbeat signal, wherein, described , when synchronization is high level, described first heartbeat signal is in this moment for second heartbeat signal and described 3rd heartbeat signal For high level, otherwise, described first heartbeat signal is low level in this moment.
5. a kind of monitoring client is it is characterised in that include:
Determining unit, for determining the maximum duration in judgement cycle;
Signal acquiring unit, for inputting the first heartbeat signal of the extending controller output in real time of outside;
Monitoring unit, for from currently judging that the initial time in cycle proceeds by timing, judging described first heart beating letter There is high level in number, and when timing and continuous duration is not up to described maximum duration, trigger processing unit, judging to count When duration reach described maximum duration, and when not judging to there is high level in described first heartbeat signal, control Described extending controller is resetted, and triggers described signal acquiring unit;
Described processing unit, for starting the next judgement cycle, and triggers described monitoring unit.
6. monitoring client according to claim 5 it is characterised in that
Described monitoring unit, specifically for drawing the enable signal of output to described extending controller as low level, and is determining Go out described low level output duration when reaching respective settings threshold value, described enable signal is set to high level;
And/or,
Described determining unit, specifically for determining the maximum duration in judgement cycle, and described maximum duration corresponds to At least two count numbers;
Described monitoring unit, specifically for from currently judging that the initial time in cycle proceeds by constant duration sequential counting, And the numeral starting counting up is the first numeral in described at least two count numbers, in judging described first heartbeat signal There is high level, and when the numeral of current count is not last figure in described at least two count numbers, triggering processes single Unit, judging that the numeral of current count is described last figure, and does not judge there is high electricity in described first heartbeat signal At ordinary times, control described extending controller to be resetted, and trigger described signal acquiring unit.
7. a kind of extending controller is it is characterised in that include:
Signal processing unit, for according to the initial heart signal of itself, generating corresponding first heartbeat signal, and exporting in real time Described first heartbeat signal;
Reset unit, for being resetted under the control action of outside monitoring client, and triggers described signal processing unit.
8. extending controller according to claim 7 it is characterised in that
Described signal processing unit, determines the initial heart signal of itself specifically for real-time;Based on described initial heart signal Hopping edge, and according to the time delay pre-setting, described initial heart signal is carried out delay disposal to obtain second Heartbeat signal;Described initial heart signal is carried out negating process to obtain the 3rd heartbeat signal, wherein, described initial heart letter Number and described 3rd heartbeat signal contrary in the level height of synchronization;By described second heartbeat signal and described 3rd heart beating Signal carries out and processes to obtain the first heartbeat signal, and wherein, described second heartbeat signal and described 3rd heartbeat signal exist When synchronization is high level, described first heartbeat signal is high level in this moment, and otherwise, described first heartbeat signal exists This moment is low level.
9. a kind of system of monitoring extending controller is it is characterised in that include:
Monitoring client as described in claim 5 or 6, and extending controller as claimed in claim 7 or 8.
10. according to claim 9 monitoring extending controller system it is characterised in that
Described monitoring client, specifically for being 50% timing signal according to the dutycycle pre-setting, carries out constant duration suitable Sequence counts, and wherein, described time interval is equal with a cycle of described timing signal;
Described extending controller, specifically for according to the time delay pre-setting, described initial heart signal being postponed Process to obtain the second heartbeat signal, wherein, described time delay is the half of a cycle of described timing signal.
CN201611059171.7A 2016-11-25 2016-11-25 Method, device and system for monitoring extension controller Pending CN106371979A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611059171.7A CN106371979A (en) 2016-11-25 2016-11-25 Method, device and system for monitoring extension controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611059171.7A CN106371979A (en) 2016-11-25 2016-11-25 Method, device and system for monitoring extension controller

Publications (1)

Publication Number Publication Date
CN106371979A true CN106371979A (en) 2017-02-01

Family

ID=57892147

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611059171.7A Pending CN106371979A (en) 2016-11-25 2016-11-25 Method, device and system for monitoring extension controller

Country Status (1)

Country Link
CN (1) CN106371979A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108170546A (en) * 2017-12-15 2018-06-15 山东超越数控电子股份有限公司 A kind of repositioning method based on EC
CN108694111A (en) * 2017-04-06 2018-10-23 佛山市顺德区顺达电脑厂有限公司 The electronic equipment and its method for detecting of power-off and time synchronisation can be detected
CN110798234A (en) * 2019-10-15 2020-02-14 深圳和而泰智能控制股份有限公司 Method and equipment for improving communication sensitivity in 433MHZ wireless communication
CN111245946A (en) * 2020-01-15 2020-06-05 郑州春泉节能股份有限公司 Method and device for judging reliability of equipment signal
CN112241318A (en) * 2020-11-03 2021-01-19 中国航空工业集团公司西安航空计算技术研究所 Processor heartbeat counting method for eliminating characterization blind spots

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1722077A (en) * 2004-07-12 2006-01-18 普安科技股份有限公司 Controller capable of self-monitoring, redundant storage system having the same, and method thereof
CN101145992A (en) * 2007-09-11 2008-03-19 中兴通讯股份有限公司 Single board task exception detection method and system
CN102063356A (en) * 2009-11-18 2011-05-18 杭州华三通信技术有限公司 Multi-central processing unit (CPU) heartbeat detection system and method
CN102368687A (en) * 2011-09-23 2012-03-07 烽火通信科技股份有限公司 Packet loss preventing statistical method and device
CN103246589A (en) * 2012-02-03 2013-08-14 京信通信系统(中国)有限公司 Multithread monitoring method and device
CN105426276A (en) * 2015-11-03 2016-03-23 山东超越数控电子有限公司 Fault detection method for double control storage controllers and storage controllers

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1722077A (en) * 2004-07-12 2006-01-18 普安科技股份有限公司 Controller capable of self-monitoring, redundant storage system having the same, and method thereof
CN101145992A (en) * 2007-09-11 2008-03-19 中兴通讯股份有限公司 Single board task exception detection method and system
CN102063356A (en) * 2009-11-18 2011-05-18 杭州华三通信技术有限公司 Multi-central processing unit (CPU) heartbeat detection system and method
CN102368687A (en) * 2011-09-23 2012-03-07 烽火通信科技股份有限公司 Packet loss preventing statistical method and device
CN103246589A (en) * 2012-02-03 2013-08-14 京信通信系统(中国)有限公司 Multithread monitoring method and device
CN105426276A (en) * 2015-11-03 2016-03-23 山东超越数控电子有限公司 Fault detection method for double control storage controllers and storage controllers

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108694111A (en) * 2017-04-06 2018-10-23 佛山市顺德区顺达电脑厂有限公司 The electronic equipment and its method for detecting of power-off and time synchronisation can be detected
CN108694111B (en) * 2017-04-06 2021-08-13 佛山市顺德区顺达电脑厂有限公司 Electronic equipment capable of detecting power failure and synchronously timing and detection method thereof
CN108170546A (en) * 2017-12-15 2018-06-15 山东超越数控电子股份有限公司 A kind of repositioning method based on EC
CN110798234A (en) * 2019-10-15 2020-02-14 深圳和而泰智能控制股份有限公司 Method and equipment for improving communication sensitivity in 433MHZ wireless communication
CN111245946A (en) * 2020-01-15 2020-06-05 郑州春泉节能股份有限公司 Method and device for judging reliability of equipment signal
CN112241318A (en) * 2020-11-03 2021-01-19 中国航空工业集团公司西安航空计算技术研究所 Processor heartbeat counting method for eliminating characterization blind spots
CN112241318B (en) * 2020-11-03 2024-05-24 中国航空工业集团公司西安航空计算技术研究所 Processor heartbeat counting method for eliminating characterization blind spots

Similar Documents

Publication Publication Date Title
CN106371979A (en) Method, device and system for monitoring extension controller
CN103744764A (en) Crontab based whole computer memory stability test method
CN103268277B (en) A kind of method and system of output journal information
CN106338690A (en) Standby battery detection method, device and system and power supply method
CN104426696B (en) A kind of method of troubleshooting, server and system
CN101994228A (en) Control method of washing machine
CN109101392A (en) Intelligent computing device and fault removal method thereof
CN107832202A (en) A kind of method, apparatus and computer-readable recording medium for detecting hard disk
CN107527648A (en) The method for refreshing and system of memory
CN104965779A (en) Detecting and locating method and device for memory leakage based on PoolMon
RU2018132711A (en) METHOD FOR DETERMINING A POTENTIAL MALFUNCTION OF A MEMORY DEVICE
CN104330764B (en) Electricity consumption detection device for electricity meter and operation method thereof
WO2018099093A1 (en) Battery short-circuit detection method and device
CN110297258A (en) A kind of monotonic increase counts class telemetry parameter exception automatic distinguishing method and system
CN103760514A (en) Rapid detection method and device of electric energy meter
CN109324765A (en) A kind of Disk State detection method, device, equipment and storage medium
CN116698446A (en) Whole vehicle electrostatic current testing method, device, system and storage medium
CN103092710A (en) High available virtual machine running method in cloud computing operating system
CN106502843A (en) A kind of hard disk plug stability test method suitable for raid card
CN114090361B (en) IO signal monitoring circuit and implementation method
JP2017134493A (en) Ladder program display device with automatic tracing function for self-holding circuit of ladder program
JP4001994B2 (en) Assessing accident stability of power systems
CN201266224Y (en) Detection device for dimension variable accidental resonance square wave
CN106685279A (en) Method and device for detecting Hall signals of motor
CN114238009A (en) Performance self-adaptive adjusting method, system and medium for terminal system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170201

WD01 Invention patent application deemed withdrawn after publication