CN106371979A - Method, device and system for monitoring extension controller - Google Patents
Method, device and system for monitoring extension controller Download PDFInfo
- 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
- heartbeat signal
- signal
- heartbeat
- controller
- high level
- 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
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 97
- 238000000034 method Methods 0.000 title claims abstract description 32
- 238000012545 processing Methods 0.000 claims description 29
- 230000007704 transition Effects 0.000 claims description 8
- 230000001960 triggered effect Effects 0.000 claims description 3
- 230000003111 delayed effect Effects 0.000 claims description 2
- 230000002159 abnormal effect Effects 0.000 abstract description 5
- 230000005856 abnormality Effects 0.000 description 12
- 230000008569 process Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000000630 rising effect Effects 0.000 description 2
- 238000010009 beating Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3017—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is implementing multitasking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording 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/3409—Recording 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/3419—Recording 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/3423—Recording 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
Description
技术领域technical field
本发明涉及计算机技术领域,特别涉及一种监控扩展控制器的方法、装置及系统。The invention relates to the technical field of computers, in particular to a method, device and system for monitoring an extended controller.
背景技术Background technique
随着大数据及云服务的高速发展,数据量的规模也越来越大。为存储大规模的数据量,通常需要用到大规模、高密度的存储设备。由于存储设备规模的不断扩大,故需要保证存储设备能够具有高稳定性。With the rapid development of big data and cloud services, the scale of data volume is also increasing. In order to store a large amount of data, a large-scale, high-density storage device is usually required. Due to the continuous expansion of the storage device scale, it is necessary to ensure that the storage device can have high stability.
目前,对于大规模、高密度的存储设备,该存储设备通常连接有扩展控制器,但一般不对该扩展控制器进行监管。Currently, for a large-scale, high-density storage device, the storage device is usually connected to an expansion controller, but generally the expansion controller is not supervised.
但是,当扩展控制器运行异常时,通常会对存储设备的稳定性造成影响,使得存储设备的稳定性较低。However, when the extended controller runs abnormally, it usually affects the stability of the storage device, so that the stability of the storage device is low.
发明内容Contents of the invention
本发明提供了一种监控扩展控制器的方法、装置及系统,能够提高与扩展控制器相连的存储设备的稳定性。The invention provides a method, device and system for monitoring an extended controller, which can improve the stability of storage devices connected with the extended controller.
为了达到上述目的,本发明是通过如下技术方案实现的:In order to achieve the above object, the present invention is achieved through the following technical solutions:
第一方面,本发明提供了一种监控扩展控制器的方法,应用于监控端,确定判断周期的最大持续时长,还包括:In the first aspect, the present invention provides a method for monitoring the extended controller, which is applied to the monitoring terminal to determine the maximum duration of the judgment period, and also includes:
S1:输入外部的扩展控制器实时输出的第一心跳信号;S1: Input the first heartbeat signal output by the external expansion controller in real time;
S2:从当前判断周期的起始时刻开始进行计时,在判断出所述第一心跳信号中存在高电平,且计时持续时长未达到所述最大持续时长时,执行S3,在判断出计时持续时长达到所述最大持续时长,且未判断出所述第一心跳信号中存在高电平时,控制所述扩展控制器进行复位,并执行S1;S2: Start timing from the beginning of the current judgment period. When it is judged that there is a high level in the first heartbeat signal, and the timing duration does not reach the maximum duration, execute S3. When it is judged that the timing continues When the duration reaches the maximum duration and it is not determined that there is a high level in the first heartbeat signal, control the expansion controller to reset and execute S1;
S3:开始下一个判断周期,并执行S2。S3: start the next judging period, and execute S2.
进一步地,所述控制所述扩展控制器进行复位,包括:将输出至所述扩展控制器的使能信号拉为低电平,并在确定出所述低电平的输出持续时长达到相应设定阈值时,将所述使能信号置为高电平。Further, the controlling the extended controller to reset includes: pulling the enable signal output to the extended controller to a low level, and when it is determined that the output duration of the low level reaches a corresponding set When the threshold is set, the enable signal is set to a high level.
进一步地,所述确定判断周期的最大持续时长,包括:确定判断周期的最大持续时长,且所述最大持续时长对应于至少两个计数数字;Further, the determining the maximum duration of the judgment cycle includes: determining the maximum duration of the judgment cycle, and the maximum duration corresponds to at least two count numbers;
所述从当前判断周期的起始时刻开始进行计时,包括:从当前判断周期的起始时刻开始进行等时间间隔顺序计数,且开始计数的数字为所述至少两个计数数字中的首位数字;The counting from the starting moment of the current judging cycle includes: counting sequentially at equal time intervals from the starting moment of the current judging cycle, and the number to start counting is the first digit of the at least two counting numbers;
所述计时持续时长未达到所述最大持续时长,包括:当前计数的数字不为所述至少两个计数数字中的末位数字;The timing duration does not reach the maximum duration, including: the current counted number is not the last digit of the at least two counted numbers;
所述计时持续时长达到所述最大持续时长,包括:当前计数的数字为所述末位数字。The timing duration reaching the maximum duration includes: the currently counted number is the last digit.
第二方面,本发明提供了一种监控扩展控制器的方法,应用于扩展控制器,包括:In a second aspect, the present invention provides a method for monitoring an extended controller, which is applied to an extended controller, including:
S1:实时根据自身的初始心跳信号,生成相应的第一心跳信号,并输出所述第一心跳信号;S1: Generate a corresponding first heartbeat signal in real time according to its own initial heartbeat signal, and output the first heartbeat signal;
S2:在外部的监控端的控制作用下进行复位,并执行S1。S2: Reset under the control of the external monitoring terminal, and execute S1.
进一步地,所述实时根据自身的初始心跳信号,生成相应的第一心跳信号,包括:实时确定自身的初始心跳信号;基于所述初始心跳信号的跳变沿,以及根据预先设置的延迟时间,将所述初始心跳信号进行延迟处理以得到第二心跳信号;将所述初始心跳信号进行取反处理以得到第三心跳信号,其中,所述初始心跳信号和所述第三心跳信号在同一时刻的电平高低相反;将所述第二心跳信号和所述第三心跳信号进行相与处理以得到第一心跳信号,其中,所述第二心跳信号和所述第三心跳信号在同一时刻均为高电平时,所述第一心跳信号在该时刻为高电平,否则,所述第一心跳信号在该时刻为低电平。Further, the generating the corresponding first heartbeat signal in real time according to its own initial heartbeat signal includes: determining its own initial heartbeat signal in real time; based on the transition edge of the initial heartbeat signal, and according to a preset delay time, Delaying the initial heartbeat signal to obtain a second heartbeat signal; performing inversion processing on the initial heartbeat signal to obtain a third heartbeat signal, wherein the initial heartbeat signal and the third heartbeat signal are at the same time The levels are opposite; the second heartbeat signal and the third heartbeat signal are AND-processed to obtain the first heartbeat signal, wherein the second heartbeat signal and the third heartbeat signal are equal at the same time When it is at a high level, the first heartbeat signal is at a high level at this moment; otherwise, the first heartbeat signal is at a low level at this moment.
第三方面,本发明提供了一种监控端,包括:In a third aspect, the present invention provides a monitoring terminal, comprising:
确定单元,用于确定判断周期的最大持续时长;a determination unit, configured to determine the maximum duration of the judgment period;
信号获取单元,用于输入外部的扩展控制器实时输出的第一心跳信号;The signal acquisition unit is used to input the first heartbeat signal output by the external expansion controller in real time;
监控单元,用于从当前判断周期的起始时刻开始进行计时,在判断出所述第一心跳信号中存在高电平,且计时持续时长未达到所述最大持续时长时,触发处理单元,在判断出计时持续时长达到所述最大持续时长,且未判断出所述第一心跳信号中存在高电平时,控制所述扩展控制器进行复位,并触发所述信号获取单元;The monitoring unit is configured to start timing from the start moment of the current judgment period, and when it is judged that there is a high level in the first heartbeat signal, and the timing duration does not reach the maximum duration, trigger the processing unit, When it is determined that the timing duration reaches the maximum duration, and it is not determined that there is a high level in the first heartbeat signal, control the expansion controller to reset, and trigger the signal acquisition unit;
所述处理单元,用于开始下一个判断周期,并触发所述监控单元。The processing unit is configured to start a next judging cycle and trigger the monitoring unit.
进一步地,所述监控单元,具体用于将输出至所述扩展控制器的使能信号拉为低电平,并在确定出所述低电平的输出持续时长达到相应设定阈值时,将所述使能信号置为高电平。Further, the monitoring unit is specifically configured to pull the enable signal output to the expansion controller to a low level, and when it is determined that the duration of the low level output reaches a corresponding set threshold, turn the The enable signal is set to a high level.
进一步地,所述确定单元,具体用于确定判断周期的最大持续时长,且所述最大持续时长对应于至少两个计数数字;Further, the determining unit is specifically configured to determine a maximum duration of the judging period, and the maximum duration corresponds to at least two count numbers;
所述监控单元,具体用于从当前判断周期的起始时刻开始进行等时间间隔顺序计数,且开始计数的数字为所述至少两个计数数字中的首位数字,在判断出所述第一心跳信号中存在高电平,且当前计数的数字不为所述至少两个计数数字中的末位数字时,触发处理单元,在判断出当前计数的数字为所述末位数字,且未判断出所述第一心跳信号中存在高电平时,控制所述扩展控制器进行复位,并触发所述信号获取单元。The monitoring unit is specifically configured to perform sequential counting at equal time intervals from the beginning of the current judging period, and the number to start counting is the first digit of the at least two counting numbers, and when the first heartbeat is judged When there is a high level in the signal, and the currently counted number is not the last digit of the at least two counted digits, the processing unit is triggered to determine that the currently counted number is the last digit, and it is not judged When there is a high level in the first heartbeat signal, control the expansion controller to reset and trigger the signal acquisition unit.
第四方面,本发明提供了一种扩展控制器,包括:In a fourth aspect, the present invention provides an extended controller, including:
信号处理单元,用于实时根据自身的初始心跳信号,生成相应的第一心跳信号,并输出所述第一心跳信号;A signal processing unit, configured to generate a corresponding first heartbeat signal in real time according to its own initial heartbeat signal, and output the first heartbeat signal;
复位单元,用于在外部的监控端的控制作用下进行复位,并触发所述信号处理单元。The reset unit is used for resetting under the control of an external monitoring terminal and triggering the signal processing unit.
进一步地,所述信号处理单元,具体用于实时确定自身的初始心跳信号;基于所述初始心跳信号的跳变沿,以及根据预先设置的延迟时间,将所述初始心跳信号进行延迟处理以得到第二心跳信号;将所述初始心跳信号进行取反处理以得到第三心跳信号,其中,所述初始心跳信号和所述第三心跳信号在同一时刻的电平高低相反;将所述第二心跳信号和所述第三心跳信号进行相与处理以得到第一心跳信号,其中,所述第二心跳信号和所述第三心跳信号在同一时刻均为高电平时,所述第一心跳信号在该时刻为高电平,否则,所述第一心跳信号在该时刻为低电平。Further, the signal processing unit is specifically configured to determine its own initial heartbeat signal in real time; based on the transition edge of the initial heartbeat signal and according to a preset delay time, delay processing the initial heartbeat signal to obtain The second heartbeat signal; performing inversion processing on the initial heartbeat signal to obtain a third heartbeat signal, wherein the levels of the initial heartbeat signal and the third heartbeat signal at the same time are opposite; performing phase AND processing on the heartbeat signal and the third heartbeat signal to obtain a first heartbeat signal, wherein, when both the second heartbeat signal and the third heartbeat signal are at a high level at the same time, the first heartbeat signal It is at a high level at this moment, otherwise, the first heartbeat signal is at a low level at this moment.
第五方面,本发明提供了一种监控扩展控制器的系统,包括:In a fifth aspect, the present invention provides a system for monitoring an extended controller, including:
上述任一所述的监控端,以及上述任一所述的扩展控制器。Any one of the monitoring terminals mentioned above, and any one of the above-mentioned expansion controllers.
进一步地,所述监控端,具体用于根据预先设置的占空比为50%的计时信号,进行等时间间隔顺序计数,其中,所述时间间隔与所述计时信号的一个周期相等;Further, the monitoring terminal is specifically used to perform sequential counting at equal time intervals according to a preset timing signal with a duty ratio of 50%, wherein the time interval is equal to one cycle of the timing signal;
所述扩展控制器,具体用于根据预先设置的延迟时间,将所述初始心跳信号进行延迟处理以得到第二心跳信号,其中,所述延迟时间为所述计时信号的一个周期的一半。The extended controller is specifically configured to delay the initial heartbeat signal according to a preset delay time to obtain a second heartbeat signal, wherein the delay time is half of a cycle of the timing signal.
本发明提供了一种监控扩展控制器的方法、装置及系统,监控端输入扩展控制器实时输出的心跳信号;从当前判断周期的起始时刻开始进行计时,在判断出心跳信号中存在高电平且计时持续时长未达到最大持续时长时,开始下一个判断周期,并再次执行从当前判断周期的起始时刻开始进行计时,在判断出计时持续时长达到最大持续时长且未判断出心跳信号中存在高电平时,控制扩展控制器进行复位,并再次执行输入扩展控制器实时输出的心跳信号。基于心跳信号以实时判断扩展控制器是否状态异常,并在检测到异常时通知其复位以消除异常,从而保证扩展控制器能够正常运行,故本发明能够提高与扩展控制器相连的存储设备的稳定性。The invention provides a method, device and system for monitoring an extended controller. The monitoring terminal inputs the heartbeat signal output by the extended controller in real time; starts timing from the initial moment of the current judgment cycle, and judges that there is a high voltage in the heartbeat signal. When the timing duration does not reach the maximum duration, start the next judgment cycle, and start timing from the beginning of the current judgment cycle again. When it is judged that the timing duration reaches the maximum duration and the heartbeat signal is not judged When there is a high level, the extended controller is controlled to reset, and the heartbeat signal output by the extended controller in real time is input again. Based on the heartbeat signal, it is judged in real time whether the state of the expansion controller is abnormal, and when an abnormality is detected, it is notified to reset to eliminate the abnormality, thereby ensuring that the expansion controller can operate normally, so the present invention can improve the stability of the storage device connected to the expansion controller sex.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are For some embodiments of the present invention, those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1是本发明一实施例提供的一种监控扩展控制器的方法的流程图;Fig. 1 is a flow chart of a method for monitoring an extended controller provided by an embodiment of the present invention;
图2是本发明一实施例提供的另一种监控扩展控制器的方法的流程图;Fig. 2 is a flowchart of another method for monitoring an extended controller provided by an embodiment of the present invention;
图3是本发明一实施例提供的一种生成第一心跳信号的示意图;Fig. 3 is a schematic diagram of generating a first heartbeat signal provided by an embodiment of the present invention;
图4是本发明一实施例提供的再一种监控扩展控制器的方法的流程图;Fig. 4 is a flowchart of another method for monitoring an extended controller provided by an embodiment of the present invention;
图5是本发明一实施例提供的一种监控端的示意图;Fig. 5 is a schematic diagram of a monitoring terminal provided by an embodiment of the present invention;
图6是本发明一实施例提供的一种扩展控制器的示意图;Fig. 6 is a schematic diagram of an extended controller provided by an embodiment of the present invention;
图7是本发明一实施例提供的一种监控扩展控制器的系统的示意图。Fig. 7 is a schematic diagram of a system for monitoring an extended controller provided by an embodiment of the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例,基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work belong to the protection of the present invention. scope.
如图1所示,本发明实施例提供了一种监控扩展控制器的方法,应用于监控端,可以包括以下步骤:As shown in Figure 1, the embodiment of the present invention provides a method for monitoring an extended controller, which is applied to a monitoring terminal and may include the following steps:
步骤101:确定判断周期的最大持续时长。Step 101: Determine the maximum duration of the judgment cycle.
步骤102:输入外部的扩展控制器实时输出的第一心跳信号。Step 102: Input the first heartbeat signal output by the external expansion controller in real time.
步骤103:从当前判断周期的起始时刻开始进行计时,在判断出所述第一心跳信号中存在高电平,且计时持续时长未达到所述最大持续时长时,执行步骤104,在判断出计时持续时长达到所述最大持续时长,且未判断出所述第一心跳信号中存在高电平时,控制所述扩展控制器进行复位,并执行步骤102。Step 103: Start timing from the beginning of the current judgment cycle, and when it is judged that there is a high level in the first heartbeat signal, and the timing duration does not reach the maximum duration, execute step 104, and when it is judged that When the timing duration reaches the maximum duration and it is not determined that there is a high level in the first heartbeat signal, the extended controller is controlled to reset, and step 102 is executed.
步骤104:开始下一个判断周期,并执行步骤103。Step 104: start the next judging period, and execute step 103.
本发明实施例提供了一种监控扩展控制器的方法,监控端输入扩展控制器实时输出的心跳信号;从当前判断周期的起始时刻开始进行计时,在判断出心跳信号中存在高电平且计时持续时长未达到最大持续时长时,开始下一个判断周期,并再次执行从当前判断周期的起始时刻开始进行计时,在判断出计时持续时长达到最大持续时长且未判断出心跳信号中存在高电平时,控制扩展控制器进行复位,并再次执行输入扩展控制器实时输出的心跳信号。基于心跳信号以实时判断扩展控制器是否状态异常,并在检测到异常时通知其复位以消除异常,从而保证扩展控制器能够正常运行,故本发明实施例能够提高与扩展控制器相连的存储设备的稳定性。The embodiment of the present invention provides a method for monitoring the extended controller. The monitoring terminal inputs the heartbeat signal output by the extended controller in real time; starts timing from the initial moment of the current judgment period, and when it is judged that there is a high level in the heartbeat signal and When the timing duration does not reach the maximum duration, start the next judgment cycle, and start timing from the beginning of the current judgment cycle again. When it is judged that the timing duration reaches the maximum duration and it is not judged that there is a high in the heartbeat signal level, control the extended controller to reset, and execute again the heartbeat signal output by the extended controller in real time. Based on the heartbeat signal, it is judged in real time whether the state of the expansion controller is abnormal, and when an abnormality is detected, it is notified to reset to eliminate the abnormality, thereby ensuring that the expansion controller can operate normally, so the embodiment of the present invention can improve the storage device connected to the expansion controller. stability.
在本发明一个实施例中,扩展控制器可以为PMC8054SAS(Serial Attached SCSI,串行SCSI)扩展控制器,对应地,监控端可以为Watchdog模块。PMC8054 SAS扩展控制器实时输出的第一心跳信号,可以作为喂狗信号以实时输入至Watchdog模块,以使Watchdog模块可以根据喂狗信号以实时监测PMC8054 SAS扩展控制器的工作状态是否存在异常。In an embodiment of the present invention, the extended controller may be a PMC8054SAS (Serial Attached SCSI, serial SCSI) extended controller, and correspondingly, the monitoring terminal may be a Watchdog module. The first heartbeat signal output by the PMC8054 SAS expansion controller in real time can be used as a dog feed signal to be input to the Watchdog module in real time, so that the Watchdog module can monitor whether there is any abnormality in the working status of the PMC8054 SAS expansion controller in real time according to the dog feed signal.
详细地,工作人员可以根据自身需求或根据经验值,以设置判断周期的最大持续时长。例如,最大持续时长优选地可以为10s,即监控端需要监测在10s期限内,第一心跳信号中是否存在高电平。In detail, the staff can set the maximum duration of the judgment cycle according to their own needs or experience. For example, the maximum duration may preferably be 10s, that is, the monitoring end needs to monitor whether there is a high level in the first heartbeat signal within a period of 10s.
基于上述内容,若监控端监测到第一心跳信号中存在高电平,且监测到高电平的时刻位于10s期限内,故可以说明扩展控制器当前工作正常。同时,监控端一旦监测到高电平的存在,即可立即进行下一次监测。对应地,若监控端在达到10s期限之前,始终未监测到第一心跳信号中存在高电平,故可以说明扩展控制器当前工作异常,故可以在达到10s期限时,立即控制扩展控制器进行复位以解除异常。Based on the above content, if the monitoring terminal detects that there is a high level in the first heartbeat signal, and the time when the high level is detected is within the time limit of 10s, it can be explained that the expansion controller is currently working normally. At the same time, once the monitoring terminal detects the presence of a high level, it can immediately perform the next monitoring. Correspondingly, if the monitoring terminal has not detected a high level in the first heartbeat signal before reaching the 10s time limit, it can indicate that the expansion controller is currently working abnormally, so it can immediately control the expansion controller to perform Reset to remove exception.
在本发明一个实施例中,为了说明一种控制扩展控制器进行复位的可能实现方式,所以,所述控制所述扩展控制器进行复位,包括:将输出至所述扩展控制器的使能信号拉为低电平,并在确定出所述低电平的输出持续时长达到相应设定阈值时,将所述使能信号置为高电平。In an embodiment of the present invention, in order to illustrate a possible implementation of controlling the extended controller to reset, the controlling the extended controller to reset includes: outputting an enable signal to the extended controller pull it to a low level, and when it is determined that the output duration of the low level reaches a corresponding set threshold, set the enabling signal to a high level.
详细地,输出至扩展控制器的使能信号可以为一个复位信号,该复位信号为低电平时,扩展控制器停止工作,该复位信号为高电平时,扩展控制器正常工作。扩展控制器在经历了一次从停止工作至重新开始正常工作的工作状态转变后,即实现了扩展控制器的一次复位。In detail, the enable signal output to the extended controller may be a reset signal. When the reset signal is at a low level, the extended controller stops working, and when the reset signal is at a high level, the extended controller works normally. After the expansion controller undergoes a transition from stop working to normal work again, a reset of the expansion controller is realized.
详细地,输出至扩展控制器的使能信号可以由外部设备输出,如可以由外部的供电电源输出。当然,在本发明一个实施例中,这一使能信号还可以由监控器输出。In detail, the enable signal output to the extended controller may be output by an external device, such as an external power supply. Of course, in an embodiment of the present invention, this enabling signal can also be output by the monitor.
详细地,监控端将使能信号拉为低电平时,通常需要持续一定时间,例如,这一持续时长优选地可以为100ms。监控端将使能信号持续拉低100ms后,可以将使能信号重新拉高,以使扩展控制器重新工作。当然,在本发明一个实施例中,监控端将使能信号持续拉低100ms后,使能信号也可以自动恢复为高电平。In detail, when the monitoring terminal pulls the enabling signal to a low level, it usually needs to last for a certain period of time, for example, this duration may preferably be 100ms. After the monitoring terminal pulls the enable signal low for 100ms, it can pull the enable signal high again to make the expansion controller work again. Of course, in an embodiment of the present invention, after the monitoring terminal keeps the enable signal low for 100 ms, the enable signal can also automatically recover to a high level.
详细地,由于使能信号为低电平时,扩展控制器停止工作,故在此期间不输出第一心跳信号。当使能信号由低电平恢复为高电平时,扩展控制器重新开始正常工作,故继续实时输出第一心跳信号。对应地,监控端在控制扩展控制器进行复位后,需要再次实时输入该第一心跳信号。In detail, since the expansion controller stops working when the enable signal is at a low level, the first heartbeat signal is not output during this period. When the enable signal returns from low level to high level, the extended controller restarts to work normally, so it continues to output the first heartbeat signal in real time. Correspondingly, after the monitoring terminal controls the extended controller to reset, it needs to input the first heartbeat signal again in real time.
在本发明一个实施例中,为了说明一种可能的计时实现方式,所以,所述确定判断周期的最大持续时长,包括:确定判断周期的最大持续时长,且所述最大持续时长对应于至少两个计数数字;In an embodiment of the present invention, in order to illustrate a possible timing implementation, the determining the maximum duration of the judgment cycle includes: determining the maximum duration of the judgment cycle, and the maximum duration corresponds to at least two counting figures;
所述从当前判断周期的起始时刻开始进行计时,包括:从当前判断周期的起始时刻开始进行等时间间隔顺序计数,且开始计数的数字为所述至少两个计数数字中的首位数字;The counting from the starting moment of the current judging cycle includes: counting sequentially at equal time intervals from the starting moment of the current judging cycle, and the number to start counting is the first digit of the at least two counting numbers;
所述计时持续时长未达到所述最大持续时长,包括:当前计数的数字不为所述至少两个计数数字中的末位数字;The timing duration does not reach the maximum duration, including: the current counted number is not the last digit of the at least two counted numbers;
所述计时持续时长达到所述最大持续时长,包括:当前计数的数字为所述末位数字。The timing duration reaching the maximum duration includes: the currently counted number is the last digit.
举例来说,假设判断周期的最大持续时长为10s,且10s时间内可以等时间间隔顺序计数100次。故10s可以对应于100个计数数字,如可以为正序的0~99,其中,首位数字为0,末位数字为99。当然,也可以为倒序的99~0。For example, assume that the maximum duration of the judgment period is 10s, and 100 times can be counted sequentially at equal time intervals within 10s. Therefore, 10s can correspond to 100 counting numbers, such as 0 to 99 in positive sequence, where the first number is 0 and the last number is 99. Of course, it may also be 99-0 in reverse order.
详细地,监控端执行任意一次判断周期时,从判断周期的起始时刻开始进行等时间间隔顺序计数,如可以依次计数0、1、2、3、4、……、99。其中,这一计数操作可以由监控端内部设置的计数器完成。In detail, when the monitoring terminal executes any judgment cycle, it starts counting at equal time intervals from the beginning of the judgment cycle, for example, it can count 0, 1, 2, 3, 4, ..., 99 in sequence. Wherein, this counting operation can be completed by a counter set inside the monitoring terminal.
基于上述内容,在当前判断周期内,当监控端首次监测到第一心跳信号中存在高电平,且计数器此时的计数数字不是99,如为30时,可以说明扩展控制器工作正常,故可以结束当前判断周期并开始下一个判断周期。当然,进入下一个判断周期时,计数器当前的计数数字清空。Based on the above content, in the current judgment period, when the monitoring terminal first detects that there is a high level in the first heartbeat signal, and the counting number of the counter at this time is not 99, if it is 30, it can indicate that the expansion controller is working normally, so It is possible to end the current judgment cycle and start the next judgment cycle. Of course, when entering the next judging cycle, the current counting number of the counter is cleared.
对应地,当计数器从0开始计数,并计数至99时,若监控端在此期间始终未监测到第一心跳信号中存在高电平,可以说明扩展控制器工作异常,故可以控制扩展控制器进行复位。Correspondingly, when the counter starts counting from 0 and counts to 99, if the monitoring terminal has not detected the high level in the first heartbeat signal during this period, it can indicate that the expansion controller is working abnormally, so the expansion controller can be controlled Do a reset.
如图2所示,本发明实施例提供了另一种监控扩展控制器的方法,应用于扩展控制器,可以包括以下步骤:As shown in Figure 2, the embodiment of the present invention provides another method for monitoring an extended controller, which is applied to an extended controller and may include the following steps:
步骤201:实时根据自身的初始心跳信号,生成相应的第一心跳信号,并输出所述第一心跳信号;Step 201: Generate a corresponding first heartbeat signal in real time according to its own initial heartbeat signal, and output the first heartbeat signal;
步骤202:在外部的监控端的控制作用下进行复位,并执行步骤201。Step 202: Reset under the control of the external monitoring terminal, and execute step 201.
在本发明一个实施例中,扩展控制器可以为PMC8054SAS扩展控制器,对应地,上述监控端可以为Watchdog模块。PMC8054SAS扩展控制器实时输出的第一心跳信号,可以作为喂狗信号以实时输入至Watchdog模块,以使Watchdog模块可以根据喂狗信号以实时监测PMC8054SAS扩展控制器的工作状态是否存在异常。In one embodiment of the present invention, the extended controller may be a PMC8054SAS extended controller, and correspondingly, the monitoring terminal may be a Watchdog module. The first heartbeat signal output by the PMC8054SAS expansion controller in real time can be used as a dog feed signal to be input to the Watchdog module in real time, so that the Watchdog module can monitor whether there is any abnormality in the working status of the PMC8054SAS expansion controller in real time according to the dog feed signal.
详细地,扩展控制器正常工作时,可以实时输出一个固定频率,如0.5Hz的心跳信号,即上述初始心跳信号,该心跳信号类似于人类的心脏有规律的跳动。对应地,扩展控制器异常工作时,其实时输出的心跳信号可能恒为高电平或恒为低电平。In detail, when the extended controller is working normally, it can output a heartbeat signal with a fixed frequency, such as 0.5 Hz, in real time, that is, the above-mentioned initial heartbeat signal, which is similar to the regular beating of a human heart. Correspondingly, when the extended controller works abnormally, the heartbeat signal output by it in real time may be always at high level or always at low level.
由于监控端需要根据心跳信号中是否存在高电平,以间接确定扩展控制器的工作状态,故当扩展控制器异常工作并输出恒为高电平的心跳信号时,监控端基于该心跳信号,通常不能准确确定扩展控制器的工作状态。因此,可以将初始心跳信号进行处理,并将处理后得到的第一心跳信号输出至监控端。Since the monitoring terminal needs to indirectly determine the working status of the expansion controller according to whether there is a high level in the heartbeat signal, when the expansion controller is abnormally working and outputs a heartbeat signal that is always high, the monitoring terminal will, based on the heartbeat signal, It is often not possible to accurately determine the operating status of the expansion controller. Therefore, the initial heartbeat signal can be processed, and the processed first heartbeat signal can be output to the monitoring terminal.
因此,在本发明一个实施例中,为了说明一种根据初始心跳信号以生成相应的第一心跳信号的可能实现方式,所以,所述实时根据自身的初始心跳信号,生成相应的第一心跳信号,包括:实时确定自身的初始心跳信号;基于所述初始心跳信号的跳变沿,以及根据预先设置的延迟时间,将所述初始心跳信号进行延迟处理以得到第二心跳信号;将所述初始心跳信号进行取反处理以得到第三心跳信号,其中,所述初始心跳信号和所述第三心跳信号在同一时刻的电平高低相反;将所述第二心跳信号和所述第三心跳信号进行相与处理以得到第一心跳信号,其中,所述第二心跳信号和所述第三心跳信号在同一时刻均为高电平时,所述第一心跳信号在该时刻为高电平,否则,所述第一心跳信号在该时刻为低电平。Therefore, in an embodiment of the present invention, in order to illustrate a possible implementation of generating a corresponding first heartbeat signal based on an initial heartbeat signal, the real-time generator generates a corresponding first heartbeat signal according to its own initial heartbeat signal , comprising: determining its own initial heartbeat signal in real time; based on the transition edge of the initial heartbeat signal and according to a preset delay time, delaying the initial heartbeat signal to obtain a second heartbeat signal; Inverting the heartbeat signal to obtain a third heartbeat signal, wherein the levels of the initial heartbeat signal and the third heartbeat signal at the same moment are opposite; the second heartbeat signal and the third heartbeat signal Perform phase AND processing to obtain a first heartbeat signal, wherein, when the second heartbeat signal and the third heartbeat signal are both high at the same moment, the first heartbeat signal is at a high level at this moment, otherwise , the first heartbeat signal is at a low level at this moment.
详细地,所述跳变沿可以包括:从高电平转至低电平的下降沿,或,从低电平转至高电平的上升沿。In detail, the transition edge may include: a falling edge from a high level to a low level, or a rising edge from a low level to a high level.
详细地,根据初始心跳信号以生成相应的第一心跳信号的可能实现方式可以参考图3。In detail, reference may be made to FIG. 3 for a possible implementation manner of generating a corresponding first heartbeat signal according to the initial heartbeat signal.
在图3中,上述延迟时间可以取自Clock(计时器)信号,例如,图3中的延迟时间等于Clock信号的一个周期的一半。详细地,Clock信号的占空比为50%。详细地,基于Clock信号,可以根据时间顺序自左向右进行计数,如图3中的依次计数为1、2、……、10。heartbeat(心跳)信号可以为上述初始心跳信号。heartbeat_delay(心跳延迟)信号可以为上述第二心跳信号。heartbeat_n信号可以为上述第三心跳信号。plus(加和)信号可以为上述第一心跳信号。In FIG. 3, the above-mentioned delay time can be taken from the Clock (timer) signal, for example, the delay time in FIG. 3 is equal to half of one cycle of the Clock signal. In detail, the duty cycle of the Clock signal is 50%. In detail, based on the Clock signal, counting can be performed from left to right according to time sequence, such as 1, 2, . . . , 10 as shown in FIG. 3 . The heartbeat (heartbeat) signal may be the aforementioned initial heartbeat signal. The heartbeat_delay (heartbeat delay) signal may be the above-mentioned second heartbeat signal. The heartbeat_n signal may be the above-mentioned third heartbeat signal. The plus (summation) signal may be the above-mentioned first heartbeat signal.
如图3所示,将heartbeat信号进行延迟处理,可以得到heartbeat_delay信号,其中,延迟时间为Clock信号的一个周期的一半。将heartbeat信号进行取反处理,可以得到heartbeat_n信号。将heartbeat_delay信号和heartbeat_n信号进行相与处理,可以得到plus信号。plus信号可以被实时输出至监控端。理论上,plus信号的每一个高电平的宽度应该为Clock信号的一个周期的一半。As shown in Figure 3, the heartbeat_delay signal can be obtained by delaying the heartbeat signal, where the delay time is half of a cycle of the Clock signal. Invert the heartbeat signal to get the heartbeat_n signal. Phase and process the heartbeat_delay signal and heartbeat_n signal to get the plus signal. The plus signal can be output to the monitoring terminal in real time. Theoretically, the width of each high level of the plus signal should be half of a cycle of the Clock signal.
详细地,监控端可以根据Clock信号进行等时间间隔顺序计数,且这一时间间隔等于Clock信号的一个周期。扩展控制器执行延迟处理所基于的延迟时间等于Clock信号的一个周期的一半。如图3所示,当监控端由数字1计数至数字3时,可以监测到第一心跳信号,即图3中的plus信号中存在高电平。假设最大持续时长内可计数100次,说明计数至数字3时未达到最大持续时长,故可以清除当前计数数字,结束当前判断周期并开始下一个判断周期。Specifically, the monitoring terminal can perform sequential counting at equal time intervals according to the Clock signal, and this time interval is equal to one period of the Clock signal. The extension controller performs delay processing based on a delay time equal to half of one cycle of the Clock signal. As shown in FIG. 3 , when the monitoring terminal counts from number 1 to number 3, the first heartbeat signal can be detected, that is, there is a high level in the plus signal in FIG. 3 . Assuming that 100 times can be counted within the maximum duration, it means that the maximum duration has not been reached when counting to number 3, so the current count number can be cleared, the current judgment cycle ends and the next judgment cycle starts.
如图4所示,本发明一个实施例提供了再一种监控扩展控制器的方法,具体包括以下步骤:As shown in Figure 4, an embodiment of the present invention provides another method for monitoring an extended controller, which specifically includes the following steps:
步骤401:监控端预先确定判断周期的最大持续时长,且最大持续时长对应于100个计数数字。Step 401: The monitoring terminal predetermines the maximum duration of the judging period, and the maximum duration corresponds to 100 count numbers.
举例来说,最大持续时长可以为10s,且监控端在10s内可以进行100次计数,如可以从0正序计数至99,或可以从99倒序计数至0。For example, the maximum duration can be 10s, and the monitoring terminal can count 100 times within 10s, such as counting up from 0 to 99, or counting down from 99 to 0.
步骤402:扩展控制器预先确定占空比为50%的Clock信号。Step 402: The extended controller predetermines a Clock signal with a duty cycle of 50%.
步骤403:扩展控制器实时确定自身的heartbeat信号。Step 403: The extended controller determines its own heartbeat signal in real time.
详细地,heartbeat信号为扩展控制器的初始心跳信号。In detail, the heartbeat signal is an initial heartbeat signal of the extended controller.
步骤404:扩展控制器基于heartbeat信号的跳变沿,以Clock信号的一个周期的一半为延迟时间,将heartbeat信号进行延迟处理以得到heartbeat_delay信号。Step 404 : Based on the transition edge of the heartbeat signal, the extension controller delays the heartbeat signal with half a period of the Clock signal as the delay time to obtain the heartbeat_delay signal.
详细地,跳变沿可以为从高电平转至低电平的下降沿,或,从低电平转至高电平的上升沿。In detail, the transition edge may be a falling edge from a high level to a low level, or a rising edge from a low level to a high level.
步骤405:扩展控制器将heartbeat信号进行取反处理以得到heartbeat_n信号。Step 405: The extended controller inverts the heartbeat signal to obtain a heartbeat_n signal.
详细地,heartbeat信号和heartbeat_n信号在同一时刻的电平高低相反。In detail, the levels of the heartbeat signal and the heartbeat_n signal are opposite at the same time.
步骤406:扩展控制器将heartbeat_delay信号和heartbeat_n信号进行相与处理以得到plus信号,并实时输出plus信号至监控端。Step 406: The expansion controller performs phase-AND processing on the heartbeat_delay signal and the heartbeat_n signal to obtain a plus signal, and outputs the plus signal to the monitoring terminal in real time.
详细地,heartbeat_delay信号和heartbeat_n信号在同一时刻均为高电平时,plus信号在该时刻为高电平,否则,plus信号在该时刻为低电平。In detail, when both the heartbeat_delay signal and the heartbeat_n signal are at high level at the same moment, the plus signal is at a high level at that moment; otherwise, the plus signal is at a low level at this moment.
详细地,扩展控制器可以将基于heartbeat信号而生成的plus信号实时传输至监控端,以使监控端根据该plus信号,间接判断扩展控制器的工作状态是否存在异常。Specifically, the extension controller can transmit the plus signal generated based on the heartbeat signal to the monitoring terminal in real time, so that the monitoring terminal can indirectly judge whether the working state of the extension controller is abnormal according to the plus signal.
步骤407:监控端输入扩展控制器实时输出的plus信号。Step 407: The monitoring terminal inputs the plus signal output by the expansion controller in real time.
步骤408:监控端从当前判断周期的起始时刻开始进行等时间间隔顺序计数,且开始计数的数字为100个计数数字中的首位数字,在判断出plus信号中存在高电平且当前计数的数字不为100个计数数字中的末位数字时,执行步骤409,在判断出当前计数的数字为末位数字且未判断出plus信号中存在高电平时,执行步骤410。Step 408: The monitoring terminal starts counting sequentially at equal time intervals from the beginning of the current judgment period, and the number to start counting is the first digit of the 100 counting digits. When it is judged that there is a high level in the plus signal and the current counting When the number is not the last digit of the 100 counting numbers, execute step 409, and when it is judged that the currently counted digit is the last digit and it is not judged that there is a high level in the plus signal, execute step 410.
详细地,监控端同样可以预先确定上述占空比为50%的Clock信号,并基于Clock信号进行等时间间隔顺序计数。其中,该时间间隔可以等于Clock信号的一个周期。In detail, the monitoring terminal can also predetermine the aforementioned Clock signal with a duty ratio of 50%, and perform sequential counting at equal time intervals based on the Clock signal. Wherein, the time interval may be equal to one cycle of the Clock signal.
步骤409:监控端开始下一个判断周期,并执行步骤408。Step 409: The monitoring terminal starts the next judgment period, and executes step 408.
详细地,监控端在达到最大持续时长前判断出plus信号中存在高电平时,可以确定扩展控制器当前工作正常,故可以基于扩展控制器实时输出的plus信号,进行下一次判断。In detail, when the monitoring terminal determines that there is a high level in the plus signal before reaching the maximum duration, it can determine that the expansion controller is currently working normally, so the next judgment can be made based on the plus signal output by the expansion controller in real time.
步骤410:监控端将输出至扩展控制器的使能信号拉为低电平,并在确定出低电平的输出持续时长达到相应设定阈值时,将使能信号置为高电平,并执行步骤407。Step 410: The monitoring terminal pulls the enable signal output to the extended controller to a low level, and when it is determined that the duration of the low level output reaches the corresponding set threshold, sets the enable signal to a high level, and Execute step 407.
详细地,监控端通过控制使能信号的电平高低,以控制扩展控制器进行复位。In detail, the monitoring end controls the extended controller to reset by controlling the level of the enable signal.
详细地,使能信号为低电平时,扩展控制器通常不能正常工作,故不能实时输出plus信号至监控端。使能信号由低电平恢复为高电平时,扩展控制器可以继续正常工作,故可以继续实时输出plus信号至监控端。因此,监控端在控制扩展控制器进行复位后,需要再次输入扩展控制器实时输出的plus信号。In detail, when the enable signal is at low level, the expansion controller usually cannot work normally, so it cannot output the plus signal to the monitoring terminal in real time. When the enable signal returns from low level to high level, the expansion controller can continue to work normally, so it can continue to output the plus signal to the monitoring terminal in real time. Therefore, after the monitoring terminal controls the extended controller to reset, it needs to input the plus signal output by the extended controller in real time again.
步骤411:扩展控制器在确定出使能信号由低电平恢复为高电平时,执行步骤403。Step 411: The expansion controller executes step 403 when it is determined that the enable signal returns from a low level to a high level.
同上所述,使能信号由低电平恢复为高电平时,扩展控制器继续正常工作,故需要再次实时确定自身的heartbeat信号,以及执行后续的基于heartbeat信号生成plus信号。As mentioned above, when the enable signal is restored from low level to high level, the expansion controller continues to work normally, so it is necessary to determine its own heartbeat signal again in real time, and perform subsequent generation of plus signals based on the heartbeat signal.
如图5所示,本发明一个实施例提供了一种监控端,包括:As shown in Figure 5, an embodiment of the present invention provides a monitoring terminal, including:
确定单元501,用于确定判断周期的最大持续时长;A determination unit 501, configured to determine the maximum duration of the judgment cycle;
信号获取单元502,用于输入外部的扩展控制器实时输出的第一心跳信号;A signal acquisition unit 502, configured to input the first heartbeat signal output by the external expansion controller in real time;
监控单元503,用于从当前判断周期的起始时刻开始进行计时,在判断出所述第一心跳信号中存在高电平,且计时持续时长未达到所述最大持续时长时,触发处理单元504,在判断出计时持续时长达到所述最大持续时长,且未判断出所述第一心跳信号中存在高电平时,控制所述扩展控制器进行复位,并触发所述信号获取单元502;The monitoring unit 503 is configured to start timing from the start moment of the current judgment period, and trigger the processing unit 504 when it is judged that there is a high level in the first heartbeat signal, and the timing duration does not reach the maximum duration , when it is determined that the timing duration reaches the maximum duration, and it is not determined that there is a high level in the first heartbeat signal, controlling the expansion controller to reset, and triggering the signal acquisition unit 502;
所述处理单元504,用于开始下一个判断周期,并触发所述监控单元503。The processing unit 504 is configured to start a next judging cycle and trigger the monitoring unit 503 .
在本发明一个实施例中,所述监控单元503,具体用于将输出至所述扩展控制器的使能信号拉为低电平,并在确定出所述低电平的输出持续时长达到相应设定阈值时,将所述使能信号置为高电平。In one embodiment of the present invention, the monitoring unit 503 is specifically configured to pull the enable signal output to the extended controller to a low level, and when it is determined that the output duration of the low level reaches a corresponding When setting the threshold, set the enabling signal to high level.
在本发明一个实施例中,所述确定单元501,具体用于确定判断周期的最大持续时长,且所述最大持续时长对应于至少两个计数数字;In an embodiment of the present invention, the determining unit 501 is specifically configured to determine a maximum duration of the judgment period, and the maximum duration corresponds to at least two count numbers;
所述监控单元503,具体用于从当前判断周期的起始时刻开始进行等时间间隔顺序计数,且开始计数的数字为所述至少两个计数数字中的首位数字,在判断出所述第一心跳信号中存在高电平,且当前计数的数字不为所述至少两个计数数字中的末位数字时,触发处理单元,在判断出当前计数的数字为所述末位数字,且未判断出所述第一心跳信号中存在高电平时,控制所述扩展控制器进行复位,并触发所述信号获取单元。The monitoring unit 503 is specifically configured to perform sequential counting at equal time intervals from the beginning of the current judging period, and the number to start counting is the first digit of the at least two counting digits. When there is a high level in the heartbeat signal, and the currently counted number is not the last digit of the at least two counted digits, the processing unit is triggered to determine that the currently counted number is the last digit, and it is not judged When a high level exists in the first heartbeat signal, control the expansion controller to reset and trigger the signal acquisition unit.
如图6所示,本发明一个实施例提供了一种扩展控制器,包括:As shown in Figure 6, an embodiment of the present invention provides an extended controller, including:
信号处理单元601,用于实时根据自身的初始心跳信号,生成相应的第一心跳信号,并输出所述第一心跳信号;The signal processing unit 601 is configured to generate a corresponding first heartbeat signal in real time according to its own initial heartbeat signal, and output the first heartbeat signal;
复位单元602,用于在外部的监控端的控制作用下进行复位,并触发所述信号处理单元601。The reset unit 602 is configured to reset under the control of an external monitoring terminal and trigger the signal processing unit 601 .
在本发明一个实施例中,所述信号处理单元601,具体用于实时确定自身的初始心跳信号;基于所述初始心跳信号的跳变沿,以及根据预先设置的延迟时间,将所述初始心跳信号进行延迟处理以得到第二心跳信号;将所述初始心跳信号进行取反处理以得到第三心跳信号,其中,所述初始心跳信号和所述第三心跳信号在同一时刻的电平高低相反;将所述第二心跳信号和所述第三心跳信号进行相与处理以得到第一心跳信号,其中,所述第二心跳信号和所述第三心跳信号在同一时刻均为高电平时,所述第一心跳信号在该时刻为高电平,否则,所述第一心跳信号在该时刻为低电平。In an embodiment of the present invention, the signal processing unit 601 is specifically configured to determine its own initial heartbeat signal in real time; The signal is delayed to obtain a second heartbeat signal; the initial heartbeat signal is reversed to obtain a third heartbeat signal, wherein the levels of the initial heartbeat signal and the third heartbeat signal are opposite at the same time ; performing AND processing on the second heartbeat signal and the third heartbeat signal to obtain a first heartbeat signal, wherein, when both the second heartbeat signal and the third heartbeat signal are at a high level at the same moment, The first heartbeat signal is at a high level at this moment, otherwise, the first heartbeat signal is at a low level at this moment.
如图7所示,本发明实施例提供了一种监控扩展控制器的系统,包括:As shown in Figure 7, an embodiment of the present invention provides a system for monitoring an extended controller, including:
上述任一所述的监控端701,以及上述任一所述的扩展控制器702。The monitoring terminal 701 described above, and the extended controller 702 described above.
详细地,扩展控制器可以与存储设备相连。其中,存储设备能够挂载多块HDD(HardDisk Drive,硬盘驱动器),是一套高密度、高稳定且冗余的存储系统。扩展控制器工作异常时,会影响存储设备的稳定性。监控端基于扩展控制器的心跳信号,可以判断扩展控制器是否工作异常,以及能够在判断出扩展控制器工作异常时,控制扩展控制器进行复位以消除异常,从而间接保证存储设备的稳定性和可靠性,避免因扩展控制器出现异常而造成存储设备宕机等问题。In detail, the expansion controller can be connected to the storage device. Among them, the storage device can mount multiple HDDs (HardDisk Drive, hard disk drive), which is a high-density, high-stability and redundant storage system. When the extended controller works abnormally, it will affect the stability of the storage device. Based on the heartbeat signal of the extended controller, the monitoring terminal can judge whether the extended controller is working abnormally, and when it is judged that the extended controller is working abnormally, it can control the extended controller to reset to eliminate the abnormality, thereby indirectly ensuring the stability and stability of the storage device. Reliability, to avoid problems such as storage device downtime caused by abnormalities in the extended controller.
在本发明一个实施例中,所述监控端701,具体用于根据预先设置的占空比为50%的计时信号,进行等时间间隔顺序计数,其中,所述时间间隔与所述计时信号的一个周期相等;In one embodiment of the present invention, the monitoring terminal 701 is specifically used to perform sequential counting at equal time intervals according to a preset timing signal with a duty ratio of 50%, wherein the time interval and the timing signal one cycle is equal;
所述扩展控制器702,具体用于根据预先设置的延迟时间,将所述初始心跳信号进行延迟处理以得到第二心跳信号,其中,所述延迟时间为所述计时信号的一个周期的一半。The expansion controller 702 is specifically configured to delay the initial heartbeat signal according to a preset delay time to obtain a second heartbeat signal, wherein the delay time is half of a cycle of the timing signal.
详细地,请参考图3,Clock信号的占空比为50%,监控端可以根据该Clock信号进行等时间间隔顺序计数,且这一时间间隔等于Clock信号的一个周期。在图3中,扩展控制器执行延迟处理所基于的延迟时间等于Clock信号的一个周期的一半。如图3所示,当监控端由数字1计数至数字3时,可以监测到第一心跳信号,即图3中的plus信号中存在高电平。假设最大持续时长内可计数100次,说明计数至数字3时未达到最大持续时长,故可以清除当前计数数字,结束当前判断周期并开始下一个判断周期。In detail, please refer to FIG. 3 , the duty cycle of the Clock signal is 50%, and the monitoring terminal can perform sequential counting at equal time intervals according to the Clock signal, and this time interval is equal to one cycle of the Clock signal. In FIG. 3 , the extension controller performs delay processing based on a delay time equal to half of one cycle of the Clock signal. As shown in FIG. 3 , when the monitoring terminal counts from number 1 to number 3, the first heartbeat signal can be detected, that is, there is a high level in the plus signal in FIG. 3 . Assuming that 100 times can be counted within the maximum duration, it means that the maximum duration has not been reached when counting to number 3, so the current count number can be cleared, the current judgment cycle ends and the next judgment cycle starts.
上述装置内的各单元之间的信息交互、执行过程等内容,由于与本发明方法实施例基于同一构思,具体内容可参见本发明方法实施例中的叙述,此处不再赘述。The information exchange and execution process among the units in the above-mentioned device are based on the same concept as the method embodiment of the present invention, and the specific content can refer to the description in the method embodiment of the present invention, and will not be repeated here.
综上所述,本发明的各个实施例至少具有如下有益效果:In summary, each embodiment of the present invention has at least the following beneficial effects:
1、本发明实施例中,监控端输入扩展控制器实时输出的心跳信号;从当前判断周期的起始时刻开始进行计时,在判断出心跳信号中存在高电平且计时持续时长未达到最大持续时长时,开始下一个判断周期,并再次执行从当前判断周期的起始时刻开始进行计时,在判断出计时持续时长达到最大持续时长且未判断出心跳信号中存在高电平时,控制扩展控制器进行复位,并再次执行输入扩展控制器实时输出的心跳信号。基于心跳信号以实时判断扩展控制器是否状态异常,并在检测到异常时通知其复位以消除异常,从而保证扩展控制器能够正常运行,故本发明实施例能够提高与扩展控制器相连的存储设备的稳定性。1. In the embodiment of the present invention, the monitoring terminal inputs the heartbeat signal output by the extended controller in real time; starts timing from the beginning of the current judgment cycle, and when it is judged that there is a high level in the heartbeat signal and the timing duration does not reach the maximum duration When the duration is long, start the next judgment cycle, and start timing from the beginning of the current judgment cycle again. When it is judged that the timing duration reaches the maximum duration and it is not judged that there is a high level in the heartbeat signal, the extended controller is controlled. Perform a reset, and execute again to input the heartbeat signal output by the expansion controller in real time. Based on the heartbeat signal, it is judged in real time whether the state of the expansion controller is abnormal, and when an abnormality is detected, it is notified to reset to eliminate the abnormality, thereby ensuring that the expansion controller can operate normally, so the embodiment of the present invention can improve the storage device connected to the expansion controller. stability.
2、本发明实施例中,扩展控制器可以与存储设备相连。其中,存储设备能够挂载多块HDD,是一套高密度、高稳定且冗余的存储系统。扩展控制器工作异常时,会影响存储设备的稳定性。监控端基于扩展控制器的心跳信号,可以判断扩展控制器是否工作异常,以及能够在判断出扩展控制器工作异常时,控制扩展控制器进行复位以消除异常,从而间接保证存储设备的稳定性和可靠性,避免因扩展控制器出现异常而造成存储设备宕机等问题。2. In the embodiment of the present invention, the expansion controller may be connected to the storage device. Among them, the storage device can mount multiple HDDs, which is a high-density, highly stable and redundant storage system. When the extended controller works abnormally, it will affect the stability of the storage device. Based on the heartbeat signal of the extended controller, the monitoring terminal can judge whether the extended controller is working abnormally, and when it is judged that the extended controller is working abnormally, it can control the extended controller to reset to eliminate the abnormality, thereby indirectly ensuring the stability and stability of the storage device. Reliability, to avoid problems such as storage device downtime caused by abnormalities in the extended controller.
需要说明的是,在本文中,诸如第一和第二之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个······”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同因素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a relationship between these entities or operations. There is no such actual relationship or sequence. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional same elements in the process, method, article or apparatus comprising said element.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储在计算机可读取的存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质中。Those of ordinary skill in the art can understand that all or part of the steps to realize the above method embodiments can be completed by program instructions related hardware, and the aforementioned programs can be stored in a computer-readable storage medium. When the program is executed, the It includes the steps of the above method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.
最后需要说明的是:以上所述仅为本发明的较佳实施例,仅用于说明本发明的技术方案,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所做的任何修改、等同替换、改进等,均包含在本发明的保护范围内。Finally, it should be noted that the above descriptions are only preferred embodiments of the present invention, and are only used to illustrate the technical solution of the present invention, and are not used to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present invention are included in the protection scope of the present invention.
Claims (10)
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)
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)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1722077A (en) * | 2004-07-12 | 2006-01-18 | 普安科技股份有限公司 | Self-monitoring controller, redundant storage system including the controller and monitoring method |
CN101145992A (en) * | 2007-09-11 | 2008-03-19 | 中兴通讯股份有限公司 | Single board task anomaly 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 |
-
2016
- 2016-11-25 CN CN201611059171.7A patent/CN106371979A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1722077A (en) * | 2004-07-12 | 2006-01-18 | 普安科技股份有限公司 | Self-monitoring controller, redundant storage system including the controller and monitoring method |
CN101145992A (en) * | 2007-09-11 | 2008-03-19 | 中兴通讯股份有限公司 | Single board task anomaly 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)
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 | |
CN111752776B (en) | Cyclic power-on and power-off test method and system for server | |
CN105117301B (en) | A kind of method and device of memory early warning | |
CN109165138B (en) | Method and device for monitoring equipment fault | |
CN102467417B (en) | computer system | |
US11249144B2 (en) | Active AC power loss detection | |
CN111694710A (en) | Method, device and equipment for monitoring faults of substrate management controller and storage medium | |
CN110502369A (en) | A kind of method, apparatus and storage medium of equipment crash recovery | |
CN112084054A (en) | Watchdog circuit, and dog feeding method and device | |
CN107396428B (en) | Frequency switching method and device | |
CN108899059B (en) | Detection method and equipment for solid state disk | |
CN105912414A (en) | Method and system for server management | |
CN115904046A (en) | Reset control method of embedded system and embedded system | |
CN115480884A (en) | Chip, test monitoring method of chip and computer readable storage medium | |
TWI611290B (en) | Method for monitoring server racks | |
CN104345850B (en) | Intelligent automatic boot device | |
CN113220554B (en) | Method and apparatus for detecting performance of program code | |
CN114168393B (en) | Server testing method, system, equipment and medium | |
CN114356063A (en) | A method, server, device and medium for rapid alarm response of power supply | |
CN110161895B (en) | Device and method for monitoring the functional safety of a digital control unit and controller | |
CN111414066A (en) | A server expansion system and power control method thereof | |
CN104866051B (en) | A kind of prediction dog resets method, microcontroller and the embedded system of generation | |
CN118795220A (en) | A frequency measurement method, system, device, electronic device and storage medium | |
CN106452960B (en) | It is a kind of based on multicomputer system emulation message time-out determine method and device | |
CN107272822A (en) | A kind of system clock monitoring method and device |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170201 |