Hard disk monitoring system, method and device, storage medium, and baseboard management controller
Through the connection between the baseboard management controller and the hard disk status pin and signal modulation technology, the problem of limited hard disk out-of-band monitoring range is solved, and comprehensive monitoring and accurate presentation of hard disk status information are achieved.
Patent Information
- Application Number
- PCT/CN2024/095299
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-03-29
- Filing Date
- 2024-05-24
- Publication Date
- 2025-10-02
AI Technical Summary
In the prior art, out-of-band monitoring of hard disks cannot achieve comprehensive monitoring of hard disks, mainly because the baseboard management controller does not have the authority to access the business data of the hard disks.
The baseboard management controller is connected to the hard disk status pin of the hard disk, demodulates the hard disk log data and status signal, uses signal modulation technology to combine the hard disk log data and status signal into a first signal, and outputs it through the hard disk status pin. The baseboard management controller demodulates the signal to perform monitoring.
It expands the scope of hard drive out-of-band monitoring, improves the ability to obtain and monitor hard drive status information, and can accurately present the operating status of the hard drive to operation and maintenance personnel.
Smart Images

Figure CN2024095299_02102025_PF_FP_ABST
Abstract
Description
Hard disk monitoring system, method, device, storage medium and baseboard management controller
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on March 29, 2024, with application number 202410382672.7 and application name “Hard Disk Monitoring System, Method, Device, Storage Medium and Baseboard Management Controller”, all contents of which are incorporated by reference into this application. Technical Field
[0003] The present application relates to the field of hard disk monitoring technology, and in particular to a hard disk monitoring system, method, device, non-volatile readable storage medium, and baseboard management controller. Background Art
[0004] The hard disk is one of the most important storage devices in the computer. Therefore, the healthy operation of the hard disk is one of the key factors to ensure the reliability of the device server.
[0005] In order to ensure accurate control of the operating status of the hard disk, the device needs to monitor the hard disk during operation to obtain the hard disk status information. The current main hard disk monitoring solutions are divided into hard disk in-band monitoring and hard disk out-of-band monitoring. Hard disk in-band monitoring is to obtain the hard disk status information after the monitoring software running on the central processing unit (CPU) communicates data with the hard disk. This monitoring solution often has difficulty presenting the monitoring data to the operation and maintenance personnel. Hard disk out-of-band monitoring is to monitor the hard disk status after obtaining the hard disk status information through the baseboard management controller (Baseboard Management Controller, BMC). The monitoring results can be presented to the operation and maintenance personnel. It is the main monitoring method currently used. However, because the out-of-band management system does not have the authority to access the hard disk's business data, out-of-band monitoring of many hard disks cannot be achieved.
[0006] How to increase the range of hard disks that can be monitored by out-of-band monitoring of hard disks in a device is a technical problem that those skilled in the art need to solve.
[0007] Summary of the Invention
[0008] The purpose of this application is to provide a hard disk monitoring system, method, device, non-volatile readable storage medium and baseboard management controller for increasing the range of hard disks that can be monitored in out-of-band monitoring of hard disks in the device.
[0009] To solve the above technical problems, the present application provides a hard disk monitoring system, including a baseboard management controller and a hard disk;
[0010] The pins of the baseboard management controller are connected to the hard disk status pins of the hard disk;
[0011] The hard disk is configured to modulate the hard disk log data and the hard disk status signal corresponding to the hard disk status pin to obtain a first signal, and output the first signal through the hard disk status pin;
[0012] The baseboard management controller is configured to demodulate the first signal to obtain hard disk log data, so as to monitor the hard disk according to the hard disk log data.
[0013] Optionally, the first signal carries modulated hard disk log data and a hard disk status signal at the same time.
[0014] Optionally, the level width of the first signal corresponds to a data bit in the hard disk log data.
[0015] Optionally, the high and low level changes in the first signal correspond to a hard disk status signal.
[0016] Optionally, the hard disk status signal is a square wave signal, and the first signal is a signal obtained by the hard disk converting the hard disk log data into a signal of corresponding level width and then replacing the square wave signal with the signal corresponding to the hard disk log data;
[0017] The level width corresponding to the hard disk log data is different from the level width of the square wave signal.
[0018] Optionally, the hard disk status signal is a square wave signal, and the first signal is a signal obtained by the hard disk converting the hard disk log data into a signal of a corresponding level width and then adjusting the level width of a corresponding period in the square wave signal according to the level width corresponding to the hard disk log data;
[0019] The level width corresponding to the hard disk log data is different from the level width of the square wave signal.
[0020] Optionally, the level signal with a larger proportion in the first signal corresponds to the hard disk status signal.
[0021] Optionally, the hard disk status signal is a constant level signal, and the first signal is a signal obtained by the hard disk converting hard disk log data into a signal of a corresponding level width and then replacing the constant level signal of a corresponding duration with the signal corresponding to the hard disk log data;
[0022] The proportion of the inverted-phase level signal of the constant-level signal in each signal cycle of the first signal is less than 50%.
[0023] Optionally, the hard disk status signal is a constant level signal, and the first signal is a signal obtained by the hard disk converting hard disk log data into a signal of corresponding level width, generating an inverted signal of the constant level signal according to the signal corresponding to the hard disk log data, and then inserting the inverted signal into the constant level signal;
[0024] The proportion of the inverted-phase level signal of the constant-level signal in each signal cycle of the first signal is less than 50%.
[0025] Optionally, the hard disk status signal includes only one constant level signal, or the hard disk status signal includes a constant high level signal and a constant low level signal;
[0026] The first signal is a signal obtained by modulating the hard disk log data into a signal with a corresponding level width according to the signal corresponding to the hard disk log data and the hard disk status signal;
[0027] If the hard disk status signal is a constant high-level signal, the duty cycle of each cycle of the signal corresponding to the hard disk log data is greater than 50%;
[0028] If the hard disk status signal is a constant low-level signal, the duty cycle of each cycle of the signal corresponding to the hard disk log data is less than 50%.
[0029] Optionally, the hard disk status signal includes a square wave signal and a constant level signal;
[0030] The first signal is a signal obtained by modulating the hard disk log data into a signal with a corresponding level width according to the signal corresponding to the hard disk log data and the hard disk status signal;
[0031] When the hard disk status signal is a square wave signal, the maximum duty cycle in the signal period of the hard disk log data is less than the first duty cycle, and / or the minimum duty cycle in the signal period of the hard disk log data is greater than the second duty cycle;
[0032] If the constant level signal is a constant high level signal, the first duty cycle is the minimum duty cycle in the first signal corresponding to the constant level signal;
[0033] If the constant level signal is a constant low level signal, the second duty cycle is the maximum duty cycle of the first signal corresponding to the constant level signal.
[0034] Optionally, the first signal carries the modulated hard disk log data and hard disk status signal in a time-sharing manner.
[0035] Optionally, the baseboard management controller demodulates the first signal to obtain hard disk log data, including:
[0036] The baseboard management controller obtains corresponding digital data by measuring the level width of the first signal, and parses the digital data into hard disk log data.
[0037] Optionally, the baseboard management controller is further configured to demodulate the first signal according to a signal type of the hard disk status data corresponding to the hard disk status signal to obtain the hard disk status data.
[0038] Optionally, the baseboard management controller demodulates the first signal to obtain hard disk log data, including:
[0039] The baseboard management controller obtains corresponding digital data by measuring the level width of the first signal, and parses the digital data into hard disk log data;
[0040] The baseboard management controller demodulates the first signal according to the signal type of the hard disk status data corresponding to the hard disk status signal to obtain the hard disk status data, including:
[0041] If the signal type of the hard disk status data includes a constant level signal, the baseboard management controller demodulates the hard disk status data according to a signal with a larger proportion in the first signal.
[0042] Optionally, the baseboard management controller demodulates the first signal to obtain the hard disk status data according to the signal type of the hard disk status data corresponding to the hard disk status signal, including:
[0043] If the signal type of the hard disk status data includes a square wave signal, the baseboard management controller demodulates the hard disk status data according to the high and low level changes in the first signal.
[0044] Optionally, the hard disk monitoring system further includes a status control circuit corresponding to the hard disk status pin, a controlled end of the status control circuit is connected to the baseboard management controller, and an output end of the status control circuit is connected to a driving end of a controlled element corresponding to the hard disk status pin;
[0045] The baseboard management controller is further configured to control the state control circuit to drive the controlled components according to the hard disk state data.
[0046] Optionally, the hard disk status pin is a hard disk status indicator light control pin, and the status control circuit is an amplifying drive circuit;
[0047] The baseboard management controller controls the status control circuit to drive the controlled components according to the hard disk status data, including:
[0048] When the baseboard management controller demodulates the first signal and obtains the hard disk status data as a light-on command, it controls the amplifying driving circuit to generate a square wave signal to light up the hard disk status indicator light corresponding to the hard disk status pin; when the baseboard management controller demodulates the first signal and obtains the hard disk status data as a light-off command, it stops controlling the amplifying driving circuit to generate a square wave signal to turn off the hard disk status indicator light.
[0049] Optionally, the baseboard management controller includes a baseboard management controller chip and a complex programmable logic device;
[0050] The baseboard management controller chip is connected to the complex programmable logic device through an integrated circuit bus and an interrupt signal line, and the data input and output pins of the complex programmable logic device are connected to the hard disk status pins;
[0051] The complex programmable logic device is configured to demodulate the first signal to obtain hard disk log data, and send an interrupt signal to the baseboard management controller chip through an interrupt signal line;
[0052] The baseboard management controller chip is configured to read the hard disk log data from the complex programmable logic device through the integrated circuit bus after receiving the interrupt signal, and perform monitoring of the hard disk according to the hard disk log data.
[0053] Optionally, the baseboard management controller includes a baseboard management controller chip and a complex programmable logic device;
[0054] The baseboard management controller chip is connected to the complex programmable logic device through an integrated circuit bus, and the data input and output pins of the complex programmable logic device are connected to the hard disk status pins;
[0055] The complex programmable logic device is configured to demodulate the first signal to obtain hard disk log data;
[0056] The baseboard management controller chip is configured to poll the integrated circuit bus, and when polling the complex programmable logic device, read the hard disk log data and perform hard disk monitoring according to the hard disk log data.
[0057] Optionally, the baseboard management controller is further configured to, when the hard disk status data obtained by demodulating the first signal is non-control data or the demodulated first signal does not include the hard disk status data, and the current time is within a negotiation time period agreed upon with the hard disk, send a reverse transmission request to the hard disk status pin, and, upon receiving a permission signal sent by the hard disk, send a control command for the hard disk to the hard disk status pin;
[0058] The hard disk is also configured to execute control commands.
[0059] Optionally, the baseboard management controller demodulates the first signal to obtain hard disk log data, including:
[0060] The baseboard management controller obtains corresponding digital data by measuring the pulse amplitude of the first signal, and parses the digital data into hard disk log data.
[0061] Optionally, the hard disk is also configured as:
[0062] In the process of transmitting the hard disk status signal through the hard disk status pin, when the hard disk status signal is modulated at the current level of the hard disk status signal, detecting timeliness of obtaining the first signal by inverting the current level, wherein the timeliness is used to indicate whether inverting the current level allows obtaining the first signal;
[0063] Process the current level based on timeliness.
[0064] Optionally, the hard disk is also configured as:
[0065] Detecting a difference between a level width of the first signal and a level width of a current level;
[0066] determining timeliness to indicate that reversing the level in the current level allows obtaining the first signal if the difference is greater than a difference threshold, wherein the difference threshold is determined based on a minimum time taken to reverse the level;
[0067] In the case where the difference is less than or equal to the difference threshold, determining the timeliness is used to indicate that inverting the level in the current level does not allow obtaining the first signal.
[0068] Optionally, the hard disk is also configured as:
[0069] If the timeliness is used to indicate that reversing the level in the current level allows obtaining the first signal, sending the first signal in the current level;
[0070] When timeliness is used to indicate that inverting the level in the current level does not allow obtaining the first signal, the first signal is sent after sending the current level of the target level width, wherein the target level width is the level width that does not allow the baseboard management controller to demodulate the hard disk log data.
[0071] Optionally, the target level width is greater than a maximum value of a target width range, and the target width range is a width range obtained by having a level width of corresponding digital data.
[0072] Optionally, the hard disk is also configured as:
[0073] When the hard disk status signal switches when the first signal is output, the modulation of the target level and the reference level is controlled according to the level type of the target level currently being sent and the switching of the hard disk status signal, wherein the reference level is the level after the target level.
[0074] Optionally, the hard disk is also configured as:
[0075] When the hard disk status signal switches from a square wave signal to a constant level signal, and the level type of the target level is the same as that of the constant level signal, an inverted level signal of the constant level signal is inserted after the target level, and the reference level is obtained by modulating the hard disk status signal into a constant level signal.
[0076] Optionally, the hard disk is also configured as:
[0077] When the hard disk status signal switches from a square wave signal to a constant level signal, and the level type of the target level is opposite to that of the constant level signal, the next level of the target level is obtained by modulating the square wave signal according to the hard disk status signal after the target level;
[0078] An inverted level signal of the constant level signal is inserted after the next level, and the constant level signal is modulated according to the hard disk status signal to obtain a reference level.
[0079] Optionally, the hard disk is also configured as:
[0080] When the hard disk status signal switches from a constant level signal to a square wave signal and the pulse type of the target pulse is the same as that of the constant level signal, the level is inverted after the target level and the square wave signal is modulated according to the hard disk status signal to obtain a reference level.
[0081] Optionally, the hard disk is also configured as:
[0082] When the hard disk status signal switches from a constant level signal to a square wave signal, and the level type of the target level is opposite to that of the constant level signal, a reference pulse is obtained by modulating the square wave signal according to the hard disk status signal after the target level.
[0083] Optionally, the baseboard management controller demodulates the first signal to obtain hard disk log data, including:
[0084] The baseboard management controller measures the level width of the first signal falling within the target width range to obtain corresponding digital data, and parses the digital data into hard disk log data, wherein the target width range is a width range obtained by the level width of the corresponding digital data.
[0085] Optionally, the baseboard management controller measures the level width of the first signal that falls within the target width range to obtain corresponding digital data, and parses the digital data into hard disk log data, including:
[0086] The baseboard management controller measures a level width of a current level in the first signal;
[0087] The baseboard management controller detects whether the level width of the current level falls within the target width range;
[0088] When the level width of the current level falls within the target width range, the baseboard management controller determines the level width of the current level as digital data corresponding to the current level;
[0089] The baseboard management controller searches for the data code corresponding to the digital data corresponding to the current level from the digital data and the data code having a corresponding relationship, and obtains the hard disk log data.
[0090] Optionally, after detecting whether the level width of the current level falls within the target width range, if the level width of the current level does not fall within the target width range, the baseboard management controller discards the level width of the target level.
[0091] Optionally, the baseboard management controller demodulates the first signal to obtain hard disk log data, including:
[0092] The baseboard management controller measures the level width of the target type level in the first signal to obtain corresponding digital data, and parses the digital data into hard disk log data, wherein the target type is the level type in the first signal that is allowed to carry hard disk log data.
[0093] Optionally, before measuring the level width of the level belonging to the target type in the first signal to obtain corresponding digital data and parsing the digital data into hard disk log data, the baseboard management controller determines the hard disk status according to the level in the first signal;
[0094] The baseboard management controller determines the target type based on the hard disk status.
[0095] Optionally, the baseboard management controller determines the hard disk status according to the level of the first signal, including:
[0096] The baseboard management controller detects a level width of an inverted level signal in the first signal, wherein the hard disk status signal is a constant level signal for indicating that the hard disk is in an idle state, and the inverted level signal is a level opposite in direction to the constant level signal;
[0097] The baseboard management controller determines the hard disk status according to the level width of the inverted level signal.
[0098] Optionally, the baseboard management controller determines the target type according to the hard disk status, including:
[0099] When the hard disk state is an idle state, the baseboard management controller determines that the target type is a level type in the same direction as the constant level signal.
[0100] Optionally, the baseboard management controller determines the target type according to the hard disk status, including:
[0101] When the hard disk state is active, the baseboard management controller determines that the target type is a high level type and a low level type.
[0102] To solve the above technical problems, the present application also provides a baseboard management controller configured for hard disk monitoring;
[0103] The baseboard management controller is configured to demodulate a first signal outputted by a hard disk status pin of the hard disk to obtain hard disk log data, and perform monitoring of the hard disk according to the hard disk log data;
[0104] The first signal is a signal modulated by the hard disk according to the hard disk log data and the hard disk status signal corresponding to the hard disk status pin.
[0105] Optionally, the first signal carries modulated hard disk log data and a hard disk status signal at the same time.
[0106] Optionally, the level width of the first signal corresponds to a data bit in the hard disk log data.
[0107] Optionally, the high and low level changes in the first signal correspond to a hard disk status signal.
[0108] Optionally, the level signal with a larger proportion in the first signal corresponds to the hard disk status signal.
[0109] Optionally, the hard disk status signal includes only one constant level signal, or the hard disk status signal includes a constant high level signal and a constant low level signal;
[0110] The first signal is a signal obtained by modulating the hard disk log data into a signal with a corresponding level width according to the signal corresponding to the hard disk log data and the hard disk status signal;
[0111] If the hard disk status signal is a constant high-level signal, the duty cycle of each cycle of the signal corresponding to the hard disk log data is greater than 50%;
[0112] If the hard disk status signal is a constant low-level signal, the duty cycle of each cycle of the signal corresponding to the hard disk log data is less than 50%.
[0113] Optionally, the hard disk status signal includes a square wave signal and a constant level signal;
[0114] The first signal is a signal obtained by modulating the hard disk log data into a signal with a corresponding level width according to the signal corresponding to the hard disk log data and the hard disk status signal;
[0115] When the hard disk status signal is a square wave signal, the maximum duty cycle in the signal period of the hard disk log data is less than the first duty cycle, and / or the minimum duty cycle in the signal period of the hard disk log data is greater than the second duty cycle;
[0116] If the constant level signal is a constant high level signal, the first duty cycle is the minimum duty cycle in the first signal corresponding to the constant level signal;
[0117] If the constant level signal is a constant low level signal, the second duty cycle is the maximum duty cycle of the first signal corresponding to the constant level signal.
[0118] Optionally, the first signal carries the modulated hard disk log data and hard disk status signal in a time-sharing manner.
[0119] Optionally, the baseboard management controller demodulates the first signal to obtain hard disk log data, including:
[0120] The baseboard management controller obtains corresponding digital data by measuring the level width of the first signal, and parses the digital data into hard disk log data.
[0121] Optionally, the baseboard management controller is further configured to demodulate the hard disk status data from a signal period in which the hard disk log data is demodulated according to a signal type of the hard disk status signal.
[0122] Optionally, the signal type of the hard disk status signal includes a square wave signal;
[0123] The baseboard management controller demodulates the hard disk status data from the signal period of the hard disk log data according to the signal type of the hard disk status signal, including:
[0124] The baseboard management controller demodulates the hard disk status data according to the high and low level changes in the first signal.
[0125] Optionally, the baseboard management controller demodulates the hard disk status data according to the high and low level changes in the first signal, including:
[0126] After demodulating and obtaining the hard disk log data, the baseboard management controller replaces the first signal with a square wave signal to obtain a hard disk status signal;
[0127] The hard disk status data is obtained by demodulating the hard disk status signal.
[0128] Optionally, the baseboard management controller demodulates the hard disk status data according to the high and low level changes in the first signal, including:
[0129] After demodulating and obtaining the hard disk log data, the baseboard management controller adjusts the pulse width of each cycle of the first signal according to the pulse width of the corresponding square wave signal to obtain a hard disk status signal;
[0130] The hard disk status data is obtained by demodulating the hard disk status signal.
[0131] Optionally, the signal type of the hard disk status signal includes a constant level signal;
[0132] The baseboard management controller demodulates the hard disk status data from the signal period of the hard disk log data according to the signal type of the hard disk status signal, including:
[0133] The baseboard management controller demodulates the hard disk status data according to the level signal that accounts for a relatively large proportion in the signal period of the first signal.
[0134] Optionally, the baseboard management controller demodulates the hard disk status data according to the level signal that accounts for a relatively large proportion in the signal period of the first signal, including:
[0135] After demodulating and obtaining the hard disk log data, the baseboard management controller replaces the first signal with a level signal that accounts for a larger proportion of the signal period of the first signal to obtain a hard disk status signal;
[0136] The hard disk status data is obtained by demodulating the hard disk status signal.
[0137] Optionally, the baseboard management controller demodulates the hard disk status data according to the level signal that accounts for a relatively large proportion in the signal period of the first signal, including:
[0138] After demodulating and obtaining the hard disk log data, the baseboard management controller replaces the inverted signal corresponding to the level signal with a larger proportion in the signal cycle of the first signal with the level signal with a larger proportion in the signal cycle of the first signal to obtain the hard disk status signal;
[0139] The hard disk status data is obtained by demodulating the hard disk status signal.
[0140] Optionally, the signal type of the hard disk status signal includes only one constant level signal, or the signal type of the hard disk status data includes a constant high level signal and a constant low level signal;
[0141] The baseboard management controller demodulates the hard disk status data from the signal period of the hard disk log data according to the signal type of the hard disk status signal, including:
[0142] After demodulating and obtaining the hard disk log data, the baseboard management controller restores the signal period of the first signal with a duty cycle greater than 50% to a constant high-level signal, and restores the signal period of the first signal with a duty cycle less than 50% to a constant low-level signal, thereby obtaining a hard disk status signal;
[0143] The hard disk status data is obtained by demodulating the hard disk status signal.
[0144] Optionally, the signal type of the hard disk status signal includes a square wave signal and a constant level signal;
[0145] The baseboard management controller demodulates the hard disk status data from the signal period of the hard disk log data according to the signal type of the hard disk status signal, including:
[0146] If the constant-level signal is a constant high-level signal, the baseboard management controller, after demodulating and obtaining the hard disk log data, restores a signal period in the first signal having a duty cycle less than the first duty cycle into a square wave signal, and restores a signal period in the first signal having a duty cycle greater than the first duty cycle into a constant high-level signal, thereby obtaining a hard disk status signal;
[0147] If the constant-level signal is a constant low-level signal, the baseboard management controller, after demodulating and obtaining the hard disk log data, restores the signal period of the first signal having a duty cycle greater than the second duty cycle into a square wave signal, and restores the signal period of the first signal having a duty cycle less than the second duty cycle into a constant low-level signal, thereby obtaining the hard disk status signal;
[0148] If the constant-level signal includes a constant high-level signal and a constant low-level signal, then after demodulating and obtaining the hard disk log data, the baseboard management controller restores a signal period in the first signal whose duty cycle is less than the first duty cycle and greater than the second duty cycle into a square wave signal, restores a signal period in the first signal whose duty cycle is greater than the first duty cycle into a constant high-level signal, and restores a signal period in the first signal whose duty cycle is less than the second duty cycle into a constant low-level signal, thereby obtaining a hard disk status signal;
[0149] The hard disk status data is obtained by demodulating the hard disk status signal.
[0150] Optionally, the baseboard management controller demodulates the first signal to obtain hard disk log data, including:
[0151] After demodulating the first signal according to the signal type of the hard disk status signal to obtain the hard disk status data, the baseboard management controller demodulates the signal period of the first signal that does not match the signal type of the hard disk status signal to obtain the hard disk log data;
[0152] Alternatively, the baseboard management controller obtains corresponding digital data by measuring the level width of the first signal, parses the digital data into hard disk log data, and demodulates the signal period where the level width does not correspond to the digital data to obtain hard disk status data.
[0153] Optionally, the baseboard management controller further includes a status control circuit corresponding to the hard disk status pin, a controlled end of the status control circuit is connected to the baseboard management controller, and an output end of the status control circuit is connected to a driving end of a controlled component corresponding to the hard disk status pin;
[0154] The baseboard management controller is further configured to control the state control circuit to drive the controlled components according to the hard disk state data.
[0155] Optionally, the hard disk status pin is a hard disk status indicator light control pin, and the status control circuit is an amplifying drive circuit;
[0156] The baseboard management controller controls the status control circuit to drive the controlled components according to the hard disk status data, including:
[0157] When the baseboard management controller demodulates the first signal to obtain the hard disk status data as a lighting command, it controls the amplifying driving circuit to generate a square wave signal to light up the hard disk status indicator light corresponding to the hard disk status pin;
[0158] When the hard disk status data obtained by demodulating the first signal is a light-off command, the baseboard management controller stops controlling the amplifying driving circuit to generate a square wave signal to turn off the hard disk status indicator light.
[0159] Optionally, the baseboard management controller includes a baseboard management controller chip and a complex programmable logic device;
[0160] The baseboard management controller chip is connected to the complex programmable logic device through an integrated circuit bus and an interrupt signal line, and the data input and output pins of the complex programmable logic device are connected to the hard disk status pins;
[0161] The complex programmable logic device is configured to demodulate the first signal to obtain hard disk log data, and send an interrupt signal to the baseboard management controller chip through an interrupt signal line;
[0162] The baseboard management controller chip is configured to read the hard disk log data from the complex programmable logic device through the integrated circuit bus after receiving the interrupt signal, and perform monitoring of the hard disk according to the hard disk log data.
[0163] Optionally, the baseboard management controller includes a baseboard management controller chip and a complex programmable logic device;
[0164] The baseboard management controller chip is connected to the complex programmable logic device through an integrated circuit bus, and the data input and output pins of the complex programmable logic device are connected to the hard disk status pins;
[0165] The complex programmable logic device is configured to demodulate the first signal to obtain hard disk log data;
[0166] The baseboard management controller chip is configured to poll the integrated circuit bus, and when polling the complex programmable logic device, read the hard disk log data and perform hard disk monitoring according to the hard disk log data.
[0167] Optionally, the baseboard management controller is also configured to send a reverse transmission request to the hard disk status pin when the hard disk status data obtained by demodulating the first signal is non-control data or the demodulated first signal does not include hard disk status data, and the current moment is the negotiation time period agreed with the hard disk, and to send a control command to the hard disk to the hard disk status pin when receiving the permission signal sent by the hard disk.
[0168] Optionally, the baseboard management controller demodulates the first signal to obtain hard disk log data, including:
[0169] The baseboard management controller obtains corresponding digital data by measuring the pulse amplitude of the first signal, and parses the digital data into hard disk log data.
[0170] Optionally, the hard disk is also configured as:
[0171] In the process of transmitting the hard disk status signal through the hard disk status pin, when the hard disk status signal is modulated at the current level of the hard disk status signal, detecting timeliness of obtaining the first signal by inverting the current level, wherein the timeliness is used to indicate whether inverting the current level allows obtaining the first signal;
[0172] Process the current level based on timeliness.
[0173] Optionally, the hard disk is also configured as:
[0174] Detecting a difference between a level width of the first signal and a level width of a current level;
[0175] determining timeliness to indicate that reversing the level in the current level allows obtaining the first signal if the difference is greater than a difference threshold, wherein the difference threshold is determined based on a minimum time taken to reverse the level;
[0176] In the case where the difference is less than or equal to the difference threshold, determining the timeliness is used to indicate that inverting the level in the current level does not allow obtaining the first signal.
[0177] Optionally, the hard disk is also configured as:
[0178] If the timeliness is used to indicate that reversing the level in the current level allows obtaining the first signal, sending the first signal in the current level;
[0179] When timeliness is used to indicate that inverting the level in the current level does not allow obtaining the first signal, the first signal is sent after sending the current level of the target level width, wherein the target level width is the level width that does not allow the baseboard management controller to demodulate the hard disk log data.
[0180] Optionally, the target level width is greater than a maximum value of a target width range, and the target width range is a width range obtained by having a level width of corresponding digital data.
[0181] Optionally, the hard disk is also configured as:
[0182] When the hard disk status signal switches when the first signal is output, the modulation of the target level and the reference level is controlled according to the level type of the target level currently being sent and the switching of the hard disk status signal, wherein the reference level is the level after the target level.
[0183] Optionally, the hard disk is also configured as:
[0184] When the hard disk status signal switches from a square wave signal to a constant level signal, and the level type of the target level is the same as that of the constant level signal, an inverted level signal of the constant level signal is inserted after the target level, and the reference level is obtained by modulating the hard disk status signal into a constant level signal.
[0185] Optionally, the hard disk is also configured as:
[0186] When the hard disk status signal switches from a square wave signal to a constant level signal, and the level type of the target level is opposite to that of the constant level signal, the next level of the target level is obtained by modulating the square wave signal according to the hard disk status signal after the target level;
[0187] An inverted level signal of the constant level signal is inserted after the next level, and the constant level signal is modulated according to the hard disk status signal to obtain a reference level.
[0188] Optionally, the hard disk is also configured as:
[0189] When the hard disk status signal switches from a constant level signal to a square wave signal and the pulse type of the target pulse is the same as that of the constant level signal, the level is inverted after the target level and the square wave signal is modulated according to the hard disk status signal to obtain a reference level.
[0190] Optionally, the hard disk is also configured as:
[0191] When the hard disk status signal switches from a constant level signal to a square wave signal, and the level type of the target level is opposite to that of the constant level signal, a reference pulse is obtained by modulating the square wave signal according to the hard disk status signal after the target level.
[0192] Optionally, the baseboard management controller demodulates the first signal to obtain hard disk log data, including:
[0193] The baseboard management controller measures the level width of the first signal falling within the target width range to obtain corresponding digital data, and parses the digital data into hard disk log data, wherein the target width range is a width range obtained by the level width of the corresponding digital data.
[0194] Optionally, the baseboard management controller measures the level width of the first signal that falls within the target width range to obtain corresponding digital data, and parses the digital data into hard disk log data, including:
[0195] The baseboard management controller measures a level width of a current level in the first signal;
[0196] The baseboard management controller detects whether the level width of the current level falls within the target width range;
[0197] When the level width of the current level falls within the target width range, the baseboard management controller determines the level width of the current level as digital data corresponding to the current level;
[0198] The baseboard management controller searches for the data code corresponding to the digital data corresponding to the current level from the digital data and the data code having a corresponding relationship, and obtains the hard disk log data.
[0199] Optionally, after detecting whether the level width of the current level falls within the target width range, if the level width of the current level does not fall within the target width range, the baseboard management controller discards the level width of the target level.
[0200] Optionally, the baseboard management controller demodulates the first signal to obtain hard disk log data, including:
[0201] The baseboard management controller measures the level width of the target type level in the first signal to obtain corresponding digital data, and parses the digital data into hard disk log data, wherein the target type is the level type in the first signal that is allowed to carry hard disk log data.
[0202] Optionally, before measuring the level width of the level belonging to the target type in the first signal to obtain corresponding digital data and parsing the digital data into hard disk log data, the baseboard management controller determines the hard disk status according to the level in the first signal;
[0203] The baseboard management controller determines the target type based on the hard disk status.
[0204] Optionally, the baseboard management controller determines the hard disk status according to the level of the first signal, including:
[0205] The baseboard management controller detects a level width of an inverted level signal in the first signal, wherein the hard disk status signal is a constant level signal for indicating that the hard disk is in an idle state, and the inverted level signal is a level opposite in direction to the constant level signal;
[0206] The baseboard management controller determines the hard disk status according to the level width of the inverted level signal.
[0207] Optionally, the baseboard management controller determines the target type according to the hard disk status, including:
[0208] When the hard disk state is an idle state, the baseboard management controller determines that the target type is a level type in the same direction as the constant level signal.
[0209] Optionally, the baseboard management controller determines the target type according to the hard disk status, including:
[0210] When the hard disk state is active, the baseboard management controller determines that the target type is a high level type and a low level type.
[0211] To solve the above technical problems, the present application also provides a hard disk monitoring method, which is applied to a baseboard management controller, comprising:
[0212] receiving a first signal output by a hard disk status pin of the hard disk, obtained by modulating the hard disk log data and a hard disk status signal corresponding to the hard disk status pin;
[0213] Demodulating the first signal to obtain hard disk log data;
[0214] Monitor the hard disk based on the hard disk log data.
[0215] Optionally, the first signal carries modulated hard disk log data and a hard disk status signal at the same time.
[0216] Optionally, the level width of the first signal corresponds to a data bit in the hard disk log data.
[0217] Optionally, the high and low level changes in the first signal correspond to a hard disk status signal.
[0218] Optionally, the level signal with a larger proportion in the first signal corresponds to the hard disk status signal.
[0219] Optionally, the hard disk status signal includes only one constant level signal, or the hard disk status signal includes a constant high level signal and a constant low level signal;
[0220] The first signal is a signal obtained by modulating the hard disk log data into a signal with a corresponding level width according to the signal corresponding to the hard disk log data and the hard disk status signal;
[0221] If the hard disk status signal is a constant high-level signal, the duty cycle of each cycle of the signal corresponding to the hard disk log data is greater than 50%;
[0222] If the hard disk status signal is a constant low-level signal, the duty cycle of each cycle of the signal corresponding to the hard disk log data is less than 50%.
[0223] Optionally, the hard disk status signal includes a square wave signal and a constant level signal;
[0224] The first signal is a signal obtained by modulating the hard disk log data into a signal with a corresponding level width according to the signal corresponding to the hard disk log data and the hard disk status signal;
[0225] When the hard disk status signal is a square wave signal, the maximum duty cycle in the signal period of the hard disk log data is less than the first duty cycle, and / or the minimum duty cycle in the signal period of the hard disk log data is greater than the second duty cycle;
[0226] If the constant level signal is a constant high level signal, the first duty cycle is the minimum duty cycle in the first signal corresponding to the constant level signal;
[0227] If the constant level signal is a constant low level signal, the second duty cycle is the maximum duty cycle of the first signal corresponding to the constant level signal.
[0228] Optionally, the first signal carries the modulated hard disk log data and hard disk status signal in a time-sharing manner.
[0229] Optionally, demodulating the first signal to obtain hard disk log data includes:
[0230] Corresponding digital data is obtained by measuring the level width of the first signal, and the digital data is parsed into hard disk log data.
[0231] Optionally, the hard disk monitoring method also includes:
[0232] The hard disk status data is demodulated from the signal period of the hard disk log data according to the signal type of the hard disk status signal.
[0233] Optionally, the signal type of the hard disk status signal includes a square wave signal;
[0234] According to the signal type of the hard disk status signal, the hard disk status data is demodulated from the signal period of the hard disk log data, including:
[0235] The hard disk status data is demodulated according to the high and low level changes in the first signal.
[0236] Optionally, demodulating hard disk status data according to high and low level changes in the first signal includes:
[0237] After demodulating and obtaining the hard disk log data, the first signal is replaced with a square wave signal to obtain a hard disk status signal;
[0238] The hard disk status data is obtained by demodulating the hard disk status signal.
[0239] Optionally, demodulating hard disk status data according to high and low level changes in the first signal includes:
[0240] After demodulating and obtaining the hard disk log data, the pulse width of each cycle of the first signal is adjusted according to the pulse width of the corresponding square wave signal to obtain a hard disk status signal;
[0241] The hard disk status data is obtained by demodulating the hard disk status signal.
[0242] Optionally, the signal type of the hard disk status signal includes a constant level signal;
[0243] According to the signal type of the hard disk status signal, the hard disk status data is demodulated from the signal period of the hard disk log data, including:
[0244] The hard disk status data is demodulated according to the level signal with a larger proportion in the first signal.
[0245] Optionally, demodulating the hard disk status data according to the level signal that accounts for a relatively large proportion in the signal period of the first signal includes:
[0246] After demodulating to obtain the hard disk log data, the first signal is replaced with a level signal that accounts for a larger proportion of the signal period of the first signal to obtain a hard disk status signal;
[0247] The hard disk status data is obtained by demodulating the hard disk status signal.
[0248] Optionally, demodulating the hard disk status data according to the level signal that accounts for a relatively large proportion in the signal period of the first signal includes:
[0249] After demodulating to obtain the hard disk log data, the inverted signal corresponding to the level signal with a larger proportion in the signal period of the first signal is replaced with the level signal with a larger proportion in the signal period of the first signal to obtain the hard disk status signal;
[0250] The hard disk status data is obtained by demodulating the hard disk status signal.
[0251] Optionally, the signal type of the hard disk status signal includes only one constant level signal, or the signal type of the hard disk status data includes a constant high level signal and a constant low level signal;
[0252] According to the signal type of the hard disk status signal, the hard disk status data is demodulated from the signal period of the hard disk log data, including:
[0253] After demodulating and obtaining the hard disk log data, the signal period of the first signal with a duty cycle greater than 50% is restored to a constant high-level signal, and the signal period of the first signal with a duty cycle less than 50% is restored to a constant low-level signal to obtain the hard disk status signal;
[0254] The hard disk status data is obtained by demodulating the hard disk status signal.
[0255] Optionally, the signal type of the hard disk status signal includes a square wave signal and a constant level signal;
[0256] According to the signal type of the hard disk status signal, the hard disk status data is demodulated from the signal period of the hard disk log data, including:
[0257] If the constant-level signal is a constant high-level signal, after demodulating to obtain the hard disk log data, restore the signal period of the first signal with a duty cycle less than the first duty cycle to a square wave signal, and restore the signal period of the first signal with a duty cycle greater than the first duty cycle to a constant high-level signal, to obtain the hard disk status signal;
[0258] If the constant-level signal is a constant low-level signal, after demodulating to obtain the hard disk log data, the signal period in the first signal where the duty cycle is greater than the second duty cycle is restored to a square wave signal, and the signal period in the first signal where the duty cycle is less than the second duty cycle is restored to a constant low-level signal to obtain the hard disk status signal;
[0259] If the constant-level signal includes a constant high-level signal and a constant low-level signal, after demodulating to obtain the hard disk log data, restoring a signal period in the first signal whose duty cycle is less than the first duty cycle and greater than the second duty cycle into a square wave signal, restoring a signal period in the first signal whose duty cycle is greater than the first duty cycle into a constant high-level signal, and restoring a signal period in the first signal whose duty cycle is less than the second duty cycle into a constant low-level signal, thereby obtaining the hard disk status signal;
[0260] The hard disk status data is obtained by demodulating the hard disk status signal.
[0261] Optionally, demodulating the first signal to obtain hard disk log data includes:
[0262] After demodulating the first signal to obtain hard disk status data according to the signal type of the hard disk status signal, demodulating the hard disk log data from the time period of the first signal that does not match the signal type of the hard disk status signal;
[0263] Alternatively, the corresponding digital data is obtained by measuring the level width and pulse width of the first signal, the digital data is parsed into hard disk log data, and hard disk status data is obtained by demodulating the signal period where the level width does not correspond to the digital data.
[0264] Optionally, the hard disk monitoring method also includes:
[0265] The state control circuit is controlled according to the hard disk state data to drive the controlled element corresponding to the hard disk state pin.
[0266] Optionally, the hard disk status pin is a hard disk status indicator light control pin, and the status control circuit is an amplifying drive circuit;
[0267] The state control circuit is controlled according to the hard disk state data to drive the controlled component corresponding to the hard disk state pin, including:
[0268] When the hard disk status data obtained by demodulating the first signal is a lighting command, the amplifying driving circuit is controlled to generate a square wave signal to light up the hard disk status indicator light corresponding to the hard disk status pin;
[0269] When the hard disk status data obtained by demodulating the first signal is a light-off command, the control amplifying driving circuit is stopped to generate a square wave signal to turn off the hard disk status indicator light.
[0270] Optionally, the hard disk monitoring method is applied to a complex programmable logic device of a baseboard management controller, and the complex programmable logic device is connected to a baseboard management controller chip of the baseboard management controller via an integrated circuit bus;
[0271] Monitor hard disks based on hard disk log data, including:
[0272] An interrupt signal is sent to the baseboard management controller chip through the interrupt signal line, so that after receiving the interrupt signal, the baseboard management controller chip reads the hard disk log data through the integrated circuit bus to the complex programmable logic device and performs hard disk monitoring according to the hard disk log data.
[0273] Optionally, the hard disk monitoring method is applied to a complex programmable logic device of a baseboard management controller, and the complex programmable logic device is connected to a baseboard management controller chip of the baseboard management controller via an integrated circuit bus;
[0274] Monitor hard disks based on hard disk log data, including:
[0275] Accept the polling of the baseboard management controller chip, so that when the baseboard management controller chip polls the complex programmable logic device, it reads the hard disk log data and performs monitoring of the hard disk according to the hard disk log data.
[0276] Optionally, the hard disk monitoring method also includes:
[0277] When the hard disk status data obtained by demodulating the first signal is non-control data or the demodulated first signal does not include hard disk status data, and the current moment is the negotiation time period agreed with the hard disk, a reverse transmission request is sent to the hard disk status pin, and when the permission signal sent by the hard disk is received, a control command for the hard disk is sent to the hard disk status pin.
[0278] Optionally, demodulating the first signal to obtain hard disk log data includes:
[0279] The corresponding digital data is obtained by measuring the pulse amplitude of the first signal, and the digital data is parsed into hard disk log data.
[0280] Optionally, demodulating the first signal to obtain hard disk log data includes:
[0281] The level width of the first signal falling within the target width range is measured to obtain corresponding digital data, and the digital data is parsed into hard disk log data, wherein the target width range is a width range obtained by having the level width of the corresponding digital data.
[0282] Optionally, measuring the level width of the first signal that falls within the target width range to obtain corresponding digital data, and parsing the digital data into hard disk log data includes:
[0283] measuring a level width of a current level in the first signal;
[0284] Check whether the current level width falls within the target width range;
[0285] When the level width of the current level falls within the target width range, determining the level width of the current level as digital data corresponding to the current level;
[0286] The data code corresponding to the digital data corresponding to the current level is searched from the digital data and data codes having a corresponding relationship to obtain the hard disk log data.
[0287] Optionally, after detecting whether the level width of the current level falls within the target width range, the method further includes:
[0288] In the case that the level width of the current level does not fall within the target width range, the level width of the target level is discarded.
[0289] Optionally, demodulating the first signal to obtain hard disk log data includes:
[0290] The level width of the level belonging to the target type in the first signal is measured to obtain corresponding digital data, and the digital data is parsed into hard disk log data, wherein the target type is a level type in the first signal that is allowed to carry hard disk log data.
[0291] Optionally, before measuring the level width of the level belonging to the target type in the first signal to obtain corresponding digital data and parsing the digital data into hard disk log data, the method further includes:
[0292] determining a hard disk status according to a level in the first signal;
[0293] Determine the target type based on the hard disk status.
[0294] Optionally, determining the hard disk status according to the level of the first signal includes:
[0295] detecting a level width of an inverted level signal in the first signal, wherein the hard disk status signal is a constant level signal for indicating that the hard disk is in an idle state, and the inverted level signal is a level in a direction opposite to that of the constant level signal;
[0296] The hard disk status is determined based on the level width of the inverted level signal.
[0297] Optionally, determine the target type based on the hard disk status, including:
[0298] When the hard disk state is an idle state, the target type is determined to be a level type in the same direction as the constant level signal.
[0299] Optionally, determine the target type based on the hard disk status, including:
[0300] When the hard disk state is active, the target type is determined to be a high level type and a low level type.
[0301] To solve the above technical problems, the present application also provides a hard disk monitoring method, which is applied to a hard disk and includes:
[0302] A first signal is obtained by modulating the hard disk status signal corresponding to the hard disk status pin and the hard disk log data;
[0303] The first signal is sent to the baseboard management controller through the hard disk status pin, so that the baseboard management controller demodulates the first signal to obtain hard disk log data and then performs monitoring of the hard disk according to the hard disk log data.
[0304] To solve the above technical problems, the present application also provides a hard disk monitoring device, comprising:
[0305] a memory configured to store a computer program;
[0306] The processor is configured to execute a computer program, and when the computer program is executed by the processor, the steps of any one of the hard disk monitoring methods described above are implemented.
[0307] To solve the above technical problems, the present application also provides a computer non-volatile readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above hard disk monitoring methods are implemented.
[0308] The hard disk monitoring system provided in the present application has the beneficial effect of realizing out-of-band monitoring of the hard disk by connecting the baseboard management controller with the hard disk status pin of the hard disk, and adopting the method of directly outputting the hard disk log data to the baseboard management controller through the hard disk status pin of the hard disk, thereby solving the problem in the traditional hard disk out-of-band monitoring scheme that the out-of-band management system has no authority to access the hard disk data, making it difficult to realize out-of-band monitoring of the hard disk, thereby realizing out-of-band monitoring of more hard disks; and the hard disk modulates the hard disk status signal corresponding to the original function of the hard disk log pin and adds the hard disk log data to obtain a first signal and outputs the first signal through the hard disk log pin, and the baseboard management controller demodulates the first signal to obtain the hard disk log data, so as to utilize the original control pin of the hard disk to simultaneously output the hard disk log data to the baseboard management controller, reducing the difficulty of out-of-band monitoring of the hard disk without affecting the original function of the hard disk, thereby increasing the range of hard disks that can be monitored in the device, helping to realize out-of-band monitoring of all hard disks in the device, and facilitating operation and maintenance personnel to grasp the status data of all hard disks, further ensuring the security of device services.
[0309] The present application also provides a baseboard management controller, device, equipment and non-volatile readable storage medium, which have the above-mentioned beneficial effects and are not described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS
[0310] In order to more clearly illustrate the embodiments of the present application or the technical solutions of the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0311] FIG1 is a schematic diagram of the structure of a hard disk in-band monitoring system;
[0312] FIG2 is a schematic diagram of the structure of a hard disk out-of-band monitoring system;
[0313] FIG3 is a schematic structural diagram of a first hard disk monitoring system provided in an embodiment of the present application;
[0314] FIG4 is a schematic structural diagram of a second hard disk monitoring system provided in an embodiment of the present application;
[0315] FIG5 is a schematic structural diagram of a third hard disk monitoring system provided in an embodiment of the present application;
[0316] FIG6 is a circuit diagram of a demodulation module provided in an embodiment of the present application;
[0317] FIG7 is a circuit diagram of an amplifying driving circuit for a hard disk status indicator light according to an embodiment of the present application;
[0318] FIG8 is a schematic diagram of a square wave signal modulation method provided in an embodiment of the present application;
[0319] FIG9 is a schematic diagram of a modulation method for a constant high-level signal provided in an embodiment of the present application;
[0320] FIG10 is a flowchart of a first hard disk monitoring method provided in an embodiment of the present application;
[0321] FIG11 is a flow chart of a second hard disk monitoring method provided in an embodiment of the present application;
[0322] FIG12 is a flow chart of a third hard disk monitoring method provided in an embodiment of the present application;
[0323] FIG13 is a schematic structural diagram of a hard disk monitoring device provided in an embodiment of the present application;
[0324] FIG14 is a schematic diagram of a hard disk modulation process according to an embodiment of the present application;
[0325] FIG15 is a first schematic diagram of a process of switching a hard disk state according to an embodiment of the present application;
[0326] FIG16 is a second schematic diagram of a process of switching a hard disk state according to an embodiment of the present application;
[0327] FIG17 is a third schematic diagram of a process of switching a hard disk state according to an embodiment of the present application;
[0328] FIG18 is a fourth schematic diagram of a process of switching a hard disk state according to an embodiment of the present application;
[0329] The reference numerals are as follows: 101 is a baseboard management controller chip; 102 is a complex programmable logic device. DETAILED DESCRIPTION
[0330] The core of this application is to provide a hard disk monitoring system, method, device, non-volatile readable storage medium and baseboard management controller, which are used to increase the range of hard disks that can be monitored in the out-of-band monitoring of hard disks in the device.
[0331] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0332] FIG1 is a schematic diagram of the structure of a hard disk in-band monitoring system; FIG2 is a schematic diagram of the structure of a hard disk out-of-band monitoring system.
[0333] To facilitate understanding, the nouns and hardware framework involved in the embodiments of the present application are first introduced.
[0334] According to the network management method, the current equipment operation monitoring solutions are mainly divided into in-band management solutions and out-of-band management solutions.
[0335] In-band management allows network management data and service data to be transmitted over the same link. By logging into the device's operating system and accessing the device's user data, in-band management data can be obtained from the monitored device. As shown in Figure 1, in-band management is the process of obtaining monitoring data from monitored components through the central processing unit (CPU) running the operating system. For example, in an in-band monitoring solution for a hard drive, the CPU communicates with the hard drive, allowing it to access not only the user data stored there but also the hard drive log data recorded during operation. Users can then view this log data by logging into the operating system.
[0336] Out-of-band management involves managing the network through a dedicated network management channel, separating network management data from business data. This separate channel transmits only management data, improving network management efficiency and reliability while also enhancing the security of network management data.
[0337] Because in-band monitoring cannot meet maintenance requirements, after server deployment, out-of-band management and monitoring capabilities are provided through a baseboard management controller (BMC). A BMC is a dedicated service processor that uses sensors to monitor the status of a computer, network server, or other hardware device and communicates with the device's system administrator via independent connections. In practice, the BMC is typically installed on the motherboard or main circuit board of the monitored device. The BMC is configured with sensors to measure internal physical variables such as temperature, humidity, power supply voltage, fan speed, communication parameters, and operating system (OS) functions. If any of these variables exceeds specified limits, the BMC notifies the system administrator. The BMC also provides web services, including network communication capabilities and a webpage displaying a monitoring interface. Maintenance personnel can access BMC monitoring data by connecting to the BMC of the monitored device via a network cable at the facility site or by connecting to the BMCs of multiple monitored devices via a network in a data center.
[0338] Because the BMC chip 101 in a BMC has limited performance and pin count, as the number of components and items requiring monitoring increases, a complex programmable logic device (CPLD) 102 (CPLD) is often included in the BMC to offload performance pressure from the BMC chip 101 and provide more pins for connecting sensors or monitored components. The CPLD 102 primarily consists of three components: logic blocks, programmable interconnect channels, and input / output (I / O) blocks. A logic block in a CPLD 102 typically includes 4 to 20 macrocells, each of which typically consists of a product term array, a product term allocation, and programmable registers. Each macrocell can be configured in a variety of ways, and macrocells can be cascaded, enabling the implementation of complex combinational and sequential logic functions. CPLDs with higher integration densities often also include embedded array blocks with on-chip random access memory (RAM) / read-only memory (ROM). Programmable interconnect channels primarily provide the interconnect network between logic blocks, macrocells, and input / output pins. Input / output blocks (I / O blocks) provide the interface between internal logic and the device's I / O pins.
[0339] As an important component of the server, the hard disk is an important target for out-of-band monitoring and management. According to the type of communication interface, it is mainly divided into Serial Attached SCSI (SAS) / Serial Advanced Technology Attachment (SATA) interface hard disks and Non-Volatile Memory Host Controller Interface Specification (NVMHCIS or NVM Express, NVMe) interface hard disks. Among them, the SAS interface is compatible with the SATA interface. According to the type of non-volatile readable storage medium, the hard disk is mainly divided into mechanical hard disk (HDD) and solid state drive (SSD). Among them, mechanical hard disks mainly have SAS interface or SATA interface. Solid state drives include SAS interface, SATA interface and NVMe interface hard disks.
[0340] As shown in Figures 1 and 2, the server uses the hard drive by connecting it to the hard drive slot on the hard drive backplane. The hard drive interface typically uses a gold finger structure, where the pins mate with the slots on the hard drive, allowing connections to server-side components (e.g., data pins connect to the CPU) via the circuitry on the hard drive backplane.
[0341] In actual connections, some hard drives are plugged directly into the drive slots on the hard drive backplane, while others are connected to the backplane via a hard drive expander card. Types of hard drive expanders include RAID (Redundant Arrays of Independent Disks) cards, SAS (Serial Small Computer System Interface) expander cards, and SATA (Serial Advanced Technology Attachment) expander cards. Hard drives that plug directly into the drive slots, for example, connect to the CPU via an Advanced Host Controller Interface (AHCI) controller.
[0342] As shown in Figure 1, the central processing unit (CPU) accesses the hard drive via a high-speed serial computer expansion bus (Peripheral Component Interconnect Express, PCI-Express, PCIe). Because hard drives with SAS or SATA interfaces cannot be directly connected to the high-speed serial computer expansion bus, a hard drive expansion card is required to perform signal protocol conversion. The CPU can also obtain or control hard drive status information by connecting to the hard drive backplane via a serial general-purpose input / output (sGPIO) line. In other words, the CPU can obtain hard drive log data by connecting to the hard drive expansion card via the high-speed serial computer expansion bus, or by obtaining hard drive log data through the advanced host controller interface, thereby achieving in-band monitoring of the hard drive.
[0343] As shown in Figure 2, if the baseboard management controller chip 101 wants to obtain hard disk log data, then for the hard disk connected to the hard disk expansion card, the hard disk expansion card can be accessed through the integrated circuit bus (Inter-Integrated Circuit, IIC or I2C), the baseboard management controller chip 101 runs the monitoring software to send a transparent transmission command to the hard disk expansion card, the hard disk expansion card can forward the transparent transmission command to the hard disk, and the hard disk responds to the transparent transmission command and sends the corresponding hard disk log data to the hard disk expansion card, which is forwarded to the baseboard management controller by the hard disk expansion card. In addition, the NVMe interface hard disk can be directly connected to the central processing unit through a high-speed serial computer expansion bus, and the high-speed serial computer expansion bus between the hard disk and the central processing unit can provide an integrated circuit bus to the baseboard management controller to realize the function of forwarding commands and hard disk log data for the baseboard management controller as the hard disk expansion card, so that the out-of-band monitoring of the hard disk can be realized.
[0344] It can be seen that in the current server monitoring architecture, the business data of the equipment cannot be displayed to the outside world for confidentiality reasons. That is, the operation and maintenance personnel do not have the authority to access the in-band data to obtain the hard disk log data that can be read by the central processing unit. The baseboard management controller configured to implement out-of-band monitoring is also unable to directly access the hard disk data, resulting in the limitation of the out-of-band monitoring function of the hard disk. It makes it impossible for the out-of-band monitoring party to obtain the operating status of the hard disk in a timely and accurate manner, thereby threatening the reliability of the hard disk storage.
[0345] Since there is no data path between the baseboard management controller and the hard disk without the integrated circuit bus interface, out-of-band monitoring of the hard disk can only be achieved with the help of a hard disk expansion card that supports receiving transparent commands through the integrated circuit bus interface or a high-speed serial computer expansion bus that provides an integrated circuit bus interface. For hard disks that do not meet this condition, such as hard disks under the advanced host controller interface controller, out-of-band monitoring cannot be achieved.
[0346] Figure 3 is a structural diagram of the first hard disk monitoring system provided in an embodiment of the present application; Figure 4 is a structural diagram of the second hard disk monitoring system provided in an embodiment of the present application; Figure 5 is a structural diagram of the third hard disk monitoring system provided in an embodiment of the present application.
[0347] Therefore, it is necessary to find a hard disk out-of-band monitoring solution that can adapt to more hard disk connection modes. As shown in FIG3 , an embodiment of the present application provides a hard disk monitoring system, including a baseboard management controller and a hard disk.
[0348] The pins of the baseboard management controller are connected to the hard disk status pins of the hard disk;
[0349] The hard disk is configured to modulate the hard disk log data and the hard disk status signal corresponding to the hard disk status pin to obtain a first signal, and output the first signal through the hard disk status pin;
[0350] The baseboard management controller is configured to demodulate the first signal to obtain hard disk log data, so as to monitor the hard disk according to the hard disk log data.
[0351] It should be noted that in the embodiment of the present application, the baseboard management controller may only include the baseboard management controller chip 101, or it may be a system including the baseboard management controller chip 101 and the complex programmable logic device 102. The complex programmable logic device 102 may be a complex programmable logic device 102 only provided on the hard disk backplane or a complex programmable logic device 102 provided on the server motherboard.
[0352] In some optional implementations of the embodiments of the present application, the complex programmable logic device 102 in the baseboard management controller is connected to the hard disk status pin of the hard disk, and the input / output (I / O) pin of the complex programmable logic device 102 can be connected to the hard disk status pin of the hard disk, and the complex programmable logic device 102 is also connected to the baseboard management controller chip 101 through an integrated circuit bus.
[0353] In some optional implementations of the embodiments of the present application, the baseboard management controller chip 101 in the baseboard management controller is connected to the hard disk status pin of the hard disk, and the general-purpose input / output (GPIO) pin of the baseboard management controller chip 101 can be connected to the hard disk status pin of the hard disk. The baseboard management controller chip 101 can also be connected to other components through an integrated circuit bus.
[0354] Hard drive pins are primarily categorized into three types: data pins, power pins, and drive status pins. The data pins are connected to the in-band system, while the power pins are configured to connect to power and ground signals. Therefore, the baseboard management controller can only directly access the drive status pins.
[0355] The hard disk status pins of the hard disk mainly include the hard disk status indication pin, the hard disk production debugging pin and the hard disk idle pin.
[0356] Among them, the hard disk status indication pin includes a hard disk in-place status indication pin, a hard disk read / write status indication pin, etc. The hard disk status indication pin is a pin of the hard disk configured to output a hard disk status indication signal. For example, the hard disk in-place status indication pin is configured to output a hard disk in-place status signal, and the hard disk read / write status indication pin is configured to output a hard disk read / write status signal. When the hard disk is connected to the hard disk backplane, there are two main ways to connect the hard disk status indication pin. One is to connect to the baseboard management controller to inform the baseboard management controller of the corresponding hard disk status data, and the other is to connect to the control circuit on the hard disk backplane to control the status of the corresponding controlled component so that the user can be informed of the corresponding hard disk status. For example, a hard disk status indicator light is provided on the hard disk backplane to indicate the operating status of the hard disk. For example, when the hard drive is in the read / write state, the hard drive read / write status indicator pin can be controlled to output a square wave signal to the amplifying drive circuit of the hard drive read / write status indicator to control the hard drive read / write status indicator to light up. When the hard drive is not in the read / write state (idle state), the hard drive read / write status indicator pin can be controlled to output a constant level signal (such as a constant high level signal) to turn off the hard drive read / write status indicator to indicate that it is in the idle state. This allows the user to determine whether the hard drive is in the read / write state by observing the on / off status of the hard drive read / write status indicator. The same principle applies to the hard drive status display based on the hard drive in-place status indicator pin. Alternatively, the hard drive can also output two different constant level signals (one high and one low) through these hard drive status indicator pins to indicate different states. These signals can be input to the baseboard management controller to trigger corresponding recording, processing, or control.
[0357] The production debug pins of hard drives are mainly the pins (debug pins) next to the SAS or SATA interface of hard drives. These pins are usually used during the production debug phase of the hard drive. In actual use of the hard drive, the production debug pins can be configured to output boot information during the hard drive initialization phase.
[0358] NVMe hard drives, in addition to the aforementioned drive status indicator pins, also include a hard drive idle pin. Currently, NVMe hard drives primarily use three connector types: M.2, U.2, and CEM. The M.2 NVMe interface uses different key types for connecting different devices, with Key B and Key M being used for connecting solid-state drives. When an M.2 NVMe interface is connected to a SATA solid-state drive, the definition of its P10 pin is the same as that of P11 on SAS or SATA interfaces, both serving as the drive's read / write status indicator. When an M.2 NVMe interface is connected to an NVMe hard drive, its P10 pin is defined as an indicator light control pin. The U.2 NVMe interface is fully compatible with SAS and SATA interfaces, and its P11 pin also serves as the drive's read / write status indicator. Pin P32 on the A side of the CEM NVMe interface is a reserved pin and serves as a drive status pin in addition to the drive's data pins. Multiple reserved pins exist on x8 (eight-lane) interfaces and above.
[0359] The hard drive status pins are not configured as data output pins, so there is no risk of leaking user data stored in the hard drive. Currently, after the hard drive is inserted into the hard drive backplane, these hard drive status pins are directly connected to the baseboard management controller or have permission to connect to the baseboard management controller.
[0360] In the hard disk monitoring system provided in the embodiment of the present application, the hard disk status pin of the hard disk used may include at least one of a hard disk status indication pin, a hard disk production debugging pin, and a hard disk idle pin.
[0361] In an embodiment of the present application, if hard disk status indication pins such as a hard disk in-place status indication pin and a hard disk read / write status indication pin are used, since these hard disk status pins are usually already connected to the general-purpose input / output (GPIO) pins of the baseboard management controller chip 101 in the baseboard management controller or the input / output (I / O) pins of the complex programmable logic device 102, the hardware architecture can be directly adopted without making changes to the hardware architecture of the server, which is simple and convenient to implement.
[0362] Currently, the hard drive production debug pins on devices are usually left floating, and typically include four pins. If the embodiments of the present application use the hard drive production debug pins as the hard drive status pins for outputting hard drive log data, a connector with a corresponding number of pins can be used to connect the hard drive production debug pins to the GPIO pins of the baseboard management controller chip 101 or the I / O pins of the complex programmable logic device 102.
[0363] Since the hard disk idle pin is usually only available in the interface of NVMe interface hard disks, high-speed signals cannot be left floating. Currently, the hard disk idle pin in the NVMe interface is grounded through the resistor and capacitor circuit on the hard disk backplane after the hard disk is connected to the hard disk backplane. If the embodiment of the present application uses the hard disk idle pin as the hard disk status pin for the hard disk to output hard disk log data, the connection relationship between the hard disk idle pin and the hard disk backplane is changed to connect to the GPIO pin of the baseboard management controller chip 101 or the I / O pin of the complex programmable logic device 102.
[0364] In some optional implementations of the present application embodiment, for serial connection small computer system interface or serial advanced technology attachment interface hard disk (hard disk of SAS or SATA interface), as shown in Figure 4, the hard disk of SAS or SATA interface can be connected to the hard disk expansion card, or it can be directly connected to the hard disk backplane. In the in-band system, the central processing unit realizes data interaction with the hard disk by the mode of accessing the hard disk expansion card or directly accessing the data pin of the hard disk of SAS or SATA interface through the high-speed serial computer expansion bus. In the out-of-band system, if the hard disk expansion card has the integrated circuit bus connected to the baseboard management controller chip 101, the baseboard management controller chip 101 can access the hard disk expansion card through the integrated circuit bus, and forward commands or hard disk log data to the hard disk through the hard disk expansion card. In addition, in the baseboard management controller, the baseboard management controller chip 101 can also be connected to the hard disk status pin of the hard disk by the complex programmable logic device 102 after the complex programmable logic device 102 is connected by the integrated circuit bus. Or, the baseboard management controller chip 101 can also be directly connected to the hard disk status pin of the hard disk.
[0365] Furthermore, the baseboard management controller chip 101 can also be connected to an electrically erasable programmable read-only memory (EEPROM) and sensors via an integrated circuit bus. The EEPROM is configured to store server component firmware or register values, and the sensors are located on the server backplane or mainboard and are configured to collect physical status data such as temperature and wind speed of the server components.
[0366] When the baseboard management controller chip 101 connects multiple components via an integrated circuit bus, the baseboard management controller chip 101 can access the corresponding component by using the component address. For the same component, the baseboard management controller chip 101 can also access the addresses of different registers of the component. For example, the baseboard management controller chip 101 can control the complex programmable logic device 102 to update its firmware by accessing the firmware update address of the complex programmable logic device 102.
[0367] In some optional implementations of the present application embodiment, for non-volatile memory host controller interface hard disk (NVMe interface hard disk), as shown in Figure 5, NVMe interface hard disk can also be connected to a hard disk expansion card or directly connected to a hard disk backplane. In an in-band system, the central processing unit uses a high-speed serial computer expansion bus protocol to interact with the NVMe interface hard disk to transmit data (transmission instructions, acquisition of hard disk data, etc.) through a switch (switch). The central processing unit can also use the virtual pin port (Virtual Pin Port, VPP) of NVMe to connect multiple hard disk backplanes through a multi-way bidirectional conversion switch (PCA9546 can be used), and the hard disk backplane uses a general-purpose input / output port (General-purpose input / output, GPIO) to obtain or control hard disk status information with the NVMe interface hard disk, such as controlling hard disk locator light and fault light. The connection mode of the baseboard management controller and the NVMe interface hard disk is the same as that of the hard disk of SAS or SATA interface. Unlike hard drives with SAS or SATA interfaces, the baseboard management controller chip 101 can be connected to the integrated circuit bus interface of the NVMe interface hard drive through an integrated circuit bus. When one integrated circuit bus of the baseboard management controller chip 101 is connected to multiple NVMe interface hard drives, a multi-way bidirectional conversion switch can be set to select the NVMe interface hard drive connected to the baseboard management controller chip 101, thereby realizing the interaction between the baseboard management controller chip 101 and the NVMe interface hard drive through the integrated circuit bus.
[0368] Based on any one of the implementations shown in Figures 3, 4, and 5, in some optional implementations of the embodiments of the present application, seven signals are designed between the baseboard management controller and the hard disk, including: hard disk reset signal, hard disk in-place signal, hard disk type signal, hard disk read and write status signal, hard disk fault indicator light control signal, hard disk read and write status indicator light control signal, and hard disk in-place status indicator light control signal.
[0369] The hard disk reset signal (RST_N) is a signal sent by the baseboard management controller to the hard disk for resetting the hard disk register. When a hard disk failure is detected, the baseboard management controller can reset the hard disk by sending the hard disk reset signal to the hard disk.
[0370] The hard disk presence signal (PRSNT_N) is a signal indicating whether a hard disk is connected to the hard disk slot. It can be designed as a low-level active signal. When the signal is low, it indicates that the hard disk slot is not connected to a hard disk. When the signal is high, it indicates that the hard disk slot is connected to a hard disk.
[0371] The hard disk type signal (IFDET_N) indicates the type of hard disk connected to the hard disk slot. It can be designed to be valid at a low level. When the signal is low, it indicates that an NVMe interface hard disk is connected. When the signal is high, it indicates that a SAS or SATA interface hard disk is connected.
[0372] The hard disk read / write status signal (REY_N) is a signal sent by the hard disk to the baseboard management controller to convey whether the hard disk outputs the read / write status (active status) or the non-read / write status (idle status).
[0373] The hard disk fault indicator light control signal (LED_ERR) is a signal used to light up the hard disk fault indicator light when a hard disk fails. The baseboard management controller can use this signal to control the hard disk fault indicator light up after detecting a hard disk failure.
[0374] The hard disk read / write status indicator light control signal (LED_ACT) is a signal used to control the hard disk read / write status indicator light. The hard disk status pin of the hard disk can output a square wave signal as the hard disk read / write status indicator light control signal to control the hard disk read / write status indicator light to light up, and the hard disk status pin of the hard disk can output a constant level signal to control the hard disk read / write status indicator light to go out; or the hard disk status pin of the hard disk can output different hard disk status signals to inform the baseboard management controller of the hard disk read / write status signal, and then the baseboard management controller outputs the hard disk read / write status indicator light control signal to control the hard disk read / write status indicator light up or go out.
[0375] The hard disk in-place status indicator light control signal (LED_LOC) is a signal used to control the hard disk in-place status indicator light. The hard disk status pin of the hard disk can output a square wave signal as the hard disk read / write status indicator light control signal to control the hard disk in-place status indicator light to light up, and the hard disk status pin of the hard disk can output a constant level signal to control the hard disk in-place status indicator light to go out; or the hard disk status pin of the hard disk can output different hard disk status signals to inform the baseboard management controller of the hard disk in-place status signal, and then the baseboard management controller outputs the hard disk in-place status indicator light control signal to control the hard disk in-place status indicator light up or off.
[0376] In some optional implementations of the embodiments of the present application, by deploying a packaging method (writing hard disk log data into data packets) and a modulation (converting digital signals into analog signals) method for hard disk log data on the hard disk, and deploying a demodulation (converting analog signals into digital signals) and parsing (parsing data packets to obtain hard disk log data) method on the baseboard management controller, the hard disk can directly output hard disk log data to the baseboard management controller.
[0377] Using the hard disk monitoring system provided in the embodiment of the present application, the hard disk log data can include a complete hard disk log, that is, a log formed by the hard disk controller of the hard disk recording its own operating status data (temperature, number of bad sectors, cumulative number of errors, etc.) on time; the hard disk log data can also be partial hard disk monitoring data, that is, the hard disk controller of the hard disk can output part of the pre-agreed or baseboard management controller specified type of hard disk monitoring data through the hard disk status pin.
[0378] It can be understood that the rate at which the hard disk outputs hard disk log data through the hard disk status pin is different depending on the type of hard disk status pin selected, the way in which the hard disk status pin outputs the hard disk status signal, and the modulation method when the hard disk status pin is used to output hard disk log data. To ensure the real-time nature of the hard disk log data, the type, data volume, and output frequency of the output hard disk log data can be determined based on the rate at which the hard disk affected by the implementation scheme outputs hard disk log data through the hard disk status pin. For example, the hard disk can be set to output complete hard disk log data once every fixed period, and when a certain hard disk monitoring data is abnormal, the abnormal monitoring data will be sent outside the fixed sending period.
[0379] In out-of-band monitoring, the baseboard management controller provides network services for operation and maintenance equipment to access the baseboard management controller of the monitored device to obtain hard disk log data, and provides a web page to display the monitoring page. In the embodiment provided by the present application, after obtaining the hard disk log data provided by the hard disk, the baseboard management controller can read the monitoring data items from the hard disk log data according to the pre-deployed monitoring list, and monitor the specific monitoring data items according to the value of each monitoring data item and its corresponding allowable range in the monitoring list. The monitoring data items may include temperature, number of bad sectors, cumulative number of errors, etc. When there are monitoring data items that exceed the allowable range, the operation and maintenance commands recorded in the monitoring list are executed, such as generating a fault log, sending an alarm message to the system administrator, controlling the fan to cool the hard disk, etc.
[0380] The baseboard management controller can also integrate sensors on the hard drive backplane to collect external hard drive status information, thereby enabling comprehensive analysis of the hard drive's operating status in conjunction with the hard drive's log data. For example, if the baseboard management controller detects an abnormal hard drive temperature using an external temperature sensor, it can verify the normal operation of the hard drive's temperature self-test function by combining temperature monitoring items in the hard drive log data at that time. It can also diagnose the cause of the abnormal hard drive temperature by combining other monitoring data items in the hard drive log data at that time.
[0381] After the baseboard management controller completes the analysis of the hard disk log data, it can also be configured to display the obtained hard disk monitoring results in the form of charts on the baseboard management controller web page. Operation and maintenance personnel can intuitively view the hard disk monitoring results by logging into the baseboard management controller web page.
[0382] As an optional implementation, the embodiment of the present application describes a method for transmitting hard disk log data.
[0383] In some optional implementations of the embodiments of the present application, the hard disk modulates the hard disk log data and the hard disk status signal corresponding to the hard disk status pin to obtain the first signal, which may include:
[0384] The hard disk generates a hard disk data packet from the hard disk log data. The hard disk data packet includes data bits and check bits.
[0385] The hard disk converts the hard disk data packet from a digital signal into an analog signal to obtain modulated hard disk log data, and modulates the modulated hard disk log data with the hard disk status signal to obtain a first signal.
[0386] Accordingly, the baseboard management controller demodulates the first signal to obtain hard disk log data, including:
[0387] The baseboard management controller identifies the modulated hard disk log data from the first signal, and converts the modulated hard disk log data from an analog signal to a digital signal to obtain a hard disk data packet;
[0388] After the baseboard management controller verifies the hard disk data packet according to the check bit in the hard disk data packet, it reads the data bit of the hard disk data packet and calls the hard disk log parsing configuration information corresponding to the hard disk to parse the data bit to obtain the hard disk log data.
[0389] The baseboard management controller checks the hard disk data packet according to the check bit in the hard disk data packet, which may include:
[0390] The baseboard management controller reads the data bits of the hard disk data packet and calculates and obtains the first verification information;
[0391] The baseboard management controller reads the check bit of the hard disk data packet to obtain second check information;
[0392] If the first verification information and the second verification information are consistent, the baseboard management controller determines that the hard disk data packet passes the verification;
[0393] If the first verification information and the second verification information are inconsistent, the baseboard management controller determines that the hard disk data packet fails the verification.
[0394] When the baseboard management controller determines that the hard disk data packet fails the verification, the hard disk data packet may be discarded, and information on the discard of the hard disk data packet may be recorded in a local log.
[0395] To avoid information loss, it's often necessary to split drive log data into multiple packets. This means generating multiple drive data packets from one drive. To distinguish between different data packets sent from the same drive, you can set a sequence number for each data packet within the drive log data, or specify the type of drive monitoring data that each data packet carries.
[0396] In some optional implementations of the embodiments of the present application, a hard disk data packet can include nine bits of data, with the first bit being a start flag, the second bit being a data packet identifier, the third to sixth bits being data bits, and the seventh to ninth bits being check bits. The data packet identifier can be the type of hard disk monitoring data carried by the hard disk data packet or the sequence number of the hard disk data packet within a set of hard disk log data. Both the data bits and the check bits can be hexadecimal digits.
[0397] The steps for generating the check digit may include:
[0398] After setting each data bit to zero according to the data bit unit, the A and B values are calculated using the following formula:
[0399] A=A+DC;
[0400] B=B+A;
[0401] A=A+N3;
[0402] B=B+A;
[0403] A=A+N2;
[0404] B=B+A;
[0405] A=A+N1;
[0406] B=B+A;
[0407] A=A+N0;
[0408] B=B+A;
[0409] The checksum is calculated using checksum = (B<<4) + A, where "<<4" indicates a right shift of four bits. A 12-bit checksum is thus obtained.
[0410] Then the first verification information and the second verification information can both be calculated in the above manner.
[0411] The way in which the baseboard management controller parses the hard disk data packet to obtain the hard disk log data corresponds to the way in which the hard disk generates the hard disk data packet from the hard disk log data.
[0412] For example, when the data carried by the hard disk data packet is a portion of data obtained by evenly splitting the hard disk log data, the baseboard management controller calls the hard disk log parsing configuration information corresponding to the hard disk to parse the data bits to obtain the hard disk log data, which may include: the baseboard management controller calls the data bit-text conversion protocol, parses the data bits into hard disk log text, and obtains the hard disk log data.
[0413] When the data carried by the hard disk data packet is the set hard disk monitoring data type, the baseboard management controller calls the hard disk log parsing configuration information corresponding to the hard disk to parse the data bits to obtain the hard disk log data, which may include: after the baseboard management controller identifies the hard disk monitoring data type, it calls the data conversion table corresponding to the hard disk monitoring data type to obtain the value of the hard disk monitoring data of the hard disk monitoring data type.
[0414] As an optional implementation, the embodiment of the present application describes a method for modulating hard disk log data.
[0415] As described in the above embodiment, the hard disk sends hard disk log data to the baseboard management controller through the hard disk status pin, and the hard disk log data needs to be modulated and demodulated.
[0416] According to the digital system adopted by the hard disk data packet, different numbers can be set to correspond to different level widths, or different numbers can be set to correspond to different pulse amplitudes.
[0417] If the digital system is hexadecimal, 16 different level widths can be set, corresponding to the sixteen hexadecimal digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, and F. For example, if a hard drive status pin outputs a square wave pulse with a width of 50 milliseconds to illuminate the hard drive status indicator, the level width can be set to 42 milliseconds to 49 milliseconds and 51 milliseconds to 58 milliseconds, with each millisecond corresponding to a hexadecimal digit. For a total of 16 level widths, corresponding to the sixteen hexadecimal digits, to distinguish the actual hard drive status signal, the level width corresponding to the hard drive log data can be set to NULL when the level width is 50 milliseconds. A level less than or equal to 41 milliseconds or greater than or equal to 59 milliseconds is considered an error signal and the hard drive data packet is discarded. The pulse width recognition error can be set to 0.25 milliseconds; for example, a measured value of 42.25 milliseconds would be counted as 42 milliseconds.
[0418] The same is true for pulse amplitude modulation of hard disk log data.
[0419] In some optional implementations of the embodiments of the present application, the first signal may be a signal modulated by a signal having a corresponding level width of the hard disk log data and a hard disk status signal after the hard disk outputs the hard disk log data. The signal having a corresponding level width of the hard disk log data may be a signal having a corresponding high level width and / or a signal having a corresponding low level width, and the level width corresponding to the hard disk log data is different from the level width of the hard disk status signal.
[0420] The baseboard management controller demodulating the first signal to obtain the hard disk log data may include: the baseboard management controller measuring the level width of the first signal to obtain corresponding digital data, and parsing the digital data into the hard disk log data.
[0421] In some optional implementations of the embodiments of the present application, the first signal can be configured to simultaneously carry modulated hard disk log data and a hard disk status signal. That is, the hard disk modulates the hard disk log data and the hard disk status signal corresponding to the hard disk status pin to obtain the first signal. This can include: after the hard disk converts the hard disk log data into a signal of a corresponding level width, the hard disk modulates the signal corresponding to the hard disk log data with the hard disk status signal to obtain the first signal. In the embodiments of the present application, for ease of explanation, this method of obtaining the first signal by hard disk modulation is referred to as a simultaneous carrying method.
[0422] Outputting the first signal through the hard disk status pin adopts a simultaneous carrying manner to output the hard disk log data and the hard disk status data, which can not only reduce the impact on the function of the hard disk status signal that is originally output continuously, but also increase the output rate of the hard disk log data.
[0423] In some optional implementations of the embodiments of the present application, the first signal can also be configured to carry the modulated hard disk log data and hard disk status signal in a time-sharing manner. Specifically, the hard disk modulates the hard disk log data and the hard disk status signal corresponding to the hard disk status pin to obtain the first signal. This can also include: after the hard disk converts the hard disk log data into a signal of a corresponding level width, the first signal is inserted into the signal corresponding to the hard disk log data during an inactive signal period when the hard disk status pin does not output the hard disk status signal. For ease of explanation, this method of obtaining the first signal by hard disk modulation is referred to as a time-sharing method.
[0424] Outputting the first signal through the hard disk status pin adopts a time-sharing method to output the hard disk log data and hard disk status data, which can be applicable to the hard disk status pin that does not originally output the hard disk status signal continuously, or the hard disk status pin that does not need to output the hard disk status signal at all times. For example, if the hard disk in-place status indication pin is used as the hard disk status pin for outputting the hard disk log data, the hard disk can be set to periodically output the hard disk status signal indicating that the hard disk is in place from the hard disk status pin, and the baseboard management controller can determine whether the hard disk is in place based on the hard disk status signal most recently received. During the time period when the hard disk does not need to output the hard disk status signal through the hard disk status pin, the hard disk log data can be directly modulated to obtain the first signal without mixing it with the hard disk status signal. In this case, the baseboard management controller demodulates the first signal to obtain the hard disk log data, including:
[0425] After demodulating the first signal according to the signal type of the hard disk status signal to obtain the hard disk status data, the baseboard management controller demodulates the signal period of the first signal that does not match the signal type of the hard disk status signal to obtain the hard disk log data;
[0426] Alternatively, the baseboard management controller obtains corresponding digital data by measuring the level width of the first signal, parses the digital data into hard disk log data, and demodulates the signal period where the level width does not correspond to the digital data to obtain hard disk status data.
[0427] It is understood that, regardless of whether the simultaneous or time-sharing method is used, the hard disk controlling the hard disk status pin to output hard disk log data should not affect the original function of the hard disk status pin. Based on this principle, the embodiment of this application describes the modulation and demodulation method of hard disk log data.
[0428] In an embodiment of the present application, the baseboard management controller may also be configured to demodulate the first signal to obtain the hard disk status data based on the signal type of the hard disk status data corresponding to the hard disk status signal. In other words, the baseboard management controller simultaneously identifies the hard disk status data while recognizing the hard disk log data, thereby assisting in realizing the original function of the hard disk status pin.
[0429] As described in the above embodiments of this application, if the hard disk status pin is used as a hard disk status indicator light control pin, and some hard disk status indicator light control pins control the lighting of the corresponding hard disk status indicator light by outputting a square wave signal, then in some optional implementations of the embodiments of this application, the level width of the first signal corresponds to the data bits in the hard disk log data, and the high and low level changes in the first signal correspond to the hard disk status signal.
[0430] In order to modulate a signal incorporating hard disk log data onto the hard disk status signal, which is originally a square wave signal, in some optional implementations of the present application, if the hard disk status signal is a square wave signal, the first signal can be a signal obtained by converting the hard disk log data into a signal of a corresponding level width and then replacing the square wave signal with the signal corresponding to the hard disk log data; wherein the level width corresponding to the hard disk log data is different from the level width of the square wave signal. In other words, by replacing the hard disk status signal, which is originally a square wave signal, with a signal of a corresponding level width obtained by converting the hard disk log data, the first signal is a signal with varying high and low levels, but its high level width and / or low level width corresponds to the hard disk log data, thereby achieving mixing of the hard disk log data with the hard disk status signal.
[0431] In some optional implementations of the embodiments of the present application, if the hard disk status signal is a square wave signal, the first signal can also be a signal obtained by adjusting the level width of the corresponding period in the square wave signal according to the level width corresponding to the hard disk log data after the hard disk converts the hard disk log data into a signal of corresponding level width; wherein the level width corresponding to the hard disk log data is different from the level width of the square wave signal. The square wave signal is a rectangular wave signal with a duty cycle of 50%. In order to distinguish the square wave signal, the level width corresponding to the hard disk log data is set to not be the level width of the square wave signal according to the level width of the square wave signal (such as 50 milliseconds), thereby achieving mixing of the hard disk log data and the hard disk status signal.
[0432] In the case where the signal type of the hard disk status signal includes a square wave signal, the baseboard management controller demodulates the hard disk status data from the signal period of the hard disk log data according to the signal type of the hard disk status signal, which may include: the baseboard management controller demodulates the hard disk status data according to the high and low level changes in the first signal.
[0433] In order to demodulate the hard disk control data corresponding to the original square wave signal from the first signal, the baseboard management controller demodulates the hard disk status data based on the high and low level changes in the first signal, which can include: after the baseboard management controller demodulates and obtains the hard disk log data, it replaces the first signal with a square wave signal to obtain the hard disk status signal; and demodulates the hard disk status data based on the hard disk status signal. In other words, the first signal can be directly replaced with a square wave signal by a replacement method, and the corresponding hard disk status data obtained by demodulation is the hard disk status data corresponding to the hard disk status signal when the hard disk status signal is a square wave signal. For example, if the hard disk read / write status indicator pin outputs a square wave signal to indicate the hard disk control data for lighting the hard disk read / write status indicator, the first signal can be replaced back to a square wave signal after the hard disk control data is identified to light the hard disk read / write status indicator.
[0434] In some optional implementations of the embodiments of the present application, the baseboard management controller demodulates the hard disk status data based on the high and low level changes in the first signal, and can further include: after demodulating the hard disk log data, the baseboard management controller adjusts the pulse width of each cycle of the first signal based on the pulse width of the corresponding square wave signal to obtain the hard disk status signal; and demodulates the hard disk status data based on the hard disk status signal. In other words, the pulse width adjustment method can be used to obtain the pulse width corresponding to 50% of the cycle length of the square wave signal output by the pre-stored hard disk status pin, so that after identifying the hard disk log data, the pulse width of each signal cycle of the first signal is adjusted back to the pulse width corresponding to the original square wave signal, thereby restoring the hard disk status signal, and demodulating the corresponding hard disk status data to obtain the hard disk status data corresponding to the hard disk status signal when the hard disk status signal is a square wave signal, for example, the hard disk read / write status indicator pin outputs a square wave signal to indicate hard disk control data for lighting the hard disk status indicator.
[0435] For a hard disk status signal that is a constant level signal, for example, some hard disk status indicator light control pins control the hard disk status indicator light to turn off when outputting a constant level signal. In some optional implementations of the embodiments of the present application, the level width of the first signal corresponds to the data bits in the hard disk log data, and the constant level signal with a larger proportion in the first signal corresponds to the hard disk status signal.
[0436] In order to modulate a signal incorporating hard disk log data onto a hard disk status signal that is originally a constant-level signal, in some optional embodiments of the present application, the hard disk status signal is a constant-level signal, and the first signal is a signal obtained by replacing the constant-level signal of a corresponding duration with the signal corresponding to the hard disk log data after the hard disk converts the hard disk log data into a signal of a corresponding level width; wherein the proportion of the inverted-level signal of the constant-level signal in each signal cycle of the first signal is less than 50%. Because modulating the hard disk status signal, which is originally a constant-level signal, into the first signal significantly affects the expression of the original constant-level signal, it is necessary to set modulation constraints for the case where the hard disk status signal is a constant-level signal. Without considering using a constant-level signal to control the hard disk status indicator and without considering including other types of hard disk status signals, it is necessary to set a signal obtained by replacing the constant-level signal with the signal corresponding to the hard disk log data, such that the proportion of the inverted-level signal of the hard disk status signal in each signal cycle of the first signal is less than 50%.
[0437] In some optional implementations of the embodiments of the present application, the hard disk status signal is a constant level signal, and the first signal is a signal obtained by the hard disk converting the hard disk log data into a signal of a corresponding level width and generating an inverted signal of the constant level signal according to the signal corresponding to the hard disk log data, and then inserting the inverted signal into the constant level signal; wherein, the proportion of the inverted level signal of the constant level signal in each signal cycle of the first signal is less than 50%. Similarly, if a solution is adopted in which the hard disk log data is modulated into the constant level signal of the hard disk status signal, it is necessary to set the proportion of the inverted level inserted when modulating the hard disk log data into the constant level signal of the hard disk status signal in each signal cycle of the first signal to be less than 50%.
[0438] To demodulate the hard disk control data corresponding to the original constant-level signal from the first signal, the baseboard management controller may demodulate the hard disk status data from the signal period of the demodulated hard disk log data based on the signal type of the hard disk status signal. This may include: the baseboard management controller demodulating the hard disk status data based on the constant-level signal that accounts for a relatively large proportion of the signal period of the first signal. In other words, by setting modulation constraints when modulating the hard disk log data into the hard disk status signal in the form of a constant-level signal, the baseboard management controller can identify the constant-level signal based on the proportion of high and low levels in the first signal.
[0439] In some optional implementations of the embodiments of the present application, the baseboard management controller demodulates the hard disk status data based on the constant-level signal that accounts for a relatively large proportion in the signal cycle of the first signal, which may include: after the baseboard management controller demodulates and obtains the hard disk log data, it replaces the first signal with the constant-level signal that accounts for a relatively large proportion in the signal cycle of the first signal to obtain the hard disk status signal; and demodulates and obtains the hard disk status data based on the hard disk status signal. That is, the entire signal cycle can be replaced to replace each signal cycle of the first signal with a constant-level signal corresponding to a relatively large level, and the corresponding hard disk status data obtained by demodulation is the hard disk status data corresponding to the hard disk status signal when the hard disk status signal is the constant-level signal. For example, the hard disk in-position status indicator pin outputs a constant high-level signal to indicate that the hard disk is in position, and the hard disk in-position status indicator pin receives a constant low-level signal when the hard disk in-position status indicator pin does not output a constant high-level signal to indicate that the hard disk is not in position.
[0440] Alternatively, the baseboard management controller demodulates the hard disk status data based on the constant-level signal that accounts for a relatively large proportion in the signal cycle of the first signal, which may include: after the baseboard management controller demodulates and obtains the hard disk log data, replacing the inverted signal corresponding to the constant-level signal that accounts for a relatively large proportion in the signal cycle of the first signal with the constant-level signal that accounts for a relatively large proportion in the signal cycle of the first signal, to obtain the hard disk status signal; and demodulating the hard disk status data based on the hard disk status signal. In other words, it is also possible to adopt a method of replacing only the inverted-level signal, filling the inverted level modulated and added in each signal cycle of the first signal with the hard disk status signal in the original constant-level signal form, and demodulating to obtain the corresponding hard disk status data is the hard disk status data corresponding to the hard disk status signal when the hard disk status signal is the constant-level signal.
[0441] In some optional implementations of the embodiments of the present application, if the hard disk status signal only includes a constant level signal, different modulation constraints need to be set to distinguish between constant high level signals and constant low level signals. If the hard disk status signal only includes one constant level signal, or the hard disk status signal includes a constant high level signal and a constant low level signal, then the first signal is the signal obtained by modulating the hard disk log data into a signal of corresponding level width based on the signal corresponding to the hard disk log data and the hard disk status signal; if the hard disk status signal is a constant high level signal, then the duty cycle of each cycle of the signal corresponding to the hard disk log data is greater than 50%; if the hard disk status signal is a constant low level signal, then the duty cycle of each cycle of the signal corresponding to the hard disk log data is less than 50%. In other words, if the duty cycle is used as a modulation constraint, it is distinguished whether the hard disk status signal is a constant high level signal or a constant low level signal to modulate the hard disk log data.
[0442] If the baseboard management controller is further configured to identify and obtain hard disk status data from the first signal, then when the signal type of the hard disk status signal includes only one constant level signal, or the signal type of the hard disk status data includes a constant high level signal and a constant low level signal, the baseboard management controller demodulates the hard disk status data from the signal period of the hard disk log data according to the signal type of the hard disk status signal, which may include: the first signal is a signal obtained by modulating the hard disk according to the signal corresponding to the hard disk log data and the hard disk status signal after the hard disk converts the hard disk log data into a signal of corresponding level width; when the hard disk status signal is a square wave signal, the maximum duty cycle in the signal period of the hard disk log data is less than the first duty cycle, and / or the minimum duty cycle in the signal period of the hard disk log data is greater than the second duty cycle; if the constant level signal is a constant high level signal, the first duty cycle is the minimum duty cycle in the first signal corresponding to the constant level signal; if the constant level signal is a constant low level signal, the second duty cycle is the maximum duty cycle in the first signal corresponding to the constant level signal.
[0443] In some optional implementations of the embodiments of the present application, if the hard disk status signal includes a square wave signal and a constant level signal, the first signal is a signal obtained by modulating the hard disk log data into a signal of corresponding level width according to the signal corresponding to the hard disk log data and the hard disk status signal; to distinguish between square wave signals and constant level signals, when the hard disk status signal is a square wave signal, the maximum duty cycle of the first signal is less than the first duty cycle, and / or the minimum duty cycle of the first signal is greater than the second duty cycle; if the constant level signal is a constant high level signal, the first duty cycle is the minimum duty cycle in the first signal corresponding to the constant level signal; if the constant level signal is a constant low level signal, the second duty cycle is the maximum duty cycle in the first signal corresponding to the constant level signal. That is to say, in order to distinguish between square wave signals and constant level signals to identify different types of hard disk status signals and demodulate to obtain different hard disk status data, by setting the duty cycle interval, after the hard disk log data is modulated into the hard disk status signal in the form of a square wave signal, the duty cycle is in a completely different interval from that of the hard disk status signal when the hard disk log data is modulated into the form of a constant level signal, so that the baseboard management controller can identify the hard disk status signal in the form of a square wave signal and the hard disk status signal in the form of a constant level signal while identifying the hard disk log data.
[0444] If the baseboard management controller is further configured to identify and obtain hard disk status data from the first signal, then if the signal type of the hard disk status signal includes a square wave signal and a constant level signal, the baseboard management controller demodulates the hard disk status data from the signal period of the hard disk log data demodulated according to the signal type of the hard disk status signal, including:
[0445] If the constant-level signal is a constant high-level signal, the baseboard management controller, after demodulating and obtaining the hard disk log data, restores a signal period in the first signal having a duty cycle less than the first duty cycle into a square wave signal, and restores a signal period in the first signal having a duty cycle greater than the first duty cycle into a constant high-level signal, thereby obtaining a hard disk status signal;
[0446] If the constant-level signal is a constant low-level signal, the baseboard management controller, after demodulating and obtaining the hard disk log data, restores the signal period of the first signal having a duty cycle greater than the second duty cycle into a square wave signal, and restores the signal period of the first signal having a duty cycle less than the second duty cycle into a constant low-level signal, thereby obtaining the hard disk status signal;
[0447] If the constant-level signal includes a constant high-level signal and a constant low-level signal, then after demodulating and obtaining the hard disk log data, the baseboard management controller restores a signal period in the first signal whose duty cycle is less than the first duty cycle and greater than the second duty cycle into a square wave signal, restores a signal period in the first signal whose duty cycle is greater than the first duty cycle into a constant high-level signal, and restores a signal period in the first signal whose duty cycle is less than the second duty cycle into a constant low-level signal, thereby obtaining a hard disk status signal;
[0448] The hard disk status data is obtained by demodulating the hard disk status signal.
[0449] That is to say, if the baseboard management controller pre-configures the hard disk status pin of the connected hard disk to output two different hard disk status signals, a square wave signal and a constant level signal, the baseboard management controller can identify whether the hard disk status signal is a square wave signal or a constant level signal based on the duty cycle range in the first signal.
[0450] FIG6 is a circuit diagram of a demodulation module provided in an embodiment of the present application.
[0451] As shown in FIG6 , an embodiment of the present application provides a demodulation circuit, including an analysis circuit, a sampling circuit, and a sampling control circuit, wherein the sampling circuit is connected to the analysis circuit and the sampling control circuit respectively;
[0452] a parsing circuit configured to receive a first signal output by a hard disk status pin and parse a high-level signal and a low-level signal in the first signal to obtain a first level width corresponding to the high-level signal and a second level width corresponding to the low-level signal; the first signal includes hard disk log data;
[0453] The sampling control circuit is configured to trigger the sampling circuit to sample the first level width and the second level width according to the first signal, so as to parse the hard disk log data in the first signal according to the sampled first level width and the second level width to realize monitoring of the hard disk.
[0454] In an optional embodiment, the analysis circuit is configured to receive a first signal output by the hard disk status pin and analyze the first signal. Specifically, the high-level signal and the low-level signal are analyzed separately to obtain a first level width corresponding to the high-level signal and a second level width corresponding to the low-level signal. The first signal includes hard disk log data, and this hard disk log data is configured to implement monitoring. In an optional implementation of the embodiment of the present application, the first signal can be a signal modulated by the hard disk based on the hard disk log data and the hard disk status data corresponding to the hard disk status pin, that is, the hard disk status data and the hard disk log data can be transmitted simultaneously through the hard disk status pin.
[0455] The sampling control circuit controls when the sampling circuit samples the first level width and the second level width. Specifically, the sampling control circuit triggers the sampling circuit according to the first signal to ensure that sampling is performed at an appropriate time, thereby facilitating the parsing of the hard disk log data based on the sampled first level width and the second level width.
[0456] The sampling circuit receives the first and second level widths output by the analysis circuit and samples the first and second level widths according to a timing triggered by the sampling control circuit. When the first and second level widths are analog signals, the sampling circuit can be implemented as an analog-to-digital conversion chip.
[0457] The demodulation circuit in the embodiment of the present application can be set as a separate circuit module, which is directly connected to the hard disk status pin of the hard disk to achieve direct acquisition and analysis of the hard disk log data.
[0458] In summary, the demodulation circuit of the present embodiment achieves accurate analysis of hard disk log data through the synergistic effect of the analysis circuit, sampling circuit, and sampling control circuit. Furthermore, this demodulation circuit utilizes the first signal output by the hard disk status pin to acquire and analyze hard disk log data, thereby enabling hard disk monitoring. Furthermore, the hardware circuit has a relatively high processing speed, which can improve the efficiency of analyzing hard disk log data.
[0459] In some optional implementations of the embodiments of the present application, the analysis circuit includes a charging circuit and a discharging circuit, the demodulation circuit further includes a loop control circuit, and the charging circuit is connected to the sampling control circuit, the loop control circuit, and the discharging circuit respectively;
[0460] The charging circuit is configured to charge according to the preset level signal in the first signal when the charging circuit is turned on, thereby obtaining an i-th pulse width;
[0461] The discharge circuit is configured to discharge according to the non-preset level signal in the first signal when the discharge circuit is turned on;
[0462] The sampling control circuit is configured to delay triggering the sampling circuit to sample the i-th pulse width for a first time after the charging circuit is charged;
[0463] a circuit control circuit configured to control the charging circuit to be turned on according to the first signal, and to delay the discharge circuit to be turned on for a second time after the sampling control circuit triggers the sampling circuit to sample the i-th pulse width;
[0464] When the preset level signal is a high level signal, i is one, and when the preset level signal is a low level signal, i is two.
[0465] As an optional embodiment, the analysis circuit may include a charging circuit and a discharging circuit. The charging circuit is configured to charge according to a preset level signal in the first signal to obtain the i-th pulse width; the discharging circuit is configured to discharge according to a non-preset level signal in the first signal; and the circuit control circuit is configured to control the timing of the charging circuit and the discharging circuit being turned on according to the first signal.
[0466] Optionally, when the preset level signal is a high level signal, the charging circuit charges according to the high level signal. After charging is completed, if the signal is converted to a low level signal, under the control of the sampling control circuit, the sampling circuit samples the first level width corresponding to the high level signal obtained by the charging circuit after a first time. Under the control of the circuit control circuit, the discharge circuit is turned on for a second time after the sampling circuit samples the first level width corresponding to the high level signal obtained by the charging circuit, thereby achieving discharge. Optionally, when the preset level signal is a high level signal, the circuit control circuit may detect a rising edge of the first signal, which means a high level signal is detected. At this time, the charging circuit is controlled to be turned on to charge according to the high level signal and obtain the first level width corresponding to the high level signal; when the falling edge of the first signal is detected, which means the high level signal ends and the charging circuit completes charging, the sampling circuit is triggered to sample the first level width, and the discharge circuit is controlled to be turned on for a first time after the sampling circuit is triggered to sample, thereby achieving discharge.
[0467] Similarly, when the preset level signal is a low-level signal, the charging circuit charges according to the low-level signal. After charging is completed, if it is converted to a high-level signal, then under the action of the sampling control circuit, the sampling circuit samples the second level width corresponding to the low-level signal obtained by the charging circuit after the first time. Under the action of the circuit control circuit, the discharge circuit is turned on for a first time after triggering the sampling circuit to sample the second level width, so as to achieve discharge. Optionally, when the preset level signal is a low level signal, the loop control circuit receives the first signal through the first inverter. When the rising edge of the output of the first inverter is detected, it means that the high level signal output by the first inverter is detected, which also means that the first signal is a low level signal. The charging circuit is turned on, and the charging circuit uses the high level signal output by the first inverter to charge, and obtains the second level width corresponding to the low level signal corresponding to the first signal; when the falling edge of the output of the first inverter is detected, it means that the low level signal output by the first inverter is detected, which also means that the first signal is a high level signal, and the charging circuit is fully charged. At this time, the sampling circuit is triggered to sample the second level width, and after the sampling circuit is triggered to sample, the second time is delayed to control the discharge circuit to be turned on, and the discharge circuit uses the low level signal output by the first inverter to discharge.
[0468] After charging is complete, the control circuit delays the initial triggering of the sampling circuit to perform sampling. This ensures that the charging circuit is stable after charging is complete, thereby ensuring the accuracy and stability of data sampling. Specifically, the delayed triggering of the sampling circuit allows sampling to be performed when the signal is stable after charging is complete, avoiding data distortion caused by sampling during periods of signal fluctuation or instability. This allows accurate acquisition of data with the first and second level widths, allowing for accurate analysis of the hard drive log data.
[0469] Among them, after triggering the sampling circuit to perform sampling, the purpose of delaying the second time to control the conduction of the discharge circuit is to give the sampling circuit sufficient sampling time to prevent the parameters corresponding to the charging circuit (such as the voltage value) from being in an unstable state during the sampling process, that is, to ensure the stability of the output end of the charging circuit and prevent the sampling process from being interrupted. Therefore, after the second time, the discharge circuit is controlled to be turned on to ensure that the sampling circuit can effectively sample the first level width or the second level width, and then accurately parse the hard disk log data in the first signal, thereby realizing accurate monitoring of the hard disk, which can improve the performance and stability of the demodulation circuit.
[0470] In some optional implementations of the embodiments of the present application, the first signal is a signal modulated by the hard disk according to the hard disk log data and hard disk status data corresponding to the hard disk status pin, the hard disk status pin is a status indicator pin, and the status indicator pin continuously outputs a first control signal of a first level when the hard disk is in a preset state, and outputs a second control signal to flash the status indicator when the hard disk is in a non-preset state, the preset state being an active state or an idle state; in the preset state, the hard disk inserts a plurality of pulse signals of a second level into the first control signal and divides the first control signal by using the pulse signals to obtain the first signal; in the non-preset state, the hard disk encodes each data bit in the hard disk log data into a level signal of a preset width corresponding to each data bit to obtain the first signal;
[0471] The demodulation circuit further includes: a detection circuit connected to the loop control circuit;
[0472] The detection circuit is configured to detect whether a pulse signal exists in the first signal, and adjust the first time and / or the second time according to the detection result.
[0473] Specifically, when the hard disk status pin is a status indicator pin, and the status indicator pin continuously outputs a first control signal of a first level when the hard disk is in a preset state, and outputs a second control signal to flash the status indicator when the hard disk is in a non-preset state, the hard disk modulates the hard disk status data and the hard disk log signal to obtain the first signal. An optional method is: when the hard disk is in a preset state, by inserting a plurality of second-level pulse signals into the first control signal, the first control signal can be divided by the pulse signal to obtain a plurality of first-level pulse width signals, thereby obtaining the first signal, wherein the hard disk log data includes a plurality of data bits, and each data bit corresponds to a first-level pulse width signal. The parsing circuit identifies the pulse width of the first-level pulse width signal to determine the corresponding data bit, thereby realizing the parsing of the hard disk log data.
[0474] Based on this modulated signal, the demodulation circuit is further provided with a detection circuit, which is connected to the sampling control circuit and the loop control circuit, respectively. The detection circuit is configured to detect whether a pulse signal is present in the first signal and adjust the delay times corresponding to the sampling control circuit and the loop control circuit, respectively, based on the detection result. In other words, the detection circuit is primarily configured to control the loop control circuit to control the conduction of the discharge circuit at different timings based on the encoding method of the first signal output by the current hard disk status pin.
[0475] Specifically, in a preset state, the width of the pulse signal is relatively narrow, so that the sampling control circuit selects a smaller time delay to trigger the sampling circuit for sampling, and the loop control circuit also delays a smaller time to control the discharge loop to conduct, thereby being able to respond to changes in the pulse signal more quickly and complete the processing of the pulse signal as quickly as possible. This can improve the system's sensitivity and real-time performance to the pulse signal, and is conducive to accurately analyzing and resolving the information carried by the pulse signal. In a non-preset state, when there is no pulse signal, the sampling control circuit selects a smaller time delay to trigger the sampling circuit for sampling, and the loop control circuit also delays a smaller time to control the discharge loop to conduct, in order to stabilize the operation of the system and ensure normal data processing flow. Because when no pulse signal is detected, the first signal is a level signal with a larger width relative to the pulse signal, and a longer delay is required to process the normal data flow to prevent premature interruption or interference with data processing. Therefore, selecting a larger time delay can ensure that the system can maintain a stable working state when no pulse signal is detected, avoid unnecessary interference or erroneous operation, maintain smooth data processing, and improve the stability and reliability of the system.
[0476] In addition, the preset state can also be the hard disk in-place state or out-of-place state, and this method can also be used when the first level signal is continuously output in the preset state, and the implementation method is the same, which is not repeated in this application.
[0477] In summary, in the embodiment of the present application, the sampling control circuit and the loop control circuit control the conduction of the charging circuit and the discharging circuit according to the signal of the detection circuit, and after the charging circuit is charged, the sampling control circuit selects a smaller time delay to trigger the sampling circuit for sampling, and the loop control circuit selects a corresponding delay time to control the conduction of the discharging circuit. In this way, the working state of the demodulation circuit can be controlled according to the information in the first signal, thereby realizing the monitoring of the hard disk status and the reliability of parsing the hard disk log data.
[0478] The hard disk modulates the hard disk status data and the hard disk log signal to obtain an optional method of obtaining the first signal: when the hard disk is in a non-preset state, each data bit in the hard disk log data will be encoded into a level signal of a preset width corresponding to each data bit, that is, different information in the hard disk log data is represented by different level signals, thereby obtaining the first signal. Specifically, there are two ways to encode each data bit into a level signal of a preset width: one is to encode each data bit into a pulse width signal with a corresponding duty cycle, that is, each data bit corresponds to the same period, and different data bits correspond to different duty cycles. The parsing circuit can identify the current data bit by determining the duty cycle of each period, thereby implementing the parsing of the hard disk log data; the other is to encode each data bit into a level signal of a preset width, and when the level signals of two adjacent data bits are opposite or the level signals of two adjacent data bits are the same, an opposite level signal of a certain width is inserted between the two adjacent data bits to achieve a spacing between the two data bits. For example, the first data bit is encoded as a high level of a first width, the second data bit is encoded as a low level of a second width, and so on; or the first data bit is encoded as a first width, and the second data bit is encoded as a second width, and both high and low levels are acceptable, and an opposite level signal is inserted between the two data bits to achieve a spacing; then, by identifying the pulse width of each level, the parsing circuit can determine the corresponding data bit, thereby implementing the parsing of the hard disk log data and further implementing the monitoring of the hard disk.
[0479] In some optional implementations of the embodiments of the present application, the detection circuit is configured to control the sampling control circuit to operate in the first mode when it is determined that the first signal contains a pulse signal, and to control the sampling control circuit to operate in the second mode when it is determined that the first signal contains no pulse signal;
[0480] The sampling control circuit is configured to, after the charging circuit is fully charged, delay a first preset time to trigger the sampling circuit to sample the i-th pulse width if operating in a first mode, and delay a second preset time to trigger the sampling circuit to sample the i-th pulse width if operating in a second mode, wherein the first preset time is less than the second preset time.
[0481] The embodiment of the present application adjusts the working mode of the sampling control circuit through the detection result of the detection circuit, thereby realizing the adjustment of the first time. Specifically, when there is a pulse signal, the sampling control circuit is controlled to work in the first mode, and the sampling control circuit selects a smaller first preset time delay to trigger the sampling circuit. This is because the pulse width of the pulse signal is small, so it needs to be sampled and processed as soon as possible to ensure timely acquisition of key information. The smaller delay (first preset time) can ensure that the sampling can be quickly triggered after the pulse signal appears, reducing the loss or delay of information. When there is no pulse signal, the embodiment of the present application controls the sampling control circuit to work in the second mode, and the sampling control circuit selects a larger second preset time delay to trigger the sampling circuit. This is because the width of each level in the first signal is larger than the width of the pulse signal, so a larger delay can be selected to reduce the system's demand for resources, save energy consumption and reduce unnecessary data sampling; in addition, through a larger delay, sampling can be performed when the signal is stable, avoiding the waste of resources and system burden caused by frequent sampling.
[0482] In summary, the embodiments of the present application select different delay strategies to trigger the sampling circuit according to the presence or absence of the pulse signal and the timeliness and accuracy requirements for data sampling, which can better balance system resource utilization, real-time performance and the effectiveness of data sampling.
[0483] In some optional implementations of the embodiments of the present application, the detection circuit is configured to, when it is determined that a pulse signal exists in the first signal, cause the control loop control circuit to operate in the third mode; and when it is determined that no pulse signal exists in the first signal, cause the control loop control circuit to operate in the fourth mode;
[0484] The loop control circuit is configured to, after the sampling control circuit triggers the sampling circuit to sample the i-th pulse width, delay the discharge loop for a third preset time if operating in the third mode, and delay the discharge loop for a fourth preset time if operating in the fourth mode, where the third preset time is less than the fourth preset time.
[0485] The embodiment of the present application adjusts the working mode of the loop control circuit through the detection result of the detection circuit, thereby realizing the adjustment of the second time. Specifically, when there is a pulse signal, the control loop control circuit operates in the third mode, and the loop control circuit selects a smaller third preset time delay to control the discharge loop to be turned on. This is because the pulse width of the pulse signal is small and needs to be processed as soon as possible to ensure the efficiency of timely parsing the hard disk log data. The smaller delay (third preset time) can ensure that the discharge can be quickly carried out after the pulse signal appears, thereby improving data processing efficiency. When there is no pulse signal, the embodiment of the present application controls the loop control circuit to operate in the fourth mode, and the loop control circuit selects a larger fourth preset time to control the discharge loop to be turned on. This is because the width of each level in the first signal is larger than the width of the pulse signal, so a larger delay can be selected to reduce the system's demand for resources, save energy consumption and reduce unnecessary data sampling; in addition, through a larger delay, it can be ensured that the sampling circuit performs sampling when the signal is stable, thereby avoiding inaccurate sampling.
[0486] FIG7 is a circuit diagram of an amplifying driving circuit for a hard disk status indicator light provided in an embodiment of the present application.
[0487] In the above embodiment, two control schemes are provided for situations where the hard disk status pin needs to control the state of a controlled component. One is, as shown in Figure 7, where the hard disk status pin is directly connected to the hard disk status indicator light of the controlled component. To achieve the hard disk status pin's control function over the controlled component, if the hard disk status pin is directly connected to the controlled component, the hard disk modulates the hard disk log data and the hard disk status signal to obtain a first signal, including: the hard disk determines a deviation range of the first signal compared to the hard disk status signal based on the control signal range corresponding to the working status signal of the controlled component corresponding to the hard disk status pin, and modulates the hard disk log data and the hard disk status signal according to the deviation range to obtain the first signal. For example, if the hard disk status indicator light control pin is used as the hard disk status pin for outputting hard disk log data, and the hard disk status indicator light control pin is connected to the amplification drive circuit to directly control the hard disk status indicator light, as shown in Figure 7, the deviation range of the first signal compared to the hard disk status signal is set based on the duty cycle range that controls the hard disk status indicator light to light up and flash undetectable to the human eye.
[0488] In an optional implementation of the embodiment of the present application, in order to overcome the problem of being limited by the implementation of the original function of the hard disk status pin when modulating the first signal, as shown in FIG5 , the hard disk status pin and its corresponding controlled component may not be directly connected, that is, the hard disk status pin is only directly connected to the baseboard management controller. The hard disk monitoring system provided by the embodiment of the present application may further include a status control circuit corresponding to the hard disk status pin, the controlled end of the status control circuit is connected to the baseboard management controller, and the output end of the status control circuit is connected to the driving end of the controlled component corresponding to the hard disk status pin;
[0489] The baseboard management controller is further configured to control the state control circuit to drive the controlled components according to the hard disk state data.
[0490] As shown in FIG7 , the hard disk status pin is a hard disk status indicator light control pin, and the status control circuit is an amplifying drive circuit;
[0491] The baseboard management controller controls the status control circuit to drive the controlled components according to the hard disk status data, including:
[0492] When the baseboard management controller demodulates the first signal and obtains the hard disk status data as a light-on command, it controls the amplifying driving circuit to generate a square wave signal to light up the hard disk status indicator light corresponding to the hard disk status pin; when the baseboard management controller demodulates the first signal and obtains the hard disk status data as a light-off command, it stops controlling the amplifying driving circuit to generate a square wave signal to turn off the hard disk status indicator light.
[0493] That is to say, after the baseboard management controller demodulates the first signal to obtain the hard disk status data, it regenerates the control signal for the hard disk status indicator light corresponding to the hard disk status pin, reducing the limitation of the first signal modulation. When modulating the first signal, it is only necessary to consider enabling the baseboard management controller to recognize the hard disk status data, without considering that the control effect will be deteriorated when the controlled component is directly controlled by the first signal.
[0494] Figure 8 is a schematic diagram of a modulation method for a square wave signal provided in an embodiment of the present application; Figure 9 is a schematic diagram of a modulation method for a constant high-level signal provided in an embodiment of the present application.
[0495] As shown in Figure 8, hexadecimal digital data from 0 to 7 can be modulated into a level width between 42 and 49, and hexadecimal digital data from 8 to F can be modulated into a level width between 51 and 58. A level width of 41 or 59 indicates an error, and a level width of 50 indicates a null value. It can be seen that the level widths allowed to have corresponding digital data can be within a certain target width range, which can be, but is not limited to, 42 to 49 and 51 to 58. For the baseboard management controller, the first signal can be demodulated in the following manner to obtain the hard disk log data, but is not limited to:
[0496] The baseboard management controller measures the level width of the first signal falling within the target width range to obtain corresponding digital data, and parses the digital data into hard disk log data, wherein the target width range is a width range obtained by the level width of the corresponding digital data.
[0497] Optionally, the baseboard management controller can, but is not limited to, measure the level width in the first signal that falls within the target width range to obtain corresponding digital data, and parse the digital data into hard disk log data in the following manner: the baseboard management controller measures the level width of the current level in the first signal; the baseboard management controller detects whether the level width of the current level falls within the target width range; when the level width of the current level falls within the target width range, the baseboard management controller determines the level width of the current level as the digital data corresponding to the current level; the baseboard management controller searches for the data code corresponding to the digital data corresponding to the current level from the digital data and data codes with a corresponding relationship to obtain the hard disk log data.
[0498] Optionally, after detecting whether the level width of the current level falls within the target width range, if the level width of the current level does not fall within the target width range, the baseboard management controller may further discard the level width of the target level.
[0499] As shown in Figure 8, for a square wave signal, both high and low levels can carry digital data through the level width. As shown in Figure 9, for a constant level signal, the level in phase with the constant level signal can carry digital data through the level width. It can be seen that the baseboard management controller can also demodulate the first signal to obtain hard disk log data in the following manner: the baseboard management controller measures the level width of the level of the target type in the first signal to obtain the corresponding digital data, and parses the digital data into hard disk log data, where the target type is the level type in the first signal that is allowed to carry hard disk log data.
[0500] Optionally, different hard disk states can modulate digital data at different levels. For the demodulation process, the baseboard management controller can also first determine the hard disk state of the hard disk before demodulation, and then determine the level type that is allowed to carry digital data, so that the signal can be demodulated for the level belonging to the level type. For example: before measuring the level width of the level belonging to the target type in the first signal to obtain the corresponding digital data, and parsing the digital data into hard disk log data, the baseboard management controller can also determine the hard disk state based on the level in the first signal; and then determine the target type based on the hard disk state.
[0501] Optionally, the baseboard management controller can, but is not limited to, determine the hard disk status based on the level in the first signal in the following manner: the baseboard management controller detects the level width of the inverted level signal in the first signal, wherein the hard disk status signal is a constant level signal used to indicate that the hard disk is in an idle state, and the inverted level signal is a level in the opposite direction to the constant level signal; the baseboard management controller determines the hard disk status based on the level width of the inverted level signal.
[0502] Optionally, the baseboard management controller may determine the target type according to the hard disk status in the following manner, but is not limited to: when the hard disk status is idle, the baseboard management controller determines the target type to be a level type in the same direction as the constant level signal.
[0503] Optionally, the baseboard management controller may also determine the target type according to the hard disk status in, but not limited to, the following manner: when the hard disk status is active, the baseboard management controller determines the target type as a high level type or a low level type.
[0504] Based on the above modulation method, the embodiment of the present application is described by using the modulation method of the hard disk status indicator light control pin to output the hard disk log data.
[0505] The hard disk status indicator light control pin usually outputs a square wave signal to control the hard disk status indicator light to light up, and outputs a constant level signal to turn the hard disk status indicator light off.
[0506] When the hard disk status indicator control pin outputs a square wave signal, the hard disk log data can be modulated by setting 16 different level widths corresponding to the sixteen digits in hexadecimal as described in the above embodiment of this application. Reference can be made to the level width modulation method for hexadecimal digits in the above embodiment of this application. When the hard disk status indicator control pin outputs a constant level signal, pulse width modulation can be achieved by inserting an inverted level into the constant level signal. For example, if the hard disk status signal output by the hard disk status indicator control pin is a constant high level signal, a short low level can be inserted to split the constant high level signal into a high and low level varying signal, with the high level width corresponding to the hard disk log data. For example, if the above hexadecimal level width modulation method is used, the minimum level width corresponding to the hard disk log data is 42 milliseconds. When the hard disk status signal is a constant level signal, the inserted inverted level can be 3 milliseconds, thereby splitting the constant level signal into a signal with a level width corresponding to the hard disk log data.
[0507] As described in the above embodiments of this application, if the hard disk status signal is not considered to directly control the hard disk status indicator light, then by setting different duty cycle ranges, the duty cycle ranges of the first signal corresponding to the hard disk status signal when it is a square wave signal and the first signal corresponding to the hard disk status signal when it is a constant level signal do not overlap. This allows the baseboard management controller to distinguish whether the hard disk status signal is a square wave signal or a constant level signal after measuring the pulse width of the first signal and identifying the hard disk log data. If the hard disk status signal is required to directly control the controlled component, it is also necessary to narrow the duty cycle ranges of the two hard disk status signals based on the operating conditions of the controlled component on the basis of the non-overlapping duty cycle ranges.
[0508] As described in the above embodiments, the baseboard management controller shown in each embodiment of the present application may refer to the baseboard management controller chip 101 or a system including the baseboard management controller chip 101 and the complex programmable logic device 102 .
[0509] As shown in FIG5 , the baseboard management controller includes a baseboard management controller chip 101 and a complex programmable logic device 102 ;
[0510] The baseboard management controller chip 101 is connected to the complex programmable logic device 102 via an integrated circuit bus, and the data input and output pins of the complex programmable logic device 102 are connected to the hard disk status pins;
[0511] The complex programmable logic device 102 is configured to demodulate the first signal to obtain hard disk log data;
[0512] The baseboard management controller chip 101 is configured to poll the integrated circuit bus. When polling the complex programmable logic device 102, it reads the hard disk log data and performs monitoring of the hard disk according to the hard disk log data.
[0513] The baseboard management controller chip 101 is usually connected to devices such as sensors and complex programmable logic devices 102 through an integrated circuit bus. The baseboard management controller chip 101 acts as a master device on the integrated circuit bus and reads data from multiple slave devices by polling the integrated circuit bus to which its pins are connected. In the hard disk monitoring system provided in the embodiment of the present application, the data path connected by the baseboard management controller chip 101 and the complex programmable logic device 102 through the integrated circuit bus can be utilized. The complex programmable logic device 102 receives and demodulates the first signal output by the hard disk status pin and demodulates it to obtain hard disk log data. The complex programmable logic device 102 saves the hard disk log data locally and waits for the baseboard management controller chip 101 to poll the complex programmable logic device 102 before reading the hard disk log data, thereby realizing monitoring of the hard disk based on the hard disk log data.
[0514] In an optional implementation of the embodiment of the present application, the baseboard management controller includes a baseboard management controller chip 101 and a complex programmable logic device 102;
[0515] The baseboard management controller chip 101 is connected to the complex programmable logic device 102 via an integrated circuit bus and an interrupt signal line, and the data input and output pins of the complex programmable logic device 102 are connected to the hard disk status pins;
[0516] The complex programmable logic device 102 is configured to demodulate the first signal to obtain hard disk log data, and send an interrupt signal to the baseboard management controller chip 101 through an interrupt signal line;
[0517] The baseboard management controller chip 101 is configured to read the hard disk log data from the complex programmable logic device 102 through the integrated circuit bus after receiving the interrupt signal, and perform hard disk monitoring according to the hard disk log data.
[0518] That is to say, in addition to the data path connecting the baseboard management controller chip 101 and the complex programmable logic device 102 through the integrated circuit bus, additional interrupt signal lines and interrupt resources can be set to allow the complex programmable logic device 102 to read the hard disk log data through the baseboard management controller chip 101 to perform hard disk monitoring.
[0519] In some optional implementations of the embodiments of the present application, if the baseboard management controller chip 101 of the baseboard management controller is connected to the hard disk status pin of the hard disk, the hard disk monitoring system provided by the embodiments of the present application may also include a multi-selection switch arranged between the baseboard management controller chip 101 and the hard disk status pin of the hard disk, the multiple selection ends of the multi-selection switch are respectively connected to multiple hard disks, and the single connection end of the multi-selection switch is connected to the general input and output pin of the baseboard management controller chip 101; the multi-selection switch only selects one hard disk to be connected to the general input and output pin of the baseboard management controller chip 101 at the same time.
[0520] Alternatively, if the baseboard management controller chip 101 of the baseboard management controller is connected to the hard disk status pin of the hard disk, different hard disks connected to the same general input and output pin of the baseboard management controller chip 101 can also be set to output the first signal to the baseboard management controller chip 101 in different time periods.
[0521] As an optional implementation, the embodiment of the present application describes a method for storing hard disk log data in a baseboard management controller.
[0522] If the baseboard management controller only includes the baseboard management controller chip 101, that is, the pins of the baseboard management controller chip 101 are directly connected to the hard disk status pins of the hard disk to receive hard disk log data, then it is necessary to deploy a demodulation module and divide the hard disk log storage area in the baseboard management controller chip 101. For the hard disk log storage area, its producer is the demodulation module, and the consumer is the processor configured to read the hard disk log data to perform hard disk monitoring. That is, as the hard disk status pin outputs hard disk log data, the hard disk log data is continuously written to the hard disk log storage area of the baseboard management controller chip 101, and the processor of the baseboard management controller chip 101 also reads the hard disk log data from the hard disk log storage area.
[0523] If the baseboard management controller is a system including a baseboard management controller chip 101 and a complex programmable logic device 102, then a hard disk log storage area can be deployed on the complex programmable logic device 102, and the partitioning method is the same as that for deployment on the baseboard management controller chip 101. Deploying the hard disk log storage area on the complex programmable logic device 102 requires pre-writing the partition configuration information of the hard disk log storage area into the firmware of the complex programmable logic device 102. After the complex programmable logic device 102 is powered on, the partition configuration information of the firmware is read and the hard disk log storage area is deployed to the local register (which may also include the on-chip random access memory).
[0524] Since the baseboard management controller chip 101 or the complex programmable logic device 102 often needs to connect to multiple hard disks, a corresponding storage area can be set in advance for each hard disk, and a corresponding flag storage area can be set for each storage area. When hard disk log data is written to the storage area, the baseboard management controller chip 101 or the complex programmable logic device 102 writes valid flag data to the flag storage area corresponding to the storage area. When the processor of the baseboard management controller chip 101 reads hard disk log data from the hard disk log storage area on the baseboard management controller chip 101, or when the baseboard management controller chip 101 reads hard disk log data from the hard disk log storage area on the complex programmable logic device 102, the data in the flag storage area is read first, and the storage area where the hard disk log data to be read exists is determined based on the valid flag data therein.
[0525] As an optional implementation, since hard drive log data may be lost or mis-transmitted during transmission, it is necessary to promptly remind the hard drive to retransmit this hard drive log data to improve the real-time performance of out-of-band hard drive monitoring. If multiple hard drive status pins are connected to the baseboard management controller, some of the hard drive status pins can be configured to output a first signal carrying hard drive log data, while other hard drive status pins can be configured to receive control commands from the baseboard management controller. These control commands can include at least one of resending a hard drive log command, sending a hard drive log command in advance, and sending specified hard drive log data.
[0526] However, in actual applications, there may not be multiple hard drive status pins that can be connected to the baseboard management controller. For example, there may be only one hard drive status pin connected to the baseboard management controller. In this case, a negotiation method is required to enable the baseboard management controller to transmit control commands in the gap between the hard drive status pin outputting the first signal.
[0527] In the hard disk monitoring system provided in the embodiment of the present application, the baseboard management controller can be further configured to send a reverse transmission request to the hard disk status pin when the hard disk status data obtained by demodulating the first signal is non-control data or the demodulated first signal does not include hard disk status data, and the current time is within the negotiation time period agreed upon with the hard disk, and to send a control command for the hard disk to the hard disk status pin upon receiving a permission signal sent by the hard disk. The hard disk can also be configured to execute the control command.
[0528] Non-control data, i.e., hard disk status data corresponding to the hard disk status signal, does not control the controlled element. For example, the hard disk status pin is a hard disk status indicator control pin. When the hard disk status signal output is a square wave signal, it controls the hard disk status indicator to light up. When the hard disk status signal output is a constant level signal, it turns the hard disk status indicator off. The constant level hard disk status signal can be used to allow the baseboard management controller to send a reverse transmission request to the hard disk status pin only during a negotiated time period, pre-agreed between the baseboard management controller and the hard disk, during which the hard disk will not output hard disk log data. For example, a 30-millisecond reverse transmission request flag can be sent. After the hard disk recognizes the reverse transmission request and determines that it is currently within the negotiated time period, it sends a permission signal to the baseboard management controller allowing reverse transmission. After receiving the permission signal, the baseboard management controller transmits control commands to the hard disk via the hard disk status pin in reverse, such as the aforementioned resending of hard disk log commands, sending of hard disk log commands in advance, and sending of specified hard disk log data. The hard disk executes this control command to promptly resend lost hard disk log data.
[0529] In some optional implementations of the embodiments of the present application, the baseboard management controller may be further configured to send pin configuration information to the hard disk. The hard disk may be further configured to determine a hard disk status pin for outputting hard disk log data and modulation configuration information of the first signal based on the pin configuration information.
[0530] In actual applications, if the hard disk is connected to a hard disk expansion card or is connected to a central processing unit through a high-speed serial computer expansion bus, the baseboard management controller can access the hard disk expansion card or the high-speed serial computer expansion bus through the integrated circuit bus to send pin configuration information to the hard disk. In addition, the pin configuration information can also be written to the hard disk controller in advance in an offline manner. The pin configuration information includes the identifier of the hard disk status pin and the modulation configuration information of the first signal. The identifier of the hard disk status pin is used to indicate which hard disk status pin is used to output the hard disk log data, and the modulation configuration information of the first signal is used to explain how to convert the hard disk log data into level data and modulate it with the hard disk status signal into the first signal. In order to reduce the amount of reverse transmission data, the modulation configuration information of the first signal can be only an identification information, so that the hard disk can look up the table according to the identification information to obtain the corresponding modulation configuration information.
[0531] Since the above deployment method cannot achieve online deployment of hard disks with all connection methods, in the embodiment of the present application, the baseboard management controller sends pin configuration information to the hard disk, which may include:
[0532] When the hard disk status data obtained by demodulating the first signal is non-control data or the demodulated first signal does not include hard disk status data, and the current moment is the negotiation time period agreed with the hard disk, the baseboard management controller sends a reverse transmission request to the hard disk status pin, and when receiving the permission signal sent by the hard disk, sends pin configuration information to the hard disk through the hard disk status pin.
[0533] Similar to the above-mentioned baseboard management controller sending control commands to the hard disk through the hard disk status pin, the baseboard management controller can also use a negotiated method to send pin configuration information to the hard disk to realize online configuration of the hard disk status pin for outputting hard disk log data of the hard disk. This online configuration can be performed when the hard disk is powered on or during the idle period of the hard disk.
[0534] In the process of modulating digital data, when sending a signal, it is necessary to ensure that the width of the sent level is consistent with the width of the modulated level or the error is within an acceptable range, so that the baseboard management controller can demodulate the correct digital data. However, the sending of the signal and the inversion of the level also require the execution of the program, which may cause some delays or errors. The level width of the current level obtained after the current level is inverted may not match the actual digital data that needs to be transmitted, which may lead to garbled characters or bit errors during demodulation.
[0535] In order to solve the above problems, a method for hard disk modulation data is also provided in an embodiment of the present application. In the embodiment of the present application, the hard disk is also configured to: in the process of sending a hard disk status signal through the hard disk status pin, when the hard disk status signal is modulated in the current level of the hard disk status signal, detect the timeliness of inverting the level in the current level to obtain the first signal, wherein the timeliness is used to indicate whether inverting the level in the current level allows the first signal to be obtained; and process the current level according to the timeliness.
[0536] The hard disk sends a hard disk status signal through the hard disk status pin. In each level or each level that needs to be modulated, the timeliness of the inverted level in the current level to obtain the first signal can be detected before the inverted level is reversed, that is, whether the level is reversed in time so that the current level carries the corresponding digital data. If the level is reversed in time, the corresponding digital data can be carried at the current level. If the level is not reversed in time, the current level can be processed so that digital data will not be demodulated during demodulation, and the corresponding digital data can be carried at the next level.
[0537] Timeliness is used to indicate whether reversing the level at the current level allows obtaining the first signal. That is, timeliness is any parameter that can indicate whether it is too late to carry the corresponding digital data at the current level, such as: a time parameter that can express the above meaning, a performance parameter that can express the above meaning, and so on.
[0538] Optionally, the hard disk is further configured to: detect the difference between the level width of the first signal and the level width already issued by the current level; when the difference is greater than a difference threshold, determine the timeliness for indicating that reversing the level in the current level allows obtaining the first signal, wherein the difference threshold is determined based on the minimum time taken to reverse the level; when the difference is less than or equal to the difference threshold, determine the timeliness for indicating that reversing the level in the current level does not allow obtaining the first signal.
[0539] The hard disk may determine whether it is possible to reverse the current level in time by, but is not limited to, detecting the difference between the level width of the first signal and the level width of the current level. If the difference is greater than a difference threshold, it may be determined that it is possible to reverse the current level in time, wherein the difference threshold is determined based on the minimum time required to reverse the current level. If the difference is less than or equal to the difference threshold, it may be determined that it is too late to reverse the current level in time.
[0540] Optionally, the hard disk is further configured to: send the first signal at the current level when timeliness is used to indicate that reversing the level in the current level allows the first signal to be obtained; send the first signal after sending the current level of the target level width when timeliness is used to indicate that reversing the level in the current level does not allow the first signal to be obtained, wherein the target level width is the level width that does not allow the baseboard management controller to demodulate the hard disk log data.
[0541] The target level width is a level width that does not allow the baseboard management controller to demodulate the hard disk log data, for example, 50 as shown in FIG8 , and any value greater than 58.
[0542] Optionally, the target level width is greater than a maximum value of a target width range, and the target width range is a width range obtained by having a level width of corresponding digital data.
[0543] The target width range is a width range obtained by having the level width of the corresponding digital data, such as 42 to 49 and 51 to 58 as shown in Figure 8. The target level width can be set to any value greater than the maximum value of the target width range, such as, but not limited to, 59, 59.5, 58.25, 58.75, and so on.
[0544] In an optional embodiment, a method is provided to handle the situation where there is no time to reverse the level by delaying the processing. During the transmission process, the signal sender (hard disk) and the signal receiver (baseboard management controller) handle it as follows:
[0545] The processing method of the signal sender (hard disk) includes: if it is planned to modulate data in the current pulse, then a detection is performed before reversing the level to determine whether there is enough time to reverse the level (that is, the timeliness of reversing the level in the current level to obtain the first signal is detected); if it is determined that there is enough time to reverse the level and the current level width can be guaranteed to be within the allowable error range, then the level is reversed (that is, the first signal is sent in the current level); if it is determined that there is no time to reverse the level, then a delayed level reversal step is executed (that is, the first signal is sent after the current level of the target level width is sent).
[0546] The method of delaying the reversal level may be, but is not limited to: checking the duration of the current level T cur (i.e. the width of the current level), calculate the remaining duration T delay (T delay =58.25-T cur ), that is, calculate the difference between the target level width and the level width of the current level as the time the current level needs to continue to be sent, and then delay the current level to T delay Inverts the level after milliseconds.
[0547] The signal receiver (baseboard management controller) processes the signal by calculating the duration width of each level and checking the level width; if the level width does not correspond to a valid meaning, the level width is discarded; if the level width does correspond to a valid meaning, the level width is retained for identifying the modulated digital data.
[0548] FIG14 is a schematic diagram of a hard disk modulation process according to an embodiment of the present application. As shown in FIG14 , for a current level originally planned to be reversed at 42 milliseconds, it is possible to detect whether there is enough time to reverse before reversing. For example, if the current level has been sent to 42 milliseconds and has not yet been reversed, it can be determined that it is too late to reverse. In this case, a delayed reversal operation can be performed on the current level so that the current level width exceeds 58.25 milliseconds before reversing, and the 42 milliseconds of digital data are retransmitted in the next level. In the demodulation process of the baseboard management controller, digital data of 58.5 will be demodulated, which exceeds the target width range and will be ignored as an abnormal level. The next level will be demodulated to digital data of 42.
[0549] The hard disk may switch its state during operation, such as switching from active state to idle state, or from idle state to active state. However, the switching of the hard disk state may cause the immediate conversion of the hard disk status signal. However, if the hard disk log data is being sent at this time, it may cause the hard disk log data to be wrong. For example, when the hard disk is in the active state, the hard disk log data is being transmitted. Since the active state may end at any time, if the hard disk log data has not been transmitted, a data integrity error may occur. For another example, when the hard disk is in the idle state, the hard disk log data is being transmitted. Since the idle state may end at any time, if the hard disk log data has not been transmitted, a data integrity error may occur. For the above-mentioned error situation, a corresponding processing method is given in the embodiment of the present application to solve it. The corresponding processing method can be, but is not limited to, determined according to the level type of the target level currently being sent and the switching of the hard disk status signal, thereby ensuring that the transmission of the hard disk log data is carried out correctly.
[0550] For example: the hard disk is also configured to: when the hard disk status signal switches when outputting the first signal, control the modulation of the target level and the reference level according to the level type of the target level currently being sent and the switching of the hard disk status signal, wherein the reference level is the level after the target level.
[0551] Optionally, the hard disk is also configured to: when the hard disk status signal switches from a square wave signal to a constant level signal, and the level type of the target level is the same as that of the constant level signal, insert an inverted level signal of the constant level signal after the target level, and modulate the hard disk status signal into a constant level signal to obtain a reference level.
[0552] If the hard drive status switches from active to idle, that is, the hard drive status signal switches from a square wave to a constant-level signal, and the target level is the same as the constant-level signal, then the inverted constant-level signal can be inserted after the target level. The reference level is then modulated based on the hard drive status signal being the constant-level signal. Specifically, after the current target level is sent, the inverted constant-level signal is inserted. If the constant-level signal is a high-level signal, a low-level signal is inserted. If the constant-level signal is a low-level signal, a high-level signal is inserted. Subsequent levels are modulated using the same modulation method as in the idle state.
[0553] For example, when a hard drive switches from an active state to an idle state, it is necessary to consider whether the current level being sent is a high level or a low level. For example, when the target level being sent is a high level, and a constant level signal is a high level signal, FIG15 is a schematic diagram of a hard drive state switching process according to an embodiment of the present application. As shown in FIG15 , the hard drive normally sends the current target level, then inserts a low level to modulate the next data code to be sent, and then continues to modulate the subsequent data code according to the modulation method of the hard drive in the idle state.
[0554] Optionally, the hard disk is also configured as follows: when the hard disk status signal switches from a square wave signal to a constant level signal, and the level type of the target level is opposite to that of the constant level signal, the next level of the target level is obtained by modulating the hard disk status signal into a square wave signal after the target level; the inverted level signal of the constant level signal is inserted after the next level, and the reference level is obtained by modulating the hard disk status signal into a constant level signal.
[0555] If the hard drive status switches from active to idle, that is, the hard drive status signal switches from a square wave signal to a constant-level signal, and the target level is the opposite of the constant-level signal, then the hard drive status signal can be modulated as a square wave signal after the target level to obtain the next target level. The inverted constant-level signal is then inserted after the next level, and the hard drive status signal is modulated as a constant-level signal to obtain the reference level. That is, after the current target level is sent, the level is inverted and the hard drive status signal is modulated as a square wave signal to obtain the next target level. The inverted constant-level signal is inserted after the next level. If the constant-level signal is a high-level signal, a low-level signal is inserted; if the constant-level signal is a low-level signal, a high-level signal is inserted. Subsequent levels are modulated according to the modulation method used in the idle state.
[0556] For example, when a hard disk switches from an active state to an idle state, it is necessary to consider two situations: whether the level currently being sent is a high level or a low level. For example, when the target level being sent is a low level, and the constant level signal is a high level signal, FIG16 is a second schematic diagram of a hard disk state switching process according to an embodiment of the present application. As shown in FIG16 , after the hard disk normally sends the current target level and the level is reversed to a high level, the subsequent level is modulated according to the modulation method of the hard disk in the idle state, and then processed in the manner shown in FIG15 .
[0557] Optionally, the hard disk is also configured to: when the hard disk status signal switches from a constant level signal to a square wave signal, and the pulse type of the target pulse is the same as that of the constant level signal, reverse the level after the target level, and modulate the square wave signal according to the hard disk status signal to obtain a reference level.
[0558] If the hard drive status switches from idle to active, that is, the hard drive status signal switches from a constant-level signal to a square wave signal, and the target pulse has the same pulse type as the constant-level signal, the level can be reversed after the target level, and the square wave signal can be modulated according to the hard drive status signal to obtain the reference level. In other words, after the current target level is sent, the level is reversed and the subsequent levels are modulated according to the hard drive status signal.
[0559] For example, when a hard drive switches from an idle state to an active state, it is necessary to consider two situations: whether the level currently being sent is a high level or a low level. For example, when the target level being sent is a high level, and a constant level signal is a high level signal, FIG17 is a third schematic diagram of a hard drive state switching process according to an embodiment of the present application. As shown in FIG17 , after the hard drive normally sends the current target level and reverses the level, it continues to modulate the subsequent data encoding according to the modulation method of the hard drive in the active state.
[0560] Optionally, the hard disk is also configured to: when the hard disk status signal switches from a constant level signal to a square wave signal, and the level type of the target level is opposite to that of the constant level signal, a reference pulse is obtained by modulating the square wave signal according to the hard disk status signal after the target level.
[0561] If the hard drive status switches from idle to active, that is, the hard drive status signal switches from a constant-level signal to a square wave signal, and the target level is the opposite of the constant-level signal, the target level can still be sent as the inverted level of the constant-level signal, and then the hard drive status signal can be modulated into a square wave signal to obtain a reference pulse. In other words, after completing the current target level transmission, the hard drive status signal can be modulated into a square wave signal to obtain a reference pulse.
[0562] For example, when a hard drive switches from an idle state to an active state, it is necessary to consider whether the current level being sent is a high level or a low level. For example, when the target level being sent is a low level, and the constant level signal is a high level signal, FIG18 is a fourth schematic diagram of a hard drive state switching process according to an embodiment of the present application. As shown in FIG18 , after the hard drive normally completes the current narrow low level transmission and the level is reversed to a high level, the subsequent data encoding is modulated according to the modulation method of the hard drive in the active state.
[0563] The above processing method can ensure that bandwidth utilization is not reduced when the hard disk status switches; and minimize bandwidth utilization reduction when processing data modulation errors.
[0564] As an optional implementation, the embodiment of the present application further provides a baseboard management controller, which is configured to monitor a hard disk;
[0565] The baseboard management controller is configured to demodulate a first signal outputted by a hard disk status pin of the hard disk to obtain hard disk log data, and perform monitoring of the hard disk according to the hard disk log data;
[0566] The first signal is a signal modulated by the hard disk according to the hard disk log data and the hard disk status signal corresponding to the hard disk status pin.
[0567] As an optional embodiment, the baseboard management controller provided in the embodiment of the present application may refer to a baseboard management controller chip 101, or may be a system including a baseboard management controller chip 101 and a complex programmable logic device 102. According to functional division, the baseboard management controller provided in the embodiment of the present application may include a demodulation module, a storage module and an analysis module. Among them, the demodulation module includes a demodulation circuit, which is configured to demodulate the first signal to obtain hard disk log data. The storage module is configured to store the hard disk log data in a hard disk log storage area. The analysis module is configured to read the hard disk log data from the hard disk log storage area and perform monitoring of the hard disk based on the hard disk log data.
[0568] If a system including a baseboard management controller chip 101 and a complex programmable logic device 102 is used, the demodulation module and the storage module can be deployed in the system of the baseboard management controller chip 101 and the complex programmable logic device 102, and the analysis module can be deployed in the baseboard management controller chip 101.
[0569] The baseboard management controller demodulates the first signal to obtain the hard disk log data, which may include: the baseboard management controller obtains corresponding digital data by measuring the level width of the first signal, and interprets the digital data into the hard disk log data.
[0570] The first signal may be a signal obtained by converting the hard disk log data into a signal of a corresponding level width and modulating the signal according to the signal corresponding to the hard disk log data and the hard disk status signal.
[0571] In the embodiment of the present application, the baseboard management controller may be further configured to demodulate the hard disk status data from the signal period for demodulating the hard disk log data according to the signal type of the hard disk status signal.
[0572] In some optional implementations of the present application, the first signal may carry both modulated hard disk log data and a hard disk status signal. Specifically, the first signal may be a signal obtained by converting the hard disk log data into a signal having a corresponding level width, and then modulating the signal corresponding to the hard disk log data with the hard disk status signal.
[0573] In practical applications, when the hard disk control signal is a square wave signal, the level width of the first signal can be set to correspond to the data bits in the hard disk log data, and the high and low level changes in the first signal correspond to the hard disk status signal.
[0574] Among them, if the hard disk status signal is a square wave signal, the first signal can be a signal obtained by converting the hard disk log data into a signal with a corresponding level width and then replacing the square wave signal with the signal corresponding to the hard disk log data.
[0575] Alternatively, if the hard disk status signal is a square wave signal, the first signal can be a signal obtained by adjusting the level width of the corresponding period in the square wave signal according to the level width of the signal corresponding to the hard disk log data after the hard disk converts the hard disk log data into a signal of corresponding level width.
[0576] If the signal type of the hard disk status signal includes a square wave signal; the baseboard management controller demodulates the hard disk status data from the signal period of the hard disk log data according to the signal type of the hard disk status signal, which may include: the baseboard management controller demodulates the hard disk status data according to the high and low level changes in the first signal.
[0577] The baseboard management controller demodulates the hard disk status data according to the high and low level changes in the first signal, which may include:
[0578] After demodulating and obtaining the hard disk log data, the baseboard management controller replaces the first signal with a square wave signal to obtain a hard disk status signal;
[0579] The hard disk status data is obtained by demodulating the hard disk status signal.
[0580] Alternatively, the baseboard management controller demodulates the hard disk status data according to the high and low level changes in the first signal, which may also include:
[0581] After demodulating and obtaining the hard disk log data, the baseboard management controller adjusts the pulse width of each cycle of the first signal according to the pulse width of the corresponding square wave signal to obtain a hard disk status signal;
[0582] The hard disk status data is obtained by demodulating the hard disk status signal.
[0583] In actual applications, when the hard disk control signal is a constant level signal, the level width of the first signal can be set to correspond to the data bits in the hard disk log data, and the constant level signal with a larger proportion in the first signal corresponds to the hard disk status signal.
[0584] If the hard disk status signal is a constant level signal, the first signal may be a signal obtained by converting the hard disk log data into a signal of a corresponding level width and then replacing the constant level signal of a corresponding duration with the signal corresponding to the hard disk log data;
[0585] The proportion of the inverted level signal compared to the constant level signal in each signal period of the first signal is less than 50%.
[0586] Alternatively, if the hard disk status signal is a constant level signal, the first signal may be a signal obtained by the hard disk converting hard disk log data into a corresponding level width signal, generating an inverted signal of the constant level signal according to the signal corresponding to the hard disk log data, and then inserting the inverted signal into the constant level signal;
[0587] The proportion of the inverted level signal compared to the constant level signal in each cycle of the first signal is less than 50%.
[0588] If the signal type of the hard disk status signal includes a constant level signal, the baseboard management controller demodulates the hard disk status data from the signal period of the hard disk log data according to the signal type of the hard disk status signal, which may include: the baseboard management controller demodulates the hard disk status data based on the constant level signal that accounts for a relatively large proportion in the signal period of the first signal.
[0589] The baseboard management controller demodulates the hard disk status data according to the constant level signal that accounts for a relatively large proportion in the signal period of the first signal, which may include:
[0590] After demodulating and obtaining the hard disk log data, the baseboard management controller replaces the first signal with a constant level signal that accounts for a relatively large proportion of the signal period of the first signal to obtain a hard disk status signal;
[0591] The hard disk status data is obtained by demodulating the hard disk status signal.
[0592] Alternatively, the baseboard management controller demodulates the hard disk status data according to the constant level signal that accounts for a relatively large proportion in the signal period of the first signal, which may include:
[0593] After demodulating and obtaining the hard disk log data, the baseboard management controller replaces the inverted signal corresponding to the constant-level signal with a larger proportion in the signal cycle of the first signal with the constant-level signal with a larger proportion in the signal cycle of the first signal to obtain the hard disk status signal;
[0594] The hard disk status data is obtained by demodulating the hard disk status signal.
[0595] In order to enable the baseboard management controller to identify the original hard disk status signal from the first signal, if the hard disk status signal only includes a constant level signal, or the hard disk status signal includes a constant high level signal and a constant low level signal;
[0596] The first signal is a signal obtained by modulating the hard disk log data into a signal with a corresponding level width according to the signal corresponding to the hard disk log data and the hard disk status signal;
[0597] If the hard disk status signal is a constant high level signal, the duty cycle of each cycle of the first signal is greater than 50%;
[0598] If the hard disk status signal is a constant low-level signal, the duty cycle of each period of the first signal is less than 50%.
[0599] In some optional implementations of the embodiments of the present application, if the hard disk status signal only includes a constant-level signal, different modulation constraints need to be set to distinguish between a constant high-level signal and a constant low-level signal. Therefore, if the hard disk status signal only includes one constant-level signal, or the hard disk status signal includes both a constant high-level signal and a constant low-level signal, the first signal can be a signal obtained by modulating the hard disk status signal with the signal corresponding to the hard disk log data and the hard disk log data after the hard disk converts the signal into a signal with a corresponding level width.
[0600] When the hard disk status signal is a square wave signal, the maximum duty cycle in the signal period of the hard disk log data is smaller than the first duty cycle, and / or the minimum duty cycle of the first signal is larger than the second duty cycle;
[0601] The first duty cycle is a minimum duty cycle in the first signal corresponding to the constant level signal if the constant level signal is a constant high level signal;
[0602] The second duty cycle is the maximum duty cycle of the first signal corresponding to the constant level signal if the constant level signal is a constant low level signal.
[0603] If the signal type of the hard disk status signal includes only a constant level signal, or the signal type of the hard disk status data includes a constant high level signal and a constant low level signal; the baseboard management controller demodulates the hard disk status data from the signal period of the hard disk log data according to the signal type of the hard disk status signal, which may include:
[0604] After demodulating and obtaining the hard disk log data, the baseboard management controller restores the signal period of the first signal with a duty cycle greater than 50% to a constant high-level signal, and restores the signal period of the first signal with a duty cycle less than 50% to a constant low-level signal, thereby obtaining a hard disk status signal;
[0605] The hard disk status data is obtained by demodulating the hard disk status signal.
[0606] In an optional implementation of the embodiment of the present application, if the hard disk status signal includes a square wave signal and a constant level signal, the first signal may be a signal obtained by modulating the hard disk log data into a signal with a corresponding level width and the hard disk status signal.
[0607] When the hard disk status signal is a square wave signal, the maximum duty cycle in the signal period of the hard disk log data is smaller than the first duty cycle, and / or the minimum duty cycle of the first signal is larger than the second duty cycle;
[0608] The first duty cycle is a minimum duty cycle in the first signal corresponding to the constant level signal if the constant level signal is a constant high level signal;
[0609] The second duty cycle is the maximum duty cycle of the first signal corresponding to the constant level signal if the constant level signal is a constant low level signal.
[0610] In an optional implementation of the present embodiment, the first signal may also carry modulated hard disk log data and a hard disk status signal in a time-sharing manner. Specifically, the first signal may be a signal obtained by converting the hard disk log data into a level signal and then inserting the level signal during an inactive signal period when the hard disk status pin does not output the hard disk status signal.
[0611] If the signal type of the hard disk status signal includes a square wave signal and a constant level signal, the baseboard management controller demodulates the hard disk status data from the signal period of the hard disk log data according to the signal type of the hard disk status signal, which may include:
[0612] If the constant-level signal is a constant high-level signal, the baseboard management controller, after demodulating and obtaining the hard disk log data, restores a signal period in the first signal having a duty cycle less than the first duty cycle into a square wave signal, and restores a signal period in the first signal having a duty cycle greater than the first duty cycle into a constant high-level signal, thereby obtaining a hard disk status signal;
[0613] If the constant-level signal is a constant low-level signal, the baseboard management controller, after demodulating and obtaining the hard disk log data, restores the signal period of the first signal having a duty cycle greater than the second duty cycle into a square wave signal, and restores the signal period of the first signal having a duty cycle less than the second duty cycle into a constant low-level signal, thereby obtaining the hard disk status signal;
[0614] If the constant-level signal includes a constant high-level signal and a constant low-level signal, then after demodulating and obtaining the hard disk log data, the baseboard management controller restores a signal period in the first signal whose duty cycle is less than the first duty cycle and greater than the second duty cycle into a square wave signal, restores a signal period in the first signal whose duty cycle is greater than the first duty cycle into a constant high-level signal, and restores a signal period in the first signal whose duty cycle is less than the second duty cycle into a constant low-level signal, thereby obtaining a hard disk status signal;
[0615] The hard disk status data is obtained by demodulating the hard disk status signal.
[0616] In some optional implementations of the present application, the first signal can also be configured to carry the modulated hard disk log data and the hard disk status signal in a time-sharing manner. That is, the first signal can be a signal obtained by converting the hard disk log data into a level signal and inserting the level signal during an inactive signal period when the hard disk status pin does not output the hard disk status signal.
[0617] The baseboard management controller demodulates the first signal to obtain hard disk log data, which may include:
[0618] After demodulating the first signal to obtain hard disk status data according to the signal type of the hard disk status signal, the baseboard management controller demodulates the signal period of the first signal that does not conform to the signal type of the hard disk status signal to obtain hard disk log data;
[0619] Alternatively, the baseboard management controller obtains corresponding digital data by measuring the pulse width of each cycle of the first signal, parses the digital data into hard disk log data, and demodulates the hard disk status data according to the period in which the pulse width does not correspond to the digital data.
[0620] In some optional implementations of the embodiments of the present application, the baseboard management controller may further include a status control circuit corresponding to the hard disk status pin, a controlled end of the status control circuit is connected to the baseboard management controller, and an output end of the status control circuit is connected to a driving end of a controlled component corresponding to the hard disk status pin;
[0621] The baseboard management controller is further configured to control the state control circuit to drive the controlled element according to the hard disk state data.
[0622] In practical applications, the hard disk status pin may be a hard disk status indicator light control pin, and the status control circuit may be an amplifying drive circuit; the baseboard management controller controls the status control circuit to drive the controlled component according to the hard disk status data, including:
[0623] When the baseboard management controller demodulates the first signal to obtain the hard disk status data as a lighting command, it controls the amplifying driving circuit to generate a square wave signal to light up the hard disk status indicator light corresponding to the hard disk status pin;
[0624] When the hard disk status data obtained by demodulating the first signal is a light-off command, the baseboard management controller stops controlling the amplifying driving circuit to generate a square wave signal to turn off the hard disk status indicator light.
[0625] In some optional implementations of the embodiments of the present application, the baseboard management controller may include a baseboard management controller chip 101 and a complex programmable logic device 102;
[0626] The baseboard management controller chip 101 is connected to the complex programmable logic device 102 via an integrated circuit bus and an interrupt signal line, and the data input and output pins of the complex programmable logic device 102 are connected to the hard disk status pins;
[0627] The complex programmable logic device 102 is configured to demodulate the first signal to obtain hard disk log data, and send an interrupt signal to the baseboard management controller chip 101 through an interrupt signal line;
[0628] The baseboard management controller chip 101 is configured to read the hard disk log data from the complex programmable logic device 102 through the integrated circuit bus after receiving the interrupt signal, and perform hard disk monitoring according to the hard disk log data.
[0629] In some optional implementations of the embodiments of the present application, the baseboard management controller may include a baseboard management controller chip 101 and a complex programmable logic device 102;
[0630] The baseboard management controller chip 101 is connected to the complex programmable logic device 102 via an integrated circuit bus, and the data input and output pins of the complex programmable logic device 102 are connected to the hard disk status pins;
[0631] The complex programmable logic device 102 is configured to demodulate the first signal to obtain hard disk log data;
[0632] The baseboard management controller chip 101 is configured to poll the integrated circuit bus. When polling the complex programmable logic device 102, it reads the hard disk log data and performs monitoring of the hard disk according to the hard disk log data.
[0633] In some optional implementations of the embodiments of the present application, the baseboard management controller may be further configured to send a reverse transmission request to the hard disk status pin when the hard disk status data obtained by demodulating the first signal is non-control data or the demodulated first signal does not include hard disk status data, and the current time is within the negotiation time period agreed upon with the hard disk, and to send a control command for the hard disk to the hard disk status pin upon receiving a permission signal sent by the hard disk. The control command may include at least one of resending a hard disk log command, sending a hard disk log command in advance, and sending specified hard disk log data.
[0634] Optionally, the hard disk is further configured to: in the process of sending the hard disk status signal through the hard disk status pin, detect the timeliness of inverting the level in the current level to obtain the first signal when the hard disk status signal is modulated in the current level of the hard disk status signal, wherein the timeliness is used to indicate whether inverting the level in the current level allows the first signal to be obtained; and process the current level according to the timeliness.
[0635] Optionally, the hard disk is further configured to: detect the difference between the level width of the first signal and the level width already issued by the current level; when the difference is greater than a difference threshold, determine the timeliness for indicating that reversing the level in the current level allows obtaining the first signal, wherein the difference threshold is determined based on the minimum time taken to reverse the level; when the difference is less than or equal to the difference threshold, determine the timeliness for indicating that reversing the level in the current level does not allow obtaining the first signal.
[0636] Optionally, the hard disk is further configured to: send the first signal at the current level when timeliness is used to indicate that reversing the level in the current level allows the first signal to be obtained; send the first signal after sending the current level of the target level width when timeliness is used to indicate that reversing the level in the current level does not allow the first signal to be obtained, wherein the target level width is the level width that does not allow the baseboard management controller to demodulate the hard disk log data.
[0637] Optionally, the target level width is greater than a maximum value of a target width range, and the target width range is a width range obtained by having a level width of corresponding digital data.
[0638] Optionally, the hard disk is also configured to: when the hard disk status signal switches when the first signal is output, control the modulation of the target level and the reference level according to the level type of the target level currently being sent and the switching of the hard disk status signal, wherein the reference level is the level after the target level.
[0639] Optionally, the hard disk is also configured to: when the hard disk status signal switches from a square wave signal to a constant level signal, and the level type of the target level is the same as that of the constant level signal, insert an inverted level signal of the constant level signal after the target level, and modulate the hard disk status signal into a constant level signal to obtain a reference level.
[0640] Optionally, the hard disk is also configured as follows: when the hard disk status signal switches from a square wave signal to a constant level signal, and the level type of the target level is opposite to that of the constant level signal, the next level of the target level is obtained by modulating the hard disk status signal into a square wave signal after the target level; the inverted level signal of the constant level signal is inserted after the next level, and the reference level is obtained by modulating the hard disk status signal into a constant level signal.
[0641] Optionally, the hard disk is also configured to: when the hard disk status signal switches from a constant level signal to a square wave signal, and the pulse type of the target pulse is the same as that of the constant level signal, reverse the level after the target level, and modulate the square wave signal according to the hard disk status signal to obtain a reference level.
[0642] Optionally, the hard disk is also configured to: when the hard disk status signal switches from a constant level signal to a square wave signal, and the level type of the target level is opposite to that of the constant level signal, a reference pulse is obtained by modulating the square wave signal according to the hard disk status signal after the target level.
[0643] Optionally, the baseboard management controller demodulates the first signal to obtain hard disk log data, including: the baseboard management controller measures the level width in the first signal that falls within the target width range to obtain corresponding digital data, and parses the digital data into hard disk log data, wherein the target width range is a width range obtained by the level width of the corresponding digital data.
[0644] Optionally, the baseboard management controller measures the level width in the first signal that falls within the target width range to obtain corresponding digital data, and parses the digital data into hard disk log data, including: the baseboard management controller measures the level width of the current level in the first signal; the baseboard management controller detects whether the level width of the current level falls within the target width range; when the level width of the current level falls within the target width range, the baseboard management controller determines the level width of the current level as the digital data corresponding to the current level; the baseboard management controller searches for the data code corresponding to the digital data corresponding to the current level from the digital data and data codes with a corresponding relationship to obtain the hard disk log data.
[0645] Optionally, after detecting whether the level width of the current level falls within the target width range, if the level width of the current level does not fall within the target width range, the baseboard management controller discards the level width of the target level.
[0646] Optionally, the baseboard management controller demodulates the first signal to obtain hard disk log data, including: the baseboard management controller measures the level width of the level belonging to the target type in the first signal to obtain corresponding digital data, and parses the digital data into hard disk log data, wherein the target type is the level type in the first signal that is allowed to carry hard disk log data.
[0647] Optionally, after measuring the level width of the level belonging to the target type in the first signal to obtain corresponding digital data, and before parsing the digital data into hard disk log data, the baseboard management controller determines the hard disk status based on the level in the first signal; the baseboard management controller determines the target type based on the hard disk status.
[0648] Optionally, the baseboard management controller determines the hard disk status based on the level in the first signal, including: the baseboard management controller detects the level width of the inverted level signal in the first signal, wherein the hard disk status signal is a constant level signal used to indicate that the hard disk is in an idle state, and the inverted level signal is a level in the opposite direction to the constant level signal; the baseboard management controller determines the hard disk status based on the level width of the inverted level signal.
[0649] Optionally, the baseboard management controller determines the target type according to the hard disk status, including: when the hard disk status is an idle state, the baseboard management controller determines the target type to be a level type in the same direction as the constant level signal.
[0650] Optionally, the baseboard management controller determines the target type according to the hard disk status, including: when the hard disk status is active, the baseboard management controller determines the target type as a high level type and a low level type.
[0651] Optionally, the baseboard management controller is also configured to send pin configuration information to the hard disk so that the hard disk determines the hard disk status pin for outputting hard disk log data and the modulation configuration information of the first signal based on the pin configuration information. Please refer to the above description for details and will not be repeated here.
[0652] As mentioned above, the baseboard management controller is further configured to send pin configuration information to the hard disk. The optional process includes:
[0653] When the hard drive status data obtained from demodulating the first signal is non-control data or the demodulated first signal does not contain hard drive status data, and the current time is within the negotiated time period agreed upon with the hard drive, the baseboard management controller sends a reverse transmission request to the hard drive status pin. Upon receiving a permission signal from the hard drive, the baseboard management controller transmits pin configuration information to the hard drive via the hard drive status pin. The detailed description is provided above and is not repeated here.
[0654] In combination with the above-mentioned hard disk monitoring system, and / or any embodiment of the baseboard management control, the hard disk monitoring method provided in the embodiment of the present application is described below with reference to the accompanying drawings.
[0655] FIG10 is a flowchart of a first hard disk monitoring method provided in an embodiment of the present application.
[0656] It should be noted that the hard drive monitoring method shown in FIG10 is a method applied to a baseboard management controller. In the embodiments of the present application, the baseboard management controller is the same as the baseboard management controller mentioned in the hard drive monitoring system in the embodiments above, that is, it can include only a baseboard management controller chip, or it can be a system including a baseboard management controller and a complex programmable logic device. The complex programmable logic device can be a complex programmable logic device located only on the hard drive backplane or a complex programmable logic device located on the mainboard.
[0657] As shown in FIG10 , the hard disk monitoring method provided by the embodiment of the present application, applied to a baseboard management controller, includes:
[0658] S1: Receive a first signal output by a hard disk status pin of a hard disk, which is modulated according to hard disk log data and a hard disk status signal corresponding to the hard disk status pin.
[0659] In an optional embodiment, a hard disk log data packaging method (writing hard disk log data into data packets) and a modulation method (converting digital signals into analog signals) are deployed on the hard disk.
[0660] To implement out-of-band monitoring of each hard disk, the baseboard management controller first needs to identify the hard disks in the server that have out-of-band monitoring capabilities. The system startup controller in the server detects each hard disk during the initialization phase to detect those with out-of-band monitoring capabilities.
[0661] It should be noted that during the initialization phase, in addition to detecting whether each hard disk has the out-of-band monitoring function, the system startup controller uses the hard disk with the out-of-band monitoring function as the target hard disk and also needs to detect whether the baseboard management controller supports the out-of-band monitoring function. Based on the detection result, it is determined whether to enable the out-of-band monitoring function. This application discloses an execution process of the system startup controller during the initialization phase, including:
[0662] When the server is powered on, the system startup controller is used to detect the version numbers of the baseboard management controller and the hard disk, and based on the version numbers, it is determined whether the baseboard management controller and the hard disk both support the out-of-band monitoring function;
[0663] If the system startup controller determines that both the baseboard management controller and the hard disk support the out-of-band monitoring function, the hard disk is used as the target hard disk, the out-of-band monitoring functions of the baseboard management controller and the target hard disk are enabled, and information of the target hard disk is sent to the baseboard management controller so that the baseboard management controller obtains the hard disk log data of the target hard disk;
[0664] If the baseboard management controller or hard disk does not support the out-of-band monitoring function, the out-of-band monitoring function of the baseboard management controller and hard disk is disabled.
[0665] It should be noted that after the server is powered on, the system startup controller is used to detect the version numbers of the baseboard management controller and the hard disk, and based on the version numbers, it is determined whether the baseboard management controller and the hard disk both support the out-of-band monitoring function.
[0666] It is understandable that the hard disk and baseboard management controller need to be debugged and configured in advance so that the hard disk out-of-band monitoring system composed of the hard disk and the baseboard management controller can have the out-of-band monitoring functions they need, so that the entire system can operate normally. And after the debugging and configuration are completed, their respective version numbers are modified so that after checking the corresponding version numbers later, it is considered that the hard disk and the baseboard management controller support the out-of-band monitoring function. Among them, for the hard disk, compared with the original hard disk that only uses the hard disk status pin to output the corresponding hard disk status signal, it needs to support the modulation of the hard disk log data and the hard disk status signal corresponding to the hard disk status pin and then output the corresponding target signal; for the baseboard management controller, it needs to support the demodulation of the target signal according to the corresponding signal demodulation rules to obtain the hard disk log data, and then perform out-of-band monitoring of the target hard disk based on the hard disk log data.
[0667] It's important to note that existing out-of-band monitoring solutions all assume that the hard drive transmits log data via its designated data pins, while the hard drive status pins only need to perform the corresponding status indication function. Therefore, since this application adds the ability to output log data using the hard drive status pins, and the baseboard management controller (BMC) adds the ability to demodulate the hard drive output signal to obtain log data and parse the data, it is necessary to use the system startup controller to detect the version numbers of the hard drive and BMC.
[0668] In an embodiment of the present application, if the system startup controller determines that both the baseboard management controller and the hard disk support the out-of-band monitoring function, the hard disk is designated as the target hard disk and the out-of-band monitoring function of the baseboard management controller and the target hard disk is enabled. In other words, the out-of-band monitoring function of the baseboard management controller and the target hard disk is enabled only if both the baseboard management controller and the hard disk support the out-of-band monitoring function. The system startup controller then sends the target hard disk information to the baseboard management controller so that the baseboard management controller can obtain the hard disk log data of the target hard disk.
[0669] In the embodiments of the present application, if the baseboard management controller or the hard disk does not support the out-of-band monitoring function, the out-of-band monitoring function of the baseboard management controller and the hard disk is disabled. It should be noted that the out-of-band monitoring function of the baseboard management controller and the hard disk is disabled by default. That is, if one of the baseboard management controller and the hard disk does not support the out-of-band monitoring function, the out-of-band monitoring function of both cannot be enabled.
[0670] Optionally, the system boot controller can be constructed based on the Unified Extensible Firmware Interface (UEFI) or the Basic Input Output System (BIOS), and the baseboard management controller includes a baseboard management controller (BMC) chip and / or a complex programmable logic device (CPLD). That is, in the embodiment of the present application, the BIOS or UEFI can detect whether both the baseboard management controller and the hard disk support the out-of-band monitoring function during the initialization phase.
[0671] In an optional embodiment, when the system startup controller is constructed based on the unified extensible firmware interface, the process of using the system startup controller to detect the version number of the baseboard management controller includes: in the driver execution environment stage of the system startup controller, using the system startup controller to send a target request for obtaining the version number of the baseboard management controller and / or the complex programmable logic device to the baseboard management controller through the intelligent platform management interface; obtaining, through the system startup controller, the version number returned by the baseboard management controller after responding to the target request; wherein, the process of the baseboard management controller responding to the target request includes: the baseboard management controller reads a first version number corresponding to the baseboard management controller from a first register configured to store the version number according to the target request, and / or reads a second version number corresponding to the complex programmable logic device, and sends the read first version number and / or second version number to the system startup controller.
[0672] It should be noted that the UEFI system can be divided into seven stages from power-on to shutdown. These stages are: Security Verification (SEC), Pre Extensible Firmware Interface Initialization (PEI), Driver Execution Environment (DXE), Boot Device Select (BDS), Transient System Load (TSL), System Run Time (RT), and System Disaster Recovery or Shutdown (After Life, AL). In the DXE stage of UEFI, UEFI uses the Intelligent Platform Management Interface (IPMI) to request the baseboard management controller to obtain the version number of the baseboard management controller and / or the complex programmable logic device; the baseboard management controller reads the first version number corresponding to the baseboard management controller and / or the second version number corresponding to the complex programmable logic device from the first register configured to store the version number according to the target request, and sends the read first version number and / or second version number to UEFI.
[0673] Optionally, the present application can implement a security verification mechanism in a system boot controller built on UEFI to ensure that the version number received from the baseboard management controller is credible. Optionally, it is necessary to create a set of key pairs for signing and verification. A set of predefined public keys are embedded in UEFI to verify the signatures of external providers. Correspondingly, the baseboard management controller needs to use the corresponding private key to sign the version number information that needs to be sent to the system boot controller, and these signatures ensure the security and integrity of the information. During the UEFI boot process, the signature of the baseboard management controller firmware is verified by the UEFI firmware to determine whether the version number is credible based on the signature. In addition, the present application uses an encryption protocol to pre-create a secure channel between the baseboard management controller and the system boot controller built on UEFI, so as to achieve secure communication between the system boot controller and the baseboard management controller based on the secure channel.
[0674] Accordingly, the system startup controller determines whether the baseboard management controller supports the data monitoring function based on the version number, including: determining a first preset version number corresponding to the baseboard management controller, if the first version number is not lower than the first preset version number, determining that the baseboard management controller supports the data monitoring function; wherein, the first preset version number is the minimum version number of the baseboard management controller supporting the data monitoring function; and / or, determining a second preset version number corresponding to the complex programmable logic device, if the second version number is not lower than the second preset version number, determining that the complex programmable logic device supports the data monitoring function; wherein, the second preset version number is the minimum version number of the complex programmable logic device supporting the data monitoring function.
[0675] It should be pointed out that the out-of-band monitoring function mainly refers to the data monitoring function, that is, the system startup controller determines whether the baseboard management controller and the complex programmable logic device support the out-of-band monitoring function, mainly to determine whether they support the function of monitoring the hard disk log data (i.e., the data monitoring function). It is understandable that the hard disk out-of-band monitoring is mainly the monitoring of the hard disk log data, and the present application has added the function of outputting the hard disk log data by using its hard disk status pin for the hard disk; for the baseboard management controller, if the baseboard management controller includes a baseboard management controller and a complex programmable logic device, then for the complex programmable logic device, it needs to support the functions of signal demodulation and storage of hard disk log data, and for the baseboard management controller, it needs to support the function of reading the hard disk log data in the complex programmable logic device and parsing. Therefore, the present application detects the version number in order to see whether the current version of the baseboard management controller and / or the complex programmable logic device supports the above-mentioned function of monitoring the hard disk log data.
[0676] In addition, to determine whether the baseboard management controller and complex programmable logic device support the data monitoring function, their current version number is compared with the minimum version number that supports the out-of-band monitoring function. If the current version number is not lower than the minimum version number, it means that the baseboard management controller and complex programmable logic device support the data monitoring function.
[0677] Optionally, if the baseboard management controller does not read the first version number from the first register, or the system startup controller does not obtain the first version number sent by the baseboard management controller, the system startup controller detects whether there is a hard disk data display component on the web interface of the baseboard management controller. If there is a hard disk data display component, it is determined that the baseboard management controller supports the out-of-band monitoring function.
[0678] It should be noted that, for situations where some baseboard management controllers cannot find the version number from the first register, or the system startup controller cannot obtain the version number of the baseboard management controller, the embodiment of the present application also provides another method for confirming whether the baseboard management controller supports the out-of-band monitoring function. The web interface of the baseboard management controller is provided with a hard disk data display component, which can display the obtained hard disk log data on the screen in real time. When the system startup controller cannot obtain the baseboard management controller version number, it will detect whether there is a hard disk data display component in the corresponding position of the web interface of the baseboard management controller. If it exists, it is considered that the baseboard management controller supports this system function.
[0679] Optionally, if the baseboard management controller does not read the second version number from the first register, or the system startup controller does not obtain the second version number sent by the baseboard management controller, the system startup controller reads the memory size occupied by the code of the complex programmable logic device from the second register in the complex programmable logic device. If the memory size occupied by the code is the same as the code development size of the complex programmable logic device, it is determined that the complex programmable logic device supports the out-of-band monitoring function.
[0680] It should be noted that, in the event that the version number of a certain complex programmable logic device cannot be found from the first register, or the system startup controller cannot obtain the version number of the complex programmable logic device, an embodiment of the present application also provides another method for confirming whether the complex programmable logic device supports the out-of-band monitoring function. The complex programmable logic device is provided with a second register configured to store the memory size occupied by the code of the complex programmable logic device. When the system startup controller cannot obtain the version number of the complex programmable logic device, it will read the memory size occupied by the code of the complex programmable logic device from the second register. If the memory size occupied by the code is the same as the code development size of the complex programmable logic device, it is determined that the complex programmable logic device supports the out-of-band monitoring function.
[0681] In an optional embodiment, when the system boot controller is constructed based on the unified extensible firmware interface, the process of using the system boot controller to detect the version number of the hard disk includes: in the driver execution environment stage of the system boot controller, using the system boot controller to poll all hard disks to obtain the third version number, vendor identifier and organization unique identifier corresponding to each hard disk; accordingly, determining whether the hard disk supports the data monitoring function based on the version number includes: determining whether the hard disk supports the data monitoring function based on the third version number, vendor identifier and organization unique identifier.
[0682] Similar to the process of detecting the baseboard management controller, the system startup controller determines whether the hard disk supports the out-of-band monitoring function, mainly to determine whether the hard disk supports the data monitoring function, that is, whether it can use its hard disk status pin to output the hard disk log data. In the DXE stage of UEFI, UEFI can poll all hard disks through the PCIe bus and determine whether the hard disk supports the data monitoring function through the ATA (Advanced Technology Attachment) Pass Through command. Optionally, UEFI polls all hard disks to obtain the third version number, vendor ID and organizationally unique identifier (OUI) corresponding to each hard disk, and then determines whether the hard disk supports the data monitoring function based on the third version number, vendor ID and organizationally unique identifier.
[0683] Optionally, the above-mentioned determination of whether the hard disk supports the data monitoring function based on the third version number, the supplier identifier and the organization unique identifier includes: determining the third preset version number corresponding to the hard disk based on the supplier identifier and the organization unique identifier; the third preset version number is the lowest version number of the hard disk supporting the data monitoring function; if the third version number is not lower than the third preset version number, and the format of the hard disk management log of the hard disk is correct, it is determined that the hard disk supports the data monitoring function.
[0684] It is understandable that when the system startup controller determines whether the hard disk supports the data monitoring function, it also compares the version number of each hard disk with the minimum version number that supports the out-of-band monitoring function. If the current version number is not lower than the minimum version number and the format of the hard disk management log of the hard disk is correct, it is determined that the hard disk supports the data monitoring function.
[0685] S2: Demodulate the first signal to obtain hard disk log data;
[0686] Deploying demodulation (converting analog signals into digital signals) and parsing (parsing data packets to obtain hard disk log data) methods in the baseboard management controller can enable the hard disk to directly output hard disk log data to the baseboard management controller.
[0687] Optionally, the hard disk log data may include a complete hard disk log, that is, a log formed by the hard disk controller of the hard disk recording its own operating status data (temperature, number of bad sectors, cumulative number of errors, etc.) on time; the hard disk log data may also be partial hard disk monitoring data, that is, the hard disk controller of the hard disk can output some pre-agreed or baseboard management controller specified type of hard disk monitoring data through the hard disk status pin.
[0688] It can be understood that the rate at which the hard disk outputs hard disk log data through the hard disk status pin is different depending on the type of hard disk status pin selected, the way in which the hard disk status pin outputs the hard disk status signal, and the modulation method when the hard disk status pin is used to output hard disk log data. To ensure the real-time nature of the hard disk log data, the type, data volume, and output frequency of the output hard disk log data can be determined based on the rate at which the hard disk affected by the implementation scheme outputs hard disk log data through the hard disk status pin. For example, the hard disk can be set to output complete hard disk log data once every fixed period, and when a certain hard disk monitoring data is abnormal, the abnormal monitoring data will be sent outside the fixed sending period.
[0689] S3: Monitor the hard disk based on the hard disk log data.
[0690] In out-of-band monitoring, the baseboard management controller provides network services for operation and maintenance equipment to access the baseboard management controller of the monitored device to obtain hard disk log data, and provides a web page to display the monitoring page. In the embodiment provided by the present application, after obtaining the hard disk log data provided by the hard disk, the baseboard management controller can read the monitoring data items from the hard disk log data according to the pre-deployed monitoring list, and monitor the specific monitoring data items according to the value of each monitoring data item and its corresponding allowable range in the monitoring list. The monitoring data items may include temperature, number of bad sectors, cumulative number of errors, etc. When there are monitoring data items that exceed the allowable range, the operation and maintenance commands recorded in the monitoring list are executed, such as generating a fault log, sending an alarm message to the system administrator, controlling the fan to cool the hard disk, etc.
[0691] The baseboard management controller can also integrate sensors on the hard drive backplane to collect external hard drive status information, thereby enabling comprehensive analysis of the hard drive's operating status in conjunction with the hard drive's log data. For example, if the baseboard management controller detects an abnormal hard drive temperature using an external temperature sensor, it can verify the normal operation of the hard drive's temperature self-test function by combining temperature monitoring items in the hard drive log data at that time. It can also diagnose the cause of the abnormal hard drive temperature by combining other monitoring data items in the hard drive log data at that time.
[0692] After the baseboard management controller completes the analysis of the hard disk log data, it can also be configured to display the obtained hard disk monitoring results in the form of charts on the baseboard management controller web page. Operation and maintenance personnel can intuitively view the hard disk monitoring results by logging into the baseboard management controller web page.
[0693] In the embodiment of the present application, the interaction process between the baseboard management controller and the hard disk is mainly described from the perspective of the baseboard management controller. Therefore, the contents related to the baseboard management controller and the hard disk can be referred to the description of the hard disk monitoring system side or the baseboard management controller side, and will not be repeated in the embodiment of the present application.
[0694] Optionally, the first signal carries the modulated hard disk log data and the hard disk status signal at the same time. It is understood that the first signal here carries both the hard disk log data and the hard disk status signal at the same time. For details, please refer to the description of the simultaneous carrying method above, which will not be repeated here.
[0695] Optionally, the first signal may be of various types, for example, the first signal may be a signal including both a high level and a low level. In some optional implementations of the embodiments of the present application, the level width of the first signal may be set to correspond to a data bit in the hard disk log data, and the high and low level changes in the first signal may correspond to the hard disk status signal.
[0696] In some optional implementations of the embodiments of the present application, the level width of the first signal corresponds to the data bits in the hard disk log data, and the constant level signal that accounts for a relatively large proportion in the signal period of the first signal corresponds to the hard disk status signal.
[0697] Optionally, the hard disk status signal is a constant level signal, and the first signal is a signal obtained by the hard disk converting hard disk log data into a signal of corresponding level width, generating an inverted signal of the constant level signal according to the signal corresponding to the hard disk log data, and then inserting the inverted signal into the constant level signal;
[0698] The proportion of the inverted level signal compared to the constant level signal in each cycle of the first signal is less than 50%.
[0699] In addition, the hard disk status signal includes only one constant level signal, or the hard disk status signal includes a constant high level signal and a constant low level signal;
[0700] The first signal is a signal obtained by modulating the hard disk log data into a signal with a corresponding level width according to the signal corresponding to the hard disk log data and the hard disk status signal;
[0701] If the hard disk status signal is a constant high level signal, the duty cycle of each cycle of the first signal is greater than 50%;
[0702] If the hard disk status signal is a constant low-level signal, the duty cycle of each period of the first signal is less than 50%.
[0703] The above description is for one type of hard disk status signal. In an optional embodiment, the hard disk status signal includes different types of signals. Optionally, the hard disk status signal includes a square wave signal and a constant level signal.
[0704] The first signal is a signal obtained by modulating the hard disk log data into a signal with a corresponding level width according to the signal corresponding to the hard disk log data and the hard disk status signal;
[0705] When the hard disk status signal is a square wave signal, the maximum duty cycle in the signal period of the hard disk log data is smaller than the first duty cycle, and / or the minimum duty cycle of the first signal is larger than the second duty cycle;
[0706] The first duty cycle is a minimum duty cycle in the first signal corresponding to the constant level signal if the constant level signal is a constant high level signal;
[0707] The second duty cycle is the maximum duty cycle of the first signal corresponding to the constant level signal if the constant level signal is a constant low level signal.
[0708] In an optional embodiment, in addition to the situation in which the first signal carries the modulated hard disk log data and the hard disk status signal at the same time as mentioned in the above embodiment, it can also carry the modulated hard disk log data and the hard disk status signal in time-sharing. It can be: the first signal carries the modulated hard disk log data and the hard disk status signal in time-sharing. For details, please refer to the description of the time-sharing carrying method in the above part.
[0709] In the case where the first signal carries both the modulated hard disk log data and the hard disk status signal, in an optional embodiment, the baseboard management controller may only demodulate the hard disk log data, that is, demodulate the first signal to obtain the hard disk log data. This step includes:
[0710] The corresponding digital data is obtained by measuring the pulse width of each cycle of the first signal, and the digital data is parsed into hard disk log data. The specific process is described above and will not be repeated here.
[0711] In the case where the first signal carries both modulated hard disk log data and hard disk status signal, the baseboard management controller is further configured to demodulate the hard disk status data from the signal period of the hard disk log data according to the signal type of the hard disk status signal.
[0712] Regarding the process of the substrate controller demodulating the hard disk status data, this application provides the following demodulation methods:
[0713] In an optional embodiment, the signal type of the hard disk status signal includes a square wave signal;
[0714] According to the signal type of the hard disk status signal, the hard disk status data is demodulated from the signal period of the hard disk log data, including:
[0715] The hard disk status data is demodulated according to the high and low level changes in the first signal.
[0716] It is understandable that this demodulation method corresponds to the modulation method of the hard disk status signal mentioned above, including the square wave signal.
[0717] In an optional implementation manner, demodulating hard disk status data according to high and low level changes in the first signal includes:
[0718] After demodulating to obtain the hard disk log data, the first signal of each period of the first signal is replaced with a square wave signal to obtain a hard disk status signal;
[0719] The hard disk status data is obtained by demodulating the hard disk status signal.
[0720] It can be understood that this demodulation method corresponds to the modulation method of the hard disk status signal mentioned above through high and low level changes.
[0721] In an optional implementation manner, demodulating hard disk status data according to high and low level changes in the first signal includes:
[0722] After demodulating and obtaining the hard disk log data, the pulse width of each cycle of the first signal is adjusted according to the pulse width of the corresponding square wave signal to obtain a hard disk status signal;
[0723] The hard disk status data is obtained by demodulating the hard disk status signal.
[0724] It can be understood that this demodulation method corresponds to the method of adjusting the pulse width mentioned above.
[0725] In an optional embodiment, the signal type of the hard disk status signal includes a constant level signal;
[0726] According to the signal type of the hard disk status signal, the hard disk status data is demodulated from the signal period of the hard disk log data, including:
[0727] The hard disk status data is demodulated according to the constant level signal that accounts for a relatively large proportion in the signal period of the first signal.
[0728] In an optional implementation manner, demodulating the hard disk status data based on the constant-level signal that accounts for a relatively large proportion in the signal period of the first signal includes:
[0729] After demodulating to obtain the hard disk log data, the first signal is replaced with a constant level signal that accounts for a relatively large proportion of the signal period of the first signal to obtain a hard disk status signal;
[0730] The hard disk status data is obtained by demodulating the hard disk status signal.
[0731] In an optional implementation manner, demodulating the hard disk status data based on the constant-level signal that accounts for a relatively large proportion in the signal period of the first signal includes:
[0732] After demodulating to obtain the hard disk log data, the inverted signal corresponding to the constant-level signal with a larger proportion in the signal period of the first signal is replaced with the constant-level signal with a larger proportion in the signal period of the first signal to obtain the hard disk status signal;
[0733] The hard disk status data is obtained by demodulating the hard disk status signal.
[0734] In an optional embodiment, the signal type of the hard disk status signal includes only a constant level signal, or the signal type of the hard disk status data includes a constant high level signal and a constant low level signal;
[0735] According to the signal type of the hard disk status signal, the hard disk status data is demodulated from the signal period of the hard disk log data, including:
[0736] After demodulating and obtaining the hard disk log data, the signal period of the first signal with a duty cycle greater than 50% is restored to a constant high-level signal, and the signal period of the first signal with a duty cycle less than 50% is restored to a constant low-level signal to obtain the hard disk status signal;
[0737] The hard disk status data is obtained by demodulating the hard disk status signal.
[0738] In an optional embodiment, the signal type of the hard disk status signal includes a square wave signal and a constant level signal;
[0739] According to the signal type of the hard disk status signal, the hard disk status data is demodulated from the signal period of the hard disk log data, including:
[0740] If the constant-level signal is a constant high-level signal, after demodulating to obtain the hard disk log data, restore the signal period of the first signal with a duty cycle less than the first duty cycle to a square wave signal, and restore the signal period of the first signal with a duty cycle greater than the first duty cycle to a constant high-level signal, to obtain the hard disk status signal;
[0741] If the constant-level signal is a constant low-level signal, after demodulating to obtain the hard disk log data, the signal period in the first signal where the duty cycle is greater than the second duty cycle is restored to a square wave signal, and the signal period in the first signal where the duty cycle is less than the second duty cycle is restored to a constant low-level signal to obtain the hard disk status signal;
[0742] If the constant-level signal includes a constant high-level signal and a constant low-level signal, after demodulating to obtain the hard disk log data, restoring a signal period in the first signal whose duty cycle is less than the first duty cycle and greater than the second duty cycle into a square wave signal, restoring a signal period in the first signal whose duty cycle is greater than the first duty cycle into a constant high-level signal, and restoring a signal period in the first signal whose duty cycle is less than the second duty cycle into a constant low-level signal, thereby obtaining the hard disk status signal;
[0743] The hard disk status data is obtained by demodulating the hard disk status signal.
[0744] Finally, based on the time-sharing transmission of the first signal, the baseboard management controller demodulates the signal modulated by the hard disk. Demodulating the first signal to obtain hard disk log data includes:
[0745] After demodulating the first signal to obtain hard disk status data according to the signal type of the hard disk status signal, demodulating the signal period of the first signal that does not match the signal type of the hard disk status signal to obtain hard disk log data;
[0746] Alternatively, the corresponding digital data is obtained by measuring the pulse width of each period of the first signal, parsing the digital data into hard disk log data, and demodulating the hard disk status data according to the period in which the pulse width does not correspond to the digital data.
[0747] The above description primarily describes the hard drive monitoring method from the perspective of the baseboard management controller, including simultaneous and time-sharing transmission of the first signal, as well as the corresponding demodulation methods for different types of hard drive status signals. For any incomplete information, please refer to the description of the hard drive monitoring system in this application. Based on this, the baseboard management controller, as a key component of the entire hard drive monitoring system, is also configured to perform other control tasks, optionally including:
[0748] The state control circuit is controlled according to the hard disk state data to drive the controlled element corresponding to the hard disk state pin.
[0749] In an optional embodiment, the hard disk status pin is a hard disk status indicator light control pin, and the status control circuit is an amplifying drive circuit;
[0750] The state control circuit is controlled according to the hard disk state data to drive the controlled component corresponding to the hard disk state pin, including:
[0751] When the hard disk status data obtained by demodulating the first signal is a lighting command, the amplifying driving circuit is controlled to generate a square wave signal to light up the hard disk status indicator light corresponding to the hard disk status pin;
[0752] When the hard disk status data obtained by demodulating the first signal is a light-off command, the control amplifying driving circuit is stopped to generate a square wave signal to turn off the hard disk status indicator light.
[0753] In the case where the baseboard management controller includes a baseboard management controller chip and a complex programmable logic device, the baseboard management controller demodulates the first signal to obtain hard disk log data, including:
[0754] The complex programmable logic device demodulates the first signal to obtain hard disk log data, and sends an interrupt signal to the baseboard management controller chip through an interrupt signal line;
[0755] Monitor hard disks based on hard disk log data, including:
[0756] After receiving the interrupt signal, the baseboard management controller chip reads the hard disk log data from the complex programmable logic device through the integrated circuit bus and performs hard disk monitoring according to the hard disk log data.
[0757] Optionally, this embodiment is based on the architecture of a baseboard management controller chip and a complex programmable logic device, and the complex programmable logic device uses an interrupt method to notify the baseboard management controller chip to read the hard disk log collected by the complex programmable logic device.
[0758] In addition, the baseboard management controller includes a baseboard management controller chip and a complex programmable logic device;
[0759] Demodulate the first signal to obtain hard disk log data, including:
[0760] The complex programmable logic device demodulates the first signal to obtain hard disk log data;
[0761] Monitor hard disks based on hard disk log data, including:
[0762] The baseboard management controller chip is configured to poll the integrated circuit bus, and when polling the complex programmable logic device, read the hard disk log data and perform hard disk monitoring according to the hard disk log data.
[0763] Optionally, this embodiment is based on the architecture of a baseboard management controller chip and a complex programmable logic device, and the baseboard management controller chip uses a polling method to read the hard disk log collected by the complex programmable logic device.
[0764] As an optional implementation, since hard drive log data may be lost or mis-transmitted during transmission, it is necessary to promptly remind the hard drive to retransmit this hard drive log data to improve the real-time performance of out-of-band hard drive monitoring. If multiple hard drive status pins are connected to the baseboard management controller, some of the hard drive status pins can be configured to output a first signal carrying hard drive log data, while other hard drive status pins can be configured to receive control commands from the baseboard management controller. These control commands can include at least one of resending a hard drive log command, sending a hard drive log command in advance, and sending specified hard drive log data.
[0765] However, in actual applications, there may not be multiple hard disk status pins that can be connected to the baseboard management controller. For example, there may be only one hard disk status pin connected to the baseboard management controller. In this case, a negotiation method is required to enable the baseboard management controller to reversely transmit control commands between the outputs of the first signal from the hard disk status pin. Therefore, the hard disk monitoring method provided in the embodiment of the present application also includes:
[0766] When the hard disk status data obtained by demodulating the first signal is non-control data or the demodulated first signal does not include hard disk status data, and the current moment is the negotiation time period agreed with the hard disk, a reverse transmission request is sent to the hard disk status pin, and when the permission signal sent by the hard disk is received, a control command for the hard disk is sent to the hard disk status pin.
[0767] Optionally, demodulating the first signal to obtain hard disk log data includes: obtaining corresponding digital data by measuring the pulse amplitude of the first signal, and parsing the digital data into hard disk log data.
[0768] Optionally, demodulating the first signal to obtain hard disk log data includes: measuring the level width in the first signal that falls within a target width range to obtain corresponding digital data, and parsing the digital data into hard disk log data, wherein the target width range is a width range obtained by having a level width of corresponding digital data.
[0769] Optionally, measuring the level width in the first signal that falls within the target width range to obtain corresponding digital data, and parsing the digital data into hard disk log data, includes: measuring the level width of the current level in the first signal; detecting whether the level width of the current level falls within the target width range; when the level width of the current level falls within the target width range, determining the level width of the current level as the digital data corresponding to the current level; searching for the data code corresponding to the digital data corresponding to the current level from the digital data and data codes with a corresponding relationship to obtain the hard disk log data.
[0770] Optionally, after detecting whether the level width of the current level falls within the target width range, the method further includes: if the level width of the current level does not fall within the target width range, discarding the level width of the target level.
[0771] Optionally, demodulating the first signal to obtain hard disk log data includes: measuring the level width of the level belonging to the target type in the first signal to obtain corresponding digital data, and parsing the digital data into hard disk log data, wherein the target type is the level type in the first signal that is allowed to carry hard disk log data.
[0772] Optionally, before measuring the level width of the level belonging to the target type in the first signal to obtain corresponding digital data and parsing the digital data into hard disk log data, it also includes: determining the hard disk status according to the level in the first signal; determining the target type according to the hard disk status.
[0773] Optionally, determining the hard disk status based on the level in the first signal includes: detecting the level width of the inverted level signal in the first signal, wherein the hard disk status signal is a constant level signal used to indicate that the hard disk is in an idle state, and the inverted level signal is a level in the opposite direction to the constant level signal; determining the hard disk status based on the level width of the inverted level signal.
[0774] Optionally, determining the target type according to the hard disk state includes: when the hard disk state is an idle state, determining the target type to be a level type in the same direction as the constant level signal.
[0775] Optionally, determining the target type according to the hard disk status includes: when the hard disk status is active, determining the target type as a high-level type or a low-level type.
[0776] Since the content of this section is the same as that mentioned in the hard disk monitoring system section, please refer to the above for details and will not be repeated here.
[0777] It can be understood that the control command mentioned above includes at least one of resending the hard disk log command, sending the hard disk log command in advance, and sending specified hard disk log data.
[0778] Optionally, the hard disk monitoring method further includes:
[0779] The pin configuration information is sent to the hard disk, so that the hard disk determines the hard disk status pin for outputting the hard disk log data and the modulation configuration information of the first signal according to the pin configuration information.
[0780] Optionally, send pin configuration information to the hard drive, including:
[0781] When the hard disk status data obtained by demodulating the first signal is non-control data or the demodulated first signal does not include hard disk status data, and the current moment is the negotiation time period agreed with the hard disk, a reverse transmission request is sent to the hard disk status pin, and when the permission signal sent by the hard disk is received, pin configuration information is sent to the hard disk through the hard disk status pin.
[0782] The above describes a hard drive monitoring method in detail from the perspective of a baseboard management controller. Based on this, this application also provides another hard drive monitoring method, described from the perspective of a hard drive. Figure 11 is a flow chart of the second hard drive monitoring method provided in an embodiment of this application. As shown in Figure 11, a hard drive monitoring method includes:
[0783] S4: Modulating the hard disk status signal corresponding to the hard disk status pin to obtain a first signal according to the hard disk log data;
[0784] S5: Sending the first signal to the baseboard management controller via the hard disk status pin, so that the baseboard management controller demodulates the first signal to obtain hard disk log data and then monitors the hard disk according to the hard disk log data.
[0785] FIG12 is a flowchart of a third hard disk monitoring method provided in an embodiment of the present application.
[0786] As shown in FIG12 , an embodiment of the present application provides a hard disk monitoring method for monitoring a hard disk using a baseboard management controller chip and a complex programmable logic device.
[0787] First, the system startup controller detects whether the hard disk, baseboard management controller chip, and complex programmable logic device all support the out-of-band monitoring function, and receives the results of the hard disk, baseboard management controller chip, and complex programmable logic device supporting the out-of-band monitoring function. The present embodiment does not limit whether the system startup controller detects the hard disk first or the baseboard management controller chip and complex programmable logic device first. Both can be detected simultaneously or in a specified order. Figure 12 is only a specific example provided for the convenience of describing the process of this solution.
[0788] Optionally, if the hard disk, baseboard management controller chip, and complex programmable logic device all support out-of-band monitoring, the out-of-band monitoring function of the hard disk, baseboard management controller chip, and complex programmable logic device is enabled, and the function enabling result is returned. Similarly, the embodiment of the present application does not limit whether the system startup controller first enables the out-of-band monitoring function of the hard disk or the out-of-band monitoring function of the baseboard management controller chip and complex programmable logic device. Both can be enabled simultaneously or in a prescribed order. Figure 12 is only a specific example provided for the convenience of describing the process of this solution.
[0789] After the out-of-band monitoring functions of the hard disk, baseboard management controller chip and complex programmable logic device are enabled, the hard disk can execute the step of transmitting the hard disk log data outward so that the baseboard management controller chip and complex programmable logic device can perform out-of-band monitoring of the hard disk.
[0790] Optionally, the hard disk modulates the hard disk status signal corresponding to the hard disk log data and the hard disk status pin to output a target signal to the complex programmable logic device. The complex programmable logic device demodulates the target signal to obtain the hard disk log data and stores it locally, and sends an interrupt signal to the baseboard management controller chip to remind the baseboard management controller chip to read the data. The baseboard management controller chip responds to the interrupt signal and reads the hard disk log data from the complex programmable logic device, and then displays it on its target interface, and issues a warning prompt when the hard disk log data does not meet the preset threshold conditions.
[0791] It is understandable that in the hard disk monitoring system mentioned above, the detailed contents of the baseboard management control and the hard disk are explained respectively, so they are not repeated here.
[0792] It should be noted that in the embodiments of the hard disk monitoring method of this application, some of the steps or features may be ignored or not executed. The hardware or software functional modules divided for the convenience of description are not the only implementation form of the hard disk monitoring method provided in the embodiments of this application.
[0793] As an optional implementation, the present application also discloses a hard disk monitoring device, equipment, and computer non-volatile readable storage medium corresponding to the above method.
[0794] The hard disk monitoring device provided in the embodiment of the present application is applied to a baseboard management controller, including:
[0795] A first receiving module is configured to receive a first signal output by a hard disk status pin of the hard disk, which is modulated according to hard disk log data and a hard disk status signal corresponding to the hard disk status pin;
[0796] A first demodulation module is configured to demodulate the first signal to obtain hard disk log data;
[0797] The monitoring module is configured to monitor the hard disk according to the hard disk log data.
[0798] Optionally, it also includes:
[0799] The second demodulation module is configured to demodulate the hard disk status data from the signal period of the hard disk log data according to the signal type of the hard disk status signal.
[0800] Optionally, it also includes:
[0801] The first control module is configured to control the state control circuit to drive the controlled element corresponding to the hard disk state pin according to the hard disk state data.
[0802] Optionally, it also includes:
[0803] The second control module is configured to send a reverse transmission request to the hard disk status pin when the hard disk status data obtained by demodulating the first signal is non-control data or the demodulated first signal does not include the hard disk status data, and the current moment is the negotiation time period agreed with the hard disk, and to send a control command to the hard disk to the hard disk status pin when receiving the permission signal sent by the hard disk.
[0804] Optionally, the first demodulation module is configured to obtain corresponding digital data by measuring the pulse amplitude of the first signal, and parse the digital data into hard disk log data.
[0805] Optionally, the first demodulation module is configured to: measure the level width in the first signal that falls within the target width range to obtain corresponding digital data, and parse the digital data into hard disk log data, wherein the target width range is the width range obtained with the level width of the corresponding digital data.
[0806] Optionally, the first demodulation module is configured to: measure the level width of the current level in the first signal; detect whether the level width of the current level falls within the target width range; when the level width of the current level falls within the target width range, determine the level width of the current level as the digital data corresponding to the current level; search for the data code corresponding to the digital data corresponding to the current level from the digital data and data codes with a corresponding relationship to obtain the hard disk log data.
[0807] Optionally, the first demodulation module is configured to: after detecting whether the level width of the current level falls within the target width range, discard the level width of the target level if the level width of the current level does not fall within the target width range.
[0808] Optionally, the first demodulation module is configured to: measure the level width of the level belonging to the target type in the first signal to obtain corresponding digital data, and parse the digital data into hard disk log data, wherein the target type is the level type in the first signal that is allowed to carry hard disk log data.
[0809] Optionally, the first demodulation module is configured to: measure the level width of the level belonging to the target type in the first signal to obtain corresponding digital data, and before parsing the digital data into hard disk log data, determine the hard disk status according to the level in the first signal; determine the target type according to the hard disk status.
[0810] Optionally, the first demodulation module is configured to: detect the level width of the inverted level signal in the first signal, wherein the hard disk status signal is a constant level signal used to indicate that the hard disk is in an idle state, and the inverted level signal is a level in the opposite direction to the constant level signal; determine the hard disk status based on the level width of the inverted level signal.
[0811] Optionally, the first demodulation module is configured to: when the hard disk state is an idle state, determine that the target type is a level type in the same direction as the constant level signal.
[0812] Optionally, the first demodulation module is configured to: when the hard disk state is an active state, determine the target type as a high level type and a low level type.
[0813] The hard disk monitoring device provided in the embodiment of the present application is applied to a hard disk, and includes:
[0814] A modulation module configured to modulate a hard disk status signal corresponding to a hard disk status pin and obtain a first signal according to hard disk log data;
[0815] The transmission module is configured to send the first signal to the baseboard management controller through the hard disk status pin, so that the baseboard management controller demodulates the first signal to obtain hard disk log data and then performs monitoring of the hard disk according to the hard disk log data.
[0816] It should be noted that in each embodiment of the hard disk monitoring device provided in the embodiment of the present application, the division of units is only a logical functional division, and other division methods can be adopted. The connection method between different units can adopt electrical, mechanical or other connection methods. The separated units can be located in the same physical location or distributed on multiple network nodes. Each unit can be implemented in the form of hardware or in the form of a software functional unit. That is, according to actual needs, some or all of the units provided in the embodiment of the present application can be selected and the corresponding connection method or integration method can be adopted to achieve the purpose of the embodiment of the present application.
[0817] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, and they will not be repeated here.
[0818] FIG13 is a schematic structural diagram of a hard disk monitoring device provided in an embodiment of the present application.
[0819] As shown in FIG13 , the hard disk monitoring device provided in the embodiment of the present application includes:
[0820] a memory 1110 configured to store a computer program 1111 ;
[0821] The processor 1120 is configured to execute a computer program 1111 , which, when executed by the processor 1120 , implements the steps of the hard disk monitoring method provided in any one of the above embodiments.
[0822] The processor 1120 may include one or more processing cores, such as a 3-core processor, an 8-core processor, etc. The processor 1120 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 1120 may also include a main processor and a coprocessor. The main processor is a processor configured to process data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor configured to process data in the standby state. In some optional embodiments, the processor 1120 may be integrated with a graphics processing unit (GPU), which is configured to be responsible for rendering and drawing the content to be displayed on the display screen. In some optional embodiments, the processor 1120 may also include an artificial intelligence (AI) processor, which is configured to process computing operations related to machine learning.
[0823] The memory 1110 may include one or more computer non-volatile readable storage media, which may be non-transitory. The memory 1110 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In an embodiment of the present application, the memory 1110 is at least configured to store the following computer program 1111, wherein, after the computer program 1111 is loaded and executed by the processor 1120, it can implement the relevant steps in the hard disk monitoring method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 1110 may also include an operating system 1112 and data 1113, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 1112 can be Windows, Linux hard disk monitoring or other types of operating systems. The data 1113 may include but is not limited to the data involved in the above method.
[0824] In some optional embodiments, the hard disk monitoring device may further include a display screen 1130 , a power supply 1140 , a communication interface 1150 , an input / output interface 1160 , a sensor 1170 , and a communication bus 1180 .
[0825] Those skilled in the art will appreciate that the structure shown in FIG. 13 does not limit the hard disk monitoring device and may include more or fewer components than shown in the figure.
[0826] The hard disk monitoring device provided in the embodiment of the present application includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the steps of the hard disk monitoring method provided in the above embodiment, and the effect is the same as above.
[0827] An embodiment of the present application provides a computer non-volatile readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the hard disk monitoring method provided in any one of the above embodiments can be implemented.
[0828] The computer non-volatile readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other non-volatile readable storage media that can store program codes.
[0829] For an introduction to the computer non-volatile readable storage medium provided in the embodiment of the present application, please refer to the above method embodiment, and the effect thereof is the same as the hard disk monitoring method provided in the embodiment of the present application, and this application will not elaborate on it here.
[0830] The above is a detailed introduction to a hard disk monitoring system, method, device, equipment and computer non-volatile readable storage medium provided by the present application. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the devices, equipment and computer non-volatile readable storage medium disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of this application, several improvements and modifications can be made to this application, and these improvements and modifications also fall within the scope of protection of this application.
[0831] It should also be noted that, in this specification, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.
Claims
1. A hard disk monitoring system, characterized in that: Includes baseboard management controller and hard disk; A pin of the baseboard management controller is connected to a hard disk status pin of the hard disk; The hard disk is configured to modulate the hard disk log data and the hard disk status signal corresponding to the hard disk status pin to obtain a first signal, and output the first signal through the hard disk status pin; The baseboard management controller is configured to demodulate the first signal to obtain the hard disk log data, so as to monitor the hard disk according to the hard disk log data.
2. The hard disk monitoring system according to claim 1, characterized in that: The first signal carries the modulated hard disk log data and the hard disk status signal at the same time.
3. The hard disk monitoring system according to claim 2, characterized in that: The level width of the first signal corresponds to the data bits in the hard disk log data.
4. The hard disk monitoring system according to claim 2 or 3, characterized in that: The high and low level changes in the first signal correspond to the hard disk status signal.
5. The hard disk monitoring system according to claim 4, characterized in that: The hard disk status signal is a square wave signal, and the first signal is a signal obtained by the hard disk converting the hard disk log data into a signal of a corresponding level width and then replacing the square wave signal with a signal corresponding to the hard disk log data; The level width corresponding to the hard disk log data is different from the level width of the square wave signal.
6. The hard disk monitoring system according to claim 4, characterized in that: The hard disk status signal is a square wave signal, and the first signal is a signal obtained by the hard disk converting the hard disk log data into a signal of a corresponding level width and then adjusting the level width of a corresponding period in the square wave signal according to the level width corresponding to the hard disk log data; The level width corresponding to the hard disk log data is different from the level width of the square wave signal.
7. The hard disk monitoring system according to claim 2 or 3, characterized in that: The level signal with a larger proportion in the first signal corresponds to the hard disk status signal.
8. The hard disk monitoring system according to claim 7, characterized in that: The hard disk status signal is a constant level signal, and the first signal is a signal obtained by the hard disk converting the hard disk log data into a signal of a corresponding level width and then replacing the constant level signal of a corresponding duration with the signal corresponding to the hard disk log data; Wherein, the proportion of the inverted level signal of the constant level signal in each signal cycle of the first signal is less than 50%.
9. The hard disk monitoring system according to claim 7, characterized in that: The hard disk status signal is a constant level signal, and the first signal is a signal obtained by the hard disk converting the hard disk log data into a signal of a corresponding level width, generating an inverted signal of the constant level signal according to the signal corresponding to the hard disk log data, and then inserting the inverted signal into the constant level signal; Wherein, the proportion of the inverted level signal of the constant level signal in each signal cycle of the first signal is less than 50%.
10. The hard disk monitoring system according to claim 2, characterized in that: The hard disk status signal includes only one constant level signal, or the hard disk status signal includes a constant high level signal and a constant low level signal; The first signal is a signal obtained by modulating the hard disk log data into a signal with a corresponding level width according to the signal corresponding to the hard disk log data and the hard disk status signal; If the hard disk status signal is a constant high-level signal, the duty cycle of each cycle of the signal corresponding to the hard disk log data is greater than 50%; If the hard disk status signal is a constant low-level signal, the duty cycle of each cycle of the signal corresponding to the hard disk log data is less than 50%.
11. The hard disk monitoring system according to claim 2, characterized in that: The hard disk status signal includes a square wave signal and a constant level signal; The first signal is a signal obtained by modulating the hard disk log data into a signal with a corresponding level width according to the signal corresponding to the hard disk log data and the hard disk status signal; When the hard disk status signal is a square wave signal, the maximum duty cycle in the signal period of the hard disk log data is less than the first duty cycle, And / or, the minimum duty cycle in the signal period of the hard disk log data is greater than the second duty cycle; If the constant level signal is a constant high level signal, the first duty cycle is the minimum duty cycle of the first signal corresponding to the constant level signal; If the constant level signal is a constant low level signal, the second duty cycle is the maximum duty cycle of the first signal corresponding to the constant level signal.
12. The hard disk monitoring system according to claim 1, wherein: The first signal carries the modulated hard disk log data and the hard disk status signal in a time-sharing manner.
13. The hard disk monitoring system according to claim 1, wherein: The baseboard management controller demodulates the first signal to obtain the hard disk log data, including: The baseboard management controller obtains corresponding digital data by measuring the level width of the first signal, and parses the digital data into the hard disk log data.
14. The hard disk monitoring system according to claim 1, wherein: The baseboard management controller is further configured to demodulate the first signal according to a signal type of the hard disk status data corresponding to the hard disk status signal to obtain the hard disk status data.
15. The hard disk monitoring system according to claim 14, characterized in that: The baseboard management controller demodulates the first signal to obtain the hard disk log data, including: The baseboard management controller obtains corresponding digital data by measuring the level width of the first signal, and parses the digital data into the hard disk log data; The baseboard management controller demodulates the first signal according to the signal type of the hard disk status data corresponding to the hard disk status signal to obtain the hard disk status data, including: If the signal type of the hard disk status data includes a constant level signal, the baseboard management controller demodulates the hard disk status data according to a signal with a larger proportion in the first signal.
16. The hard disk monitoring system according to claim 14 or 15, characterized in that: The baseboard management controller demodulates the first signal according to the signal type of the hard disk status data corresponding to the hard disk status signal to obtain the hard disk status data, including: If the signal type of the hard disk status data includes a square wave signal, the baseboard management controller demodulates the hard disk status data according to the high and low level changes in the first signal.
17. The hard disk monitoring system according to claim 14, wherein: It also includes a state control circuit corresponding to the hard disk status pin, wherein a controlled end of the state control circuit is connected to the baseboard management controller, and an output end of the state control circuit is connected to a driving end of a controlled element corresponding to the hard disk status pin; The baseboard management controller is further configured to control the status control circuit to drive the controlled element according to the hard disk status data.
18. The hard disk monitoring system according to claim 17, wherein: The hard disk status pin is a hard disk status indicator light control pin, and the status control circuit is an amplifying drive circuit; The baseboard management controller controls the state control circuit to drive the controlled element according to the hard disk state data, including: When the hard disk status data obtained by demodulating the first signal is a light-on command, the baseboard management controller controls the amplifying drive circuit to generate a square wave signal to light up the hard disk status indicator light corresponding to the hard disk status pin; when the hard disk status data obtained by demodulating the first signal is a light-off command, the baseboard management controller stops controlling the amplifying drive circuit to generate the square wave signal to turn off the hard disk status indicator light.
19. The hard disk monitoring system according to claim 1, wherein: The baseboard management controller includes a baseboard management controller chip and a complex programmable logic device; The baseboard management controller chip is connected to the complex programmable logic device via an integrated circuit bus and an interrupt signal line, and the data input and output pins of the complex programmable logic device are connected to the hard disk status pin; The complex programmable logic device is configured to demodulate the first signal to obtain the hard disk log data, and send an interrupt signal to the baseboard management controller chip through the interrupt signal line; The baseboard management controller chip is configured to transmit the interrupt signal to the complex programmable The logic device reads the hard disk log data and monitors the hard disk according to the hard disk log data.
20. The hard disk monitoring system according to claim 1, wherein: The baseboard management controller includes a baseboard management controller chip and a complex programmable logic device; The baseboard management controller chip is connected to the complex programmable logic device via an integrated circuit bus, and the data input and output pins of the complex programmable logic device are connected to the hard disk status pin; The complex programmable logic device is configured to demodulate the first signal to obtain the hard disk log data; The baseboard management controller chip is configured to poll the integrated circuit bus, and when polling the complex programmable logic device, read the hard disk log data, and perform monitoring of the hard disk according to the hard disk log data.
21. The hard disk monitoring system according to claim 1, wherein: The baseboard management controller is further configured to, when the hard disk status data obtained by demodulating the first signal is non-control data or the demodulated first signal does not include the hard disk status data, and the current time is within the negotiation time period agreed with the hard disk, send a reverse transmission request to the hard disk status pin, and, upon receiving a permission signal sent by the hard disk, send a control command for the hard disk to the hard disk status pin; The hard disk is further configured to execute the control command.
22. The hard disk monitoring system according to claim 1, wherein: The baseboard management controller demodulates the first signal to obtain the hard disk log data, including: The baseboard management controller obtains corresponding digital data by measuring the pulse amplitude of the first signal, and parses the digital data into the hard disk log data.
23. The hard disk monitoring system according to claim 1, wherein: The hard disk is further configured as: During the process of transmitting the hard disk status signal via the hard disk status pin, in a case where the hard disk status signal is modulated at a current level of the hard disk status signal, detecting timeliness of obtaining the first signal by inverting the current level, wherein the timeliness is used to indicate whether inverting the current level allows obtaining the first signal; The current level is processed according to the timeliness.
24. The hard disk monitoring system according to claim 23, wherein: The hard disk is further configured as: Detecting a difference between a level width of the first signal and a level width of the current level; determining the timeliness to indicate that reversing a level in the current level allows obtaining the first signal if the difference is greater than a difference threshold, wherein the difference threshold is determined based on a minimum length of time it takes to reverse the level; In a case where the difference is less than or equal to the difference threshold, determining the timeliness is used to indicate that inverting the level in the current level does not allow obtaining the first signal.
25. The hard disk monitoring system according to claim 23, wherein: The hard disk is further configured as: If the timeliness indicates that reversing the level in the current level allows obtaining the first signal, sending the first signal at the current level; In the case where the timeliness is used to indicate that the inverted level in the current level does not allow the first signal to be obtained, the first signal is sent after sending the current level of the target level width, wherein the target level width is a level width that does not allow the baseboard management controller to demodulate the hard disk log data.
26. The hard disk monitoring system according to claim 25, characterized in that: The target level width is greater than a maximum value of a target width range, and the target width range is a width range obtained by having a level width of corresponding digital data.
27. The hard disk monitoring system according to claim 1, wherein: The hard disk is further configured as: When the hard disk status signal switches when the first signal is output, the modulation of the target level and the reference level is controlled according to the level type of the target level currently being sent and the switching of the hard disk status signal, wherein the reference level is the level after the target level.
28. The hard disk monitoring system according to claim 27, characterized in that: The hard disk is further configured as: When the hard disk status signal is switched from a square wave signal to a constant level signal, and the level type of the target level is the same as that of the constant level signal When the hard disk status signal and the hard disk status signal are the same, an inverted level signal of the constant level signal is inserted after the target level, and the constant level signal is modulated according to the hard disk status signal to obtain the reference level.
29. The hard disk monitoring system according to claim 27, wherein: The hard disk is further configured as: When the hard disk status signal switches from a square wave signal to a constant level signal, and the level type of the target level is opposite to that of the constant level signal, modulating the square wave signal according to the hard disk status signal after the target level to obtain a level next to the target level; An inverted level signal of the constant level signal is inserted after the next level, and the constant level signal is modulated according to the hard disk status signal to obtain the reference level.
30. The hard disk monitoring system according to claim 27, wherein: The hard disk is further configured as: When the hard disk status signal switches from a constant level signal to a square wave signal and the pulse type of the target pulse is the same as that of the constant level signal, the level is reversed after the target level, and the square wave signal is modulated according to the hard disk status signal to obtain the reference level.
31. The hard disk monitoring system according to claim 27, wherein: The hard disk is further configured as: When the hard disk status signal switches from a constant level signal to a square wave signal, and the level type of the target level is opposite to that of the constant level signal, the reference pulse is obtained by modulating the square wave signal according to the hard disk status signal after the target level.
32. The hard disk monitoring system according to claim 1, wherein: The baseboard management controller demodulates the first signal to obtain the hard disk log data, including: The baseboard management controller measures the level width of the first signal that falls within a target width range to obtain corresponding digital data, and parses the digital data into the hard disk log data, wherein the target width range is a width range obtained by having the level width of the corresponding digital data.
33. The hard disk monitoring system according to claim 32, characterized in that: The baseboard management controller measures the level width of the first signal that falls within the target width range to obtain corresponding digital data, and parses the digital data into the hard disk log data, including: The baseboard management controller measures the level width of the current level in the first signal; The baseboard management controller detects whether the level width of the current level falls within the target width range; In a case where the level width of the current level falls within the target width range, the baseboard management controller determines the level width of the current level as digital data corresponding to the current level; The baseboard management controller searches for the data code corresponding to the digital data corresponding to the current level from the digital data and the data code having a corresponding relationship, and obtains the hard disk log data.
34. The hard disk monitoring system according to claim 33, characterized in that: After detecting whether the level width of the current level falls within the target width range, if the level width of the current level does not fall within the target width range, the baseboard management controller discards the level width of the target level.
35. The hard disk monitoring system according to claim 32, wherein: The baseboard management controller demodulates the first signal to obtain the hard disk log data, including: The baseboard management controller measures the level width of the level belonging to the target type in the first signal to obtain corresponding digital data, and parses the digital data into the hard disk log data, wherein the target type is the level type in the first signal that is allowed to carry the hard disk log data.
36. The hard disk monitoring system according to claim 35, characterized in that: Before measuring the level width of the level belonging to the target type in the first signal to obtain corresponding digital data and parsing the digital data into the hard disk log data, the baseboard management controller determines the hard disk status according to the level in the first signal; The baseboard management controller determines the target type according to the hard disk status.
37. The hard disk monitoring system according to claim 36, characterized in that: The baseboard management controller determines the hard disk status according to the level of the first signal, including: The baseboard management controller detects a level width of an inverted level signal in the first signal, wherein the hard disk status signal is a constant level signal for indicating that the hard disk is in an idle state, and the inverted level signal is a level in a direction opposite to that of the constant level signal; The baseboard management controller determines the hard disk status according to the level width of the inverted level signal.
38. The hard disk monitoring system according to claim 36, characterized in that: The baseboard management controller determines the target type according to the hard disk status, including: When the hard disk state is an idle state, the baseboard management controller determines that the target type is a level type in the same direction as the constant level signal.
39. The hard disk monitoring system according to claim 36, wherein: The baseboard management controller determines the target type according to the hard disk status, including: In a case where the hard disk state is an active state, the baseboard management controller determines that the target type is a high level type and a low level type.
40. A baseboard management controller, characterized in that: Configured for hard drive monitoring; The baseboard management controller is configured to demodulate a first signal outputted by a hard disk status pin of the hard disk to obtain hard disk log data, and monitor the hard disk according to the hard disk log data; The first signal is a signal modulated by the hard disk according to the hard disk log data and a hard disk status signal corresponding to the hard disk status pin.
41. The baseboard management controller according to claim 40, wherein: The first signal carries the modulated hard disk log data and the hard disk status signal at the same time.
42. The baseboard management controller according to claim 41, wherein: The level width of the first signal corresponds to the data bits in the hard disk log data.
43. The baseboard management controller according to claim 41 or 42, characterized in that: The high and low level changes in the first signal correspond to the hard disk status signal.
44. The baseboard management controller according to claim 41 or 42, characterized in that: The level signal with a larger proportion in the first signal corresponds to the hard disk status signal.
45. The baseboard management controller according to claim 41, wherein: The hard disk status signal includes only one constant level signal, or the hard disk status signal includes a constant high level signal and a constant low level signal; The first signal is a signal obtained by modulating the hard disk log data into a signal with a corresponding level width according to the signal corresponding to the hard disk log data and the hard disk status signal; If the hard disk status signal is a constant high-level signal, the duty cycle of each cycle of the signal corresponding to the hard disk log data is greater than 50%; If the hard disk status signal is a constant low-level signal, the duty cycle of each cycle of the signal corresponding to the hard disk log data is less than 50%.
46. The baseboard management controller according to claim 41, wherein: The hard disk status signal includes a square wave signal and a constant level signal; The first signal is a signal obtained by modulating the hard disk log data into a signal with a corresponding level width according to the signal corresponding to the hard disk log data and the hard disk status signal; When the hard disk status signal is a square wave signal, the maximum duty cycle in the signal period of the hard disk log data is less than the first duty cycle, and / or the minimum duty cycle in the signal period of the hard disk log data is greater than the second duty cycle; If the constant level signal is a constant high level signal, the first duty cycle is the minimum duty cycle of the first signal corresponding to the constant level signal; If the constant level signal is a constant low level signal, the second duty cycle is the maximum duty cycle of the first signal corresponding to the constant level signal.
47. The baseboard management controller according to claim 40, wherein: The first signal carries the modulated hard disk log data and the hard disk status signal in a time-sharing manner.
48. The baseboard management controller according to claim 40, wherein: The baseboard management controller demodulates the first signal to obtain the hard disk log data, including: The baseboard management controller obtains corresponding digital data by measuring the level width of the first signal, and parses the digital data into the hard disk log data.
49. The baseboard management controller according to claim 41, wherein: The baseboard management controller is further configured to demodulate the hard disk status data from the signal period of the hard disk log data according to the signal type of the hard disk status signal.
50. The baseboard management controller according to claim 49, wherein: The signal type of the hard disk status signal includes a square wave signal; The baseboard management controller demodulates the hard disk status data from the signal period of the hard disk log data according to the signal type of the hard disk status signal, including: The baseboard management controller demodulates the hard disk status data according to the high and low level changes in the first signal.
51. The baseboard management controller according to claim 50, wherein: The baseboard management controller demodulates the hard disk status data according to the high and low level changes in the first signal, including: After demodulating and obtaining the hard disk log data, the baseboard management controller replaces the first signal with a square wave signal to obtain the hard disk status signal; The hard disk status data is obtained by demodulating the hard disk status signal.
52. The baseboard management controller according to claim 50, wherein: The baseboard management controller demodulates the hard disk status data according to the high and low level changes in the first signal, including: After demodulating and obtaining the hard disk log data, the baseboard management controller adjusts the pulse width of each cycle of the first signal according to the pulse width of the corresponding square wave signal to obtain the hard disk status signal; The hard disk status data is obtained by demodulating the hard disk status signal.
53. The baseboard management controller according to claim 49, wherein: The signal type of the hard disk status signal includes a constant level signal; The baseboard management controller demodulates the hard disk status data from the signal period of the hard disk log data according to the signal type of the hard disk status signal, including: The baseboard management controller demodulates the hard disk status data according to the level signal with a larger proportion in the signal period of the first signal.
54. The baseboard management controller according to claim 53, characterized in that: The baseboard management controller demodulates the hard disk status data according to the level signal with a larger proportion in the signal period of the first signal, including: After demodulating and obtaining the hard disk log data, the baseboard management controller replaces the first signal with a level signal that accounts for a larger proportion in a signal period of the first signal to obtain the hard disk status signal; The hard disk status data is obtained by demodulating the hard disk status signal.
55. The baseboard management controller according to claim 53, wherein: The baseboard management controller demodulates the hard disk status data according to the level signal with a larger proportion in the signal period of the first signal, including: After demodulating and obtaining the hard disk log data, the baseboard management controller replaces the inverted signal corresponding to the level signal with a larger proportion in the signal period of the first signal with the level signal with a larger proportion in the signal period of the first signal to obtain the hard disk status signal; The hard disk status data is obtained by demodulating the hard disk status signal.
56. The baseboard management controller according to claim 49, wherein: The signal type of the hard disk status signal includes only a constant level signal, or the signal type of the hard disk status data includes a constant high level signal and a constant low level signal; The baseboard management controller demodulates the hard disk status data from the signal period of the hard disk log data according to the signal type of the hard disk status signal, including: After demodulating and obtaining the hard disk log data, the baseboard management controller returns the signal period of the first signal with a duty cycle greater than 50% to the first signal. The first signal is originally a constant high-level signal, and the signal period with a duty cycle less than 50% in the first signal is restored to a constant low-level signal to obtain the hard disk status signal; The hard disk status data is obtained by demodulating the hard disk status signal.
57. The baseboard management controller according to claim 49, wherein: The signal type of the hard disk status signal includes a square wave signal and a constant level signal; The baseboard management controller demodulates the hard disk status data from the signal period of the hard disk log data according to the signal type of the hard disk status signal, including: If the constant-level signal is a constant high-level signal, then after demodulating the hard disk log data, the baseboard management controller restores a signal period in the first signal having a duty cycle less than the first duty cycle into a square wave signal, and restores a signal period in the first signal having a duty cycle greater than the first duty cycle into a constant high-level signal, to obtain the hard disk status signal; If the constant-level signal is a constant low-level signal, the baseboard management controller, after demodulating the hard disk log data, restores the signal period in the first signal where the duty cycle is greater than the second duty cycle into a square wave signal, and restores the signal period in the first signal where the duty cycle is less than the second duty cycle into a constant low-level signal, to obtain the hard disk status signal; If the constant-level signal includes a constant high-level signal and a constant low-level signal, then, after demodulating and obtaining the hard disk log data, the baseboard management controller restores a signal period in the first signal whose duty cycle is less than the first duty cycle and greater than the second duty cycle into a square wave signal, restores a signal period in the first signal whose duty cycle is greater than the first duty cycle into a constant high-level signal, and restores a signal period in the first signal whose duty cycle is less than the second duty cycle into a constant low-level signal, thereby obtaining the hard disk status signal; The hard disk status data is obtained by demodulating the hard disk status signal.
58. The baseboard management controller according to claim 47, wherein: The baseboard management controller demodulates the first signal to obtain the hard disk log data, including: After demodulating the first signal according to the signal type of the hard disk status signal to obtain the hard disk status data, the baseboard management controller demodulates the signal period of the first signal that does not match the signal type of the hard disk status signal to obtain the hard disk log data; Alternatively, the baseboard management controller obtains corresponding digital data by measuring the level width of the first signal, parses the digital data into hard disk log data, and demodulates the signal period where the level width does not correspond to the digital data to obtain the hard disk status data.
59. The baseboard management controller according to claim 49 or 58, characterized in that: It also includes a state control circuit corresponding to the hard disk status pin, wherein a controlled end of the state control circuit is connected to the baseboard management controller, and an output end of the state control circuit is connected to a driving end of a controlled element corresponding to the hard disk status pin; The baseboard management controller is further configured to control the status control circuit to drive the controlled element according to the hard disk status data.
60. The baseboard management controller according to claim 59, wherein: The hard disk status pin is a hard disk status indicator light control pin, and the status control circuit is an amplifying drive circuit; The baseboard management controller controls the state control circuit to drive the controlled element according to the hard disk state data, including: When the hard disk status data obtained by demodulating the first signal is a lighting command, the baseboard management controller controls the amplifying driving circuit to generate a square wave signal to light up the hard disk status indicator light corresponding to the hard disk status pin; When the hard disk status data obtained by demodulating the first signal is a light-off command, the baseboard management controller stops controlling the amplifying driving circuit to generate the square wave signal to turn off the hard disk status indicator light.
61. The baseboard management controller according to claim 40, wherein: The baseboard management controller includes a baseboard management controller chip and a complex programmable logic device; The baseboard management controller chip is connected to the complex programmable logic device via an integrated circuit bus and an interrupt signal line, and the data input and output pins of the complex programmable logic device are connected to the hard disk status pin; The complex programmable logic device is configured to demodulate the first signal to obtain the hard disk log data, and send an interrupt signal to the baseboard management controller chip through the interrupt signal line; The baseboard management controller chip is configured to transmit the interrupt signal to the complex programmable The logic device reads the hard disk log data and monitors the hard disk according to the hard disk log data.
62. The baseboard management controller according to claim 40, wherein: The baseboard management controller includes a baseboard management controller chip and a complex programmable logic device; The baseboard management controller chip is connected to the complex programmable logic device via an integrated circuit bus, and the data input and output pins of the complex programmable logic device are connected to the hard disk status pin; The complex programmable logic device is configured to demodulate the first signal to obtain the hard disk log data; The baseboard management controller chip is configured to poll the integrated circuit bus, and when polling the complex programmable logic device, read the hard disk log data, and perform monitoring of the hard disk according to the hard disk log data.
63. The baseboard management controller according to claim 40, wherein: The baseboard management controller is also configured to send a reverse transmission request to the hard disk status pin when the hard disk status data obtained by demodulating the first signal is non-control data or the demodulated first signal does not include the hard disk status data, and the current moment is the negotiation time period agreed with the hard disk, and send a control command to the hard disk to the hard disk status pin when receiving the permission signal sent by the hard disk.
64. The baseboard management controller according to claim 40, wherein: The baseboard management controller demodulates the first signal to obtain the hard disk log data, including: The baseboard management controller obtains corresponding digital data by measuring the pulse amplitude of the first signal, and parses the digital data into the hard disk log data.
65. The baseboard management controller according to claim 40, wherein: The hard disk is further configured as: During the process of transmitting the hard disk status signal via the hard disk status pin, in a case where the hard disk status signal is modulated at a current level of the hard disk status signal, detecting timeliness of obtaining the first signal by inverting the current level, wherein the timeliness is used to indicate whether inverting the current level allows obtaining the first signal; The current level is processed according to the timeliness.
66. The baseboard management controller according to claim 65, characterized in that The hard disk is further configured as: Detecting a difference between a level width of the first signal and a level width of the current level; determining the timeliness to indicate that reversing a level in the current level allows obtaining the first signal if the difference is greater than a difference threshold, wherein the difference threshold is determined based on a minimum length of time it takes to reverse the level; In a case where the difference is less than or equal to the difference threshold, determining the timeliness is used to indicate that inverting the level in the current level does not allow obtaining the first signal.
67. The baseboard management controller according to claim 65, characterized in that The hard disk is further configured as: If the timeliness indicates that reversing the level in the current level allows obtaining the first signal, sending the first signal at the current level; In the case where the timeliness is used to indicate that the inverted level in the current level does not allow the first signal to be obtained, the first signal is sent after sending the current level of the target level width, wherein the target level width is a level width that does not allow the baseboard management controller to demodulate the hard disk log data.
68. The baseboard management controller according to claim 67, characterized in that: The target level width is greater than a maximum value of a target width range, and the target width range is a width range obtained by having a level width of corresponding digital data.
69. The baseboard management controller according to claim 40, characterized in that The hard disk is further configured as: When the hard disk status signal switches when the first signal is output, the modulation of the target level and the reference level is controlled according to the level type of the target level currently being sent and the switching of the hard disk status signal, wherein the reference level is the level after the target level.
70. The baseboard management controller according to claim 69, wherein: The hard disk is further configured as: When the hard disk status signal is switched from a square wave signal to a constant level signal, and the level type of the target level is the same as that of the constant level signal, an inverted level signal of the constant level signal is inserted after the target level, and the hard disk status signal is switched from a square wave signal to a constant level signal. The reference level is obtained by modulating the constant level signal.
71. The baseboard management controller according to claim 69, wherein: The hard disk is further configured as: When the hard disk status signal switches from a square wave signal to a constant level signal, and the level type of the target level is opposite to that of the constant level signal, modulating the square wave signal according to the hard disk status signal after the target level to obtain a level next to the target level; An inverted level signal of the constant level signal is inserted after the next level, and the constant level signal is modulated according to the hard disk status signal to obtain the reference level.
72. The baseboard management controller according to claim 69, wherein: The hard disk is further configured as: When the hard disk status signal switches from a constant level signal to a square wave signal and the pulse type of the target pulse is the same as that of the constant level signal, the level is reversed after the target level, and the square wave signal is modulated according to the hard disk status signal to obtain the reference level.
73. The baseboard management controller according to claim 69, wherein: The hard disk is further configured as: When the hard disk status signal switches from a constant level signal to a square wave signal, and the level type of the target level is opposite to that of the constant level signal, the reference pulse is obtained by modulating the square wave signal according to the hard disk status signal after the target level.
74. The baseboard management controller according to claim 40, wherein: The baseboard management controller demodulates the first signal to obtain the hard disk log data, including: The baseboard management controller measures the level width of the first signal that falls within a target width range to obtain corresponding digital data, and parses the digital data into the hard disk log data, wherein the target width range is a width range obtained by having the level width of the corresponding digital data.
75. The baseboard management controller according to claim 74, characterized in that: The baseboard management controller measures the level width of the first signal that falls within the target width range to obtain corresponding digital data, and parses the digital data into the hard disk log data, including: The baseboard management controller measures the level width of the current level in the first signal; The baseboard management controller detects whether the level width of the current level falls within the target width range; In a case where the level width of the current level falls within the target width range, the baseboard management controller determines the level width of the current level as digital data corresponding to the current level; The baseboard management controller searches for the data code corresponding to the digital data corresponding to the current level from the digital data and the data code having a corresponding relationship, and obtains the hard disk log data.
76. The baseboard management controller according to claim 75, characterized in that After detecting whether the level width of the current level falls within the target width range, if the level width of the current level does not fall within the target width range, the baseboard management controller discards the level width of the target level.
77. The baseboard management controller according to claim 74, wherein: The baseboard management controller demodulates the first signal to obtain the hard disk log data, including: The baseboard management controller measures the level width of the level belonging to the target type in the first signal to obtain corresponding digital data, and parses the digital data into the hard disk log data, wherein the target type is the level type in the first signal that is allowed to carry the hard disk log data.
78. The baseboard management controller according to claim 77, characterized in that Before measuring the level width of the level belonging to the target type in the first signal to obtain corresponding digital data and parsing the digital data into the hard disk log data, the baseboard management controller determines the hard disk status according to the level in the first signal; The baseboard management controller determines the target type according to the hard disk status.
79. The baseboard management controller according to claim 78, characterized in that The baseboard management controller determines the hard disk status according to the level of the first signal, including: The baseboard management controller detects a level width of an inverted level signal in the first signal, wherein the hard disk status signal is a constant level signal for indicating that the hard disk is in an idle state, and the inverted level signal is a level in a direction opposite to that of the constant level signal; The baseboard management controller determines the hard disk status according to the level width of the inverted level signal.
80. The baseboard management controller according to claim 78, wherein: The baseboard management controller determines the target type according to the hard disk status, including: When the hard disk state is an idle state, the baseboard management controller determines that the target type is a level type in the same direction as the constant level signal.
81. The baseboard management controller according to claim 78, wherein: The baseboard management controller determines the target type according to the hard disk status, including: In a case where the hard disk state is an active state, the baseboard management controller determines that the target type is a high level type and a low level type.
82. A hard disk monitoring method, characterized in that: Applicable to baseboard management controllers, including: receiving a first signal output by a hard disk status pin of a hard disk, obtained by modulating the hard disk log data and a hard disk status signal corresponding to the hard disk status pin; Demodulating the first signal to obtain the hard disk log data; The hard disk is monitored according to the hard disk log data.
83. The hard disk monitoring method according to claim 82, characterized in that: The first signal carries the modulated hard disk log data and the hard disk status signal at the same time.
84. The hard disk monitoring method according to claim 83, characterized in that: The level width of the first signal corresponds to the data bits in the hard disk log data.
85. The hard disk monitoring method according to claim 83 or 84, characterized in that: The high and low level changes in the first signal correspond to the hard disk status signal.
86. The hard disk monitoring method according to claim 83 or 84, characterized in that: The level signal with a larger proportion in the first signal corresponds to the hard disk status signal.
87. The hard disk monitoring method according to claim 83, characterized in that: The hard disk status signal includes only one constant level signal, or the hard disk status signal includes a constant high level signal and a constant low level signal; The first signal is a signal obtained by modulating the hard disk log data into a signal with a corresponding level width according to the signal corresponding to the hard disk log data and the hard disk status signal; If the hard disk status signal is a constant high-level signal, the duty cycle of each cycle of the signal corresponding to the hard disk log data is greater than 50%; If the hard disk status signal is a constant low-level signal, the duty cycle of each cycle of the signal corresponding to the hard disk log data is less than 50%.
88. The hard disk monitoring method according to claim 83, characterized in that: The hard disk status signal includes a square wave signal and a constant level signal; The first signal is a signal obtained by modulating the hard disk log data into a signal with a corresponding level width according to the signal corresponding to the hard disk log data and the hard disk status signal; When the hard disk status signal is a square wave signal, the maximum duty cycle in the signal period of the hard disk log data is less than the first duty cycle, and / or the minimum duty cycle in the signal period of the hard disk log data is greater than the second duty cycle; If the constant level signal is a constant high level signal, the first duty cycle is the minimum duty cycle of the first signal corresponding to the constant level signal; If the constant level signal is a constant low level signal, the second duty cycle is the maximum duty cycle of the first signal corresponding to the constant level signal.
89. The hard disk monitoring method according to claim 82, characterized in that: The first signal carries the modulated hard disk log data and the hard disk status signal in a time-sharing manner.
90. The hard disk monitoring method according to claim 82, wherein: Demodulating the first signal to obtain the hard disk log data includes: Corresponding digital data is obtained by measuring the level width of the first signal, and the digital data is parsed into the hard disk log data.
91. The hard disk monitoring method according to claim 83, characterized in that: Also includes: The hard disk status data is demodulated from the signal period of the hard disk log data according to the signal type of the hard disk status signal.
92. The hard disk monitoring method according to claim 91, characterized in that: The signal type of the hard disk status signal includes a square wave signal; Demodulating the hard disk status data from the signal period of the hard disk log data demodulated according to the signal type of the hard disk status signal includes: The hard disk status data is demodulated according to the high and low level changes in the first signal.
93. The hard disk monitoring method according to claim 92, characterized in that: Demodulating the hard disk status data according to the high and low level changes in the first signal includes: After demodulating to obtain the hard disk log data, replacing the first signal with a square wave signal to obtain the hard disk status signal; The hard disk status data is obtained by demodulating the hard disk status signal.
94. The hard disk monitoring method according to claim 92, characterized in that: Demodulating the hard disk status data according to the high and low level changes in the first signal includes: After demodulating and obtaining the hard disk log data, adjusting the pulse width of each cycle of the first signal according to the corresponding pulse width of the square wave signal to obtain the hard disk status signal; The hard disk status data is obtained by demodulating the hard disk status signal.
95. The hard disk monitoring method according to claim 91, characterized in that: The signal type of the hard disk status signal includes a constant level signal; Demodulating the hard disk status data from the signal period of the hard disk log data demodulated according to the signal type of the hard disk status signal includes: The hard disk status data is demodulated according to the level signal with a larger proportion in the first signal.
96. The hard disk monitoring method according to claim 95, characterized in that: Demodulating the hard disk status data according to the level signal having a relatively large proportion in the signal period of the first signal includes: After demodulating and obtaining the hard disk log data, replacing the first signal with a level signal that accounts for a larger proportion in a signal period of the first signal to obtain the hard disk status signal; The hard disk status data is obtained by demodulating the hard disk status signal.
97. The hard disk monitoring method according to claim 95, characterized in that: Demodulating the hard disk status data according to the level signal having a relatively large proportion in the signal period of the first signal includes: After demodulating and obtaining the hard disk log data, replacing the inverted signal corresponding to the level signal with a larger proportion in the signal period of the first signal with the level signal with a larger proportion in the signal period of the first signal to obtain the hard disk status signal; The hard disk status data is obtained by demodulating the hard disk status signal.
98. The hard disk monitoring method according to claim 91, characterized in that: The signal type of the hard disk status signal includes only a constant level signal, or the signal type of the hard disk status data includes a constant high level signal and a constant low level signal; Demodulating the hard disk status data from the signal period of the hard disk log data demodulated according to the signal type of the hard disk status signal includes: After demodulating and obtaining the hard disk log data, restoring the signal period of the first signal with a duty cycle greater than 50% to a constant high-level signal, and restoring the signal period of the first signal with a duty cycle less than 50% to a constant low-level signal, to obtain the hard disk status signal; The hard disk status data is obtained by demodulating the hard disk status signal.
99. The hard disk monitoring method according to claim 91, characterized in that: The signal type of the hard disk status signal includes a square wave signal and a constant level signal; Demodulating the hard disk status data from the signal period of the hard disk log data demodulated according to the signal type of the hard disk status signal includes: If the constant-level signal is a constant high-level signal, after demodulating to obtain the hard disk log data, restoring the signal period of the first signal having a duty cycle less than the first duty cycle into a square wave signal, and restoring the signal period of the first signal having a duty cycle greater than the first duty cycle into a constant high-level signal, to obtain the hard disk status signal; If the constant-level signal is a constant low-level signal, after demodulating to obtain the hard disk log data, restoring the signal period in the first signal where the duty cycle is greater than the second duty cycle to a square wave signal, and restoring the signal period in the first signal where the duty cycle is less than the second duty cycle to a constant low-level signal, to obtain the hard disk status signal; If the constant-level signal includes a constant high-level signal and a constant low-level signal, after demodulating to obtain the hard disk log data, restoring a signal period in the first signal whose duty cycle is less than the first duty cycle and greater than the second duty cycle into a square wave signal, restoring a signal period in the first signal whose duty cycle is greater than the first duty cycle into a constant high-level signal, and restoring a signal period in the first signal whose duty cycle is less than the second duty cycle into a constant low-level signal, to obtain the hard disk status signal; The hard disk status data is obtained by demodulating the hard disk status signal.
100. The hard disk monitoring method according to claim 99, characterized in that: Demodulating the first signal to obtain the hard disk log data includes: After demodulating the first signal to obtain hard disk status data according to the signal type of the hard disk status signal, demodulating the hard disk log data from a time period in the first signal that does not match the signal type of the hard disk status signal; Alternatively, the corresponding digital data is obtained by measuring the level width and pulse width of the first signal, the digital data is parsed into hard disk log data, and the hard disk status data is obtained by demodulating according to the signal period in which the level width does not correspond to the digital data.
101. The hard disk monitoring method according to claim 91 or 100, characterized in that: Also includes: The state control circuit is controlled to drive a controlled element corresponding to the hard disk state pin according to the hard disk state data.
102. The hard disk monitoring method according to claim 101, characterized in that: The hard disk status pin is a hard disk status indicator light control pin, and the status control circuit is an amplifying drive circuit; Controlling the state control circuit to drive a controlled element corresponding to the hard disk state pin according to the hard disk state data includes: When the hard disk status data obtained by demodulating the first signal is a lighting command, controlling the amplifying driving circuit to generate a square wave signal to light up the hard disk status indicator light corresponding to the hard disk status pin; When the hard disk status data obtained by demodulating the first signal is a light-off command, the control of the amplifying driving circuit to generate the square wave signal is stopped to turn off the hard disk status indicator light.
103. The hard disk monitoring method according to claim 82, characterized in that: A complex programmable logic device applied to the baseboard management controller, wherein the complex programmable logic device is connected to a baseboard management controller chip of the baseboard management controller via an integrated circuit bus; Monitoring the hard disk according to the hard disk log data includes: An interrupt signal is sent to the baseboard management controller chip through the interrupt signal line, so that after receiving the interrupt signal, the baseboard management controller chip reads the hard disk log data through the integrated circuit bus to the complex programmable logic device and performs monitoring of the hard disk according to the hard disk log data.
104. The hard disk monitoring method according to claim 82, characterized in that: A complex programmable logic device applied to the baseboard management controller, wherein the complex programmable logic device is connected to a baseboard management controller chip of the baseboard management controller via an integrated circuit bus; Monitoring the hard disk according to the hard disk log data includes: Accepting polling from the baseboard management controller chip, so that when the baseboard management controller chip polls the complex programmable logic device, it reads the hard disk log data and performs monitoring of the hard disk according to the hard disk log data.
105. The hard disk monitoring method according to claim 82, characterized in that: Also includes: When the hard disk status data obtained by demodulating the first signal is non-control data or the hard disk status data is not included in the demodulated first signal, and the current moment is the negotiation time period agreed with the hard disk, a reverse transmission request is sent to the hard disk status pin, and when a permission signal sent by the hard disk is received, a control command for the hard disk is sent to the hard disk status pin.
106. The hard disk monitoring method according to claim 82, characterized in that: The demodulating the first signal to obtain the hard disk log data includes: Corresponding digital data is obtained by measuring the pulse amplitude of the first signal, and the digital data is parsed into the hard disk log data.
107. The hard disk monitoring method according to claim 82, characterized in that: The demodulating the first signal to obtain the hard disk log data includes: The level width of the first signal falling within a target width range is measured to obtain corresponding digital data, and the digital data is parsed into the hard disk log data, wherein the target width range is a width range obtained by having the level width of the corresponding digital data.
108. The hard disk monitoring method according to claim 107, characterized in that: The measuring the level width of the first signal that falls within the target width range to obtain corresponding digital data, and parsing the digital data into the hard disk log data includes: measuring a level width of a current level in the first signal; Detecting whether the level width of the current level falls within the target width range; In a case where the level width of the current level falls within the target width range, determining the level width of the current level as digital data corresponding to the current level; The data code corresponding to the digital data corresponding to the current level is searched from the digital data and data codes having a corresponding relationship to obtain the hard disk log data.
109. The hard disk monitoring method according to claim 108, characterized in that: After detecting whether the level width of the current level falls within the target width range, the method further includes: In a case where the level width of the current level does not fall within the target width range, the level width of the target level is discarded.
110. The hard disk monitoring method according to claim 82, characterized in that: The demodulating the first signal to obtain the hard disk log data includes: The level width of the level belonging to the target type in the first signal is measured to obtain corresponding digital data, and the digital data is parsed into the hard disk log data, wherein the target type is a level type in the first signal that is allowed to carry the hard disk log data.
111. The hard disk monitoring method according to claim 110, characterized in that: Before measuring the level width of the level belonging to the target type in the first signal to obtain corresponding digital data and parsing the digital data into the hard disk log data, the method further includes: determining a hard disk status according to a level in the first signal; The target type is determined according to the hard disk status.
112. The hard disk monitoring method according to claim 111, characterized in that: The determining the hard disk status according to the level of the first signal includes: detecting a level width of an inverted level signal in the first signal, wherein the hard disk status signal is a constant level signal for indicating that the hard disk is in an idle state, and the inverted level signal is a level in a direction opposite to that of the constant level signal; The hard disk status is determined based on the level width of the inverted level signal.
113. The hard disk monitoring method according to claim 111, characterized in that: The determining the target type according to the hard disk status includes: When the hard disk state is an idle state, the target type is determined to be a level type in the same direction as the constant level signal.
114. The hard disk monitoring method according to claim 111, characterized in that: The determining the target type according to the hard disk status includes: When the hard disk state is an active state, the target type is determined to be a high level type and a low level type.
115. A hard disk monitoring method, characterized in that: Applicable to hard disks, including: A first signal is obtained by modulating the hard disk status signal corresponding to the hard disk status pin and the hard disk log data; The first signal is sent to a baseboard management controller through the hard disk status pin, so that the baseboard management controller demodulates the first signal to obtain the hard disk log data and then monitors the hard disk according to the hard disk log data.
116. A hard disk monitoring device, characterized in that: include: a memory configured to store a computer program; The processor is configured to execute the computer program, and when the computer program is executed by the processor, the steps of the hard disk monitoring method as described in any one of claims 82 to 115 are implemented.
117. A computer non-volatile readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the hard disk monitoring method as described in any one of claims 82 to 115 are implemented.
Citation Information
Patent Citations
Condition monitoring system of solid state disk
CN103176883A
Hard disk state monitoring system and hard disk state monitoring method
CN111752790A
Hard disk monitoring system, method and equipment, storage medium and substrate management controller
CN117971613A
Monitoring Server Method
US20150127814A1