Server state monitoring method and system based on CPLD (Complex Programmable Logic Device)

Through the communication between CPLD and the host computer platform, the adaptive data signal type is selected and data processing is carried out, which solves the problem of difficult server status signal positioning in the prior art, and achieves the effect of quickly discovering server abnormalities.

CN120540938APending Publication Date: 2025-08-26HUNAN TONGYOU FEIJI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510666308.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-22
Publication Date
2025-08-26

AI Technical Summary

Technical Problem

In the prior art, it is difficult to accurately locate the fault when testing the server status signal through an oscilloscope, resulting in the inability to detect server abnormalities in time.

Method used

Communication is constructed with the host computer platform through CPLD, the adaptive data signal type is selected, data frame and cross-clock domain processing are performed, and data packets are sent to the host computer platform for analysis and outlier judgment.

Benefits of technology

It realizes rapid positioning of abnormalities in server status monitoring data, timely discovers server failures, and improves the accuracy and efficiency of fault location.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120540938A_ABST
    Figure CN120540938A_ABST
Patent Text Reader

Abstract

The invention discloses a server state monitoring method and system based on a CPLD (Complex Programmable Logic Device), and the method comprises the steps: S1, receiving a control instruction sent by an upper computer platform, analyzing the control instruction, selecting a data signal type matched with a communication mode between the CPLD and the upper computer platform, and recording the data signal type as a selected type; meanwhile, obtaining a server state monitoring data signal of a corresponding selected type according to the control instruction; s2, performing data framing and clock domain crossing processing on the selected type of data signal to obtain a data packet; and S3, sending a data packet to an upper computer platform, so that the upper computer platform analyzes the data packet, positions the server state monitoring data, and judges an abnormal value of the server state monitoring data. According to the method and the device, the server state monitoring data can be quickly positioned, and the server fault can be timely found.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of server status monitoring, and in particular to a server status monitoring method and system. Background Art

[0002] With the rapid development of information technology, servers, as the core equipment of data centers, are becoming increasingly important in terms of stability and reliability. Server status monitoring is a key step in ensuring stable server operation, enabling timely detection of potential failures, preventing system crashes, and minimizing economic losses.

[0003] CPLD has the advantages of flexibility, high efficiency, versatility and low cost. In engineering, CPLD is generally used for server status monitoring, power management, signal conditioning and interface expansion, hardware fault diagnosis and repair, system startup and initialization, and custom logic control.

[0004] In existing technology, CPLD signals are tested with an oscilloscope during debugging to obtain server status monitoring signals. However, server hardware systems are very large, with complex signal crosstalk. Furthermore, server hardware boards are large, making it difficult to accurately locate and obtain server status signals using an oscilloscope during debugging. When these signals exhibit anomalies, accurately locating the problem is challenging, making it difficult to promptly detect server fault information. Summary of the Invention

[0005] Based on this, in order to solve the above technical problems, a server status monitoring method and system based on CPLD are provided to facilitate the accurate positioning of server status monitoring signals.

[0006] In a first aspect, a server status monitoring method based on CPLD is provided, the method comprising:

[0007] Step S1: receiving a control instruction sent by a host computer platform, parsing the control instruction, selecting a data signal type that is compatible with the communication method between the CPLD and the host computer platform, and recording it as a selected type; and simultaneously obtaining a server status monitoring data signal corresponding to the selected type according to the control instruction;

[0008] Step S2: performing data framing and cross-clock domain processing on the server status monitoring data signal of the selected type to obtain a data packet;

[0009] Step S3: Send the data packet to the host computer platform, so that the host computer platform parses the data packet, locates the server status monitoring data, and performs abnormal value judgment on the server status monitoring data.

[0010] In the above solution, optionally, the communication mode between the CPLD and the host computer platform is UART.

[0011] In the above solution, optionally, the cross-clock domain processing includes:

[0012] The read and write clocks of the FIFO are controlled and adjusted to match the selected data signal rate and the baud rate of the communication mode between the CPLD and the host computer platform.

[0013] In the above solution, optionally, before receiving the control instruction sent by the host computer platform, the method further includes:

[0014] The data transmission mode parameters between the CPLD and the host computer platform and the server card board CPLD signal information are sent to the host computer platform so that the host computer platform can be configured.

[0015] In the above solution, optionally, if no new control instruction or no stop monitoring instruction is received, and the data signal of the selected type is updated in the CPLD, steps S2 to S3 are repeated for the updated data signal of the selected type.

[0016] In the above solution, optionally, if a new control instruction is received, steps S1 to S3 are repeated.

[0017] In the above solution, optionally, performing data framing on the selected type of data signal includes:

[0018] The data signal of the selected type is added to the frame header, the frame trailer and the identifier.

[0019] In a second aspect, a server status monitoring system based on CPLD is provided, the system comprising:

[0020] Data signal type selection module: used to receive control instructions sent by the host computer platform, parse the control instructions, select the data signal type that is compatible with the communication method between the CPLD and the host computer platform, and record it as the selected type; at the same time, obtain the server status monitoring data signal corresponding to the selected type according to the control instructions;

[0021] Data processing module: used for performing data framing and cross-clock domain processing on the selected type of server status monitoring data signal to obtain a data packet;

[0022] Data sending module: used to send the data packet to the host computer platform so that the host computer platform can parse the data packet, locate the server status monitoring data, and judge the abnormal value of the server status monitoring data.

[0023] In a third aspect, a computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the CPLD-based server status monitoring method described in the first aspect are implemented.

[0024] In a fourth aspect, a computer program product includes a computer program / instruction, which, when executed by a processor, implements the steps of the CPLD-based server status monitoring method described in the first aspect.

[0025] This application has at least the following beneficial effects:

[0026] This application establishes communication between a host computer and a CPLD, enabling the host computer platform to send control instructions to the CPLD, which then parses the control instructions and selects a data type from the CPLD that matches the communication method between the CPLD and the host computer platform. Simultaneously, based on the control instructions, a server status monitoring data signal corresponding to the selected type is obtained, and data framing and cross-clock domain processing are performed on the selected server status monitoring data signal to obtain a data packet. The data packet is then sent to the host computer platform, which parses the data packet and determines abnormal values ​​in the server status monitoring data. This allows for rapid location of server status monitoring data and timely detection of anomalies in the server monitoring data. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 A flow chart of a CPLD-based server status monitoring method provided in one embodiment of the present application;

[0028] Figure 2 A diagram illustrating the module interaction between the CPLD and the host computer platform provided in one embodiment of the present application;

[0029] Figure 3 This is a specific flow chart of a CPLD-based server status monitoring method in one embodiment of the present application. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0031] In one embodiment, Figure 1 and Figure 2 As shown, a server status monitoring method based on CPLD is provided, the method comprising:

[0032] Step S1: Receive a control instruction sent by the host computer platform, parse the control instruction, select a data signal type that is compatible with the communication method between the CPLD and the host computer platform, and record it as the selected type; and simultaneously obtain a server status monitoring data signal corresponding to the selected type according to the control instruction.

[0033] In step S1, the present application sets the communication mode between the CPLD and the host computer platform to be UART. Therefore, the CPLD has a UART sending module and a UART receiving module. The UART receiving module receives the control instructions of the host computer platform.

[0034] At the same time, the CPLD also has an instruction parsing module for parsing control commands and selecting UART type data.

[0035] Step S2: performing data framing and cross-clock domain processing on the server status monitoring data signal of the selected type to obtain a data packet.

[0036] In step S2, the data of the selected UART type is framed, and then cross-clock domain processing is performed through FIFO to achieve matching with the UART baud rate, and the corresponding data packet is sent to the host computer platform through the UART sending module.

[0037] Step S3: Send the data packet to the host computer platform, so that the host computer platform parses the data packet, locates the server status monitoring data, and performs abnormal value judgment on the server status monitoring data.

[0038] In step S3, the host computer parses the sent data packet, locates the server status monitoring data, compares the received signal with the preset correct value, and records the status of the abnormal signal and the time of occurrence.

[0039] In this embodiment, when the server is turned on, the CPLD will start the corresponding work. In order to know the status and changes of the corresponding signals inside the CPLD, the main design structure of the CPLD status monitoring system is shown in the figure above. The CPLD and the host computer display and control platform transmit and control data through UART. The host computer platform sends a control command to the CPLD to obtain the required signal data; the CPLD performs corresponding instruction parsing according to the control command, selects the corresponding signal for data framing, and then performs cross-clock domain processing through FIFO to achieve matching with the UART baud rate, and sends the corresponding data packet to the host computer platform through UART, which is displayed on the host computer platform and monitored and analyzed. The specific implementation steps are as follows:

[0040] (1) Due to the limited data transmission speed of UART, the internal signal status of CPLD is grouped according to the signal interface type and signal function, such as IIC data, UART data, I / O signal, etc.

[0041] (2) CPLD data processing and control. This is mainly divided into three submodules: instruction parsing, data framing, and FIFO modules. The instruction parsing module selects the signal to be sent according to the control command, controls the signal framing method, and controls the FIFO. The data framing module frames the signal according to the characteristics of the signal to be transmitted, so that the host computer platform can distinguish different types of data. The FIFO module performs data caching and cross-clock domain processing to prevent data loss.

[0042] (3) CPLD UART module. It is mainly used to receive commands from the host computer platform and send data packets.

[0043] (4) Host computer platform. The main functions include parameter and preset state value input, control command input, visual interface design, UART command sending and data receiving, data analysis and display, and signal abnormality status recording.

[0044] In the aforementioned CPLD-based server status monitoring method, communication is established between a host computer and the CPLD, allowing the host computer platform to send control instructions to the CPLD. The CPLD parses the control instructions and selects a data type in the CPLD that matches the communication method between the CPLD and the host computer platform. Simultaneously, a server status monitoring data signal corresponding to the selected type is obtained based on the control instructions. The selected server status monitoring data signal is framed and processed across clock domains to obtain a data packet. The data packet is then sent to the host computer platform, which parses the data packet and determines abnormal values ​​in the server status monitoring data. This allows for rapid location of server status monitoring data and timely detection of anomalies in the server monitoring data.

[0045] In one embodiment, the cross-clock domain processing includes:

[0046] The read and write clocks of the FIFO are controlled and adjusted to match the selected data signal rate and the baud rate of the communication mode between the CPLD and the host computer platform.

[0047] In one embodiment, before receiving the control instruction sent by the host computer platform, the method further includes:

[0048] The data transmission mode parameters between the CPLD and the host computer platform and the server card board CPLD signal information are sent to the host computer platform so that the host computer platform can be configured.

[0049] In one embodiment, if no new control instruction is received or no stop monitoring instruction is received, and the data signal of the selected type is updated in the CPLD, steps S2 to S3 are repeated for the updated data signal of the selected type.

[0050] In one embodiment, if a new control instruction is received, steps S1 to S3 are repeated.

[0051] In one embodiment, performing data framing on the selected type of data signal includes: adding a frame header, a frame trailer, and an identifier to the selected type of data signal.

[0052] Specifically, if Figure 3 ,The server status monitoring method based on CPLD is implemented as follows:

[0053] Step 1: The server is powered on, the CPLD starts working, and the signal monitoring system module waits to receive instructions from the host computer platform; the host computer software starts and connects to the CPLD through the UART driver circuit;

[0054] Step 2: Configure the host computer platform related parameters, including UART parameter information and corresponding server board CPLD signal information, and turn on UART;

[0055] Step 3: Enter the corresponding command into the host computer's sending command box, click Send, and send the command through the host computer's UART sending function;

[0056] Step 4: The UART receiving module of the CPLD receives the instruction and parses the instruction information, controls the corresponding signal to be framed, adds the frame header, frame footer and identifier, and controls and adjusts the read and write clock of the FIFO to match the signal rate and the baud rate of the UART;

[0057] Step 5: The UART sending module of CPLD sends the data packet;

[0058] Step 6: After receiving the data sent by the CPLD, the host computer platform parses the data packet, displays the signal in a graphical form, compares the received signal with the preset correct value, and records the status of the abnormal signal and the time of occurrence.

[0059] If there is no new instruction or monitoring is stopped, steps 5 and 6 will be repeated; if a new instruction is sent, steps 3 to 6 will be repeated.

[0060] In one embodiment, a CPLD-based server status monitoring system includes:

[0061] Data signal type selection module: used to receive control instructions sent by the host computer platform, parse the control instructions, select the data signal type that is compatible with the communication method between the CPLD and the host computer platform, and record it as the selected type; at the same time, obtain the server status monitoring data signal corresponding to the selected type according to the control instructions;

[0062] Data processing module: used for performing data framing and cross-clock domain processing on the selected type of server status monitoring data signal to obtain a data packet;

[0063] Data sending module: used to send the data packet to the host computer platform so that the host computer platform can parse the data packet, locate the server status monitoring data, and judge the abnormal value of the server status monitoring data.

[0064] The core point of this application is to add a signal monitoring system module inside the CPLD and develop a host computer display and control platform to form a CPLD-based server status monitoring system. This system allows users to obtain internal signals of the CPLD at any time and continuously and monitor and analyze them, making it easy to locate problems.

[0065] The specific definition of a CPLD-based server status monitoring system can be found in the definition of a CPLD-based server status monitoring method described above and will not be repeated here. Each module in the aforementioned CPLD-based server status monitoring system can be implemented in whole or in part through software, hardware, or a combination thereof. Each of the aforementioned modules can be embedded in or independent of a processor in a computer device in hardware form, or can be stored in a memory in the computer device in software form, so that the processor can call and execute the corresponding operations of each of the aforementioned modules.

[0066] In one embodiment, a computer device is provided, which may be a server. The computer device includes a processor, a memory, and a network interface connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal via a network connection. When executed by the processor, the computer program implements the above-mentioned CPLD-based server status monitoring method.

[0067] In one embodiment, a computer program product is further provided, including a computer program / instruction. When the computer program / instruction is executed by a processor, the computer program / instruction involves all or part of the process in the above embodiment method.

[0068] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0069] The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0070] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art could make various modifications and improvements without departing from the spirit of the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.

Claims

1. A server status monitoring method based on CPLD, characterized in that: The method comprises: Step S1: receiving a control instruction sent by a host computer platform, parsing the control instruction, selecting a data signal type that is compatible with the communication method between the CPLD and the host computer platform, and recording it as a selected type; and simultaneously obtaining a server status monitoring data signal corresponding to the selected type according to the control instruction; Step S2: performing data framing and cross-clock domain processing on the server status monitoring data signal of the selected type to obtain a data packet; Step S3: Send the data packet to the host computer platform, so that the host computer platform parses the data packet, locates the server status monitoring data, and performs abnormal value judgment on the server status monitoring data.

2. The method according to claim 1, characterized in that The communication mode between CPLD and the host computer platform is UART.

3. The method according to claim 1, characterized in that The cross-clock domain processing includes: The read and write clocks of the FIFO are controlled and adjusted to match the selected data signal rate and the baud rate of the communication mode between the CPLD and the host computer platform.

4. The method according to claim 1, wherein Before receiving the control instruction sent by the host computer platform, the following steps are also included: The data transmission mode parameters between the CPLD and the host computer platform and the server card board CPLD signal information are sent to the host computer platform so that the host computer platform can be configured.

5. The method according to claim 1, characterized in that If no new control instruction is received or no stop monitoring instruction is received, and the data signal of the selected type is updated in the CPLD, then steps S2 to S3 are repeated for the updated data signal of the selected type.

6. The method according to claim 1, characterized in that If a new control instruction is received, steps S1 to S3 are repeated.

7. The method according to claim 1, characterized in that Performing data framing on the data signal of the selected type includes: The data signal of the selected type is added to the frame header, the frame trailer and the identifier.

8. A server status monitoring system based on CPLD, characterized in that: The system comprises: Data signal type selection module: used to receive control instructions sent by the host computer platform, parse the control instructions, select the data signal type that is compatible with the communication method between the CPLD and the host computer platform, and record it as the selected type; at the same time, obtain the server status monitoring data signal corresponding to the selected type according to the control instructions; Data processing module: used for performing data framing and cross-clock domain processing on the selected type of server status monitoring data signal to obtain a data packet; Data sending module: used to send the data packet to the host computer platform so that the host computer platform can parse the data packet, locate the server status monitoring data, and judge the abnormal value of the server status monitoring data.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.