[go: up one dir, main page]

WO2025200699A1 - Clock detection method and system, device, medium, and server - Google Patents

Clock detection method and system, device, medium, and server

Info

Publication number
WO2025200699A1
WO2025200699A1 PCT/CN2025/070160 CN2025070160W WO2025200699A1 WO 2025200699 A1 WO2025200699 A1 WO 2025200699A1 CN 2025070160 W CN2025070160 W CN 2025070160W WO 2025200699 A1 WO2025200699 A1 WO 2025200699A1
Authority
WO
WIPO (PCT)
Prior art keywords
signal
clock
hard disk
data
level
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
PCT/CN2025/070160
Other languages
French (fr)
Chinese (zh)
Inventor
张鑫伟
李金锋
袁征峰
朱保彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Metabrain Intelligent Technology Co Ltd
Original Assignee
Suzhou Metabrain Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Metabrain Intelligent Technology Co Ltd filed Critical Suzhou Metabrain Intelligent Technology Co Ltd
Publication of WO2025200699A1 publication Critical patent/WO2025200699A1/en
Pending legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3037Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a memory, e.g. virtual memory, cache
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3093Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/04Detection or location of defective memory elements, e.g. cell constructio details, timing of test signals
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/04Detection or location of defective memory elements, e.g. cell constructio details, timing of test signals
    • G11C29/08Functional testing, e.g. testing during refresh, power-on self testing [POST] or distributed testing
    • G11C29/12Built-in arrangements for testing, e.g. built-in self testing [BIST] or interconnection details
    • G11C29/44Indication or identification of errors, e.g. for repair
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present application relates to the field of data processing, and in particular to a clock detection method, system, device, medium and server.
  • the data signal includes data to be transmitted and a flag signal of a fixed pulse width.
  • the flag signal is used to indicate the current transmission progress of the data signal.
  • the communication signal is obtained by encoding its own clock signal and data signal, including:
  • the baseboard management controller analyzes the communication signal to obtain the clock signal and data signal, and determines whether the hard disk clock is accurate based on the clock signal, including:
  • the baseboard management controller analyzes the communication signal to obtain at least two flag signals and data to be transmitted;
  • encoding the clock signal thereof with a plurality of second-level pulse signals and a plurality of first-level pulse widths to obtain a communication signal includes:
  • the baseboard management controller analyzes the communication signal to obtain the clock signal and data signal, and determines whether the hard disk clock is accurate based on the clock signal, including:
  • encoding the square wave signal and the first pulse width signal to obtain a communication signal includes:
  • encoding each data bit into a pulse width corresponding to the data bit to obtain a first pulse width signal includes:
  • the judgment unit is used to judge whether the clock of the hard disk is accurate based on the clock signal.
  • the present application further provides a clock detection system, wherein a hard disk and a baseboard management controller communicate via a single line, and the clock detection system comprises:
  • the processor is configured to implement the steps of the clock detection method described above when executing computer-readable instructions.
  • FIG1 is a schematic diagram showing a connection between a hard disk and a baseboard management controller according to one or more embodiments of the present application;
  • FIG4 is a schematic diagram of a combination of a square wave signal and a data signal provided by one or more embodiments of the present application;
  • FIG7 is a specific flow chart of a clock detection method applied to a hard disk provided by one or more embodiments of the present application.
  • FIG8 is a specific flow chart of a clock detection method applied to a baseboard management controller according to one or more embodiments of the present application;
  • FIG9 is a schematic diagram of a clock detection system applied to a hard disk according to one or more embodiments of the present application.
  • FIG10 is a schematic diagram of a clock detection system applied to a baseboard management controller according to one or more embodiments of the present application;
  • FIG11 is a schematic diagram of an electronic device provided by one or more embodiments of the present application.
  • Out-of-band management refers to managing the network through a dedicated network management channel, separating network management data from business data. This independent channel transmits only management data, separating network management data from business data. This improves network management efficiency and reliability, while also enhancing the security of network management data.
  • 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.
  • the BMC is typically installed on the motherboard or main circuit board of the monitored device.
  • the BMC uses 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 exceed 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.
  • a CPLD primarily consists of three components: logic blocks, programmable interconnects, and input/output (I/O) blocks.
  • a logic block in a CPLD 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).
  • RAM random access memory
  • ROM read-only memory
  • the programmable interconnects primarily provide the interconnect network between the logic blocks, macrocells, and I/O pins.
  • I/O blocks Input/output blocks (I/O blocks) provide the interface between internal logic and the device's I/O pins.
  • the hard disk is an important object of out-of-band monitoring and management.
  • 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.
  • SAS Serial Attached SCSI
  • SATA Serial Advanced Technology Attachment
  • NVMHCIS Non-Volatile Memory Host Controller Interface Specification
  • NVMe Non-Volatile Memory Host Controller Interface Specification
  • the SAS interface is compatible with the SATA interface.
  • hard disks are mainly divided into mechanical hard disks (HDD) and solid-state drives (SSD).
  • mechanical hard disks mainly have SAS or SATA interfaces.
  • Solid-state drives include SAS, SATA, and NVMe interface hard disks.
  • the baseboard management controller may include only a baseboard management controller chip, or it may be a system including a baseboard management controller chip and a complex programmable logic device.
  • the complex programmable logic device may be a complex programmable logic device only provided on the hard disk backplane or a complex programmable logic device provided on the server mainboard.
  • the hard disk selects the hard disk status pin to send data to the baseboard management controller because:
  • Hard drive pins are primarily categorized into three types: data pins, power pins, and hard drive status pins.
  • the hard drive's data pins connect to the in-band system, while the hard drive's power pins are used to connect power and ground signals. Therefore, the baseboard management controller can only directly access the hard drive's status pins.
  • 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.
  • the hard disk status indication pins include the hard disk in-place status indication pin and the hard disk read/write status indication pin.
  • the hard disk status indication pins are pins used by the hard disk to output hard disk status indication signals.
  • the hard disk in-place status indication pin is used to output the hard disk in-place status signal
  • the hard disk read/write status indication pin is used to output the hard disk read/write status signal.
  • the hard drive status indicator pins can be connected in two main ways: one to the baseboard management controller (BMC) to transmit the corresponding hard drive status data, and the other to the control circuit on the hard drive backplane to control the status of the corresponding controlled components, thereby informing the user of the corresponding hard drive status.
  • the hard drive backplane is equipped with a hard drive status indicator to indicate the hard drive's operating status.
  • the hard drive status indicator pins can be controlled to output a square wave signal to the amplifying and driving circuit of the hard drive status indicator to illuminate the hard drive status indicator.
  • the hard drive status indicator pins can be controlled to output a constant level signal (e.g., a constant high level signal) to turn off the hard drive status indicator, indicating that the hard drive is in the idle state.
  • a constant level signal e.g., a constant high level signal
  • the user can then determine whether the hard drive is in the read/write state by observing the on/off status of the hard drive status indicator.
  • the same principle applies to the hard drive status display based on the hard drive presence status indicator pins.
  • the hard drive can also output two different constant level signals (one high, 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.
  • the hard disk status pin of the hard disk may include at least one of a hard disk status indication pin, a hard disk production debugging pin, and a hard disk idle pin.
  • 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 in the baseboard management controller or the input/output (I/O) pins of a complex programmable logic device, the hardware architecture can be directly used without making changes to the hardware architecture of the server, which is simple and convenient to implement.
  • GPIO general-purpose input/output
  • I/O input/output
  • the hard drive production debug pins on devices are typically left floating, typically consisting of four pins. If the embodiments of the present invention utilize 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 or the I/O pins of a complex programmable logic device.
  • the hard disk idle pin is usually only available in the interface of NVMe interface hard drives, high-speed signals cannot be left floating.
  • 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 invention uses the hard disk idle pin as the hard disk status pin for outputting 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 or the I/O pin of the complex programmable logic device.
  • the baseboard management controller chip can access the hard drive expansion card via the integrated circuit bus and forward commands or hard drive log data to the hard drive through the hard drive expansion card. Furthermore, within the baseboard management controller, the baseboard management controller chip can also connect to a complex programmable logic device (CPLD) via the IC bus, and then connect to the hard drive status pin via the CPLD. Alternatively, the baseboard management controller chip can directly connect to the hard drive status pin.
  • CPLD complex programmable logic device
  • Single-line communication refers to the existence of only one transmission channel between the hard drive and the baseboard management controller.
  • Single-line communication can be achieved through, but is not limited to, a single-wire connection.
  • a single-wire connection refers to a single transmission line (DATA) between the hard drive and the baseboard management controller. This line can only provide a single transmission channel for transmitting hard drive status signals (GND in Figure 1 is the ground line, not a transmission line).
  • the single-wire connection in this application has only one line for transmitting hard drive status signals and does not include any other lines.
  • the clock detection method includes:
  • the communication signal is a signal encoded by the hard disk based on the data signal and its own clock signal.
  • the data signal is a signal modulated by the hard disk based on the hard disk log data and the hard disk status signal corresponding to the hard disk status pin.
  • the clock signal corresponds to the clock source within the hard drive, used to synchronize data transmission and processing.
  • the data signal is a signal modulated based on the hard drive log data and the hard drive status signal corresponding to the hard drive status pin. It contains hard drive status information and the data content corresponding to the current log.
  • the clock signal and data signal are then encoded to convert the original clock and data signals into communication signals suitable for transmission over a single-wire transmission channel.
  • the reason the hard drive encodes the clock and data signals before transmission is that, in single-wire communication, clock calibration cannot be performed between the sender and receiver (that is, between the hard drive status pin and the baseboard management controller), making it impossible to determine whether the data signal is transmitted based on the correct clock.
  • clock calibration cannot be performed between the sender and receiver (that is, between the hard drive status pin and the baseboard management controller), making it impossible to determine whether the data signal is transmitted based on the correct clock.
  • By encoding the clock and data signals they can be combined into a single communication signal for transmission, meeting the requirements of signal transmission in single-wire communication scenarios.
  • the clock signal and data signal are obtained by parsing the communication signal, and whether the hard disk clock is accurate is judged based on the clock signal. In this way, the clock signal can be detected in a single-line communication mode to ensure the accuracy of data transmission.
  • flag signals when transmitting a data signal, along with the valid data to be transmitted, there are usually several flag signals that are transmitted together with the data to be transmitted, such as a flag signal that indicates the start of data transmission, a flag that indicates the end of data transmission, a data check bit, etc., which are interspersed in the transmission process of the data to be transmitted, and these flag signals are usually given a fixed pulse width in the communication protocol.
  • the present application uses these fixed pulse width flag signals to carry the clock signal to realize the function of transmitting both the data to be transmitted and the clock signal during the single-line communication process.
  • the data signal indicates the start flag bit for the start of data transmission and the end flag bit for the end of data transmission.
  • the data to be transmitted (including multiple data bits) is between the start flag bit and the end flag bit, and the start flag bit and the end flag bit can be used to encode the clock signal.
  • the hard disk status pin outputs a control signal of a first level when the hard disk is in a preset state, inserts a plurality of pulse signals of a second level with a preset width into the control signal, and uses the pulse signals to divide the control signal to obtain a pulse width of the first level corresponding to each data bit, encodes the current clock frequency of the hard disk into a pulse signal of the second level with a preset width, and obtains a communication signal based on the pulse signal of the second level with the preset width and the plurality of pulse widths of the first level, wherein the data signal includes a plurality of data bits, and the second level is opposite to the first level;
  • determining whether the hard disk clock is accurate based on at least two pulse signals of the second level includes:
  • the clock signal itself can be encoded with multiple second-level pulse signals and multiple first-level pulse widths to obtain a communication signal.
  • This communication signal includes not only the clock signal, but also the hard disk log data and the corresponding hard disk status data, ensuring the accurate transmission of the clock signal and the data signal.
  • the transmission of the hard disk status signal, the hard disk log data and the clock signal can be achieved through the hard disk status pin.
  • the clock signal is transmitted using this pulse signal, and the second-level pulse signal of the preset width is used as a segmentation signal to obtain the first-level pulse width corresponding to each data bit.
  • the width of each pulse signal output by the hard disk should be the preset width, or within the range of the preset width. If the hard disk clock is inaccurate, the width of each pulse signal output will deviate from the range of this preset width.
  • the steps for the baseboard management controller to determine whether the hard disk clock is accurate based on the clock signal may include: first parsing the communication signal to obtain at least two second-level pulse signals, and judging whether the corresponding pulse width is within the error range based on the two pulse signals; if it is within the error range, it is determined that the clock has not drifted during the data transmission process, and the hard disk clock is accurate; otherwise, it is determined that the clock has drifted during the data transmission process, the hard disk clock is inaccurate, and correspondingly, the transmitted data signal is also inaccurate.
  • the communication signal is parsed to obtain a square wave signal and a data signal, wherein a square wave frequency of the square wave signal and a clock frequency of the hard disk are in a second mapping relationship;
  • a square wave signal corresponding to the clock signal is regenerated, encoded with the data signal, and transmitted together to the baseboard management controller end (the combination of the square wave and the data signal is shown in Figure 4, the data signal includes a start flag indicating the start of data transmission, an end flag indicating the end of data transmission, and the data to be transmitted (including multiple data bits).
  • the square wave signal can be inserted before the first data bit and after the last data bit of the data to be transmitted).
  • the BMC After receiving the communication signal, the BMC analyzes it in the following steps: It parses the received communication signal and separates it into a square wave signal and a data signal. This process allows the BMC to obtain the encoded clock and data signals. Based on the parsed square wave signal, the BMC determines whether the hard drive's clock is accurate. By analyzing the frequency and characteristics of the square wave signal, the BMC assesses the hard drive's clock accuracy and promptly corrects any clock errors or drift, ensuring accurate and stable data transmission.
  • determining whether the hard disk clock is accurate based on the square wave signal includes:
  • the hard drive clock is determined to be accurate
  • This embodiment describes the specific steps for a baseboard management controller (BMC) to parse a communication signal and the conditions for determining the hard drive clock accuracy.
  • the BMC parses the communication signal to obtain at least two square wave signals and a first pulse width signal.
  • the BMC needs to parse the communication signal and extract the square wave signal and pulse width signal contained therein for subsequent clock accuracy determination.
  • the BMC needs to determine whether the frequency difference between the two square wave signals is within a preset frequency range. This step is to determine whether the hard drive clock frequency is stable. By comparing the frequency difference of the square wave signals, it can determine whether the hard drive clock frequency is within the expected range. Finally, if the frequency difference is within the preset frequency range, the BMC determines that the hard drive clock is accurate.
  • the methods for determining whether the hard disk clock is accurate based on the square wave signal may include the following: first, comparing the square wave frequency of the parsed square wave signal with a square wave reference frequency pre-stored in the baseboard management controller to determine whether the difference between the two is within a preset range; second, determining the clock frequency based on the square wave frequency of the parsed square wave signal and a second mapping relationship, comparing the clock frequency with a clock reference frequency pre-stored in the baseboard management controller to determine whether the difference between the two is within a preset range; third, parsing at least two square wave signals, determining the square wave frequencies of the two square wave signals, determining whether the difference between the two square wave frequencies is within a preset range, and determining whether the clock drift occurs in the time period between the two square wave signals; fourth, parsing at least two square wave signals, determining the square wave frequencies of the two square wave signals, determining two clock frequencies based on the square wave frequencies of the par
  • this embodiment describes how a baseboard management controller (BMC) analyzes square wave signals within communication signals to assess the hard drive's clock accuracy and make judgments based on pre-set standards.
  • BMC baseboard management controller
  • it further includes:
  • the baseboard management controller when the hard drive clock is determined to be inaccurate, the baseboard management controller sends a feedback signal to the hard drive via the hard drive status pin to trigger the hard drive to retransmit the data signal or communication signal. Since there is only a single-line connection between the hard drive and the baseboard management controller, a strict agreement on the data transmission time is required to ensure the accuracy and timeliness of communication.
  • One method of agreeing on time is to pre-set a time window in the system, within which the hard drive sends the data signal or communication signal. After receiving the data signal or communication signal, the baseboard management controller sends a feedback signal within the preset time window. Through this agreed-on time method, the hard drive and the baseboard management controller can communicate within the agreed time, ensuring the accuracy and timeliness of data transmission. This method can effectively improve the reliability and stability of data transmission and ensure the normal operation of the system.
  • the baseboard management controller determines that the hard disk clock is inaccurate, it also includes: generating an error report and feeding it back to the hard disk controller, so that the hard disk controller switches the hard disk or adjusts the hard disk clock source based on the error report.
  • the baseboard management controller determines that the hard disk clock is inaccurate, it will also generate a detailed error report, which may include the specific clock deviation value and time, etc. This error report will be promptly fed back to the hard disk controller for reference.
  • the hard disk controller can choose to switch hard disks based on the information in the error report, such as switching to a spare hard disk, to ensure data security and reliability; specifically, before switching hard disks, it is necessary to first completely back up the data on the current hard disk to the spare hard disk, then connect the spare hard disk to the baseboard management controller, and re-transmit the data signal.
  • the hard drive controller can also adjust the hard drive's clock source based on the information in the error report, such as by changing the hard drive's clock source control parameters or synchronizing the hard drive's internal clock with an external clock signal. Adjusting the clock source when the clock is inaccurate ensures proper hard drive operation and prevents data loss or corruption, effectively improving the hard drive's stability and reliability.
  • the present application further provides a clock detection method, which is applied to a hard disk, and single-line communication between the hard disk and the baseboard management controller.
  • the clock detection method includes:
  • S21 Encode its own clock signal and data signal to obtain a communication signal.
  • the data 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;
  • the first step is to obtain the drive's clock signal and data signal.
  • the clock signal corresponds to the clock source within the hard drive, used to synchronize data transmission and processing.
  • the data signal is modulated based on the hard drive's log data and the hard drive status signal corresponding to the hard drive status pin. It contains the hard drive status information and the data content corresponding to the current log.
  • the clock and data signals are then encoded. The purpose of encoding is to convert the original clock and data signals into communication signals suitable for transmission over a single-wire transmission channel.
  • the clock and data signals need to be encoded before transmission because, in single-wire communication, clock calibration cannot be performed between the transmitter and receiver (that is, between the hard drive's hard drive status pin and the baseboard management controller), making it impossible to determine whether the data signal is transmitted based on the correct clock.
  • clock calibration cannot be performed between the transmitter and receiver (that is, between the hard drive's hard drive status pin and the baseboard management controller), making it impossible to determine whether the data signal is transmitted based on the correct clock.
  • the baseboard management controller can then parse this communication signal to obtain the clock and data signals and, based on the clock signal, determine whether the hard drive's clock is accurate. This allows clock signal detection in single-wire communication, ensuring the accuracy of data transmission.
  • S22 Sending the communication signal to the baseboard management controller through the hard disk status pin, so that the baseboard management controller analyzes the communication signal to obtain a clock signal and a data signal, and determines whether the hard disk clock is accurate based on the clock signal.
  • the baseboard management controller end after receiving the communication signal, the communication signal is parsed to obtain the clock signal and data signal, and then the hard disk clock is judged based on the clock signal to determine whether the hard disk clock is accurate. If the hard disk clock is accurate, the data signal transmitted by the hard disk is also determined to be accurate, otherwise the data signal transmitted by the hard disk is determined to be inaccurate.
  • the clock detection method of the present application can realize the transmission of hard disk log data, hard disk status signal and clock signal through the hard disk status pin, and can calibrate the hard disk clock by encoding the clock signal and data signal, and parsing the communication signal, and then determine whether the data signal is based on the correct clock transmission, so as to detect problems in time and ensure the accuracy of data signal transmission.
  • the baseboard management controller analyzes the communication signal to obtain the clock signal and data signal, and determines whether the hard disk clock is accurate based on the clock signal, including:
  • the baseboard management controller analyzes the communication signal to obtain at least two flag signals and data to be transmitted;
  • the accuracy of the hard disk clock is determined based on the pulse width corresponding to the two flag signals.
  • This embodiment further describes in detail the composition and processing method of the data signal, as well as the analysis and clock accuracy judgment method of the communication signal by the baseboard management controller.
  • several flag signals are usually transmitted together with the data to be transmitted, such as a flag signal that indicates the start of data transmission, a flag signal that indicates the end of data transmission, a data check bit, etc., which are interspersed in the transmission process of the data to be transmitted.
  • These flag signals are usually assigned a fixed pulse width in the communication protocol. At this time, the present application uses these fixed pulse width flag signals to carry the clock signal to achieve the function of transmitting both the data to be transmitted and the clock signal during the single-line communication process.
  • the data signal indicates the start flag bit that indicates the start of data transmission and the end flag bit that indicates the end of data transmission. Between the start flag bit and the end flag bit is the data to be transmitted (including multiple data bits). The start flag bit and the end flag bit can be used to encode the clock signal.
  • the data signal in the present application includes data to be transmitted and a flag signal of a fixed pulse width
  • a communication signal containing a clock frequency, a flag signal and data to be transmitted can be generated by encoding its own clock signal and the flag signal in the data signal. Encoding the current clock frequency into the flag signal can ensure that the clock information can be synchronized during the data transmission process.
  • the flag signal and the data to be transmitted are integrated to form a complete communication signal so that it can be transmitted to the baseboard management controller on a single-line transmission channel.
  • the baseboard management controller parses the received communication signal, obtains at least two flag signals and the data to be transmitted, and determines whether the hard disk clock is accurate based on the pulse width corresponding to the two flag signals. By comparing the changes in the pulse width, the accuracy of the hard disk clock can be evaluated, thereby ensuring the correctness and reliability of data transmission.
  • the present application multiplexes a flag signal, which is used not only to indicate the progress of data transmission or for verification purposes, but also to determine the accuracy of the clock.
  • the flag signal should have a fixed pulse width when the clock is normal. If the pulse width changes, and the degree of change is greater than a threshold, the hard drive clock is considered inaccurate. If the pulse width remains unchanged, or the degree of change is within the threshold, the hard drive clock is considered accurate.
  • encoding the clock signal and the flag signal can not only more accurately evaluate the accuracy of the hard disk clock, which helps to promptly detect and correct clock inaccuracies, but also simplify the system design, so that more information can be transmitted within a limited channel under single-line communication mode, reducing the need for additional lines and lowering system complexity and cost.
  • the hard disk status pin outputs a control signal of a first level when the hard disk is in a preset state; and encodes its own clock signal and data signal to obtain a communication signal, including:
  • the clock signal thereof is encoded with a plurality of second-level pulse signals and a plurality of first-level pulse widths to obtain a communication signal.
  • the hard disk when the hard disk status pin outputs a first-level control signal when the hard disk is in a preset state, the hard disk modulates the hard disk status signal and hard disk status data to obtain the first signal.
  • the process may include: in the preset state, inserting a plurality of second-level pulse signals of preset width into the control signal, so as to divide the control signal using the pulse signals to obtain a first-level pulse width corresponding to each data bit, wherein the data signal includes multiple data bits and the second level is opposite to the first level. That is, by inserting a second-level pulse signal of opposite width into a constant first level to obtain a plurality of first-level pulse width signals, the hard disk log data is modulated.
  • its own clock signal can be encoded with multiple second-level pulse signals and multiple first-level pulse widths to obtain a communication signal.
  • This communication signal not only includes the clock signal, but also the hard disk log data and the corresponding hard disk status data, ensuring the accurate transmission of the clock signal and data signal, and the transmission of the hard disk status signal, hard disk log data and clock signal can be realized through the hard disk status pin.
  • the process of the baseboard management controller parsing the communication signal includes: parsing the hard disk clock signal and multiple second-level pulse signals and multiple first-level pulse widths from the communication signal, and judging the hard disk clock based on the clock signal.
  • 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. Since the implementation method is the same, this application will not elaborate on it here.
  • the hard disk status pin of the hard disk is utilized to realize the transmission of the hard disk status signal and the hard disk log data through modulation at the hard disk end, so that the baseboard management controller can monitor the hard disk by parsing the hard disk log data according to the data signal; further, the clock signal is modulated into the pulse signal in the hard disk log data, and the clock signal is parsed without using a clock line, so that the baseboard management controller can determine whether the hard disk clock is accurate according to the clock signal.
  • encoding the clock signal thereof with a plurality of second-level pulse signals and a plurality of first-level pulse widths to obtain a communication signal includes:
  • the baseboard management controller analyzes the communication signal to obtain the clock signal and data signal, and determines whether the hard disk clock is accurate based on the clock signal, including:
  • the baseboard management controller analyzes the communication signal to obtain at least two second-level pulse signals and a plurality of first-level pulse widths
  • the hard disk clock is determined to be accurate
  • the flag signal with a fixed pulse width is a pulse signal of a second level with a preset width.
  • Encoding the clock signal and the data signal is to encode the clock signal with this pulse signal. That is, the clock signal is transmitted using this pulse signal.
  • a pulse signal of a second level with a preset width is used as a segmentation signal to obtain a pulse width of the first level corresponding to each data bit.
  • the steps for the baseboard management controller to determine whether the hard disk clock is accurate based on the clock signal may include: first parsing the communication signal to obtain at least two second-level pulse signals, and judging whether the corresponding pulse width is within the error range based on the two pulse signals; if it is within the error range, it is determined that the clock has not drifted during the data transmission process, and the hard disk clock is accurate; otherwise, it is determined that the clock has drifted during the data transmission process, the hard disk clock is inaccurate, and correspondingly, the transmitted data signal is also inaccurate.
  • this application provides a specific implementation method for transmitting hard disk log data using the hard disk status pin of the hard disk.
  • This method can realize the transmission of hard disk log data using the original pins of the hard disk, and then the baseboard management controller can monitor the hard disk based on this hard disk log data.
  • this application also utilizes the modulation of the hard disk log data and the hard disk status signal and incorporates the clock signal. Therefore, the hard disk status pin of the hard disk can realize both the transmission of hard disk log data and the judgment of the clock, thereby improving the accuracy of the transmitted hard disk log data.
  • encoding its own clock signal and data signal to obtain a communication signal includes:
  • the baseboard management controller analyzes the communication signal to obtain the clock signal and data signal, and determines whether the hard disk clock is accurate based on the clock signal, including:
  • the baseboard management controller analyzes the communication signal to obtain a square wave signal and a data signal, and determines whether the hard disk clock is accurate based on the square wave signal.
  • the clock signal and the existing fixed pulse width flag signal are encoded so that the flag signal carries the clock signal, and then whether the hard disk clock is accurate can be determined based on the flag signal.
  • This embodiment aims to provide a specific step of regenerating a square wave signal corresponding to a clock signal, encoding it with a data signal, and transmitting it together to the baseboard management controller end.
  • the specific steps of encoding its own clock signal and data signal to obtain a communication signal include: encoding its own current clock frequency into a square wave signal, and the frequency of the square wave signal and the clock frequency are in a second mapping relationship. This means that the frequency change of the square wave signal and the change of the clock frequency are in a second mapping relationship, so that the clock signal can be accurately restored at the baseboard management controller end based on the square wave signal and the second mapping relationship.
  • the encoded square wave signal is inserted into the data signal, and together with the data signal, it constitutes a complete communication signal; in this way, the clock signal and the data signal are combined and transmitted together, ensuring the synchronization of the clock information and the data information.
  • the BMC After receiving the communication signal, the BMC analyzes it in the following steps: It parses the received communication signal and separates it into a square wave signal and a data signal. This process allows the BMC to obtain the encoded clock and data signals. Based on the parsed square wave signal, the BMC determines whether the hard drive's clock is accurate. By analyzing the frequency and characteristics of the square wave signal, the BMC assesses the hard drive's clock accuracy and promptly corrects any clock errors or drift, ensuring accurate and stable data transmission.
  • the square wave signal since the square wave signal exhibits significant high and low level variations, it is easily parsed by the baseboard management controller.
  • the baseboard management controller can recover the clock signal by detecting the frequency and characteristics of the square wave signal, thereby ensuring the accuracy of the clock information.
  • the frequency of the square wave signal varies relatively quickly, allowing the transmission of information spanning multiple clock cycles in a relatively short period of time. This improves data transmission efficiency and effectively conserves communication bandwidth.
  • the square wave signal since the square wave signal exhibits significant high and low level variations, it can better resist the effects of noise and interference, reducing bit error rates and improving data transmission reliability.
  • the method of determining whether the hard disk clock is accurate based on the square wave signal may include the following: first, comparing the square wave frequency of the parsed square wave signal with the square wave reference frequency pre-stored in the baseboard management controller to determine whether the difference between the two is within a preset range; second, determining the clock frequency based on the square wave frequency of the parsed square wave signal and the second mapping relationship, comparing the clock frequency with the clock reference frequency pre-stored in the baseboard management controller to determine whether the difference between the two is within a preset range; third, parsing at least two square wave signals, determining the square wave frequencies of the two square wave signals, determining whether the difference between the two square wave frequencies is within a preset range, and determining whether the clock drift occurs in the time period between the two square wave signals; fourth, parsing at least two square wave signals, determining the square wave frequencies of the two square wave signals, determining two clock frequencies based on the square wave frequencies of the parsed
  • encoding its own clock signal and data signal to obtain a communication signal includes:
  • each data bit into a pulse width corresponding to the data bit one by one to obtain a first pulse width signal, wherein the data signal includes multiple data bits, and the first pulse width signal includes pulse widths corresponding to the multiple data bits;
  • the baseboard management controller analyzes the communication signal to obtain the clock signal and data signal, and determines whether the hard disk clock is accurate based on the clock signal, including:
  • the baseboard management controller analyzes the communication signal to obtain a square wave signal and a first pulse width signal, and determines whether the hard disk clock is accurate based on the square wave signal.
  • This embodiment provides a specific implementation method for encoding the clock signal and data signal of the hard disk to obtain a communication signal.
  • the data signal is a signal obtained by modulating the hard disk log data and the hard disk status signal, while the clock signal is encoded as a square wave signal.
  • the frequency of the square wave signal and the clock frequency have a second mapping relationship.
  • This encoding method helps to retain the clock frequency information during the transmission process, so that the baseboard management controller can restore the accurate clock signal.
  • the communication signal is sent to the baseboard management controller through the hard disk status pin, so that the baseboard management controller parses the communication signal to obtain the clock signal and data signal, and determines whether the hard disk clock is accurate based on the clock signal.
  • the data signal is encoded as follows: each data bit is encoded into a pulse width corresponding to the data bit, and a first pulse width signal is obtained; wherein, the data signal includes multiple data bits, and the first pulse width signal includes pulse widths corresponding to the multiple data bits; such an encoding method can effectively convert the data bits into pulse width information, which is convenient for parsing and identifying during the transmission process.
  • the square wave signal and the data signal are encoded as follows: the square wave signal and the first pulse width signal are encoded to obtain a final communication signal. This step integrates the clock signal and the data signal into a unified communication signal for transmission on a single-line transmission channel.
  • the baseboard management controller parses the received communication signal to obtain a square wave signal and a first pulse width signal, and judges whether the hard disk clock is accurate based on the square wave signal (and/or parses the data signal based on the first pulse width signal). Through parsing and judging, the baseboard management controller can accurately evaluate the accuracy of the hard disk clock, thereby ensuring the reliability and accuracy of data transmission.
  • this embodiment determines the accuracy of the hard drive's clock by encoding the hard drive's clock and data signals and parsing them at the receiving end. This solves the problem of clock calibration being impossible in single-wire communication. Furthermore, this method can be effectively applied to single-wire connections between hard drives and baseboard management controllers, improving communication reliability and accuracy.
  • encoding the square wave signal and the first pulse width signal to obtain a communication signal includes:
  • At least two square wave signals are respectively inserted before the pulse width corresponding to the first data bit and/or after the pulse width corresponding to the last data bit and/or between the pulse widths corresponding to any two data bits to obtain a communication signal.
  • At least two square wave signals are specifically inserted into specific positions in the communication signal, such as before the pulse width corresponding to the first data bit, after the pulse width corresponding to the last data bit, and between the pulse widths corresponding to any two data bits.
  • the square wave signal is combined with the first pulse width signal to form an optimized communication signal structure.
  • the optimized communication signal not only contains the original square wave signal and the first pulse width signal information, but also contains the additional inserted square wave signal, making the transmitted data richer and more complete.
  • the data signal includes a start flag indicating the start of data transmission, an end flag indicating the end of data transmission, and the data to be transmitted (including multiple data bits).
  • a square wave signal can be inserted before the first data bit and after the last data bit of the data to be transmitted. By determining whether the square wave signal drifts, the accuracy of the clock signal throughout the entire transmission process of the data to be transmitted can be determined.
  • the shape of the square wave signal is shown in Figure 5.
  • the baseboard management controller After receiving the communication signal, the baseboard management controller effectively analyzes the square wave signal and the first pulse width signal and uses this information to determine the hard drive clock accuracy. This allows the baseboard management controller to more accurately assess the hard drive clock accuracy, thereby improving the overall stability and reliability of the system.
  • the time interval between the insertion positions of the two square wave signals is not less than a preset time interval, or the number of data bits between the insertion positions of the two square wave signals is not less than a preset number, so as to facilitate the determination of whether the clock signal drifts in the time period between the two square wave signals.
  • this embodiment further improves the encoding and parsing process of the communication signal in the hard disk clock detection method, improves the system's ability to evaluate clock accuracy, and also enhances the reliability and stability of data transmission.
  • encoding each data bit into a pulse width corresponding to the data bit to obtain a first pulse width signal includes:
  • Each data bit is encoded into a pulse width with a duty cycle corresponding to the data bit one by one to obtain a first pulse width signal, and a third mapping relationship is formed between the duty cycle and the data bit.
  • the present embodiment describes the step of encoding each data bit into a pulse width corresponding to a data bit. Specifically, if each data bit is digitized into hexadecimal, 16 different pulse widths are set, which can correspond to 16 digits in the hexadecimal systems such as 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, and F.
  • each hexadecimal encoding is corresponding to the pulse width of a specific duty cycle, i.e., 0 corresponds to the pulse width of a specific duty cycle, 1 corresponds to another duty cycle pulse width, and so on (the pulse width of different duty cycles corresponds to different data bits in hexadecimal), and the combination of all pulse widths is the first pulse width signal.
  • the hard disk status pin is the indicator light pin of the hard disk.
  • the encoding method in this embodiment can be used. This encoding method still presents a pulse width signal with a duty cycle, thereby also realizing the function of making the indicator light flash.
  • the hard disk log data and hard disk status signal can be encoded and output to the baseboard management controller through the hard disk status pin, so that the baseboard management controller can parse the data and obtain the hard disk log data and hard disk status signal through the hard disk status pin.
  • encoding each data bit into a pulse width corresponding to the data bit to obtain a first pulse width signal includes:
  • Each data bit is encoded into a pulse width of a preset level corresponding to the data bit to obtain a first pulse width signal, and a fourth mapping relationship exists between the pulse width of the preset level and the data bit.
  • each data bit is encoded into a pulse width of a preset level corresponding to the data bit, thereby obtaining a first pulse width signal.
  • Specific steps may include: first determining the number of data bits to be encoded, for example, by converting each data bit of the hard disk log data into hexadecimal, i.e., setting 16 different pulse widths corresponding to the sixteen hexadecimal digits 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, and F.
  • the pulse width can be designed to be 42 milliseconds to 49 milliseconds and 51 milliseconds to 58 milliseconds, and every 1 millisecond corresponds to a hexadecimal data, that is, a total of 16 pulse widths correspond to the sixteen digits in hexadecimal; according to specific needs, the pulse width encoding method corresponding to each data bit is determined, and each data bit is encoded one by one.
  • all data bits may be encoded as high levels of corresponding widths or low levels of corresponding widths, and the data bits may be spaced by inserting opposite levels between two adjacent data bits; for example, 0 is encoded as the first pulse width, 1 is encoded as the second pulse width, 2 is encoded as the third pulse width, and 3 is encoded as the fourth pulse width. If the first to fourth pulse widths are high levels, a low level of a certain width is inserted between the two adjacent data bits (to space the two data bits); if the first to fourth pulse widths are low levels, a high level of a certain width is inserted between the two adjacent data bits (to space the two data bits).
  • the combination of data bits is not limited to the above, and the encoding method is not limited to the above examples.
  • the encoding method of this embodiment can be used.
  • This encoding method still presents a pulse width signal composed of a combination of high and low levels, thereby also achieving the function of flashing the indicator.
  • each data bit can be encoded into a corresponding pulse width signal to achieve data transmission and processing.
  • it further includes:
  • the baseboard management controller After the baseboard management controller determines that the clock of the hard disk is inaccurate, receiving a feedback signal sent by the baseboard management controller;
  • the data signal or the communication signal is resent based on the feedback signal.
  • the baseboard management controller determines that the hard drive clock is inaccurate, it sends a feedback signal. Then, based on this feedback signal, it resends the data signal or communication signal. This process ensures that the hard drive clock is calibrated in a timely manner, thereby ensuring the accuracy and stability of data transmission.
  • the baseboard management controller plays a vital role by promptly detecting the accuracy of the hard drive clock and issuing the corresponding feedback signal. After receiving the feedback signal, the system can resend the data signal or communication signal as appropriate to ensure the accuracy of the hard drive clock. This way, even if the hard drive clock deviates, the baseboard management controller can promptly calibrate and correct it, ensuring the accuracy and stability of data transmission.
  • the data transmission time can be pre-arranged, and the BMC will send a feedback signal within the preset time.
  • One method for pre-arranging the time is to pre-set a time window in the system within which the hard drive sends data or communication signals. After receiving the data or communication signal, the BMC sends a feedback signal within the preset time window. This allows the hard drive and BMC to communicate within the agreed timeframe, ensuring accurate and timely data transmission.
  • the method of this embodiment can effectively ensure the accuracy of the hard disk clock and the stability of data transmission.
  • FIG7 the process at the sending end (hard disk end) is shown in FIG7 :
  • S71 Start; S72: Send communication request; S73: Send clock signal; S74: Send data signal; S75: Send clock signal; S76: Send data end mark; S77: Wait for the verification pass signal fed back by the baseboard management controller; S78: Whether the verification pass signal is received; if so, enter S710, otherwise enter S79; S79: Resend the data signal; S710: End.
  • S81 Start; S82: Detect communication request signal; S83: Record clock signal; S84: Receive data signal and perform data analysis; S85: Record clock signal; S86: Receive data end mark; S87: Compare the error between the two clock signals; S88: Is the error within the preset range? If so, enter S89, otherwise enter S810; S89: Send verification pass signal; S810: Send verification fail signal.
  • the present application further provides a clock detection system, as shown in FIG9 , wherein a single-line communication is performed between the hard disk and the baseboard management controller.
  • the clock detection system includes:
  • the encoding unit 91 is used to encode its own clock signal and data signal to obtain a communication signal.
  • the data signal is a signal modulated by the hard disk based on the hard disk log data and the hard disk status signal corresponding to the hard disk status pin;
  • the sending unit 92 is used to send the communication signal to the baseboard management controller through the hard disk status pin, so that the baseboard management controller analyzes the communication signal, obtains the clock signal and the data signal, and determines whether the hard disk clock is accurate based on the clock signal.
  • the data signal includes data to be transmitted and a flag signal with a fixed pulse width, and the flag signal is used to indicate the current transmission progress of the data signal.
  • the encoding unit 91 includes:
  • a first encoding unit configured to encode its current clock frequency into a flag signal
  • An integration unit used for integrating the flag signal and the data to be transmitted to obtain a communication signal
  • the baseboard management controller analyzes the communication signal to obtain the clock signal and data signal, and determines whether the hard disk clock is accurate based on the clock signal, including:
  • the baseboard management controller analyzes the communication signal to obtain at least two flag signals and data to be transmitted;
  • the accuracy of the hard disk clock is determined based on the pulse width corresponding to the two flag signals.
  • the hard disk status pin outputs a control signal of a first level when the hard disk is in a preset state;
  • the encoding unit 91 includes:
  • a pulse inserting unit configured to insert a plurality of pulse signals of a second level with a preset width into the control signal, so as to divide the control signal using the pulse signals to obtain pulse widths of the first level corresponding to respective data bits, wherein the data signal includes a plurality of data bits, and the second level is opposite to the first level;
  • the second encoding unit is used to encode its own clock signal, a plurality of second-level pulse signals, and a plurality of first-level pulse widths to obtain a communication signal.
  • the second encoding unit is specifically configured to encode its current clock frequency into a pulse signal of a second level with a preset width, wherein the clock frequency and the preset width are in a first mapping relationship, and the communication signal includes a plurality of pulse signals of the second level with a preset width and a plurality of pulse widths of the first level;
  • the baseboard management controller analyzes the communication signal to obtain the clock signal and data signal, and determines whether the hard disk clock is accurate based on the clock signal, including:
  • the baseboard management controller analyzes the communication signal to obtain at least two second-level pulse signals and a plurality of first-level pulse widths
  • the hard disk clock is determined to be accurate
  • the encoding unit 91 includes:
  • a third encoding unit is configured to encode its current clock frequency into a square wave signal, wherein the frequency of the square wave signal and the clock frequency are in a second mapping relationship;
  • a square wave insertion unit used for inserting a square wave signal into a data signal to obtain a communication signal
  • the baseboard management controller analyzes the communication signal to obtain the clock signal and data signal, and determines whether the hard disk clock is accurate based on the clock signal, including:
  • the baseboard management controller analyzes the communication signal to obtain a square wave signal and a data signal, and determines whether the hard disk clock is accurate based on the square wave signal.
  • the encoding unit 91 includes:
  • a third encoding unit is configured to encode its current clock frequency into a square wave signal, wherein the frequency of the square wave signal and the clock frequency are in a second mapping relationship;
  • a fourth encoding unit configured to encode each data bit into a pulse width corresponding to the data bit one by one, to obtain a first pulse width signal, wherein the data signal includes a plurality of data bits, and the first pulse width signal includes pulse widths corresponding to the plurality of data bits;
  • a fifth encoding unit configured to encode the square wave signal and the first pulse width signal to obtain a communication signal
  • the baseboard management controller analyzes the communication signal to obtain the clock signal and data signal, and determines whether the hard disk clock is accurate based on the clock signal, including:
  • the baseboard management controller analyzes the communication signal to obtain a square wave signal and a first pulse width signal, and determines whether the hard disk clock is accurate based on the square wave signal.
  • the fifth encoding unit is specifically used to insert at least two square wave signals before the pulse width corresponding to the first data bit and/or after the pulse width corresponding to the last data bit and/or between the pulse widths corresponding to any two data bits to obtain a communication signal.
  • the fourth encoding unit is specifically configured to encode each data bit into a pulse width with a duty cycle corresponding to the data bit one by one to obtain a first pulse width signal, and a third mapping relationship exists between the duty cycle and the data bit.
  • the fourth encoding unit is specifically configured to encode each data bit into a pulse width of a preset level corresponding to the data bit to obtain a first pulse width signal, and a fourth mapping relationship exists between the pulse width of the preset level and the data bit.
  • it further includes:
  • a feedback unit configured to receive a feedback signal sent by the baseboard management controller after the baseboard management controller determines that the clock of the hard disk is inaccurate;
  • the data signal or the communication signal is resent based on the feedback signal.
  • the present application further provides a clock detection system, as shown in FIG10 , which is applied to a baseboard management controller, wherein the baseboard management controller communicates with the hard disk via a single line.
  • the clock detection system includes:
  • the receiving unit 101 is used to receive the communication signal sent by the hard disk through the hard disk status pin.
  • the communication signal is a signal obtained by the hard disk according to the data signal and its own clock signal encoding;
  • the parsing unit 102 is used to parse the communication signal to obtain a clock signal and a data signal;
  • the judgment unit 103 is configured to judge whether the hard disk clock is accurate based on the clock signal.
  • the parsing unit 102 is specifically configured to parse the communication signal to obtain at least two flag signals and data to be transmitted;
  • the data signal includes the data to be transmitted and a flag signal with a fixed pulse width, the flag signal is used to represent the current transmission progress of the data signal, and the hard disk encodes its current clock frequency into the flag signal;
  • the judging unit 103 is specifically configured to judge whether the hard disk clock is accurate according to the pulse widths corresponding to the two flag signals.
  • the judgment unit 103 is specifically used to judge whether the pulse widths corresponding to the two flag signals are within a preset range of the standard pulse width, or whether the difference between the pulse widths corresponding to the two flag signals is within an error range; if the pulse widths corresponding to the two flag signals are within the preset range of the standard pulse width, or the difference is within the error range, it is determined that the hard disk clock is accurate; if the pulse widths corresponding to the two flag signals are not within the preset range of the standard pulse width, or the difference is not within the error range, it is determined that the hard disk clock is inaccurate.
  • the hard disk status pin outputs a control signal of a first level when the hard disk is in a preset state, inserts a plurality of pulse signals of a second level with a preset width into the control signal, and uses the pulse signals to divide the control signal to obtain a pulse width of the first level corresponding to each data bit, encodes the current clock frequency of the hard disk into a pulse signal of the second level with a preset width, and obtains a communication signal based on the pulse signal of the second level with the preset width and the plurality of pulse widths of the first level, wherein the data signal includes a plurality of data bits, and the second level is opposite to the first level;
  • the analyzing unit 102 is specifically configured to analyze the communication signal to obtain at least two second-level pulse signals and a plurality of first-level pulse widths;
  • the judging unit 103 is specifically configured to judge whether the clock of the hard disk is accurate based on at least two pulse signals of the second level.
  • the judgment unit 103 is specifically used to judge whether the width difference between the two second-level pulse signals is within an error range; if it is within the error range, it is determined that the hard disk clock is accurate; if it is not within the error range, it is determined that the hard disk clock is inaccurate.
  • the parsing unit 102 is specifically configured to parse the communication signal to obtain a square wave signal and a data signal, wherein a square wave frequency of the square wave signal and a clock frequency of the hard disk are in a second mapping relationship;
  • the judgment unit 103 is specifically configured to judge whether the hard disk clock is accurate based on the square wave signal.
  • the judgment unit 103 is specifically used to determine whether the frequency difference between the two square wave signals is within a preset frequency range; if the frequency difference is within the preset frequency range, it is determined that the hard disk clock is accurate; if the frequency difference is not within the preset frequency range, it is determined that the hard disk clock is inaccurate.
  • it further includes:
  • the feedback sending unit is used to send a feedback signal to the hard disk through the hard disk status pin when it is determined that the hard disk clock is inaccurate, so as to trigger the hard disk to retransmit the data signal or communication signal.
  • the present application further provides an electronic device, as shown in FIG11 , comprising:
  • Memory 111 for storing computer-readable instructions
  • the processor 112 is configured to implement the steps of the above-mentioned clock detection method when executing computer-readable instructions.
  • the present application also provides one or more non-volatile computer-readable storage media storing computer-readable instructions.
  • the computer-readable instructions are executed by one or more processors, the one or more processors implement the steps of the clock detection method as described above.
  • the present application further provides a server, comprising a hard disk and a baseboard management controller, wherein the hard disk and the baseboard management controller are connected by a single line, and there is only one transmission channel between the hard disk and the baseboard management controller via the single line;
  • the hard disk is used to implement the steps of the above-mentioned clock detection method applied to the hard disk;
  • the baseboard management controller is used to implement the steps of the above-mentioned clock detection method applied to the baseboard management controller.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present application relates to the field of data processing, and discloses a clock detection method and system, a device, a medium, and a server, for use in solving the problem of inaccurate data transmission caused by an inaccurate clock during one-wire communication. According to the solution a clock signal of a hard disk and a data signal are encoded to obtain a communication signal; and the communication signal is sent to a baseboard management controller, so that the baseboard management controller parses the communication signal, and on the basis of the clock signal obtained by parsing, determines whether a clock of the hard disk is accurate. According to the present application, hard disk log data, a hard disk state signal, and a clock signal can be transmitted via a hard disk state pin, the clock of a hard disk can be calibrated by encoding the clock signal and a data signal and parsing a communication signal, and then whether the data signal is transmitted on the basis of an accurate clock can determined, so as to find a problem in time to ensure the accuracy of data signal transmission, thereby ensuring the reliability of monitoring the hard disk.

Description

一种时钟检测方法、系统、设备、介质及服务器Clock detection method, system, device, medium and server

相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS

本申请要求于2024年03月29日提交中国专利局,申请号为202410382840.2,申请名称为“一种时钟检测方法、系统、设备、介质及服务器”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application filed with the China Patent Office on March 29, 2024, with application number 202410382840.2, and application name “A clock detection method, system, device, medium and server”, all contents of which are incorporated by reference into this application.

技术领域Technical Field

本申请涉及数据处理领域,特别涉及一种时钟检测方法、系统、设备、介质及服务器。The present application relates to the field of data processing, and in particular to a clock detection method, system, device, medium and server.

背景技术Background Art

硬盘是计算机最主要的存储设备之一,由此,硬盘的健康运行是保障设备服务器可靠性的关键因素之一。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.

为保证对硬盘的运行状态的精准掌控,需要设备在硬盘运行过程中进行监控以获取硬盘的状态信息。目前主要的硬盘监控方案分为硬盘带内监控和硬盘带外监控。硬盘带内监控即通过中央处理器(Central Processing Unit,CPU)上运行的监控软件与硬盘进行数据通信后获取硬盘的状态信息,此种监控方案往往难以将监控数据向运维人员呈现。硬盘的带外监控即通过基板管理控制器(Baseboard Management Controller,BMC)获取硬盘状态信息后进行对硬盘的状态监控,若硬盘与基板管理控制器之间为单线通信,则硬盘只可以向基板管理控制器传输监控数据,无法通过额外的线路进行时钟校准,因此,基板管理控制器无法检测硬盘发送的监控数据是否基于正确的时钟,可能会导致传输的监控数据不准确,对硬盘进行监控的可靠性较低。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. In-band monitoring of the hard disk 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 makes it difficult to present the monitoring data to the operation and maintenance personnel. Out-of-band monitoring of the hard disk is to monitor the status of the hard disk after obtaining the hard disk status information through the Baseboard Management Controller (BMC). If the communication between the hard disk and the BMC is single-line, the hard disk can only transmit monitoring data to the BMC and cannot perform clock calibration through additional lines. Therefore, the BMC cannot detect whether the monitoring data sent by the hard disk is based on the correct clock, which may cause the transmitted monitoring data to be inaccurate, and the reliability of hard disk monitoring is low.

发明内容Summary of the Invention

第一方面,本申请提供了一种时钟检测方法,应用于基板管理控制器,基板管理控制器与硬盘之间单线通信,时钟检测方法包括:In a first aspect, the present application provides a clock detection method, which is applied to a baseboard management controller, wherein the baseboard management controller communicates with a hard disk via a single line. The clock detection method includes:

接收硬盘通过硬盘状态引脚发送的通信信号,通信信号为硬盘根据数据信号和自身的时钟信号编码得到的信号,数据信号为硬盘根据硬盘日志数据和硬盘状态引脚对应的硬盘状态信号调制得到的信号;Receives the communication signal sent by the hard disk through the hard disk status pin. The communication signal is a signal obtained by encoding the hard disk data signal and its own clock signal. The data signal is a signal modulated by the hard disk based on the hard disk log data and the hard disk status signal corresponding to the hard disk status pin.

对通信信号进行解析,得到时钟信号和数据信号;和Analyze the communication signal to obtain a clock signal and a data signal; and

基于时钟信号判断硬盘的时钟是否准确。Determine whether the hard disk clock is accurate based on the clock signal.

在一种实施例中,对通信信号进行解析,得到时钟信号和数据信号,包括:In one embodiment, parsing a communication signal to obtain a clock signal and a data signal includes:

对通信信号进行解析,获取至少两个标志信号和待传输数据;数据信号包括待传输数据和固定脉宽的标志信号,标志信号用于表征数据信号的当前传输进度,硬盘将自身当前的时钟频率编码至标志信号中;Parse the communication signal to obtain at least two flag signals and data to be transmitted; the data signal includes the data to be transmitted and a flag signal with a fixed pulse width. The flag signal is used to represent the current transmission progress of the data signal. The hard disk encodes its current clock frequency into the flag signal;

基于时钟信号判断硬盘的时钟是否准确,包括:Determine whether the hard drive's clock is accurate based on the clock signal, including:

根据两个标志信号对应的脉宽判断硬盘的时钟是否准确。The accuracy of the hard disk clock is determined based on the pulse width corresponding to the two flag signals.

在一种实施例中,根据两个标志信号对应的脉宽判断硬盘的时钟是否准确,包括:In one embodiment, determining whether the hard disk clock is accurate based on the pulse widths corresponding to the two flag signals includes:

判断两个标志信号对应的脉宽是否在标准脉宽的预设范围内,或,判断两个标志信号对应的脉宽之间的差值是否在误差范围内;Determining whether the pulse widths corresponding to the two flag signals are within a preset range of the standard pulse width, or determining whether the difference between the pulse widths corresponding to the two flag signals is within an error range;

响应于两个标志信号对应的脉宽在标准脉宽的预设范围内,或,差值在误差范围内,判定硬盘的时钟准确;和In response to the pulse widths corresponding to the two flag signals being within a preset range of the standard pulse width, or the difference being within an error range, determining that the hard disk clock is accurate; and

响应于两个标志信号对应的脉宽不在标准脉宽的预设范围内,或,差值不在误差范围内,则判定硬盘的时钟不准确。In response to the pulse widths corresponding to the two flag signals not being within a preset range of the standard pulse width, or the difference being not within an error range, it is determined that the hard disk clock is inaccurate.

在一种实施例中,硬盘状态引脚在硬盘为预设状态下输出第一电平的控制信号,通过在控制信号中插入若干个预设宽度的第二电平的脉冲信号,以利用脉冲信号对控制信号进行分割,得到与各个数据位一一对应的第一电平的脉宽,将自身当前的时钟频率编码为预设宽度的第二电平的脉冲信号,根据预设宽度的第二电平的脉冲信号和多个第一电平的脉宽得到通信信号,数据信号包括多个数据位,第二电平与第一电平相反;In one embodiment, the hard disk status pin outputs a control signal of a first level when the hard disk is in a preset state, inserts a plurality of pulse signals of a second level with a preset width into the control signal, and uses the pulse signals to divide the control signal to obtain a pulse width of the first level corresponding to each data bit, encodes the current clock frequency of the hard disk into a pulse signal of the second level with a preset width, and obtains a communication signal based on the pulse signal of the second level with the preset width and the plurality of pulse widths of the first level, wherein the data signal includes a plurality of data bits, and the second level is opposite to the first level;

对通信信号进行解析,得到时钟信号和数据信号,包括:Analyze the communication signal to obtain the clock signal and data signal, including:

对通信信号进行解析,得到至少两个第二电平的脉冲信号和多个第一电平的脉宽;parsing the communication signal to obtain at least two second-level pulse signals and a plurality of first-level pulse widths;

基于时钟信号判断硬盘的时钟是否准确,包括:Determine whether the hard drive's clock is accurate based on the clock signal, including:

基于至少两个第二电平的脉冲信号判断硬盘的时钟是否准确。Whether the clock of the hard disk is accurate is determined based on at least two pulse signals of the second level.

在一种实施例中,基于至少两个第二电平的脉冲信号判断硬盘的时钟是否准确,包括:In one embodiment, determining whether the hard disk clock is accurate based on at least two pulse signals of the second level includes:

判断两个第二电平的脉冲信号的宽度差值是否在误差范围内;Determining whether a width difference between two second-level pulse signals is within an error range;

响应于在误差范围内,判定硬盘的时钟准确;和In response to being within the error range, determining that the clock of the hard disk is accurate; and

响应于不在误差范围内,判定硬盘的时钟不准确。In response to not being within the error range, it is determined that the clock of the hard disk is inaccurate.

在一种实施例中,对通信信号进行解析,得到时钟信号和数据信号,包括:In one embodiment, parsing a communication signal to obtain a clock signal and a data signal includes:

对通信信号进行解析,得到方波信号和数据信号,方波信号的方波频率与硬盘的时钟频率之间呈第二映射关系;The communication signal is parsed to obtain a square wave signal and a data signal, wherein a square wave frequency of the square wave signal and a clock frequency of the hard disk are in a second mapping relationship;

基于时钟信号判断硬盘的时钟是否准确,包括:Determine whether the hard drive's clock is accurate based on the clock signal, including:

基于方波信号判断硬盘的时钟是否准确。Determines whether the hard disk clock is accurate based on the square wave signal.

在一种实施例中,基于方波信号判断硬盘的时钟是否准确,包括:In one embodiment, determining whether the hard disk clock is accurate based on the square wave signal includes:

判断两个方波信号之间的频率差值是在预设频率范围内;Determine whether the frequency difference between the two square wave signals is within a preset frequency range;

响应于频率差值在预设频率范围内,判定硬盘的时钟准确;和In response to the frequency difference being within a preset frequency range, determining that the clock of the hard disk is accurate; and

响应于频率差值不在预设频率范围内,判定硬盘的时钟不准确。In response to the frequency difference not being within the preset frequency range, it is determined that the clock of the hard disk is inaccurate.

在一种实施例中,还包括:In one embodiment, it further includes:

响应于判定硬盘的时钟不准确,通过硬盘状态引脚向硬盘和/或硬盘控制器发送反馈信号,以使硬盘重新传输数据信号或通信信号。In response to determining that the clock of the hard disk is inaccurate, a feedback signal is sent to the hard disk and/or hard disk controller via the hard disk status pin to cause the hard disk to retransmit the data signal or communication signal.

第二方面,本申请提供了一种时钟检测方法,应用于硬盘,硬盘与基板管理控制器之间单线通信,时钟检测方法包括:In a second aspect, the present application provides a clock detection method, which is applied to a hard disk, wherein the hard disk communicates with a baseboard management controller via a single line. The clock detection method includes:

将自身的时钟信号和数据信号进行编码,得到通信信号,数据信号为硬盘根据硬盘日志数据和硬盘状态引脚对应的硬盘状态信号调制得到的信号;和Encode its own clock signal and data signal to obtain a communication signal, where the data 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; and

将通信信号通过硬盘状态引脚发送至基板管理控制器,以使基板管理控制器对通信信号进行解析,得到时钟信号和数据信号,并基于时钟信号判断硬盘的时钟是否准确。The communication signal is sent to the baseboard management controller through the hard disk status pin, so that the baseboard management controller analyzes the communication signal, obtains the clock signal and the data signal, and determines whether the hard disk clock is accurate based on the clock signal.

在一种实施例中,数据信号包括待传输数据和固定脉宽的标志信号,标志信号用于表征数据信号的当前传输进度,将自身的时钟信号和数据信号进行编码,得到通信信号,包括:In one embodiment, the data signal includes data to be transmitted and a flag signal of a fixed pulse width. The flag signal is used to indicate the current transmission progress of the data signal. The communication signal is obtained by encoding its own clock signal and data signal, including:

将自身当前的时钟频率编码至标志信号中;和Encode its current clock frequency into the flag signal; and

将标志信号和待传输数据进行整合,得到通信信号;Integrate the flag signal and the data to be transmitted to obtain a communication signal;

基板管理控制器对通信信号进行解析,得到时钟信号和数据信号,并基于时钟信号判断硬盘的时钟是否准确,包括:The baseboard management controller analyzes the communication signal to obtain the clock signal and data signal, and determines whether the hard disk clock is accurate based on the clock signal, including:

基板管理控制器对通信信号进行解析,获取至少两个标志信号和待传输数据;和The baseboard management controller analyzes the communication signal to obtain at least two flag signals and data to be transmitted; and

根据两个标志信号对应的脉宽判断硬盘的时钟是否准确。The accuracy of the hard disk clock is determined based on the pulse width corresponding to the two flag signals.

在一种实施例中,硬盘状态引脚在硬盘为预设状态下输出第一电平的控制信号;将自身的时钟信号和数据信号进行编码,得到通信信号,包括:In one embodiment, the hard disk status pin outputs a control signal of a first level when the hard disk is in a preset state; and encodes its own clock signal and data signal to obtain a communication signal, including:

在控制信号中插入若干个预设宽度的第二电平的脉冲信号,以利用脉冲信号对控制信号进行分割,得到与各个数据位一一对应的第一电平的脉宽;数据信号包括多个数据位,第二电平与第一电平相反;和Inserting a plurality of pulse signals of a second level with a preset width into the control signal to divide the control signal using the pulse signals to obtain a pulse width of the first level corresponding to each data bit one by one; the data signal includes a plurality of data bits, and the second level is opposite to the first level; and

将自身的时钟信号与多个第二电平的脉冲信号、多个第一电平的脉宽进行编码,得到通信信号。The clock signal thereof is encoded with a plurality of second-level pulse signals and a plurality of first-level pulse widths to obtain a communication signal.

在一种实施例中,将自身的时钟信号与多个第二电平的脉冲信号、多个第一电平的脉宽进行编码,得到通信信号,包括:In one embodiment, encoding the clock signal thereof with a plurality of second-level pulse signals and a plurality of first-level pulse widths to obtain a communication signal includes:

将自身当前的时钟频率编码为预设宽度的第二电平的脉冲信号,时钟频率与预设宽度之间呈第一映射关系,通信信号包括多个预设宽度的第二电平的脉冲信号及多个第一电平的脉宽;Encoding its current clock frequency into a pulse signal of a second level with a preset width, wherein a first mapping relationship exists between the clock frequency and the preset width, and the communication signal includes a plurality of pulse signals of the second level with the preset width and a plurality of pulse widths of the first level;

基板管理控制器对通信信号进行解析,得到时钟信号和数据信号,并基于时钟信号判断硬盘的时钟是否准确,包括:The baseboard management controller analyzes the communication signal to obtain the clock signal and data signal, and determines whether the hard disk clock is accurate based on the clock signal, including:

基板管理控制器对通信信号进行解析,得到至少两个第二电平的脉冲信号和多个第一电平的脉宽;The baseboard management controller analyzes the communication signal to obtain at least two second-level pulse signals and a plurality of first-level pulse widths;

判断两个第二电平的脉冲信号的宽度差值是否在误差范围内;Determining whether a width difference between two second-level pulse signals is within an error range;

响应于在误差范围内,判定硬盘的时钟准确;和In response to being within the error range, determining that the clock of the hard disk is accurate; and

响应于不在误差范围内,判定硬盘的时钟不准确。In response to not being within the error range, it is determined that the clock of the hard disk is inaccurate.

在一种实施例中,将自身的时钟信号和数据信号进行编码,得到通信信号,包括:In one embodiment, encoding its own clock signal and data signal to obtain a communication signal includes:

将自身当前的时钟频率编码为方波信号,且方波信号的频率与时钟频率之间呈第二映射关系;和Encoding its current clock frequency into a square wave signal, wherein the frequency of the square wave signal and the clock frequency form a second mapping relationship; and

将方波信号插入至数据信号中,得到通信信号;Inserting the square wave signal into the data signal to obtain a communication signal;

基板管理控制器对通信信号进行解析,得到时钟信号和数据信号,并基于时钟信号判断硬盘的时钟是否准确,包括:The baseboard management controller analyzes the communication signal to obtain the clock signal and data signal, and determines whether the hard disk clock is accurate based on the clock signal, including:

基板管理控制器对通信信号进行解析,得到方波信号和数据信号,并基于方波信号判断硬盘的时钟是否准确。The baseboard management controller analyzes the communication signal to obtain a square wave signal and a data signal, and determines whether the hard disk clock is accurate based on the square wave signal.

在一种实施例中,将自身的时钟信号和数据信号进行编码,得到通信信号,包括:In one embodiment, encoding its own clock signal and data signal to obtain a communication signal includes:

将自身当前的时钟频率编码为方波信号,且方波信号的频率与时钟频率之间呈第二映射关系;Encoding its current clock frequency into a square wave signal, wherein the frequency of the square wave signal and the clock frequency form a second mapping relationship;

将各个数据位编码为和数据位一一对应的脉宽,得到第一脉宽信号,数据信号包括多个数据位,第一脉宽信号包括多个数据位对应的脉宽;和Encoding each data bit into a pulse width corresponding to the data bit to obtain a first pulse width signal, wherein the data signal includes multiple data bits, and the first pulse width signal includes pulse widths corresponding to the multiple data bits; and

将方波信号和第一脉宽信号进行编码,得到通信信号;Encoding the square wave signal and the first pulse width signal to obtain a communication signal;

基板管理控制器对通信信号进行解析,得到时钟信号和数据信号,并基于时钟信号判断硬盘的时钟是否准确,包括:The baseboard management controller analyzes the communication signal to obtain the clock signal and data signal, and determines whether the hard disk clock is accurate based on the clock signal, including:

基板管理控制器对通信信号进行解析,得到方波信号和第一脉宽信号,并基于方波信号判断硬盘的时钟是否准确。The baseboard management controller analyzes the communication signal to obtain a square wave signal and a first pulse width signal, and determines whether the hard disk clock is accurate based on the square wave signal.

在一种实施例中,将方波信号和第一脉宽信号进行编码,得到通信信号,包括:In one embodiment, encoding the square wave signal and the first pulse width signal to obtain a communication signal includes:

将至少两个方波信号分别插入至第一个数据位对应的脉宽之前和/或最后一个数据位对应的脉宽之后和/或任意两个数据位对应的脉宽之间,得到通信信号。At least two square wave signals are respectively inserted before the pulse width corresponding to the first data bit and/or after the pulse width corresponding to the last data bit and/or between the pulse widths corresponding to any two data bits to obtain a communication signal.

在一种实施例中,将各个数据位编码为和数据位一一对应的脉宽,得到第一脉宽信号,包括:In one embodiment, encoding each data bit into a pulse width corresponding to the data bit to obtain a first pulse width signal includes:

将各个数据位编码为和数据位一一对应的占空比的脉宽,得到第一脉宽信号,占空比与数据位之间呈第三映射关系。Each data bit is encoded into a pulse width with a duty cycle corresponding to the data bit one by one to obtain a first pulse width signal, and a third mapping relationship is formed between the duty cycle and the data bit.

在一种实施例中,将各个数据位编码为和数据位一一对应的脉宽,得到第一脉宽信号,包括:In one embodiment, encoding each data bit into a pulse width corresponding to the data bit to obtain a first pulse width signal includes:

将各个数据位编码为和数据位对应的预设电平的脉宽,得到第一脉宽信号,预设电平的脉宽和数据位之间呈第四映射关系。Each data bit is encoded into a pulse width of a preset level corresponding to the data bit to obtain a first pulse width signal, and a fourth mapping relationship exists between the pulse width of the preset level and the data bit.

在一种实施例中,还包括:In one embodiment, it further includes:

在基板管理控制器判定硬盘的时钟不准确之后,接收基板管理控制器发送的反馈信号;和After the baseboard management controller determines that the clock of the hard disk is inaccurate, receiving a feedback signal sent by the baseboard management controller; and

基于反馈信号重新发送数据信号或通信信号。The data signal or the communication signal is resent based on the feedback signal.

第三方面,本申请还提供了一种时钟检测系统,应用于基板管理控制器,基板管理控制器与硬盘之间单线通信,时钟检测系统包括:In a third aspect, the present application further provides a clock detection system, which is applied to a baseboard management controller, wherein the baseboard management controller communicates with a hard disk via a single line. The clock detection system includes:

接收单元,用于接收硬盘通过硬盘状态引脚发送的通信信号,通信信号时硬盘根据数据信号和自身的时钟信号编码得到的信号;The receiving unit is used to receive the communication signal sent by the hard disk through the hard disk status pin. The communication signal is a signal obtained by the hard disk based on the data signal and its own clock signal encoding;

解析单元,用于对通信信号进行解析,得到时钟信号和数据信号;和A parsing unit, configured to parse the communication signal to obtain a clock signal and a data signal; and

判断单元,用于基于时钟信号判断硬盘的时钟是否准确。The judgment unit is used to judge whether the clock of the hard disk is accurate based on the clock signal.

第四方面,本申请还提供了一种时钟检测系统,硬盘与基板管理控制器之间单线通信,时钟检测系统包括:In a fourth aspect, the present application further provides a clock detection system, wherein a hard disk and a baseboard management controller communicate via a single line, and the clock detection system comprises:

编码单元,用于将自身的时钟信号和数据信号进行编码,得到通信信号,数据信号为硬盘根据硬盘日志数据和硬盘状态引脚对应的硬盘状态信号调制得到的信号;和An encoding unit, configured to encode its own clock signal and data signal to obtain a communication signal, wherein the data 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; and

发送单元,用于将通信信号通过硬盘状态引脚发送至基板管理控制器,以使基板管理控制器对通信信号进行解析,得到时钟信号和数据信号,并基于时钟信号判断硬盘的时钟是否准确。The sending unit is used to send the communication signal to the baseboard management controller through the hard disk status pin, so that the baseboard management controller analyzes the communication signal, obtains the clock signal and the data signal, and determines whether the hard disk clock is accurate based on the clock signal.

第五方面,本申请还提供了一种电子设备,包括:In a fifth aspect, the present application further provides an electronic device, comprising:

存储器,用于存储计算机可读指令;a memory for storing computer-readable instructions;

处理器,用于在执行计算机可读指令时,实现如上述的时钟检测方法的步骤。The processor is configured to implement the steps of the clock detection method described above when executing computer-readable instructions.

第六方面,本申请还提供了一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行时实现如上述的时钟检测方法的步骤。In a sixth aspect, the present application also provides one or more non-volatile computer-readable storage media storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors implement the steps of the clock detection method as described above.

第七方面,本申请还提供了一种服务器,包括硬盘、基板管理控制器,硬盘与基板管理控制器单线连接,且硬盘与基板管理控制器之间通过单线有且仅有一条传输通道;In a seventh aspect, the present application further provides a server, comprising a hard disk and a baseboard management controller, wherein the hard disk and the baseboard management controller are connected by a single line, and there is only one transmission channel between the hard disk and the baseboard management controller via the single line;

基板管理控制器用于实现上述的应用于基板管理控制器中的时钟检测方法的步骤;硬盘用于实现上述的应用于硬盘中的时钟检测方法的步骤。The baseboard management controller is used to implement the steps of the clock detection method applied to the baseboard management controller; the hard disk is used to implement the steps of the clock detection method applied to the hard disk.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本申请实施例中的技术方案,下面将对现有技术和实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the prior art and the drawings required for use in the embodiments. 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 creative work.

图1为本申请一个或多个实施例提供的一种硬盘和基板管理控制器的连接示意图;FIG1 is a schematic diagram showing a connection between a hard disk and a baseboard management controller according to one or more embodiments of the present application;

图2为本申请一个或多个实施例提供的一种应用于基板管理控制器的时钟检测方法的流程图;FIG2 is a flow chart of a clock detection method applied to a baseboard management controller according to one or more embodiments of the present application;

图3为本申请一个或多个实施例提供的一种数据信号的示意图;FIG3 is a schematic diagram of a data signal provided by one or more embodiments of the present application;

图4为本申请一个或多个实施例提供的一种方波信号和数据信号结合的示意图;FIG4 is a schematic diagram of a combination of a square wave signal and a data signal provided by one or more embodiments of the present application;

图5为本申请一个或多个实施例提供的一种方波信号的示意图;FIG5 is a schematic diagram of a square wave signal provided by one or more embodiments of the present application;

图6为本申请一个或多个实施例提供的一种应用于硬盘的时钟检测方法的流程图;FIG6 is a flowchart of a clock detection method applied to a hard disk according to one or more embodiments of the present application;

图7为本申请一个或多个实施例提供的一种应用于硬盘的时钟检测方法的具体流程图;FIG7 is a specific flow chart of a clock detection method applied to a hard disk provided by one or more embodiments of the present application;

图8为本申请一个或多个实施例提供的一种应用于基板管理控制器的时钟检测方法的具体流程图;FIG8 is a specific flow chart of a clock detection method applied to a baseboard management controller according to one or more embodiments of the present application;

图9为本申请一个或多个实施例提供的一种应用于硬盘的时钟检测系统的示意图;FIG9 is a schematic diagram of a clock detection system applied to a hard disk according to one or more embodiments of the present application;

图10为本申请一个或多个实施例提供的一种应用于基板管理控制器的时钟检测系统的示意图;FIG10 is a schematic diagram of a clock detection system applied to a baseboard management controller according to one or more embodiments of the present application;

图11为本申请一个或多个实施例提供的一种电子设备的示意图。FIG11 is a schematic diagram of an electronic device provided by one or more embodiments of the present application.

具体实施方式DETAILED DESCRIPTION

本申请的核心是提供一种时钟检测方法、系统、设备、介质及服务器,通过硬盘状态引脚可以实现对硬盘日志数据、硬盘状态信号和时钟信号的传递,且通过对时钟信号和数据信号进行编码,以及对通信信号解析可以对硬盘的时钟进行校准,进而可以确定数据信号是否基于正确的时钟传输,以及时发现问题确保数据信号传输的准确性,进而确保监控硬盘的可靠性。The core of this application is to provide a clock detection method, system, device, medium and server, which can realize the transmission of hard disk log data, hard disk status signal and clock signal through the hard disk status pin, and calibrate the hard disk clock by encoding the clock signal and data signal, and analyzing the communication signal, so as to determine whether the data signal is based on the correct clock transmission, and timely discover problems to ensure the accuracy of data signal transmission, thereby ensuring the reliability of monitoring the hard disk.

为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are 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.

为便于理解,首先对硬盘带外监控方案涉及的内容进行介绍。带外管理指通过专门的网管通道实现对网络的管理,将网管数据与业务数据分开,为网管数据建立独立通道。在这个通道中,只传输管理数据,网管数据与业务数据分离,可以提高网管的效率与可靠性,也有利于提高网管数据的安全性。To facilitate understanding, let's first introduce the aspects of out-of-band hard drive monitoring. Out-of-band management refers to managing the network through a dedicated network management channel, separating network management data from business data. This independent channel transmits only management data, separating network management data from business data. This improves network management efficiency and reliability, while also enhancing the security of network management data.

由于带内监控无法满足运维需求,服务器在部署后,会通过基板管理控制器提供带外管理监控功能。基板管理控制器是一个专门的服务处理机,它利用传感器来监视一台计算机、网络服务器,或者是其他硬件驱动设备的状态,并通过独立的连接线路和设备的系统管理员进行通信。在实际使用中,基板管理控制器通常被安装在母板或被监控设备的主电路板上。基板管理控制器通过传感器用于测量内部物理变量,例如:温度,湿度,电源电压,风扇速度,通信参数和操作系统(OS,operating system)函数等。如果这些变量中的任何一个超出制定限制的范围,基板管理控制器就会通知系统管理员。基板管理控制器可以提供网络(web)服务,其具有网络通信功能以及提供网页来显示监控界面,运维人员可以通过在设备现场通过网线连接被监控设备的基板管理控制器,或在数据中心通过网络连接多个被监控设备的基板管理控制器来实现获取基板管理控制器的监控数据。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 uses 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 exceed 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.

由于基板管理控制器系统中的基板管理控制器芯片的性能和引脚数量有限,随着需要监控的部件数量和需要监控的项目的增加,基板管理控制器系统中常设有复杂可编程逻辑器件(Complex Programmable logic device,CPLD)来实现对基板管理控制器芯片的性能压力分担以及提供更多的引脚来连接传感器或被监控部件。复杂可编程逻辑器件主要由逻辑块、可编程互连通道和输入/输出块(I/O块)三部分构成。复杂可编程逻辑器件的一个逻辑块通常包括4~20个宏单元,每个宏单元一般由乘积项阵列、乘积项分配和可编程寄存器构成。每个宏单元有多种配置方式,各宏单元也可级联使用,因此可实现较复杂组合逻辑和时序逻辑功能。对集成度较高的复杂可编程逻辑器件,通常还提供了带片内随机存取存储器(Random Access Memory,RAM)/只读存储器(Read-Only Memory,ROM)的嵌入阵列块。可编程互连通道主要提供逻辑块、宏单元、输入/输出引脚间的互连网络。输入/输出块(I/O块)提供内部逻辑到器件I/O引脚之间的接口。Due to the limited performance and pin count of the BMC chip in a BMC system, as the number of components and items requiring monitoring increases, complex programmable logic devices (CPLDs) are often included in BMC systems to offload performance pressure from the BMC chip and provide more pins for connecting sensors or monitored components. A CPLD primarily consists of three components: logic blocks, programmable interconnects, and input/output (I/O) blocks. A logic block in a CPLD 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). The programmable interconnects primarily provide the interconnect network between the logic blocks, macrocells, and I/O pins. Input/output blocks (I/O blocks) provide the interface between internal logic and the device's I/O pins.

硬盘作为服务器的重要部件,是带外监控管理的重要对象。按照通信接口的类型,主要分为串行连接小型计算机系统接口(Serial Attached SCSI,下文简称SAS)/串行高级技术附件(Serial Advanced Technology Attachment,下文简称SATA)接口硬盘以及非易失性内存主机控制器接口(Non Volatile Memory Host Controller Interface Specification,NVMHCIS或NVM Express,下文简称NVMe)接口硬盘。其中,SAS接口兼容SATA接口。按照存储介质的类型,硬盘又主要分为机械硬盘(Hard Disk Drive,HDD)和固态硬盘(Solid State Disk或Solid State Drive,SSD)。其中,机械硬盘主要为SAS接口或SATA接口。固态硬盘包括SAS接口、SATA接口和NVMe接口硬盘。As an important component of the server, the hard disk is an important object of 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 storage medium, hard disks are mainly divided into mechanical hard disks (HDD) and solid-state drives (SSD). Among them, mechanical hard disks mainly have SAS or SATA interfaces. Solid-state drives include SAS, SATA, and NVMe interface hard disks.

需要说明的是,在本发明实施例中,基板管理控制器可以仅包括基板管理控制器芯片,也可以为包括基板管理控制器芯片和复杂可编程逻辑器件的系统,该复杂可编程逻辑器件可以只设于硬盘背板的复杂可编程逻辑器件或设于服务器主板的复杂可编程逻辑器件。It should be noted that, in an embodiment of the present invention, the baseboard management controller may include only a baseboard management controller chip, or it may be a system including a baseboard management controller chip and a complex programmable logic device. The complex programmable logic device may be a complex programmable logic device only provided on the hard disk backplane or a complex programmable logic device provided on the server mainboard.

进一步的,本申请中硬盘选择硬盘状态引脚向基板管理控制器发送数据的原因为:Furthermore, in this application, the hard disk selects the hard disk status pin to send data to the baseboard management controller because:

硬盘的引脚主要分为三类:数据引脚、电源引脚和硬盘状态引脚。其中,硬盘的数据引脚与带内系统连接,硬盘的电源引脚用于连接电源和地信号。因此,基板管理控制器能够直接访问的仅有硬盘的硬盘状态引脚。Hard drive pins are primarily categorized into three types: data pins, power pins, and hard drive status pins. The hard drive's data pins connect to the in-band system, while the hard drive's power pins are used to connect power and ground signals. Therefore, the baseboard management controller can only directly access the hard drive's status pins.

硬盘的硬盘状态引脚主要包括硬盘状态指示引脚、硬盘生产调试引脚和硬盘空闲引脚。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.

其中,硬盘状态指示引脚包括硬盘在位状态指示引脚、硬盘读写状态指示引脚等。硬盘状态指示引脚为硬盘用于输出硬盘状态指示信号的引脚,例如硬盘在位状态指示引脚用于硬盘输出硬盘在位状态信号,硬盘读写状态指示引脚用于硬盘输出硬盘读写状态信号。Among them, the hard disk status indication pins include the hard disk in-place status indication pin and the hard disk read/write status indication pin. The hard disk status indication pins are pins used by the hard disk to output hard disk status indication signals. For example, the hard disk in-place status indication pin is used to output the hard disk in-place status signal, and the hard disk read/write status indication pin is used to output the hard disk read/write status signal.

当硬盘连接到硬盘背板后,硬盘状态指示引脚主要有两种连接方式,一种是连接到基板管理控制器以告知基板管理控制器相应的硬盘状态数据,另一种是连接到硬盘背板上的控制电路以控制相应的被控元件的状态以使用户获悉相应的硬盘状态。例如,硬盘背板上设有硬盘状态指示灯来指示硬盘运行状态。如硬盘在处于读写状态时可以控制硬盘读写状态指示引脚输出方波信号至硬盘读写状态指示灯的放大驱动电路以控制硬盘读写状态指示灯亮起,硬盘未处于读写状态(空闲状态)时则控制硬盘读写状态指示引脚输出一个恒定电平信号(如恒定高电平信号)使硬盘读写状态指示灯熄灭来指示自己处于空闲状态,以便用户通过观看硬盘读写状态指示灯的亮灭获悉硬盘是否处于读写状态。硬盘基于硬盘在位状态指示引脚的状态展示同理。或者,硬盘也可以通过这些硬盘状态指示引脚输出两种不同的恒定电平信号(一高一低)来指示不同的状态,该信号可以输入至基板管理控制器以便触发相应的记录、处理或控制。When a hard drive is connected to the hard drive backplane, the hard drive status indicator pins can be connected in two main ways: one to the baseboard management controller (BMC) to transmit the corresponding hard drive status data, and the other to the control circuit on the hard drive backplane to control the status of the corresponding controlled components, thereby informing the user of the corresponding hard drive status. For example, the hard drive backplane is equipped with a hard drive status indicator to indicate the hard drive's operating status. For example, when the hard drive is in the read/write state, the hard drive status indicator pins can be controlled to output a square wave signal to the amplifying and driving circuit of the hard drive status indicator to illuminate the hard drive status indicator. When the hard drive is not in the read/write state (idle state), the hard drive status indicator pins can be controlled to output a constant level signal (e.g., a constant high level signal) to turn off the hard drive status indicator, indicating that the hard drive is in the idle state. The user can then determine whether the hard drive is in the read/write state by observing the on/off status of the hard drive status indicator. The same principle applies to the hard drive status display based on the hard drive presence status indicator pins. Alternatively, the hard drive can also output two different constant level signals (one high, 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.

硬盘生产调试引脚主要为SAS或SATA接口的硬盘在SAS或SATA接口旁的引脚(debug引脚),这些引脚通常是硬盘在生产调试阶段使用的,在硬盘实际使用中,生产调试引脚可以用于在硬盘初始化阶段输出引导信息。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 used to output boot information during the hard drive initialization phase.

而在NVMe接口硬盘上,除了上述硬盘状态指示引脚外,还包括硬盘空闲引脚。On the NVMe interface hard drive, in addition to the above-mentioned hard drive status indication pin, there is also a hard drive idle pin.

上述硬盘状态引脚并非硬盘用于输出数据的引脚,没有泄露硬盘中存储的用户数据的风险,目前在硬盘插入硬盘背板后,这些硬盘状态引脚有直接与基板管理控制器连接或者具有与基板管理控制器连接的权限。The above-mentioned hard disk status pins are not the pins used by the hard disk to output data, and there is no risk of leaking user data stored in the hard disk. Currently, after the hard disk is inserted into the hard disk backplane, these hard disk status pins are directly connected to the baseboard management controller or have the permission to connect to the baseboard management controller.

则在本申请的实施例中,所采用硬盘的硬盘状态引脚可以包括硬盘状态指示引脚、硬盘生产调试引脚和硬盘空闲引脚中的至少一种。In an embodiment of the present application, the hard disk status pin of the hard disk may include at least one of a hard disk status indication pin, a hard disk production debugging pin, and a hard disk idle pin.

在本发明实施例中,若采用硬盘在位状态指示引脚、硬盘读写状态指示引脚等硬盘状态指示引脚,由于这些硬盘状态引脚通常已经与基板管理控制器中的基板管理控制器芯片的通用输入/输出口(General-purpose input/output,GPIO)引脚或复杂可编程逻辑器件的输入/输出(I/O)引脚连接,可以直接采用该硬件架构而不需要对服务器的硬件架构做出改动,实现简单方便。In an embodiment of the present invention, 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 in the baseboard management controller or the input/output (I/O) pins of a complex programmable logic device, the hardware architecture can be directly used without making changes to the hardware architecture of the server, which is simple and convenient to implement.

目前设备上的硬盘生产调试引脚通常是悬空的,通常包括4个引脚。若本发明实施例采用硬盘生产调试引脚作为硬盘输出硬盘日志数据的硬盘状态引脚,则可以采用相应数量引脚的连接器将硬盘生产调试引脚连接到基板管理控制器芯片的GPIO引脚或复杂可编程逻辑器件的I/O引脚上。Currently, the hard drive production debug pins on devices are typically left floating, typically consisting of four pins. If the embodiments of the present invention utilize 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 or the I/O pins of a complex programmable logic device.

由于硬盘空闲引脚通常为NVMe接口硬盘的接口中才有,高速信号不能悬空,目前NVMe接口中的硬盘空闲引脚在硬盘连接到硬盘背板后是通过硬盘背板上的电阻电容电路接地的。若本发明实施例采用硬盘空闲引脚作为硬盘输出硬盘日志数据的硬盘状态引脚,则将硬盘空闲引脚与硬盘背板的连接关系改为连接至基板管理控制器芯片的GPIO引脚或复杂可编程逻辑器件的I/O引脚。Since the hard disk idle pin is usually only available in the interface of NVMe interface hard drives, 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 invention uses the hard disk idle pin as the hard disk status pin for outputting 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 or the I/O pin of the complex programmable logic device.

在带外系统中,若硬盘扩展卡具有连接到基板管理控制器芯片的集成电路总线,则基板管理控制器芯片可以通过集成电路总线访问硬盘扩展卡,通过硬盘扩展卡向硬盘转发命令或硬盘日志数据。此外,在基板管理控制器中,基板管理控制器芯片还可以通过集成电路总线连接复杂可编程逻辑器件后,通过复杂可编程逻辑器件与硬盘的硬盘状态引脚连接。或者,基板管理控制器芯片还可以直接与硬盘的硬盘状态引脚连接。In an out-of-band system, if the hard drive expansion card has an integrated circuit bus connected to the baseboard management controller chip, the baseboard management controller chip can access the hard drive expansion card via the integrated circuit bus and forward commands or hard drive log data to the hard drive through the hard drive expansion card. Furthermore, within the baseboard management controller, the baseboard management controller chip can also connect to a complex programmable logic device (CPLD) via the IC bus, and then connect to the hard drive status pin via the CPLD. Alternatively, the baseboard management controller chip can directly connect to the hard drive status pin.

第一方面,本申请提供了一种时钟检测方法,应用于硬盘,如图1所示,硬盘与基板管理控制器之间单线通信。In a first aspect, the present application provides a clock detection method applied to a hard disk, as shown in FIG1 , where the hard disk communicates with a baseboard management controller via a single line.

其中,单线通信是指硬盘与基板管理控制器之间有且仅有一条传输通道,单线通信可以但不限于是通过单线连接实现的,单线连接是指硬盘和基板管理控制器之间只有一根传输线(DATA)连接,该线只能提供一条传输通道,用于传输硬盘状态信号(图1中的GND为地线,不是传输线)。与设有一根总线,但总线中包括有时钟线、数据线等的方式不同,本申请中的单线只有一条用于传输硬盘状态信号的线路,不包括任何其他的线路。Single-line communication refers to the existence of only one transmission channel between the hard drive and the baseboard management controller. Single-line communication can be achieved through, but is not limited to, a single-wire connection. A single-wire connection refers to a single transmission line (DATA) between the hard drive and the baseboard management controller. This line can only provide a single transmission channel for transmitting hard drive status signals (GND in Figure 1 is the ground line, not a transmission line). Unlike a bus that includes a clock line, data line, etc., the single-wire connection in this application has only one line for transmitting hard drive status signals and does not include any other lines.

如图2所示,时钟检测方法包括:As shown in FIG2 , the clock detection method includes:

S11:接收硬盘通过硬盘状态引脚发送的通信信号,通信信号为硬盘根据数据信号和自身的时钟信号编码得到的信号,数据信号为硬盘根据硬盘日志数据和硬盘状态引脚对应的硬盘状态信号调制得到的信号;S11: Receive a communication signal sent by the hard disk through the hard disk status pin. The communication signal is a signal encoded by the hard disk based on the data signal and its own clock signal. The data signal is a signal modulated by the hard disk based on the hard disk log data and the hard disk status signal corresponding to the hard disk status pin.

具体而言,时钟信号是硬盘内部用于同步数据的传输和处理的时钟源对应的信号,数据信号则是根据硬盘日志数据和硬盘状态引脚对应的硬盘状态信号调制得到的信号,包含了硬盘状态信息和当前日志对应的数据内容。接下来将时钟信号和数据信号进行编码,编码的目的是将原始的时钟信号和数据信号转换为适合在单线传输通道上传输的通信信号。Specifically, the clock signal corresponds to the clock source within the hard drive, used to synchronize data transmission and processing. The data signal is a signal modulated based on the hard drive log data and the hard drive status signal corresponding to the hard drive status pin. It contains hard drive status information and the data content corresponding to the current log. The clock signal and data signal are then encoded to convert the original clock and data signals into communication signals suitable for transmission over a single-wire transmission channel.

其中,硬盘将时钟信号和数据信号需要进行编码后再传输的原因是因为单线通信方式下,发送端和接收端之间(也即硬盘的硬盘状态引脚和基板管理控制器之间)无法进行时钟校准,无法确定数据信号是否基于正确的时钟传输。通过将时钟信号和数据信号进行编码,可以将它们合并成一个通信信号进行传输,满足单线通信场景下的信号传输。The reason the hard drive encodes the clock and data signals before transmission is that, in single-wire communication, clock calibration cannot be performed between the sender and receiver (that is, between the hard drive status pin and the baseboard management controller), making it impossible to determine whether the data signal is transmitted based on the correct clock. By encoding the clock and data signals, they can be combined into a single communication signal for transmission, meeting the requirements of signal transmission in single-wire communication scenarios.

S12:对通信信号进行解析,得到时钟信号和数据信号;S12: Analyze the communication signal to obtain a clock signal and a data signal;

S13:基于时钟信号判断硬盘的时钟是否准确。S13: Determine whether the hard disk clock is accurate based on the clock signal.

具体而言,在基板管理控制器端,接收到通信信号之后,通过解析该通信信号来获取时钟信号和数据信号,并基于时钟信号来判断硬盘的时钟是否准确,这样可以在单线通信方式下实现对时钟信号的检测,确保数据传输的准确性。Specifically, at the baseboard management controller end, after receiving the communication signal, the clock signal and data signal are obtained by parsing the communication signal, and whether the hard disk clock is accurate is judged based on the clock signal. In this way, the clock signal can be detected in a single-line communication mode to ensure the accuracy of data transmission.

其中,根据时钟信号判断硬盘的时钟是否准确的方式可以包括以下几种:其一,基板管理控制器中存储有标准的时钟信号,通过接收到的时钟信号和自身存储的标准的时钟信号进行频率对比,如果两个时钟频率相近且稳定,就可以判断硬盘的时钟是准确的;其二,还可以是:基板管理控制器对接收到的时钟信号进行稳定性评估,通过统计一定时间内时钟信号的波动情况来判断硬盘的时钟是否稳定,从而间接判断时钟的准确性。Among them, the following methods can be used to determine whether the hard disk clock is accurate based on the clock signal: First, the baseboard management controller stores a standard clock signal, and compares the frequency of the received clock signal with the standard clock signal stored in itself. If the two clock frequencies are similar and stable, it can be determined that the hard disk clock is accurate; second, it can also be: the baseboard management controller performs a stability assessment on the received clock signal, and determines whether the hard disk clock is stable by counting the fluctuations of the clock signal within a certain period of time, thereby indirectly determining the accuracy of the clock.

在一种实施例中,对通信信号进行解析,得到时钟信号和数据信号,包括:In one embodiment, parsing a communication signal to obtain a clock signal and a data signal includes:

对通信信号进行解析,获取至少两个标志信号和待传输数据;数据信号包括待传输数据和固定脉宽的标志信号,标志信号用于表征数据信号的当前传输进度,硬盘将自身当前的时钟频率编码至标志信号中;Parse the communication signal to obtain at least two flag signals and data to be transmitted; the data signal includes the data to be transmitted and a flag signal with a fixed pulse width. The flag signal is used to represent the current transmission progress of the data signal. The hard disk encodes its current clock frequency into the flag signal;

基于时钟信号判断硬盘的时钟是否准确,包括:Determine whether the hard drive's clock is accurate based on the clock signal, including:

根据两个标志信号对应的脉宽判断硬盘的时钟是否准确。The accuracy of the hard disk clock is determined based on the pulse width corresponding to the two flag signals.

具体而言,在传输数据信号时,随着有效的待传输数据,通常还会伴随着几个标志信号和待传输数据一起传输,如标志信号为表征数据开始传输的标志位、表征数据传输结束的标志位、数据校验位等,穿插在待传输数据的传输过程中,而这些标志信号在通信协议中通常被赋予固定脉宽,此时,本申请利用这些固定脉宽的标志信号来携带时钟信号,以实现单线通信过程中既可以传输待传输数据,也可以传输时钟信号的功能。如图3所示,图3中,数据信号表示数据开始传输的开始标志位、表示数据传输结束的结束标志位,在开始标志位和结束标志位中间为待传输数据(包括多个数据位),则可以利用开始标志位和结束标志位来编码时钟信号。Specifically, when transmitting a data signal, along with the valid data to be transmitted, there are usually several flag signals that are transmitted together with the data to be transmitted, such as a flag signal that indicates the start of data transmission, a flag that indicates the end of data transmission, a data check bit, etc., which are interspersed in the transmission process of the data to be transmitted, and these flag signals are usually given a fixed pulse width in the communication protocol. At this time, the present application uses these fixed pulse width flag signals to carry the clock signal to realize the function of transmitting both the data to be transmitted and the clock signal during the single-line communication process. As shown in Figure 3, in Figure 3, the data signal indicates the start flag bit for the start of data transmission and the end flag bit for the end of data transmission. The data to be transmitted (including multiple data bits) is between the start flag bit and the end flag bit, and the start flag bit and the end flag bit can be used to encode the clock signal.

那么相适应的,基板管理控制器对通信信号进行解析的过程包括从通信信号中解析出标志信号,标志信号在硬盘的时钟正常时应该为固定脉宽。因此,基板管理控制器判断硬盘的时钟是否准确的过程包括:判断标志信号的脉宽是否为固定脉宽,若不为固定脉宽,则说明脉宽发生变化,可再判断脉宽的变换成都是否大于阈值,若变化程度大于阈值,则认为硬盘的时钟不准确,若脉宽不变,仍为固定脉宽,或者变化程度在阈值范围内,则认为硬盘的时钟是准确的。Accordingly, the baseboard management controller's process for parsing the communication signal includes extracting a flag signal from the communication signal. The flag signal should have a fixed pulse width when the hard drive's clock is functioning normally. Therefore, the baseboard management controller determines whether the hard drive's clock is accurate by determining whether the flag signal's pulse width is fixed. If not, indicating a change in the pulse width, the baseboard management controller then determines whether the change in the pulse width is greater than a threshold. If the change is greater than the threshold, the hard drive's clock is considered inaccurate. If the pulse width remains fixed, or the change is within the threshold, the hard drive's clock is considered accurate.

相比于单独生成时钟信号,将时钟信号和标志信号编码,除了可以更精确地评估硬盘时钟的准确性,有助于及时发现和纠正时钟不准确的情况,还可以简化系统设计,使得在单线通信方式下可以在有限的通道内传输更多的信息,减少额外线路的需求,降低系统复杂度和成本。Compared to generating the clock signal separately, encoding the clock signal and the flag signal can not only more accurately evaluate the accuracy of the hard disk clock, which helps to promptly detect and correct clock inaccuracies, but also simplify the system design, so that more information can be transmitted within a limited channel under single-line communication mode, reducing the need for additional lines and lowering system complexity and cost.

在一种实施例中,根据两个标志信号对应的脉宽判断硬盘的时钟是否准确,包括:In one embodiment, determining whether the hard disk clock is accurate based on the pulse widths corresponding to the two flag signals includes:

判断两个标志信号对应的脉宽是否在标准脉宽的预设范围内,或,判断两个标志信号对应的脉宽之间的差值是否在误差范围内;Determining whether the pulse widths corresponding to the two flag signals are within a preset range of the standard pulse width, or determining whether the difference between the pulse widths corresponding to the two flag signals is within an error range;

若两个标志信号对应的脉宽在标准脉宽的预设范围内,或,差值在误差范围内,判定硬盘的时钟准确;If the pulse widths corresponding to the two marker signals are within the preset range of the standard pulse width, or the difference is within the error range, the hard disk clock is determined to be accurate;

若两个标志信号对应的脉宽不在标准脉宽的预设范围内,或,差值不在误差范围内,则判定硬盘的时钟不准确。If the pulse widths corresponding to the two flag signals are not within the preset range of the standard pulse width, or the difference is not within the error range, it is determined that the hard disk clock is inaccurate.

本实施例中,根据两个标志信号对应的脉宽来判断硬盘的时钟是否准确。具体来说,可以是判断这两个标志信号对应的脉宽是否在预设范围内,如果两个标志信号对应的脉宽均在预设范围内,那么就可以判定硬盘的时钟是准确的;相反,如果这两个标志信号对应的脉宽不在预设范围内,那么就可以判定硬盘的时钟是不准确的。还可以是判断这两个标志信号对应的脉宽的差值是否在误差范围内,若两个标志信号对应的脉宽的差值在误差范围内,那么就可以判定硬盘的时钟是准确的;若两个标志信号对应的脉宽的差值不在误差范围内,那么就可以判定硬盘的时钟是不准确的。In this embodiment, the accuracy of the hard disk clock is determined based on the pulse widths corresponding to the two flag signals. Specifically, the determination can be made as to whether the pulse widths corresponding to the two flag signals are within a preset range. If both pulse widths are within the preset range, the hard disk clock is determined to be accurate. Conversely, if the pulse widths corresponding to the two flag signals are not within the preset range, the hard disk clock is determined to be inaccurate. Alternatively, the determination can be made as to whether the difference between the pulse widths corresponding to the two flag signals is within an error range. If so, the hard disk clock is determined to be accurate. If not, the hard disk clock is determined to be inaccurate.

更进一步的,上述给出了基于两个标志信号对时钟进行判断的方法,若两个标志信号之间存在一定的时间间隔,那么通过判断二者之间的差值是否在误差范围内,可以确定的是在这段时间间隔内,时钟是否发生漂移。通过判断两个标志信号脉宽是否在标准脉宽的预设范围内,则可以确定时钟与标准时钟之间是否发生漂移。在另一种实施例中,还可以是基板管理控制器通过一个标志信号判断时钟是否准确,此时,判断方式为:基板管理控制器内存储有一个标准时钟对应的标志信号的标准脉宽,通过将采集到的传输的通信信号中标志信号的脉宽和标准脉宽比较,直接确定时钟是否准确。通过采集两个标志信号对应的脉宽的差值是否在误差范围内,进而判断硬盘的时钟是否准确的方式,更适用于基板管理控制器中没有存储标准脉宽的场景,通过两次采集直接可以判断传输待传输数据的过程中时钟是否发生漂移。Furthermore, the above-described method for determining the clock based on two marker signals provides a method for determining whether the clock has drifted during this time interval by determining whether the difference between the two marker signals is within an error range. By determining whether the pulse widths of the two marker signals are within a preset range of a standard pulse width, it is possible to determine whether the clock has drifted from the standard clock. In another embodiment, the baseboard management controller can determine whether the clock is accurate based on a marker signal. In this case, the baseboard management controller stores a standard pulse width for a marker signal corresponding to a standard clock, and directly determines whether the clock is accurate by comparing the pulse width of the marker signal in the collected transmitted communication signal with the standard pulse width. This method of determining whether the hard disk clock is accurate by collecting whether the difference between the pulse widths corresponding to the two marker signals is within an error range is more suitable for scenarios where the baseboard management controller does not store a standard pulse width. By collecting two pulse widths, it is possible to directly determine whether the clock has drifted during the transmission of the data to be transmitted.

在一种具体实施例中,通常选择位于待传输数据之前和待传输数据之后的两个标志位作为判断硬盘的时钟是否准确的两个标志信号,或者限定作为判断硬盘的时钟是否准确的两个标志信号之间的时间间隔不小于预设时间间隔,从而确定在这个时间间隔内时钟是否发生漂移灯等。In a specific embodiment, two flag bits located before and after the data to be transmitted are usually selected as two flag signals for determining whether the hard disk clock is accurate, or the time interval between the two flag signals for determining whether the hard disk clock is accurate is limited to be no less than a preset time interval, thereby determining whether the clock drift occurs within this time interval, etc.

综上,这种判断方法可以有效地检测硬盘的时钟是否准确,从而确保数据传输的准确性和稳定性。通过对标志信号的脉宽进行分析判断,可以及时发现硬盘时钟不准确的情况,为后续的数据处理和传输提供可靠的时钟信号基准。这样就可以避免因时钟不准确而导致的数据传输错误,提高系统的可靠性和稳定性。In summary, this method effectively checks the hard drive's clock accuracy, ensuring the accuracy and stability of data transmission. By analyzing the pulse width of the marker signal, inaccurate hard drive clocks can be promptly detected, providing a reliable clock signal reference for subsequent data processing and transmission. This prevents data transmission errors caused by clock inaccuracies and improves system reliability and stability.

在一种实施例中,硬盘状态引脚在硬盘为预设状态下输出第一电平的控制信号,通过在控制信号中插入若干个预设宽度的第二电平的脉冲信号,以利用脉冲信号对控制信号进行分割,得到与各个数据位一一对应的第一电平的脉宽,将自身当前的时钟频率编码为预设宽度的第二电平的脉冲信号,根据预设宽度的第二电平的脉冲信号和多个第一电平的脉宽得到通信信号,数据信号包括多个数据位,第二电平与第一电平相反;In one embodiment, the hard disk status pin outputs a control signal of a first level when the hard disk is in a preset state, inserts a plurality of pulse signals of a second level with a preset width into the control signal, and uses the pulse signals to divide the control signal to obtain a pulse width of the first level corresponding to each data bit, encodes the current clock frequency of the hard disk into a pulse signal of the second level with a preset width, and obtains a communication signal based on the pulse signal of the second level with the preset width and the plurality of pulse widths of the first level, wherein the data signal includes a plurality of data bits, and the second level is opposite to the first level;

对通信信号进行解析,得到时钟信号和数据信号,包括:Analyze the communication signal to obtain the clock signal and data signal, including:

对通信信号进行解析,得到至少两个第二电平的脉冲信号和多个第一电平的脉宽;parsing the communication signal to obtain at least two second-level pulse signals and a plurality of first-level pulse widths;

基于时钟信号判断硬盘的时钟是否准确,包括:Determine whether the hard drive's clock is accurate based on the clock signal, including:

基于至少两个第二电平的脉冲信号判断硬盘的时钟是否准确。Whether the clock of the hard disk is accurate is determined based on at least two pulse signals of the second level.

在一种实施例中,基于至少两个第二电平的脉冲信号判断硬盘的时钟是否准确,包括:In one embodiment, determining whether the hard disk clock is accurate based on at least two pulse signals of the second level includes:

判断两个第二电平的脉冲信号的宽度差值是否在误差范围内;Determining whether a width difference between two second-level pulse signals is within an error range;

若在误差范围内,判定硬盘的时钟准确;If it is within the error range, the hard disk clock is determined to be accurate;

若不在误差范围内,判定硬盘的时钟不准确。If it is not within the error range, it is determined that the hard disk clock is inaccurate.

具体而言,硬盘状态引脚在硬盘处于预设状态下会输出第一电平的控制信号时,硬盘将硬盘状态信号和硬盘状态数据进行调制,得到第一信号的过程可以包括:在预设状态下,在控制信号中插入若干个预设宽度的第二电平的脉冲信号,以利用脉冲信号对控制信号进行分割,得到与各个数据位一一对应的第一电平的脉宽,其中数据信号包括多个数据位,第二电平与第一电平相反。也即,通过在恒定的第一电平中插入相反的第二电平的脉冲信号,以得到若干个第一电平的脉宽信号,从而实现对硬盘日志数据的调制。Specifically, when the hard disk status pin outputs a first-level control signal when the hard disk is in a preset state, the hard disk modulates the hard disk status signal and hard disk status data to obtain the first signal. The process may include: in the preset state, inserting a plurality of second-level pulse signals of preset width into the control signal, so as to divide the control signal using the pulse signals to obtain a first-level pulse width corresponding to each data bit, wherein the data signal includes multiple data bits and the second level is opposite to the first level. That is, by inserting a second-level pulse signal of opposite width into a constant first level to obtain a plurality of first-level pulse width signals, the hard disk log data is modulated.

在这种情况下,可以将自身的时钟信号与多个第二电平的脉冲信号、多个第一电平的脉宽进行编码,得到通信信号,此通信信号中不仅包括了时钟信号,还有硬盘日志数据和对应的硬盘状态数据,确保了时钟信号和数据信号的准确传输,并且通过硬盘状态引脚就可以实现对硬盘状态信号、硬盘日志数据和时钟信号三者的传输。具体而言,利用此脉冲信号传递时钟信号,使用预设宽度的第二电平的脉冲信号作为分割信号,以得到和各个数据位对应的第一电平的脉宽。在硬盘的时钟准确时,硬盘输出的各个脉冲信号的宽度都应该为预设宽度,或者在预设宽度的范围内。若硬盘的时钟不准确,则输出的各个脉冲信号的宽度会偏离此预设宽度的范围。In this case, the clock signal itself can be encoded with multiple second-level pulse signals and multiple first-level pulse widths to obtain a communication signal. This communication signal includes not only the clock signal, but also the hard disk log data and the corresponding hard disk status data, ensuring the accurate transmission of the clock signal and the data signal. In addition, the transmission of the hard disk status signal, the hard disk log data and the clock signal can be achieved through the hard disk status pin. Specifically, the clock signal is transmitted using this pulse signal, and the second-level pulse signal of the preset width is used as a segmentation signal to obtain the first-level pulse width corresponding to each data bit. When the hard disk clock is accurate, the width of each pulse signal output by the hard disk should be the preset width, or within the range of the preset width. If the hard disk clock is inaccurate, the width of each pulse signal output will deviate from the range of this preset width.

因此,基板管理控制器基于时钟信号判断硬盘的时钟是否准确的步骤可以包括:首先对通信信号进行解析,得到至少两个第二电平的脉冲信号,基于两个脉冲信号判断其对应的脉宽是否在误差范围内,若在误差范围内,则确定时钟在数据传输过程中未发生漂移,以及硬盘的时钟为准确的;否则,确定时钟在数据传输过程中发生漂移,硬盘的时钟不准确,对应的,传输的数据信号也不准确。Therefore, the steps for the baseboard management controller to determine whether the hard disk clock is accurate based on the clock signal may include: first parsing the communication signal to obtain at least two second-level pulse signals, and judging whether the corresponding pulse width is within the error range based on the two pulse signals; if it is within the error range, it is determined that the clock has not drifted during the data transmission process, and the hard disk clock is accurate; otherwise, it is determined that the clock has drifted during the data transmission process, the hard disk clock is inaccurate, and correspondingly, the transmitted data signal is also inaccurate.

在一种实施例中,对通信信号进行解析,得到时钟信号和数据信号,包括:In one embodiment, parsing a communication signal to obtain a clock signal and a data signal includes:

对通信信号进行解析,得到方波信号和数据信号,方波信号的方波频率与硬盘的时钟频率之间呈第二映射关系;The communication signal is parsed to obtain a square wave signal and a data signal, wherein a square wave frequency of the square wave signal and a clock frequency of the hard disk are in a second mapping relationship;

基于时钟信号判断硬盘的时钟是否准确;Determine whether the hard disk clock is accurate based on the clock signal;

基于方波信号判断硬盘的时钟是否准确。Determines whether the hard disk clock is accurate based on the square wave signal.

本实施例中,重新生成与时钟信号对应的方波信号,并将其与数据信号进行编码,一起传递到基板管理控制器端时(方波与数据信号的组合方式如图4所示,数据信号包括表示数据传输开始的开始标志位、数据传输结束的结束标志位和待传输数据(包括多个数据位),可以将方波信号插入至待传输数据的第一个数据位之前和最后一个数据位之后)。In this embodiment, a square wave signal corresponding to the clock signal is regenerated, encoded with the data signal, and transmitted together to the baseboard management controller end (the combination of the square wave and the data signal is shown in Figure 4, the data signal includes a start flag indicating the start of data transmission, an end flag indicating the end of data transmission, and the data to be transmitted (including multiple data bits). The square wave signal can be inserted before the first data bit and after the last data bit of the data to be transmitted).

基板管理控制器在接收通信信号后,进行解析的具体步骤为:对接收到的通信信号进行解析,分离出方波信号和数据信号。通过这一步骤,基板管理控制器可以获取到编码的时钟信号和数据信号。基于解析得到的方波信号进行判断,以确定硬盘的时钟是否准确。通过对方波信号的频率和特征进行分析,基板管理控制器可以评估硬盘时钟的准确性,从而及时纠正任何时钟误差或漂移,确保数据传输的准确性和稳定性。After receiving the communication signal, the BMC analyzes it in the following steps: It parses the received communication signal and separates it into a square wave signal and a data signal. This process allows the BMC to obtain the encoded clock and data signals. Based on the parsed square wave signal, the BMC determines whether the hard drive's clock is accurate. By analyzing the frequency and characteristics of the square wave signal, the BMC assesses the hard drive's clock accuracy and promptly corrects any clock errors or drift, ensuring accurate and stable data transmission.

本实施例中,方波信号的形状如图5所示,由于方波信号是一种具有明显高低电平变化的信号,易于在基板管理控制器进行解析,其可以通过检测方波信号的频率和特征来还原时钟信号,从而确保时钟信息的准确性。此外,相比于其他信号编码方式,方波信号的频率变化相对较快,可以在较短的时间内传输多个时钟周期的信息,从而提高数据传输效率,进而可以有效节约通信带宽。再者,由于方波信号的高低电平变化明显,可以更好地抵御噪声和干扰的影响,减少误码率,提高数据传输的可靠性。In this embodiment, the shape of the square wave signal is shown in Figure 5. Since the square wave signal is a signal with obvious high and low level changes, it is easy to parse in the baseboard management controller. It can restore the clock signal by detecting the frequency and characteristics of the square wave signal, thereby ensuring the accuracy of the clock information. In addition, compared with other signal encoding methods, the frequency of the square wave signal changes relatively quickly, and it can transmit information of multiple clock cycles in a shorter time, thereby improving data transmission efficiency and effectively saving communication bandwidth. Furthermore, due to the obvious high and low level changes of the square wave signal, it can better resist the influence of noise and interference, reduce the bit error rate, and improve the reliability of data transmission.

在一种实施例中,基于方波信号判断硬盘的时钟是否准确,包括:In one embodiment, determining whether the hard disk clock is accurate based on the square wave signal includes:

判断两个方波信号之间的频率差值是在预设频率范围内;Determine whether the frequency difference between the two square wave signals is within a preset frequency range;

若频率差值在预设频率范围内,判定硬盘的时钟准确;If the frequency difference is within the preset frequency range, the hard drive clock is determined to be accurate;

若频率差值不在预设频率范围内,判定硬盘的时钟不准确。If the frequency difference is not within the preset frequency range, it is determined that the hard disk clock is inaccurate.

本实施例描述了基板管理控制器对通信信号进行解析的具体步骤和判断硬盘时钟准确性的条件。首先,基板管理控制器对通信信号进行解析,获取至少两个方波信号和第一脉宽信号,这里基板管理控制器需要解析通信信号,将其中包含的方波信号和脉宽信号提取出来,以便后续的时钟准确性判断。其次,基板管理控制器需要判断两个方波信号之间的频率差值是否在预设频率范围内;这一步是为了判断硬盘的时钟频率是否稳定,通过对方波信号的频率差值进行比对,可以确定硬盘的时钟频率是否在预期范围内。最后,若频率差值在预设频率范围内,则基板管理控制器判定硬盘的时钟准确;若频率差值不在预设频率范围内,则判定硬盘的时钟不准确;这一步是根据前面的频率差值判断结果进行最终的时钟准确性判断,若频率差值在预设范围内,则认为硬盘的时钟是准确的,否则认为时钟不准确。This embodiment describes the specific steps for a baseboard management controller (BMC) to parse a communication signal and the conditions for determining the hard drive clock accuracy. First, the BMC parses the communication signal to obtain at least two square wave signals and a first pulse width signal. The BMC needs to parse the communication signal and extract the square wave signal and pulse width signal contained therein for subsequent clock accuracy determination. Second, the BMC needs to determine whether the frequency difference between the two square wave signals is within a preset frequency range. This step is to determine whether the hard drive clock frequency is stable. By comparing the frequency difference of the square wave signals, it can determine whether the hard drive clock frequency is within the expected range. Finally, if the frequency difference is within the preset frequency range, the BMC determines that the hard drive clock is accurate. If the frequency difference is not within the preset frequency range, the BMC determines that the hard drive clock is inaccurate. This step makes the final clock accuracy determination based on the previous frequency difference determination results. If the frequency difference is within the preset range, the hard drive clock is considered accurate; otherwise, it is considered inaccurate.

更进一步的,基板管理控制器解析出方波信号之后,基于方波信号判断硬盘的时钟是否准确的方式可以包括如下几种:其一,将解析出来的方波信号的方波频率和基板管理控制器中预存的方波基准频率比较,判断二者之间的差值是否在预设范围内;其二,根据解析出来的方波信号的方波频率和第二映射关系,确定时钟频率,将时钟频率和基板管理控制器预存的时钟基准频率比较,判断二者之间的差值是否在预设范围内;其三,解析出来至少两个方波信号,并确定这两个方波信号的方波频率,判断这两个方波频率之间的差值是否在预设范围内,以确定在这两个方波信号之间的时间段内时钟是否发生漂移;其四,解析出来至少两个方波信号,并确定这两个方波信号的方波频率,根据解析出来的方波信号的方波频率和第二映射关系,确定两个时钟频率,判断这两个时钟频率之间的差值是否在预设范围内,以确定在这两个方波信号之间的时间段内时钟是否发生漂移。Furthermore, after the baseboard management controller parses the square wave signal, the methods for determining whether the hard disk clock is accurate based on the square wave signal may include the following: first, comparing the square wave frequency of the parsed square wave signal with a square wave reference frequency pre-stored in the baseboard management controller to determine whether the difference between the two is within a preset range; second, determining the clock frequency based on the square wave frequency of the parsed square wave signal and a second mapping relationship, comparing the clock frequency with a clock reference frequency pre-stored in the baseboard management controller to determine whether the difference between the two is within a preset range; third, parsing at least two square wave signals, determining the square wave frequencies of the two square wave signals, determining whether the difference between the two square wave frequencies is within a preset range, and determining whether the clock drift occurs in the time period between the two square wave signals; fourth, parsing at least two square wave signals, determining the square wave frequencies of the two square wave signals, determining two clock frequencies based on the square wave frequencies of the parsed square wave signals and the second mapping relationship, and determining whether the difference between the two clock frequencies is within a preset range, and determining whether the clock drift occurs in the time period between the two square wave signals.

综上,本实施例描述了基板管理控制器如何利用解析通信信号中的方波信号来评估硬盘的时钟准确性,并根据预设标准进行判断。这样的设计可以有效监测和维护硬盘的时钟状态,确保系统的正常运行和数据的可靠传输。In summary, this embodiment describes how a baseboard management controller (BMC) analyzes square wave signals within communication signals to assess the hard drive's clock accuracy and make judgments based on pre-set standards. This design effectively monitors and maintains the hard drive's clock status, ensuring proper system operation and reliable data transmission.

在一种实施例中,还包括:In one embodiment, it further includes:

在判定硬盘的时钟不准确时,通过硬盘状态引脚向硬盘和/或硬盘控制器发送反馈信号,以使硬盘重新传输数据信号或通信信号。When it is determined that the hard disk clock is inaccurate, a feedback signal is sent to the hard disk and/or hard disk controller via the hard disk status pin, so that the hard disk retransmits the data signal or communication signal.

在本实施例中,当判断硬盘的时钟不准确时,基板管理控制器会通过硬盘状态引脚向硬盘发送反馈信号,以触发硬盘重新传输数据信号或通信信号。由于硬盘和基板管理控制器之间只有一条单线连接,因此需要对数据传输时间进行严格的约定以确保通信的准确性和时效性。一种约定时间的方法是在系统中预先设定一个时间窗口,硬盘在该时间窗口内发送数据信号或通信信号。基板管理控制器在接收到数据信号或通信信号后,在预设的时间窗口内发送反馈信号。通过这种约定时间的方法,硬盘和基板管理控制器可以在约定的时间内进行通信,确保数据传输的准确性和时效性。这样的方法可以有效地提高数据传输的可靠性和稳定性,确保系统的正常运行。In this embodiment, when the hard drive clock is determined to be inaccurate, the baseboard management controller sends a feedback signal to the hard drive via the hard drive status pin to trigger the hard drive to retransmit the data signal or communication signal. Since there is only a single-line connection between the hard drive and the baseboard management controller, a strict agreement on the data transmission time is required to ensure the accuracy and timeliness of communication. One method of agreeing on time is to pre-set a time window in the system, within which the hard drive sends the data signal or communication signal. After receiving the data signal or communication signal, the baseboard management controller sends a feedback signal within the preset time window. Through this agreed-on time method, the hard drive and the baseboard management controller can communicate within the agreed time, ensuring the accuracy and timeliness of data transmission. This method can effectively improve the reliability and stability of data transmission and ensure the normal operation of the system.

更进一步的,在一种实施例中,在基板管理控制器判定硬盘的时钟不准确之后,还包括:生成错误报告,并反馈至硬盘控制器,以使硬盘控制器基于错误报告切换硬盘或调整硬盘的时钟源。Furthermore, in one embodiment, after the baseboard management controller determines that the hard disk clock is inaccurate, it also includes: generating an error report and feeding it back to the hard disk controller, so that the hard disk controller switches the hard disk or adjusts the hard disk clock source based on the error report.

具体而言,基板管理控制器在判定硬盘时钟不准确后,还会生成详细的错误报告,错误报告中可以包括时钟的具体偏差值和时间等。该错误报告将会及时反馈至硬盘控制器作为参考。Specifically, after the baseboard management controller determines that the hard disk clock is inaccurate, it will also generate a detailed error report, which may include the specific clock deviation value and time, etc. This error report will be promptly fed back to the hard disk controller for reference.

硬盘控制器可以根据错误报告中的信息,选择切换硬盘,如可以选择切换到备用硬盘,以确保数据的安全和可靠性;具体而言,在切换硬盘之前,需要先将当前硬盘上的数据完整地备份至备用硬盘上,然后将备用硬盘连接至基板管理控制器,并重新进行数据信号的传输。The hard disk controller can choose to switch hard disks based on the information in the error report, such as switching to a spare hard disk, to ensure data security and reliability; specifically, before switching hard disks, it is necessary to first completely back up the data on the current hard disk to the spare hard disk, then connect the spare hard disk to the baseboard management controller, and re-transmit the data signal.

硬盘控制器还可以根据错误报告中的信息调整硬盘的时钟源,如改变硬盘的时钟源的控制参数,或者通过外部时钟信号来同步硬盘的内部时钟。在时钟不准确时,通过对时钟源进行调整,可以确保硬盘正常运行并避免数据丢失或损坏,有效提高硬盘的稳定性和可靠性。The hard drive controller can also adjust the hard drive's clock source based on the information in the error report, such as by changing the hard drive's clock source control parameters or synchronizing the hard drive's internal clock with an external clock signal. Adjusting the clock source when the clock is inaccurate ensures proper hard drive operation and prevents data loss or corruption, effectively improving the hard drive's stability and reliability.

第二方面,如图6所示,本申请还提供了一种时钟检测方法,应用于硬盘,硬盘和基板管理控制器之间单线通信,时钟检测方法包括:In a second aspect, as shown in FIG6 , the present application further provides a clock detection method, which is applied to a hard disk, and single-line communication between the hard disk and the baseboard management controller. The clock detection method includes:

S21:将自身的时钟信号和数据信号进行编码,得到通信信号,数据信号为硬盘根据硬盘日志数据和硬盘状态引脚对应的硬盘状态信号调制得到的信号;S21: Encode its own clock signal and data signal to obtain a communication signal. The data 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;

在硬盘中,首先需要获取硬盘的时钟信号和数据信号。时钟信号是硬盘内部用于同步数据的传输和处理的时钟源对应的信号,数据信号则是根据硬盘日志数据和硬盘状态引脚对应的硬盘状态信号调制得到的信号,包含了硬盘状态信息和当前日志对应的数据内容。接下来将时钟信号和数据信号进行编码,编码的目的是将原始的时钟信号和数据信号转换为适合在单线传输通道上传输的通信信号。In the hard drive, the first step is to obtain the drive's clock signal and data signal. The clock signal corresponds to the clock source within the hard drive, used to synchronize data transmission and processing. The data signal is modulated based on the hard drive's log data and the hard drive status signal corresponding to the hard drive status pin. It contains the hard drive status information and the data content corresponding to the current log. The clock and data signals are then encoded. The purpose of encoding is to convert the original clock and data signals into communication signals suitable for transmission over a single-wire transmission channel.

具体而言,时钟信号和数据信号需要进行编码后再传输的原因是因为单线通信方式下,发送端和接收端之间(也即硬盘的硬盘状态引脚和基板管理控制器之间)无法进行时钟校准,无法确定数据信号是否基于正确的时钟传输。通过将时钟信号和数据信号进行编码,可以将它们合并成一个通信信号进行传输,进而基板管理控制器可以通过解析该通信信号来获取时钟信号和数据信号,并基于时钟信号来判断硬盘的时钟是否准确,这样可以在单线通信方式下实现对时钟信号的检测,确保数据传输的准确性。Specifically, the clock and data signals need to be encoded before transmission because, in single-wire communication, clock calibration cannot be performed between the transmitter and receiver (that is, between the hard drive's hard drive status pin and the baseboard management controller), making it impossible to determine whether the data signal is transmitted based on the correct clock. By encoding the clock and data signals, they can be combined into a single communication signal for transmission. The baseboard management controller can then parse this communication signal to obtain the clock and data signals and, based on the clock signal, determine whether the hard drive's clock is accurate. This allows clock signal detection in single-wire communication, ensuring the accuracy of data transmission.

S22:将通信信号通过硬盘状态引脚发送至基板管理控制器,以使基板管理控制器对通信信号进行解析,得到时钟信号和数据信号,并基于时钟信号判断硬盘的时钟是否准确。S22: Sending the communication signal to the baseboard management controller through the hard disk status pin, so that the baseboard management controller analyzes the communication signal to obtain a clock signal and a data signal, and determines whether the hard disk clock is accurate based on the clock signal.

具体而言,在基板管理控制器端,接收到通信信号之后,对通信信号进行解析,得到时钟信号和数据信号,然后基于时钟信号对硬盘的时钟进行判断,以确定硬盘的时钟是否准确,若硬盘的时钟准确,则判定硬盘传输的数据信号也是准确的,否则判定硬盘传输的数据信号不准确。Specifically, at the baseboard management controller end, after receiving the communication signal, the communication signal is parsed to obtain the clock signal and data signal, and then the hard disk clock is judged based on the clock signal to determine whether the hard disk clock is accurate. If the hard disk clock is accurate, the data signal transmitted by the hard disk is also determined to be accurate, otherwise the data signal transmitted by the hard disk is determined to be inaccurate.

综上,本申请的时钟检测方法,通过硬盘状态引脚可以实现对硬盘日志数据、硬盘状态信号和时钟信号的传递,且通过对时钟信号和数据信号进行编码,以及对通信信号解析可以对硬盘的时钟进行校准,进而可以确定数据信号是否基于正确的时钟传输,以及时发现问题确保数据信号传输的准确性。In summary, the clock detection method of the present application can realize the transmission of hard disk log data, hard disk status signal and clock signal through the hard disk status pin, and can calibrate the hard disk clock by encoding the clock signal and data signal, and parsing the communication signal, and then determine whether the data signal is based on the correct clock transmission, so as to detect problems in time and ensure the accuracy of data signal transmission.

在一种实施例中,数据信号包括待传输数据和固定脉宽的标志信号,标志信号用于表征数据信号的当前传输进度,将自身的时钟信号和数据信号进行编码,得到通信信号,包括:In one embodiment, the data signal includes data to be transmitted and a flag signal of a fixed pulse width. The flag signal is used to indicate the current transmission progress of the data signal. The communication signal is obtained by encoding its own clock signal and data signal, including:

将自身当前的时钟频率编码至标志信号中;Encode its current clock frequency into the flag signal;

将标志信号和待传输数据进行整合,得到通信信号;Integrate the flag signal and the data to be transmitted to obtain a communication signal;

基板管理控制器对通信信号进行解析,得到时钟信号和数据信号,并基于时钟信号判断硬盘的时钟是否准确,包括:The baseboard management controller analyzes the communication signal to obtain the clock signal and data signal, and determines whether the hard disk clock is accurate based on the clock signal, including:

基板管理控制器对通信信号进行解析,获取至少两个标志信号和待传输数据;The baseboard management controller analyzes the communication signal to obtain at least two flag signals and data to be transmitted;

根据两个标志信号对应的脉宽判断硬盘的时钟是否准确。The accuracy of the hard disk clock is determined based on the pulse width corresponding to the two flag signals.

本实施例进一步详细说明了数据信号的组成和处理方法,以及基板管理控制器对通信信号的解析和时钟准确性判断方法。具体而言,在传输数据信号时,随着有效的待传输数据,通常还会伴随着几个标志信号和待传输数据一起传输,如标志信号为表征数据开始传输的标志位、表征数据传输结束的标志位、数据校验位等,穿插在待传输数据的传输过程中,而这些标志信号在通信协议中通常被赋予固定脉宽,此时,本申请利用这些固定脉宽的标志信号来携带时钟信号,以实现单线通信过程中既可以传输待传输数据,也可以传输时钟信号的功能。This embodiment further describes in detail the composition and processing method of the data signal, as well as the analysis and clock accuracy judgment method of the communication signal by the baseboard management controller. Specifically, when transmitting a data signal, along with the valid data to be transmitted, several flag signals are usually transmitted together with the data to be transmitted, such as a flag signal that indicates the start of data transmission, a flag signal that indicates the end of data transmission, a data check bit, etc., which are interspersed in the transmission process of the data to be transmitted. These flag signals are usually assigned a fixed pulse width in the communication protocol. At this time, the present application uses these fixed pulse width flag signals to carry the clock signal to achieve the function of transmitting both the data to be transmitted and the clock signal during the single-line communication process.

如图3所示,数据信号表示数据开始传输的开始标志位、表示数据传输结束的结束标志位,在开始标志位和结束标志位中间为待传输数据(包括多个数据位),则可以利用开始标志位和结束标志位来编码时钟信号。As shown in Figure 3, the data signal indicates the start flag bit that indicates the start of data transmission and the end flag bit that indicates the end of data transmission. Between the start flag bit and the end flag bit is the data to be transmitted (including multiple data bits). The start flag bit and the end flag bit can be used to encode the clock signal.

具体而言,本申请中的数据信号若包括待传输数据和固定脉宽的标志信号,则可以通过将自身的时钟信号和数据信号中的标志信号进行编码,生成包含时钟频率、标志信号和待传输数据的通信信号。将当前的时钟频率编码至标志信号中,可以确保在数据传输过程中能够同步时钟信息。整合标志信号和待传输数据,形成完整的通信信号,以便在单线传输通道上传输至基板管理控制器。基板管理控制器对接收到的通信信号进行解析,获取至少两个标志信号和待传输数据,根据两个标志信号对应的脉宽来判断硬盘的时钟是否准确,通过比较脉宽的变化情况,可以评估硬盘时钟的准确性,从而确保数据传输的正确性和可靠性。Specifically, if the data signal in the present application includes data to be transmitted and a flag signal of a fixed pulse width, a communication signal containing a clock frequency, a flag signal and data to be transmitted can be generated by encoding its own clock signal and the flag signal in the data signal. Encoding the current clock frequency into the flag signal can ensure that the clock information can be synchronized during the data transmission process. The flag signal and the data to be transmitted are integrated to form a complete communication signal so that it can be transmitted to the baseboard management controller on a single-line transmission channel. The baseboard management controller parses the received communication signal, obtains at least two flag signals and the data to be transmitted, and determines whether the hard disk clock is accurate based on the pulse width corresponding to the two flag signals. By comparing the changes in the pulse width, the accuracy of the hard disk clock can be evaluated, thereby ensuring the correctness and reliability of data transmission.

也即,本申请中复用标志信号,此标志信号不仅用于表征数据传输的进度或者校验等,还可以被用来判断时钟是否准确。具体而言,标志信号在时钟正常时应该为固定脉宽,若其脉宽发生变化,且变化程度大于阈值,则认为硬盘的时钟不准确,若脉宽不变,仍为固定脉宽,或者其变化程度在阈值范围内,则认为硬盘的时钟是准确的。In other words, the present application multiplexes a flag signal, which is used not only to indicate the progress of data transmission or for verification purposes, but also to determine the accuracy of the clock. Specifically, the flag signal should have a fixed pulse width when the clock is normal. If the pulse width changes, and the degree of change is greater than a threshold, the hard drive clock is considered inaccurate. If the pulse width remains unchanged, or the degree of change is within the threshold, the hard drive clock is considered accurate.

相比于单独生成时钟信号,将时钟信号和标志信号编码,除了可以更精确地评估硬盘时钟的准确性,有助于及时发现和纠正时钟不准确的情况,还可以简化系统设计,使得在单线通信方式下可以在有限的通道内传输更多的信息,减少额外线路的需求,降低系统复杂度和成本。Compared to generating the clock signal separately, encoding the clock signal and the flag signal can not only more accurately evaluate the accuracy of the hard disk clock, which helps to promptly detect and correct clock inaccuracies, but also simplify the system design, so that more information can be transmitted within a limited channel under single-line communication mode, reducing the need for additional lines and lowering system complexity and cost.

在一种实施例中,硬盘状态引脚在硬盘为预设状态下输出第一电平的控制信号;将自身的时钟信号和数据信号进行编码,得到通信信号,包括:In one embodiment, the hard disk status pin outputs a control signal of a first level when the hard disk is in a preset state; and encodes its own clock signal and data signal to obtain a communication signal, including:

在控制信号中插入若干个预设宽度的第二电平的脉冲信号,以利用脉冲信号对控制信号进行分割,得到与各个数据位一一对应的第一电平的脉宽,数据信号包括多个数据位,第二电平与第一电平相反;Inserting a plurality of pulse signals of a second level with a preset width into the control signal to divide the control signal using the pulse signals to obtain pulse widths of the first level corresponding to respective data bits, wherein the data signal includes a plurality of data bits and the second level is opposite to the first level;

将自身的时钟信号与多个第二电平的脉冲信号、多个第一电平的脉宽进行编码,得到通信信号。The clock signal thereof is encoded with a plurality of second-level pulse signals and a plurality of first-level pulse widths to obtain a communication signal.

具体而言,硬盘状态引脚在硬盘处于预设状态下会输出第一电平的控制信号时,硬盘将硬盘状态信号和硬盘状态数据进行调制,得到第一信号的过程可以包括:在预设状态下,在控制信号中插入若干个预设宽度的第二电平的脉冲信号,以利用脉冲信号对控制信号进行分割,得到与各个数据位一一对应的第一电平的脉宽,其中数据信号包括多个数据位,第二电平与第一电平相反。也即,通过在恒定的第一电平中插入相反的第二电平的脉冲信号,以得到若干个第一电平的脉宽信号,从而实现对硬盘日志数据的调制。Specifically, when the hard disk status pin outputs a first-level control signal when the hard disk is in a preset state, the hard disk modulates the hard disk status signal and hard disk status data to obtain the first signal. The process may include: in the preset state, inserting a plurality of second-level pulse signals of preset width into the control signal, so as to divide the control signal using the pulse signals to obtain a first-level pulse width corresponding to each data bit, wherein the data signal includes multiple data bits and the second level is opposite to the first level. That is, by inserting a second-level pulse signal of opposite width into a constant first level to obtain a plurality of first-level pulse width signals, the hard disk log data is modulated.

在这种情况下,可以将自身的时钟信号与多个第二电平的脉冲信号、多个第一电平的脉宽进行编码,得到通信信号,此通信信号中不仅包括了时钟信号,还有硬盘日志数据和对应的硬盘状态数据,确保了时钟信号和数据信号的准确传输,并且通过硬盘状态引脚就可以实现对硬盘状态信号、硬盘日志数据和时钟信号三者的传输。In this case, its own clock signal can be encoded with multiple second-level pulse signals and multiple first-level pulse widths to obtain a communication signal. This communication signal not only includes the clock signal, but also the hard disk log data and the corresponding hard disk status data, ensuring the accurate transmission of the clock signal and data signal, and the transmission of the hard disk status signal, hard disk log data and clock signal can be realized through the hard disk status pin.

同样的,基板管理控制器对通信信号进行解析的过程包括:从通信信号中解析出硬盘的时钟信号与多个第二电平的脉冲信号、多个第一电平的脉宽,并基于时钟信号对硬盘的时钟进行判断。Similarly, the process of the baseboard management controller parsing the communication signal includes: parsing the hard disk clock signal and multiple second-level pulse signals and multiple first-level pulse widths from the communication signal, and judging the hard disk clock based on the clock signal.

此外,预设状态还可以为硬盘在位状态或不在位状态,且在预设状态下持续输出第一电平的信号时,也可以利用此方法,因且实现方式相同,本申请在此不在赘述。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. Since the implementation method is the same, this application will not elaborate on it here.

综上,本实施例中利用硬盘的硬盘状态引脚,在硬盘端通过调制实现对硬盘状态信号和硬盘日志数据的传递,以便于基板管理控制器根据数据信号解析出硬盘日志数据对硬盘进行监控;进一步的,还将时钟信号调制在硬盘日志数据中的脉冲信号中,还实现了不用时钟线并对时钟信号进行解析,从而便于基板管理控制器根据时钟信号确定硬盘的时钟是否准确。In summary, in this embodiment, the hard disk status pin of the hard disk is utilized to realize the transmission of the hard disk status signal and the hard disk log data through modulation at the hard disk end, so that the baseboard management controller can monitor the hard disk by parsing the hard disk log data according to the data signal; further, the clock signal is modulated into the pulse signal in the hard disk log data, and the clock signal is parsed without using a clock line, so that the baseboard management controller can determine whether the hard disk clock is accurate according to the clock signal.

在一种实施例中,将自身的时钟信号与多个第二电平的脉冲信号、多个第一电平的脉宽进行编码,得到通信信号,包括:In one embodiment, encoding the clock signal thereof with a plurality of second-level pulse signals and a plurality of first-level pulse widths to obtain a communication signal includes:

将自身当前的时钟频率编码为预设宽度的第二电平的脉冲信号,时钟频率与预设宽度之间呈第一映射关系,通信信号包括多个预设宽度的第二电平的脉冲信号及多个第一电平的脉宽;Encoding its current clock frequency into a pulse signal of a second level with a preset width, wherein a first mapping relationship exists between the clock frequency and the preset width, and the communication signal includes a plurality of pulse signals of the second level with the preset width and a plurality of pulse widths of the first level;

基板管理控制器对通信信号进行解析,得到时钟信号和数据信号,并基于时钟信号判断硬盘的时钟是否准确,包括:The baseboard management controller analyzes the communication signal to obtain the clock signal and data signal, and determines whether the hard disk clock is accurate based on the clock signal, including:

基板管理控制器对通信信号进行解析,得到至少两个第二电平的脉冲信号和多个第一电平的脉宽;The baseboard management controller analyzes the communication signal to obtain at least two second-level pulse signals and a plurality of first-level pulse widths;

判断两个第二电平的脉冲信号的宽度差值是否在误差范围内;Determining whether a width difference between two second-level pulse signals is within an error range;

若在误差范围内,判定硬盘的时钟准确;If it is within the error range, the hard disk clock is determined to be accurate;

若不在误差范围内,判定硬盘的时钟不准确。If it is not within the error range, it is determined that the hard disk clock is inaccurate.

本实施例中,具有固定脉宽的标志信号即为预设宽度的第二电平的脉冲信号,将时钟信号和数据信号进行编码,则是将时钟信号与此脉冲信号进行编码。也即,利用此脉冲信号传递时钟信号。具体而言,使用预设宽度的第二电平的脉冲信号作为分割信号,以得到和各个数据位对应的第一电平的脉宽。在硬盘的时钟准确时,硬盘输出的各个脉冲信号的宽度都应该为预设宽度,或者在预设宽度的范围内。若硬盘的时钟不准确,则输出的各个脉冲信号的宽度会偏离此预设宽度的范围。In this embodiment, the flag signal with a fixed pulse width is a pulse signal of a second level with a preset width. Encoding the clock signal and the data signal is to encode the clock signal with this pulse signal. That is, the clock signal is transmitted using this pulse signal. Specifically, a pulse signal of a second level with a preset width is used as a segmentation signal to obtain a pulse width of the first level corresponding to each data bit. When the hard disk clock is accurate, the width of each pulse signal output by the hard disk should be the preset width, or within the range of the preset width. If the hard disk clock is inaccurate, the width of each pulse signal output will deviate from the range of the preset width.

因此,基板管理控制器基于时钟信号判断硬盘的时钟是否准确的步骤可以包括:首先对通信信号进行解析,得到至少两个第二电平的脉冲信号,基于两个脉冲信号判断其对应的脉宽是否在误差范围内,若在误差范围内,则确定时钟在数据传输过程中未发生漂移,以及硬盘的时钟为准确的;否则,确定时钟在数据传输过程中发生漂移,硬盘的时钟不准确,对应的,传输的数据信号也不准确。Therefore, the steps for the baseboard management controller to determine whether the hard disk clock is accurate based on the clock signal may include: first parsing the communication signal to obtain at least two second-level pulse signals, and judging whether the corresponding pulse width is within the error range based on the two pulse signals; if it is within the error range, it is determined that the clock has not drifted during the data transmission process, and the hard disk clock is accurate; otherwise, it is determined that the clock has drifted during the data transmission process, the hard disk clock is inaccurate, and correspondingly, the transmitted data signal is also inaccurate.

综上,本申请中提供了一种利用硬盘的硬盘状态引脚传递硬盘日志数据的具体实现方式,可以实现利用硬盘原有的引脚实现对硬盘日志数据的传递,进而基板管理控制器基于此硬盘日志数据可以实现对硬盘的监控。再者,本申请还利用对硬盘日志数据和硬盘状态信号进行调制的基础上,将时钟信号也编制在内,从而利用硬盘的硬盘状态引脚既可以实现硬盘日志数据的传递,也可以实现时钟的判断,从而提高传输硬盘日志数据的准确性。In summary, this application provides a specific implementation method for transmitting hard disk log data using the hard disk status pin of the hard disk. This method can realize the transmission of hard disk log data using the original pins of the hard disk, and then the baseboard management controller can monitor the hard disk based on this hard disk log data. Furthermore, this application also utilizes the modulation of the hard disk log data and the hard disk status signal and incorporates the clock signal. Therefore, the hard disk status pin of the hard disk can realize both the transmission of hard disk log data and the judgment of the clock, thereby improving the accuracy of the transmitted hard disk log data.

在一种实施例中,将自身的时钟信号和数据信号进行编码,得到通信信号,包括:In one embodiment, encoding its own clock signal and data signal to obtain a communication signal includes:

将自身当前的时钟频率编码为方波信号,且方波信号的频率与时钟频率之间呈第二映射关系;Encoding its current clock frequency into a square wave signal, wherein the frequency of the square wave signal and the clock frequency form a second mapping relationship;

将方波信号插入至数据信号中,得到通信信号;Inserting the square wave signal into the data signal to obtain a communication signal;

基板管理控制器对通信信号进行解析,得到时钟信号和数据信号,并基于时钟信号判断硬盘的时钟是否准确,包括:The baseboard management controller analyzes the communication signal to obtain the clock signal and data signal, and determines whether the hard disk clock is accurate based on the clock signal, including:

基板管理控制器对通信信号进行解析,得到方波信号和数据信号,并基于方波信号判断硬盘的时钟是否准确。The baseboard management controller analyzes the communication signal to obtain a square wave signal and a data signal, and determines whether the hard disk clock is accurate based on the square wave signal.

上述实施例中,将时钟信号和已有的固定脉宽的标志信号进行编码,以使标志信号携带时钟信号,进而基于标志信号就可以判断硬盘的时钟是否准确。In the above embodiment, the clock signal and the existing fixed pulse width flag signal are encoded so that the flag signal carries the clock signal, and then whether the hard disk clock is accurate can be determined based on the flag signal.

本实施例旨在提供一种重新生成与时钟信号对应的方波信号,并将其与数据信号进行编码,一起传递到基板管理控制器端的具体步骤。具体而言,本实施例,将自身的时钟信号和数据信号进行编码,得到通信信号的具体步骤包括:将自身当前的时钟频率编码为方波信号,并且该方波信号的频率与时钟频率之间呈第二映射关系。这意味着方波信号的频率变化与时钟频率的变化成第二映射关系,从而能够在基板管理控制器端根据方波信号和第二映射关系准确还原时钟信号。将编码后的方波信号插入至数据信号中,与数据信号一起构成完整的通信信号;这样,时钟信号和数据信号被组合在一起传输,确保了时钟信息与数据信息的同步性。This embodiment aims to provide a specific step of regenerating a square wave signal corresponding to a clock signal, encoding it with a data signal, and transmitting it together to the baseboard management controller end. Specifically, in this embodiment, the specific steps of encoding its own clock signal and data signal to obtain a communication signal include: encoding its own current clock frequency into a square wave signal, and the frequency of the square wave signal and the clock frequency are in a second mapping relationship. This means that the frequency change of the square wave signal and the change of the clock frequency are in a second mapping relationship, so that the clock signal can be accurately restored at the baseboard management controller end based on the square wave signal and the second mapping relationship. The encoded square wave signal is inserted into the data signal, and together with the data signal, it constitutes a complete communication signal; in this way, the clock signal and the data signal are combined and transmitted together, ensuring the synchronization of the clock information and the data information.

基板管理控制器在接收通信信号后,进行解析的具体步骤为:对接收到的通信信号进行解析,分离出方波信号和数据信号。通过这一步骤,基板管理控制器可以获取到编码的时钟信号和数据信号。基于解析得到的方波信号进行判断,以确定硬盘的时钟是否准确。通过对方波信号的频率和特征进行分析,基板管理控制器可以评估硬盘时钟的准确性,从而及时纠正任何时钟误差或漂移,确保数据传输的准确性和稳定性。After receiving the communication signal, the BMC analyzes it in the following steps: It parses the received communication signal and separates it into a square wave signal and a data signal. This process allows the BMC to obtain the encoded clock and data signals. Based on the parsed square wave signal, the BMC determines whether the hard drive's clock is accurate. By analyzing the frequency and characteristics of the square wave signal, the BMC assesses the hard drive's clock accuracy and promptly corrects any clock errors or drift, ensuring accurate and stable data transmission.

本实施例中,由于方波信号是一种具有明显高低电平变化的信号,易于在基板管理控制器进行解析,其可以通过检测方波信号的频率和特征来还原时钟信号,从而确保时钟信息的准确性。此外,相比于其他信号编码方式,方波信号的频率变化相对较快,可以在较短的时间内传输多个时钟周期的信息,从而提高数据传输效率,进而可以有效节约通信带宽。再者,由于方波信号的高低电平变化明显,可以更好地抵御噪声和干扰的影响,减少误码率,提高数据传输的可靠性。In this embodiment, since the square wave signal exhibits significant high and low level variations, it is easily parsed by the baseboard management controller. The baseboard management controller can recover the clock signal by detecting the frequency and characteristics of the square wave signal, thereby ensuring the accuracy of the clock information. Furthermore, compared to other signal encoding methods, the frequency of the square wave signal varies relatively quickly, allowing the transmission of information spanning multiple clock cycles in a relatively short period of time. This improves data transmission efficiency and effectively conserves communication bandwidth. Furthermore, since the square wave signal exhibits significant high and low level variations, it can better resist the effects of noise and interference, reducing bit error rates and improving data transmission reliability.

其中,基板管理控制器解析出方波信号之后,基于方波信号判断硬盘的时钟是否准确的方式可以包括如下几种:其一,将解析出来的方波信号的方波频率和基板管理控制器中预存的方波基准频率比较,判断二者之间的差值是否在预设范围内;其二,根据解析出来的方波信号的方波频率和第二映射关系,确定时钟频率,将时钟频率和基板管理控制器预存的时钟基准频率比较,判断二者之间的差值是否在预设范围内;其三,解析出来至少两个方波信号,并确定这两个方波信号的方波频率,判断这两个方波频率之间的差值是否在预设范围内,以确定在这两个方波信号之间的时间段内时钟是否发生漂移;其四,解析出来至少两个方波信号,并确定这两个方波信号的方波频率,根据解析出来的方波信号的方波频率和第二映射关系,确定两个时钟频率,判断这两个时钟频率之间的差值是否在预设范围内,以确定在这两个方波信号之间的时间段内时钟是否发生漂移。Among them, after the baseboard management controller parses the square wave signal, the method of determining whether the hard disk clock is accurate based on the square wave signal may include the following: first, comparing the square wave frequency of the parsed square wave signal with the square wave reference frequency pre-stored in the baseboard management controller to determine whether the difference between the two is within a preset range; second, determining the clock frequency based on the square wave frequency of the parsed square wave signal and the second mapping relationship, comparing the clock frequency with the clock reference frequency pre-stored in the baseboard management controller to determine whether the difference between the two is within a preset range; third, parsing at least two square wave signals, determining the square wave frequencies of the two square wave signals, determining whether the difference between the two square wave frequencies is within a preset range, and determining whether the clock drift occurs in the time period between the two square wave signals; fourth, parsing at least two square wave signals, determining the square wave frequencies of the two square wave signals, determining two clock frequencies based on the square wave frequencies of the parsed square wave signals and the second mapping relationship, and determining whether the difference between the two clock frequencies is within a preset range, and determining whether the clock drift occurs in the time period between the two square wave signals.

其中,方波基准频率可以设置为预设倍数的单线通信协议速率,如f=100×F,其中f为方波基准频率,F为单线通信协议速率。The square wave reference frequency may be set to a preset multiple of the single-wire communication protocol rate, such as f=100×F, where f is the square wave reference frequency and F is the single-wire communication protocol rate.

以上只是本实施例提供的几种基于方波信号确定硬盘的时钟是否准确的方式,实现方式不限于此。The above are just several methods provided in this embodiment to determine whether the hard disk clock is accurate based on the square wave signal, and the implementation is not limited to these.

在一种实施例中,将自身的时钟信号和数据信号进行编码,得到通信信号,包括:In one embodiment, encoding its own clock signal and data signal to obtain a communication signal includes:

将自身当前的时钟频率编码为方波信号,且方波信号的频率与时钟频率之间呈第二映射关系;Encoding its current clock frequency into a square wave signal, wherein the frequency of the square wave signal and the clock frequency form a second mapping relationship;

将各个数据位编码为和数据位一一对应的脉宽,得到第一脉宽信号,数据信号包括多个数据位,第一脉宽信号包括多个数据位对应的脉宽;Encoding each data bit into a pulse width corresponding to the data bit one by one to obtain a first pulse width signal, wherein the data signal includes multiple data bits, and the first pulse width signal includes pulse widths corresponding to the multiple data bits;

将方波信号和第一脉宽信号进行编码,得到通信信号;Encoding the square wave signal and the first pulse width signal to obtain a communication signal;

基板管理控制器对通信信号进行解析,得到时钟信号和数据信号,并基于时钟信号判断硬盘的时钟是否准确,包括:The baseboard management controller analyzes the communication signal to obtain the clock signal and data signal, and determines whether the hard disk clock is accurate based on the clock signal, including:

基板管理控制器对通信信号进行解析,得到方波信号和第一脉宽信号,并基于方波信号判断硬盘的时钟是否准确。The baseboard management controller analyzes the communication signal to obtain a square wave signal and a first pulse width signal, and determines whether the hard disk clock is accurate based on the square wave signal.

本实施例提供一种将硬盘的时钟信号和数据信号进行编码,得到通信信号的具体实现方式。具体而言,数据信号是根据硬盘日志数据和硬盘状态信号调制得到的信号,而时钟信号则被编码为方波信号,其方波信号的频率与时钟频率之间呈第二映射关系,这样的编码方式有助于在传输过程中保留时钟频率的信息,使基板管理控制器能够还原出准确的时钟信号。将通信信号通过硬盘状态引脚发送至基板管理控制器,以使基板管理控制器对通信信号进行解析,得到时钟信号和数据信号,并基于时钟信号判断硬盘的时钟是否准确。This embodiment provides a specific implementation method for encoding the clock signal and data signal of the hard disk to obtain a communication signal. Specifically, the data signal is a signal obtained by modulating the hard disk log data and the hard disk status signal, while the clock signal is encoded as a square wave signal. The frequency of the square wave signal and the clock frequency have a second mapping relationship. This encoding method helps to retain the clock frequency information during the transmission process, so that the baseboard management controller can restore the accurate clock signal. The communication signal is sent to the baseboard management controller through the hard disk status pin, so that the baseboard management controller parses the communication signal to obtain the clock signal and data signal, and determines whether the hard disk clock is accurate based on the clock signal.

进一步的,对数据信号进行编码的方式为:将各个数据位编码为和数据位一一对应的脉冲宽度,得到第一脉冲宽度信号;其中,数据信号包括多个数据位,第一脉冲宽度信号包括多个数据位对应的脉冲宽度;这样的编码方式可以有效地将数据位转换为脉冲宽度信息,便于在传输过程中进行解析和识别。那么将方波信号和数据信号进行编码的方式为:将方波信号和第一脉冲宽度信号进行编码,得到最终的通信信号,这一步骤将时钟信号和数据信号整合编码成统一的通信信号,以便在单线传输通道上传输。基板管理控制器对接收到的通信信号进行解析,得到方波信号和第一脉冲宽度信号,并基于方波信号判断硬盘的时钟是否准确(和/或基于第一脉冲宽度信号解析出数据信号),通过解析和判断,基板管理控制器能够准确评估硬盘时钟的准确性,从而确保数据传输的可靠性和准确性。Furthermore, the data signal is encoded as follows: each data bit is encoded into a pulse width corresponding to the data bit, and a first pulse width signal is obtained; wherein, the data signal includes multiple data bits, and the first pulse width signal includes pulse widths corresponding to the multiple data bits; such an encoding method can effectively convert the data bits into pulse width information, which is convenient for parsing and identifying during the transmission process. Then the square wave signal and the data signal are encoded as follows: the square wave signal and the first pulse width signal are encoded to obtain a final communication signal. This step integrates the clock signal and the data signal into a unified communication signal for transmission on a single-line transmission channel. The baseboard management controller parses the received communication signal to obtain a square wave signal and a first pulse width signal, and judges whether the hard disk clock is accurate based on the square wave signal (and/or parses the data signal based on the first pulse width signal). Through parsing and judging, the baseboard management controller can accurately evaluate the accuracy of the hard disk clock, thereby ensuring the reliability and accuracy of data transmission.

综上,本实施例通过对硬盘的时钟信号和数据信号进行编码,并在接收端进行解析,来判断硬盘的时钟是否准确,从而解决了单线通信方式下无法进行时钟校准的问题。同时,该方法可以有效地应用于硬盘和基板管理控制器之间的单线连接,提高了通信的可靠性和准确性。In summary, this embodiment determines the accuracy of the hard drive's clock by encoding the hard drive's clock and data signals and parsing them at the receiving end. This solves the problem of clock calibration being impossible in single-wire communication. Furthermore, this method can be effectively applied to single-wire connections between hard drives and baseboard management controllers, improving communication reliability and accuracy.

在一种实施例中,将方波信号和第一脉宽信号进行编码,得到通信信号,包括:In one embodiment, encoding the square wave signal and the first pulse width signal to obtain a communication signal includes:

将至少两个方波信号分别插入至第一个数据位对应的脉宽之前和/或最后一个数据位对应的脉宽之后和/或任意两个数据位对应的脉宽之间,得到通信信号。At least two square wave signals are respectively inserted before the pulse width corresponding to the first data bit and/or after the pulse width corresponding to the last data bit and/or between the pulse widths corresponding to any two data bits to obtain a communication signal.

在这种实施例中,在将方波信号和第一脉宽信号进行编码,得到通信信号时,具体将至少两个方波信号分别插入到通信信号中的特定位置,如可以为第一个数据位对应的脉宽之前、最后一个数据位对应的脉宽之后,以及任意两个数据位对应的脉宽之间。In this embodiment, when encoding the square wave signal and the first pulse width signal to obtain a communication signal, at least two square wave signals are specifically inserted into specific positions in the communication signal, such as before the pulse width corresponding to the first data bit, after the pulse width corresponding to the last data bit, and between the pulse widths corresponding to any two data bits.

将方波信号与第一脉宽信号相结合,形成优化的通信信号结构。优化后的通信信号不仅包含了原始的方波信号和第一脉宽信号信息,还包含了额外插入的方波信号,使得传输的数据更加丰富和完整。The square wave signal is combined with the first pulse width signal to form an optimized communication signal structure. The optimized communication signal not only contains the original square wave signal and the first pulse width signal information, but also contains the additional inserted square wave signal, making the transmitted data richer and more complete.

如图4所示,数据信号包括表征数据传输开始的开始标志位、数据传输结束的结束标志位和待传输数据(包括多个数据位),可以将方波信号插入至待传输数据的第一个数据位之前和最后一个数据位之后,从而通过判断方波信号是否发生漂移,可以确定待传输数据整个传输过程中的时钟信号的准确性。方波信号的形状如图5所示。As shown in Figure 4, the data signal includes a start flag indicating the start of data transmission, an end flag indicating the end of data transmission, and the data to be transmitted (including multiple data bits). A square wave signal can be inserted before the first data bit and after the last data bit of the data to be transmitted. By determining whether the square wave signal drifts, the accuracy of the clock signal throughout the entire transmission process of the data to be transmitted can be determined. The shape of the square wave signal is shown in Figure 5.

基板管理控制器在接收到通信信号后,能够有效地解析其中的方波信号和第一脉宽信号,并根据这些信息来判断硬盘的时钟准确性。基板管理控制器更准确地评估硬盘时钟的准确性,从而提高系统整体的稳定性和可靠性。After receiving the communication signal, the baseboard management controller effectively analyzes the square wave signal and the first pulse width signal and uses this information to determine the hard drive clock accuracy. This allows the baseboard management controller to more accurately assess the hard drive clock accuracy, thereby improving the overall stability and reliability of the system.

在一种优选实施例中,两个方波信号的插入位置之间的时间间隔不小于预设时间间隔,或,两个方波信号的插入位置之间相隔数据位的个数不小于预设个数,以便于判断两个方波信号之间的时间段内时钟信号是否发生漂移。In a preferred embodiment, the time interval between the insertion positions of the two square wave signals is not less than a preset time interval, or the number of data bits between the insertion positions of the two square wave signals is not less than a preset number, so as to facilitate the determination of whether the clock signal drifts in the time period between the two square wave signals.

综上,本实施例进一步完善了硬盘时钟检测方法中通信信号的编码和解析过程,提高了系统对时钟准确性的评估能力,同时也增强了数据传输的可靠性和稳定性。In summary, this embodiment further improves the encoding and parsing process of the communication signal in the hard disk clock detection method, improves the system's ability to evaluate clock accuracy, and also enhances the reliability and stability of data transmission.

在一种实施例中,将各个数据位编码为和数据位一一对应的脉宽,得到第一脉宽信号,包括:In one embodiment, encoding each data bit into a pulse width corresponding to the data bit to obtain a first pulse width signal includes:

将各个数据位编码为和数据位一一对应的占空比的脉宽,得到第一脉宽信号,占空比与数据位之间呈第三映射关系。Each data bit is encoded into a pulse width with a duty cycle corresponding to the data bit one by one to obtain a first pulse width signal, and a third mapping relationship is formed between the duty cycle and the data bit.

本实施例描述了将各个数据位编码为和数据位一一对应的脉宽的步骤。具体来说,若将各个数据位采用数字进制为十六进制,即设置16种不同脉宽,可以对应0、1、2、3、4、5、6、7、8、9、A、B、C、D、E、F等十六进制中的十六个数字。然后,将每个十六进制编码与一个特定占空比的脉宽对应,即将0对应于一个特定占空比的脉宽,1对应于另一个占空比脉宽,以此类推(不同占空比的脉宽对应十六进制中不同的数据位),所有脉宽的组合为第一脉宽信号。通过以上编码步骤,就实现了将各个数据位编码为和数据位一一对应的脉宽信号,并且通过占空比的变化实现了对数据的传递。基板管理控制器端通过对占空比进行解析,可以得到对应的数据位,进而可以得到硬盘日志数据,实现对硬盘的监控。The present embodiment describes the step of encoding each data bit into a pulse width corresponding to a data bit. Specifically, if each data bit is digitized into hexadecimal, 16 different pulse widths are set, which can correspond to 16 digits in the hexadecimal systems such as 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, and F. Then, each hexadecimal encoding is corresponding to the pulse width of a specific duty cycle, i.e., 0 corresponds to the pulse width of a specific duty cycle, 1 corresponds to another duty cycle pulse width, and so on (the pulse width of different duty cycles corresponds to different data bits in hexadecimal), and the combination of all pulse widths is the first pulse width signal. By the above encoding step, it is achieved that each data bit is encoded into a pulse width signal corresponding to a data bit, and the transmission of data is achieved by the change of duty cycle. The baseboard management controller end can obtain corresponding data bits by resolving duty cycle, and then can obtain hard disk log data, realizes the monitoring of hard disk.

如,硬盘状态引脚为硬盘的指示灯引脚,在非预设状态下,输出指示信号以使指示灯闪烁时,则可以利用本实施例中的编码方式,此编码方式呈现的仍然为具有占空比的脉宽信号,从而还可以实现使得指示灯闪烁的功能。For example, the hard disk status pin is the indicator light pin of the hard disk. When it is in a non-preset state and outputs an indication signal to make the indicator light flash, the encoding method in this embodiment can be used. This encoding method still presents a pulse width signal with a duty cycle, thereby also realizing the function of making the indicator light flash.

综上,本申请中通过此种编码方式,可以将硬盘日志数据和硬盘状态信号进行编码,并通过硬盘状态引脚输出至基板管理控制器端,以使基板管理控制器可以对数据进行解析,以通过硬盘状态引脚实现对硬盘日志数据的获取以及硬盘状态信号的获取。In summary, in this application, through this encoding method, the hard disk log data and hard disk status signal can be encoded and output to the baseboard management controller through the hard disk status pin, so that the baseboard management controller can parse the data and obtain the hard disk log data and hard disk status signal through the hard disk status pin.

在一种实施例中,将各个数据位编码为和数据位一一对应的脉宽,得到第一脉宽信号,包括:In one embodiment, encoding each data bit into a pulse width corresponding to the data bit to obtain a first pulse width signal includes:

将各个数据位编码为和数据位对应的预设电平的脉宽,得到第一脉宽信号,预设电平的脉宽和数据位之间呈第四映射关系。Each data bit is encoded into a pulse width of a preset level corresponding to the data bit to obtain a first pulse width signal, and a fourth mapping relationship exists between the pulse width of the preset level and the data bit.

具体而言,本实施例中,将每个数据位编码为和数据位一一对应的预设电平的脉宽,得到第一脉宽信号。具体步骤可以包括:首先确定需要编码的数据位数量,例如将硬盘日志数据的各个数据位采用数字进制为十六进制,即设置16种不同脉宽,可以对应0、1、2、3、4、5、6、7、8、9、A、B、C、D、E、F等十六进制中的十六个数字。例如,可以在周期为100毫秒的矩形波信号中,设计脉宽在42毫秒~49毫秒、51毫秒~58毫秒,每隔1毫秒对应一个十六进制数据,即共16种脉宽对应十六进制中的十六个数字;根据具体需求,确定每个数据位对应的脉宽编码方式,逐个对每个数据位进行编码,可以是高电平或低电平的脉宽信号交替出现的方式,例如将数据0编码为第一宽度的高电平,数据1编码为第二宽度的低电平,以此类推;将编码后的每个数据位组合起来,形成完整的脉宽信号,以便后续的传输或处理。Specifically, in this embodiment, each data bit is encoded into a pulse width of a preset level corresponding to the data bit, thereby obtaining a first pulse width signal. Specific steps may include: first determining the number of data bits to be encoded, for example, by converting each data bit of the hard disk log data into hexadecimal, i.e., setting 16 different pulse widths 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, in a rectangular wave signal with a period of 100 milliseconds, the pulse width can be designed to be 42 milliseconds to 49 milliseconds and 51 milliseconds to 58 milliseconds, and every 1 millisecond corresponds to a hexadecimal data, that is, a total of 16 pulse widths correspond to the sixteen digits in hexadecimal; according to specific needs, the pulse width encoding method corresponding to each data bit is determined, and each data bit is encoded one by one. It can be a method in which high-level or low-level pulse width signals appear alternately, for example, data 0 is encoded as a high level of the first width, data 1 is encoded as a low level of the second width, and so on; each encoded data bit is combined to form a complete pulse width signal for subsequent transmission or processing.

也可以是将数据位全部编码为对应宽度的高电平或全部编码为对应宽度的低电平,通过在相邻两个数据位中插入相反电平来间隔数据位;例如,0编码为第一脉宽、1编码为第二脉宽、2编码为第三脉宽、3编码为第四脉宽。若第一脉宽至第四脉宽为高电平,则在相邻两个数据位之间插入一定宽度的低电平(用于间隔两个数据位);若第一脉宽至第四脉宽为低电平,则在相邻两个数据位之间插入一定宽度的高电平(用于间隔两个数据位)。数据位的组合不限于上述,编码方式也不限于上述举例。Alternatively, all data bits may be encoded as high levels of corresponding widths or low levels of corresponding widths, and the data bits may be spaced by inserting opposite levels between two adjacent data bits; for example, 0 is encoded as the first pulse width, 1 is encoded as the second pulse width, 2 is encoded as the third pulse width, and 3 is encoded as the fourth pulse width. If the first to fourth pulse widths are high levels, a low level of a certain width is inserted between the two adjacent data bits (to space the two data bits); if the first to fourth pulse widths are low levels, a high level of a certain width is inserted between the two adjacent data bits (to space the two data bits). The combination of data bits is not limited to the above, and the encoding method is not limited to the above examples.

如,硬盘状态引脚为硬盘的指示灯引脚,在非预设状态下,输出指示信号以使指示灯闪烁时,则可以利用本实施例中的编码方式,此编码方式呈现的仍然为具有高低电平组合形成的脉宽信号,从而还可以实现使得指示灯闪烁的功能。此时,方波基准频率设置为f=1/|t1-t2|,其中t1和t2为相邻两个数据位的脉宽,f为方波基准频率。For example, if the hard drive status pin is used as the hard drive indicator pin and outputs an indication signal to flash the indicator in a non-preset state, the encoding method of this embodiment can be used. This encoding method still presents a pulse width signal composed of a combination of high and low levels, thereby also achieving the function of flashing the indicator. In this case, the square wave reference frequency is set to f = 1/|t1-t2|, where t1 and t2 are the pulse widths of two adjacent data bits, and f is the square wave reference frequency.

综上,通过以上编码步骤,可以将各个数据位编码为相应的脉宽信号,以实现数据的传输和处理。In summary, through the above encoding steps, each data bit can be encoded into a corresponding pulse width signal to achieve data transmission and processing.

在一种实施例中,还包括:In one embodiment, it further includes:

在基板管理控制器判定硬盘的时钟不准确之后,接收基板管理控制器发送的反馈信号;After the baseboard management controller determines that the clock of the hard disk is inaccurate, receiving a feedback signal sent by the baseboard management controller;

基于反馈信号重新发送数据信号或通信信号。The data signal or the communication signal is resent based on the feedback signal.

本实施例中,一旦基板管理控制器判断硬盘的时钟不准确,它会发送一个反馈信号。接着,根据这个反馈信号,重新发送数据信号或通信信号。这个过程可以确保硬盘的时钟得到及时的校准,从而保证数据传输的准确性和稳定性。在这个实例中,基板管理控制器发挥了重要作用,它能够及时检测硬盘时钟的准确性,并发出相应的反馈信号。接收到反馈信号后,系统可以根据情况重新发送数据信号或通信信号,以确保硬盘时钟的准确性得到调整。这样一来,即使硬盘时钟出现偏差,也可以通过基板管理控制器及时进行校准和修正,确保数据传输的准确性和稳定性。In this embodiment, if the baseboard management controller determines that the hard drive clock is inaccurate, it sends a feedback signal. Then, based on this feedback signal, it resends the data signal or communication signal. This process ensures that the hard drive clock is calibrated in a timely manner, thereby ensuring the accuracy and stability of data transmission. In this example, the baseboard management controller plays a vital role by promptly detecting the accuracy of the hard drive clock and issuing the corresponding feedback signal. After receiving the feedback signal, the system can resend the data signal or communication signal as appropriate to ensure the accuracy of the hard drive clock. This way, even if the hard drive clock deviates, the baseboard management controller can promptly calibrate and correct it, ensuring the accuracy and stability of data transmission.

因为硬盘和基板管理控制器之间是单线连接,所以可以预先约定发送数据的时间,基板管理控制器在预设时间内发送反馈信号。一种约定时间方法是在系统中预先设定一个时间窗口,硬盘在该时间窗口内发送数据信号或通信信号。基板管理控制器在接收到数据信号或通信信号后,在预设的时间窗口内发送反馈信号。这样,硬盘和基板管理控制器可以在约定的时间内进行通信,确保数据传输的准确性和时效性。Because the hard drive and baseboard management controller (BMC) are connected via a single cable, the data transmission time can be pre-arranged, and the BMC will send a feedback signal within the preset time. One method for pre-arranging the time is to pre-set a time window in the system within which the hard drive sends data or communication signals. After receiving the data or communication signal, the BMC sends a feedback signal within the preset time window. This allows the hard drive and BMC to communicate within the agreed timeframe, ensuring accurate and timely data transmission.

综上,本实施例的方式可以有效保障硬盘时钟的准确性和数据传输的稳定性。In summary, the method of this embodiment can effectively ensure the accuracy of the hard disk clock and the stability of data transmission.

在一个具体实施例中,在发送端(硬盘端)的流程如图7所示:In a specific embodiment, the process at the sending end (hard disk end) is shown in FIG7 :

S71:开始;S72:发送通信请求;S73:发送时钟信号;S74:发送数据信号;S75:发送时钟信号;S76:发送数据结束标志;S77:等待基板管理控制器反馈的校验合格信号;S78:是否收到校验合格信号;若是,则进入S710,否则进入S79;S79:重新发送该数据信号;S710:结束。S71: Start; S72: Send communication request; S73: Send clock signal; S74: Send data signal; S75: Send clock signal; S76: Send data end mark; S77: Wait for the verification pass signal fed back by the baseboard management controller; S78: Whether the verification pass signal is received; if so, enter S710, otherwise enter S79; S79: Resend the data signal; S710: End.

在接收端(基板管理控制器端)的流程如图8所示:The process at the receiving end (baseboard management controller end) is shown in Figure 8:

S81:开始;S82:检测到通信请求信号;S83:记录时钟信号;S84:接收数据信号,并做数据解析处理;S85:记录时钟信号;S86:接收数据结束标志;S87:对比两次时钟信号的误差;S88:误差是否在预设范围内;若是,则进入S89,否则进入S810;S89:发送校验合格信号;S810:发送校验失败信号。S81: Start; S82: Detect communication request signal; S83: Record clock signal; S84: Receive data signal and perform data analysis; S85: Record clock signal; S86: Receive data end mark; S87: Compare the error between the two clock signals; S88: Is the error within the preset range? If so, enter S89, otherwise enter S810; S89: Send verification pass signal; S810: Send verification fail signal.

第三方面,本申请还提供了一种时钟检测系统,如图9所示,硬盘与基板管理控制器之间单线通信,时钟检测系统包括:In a third aspect, the present application further provides a clock detection system, as shown in FIG9 , wherein a single-line communication is performed between the hard disk and the baseboard management controller. The clock detection system includes:

编码单元91,用于将自身的时钟信号和数据信号进行编码,得到通信信号,数据信号为硬盘根据硬盘日志数据和硬盘状态引脚对应的硬盘状态信号调制得到的信号;The encoding unit 91 is used to encode its own clock signal and data signal to obtain a communication signal. The data signal is a signal modulated by the hard disk based on the hard disk log data and the hard disk status signal corresponding to the hard disk status pin;

发送单元92,用于将通信信号通过硬盘状态引脚发送至基板管理控制器,以使基板管理控制器对通信信号进行解析,得到时钟信号和数据信号,并基于时钟信号判断硬盘的时钟是否准确。The sending unit 92 is used to send the communication signal to the baseboard management controller through the hard disk status pin, so that the baseboard management controller analyzes the communication signal, obtains the clock signal and the data signal, and determines whether the hard disk clock is accurate based on the clock signal.

在一种实施例中,数据信号包括待传输数据和固定脉宽的标志信号,标志信号用于表征数据信号的当前传输进度,编码单元91,包括:In one embodiment, the data signal includes data to be transmitted and a flag signal with a fixed pulse width, and the flag signal is used to indicate the current transmission progress of the data signal. The encoding unit 91 includes:

第一编码单元,用于将自身当前的时钟频率编码至标志信号中;A first encoding unit, configured to encode its current clock frequency into a flag signal;

整合单元,用于将标志信号和待传输数据进行整合,得到通信信号;An integration unit, used for integrating the flag signal and the data to be transmitted to obtain a communication signal;

基板管理控制器对通信信号进行解析,得到时钟信号和数据信号,并基于时钟信号判断硬盘的时钟是否准确,包括:The baseboard management controller analyzes the communication signal to obtain the clock signal and data signal, and determines whether the hard disk clock is accurate based on the clock signal, including:

基板管理控制器对通信信号进行解析,获取至少两个标志信号和待传输数据;The baseboard management controller analyzes the communication signal to obtain at least two flag signals and data to be transmitted;

根据两个标志信号对应的脉宽判断硬盘的时钟是否准确。The accuracy of the hard disk clock is determined based on the pulse width corresponding to the two flag signals.

在一种实施例中,硬盘状态引脚在硬盘为预设状态下输出第一电平的控制信号;编码单元91,包括:In one embodiment, the hard disk status pin outputs a control signal of a first level when the hard disk is in a preset state; the encoding unit 91 includes:

脉冲插入单元,用于在控制信号中插入若干个预设宽度的第二电平的脉冲信号,以利用脉冲信号对控制信号进行分割,得到与各个数据位一一对应的第一电平的脉宽,数据信号包括多个数据位,第二电平与第一电平相反;a pulse inserting unit, configured to insert a plurality of pulse signals of a second level with a preset width into the control signal, so as to divide the control signal using the pulse signals to obtain pulse widths of the first level corresponding to respective data bits, wherein the data signal includes a plurality of data bits, and the second level is opposite to the first level;

第二编码单元,用于在将自身的时钟信号与多个第二电平的脉冲信号、多个第一电平的脉宽进行编码,得到通信信号。The second encoding unit is used to encode its own clock signal, a plurality of second-level pulse signals, and a plurality of first-level pulse widths to obtain a communication signal.

在一种实施例中,第二编码单元,具体用于将自身当前的时钟频率编码为预设宽度的第二电平的脉冲信号,时钟频率与预设宽度之间呈第一映射关系,通信信号包括多个预设宽度的第二电平的脉冲信号及多个第一电平的脉宽;In one embodiment, the second encoding unit is specifically configured to encode its current clock frequency into a pulse signal of a second level with a preset width, wherein the clock frequency and the preset width are in a first mapping relationship, and the communication signal includes a plurality of pulse signals of the second level with a preset width and a plurality of pulse widths of the first level;

基板管理控制器对通信信号进行解析,得到时钟信号和数据信号,并基于时钟信号判断硬盘的时钟是否准确,包括:The baseboard management controller analyzes the communication signal to obtain the clock signal and data signal, and determines whether the hard disk clock is accurate based on the clock signal, including:

基板管理控制器对通信信号进行解析,得到至少两个第二电平的脉冲信号和多个第一电平的脉宽;The baseboard management controller analyzes the communication signal to obtain at least two second-level pulse signals and a plurality of first-level pulse widths;

判断两个第二电平的脉冲信号的宽度差值是否在误差范围内;Determining whether a width difference between two second-level pulse signals is within an error range;

若在误差范围内,判定硬盘的时钟准确;If it is within the error range, the hard disk clock is determined to be accurate;

若不在误差范围内,判定硬盘的时钟不准确。If it is not within the error range, it is determined that the hard disk clock is inaccurate.

在一种实施例中,编码单元91,包括:In one embodiment, the encoding unit 91 includes:

第三编码单元,用于将自身当前的时钟频率编码为方波信号,且方波信号的频率与时钟频率之间呈第二映射关系;A third encoding unit is configured to encode its current clock frequency into a square wave signal, wherein the frequency of the square wave signal and the clock frequency are in a second mapping relationship;

方波插入单元,用于将方波信号插入至数据信号中,得到通信信号;A square wave insertion unit, used for inserting a square wave signal into a data signal to obtain a communication signal;

基板管理控制器对通信信号进行解析,得到时钟信号和数据信号,并基于时钟信号判断硬盘的时钟是否准确,包括:The baseboard management controller analyzes the communication signal to obtain the clock signal and data signal, and determines whether the hard disk clock is accurate based on the clock signal, including:

基板管理控制器对通信信号进行解析,得到方波信号和数据信号,并基于方波信号判断硬盘的时钟是否准确。The baseboard management controller analyzes the communication signal to obtain a square wave signal and a data signal, and determines whether the hard disk clock is accurate based on the square wave signal.

在一种实施例中,编码单元91,包括:In one embodiment, the encoding unit 91 includes:

第三编码单元,用于将自身当前的时钟频率编码为方波信号,且方波信号的频率与时钟频率之间呈第二映射关系;A third encoding unit is configured to encode its current clock frequency into a square wave signal, wherein the frequency of the square wave signal and the clock frequency are in a second mapping relationship;

第四编码单元,用于将各个数据位编码为和数据位一一对应的脉宽,得到第一脉宽信号,数据信号包括多个数据位,第一脉宽信号包括多个数据位对应的脉宽;a fourth encoding unit, configured to encode each data bit into a pulse width corresponding to the data bit one by one, to obtain a first pulse width signal, wherein the data signal includes a plurality of data bits, and the first pulse width signal includes pulse widths corresponding to the plurality of data bits;

第五编码单元,用于将方波信号和第一脉宽信号进行编码,得到通信信号;a fifth encoding unit, configured to encode the square wave signal and the first pulse width signal to obtain a communication signal;

基板管理控制器对通信信号进行解析,得到时钟信号和数据信号,并基于时钟信号判断硬盘的时钟是否准确,包括:The baseboard management controller analyzes the communication signal to obtain the clock signal and data signal, and determines whether the hard disk clock is accurate based on the clock signal, including:

基板管理控制器对通信信号进行解析,得到方波信号和第一脉宽信号,并基于方波信号判断硬盘的时钟是否准确。The baseboard management controller analyzes the communication signal to obtain a square wave signal and a first pulse width signal, and determines whether the hard disk clock is accurate based on the square wave signal.

在一种实施例中,第五编码单元,具体用于将至少两个方波信号分别插入至第一个数据位对应的脉宽之前和/或最后一个数据位对应的脉宽之后和/或任意两个数据位对应的脉宽之间,得到通信信号。In one embodiment, the fifth encoding unit is specifically used to insert at least two square wave signals before the pulse width corresponding to the first data bit and/or after the pulse width corresponding to the last data bit and/or between the pulse widths corresponding to any two data bits to obtain a communication signal.

在一种实施例中,第四编码单元,具体用于将各个数据位编码为和数据位一一对应的占空比的脉宽,得到第一脉宽信号,占空比与数据位之间呈第三映射关系。In one embodiment, the fourth encoding unit is specifically configured to encode each data bit into a pulse width with a duty cycle corresponding to the data bit one by one to obtain a first pulse width signal, and a third mapping relationship exists between the duty cycle and the data bit.

在一种实施例中,第四编码单元,具体用于将各个数据位编码为和数据位对应的预设电平的脉宽,得到第一脉宽信号,预设电平的脉宽和数据位之间呈第四映射关系。In one embodiment, the fourth encoding unit is specifically configured to encode each data bit into a pulse width of a preset level corresponding to the data bit to obtain a first pulse width signal, and a fourth mapping relationship exists between the pulse width of the preset level and the data bit.

在一种实施例中,还包括:In one embodiment, it further includes:

反馈单元,用于在基板管理控制器判定硬盘的时钟不准确之后,接收基板管理控制器发送的反馈信号;A feedback unit, configured to receive a feedback signal sent by the baseboard management controller after the baseboard management controller determines that the clock of the hard disk is inaccurate;

基于反馈信号重新发送数据信号或通信信号。The data signal or the communication signal is resent based on the feedback signal.

对于时钟检测系统的介绍请参照上述实施例,本申请在此不再赘述。For an introduction to the clock detection system, please refer to the above embodiments, which will not be described in detail in this application.

第四方面,本申请还提供了一种时钟检测系统,如图10所示,应用于基板管理控制器,基板管理控制器与硬盘之间单线通信,时钟检测系统包括:In a fourth aspect, the present application further provides a clock detection system, as shown in FIG10 , which is applied to a baseboard management controller, wherein the baseboard management controller communicates with the hard disk via a single line. The clock detection system includes:

接收单元101,用于接收硬盘通过硬盘状态引脚发送的通信信号,通信信号时硬盘根据数据信号和自身的时钟信号编码得到的信号;The receiving unit 101 is used to receive the communication signal sent by the hard disk through the hard disk status pin. The communication signal is a signal obtained by the hard disk according to the data signal and its own clock signal encoding;

解析单元102,用于对通信信号进行解析,得到时钟信号和数据信号;The parsing unit 102 is used to parse the communication signal to obtain a clock signal and a data signal;

判断单元103,用于基于时钟信号判断硬盘的时钟是否准确。The judgment unit 103 is configured to judge whether the hard disk clock is accurate based on the clock signal.

在一种实施例中,解析单元102,具体用于对通信信号进行解析,获取至少两个标志信号和待传输数据;数据信号包括待传输数据和固定脉宽的标志信号,标志信号用于表征数据信号的当前传输进度,硬盘将自身当前的时钟频率编码至标志信号中;In one embodiment, the parsing unit 102 is specifically configured to parse the communication signal to obtain at least two flag signals and data to be transmitted; the data signal includes the data to be transmitted and a flag signal with a fixed pulse width, the flag signal is used to represent the current transmission progress of the data signal, and the hard disk encodes its current clock frequency into the flag signal;

判断单元103,具体用于根据两个标志信号对应的脉宽判断硬盘的时钟是否准确。The judging unit 103 is specifically configured to judge whether the hard disk clock is accurate according to the pulse widths corresponding to the two flag signals.

在一种实施例中,判断单元103,具体用于判断两个标志信号对应的脉宽是否在标准脉宽的预设范围内,或,判断两个标志信号对应的脉宽之间的差值是否在误差范围内;若两个标志信号对应的脉宽在标准脉宽的预设范围内,或,差值在误差范围内,判定硬盘的时钟准确;若两个标志信号对应的脉宽不在标准脉宽的预设范围内,或,差值不在误差范围内,则判定硬盘的时钟不准确。In one embodiment, the judgment unit 103 is specifically used to judge whether the pulse widths corresponding to the two flag signals are within a preset range of the standard pulse width, or whether the difference between the pulse widths corresponding to the two flag signals is within an error range; if the pulse widths corresponding to the two flag signals are within the preset range of the standard pulse width, or the difference is within the error range, it is determined that the hard disk clock is accurate; if the pulse widths corresponding to the two flag signals are not within the preset range of the standard pulse width, or the difference is not within the error range, it is determined that the hard disk clock is inaccurate.

在一种实施例中,硬盘状态引脚在硬盘为预设状态下输出第一电平的控制信号,通过在控制信号中插入若干个预设宽度的第二电平的脉冲信号,以利用脉冲信号对控制信号进行分割,得到与各个数据位一一对应的第一电平的脉宽,将自身当前的时钟频率编码为预设宽度的第二电平的脉冲信号,根据预设宽度的第二电平的脉冲信号和多个第一电平的脉宽得到通信信号,数据信号包括多个数据位,第二电平与第一电平相反;In one embodiment, the hard disk status pin outputs a control signal of a first level when the hard disk is in a preset state, inserts a plurality of pulse signals of a second level with a preset width into the control signal, and uses the pulse signals to divide the control signal to obtain a pulse width of the first level corresponding to each data bit, encodes the current clock frequency of the hard disk into a pulse signal of the second level with a preset width, and obtains a communication signal based on the pulse signal of the second level with the preset width and the plurality of pulse widths of the first level, wherein the data signal includes a plurality of data bits, and the second level is opposite to the first level;

解析单元102,具体用于对通信信号进行解析,得到至少两个第二电平的脉冲信号和多个第一电平的脉宽;The analyzing unit 102 is specifically configured to analyze the communication signal to obtain at least two second-level pulse signals and a plurality of first-level pulse widths;

判断单元103,具体用于基于至少两个第二电平的脉冲信号判断硬盘的时钟是否准确。The judging unit 103 is specifically configured to judge whether the clock of the hard disk is accurate based on at least two pulse signals of the second level.

在一种实施例中,判断单元103,具体用于判断两个第二电平的脉冲信号的宽度差值是否在误差范围内;若在误差范围内,判定硬盘的时钟准确;若不在误差范围内,判定硬盘的时钟不准确。In one embodiment, the judgment unit 103 is specifically used to judge whether the width difference between the two second-level pulse signals is within an error range; if it is within the error range, it is determined that the hard disk clock is accurate; if it is not within the error range, it is determined that the hard disk clock is inaccurate.

在一种实施例中,解析单元102,具体用于对通信信号进行解析,得到方波信号和数据信号,方波信号的方波频率与硬盘的时钟频率之间呈第二映射关系;In one embodiment, the parsing unit 102 is specifically configured to parse the communication signal to obtain a square wave signal and a data signal, wherein a square wave frequency of the square wave signal and a clock frequency of the hard disk are in a second mapping relationship;

判断单元103,具体用于基于方波信号判断硬盘的时钟是否准确。The judgment unit 103 is specifically configured to judge whether the hard disk clock is accurate based on the square wave signal.

在一种实施例中,判断单元103,具体用于判断两个方波信号之间的频率差值是在预设频率范围内;若频率差值在预设频率范围内,判定硬盘的时钟准确;若频率差值不在预设频率范围内,判定硬盘的时钟不准确。In one embodiment, the judgment unit 103 is specifically used to determine whether the frequency difference between the two square wave signals is within a preset frequency range; if the frequency difference is within the preset frequency range, it is determined that the hard disk clock is accurate; if the frequency difference is not within the preset frequency range, it is determined that the hard disk clock is inaccurate.

在一种实施例中,还包括:In one embodiment, it further includes:

反馈发送单元,用于在判定硬盘的时钟不准确时,通过硬盘状态引脚向硬盘发送反馈信号,以触发硬盘重新传输数据信号或通信信号。The feedback sending unit is used to send a feedback signal to the hard disk through the hard disk status pin when it is determined that the hard disk clock is inaccurate, so as to trigger the hard disk to retransmit the data signal or communication signal.

对于时钟检测系统的介绍请参照上述实施例,本申请在此不再赘述。For an introduction to the clock detection system, please refer to the above embodiments, which will not be described in detail in this application.

第五方面,本申请还提供了一种电子设备,如图11所示,该电子设备包括:In a fifth aspect, the present application further provides an electronic device, as shown in FIG11 , comprising:

存储器111,用于存储计算机可读指令;Memory 111, for storing computer-readable instructions;

处理器112,用于在执行计算机可读指令时,实现如上述的时钟检测方法的步骤。The processor 112 is configured to implement the steps of the above-mentioned clock detection method when executing computer-readable instructions.

对于电子设备的介绍请参照上述实施例,本申请在此不再赘述。For an introduction to the electronic device, please refer to the above embodiments, and this application will not go into details here.

第六方面,本申请还提供了一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行时实现如上述的时钟检测方法的步骤。In a sixth aspect, the present application also provides one or more non-volatile computer-readable storage media storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors implement the steps of the clock detection method as described above.

对于计算机可读存储介质的介绍请参照上述实施例,本申请在此不再赘述。For an introduction to computer-readable storage media, please refer to the above embodiments, and this application will not go into details here.

第七方面,本申请还提供了一种服务器,包括硬盘、基板管理控制器,硬盘与基板管理控制器单线连接,且硬盘与基板管理控制器之间通过单线有且仅有一条传输通道;In a seventh aspect, the present application further provides a server, comprising a hard disk and a baseboard management controller, wherein the hard disk and the baseboard management controller are connected by a single line, and there is only one transmission channel between the hard disk and the baseboard management controller via the single line;

硬盘用于实现上述的应用于硬盘中的时钟检测方法的步骤;The hard disk is used to implement the steps of the above-mentioned clock detection method applied to the hard disk;

基板管理控制器用于实现上述的应用于基板管理控制器中的时钟检测方法的步骤。The baseboard management controller is used to implement the steps of the above-mentioned clock detection method applied to the baseboard management controller.

对于服务器的介绍请参照上述实施例,本申请在此不再赘述。For an introduction to the server, please refer to the above embodiment, and this application will not go into details here.

还需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的状况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、物品或者设备中还存在另外的相同要素。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 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 apparatus 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 apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element.

对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其他实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present application. Various modifications to these embodiments will be readily apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application is not limited to the embodiments shown herein, but is intended to conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims (23)

一种时钟检测方法,其特征在于,应用于基板管理控制器,所述基板管理控制器与硬盘之间单线通信,所述时钟检测方法包括:A clock detection method is characterized by being applied to a baseboard management controller, wherein the baseboard management controller communicates with a hard disk via a single line, and the clock detection method comprises: 接收所述硬盘通过硬盘状态引脚发送的通信信号,所述通信信号为所述硬盘根据数据信号和自身的时钟信号编码得到的信号,所述数据信号为所述硬盘根据硬盘日志数据和所述硬盘状态引脚对应的硬盘状态信号调制得到的信号;Receive a communication signal sent by the hard disk through the hard disk status pin, wherein the communication signal is a signal obtained by encoding the hard disk according to the data signal and its own clock signal, and the data signal is a signal obtained by modulating the hard disk according to the hard disk log data and the hard disk status signal corresponding to the hard disk status pin; 对所述通信信号进行解析,得到所述时钟信号和所述数据信号;和parsing the communication signal to obtain the clock signal and the data signal; and 基于所述时钟信号判断所述硬盘的时钟是否准确。It is determined whether the clock of the hard disk is accurate based on the clock signal. 如权利要求1所述的时钟检测方法,其特征在于,对所述通信信号进行解析,得到所述时钟信号和所述数据信号,包括:The clock detection method according to claim 1, wherein parsing the communication signal to obtain the clock signal and the data signal comprises: 对所述通信信号进行解析,获取至少两个标志信号和待传输数据;所述数据信号包括所述待传输数据和固定脉宽的标志信号,所述标志信号用于表征所述数据信号的当前传输进度,所述硬盘将自身当前的时钟频率编码至所述标志信号中;parsing the communication signal to obtain at least two flag signals and data to be transmitted; the data signal includes the data to be transmitted and a flag signal with a fixed pulse width, the flag signal is used to represent the current transmission progress of the data signal, and the hard disk encodes its current clock frequency into the flag signal; 基于所述时钟信号判断所述硬盘的时钟是否准确,包括:Determining whether the clock of the hard disk is accurate based on the clock signal includes: 根据两个所述标志信号对应的脉宽判断所述硬盘的时钟是否准确。Whether the hard disk clock is accurate is determined based on the pulse widths corresponding to the two flag signals. 如权利要求2所述的时钟检测方法,其特征在于,根据两个所述标志信号对应的脉宽判断所述硬盘的时钟是否准确,包括:The clock detection method according to claim 2, wherein determining whether the hard disk clock is accurate based on the pulse widths corresponding to the two flag signals comprises: 判断两个所述标志信号对应的脉宽是否在标准脉宽的预设范围内,或,判断两个所述标志信号对应的脉宽之间的差值是否在误差范围内;Determining whether the pulse widths corresponding to the two flag signals are within a preset range of a standard pulse width, or determining whether a difference between the pulse widths corresponding to the two flag signals is within an error range; 响应于两个所述标志信号对应的脉宽在所述标准脉宽的预设范围内,或,所述差值在所述误差范围内,判定所述硬盘的时钟准确;和In response to the pulse widths corresponding to the two flag signals being within a preset range of the standard pulse width, or the difference being within an error range, determining that the clock of the hard disk is accurate; and 响应于两个所述标志信号对应的脉宽不在所述标准脉宽的预设范围内,或,所述差值不在所述误差范围内,则判定所述硬盘的时钟不准确。In response to the pulse widths corresponding to the two flag signals not being within the preset range of the standard pulse width, or the difference not being within the error range, it is determined that the clock of the hard disk is inaccurate. 如权利要求2所述的时钟检测方法,其特征在于,所述硬盘状态引脚在所述硬盘为预设状态下输出第一电平的控制信号,通过在所述控制信号中插入若干个预设宽度的第二电平的脉冲信号,以利用所述脉冲信号对所述控制信号进行分割,得到与各个数据位一一对应的第一电平的脉宽,将自身当前的时钟频率编码为所述预设宽度的第二电平的脉冲信号,根据所述预设宽度的第二电平的脉冲信号和多个所述第一电平的脉宽得到所述通信信号,所述数据信号包括多个所述数据位,所述第二电平与所述第一电平相反;The clock detection method according to claim 2, characterized in that the hard disk status pin outputs a first-level control signal when the hard disk is in a preset state, inserts a plurality of second-level pulse signals of a preset width into the control signal, and uses the pulse signals to divide the control signal to obtain a first-level pulse width corresponding to each data bit, encodes its own current clock frequency into a second-level pulse signal of the preset width, and obtains the communication signal based on the second-level pulse signal of the preset width and the plurality of first-level pulse widths, wherein the data signal includes the plurality of data bits, and the second level is opposite to the first level; 对所述通信信号进行解析,得到所述时钟信号和所述数据信号,包括:Parsing the communication signal to obtain the clock signal and the data signal includes: 对所述通信信号进行解析,得到至少两个所述第二电平的脉冲信号和多个所述第一电平的脉宽;parsing the communication signal to obtain at least two pulse signals of the second level and a plurality of pulse widths of the first level; 基于所述时钟信号判断所述硬盘的时钟是否准确,包括:Determining whether the clock of the hard disk is accurate based on the clock signal includes: 基于至少两个所述第二电平的脉冲信号判断所述硬盘的时钟是否准确。Whether the clock of the hard disk is accurate is determined based on at least two pulse signals of the second level. 如权利要求4所述的时钟检测方法,其特征在于,基于至少两个所述第二电平的脉冲信号判断所述硬盘的时钟是否准确,包括:The clock detection method according to claim 4, wherein determining whether the hard disk clock is accurate based on at least two pulse signals of the second level comprises: 判断两个所述第二电平的脉冲信号的宽度差值是否在误差范围内;Determining whether a width difference between two pulse signals of the second level is within an error range; 响应于在所述误差范围内,判定所述硬盘的时钟准确;和In response to being within the error range, determining that the clock of the hard disk is accurate; and 响应于不在所述误差范围内,判定所述硬盘的时钟不准确。In response to the error not being within the error range, it is determined that the clock of the hard disk is inaccurate. 如权利要求1所述的时钟检测方法,其特征在于,对所述通信信号进行解析,得到所述时钟信号和所述数据信号,包括:The clock detection method according to claim 1, wherein parsing the communication signal to obtain the clock signal and the data signal comprises: 对所述通信信号进行解析,得到方波信号和所述数据信号,所述方波信号的方波频率与所述硬盘的时钟频率之间呈第二映射关系;parsing the communication signal to obtain a square wave signal and the data signal, wherein a square wave frequency of the square wave signal and a clock frequency of the hard disk are in a second mapping relationship; 基于所述时钟信号判断所述硬盘的时钟是否准确,包括:Determining whether the clock of the hard disk is accurate based on the clock signal includes: 基于所述方波信号判断所述硬盘的时钟是否准确。Whether the clock of the hard disk is accurate is determined based on the square wave signal. 如权利要求6所述的时钟检测方法,其特征在于,基于所述方波信号判断所述硬盘的时钟是否准确,包括:The clock detection method according to claim 6, wherein determining whether the hard disk clock is accurate based on the square wave signal comprises: 判断两个所述方波信号之间的频率差值是在预设频率范围内;Determining whether a frequency difference between the two square wave signals is within a preset frequency range; 响应于所述频率差值在所述预设频率范围内,判定所述硬盘的时钟准确;和In response to the frequency difference being within the preset frequency range, determining that the clock of the hard disk is accurate; and 响应于所述频率差值不在所述预设频率范围内,判定所述硬盘的时钟不准确。In response to the frequency difference not being within the preset frequency range, it is determined that the clock of the hard disk is inaccurate. 如权利要求1-7任一项所述的时钟检测方法,其特征在于,还包括:The clock detection method according to any one of claims 1 to 7, further comprising: 响应于判定所述硬盘的时钟不准确,通过所述硬盘状态引脚向所述硬盘和/或硬盘控制器发送反馈信号,以使所述硬盘重新传输所述数据信号或所述通信信号。In response to determining that the clock of the hard disk is inaccurate, a feedback signal is sent to the hard disk and/or hard disk controller via the hard disk status pin to enable the hard disk to retransmit the data signal or the communication signal. 一种时钟检测方法,其特征在于,应用于硬盘,所述硬盘与基板管理控制器之间单线通信,所述时钟检测方法包括:A clock detection method is characterized by being applied to a hard disk, wherein the hard disk communicates with a baseboard management controller via a single line, and the clock detection method comprises: 将自身的时钟信号和数据信号进行编码,得到通信信号,所述数据信号为所述硬盘根据硬盘日志数据和硬盘状态引脚对应的硬盘状态信号调制得到的信号;和Encoding its own clock signal and data signal to obtain a communication signal, wherein the data 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; and 将所述通信信号通过硬盘状态引脚发送至所述基板管理控制器,以使所述基板管理控制器对所述通信信号进行解析,得到所述时钟信号和所述数据信号,并基于所述时钟信号判断所述硬盘的时钟是否准确。The communication signal is sent to the baseboard management controller through the hard disk status pin, so that the baseboard management controller parses the communication signal to obtain the clock signal and the data signal, and determines whether the hard disk clock is accurate based on the clock signal. 如权利要求9所述的时钟检测方法,其特征在于,所述数据信号包括待传输数据和固定脉宽的标志信号,所述标志信号用于表征所述数据信号的当前传输进度,将自身的时钟信号和数据信号进行编码,得到通信信号,包括:The clock detection method according to claim 9, wherein the data signal includes data to be transmitted and a flag signal of a fixed pulse width, the flag signal is used to indicate the current transmission progress of the data signal, and encoding the clock signal and the data signal to obtain the communication signal comprises: 将自身当前的时钟频率编码至所述标志信号中;和Encoding its current clock frequency into the flag signal; and 将所述标志信号和所述待传输数据进行整合,得到所述通信信号;Integrating the flag signal and the data to be transmitted to obtain the communication signal; 所述基板管理控制器对所述通信信号进行解析,得到所述时钟信号和所述数据信号,并基于所述时钟信号判断所述硬盘的时钟是否准确,包括:The baseboard management controller analyzes the communication signal to obtain the clock signal and the data signal, and determines whether the clock of the hard disk is accurate based on the clock signal, including: 所述基板管理控制器对所述通信信号进行解析,获取至少两个所述标志信号和待传输数据;和The baseboard management controller parses the communication signal to obtain at least two of the flag signals and the data to be transmitted; and 根据两个所述标志信号对应的脉宽判断所述硬盘的时钟是否准确。Whether the hard disk clock is accurate is determined based on the pulse widths corresponding to the two flag signals. 如权利要求10所述的时钟检测方法,其特征在于,所述硬盘状态引脚在所述硬盘为预设状态下输出第一电平的控制信号;将自身的时钟信号和数据信号进行编码,得到通信信号,包括:The clock detection method according to claim 10, wherein the hard disk status pin outputs a control signal of a first level when the hard disk is in a preset state; and encoding the clock signal and the data signal thereof to obtain a communication signal comprises: 所述预设状态下,在所述控制信号中插入若干个预设宽度的第二电平的脉冲信号,以利用所述脉冲信号对所述控制信号进行分割,得到与各个数据位一一对应的第一电平的脉宽;所述数据信号包括多个所述数据位,所述第二电平与所述第一电平相反;和In the preset state, a plurality of pulse signals of a second level with a preset width are inserted into the control signal, so as to divide the control signal by using the pulse signals to obtain pulse widths of the first level corresponding to respective data bits; the data signal includes the plurality of data bits, and the second level is opposite to the first level; and 将自身的时钟信号与多个所述第二电平的脉冲信号、多个所述第一电平的脉宽进行编码,得到所述通信信号。The communication signal is obtained by encoding its own clock signal, a plurality of pulse signals of the second level, and a plurality of pulse widths of the first level. 如权利要求11所述的时钟检测方法,其特征在于,将自身的时钟信号与多个所述第二电平的脉冲信号、多个所述第一电平的脉宽进行编码,得到所述通信信号,包括:The clock detection method according to claim 11, wherein encoding the clock signal thereof with a plurality of pulse signals of the second level and a plurality of pulse widths of the first level to obtain the communication signal comprises: 将自身当前的时钟频率编码为所述预设宽度的第二电平的脉冲信号,所述时钟频率与所述预设宽度之间呈第一映射关系,所述通信信号包括多个所述预设宽度的第二电平的脉冲信号及多个所述第一电平的脉宽;Encoding its current clock frequency into a pulse signal of a second level of the preset width, wherein a first mapping relationship exists between the clock frequency and the preset width, and the communication signal includes a plurality of pulse signals of the second level of the preset width and a plurality of pulse widths of the first level; 所述基板管理控制器对所述通信信号进行解析,得到所述时钟信号和所述数据信号,并基于所述时钟信号判断所述硬盘的时钟是否准确,包括:The baseboard management controller analyzes the communication signal to obtain the clock signal and the data signal, and determines whether the clock of the hard disk is accurate based on the clock signal, including: 所述基板管理控制器对所述通信信号进行解析,得到至少两个所述第二电平的脉冲信号和多个所述第一电平的脉宽;The baseboard management controller analyzes the communication signal to obtain at least two pulse signals of the second level and a plurality of pulse widths of the first level; 判断两个所述第二电平的脉冲信号的宽度差值是否在误差范围内;Determining whether a width difference between two pulse signals of the second level is within an error range; 响应于在所述误差范围内,判定所述硬盘的时钟准确;和In response to being within the error range, determining that the clock of the hard disk is accurate; and 响应于不在所述误差范围内,判定所述硬盘的时钟不准确。In response to the error not being within the error range, it is determined that the clock of the hard disk is inaccurate. 如权利要求9所述的时钟检测方法,其特征在于,将自身的时钟信号和数据信号进行编码,得到通信信号,包括:The clock detection method according to claim 9, wherein encoding the clock signal and the data signal to obtain the communication signal comprises: 将自身当前的时钟频率编码为方波信号,且所述方波信号的频率与时钟频率之间呈第二映射关系;和Encoding its current clock frequency into a square wave signal, wherein a second mapping relationship exists between the frequency of the square wave signal and the clock frequency; and 将所述方波信号插入至所述数据信号中,得到所述通信信号;inserting the square wave signal into the data signal to obtain the communication signal; 所述基板管理控制器对所述通信信号进行解析,得到所述时钟信号和所述数据信号,并基于所述时钟信号判断所述硬盘的时钟是否准确,包括:The baseboard management controller analyzes the communication signal to obtain the clock signal and the data signal, and determines whether the clock of the hard disk is accurate based on the clock signal, including: 所述基板管理控制器对所述通信信号进行解析,得到所述方波信号和所述数据信号,并基于所述方波信号判断所述硬盘的时钟是否准确。The baseboard management controller analyzes the communication signal to obtain the square wave signal and the data signal, and determines whether the clock of the hard disk is accurate based on the square wave signal. 如权利要求9所述的时钟检测方法,其特征在于,将自身的时钟信号和数据信号进行编码,得到通信信号,包括:The clock detection method according to claim 9, wherein encoding the clock signal and the data signal to obtain the communication signal comprises: 将自身当前的时钟频率编码为方波信号,且所述方波信号的频率与时钟频率之间呈第二映射关系;Encoding its current clock frequency into a square wave signal, wherein a second mapping relationship exists between the frequency of the square wave signal and the clock frequency; 将各个数据位编码为和所述数据位一一对应的脉宽,得到第一脉宽信号,所述数据信号包括多个所述数据位,所述第一脉宽信号包括多个所述数据位对应的脉宽;和Encoding each data bit into a pulse width corresponding to the data bit one by one to obtain a first pulse width signal, wherein the data signal includes a plurality of the data bits, and the first pulse width signal includes pulse widths corresponding to the plurality of the data bits; and 将所述方波信号和所述第一脉宽信号进行编码,得到所述通信信号;Encoding the square wave signal and the first pulse width signal to obtain the communication signal; 所述基板管理控制器对所述通信信号进行解析,得到所述时钟信号和所述数据信号,并基于所述时钟信号判断所述硬盘的时钟是否准确,包括:The baseboard management controller analyzes the communication signal to obtain the clock signal and the data signal, and determines whether the clock of the hard disk is accurate based on the clock signal, including: 所述基板管理控制器对所述通信信号进行解析,得到所述方波信号和所述第一脉宽信号,并基于所述方波信号判断所述硬盘的时钟是否准确。The baseboard management controller analyzes the communication signal to obtain the square wave signal and the first pulse width signal, and determines whether the clock of the hard disk is accurate based on the square wave signal. 如权利要求14所述的时钟检测方法,其特征在于,将所述方波信号和所述第一脉宽信号进行编码,得到所述通信信号,包括:The clock detection method according to claim 14, wherein encoding the square wave signal and the first pulse width signal to obtain the communication signal comprises: 将至少两个所述方波信号分别插入至第一个数据位对应的脉宽之前和/或最后一个数据位对应的脉宽之后和/或任意两个数据位对应的脉宽之间,得到所述通信信号。The communication signal is obtained by inserting at least two of the square wave signals before the pulse width corresponding to the first data bit and/or after the pulse width corresponding to the last data bit and/or between the pulse widths corresponding to any two data bits. 如权利要求14所述的时钟检测方法,其特征在于,将各个数据位编码为和所述数据位一一对应的脉宽,得到第一脉宽信号,包括:The clock detection method according to claim 14, wherein encoding each data bit into a pulse width corresponding to the data bit to obtain the first pulse width signal comprises: 将各个数据位编码为和所述数据位一一对应的占空比的脉宽,得到所述第一脉宽信号,所述占空比与所述数据位之间呈第三映射关系。Each data bit is encoded into a pulse width with a duty cycle corresponding to the data bit one by one to obtain the first pulse width signal, and a third mapping relationship is formed between the duty cycle and the data bit. 如权利要求14所述的时钟检测方法,其特征在于,将各个数据位编码为和所述数据位一一对应的脉宽,得到第一脉宽信号,包括:The clock detection method according to claim 14, wherein encoding each data bit into a pulse width corresponding to the data bit to obtain the first pulse width signal comprises: 将各个所述数据位编码为和所述数据位对应的预设电平的脉宽,得到所述第一脉宽信号,所述预设电平的脉宽和所述数据位之间呈第四映射关系。Each of the data bits is encoded into a pulse width of a preset level corresponding to the data bit to obtain the first pulse width signal, and a fourth mapping relationship is formed between the pulse width of the preset level and the data bit. 如权利要求9-17任一项所述的时钟检测方法,其特征在于,还包括:The clock detection method according to any one of claims 9 to 17, further comprising: 在所述基板管理控制器判定所述硬盘的时钟不准确之后,接收所述基板管理控制器发送的反馈信号;和After the baseboard management controller determines that the clock of the hard disk is inaccurate, receiving a feedback signal sent by the baseboard management controller; and 基于所述反馈信号重新发送所述数据信号或所述通信信号。The data signal or the communication signal is resent based on the feedback signal. 一种时钟检测系统,其特征在于,应用于基板管理控制器,所述基板管理控制器与硬盘之间单线通信,所述时钟检测系统包括:A clock detection system is characterized by being applied to a baseboard management controller, wherein the baseboard management controller communicates with a hard disk via a single line, and the clock detection system comprises: 接收单元,用于接收所述硬盘通过硬盘状态引脚发送的通信信号,所述通信信号时所述硬盘根据数据信号和自身的时钟信号编码得到的信号;a receiving unit, configured to receive a communication signal sent by the hard disk through a hard disk status pin, wherein the communication signal is a signal obtained by encoding the hard disk according to the data signal and its own clock signal; 解析单元,用于对所述通信信号进行解析,得到所述时钟信号和所述数据信号;和a parsing unit, configured to parse the communication signal to obtain the clock signal and the data signal; and 判断单元,用于基于所述时钟信号判断所述硬盘的时钟是否准确。A judging unit is configured to judge whether the clock of the hard disk is accurate based on the clock signal. 一种时钟检测系统,其特征在于,硬盘与基板管理控制器之间单线通信,所述时钟检测系统包括:A clock detection system, characterized in that a hard disk and a baseboard management controller communicate with each other via a single line, the clock detection system comprising: 编码单元,用于将自身的时钟信号和数据信号进行编码,得到通信信号,所述数据信号为所述硬盘根据硬盘日志数据和硬盘状态引脚对应的硬盘状态信号调制得到的信号;和An encoding unit, configured to encode its own clock signal and data signal to obtain a communication signal, wherein the data 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; and 发送单元,用于将所述通信信号通过硬盘状态引脚发送至所述基板管理控制器,以使所述基板管理控制器对所述通信信号进行解析,得到所述时钟信号和所述数据信号,并基于所述时钟信号判断所述硬盘的时钟是否准确。The sending unit is used to send the communication signal to the baseboard management controller through the hard disk status pin, so that the baseboard management controller parses the communication signal, obtains the clock signal and the data signal, and determines whether the hard disk clock is accurate based on the clock signal. 一种电子设备,其特征在于,包括:An electronic device, comprising: 存储器,用于存储计算机可读指令;a memory for storing computer-readable instructions; 处理器,用于在执行所述计算机可读指令时,实现如权利要求1-8任一项所述的时钟检测方法的步骤或如权利要求9-18任一项所述的时钟检测方法的步骤。A processor, configured to implement the steps of the clock detection method according to any one of claims 1 to 8 or the steps of the clock detection method according to any one of claims 9 to 18 when executing the computer-readable instructions. 一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行时实现如权利要求1-8任一项所述的时钟检测方法的步骤或如权利要求9-18任一项所述的时钟检测方法的步骤。One or more non-volatile computer-readable storage media storing computer-readable instructions, wherein when the computer-readable instructions are executed by one or more processors, the one or more processors implement the steps of the clock detection method according to any one of claims 1 to 8 or the steps of the clock detection method according to any one of claims 9 to 18. 一种服务器,其特征在于,包括硬盘、基板管理控制器,所述硬盘与基板管理控制器单线连接,且所述硬盘与所述基板管理控制器之间通过单线有且仅有一条传输通道;A server, characterized in that it includes a hard disk and a baseboard management controller, wherein the hard disk is connected to the baseboard management controller by a single line, and there is only one transmission channel between the hard disk and the baseboard management controller through the single line; 所述基板管理控制器用于实现如权利要求1-8任一项所述的时钟检测方法的步骤,所述硬盘用于实现如权利要求9-18任一项所述的时钟检测方法的步骤。The baseboard management controller is used to implement the steps of the clock detection method according to any one of claims 1 to 8, and the hard disk is used to implement the steps of the clock detection method according to any one of claims 9 to 18.
PCT/CN2025/070160 2024-03-29 2025-01-02 Clock detection method and system, device, medium, and server Pending WO2025200699A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202410382840.2A CN117971614B (en) 2024-03-29 2024-03-29 Clock detection method, system, equipment, medium and server
CN202410382840.2 2024-03-29

Publications (1)

Publication Number Publication Date
WO2025200699A1 true WO2025200699A1 (en) 2025-10-02

Family

ID=90853848

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2025/070160 Pending WO2025200699A1 (en) 2024-03-29 2025-01-02 Clock detection method and system, device, medium, and server

Country Status (2)

Country Link
CN (1) CN117971614B (en)
WO (1) WO2025200699A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117971614B (en) * 2024-03-29 2024-06-07 苏州元脑智能科技有限公司 Clock detection method, system, equipment, medium and server

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9628255B1 (en) * 2015-12-18 2017-04-18 Integrated Device Technology, Inc. Methods and apparatus for transmitting data over a clock signal
CN111506468A (en) * 2019-01-30 2020-08-07 深圳富桂精密工业有限公司 Hard disk state monitoring system and method
CN117971614A (en) * 2024-03-29 2024-05-03 苏州元脑智能科技有限公司 A clock detection method, system, device, medium and server

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117251333A (en) * 2023-09-26 2023-12-19 浪潮(山东)计算机科技有限公司 A hard disk information acquisition method, device, equipment and storage medium
CN117349212A (en) * 2023-09-28 2024-01-05 浪潮(山东)计算机科技有限公司 Server main board and solid state disk insertion detection method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9628255B1 (en) * 2015-12-18 2017-04-18 Integrated Device Technology, Inc. Methods and apparatus for transmitting data over a clock signal
CN111506468A (en) * 2019-01-30 2020-08-07 深圳富桂精密工业有限公司 Hard disk state monitoring system and method
CN117971614A (en) * 2024-03-29 2024-05-03 苏州元脑智能科技有限公司 A clock detection method, system, device, medium and server

Also Published As

Publication number Publication date
CN117971614A (en) 2024-05-03
CN117971614B (en) 2024-06-07

Similar Documents

Publication Publication Date Title
CN108304299A (en) Server power-up state monitors system and method, computer storage and equipment
CN117971610B (en) Hard disk monitoring method, device, system, equipment and storage medium
WO2025200699A1 (en) Clock detection method and system, device, medium, and server
CN120474904B (en) Switch chip fault analysis method and device
CN117971608B (en) Method, device, equipment and medium for acquiring and sending hard disk logs
US8065571B2 (en) Storage area network (SAN) link integrity tester
CN101667953B (en) Method and device for reporting physical link state of fast ring network
CN108363477A (en) Server power-up state monitors system and method, computer storage and equipment
CN117971613B (en) Hard disk monitoring system, method, device, storage medium and baseboard management controller
CN112579366B (en) Hard disk in-place detection system
CN117971607B (en) Hard disk monitoring method, device, equipment and medium
CN105825641A (en) Service alarm method and apparatus
CN108304290A (en) Server power-up state monitors system and method, computer storage and equipment
CN117971609A (en) Demodulation circuit and server
CN118316837A (en) Test method for high-speed serial communication interconnection standard link state and plug-in card module
CN116860341A (en) Equipment identification method, device and medium under same bus
CN115599721A (en) Port switching method, system, computing device and chip
CN113869108B (en) A method and related device for identifying equipment connected to a hard disk backplane
CN117896238A (en) A link failure early warning method and server for a fiber channel bus adapter
US20090094489A1 (en) System, method and apparatus for tracing source of transmission error
CN115934616A (en) Serial port information preservation method, device, server, electronic equipment and storage medium
CN120832261B (en) Fault detection method and chip, storage medium and electronic equipment
CN117806861A (en) Error recording method and device for PCIe terminal equipment, electronic equipment and medium
CN115982087B (en) Signal transmission method, computer device and storage medium
CN120729731B (en) System, method, equipment, medium and product for distributing interconnection bandwidth of high-speed peripheral components

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 25779219

Country of ref document: EP

Kind code of ref document: A1