CN114840383A - CPLD-based detection device and method, electronic device and storage medium - Google Patents
CPLD-based detection device and method, electronic device and storage medium Download PDFInfo
- Publication number
- CN114840383A CN114840383A CN202210476706.XA CN202210476706A CN114840383A CN 114840383 A CN114840383 A CN 114840383A CN 202210476706 A CN202210476706 A CN 202210476706A CN 114840383 A CN114840383 A CN 114840383A
- Authority
- CN
- China
- Prior art keywords
- module
- slave
- state
- cpld
- cpld module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 36
- 238000001514 detection method Methods 0.000 title claims abstract description 21
- 238000004590 computer program Methods 0.000 claims description 35
- 238000004891 communication Methods 0.000 claims description 11
- 238000012423 maintenance Methods 0.000 abstract description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000013507 mapping Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3055—Monitoring 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3048—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the topology of the computing system or computing system component explicitly influences the monitoring activity, e.g. serial, hierarchical systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3089—Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
- G06F11/3093—Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
- G06F11/324—Display of status information
- G06F11/325—Display of status information by lamps or LED's
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
- G06F11/324—Display of status information
- G06F11/328—Computer systems status display
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Computer Hardware Design (AREA)
- Mathematical Physics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application provides a detection device, a method, an electronic device and a storage medium based on a CPLD, wherein the method comprises the following steps: the main CPLD module acquires the state lamp parameters of each module in the main server node; the method comprises the following steps that at least one slave CPLD module obtains state light parameters of each module in slave server nodes, wherein each slave server node comprises at least one slave CPLD module; the master CPLD module receives the state lamp parameters acquired by the at least one slave CPLD module; and the main CPLD module determines the working states of all the modules of the multi-path server according to all the state lamp parameters and the state parameter table set by the user. The problem that the working state of the modules in the lower-layer node in the multi-path server is not easy to check is solved by receiving and displaying the protocol frames through the serial port screen, and the working state of each module is conveniently and accurately known by maintenance personnel, so that the working pressure of the maintenance personnel is reduced.
Description
Technical Field
The present invention relates to the field of server detection, and in particular, to a detection device, method, electronic device, and storage medium based on a CPLD.
Background
With the development of information technology, the application of the server is more and more extensive. In government, financial and other industries, the demand for large core databases and high performance computing is increasing, and multi-way servers are widely used in these fields with their advantages. Taking a commonly used eight-way server as an example, each motherboard has two CPUs, and then four motherboards are required to be interconnected through a middle backplane, and in the existing design, the following disadvantages are summarized:
because the four computing nodes are interconnected from top to bottom through the middle back plate, the state lamps of the nodes at the top layer can be seen clearly, the respective state lamps of the other three nodes are limited by the structural position and are not easy to view, the working states of the chips in the following three nodes are not easy to judge, even the working state of the chip at the top layer cannot be obtained immediately, and the maintenance work of maintenance personnel is inconvenient.
Disclosure of Invention
In view of the above, it is desirable to provide a detection device, a detection method, an electronic device and a storage medium based on a CPLD, which can detect and display the operating state of nodes in a multi-way server that are not easy to view.
In a first aspect, a detection device based on a CPLD is provided, where the multiple servers form multiple server nodes, each server node includes at least one server, and the detection device includes:
the main CPLD module is used for acquiring the state lamp parameters of each module in the main server node;
the slave CPLD module is used for acquiring the state lamp parameters of each module in the slave server nodes, wherein each slave server node comprises at least one slave CPLD module;
and the main CPLD module is also used for receiving the state light parameters acquired by the at least one slave CPLD module and determining the working states of all the modules of the multi-path server according to all the state light parameters and a state parameter table set by a user.
In one embodiment, the acquiring, by the primary CPLD module, the state light parameters of each module in the primary server node includes:
the main CPLD module records the flash times of the state lamps of all modules in the main server node in unit time set by a user;
and the main CPLD module calculates the state light parameters of each module in the main server node according to the flickering times of the state light.
In one embodiment, the at least one slave CPLD module obtaining the status light parameters of each module in the slave server node includes:
the slave CPLD module records the flash times of the status lamps of each module in the slave server node in unit time set by a user;
and the slave CPLD module calculates the state light parameters of each module in the slave server node according to the flickering times of the state light.
In one embodiment, the receiving, by the master CPLD module, the at least one status light parameter obtained from the slave CPLD module includes:
the master CPLD module receives the at least one status light parameter obtained from the slave CPLD module via the I2C communication link.
In one embodiment, the state parameter table comprises a first parameter range and a second parameter range, and the working state comprises idle, normal, busy and fault.
In one embodiment, the determining, by the main CPLD module, the operating states of all modules of the multi-server according to all the status light parameters and the status parameter table set by the user includes:
when the state light parameter is within the first parameter range, determining that the working state is idle;
when the state light parameter is within the second parameter range, determining that the working state is normal;
when the status light parameter is larger than the second parameter range, determining that the working status is busy;
and when the status light parameter is zero, determining that the working status is a fault.
In one embodiment, the method further comprises:
and generating a protocol frame according to the working state of the main CPLD, and sending the protocol frame to a serial port screen.
In another aspect, a detection method based on CPLD is provided, where the multiple servers form multiple server nodes, each server node includes at least one server, and the method includes:
the main CPLD module acquires the state lamp parameters of each module in the main server node;
the method comprises the following steps that at least one slave CPLD module obtains state light parameters of each module in slave server nodes, wherein each slave server node comprises at least one slave CPLD module;
the master CPLD module receives the state lamp parameters acquired by the at least one slave CPLD module;
and the main CPLD module determines the working states of all the modules of the multi-path server according to all the state lamp parameters and the state parameter table set by the user.
In one embodiment, the acquiring, by the primary CPLD module, the state light parameters of each module in the primary server node includes:
the main CPLD module records the flash times of the state lamps of all modules in the main server node in unit time set by a user;
and the main CPLD module calculates the state light parameters of each module in the main server node according to the flickering times of the state light.
In one embodiment, the at least one slave CPLD module obtaining the status light parameters of each module in the slave server node includes:
the slave CPLD module records the flash times of the status lamps of each module in the slave server node in unit time set by a user;
and the slave CPLD module calculates the state light parameters of each module in the slave server node according to the flickering times of the state light.
In one embodiment, the receiving, by the master CPLD module, the at least one status light parameter obtained from the slave CPLD module includes:
the master CPLD module receives the at least one status light parameter obtained from the slave CPLD module via the I2C communication link.
In one embodiment, the state parameter table comprises a first parameter range and a second parameter range, and the working state comprises idle, normal, busy and fault.
In one embodiment, the determining, by the main CPLD module, the operating states of all modules of the multi-server according to all the status light parameters and the status parameter table set by the user includes:
when the state light parameter is within the first parameter range, determining that the working state is idle;
when the state light parameter is within the second parameter range, determining that the working state is normal;
when the status light parameter is larger than the second parameter range, determining that the working status is busy;
when the status light parameter is zero, determining that the operating status is a fault.
In one embodiment, the method further comprises:
and the main CPLD generates a protocol frame according to the working state and sends the protocol frame to the serial port screen.
In another aspect, an electronic device is provided, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor executes the computer program to implement the following steps:
the main CPLD module acquires the state lamp parameters of each module in the main server node;
the method comprises the following steps that at least one slave CPLD module obtains state light parameters of each module in slave server nodes, wherein each slave server node comprises at least one slave CPLD module;
the master CPLD module receives the state lamp parameters acquired by the at least one slave CPLD module;
and the main CPLD module determines the working states of all modules of the multi-path server according to all the state lamp parameters and a state parameter table set by a user.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the main CPLD module acquires the state lamp parameters of each module in the main server node and comprises the following steps:
the main CPLD module records the flash times of the state lamps of all modules in the main server node in unit time set by a user;
and the main CPLD module calculates the state light parameters of each module in the main server node according to the flickering times of the state light.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the at least one slave CPLD module acquiring the status light parameters of each module in the slave server node includes:
the slave CPLD module records the flash times of the status lamps of each module in the slave server node in unit time set by a user;
and the slave CPLD module calculates the state light parameters of each module in the slave server node according to the flickering times of the state light.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the receiving, by the master CPLD module, the status light parameter obtained by the at least one slave CPLD module includes:
the master CPLD module receives the at least one status light parameter obtained from the slave CPLD module via the I2C communication link.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the state parameter table comprises a first parameter range and a second parameter range, and the working state comprises idle, normal, busy and fault.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the main CPLD module determines the working states of all modules of the multi-path server according to all the state lamp parameters and the state parameter table set by the user, and the working states comprise that:
when the state light parameter is within the first parameter range, determining that the working state is idle;
when the state light parameter is within the second parameter range, determining that the working state is normal;
when the status light parameter is larger than the second parameter range, determining that the working status is busy;
and when the status light parameter is zero, determining that the working status is a fault.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the method further comprises the following steps:
and the main CPLD generates a protocol frame according to the working state and sends the protocol frame to the serial port screen.
In yet another aspect, a computer-readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, performs the steps of:
the main CPLD module acquires the state lamp parameters of each module in the main server node;
the method comprises the steps that at least one slave CPLD module obtains the state lamp parameters of each module in slave server nodes, wherein each slave server node comprises at least one slave CPLD module;
the master CPLD module receives the state lamp parameters acquired by the at least one slave CPLD module;
and the main CPLD module determines the working states of all the modules of the multi-path server according to all the state lamp parameters and the state parameter table set by the user.
In one embodiment, the computer program when executed by a processor implements the steps of:
the main CPLD module acquires the state lamp parameters of each module in the main server node and comprises the following steps:
the main CPLD module records the flash times of the state lamps of all modules in the main server node in unit time set by a user;
and the main CPLD module calculates the state light parameters of each module in the main server node according to the flickering times of the state light.
In one embodiment, the computer program when executed by a processor implements the steps of:
the at least one slave CPLD module acquiring the status light parameters of each module in the slave server node includes:
the slave CPLD module records the flash times of the status lamps of all modules in the slave server node in unit time set by a user;
and the slave CPLD module calculates the state light parameters of each module in the slave server node according to the flickering times of the state light.
In one embodiment, the computer program when executed by a processor implements the steps of:
the receiving, by the master CPLD module, the status light parameter obtained by the at least one slave CPLD module includes:
the master CPLD module receives the at least one status light parameter obtained from the slave CPLD module via the I2C communication link.
In one embodiment, the computer program when executed by a processor implements the steps of:
the state parameter table comprises a first parameter range and a second parameter range, and the working state comprises idle, normal, busy and fault.
In one embodiment, the computer program when executed by a processor implements the steps of:
the main CPLD module determines the working states of all modules of the multi-path server according to all the state lamp parameters and the state parameter table set by the user, and the working states comprise that:
when the state light parameter is within the first parameter range, determining that the working state is idle;
when the state light parameter is within the second parameter range, determining that the working state is normal;
when the status light parameter is larger than the second parameter range, determining that the working status is busy;
and when the status light parameter is zero, determining that the working status is a fault.
In one embodiment, the computer program when executed by a processor implements the steps of:
the method further comprises the following steps:
and the main CPLD generates a protocol frame according to the working state and sends the protocol frame to the serial port screen.
Drawings
Fig. 1 is a schematic structural diagram of a detection device based on a CPLD;
FIG. 2 is a schematic diagram of a protocol format of a generated protocol frame;
FIG. 3 is a schematic diagram of the steps of a CPLD-based detection method;
fig. 4 is an internal structural diagram of a computer device in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The detection device based on the CPLD can be applied to a multi-path server shown in fig. 1, wherein a main CPLD module acquires state lamp parameters of each module in a main server node; the method comprises the following steps that at least one slave CPLD module obtains state light parameters of each module in slave server nodes, wherein each slave server node comprises at least one slave CPLD module; the master CPLD module receives the state lamp parameters acquired by the at least one slave CPLD module; and the main CPLD module determines the working states of all the modules of the multi-path server according to all the state lamp parameters and the state parameter table set by the user. The problem that the working state of the modules in the lower-layer node in the multi-path server is not easy to check is solved by receiving and displaying the protocol frames through the serial port screen, and the working state of each module is conveniently and accurately known by maintenance personnel, so that the working pressure of the maintenance personnel is reduced.
In one embodiment, the multi-path server forms a plurality of server nodes, each server node includes at least one path server, and the detecting device includes:
the main CPLD module is used for acquiring the state lamp parameters of each module in the main server node;
the slave CPLD module is used for acquiring the state lamp parameters of each module in the slave server nodes, wherein each slave server node comprises at least one slave CPLD module;
and the main CPLD module is also used for receiving the state light parameters acquired by the at least one slave CPLD module and determining the working states of all the modules of the multi-path server according to all the state light parameters and a state parameter table set by a user.
In one embodiment, the acquiring, by the primary CPLD module, the state light parameters of each module in the primary server node includes:
the main CPLD module records the flash times of the state lamps of all modules in the main server node in unit time set by a user;
and the main CPLD module calculates the state light parameters of each module in the main server node according to the flickering times of the state lights.
Specifically, taking an eight-way server as an example, there are four server nodes in the eight-way server, each server node has two CPUs (central processing units), the top layer is a main server node 0, the bottom layers are server nodes 1,2, and 3 in sequence, the four computing nodes are interconnected through a middle back panel from top to bottom, and each node has a BMC (baseboard management Controller), a PCH (PLATFORM for Controller HUB PLATFORM control center), commonly called south bridge chip, and a CPLD (Complex Programmable Logic Device). The main CPLD accesses the BMC module and the PCH module in the main server node, records the flashing times of the respective status lamps according to the time set by the user in advance, wherein the name of the status lamp of the PCH is POSTCODE LED, for example, if the flashing times of the BMC status lamp is recorded within one minute to be 120 times, the flashing rate of the BMC in the main computing node can be calculated to be 2 times/second.
In one embodiment, the at least one slave CPLD module obtaining the status light parameter of each module in the slave server node includes:
the slave CPLD module records the flash times of the status lamps of each module in the slave server node in unit time set by a user;
and the slave CPLD module calculates the state light parameters of each module in the slave server node according to the flickering times of the state light.
Specifically, the slave CPLD in the master computing node 1-3 accesses the BMC module and the PCH module in the slave server node, and records the number of times of flashing of each status light according to the time set in advance by the user, for example, if the number of times of flashing of the post mode LED of the PCH status light is recorded within one minute is 150, the rate of flashing of the BMC in the master computing node can be calculated to be 2.5 times/second.
In one embodiment, the receiving, by the master CPLD module, the at least one status light parameter obtained from the slave CPLD module includes:
the master CPLD module receives the at least one status light parameter obtained from the slave CPLD module via the I2C communication link.
Specifically, the CPLD of the computing node 0 is used as a master device, the CPLDs of the computing nodes 1,2, and 3 are used as slave devices, and are interconnected on a middle-back board, so as to establish a proprietary I2C (Inter-Integrated Circuit two-wire serial bus) communication link.
In one embodiment, the state parameter table comprises a first parameter range and a second parameter range, and the working state comprises idle, normal, busy and fault.
In one embodiment, the determining, by the main CPLD module, the operating states of all modules of the multi-server according to all the status light parameters and the status parameter table set by the user includes:
when the state light parameter is within the first parameter range, determining that the working state is idle;
when the state light parameter is within the second parameter range, determining that the working state is normal;
when the status light parameter is larger than the second parameter range, determining that the working status is busy;
and when the status light parameter is zero, determining that the working status is a fault.
Specifically, a user can set a state parameter table in advance, the state parameter table comprises a mapping relation between the flashing times and the working states of the state lamps, for example, the flashing rate of the BMC in the state parameter table can be set to be that the flashing times per minute are 1-10 times, the flashing times per minute are normal, the flashing times per minute are 30-30 times, the flashing times per minute are busy, when the flashing is not performed, it is determined that the chip has a fault, and when the master CPLD in the computing node 0 obtains that the flashing rate of the BMC in the node is 15 times, it can be determined that the BMC is idle. The mapping relation between the flashing rate and the working state of different modules on the same node, such as the BMC and the CPLD, can be different, and a user can set the flashing rate and the working state according to the actual working requirement. The module flashing rate range values on each computing node can be different, for example, the BMC flashing rate on the computing node 1 can be set to be idle when the flashing times per minute are 1-5 times, normal when the flashing times per minute are 5-50 times, busy when the flashing times per minute are 50-100 times, when the flashing is not performed, the chip is determined to be in failure, and the user can set the flashing rate range values by himself according to the actual working requirements.
In one embodiment, the method further comprises:
and generating a protocol frame according to the working state of the main CPLD, and sending the protocol frame to a serial port screen.
Specifically, the generated protocol frame may be as shown in fig. 2, where the protocol frame includes a frame header, a BMC operating state in all nodes, a PCH operating state, a CPLD operating state, and a frame tail. In addition, the serial port screen can display different colors according to different working states, for example, when the BMC is determined to be idle, the lamp corresponding to the BMC can be displayed to be blue.
The modules in the multi-server state detection device based on the CPLD can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, as shown in fig. 3, the present invention provides a CPLD-based detection method, where the multiple servers form multiple server nodes, each server node includes at least one server, and the method includes:
s301, the main CPLD module acquires state light parameters of each module in the main server node;
s302, at least one slave CPLD module acquires the state lamp parameters of each module in the slave server nodes, wherein each slave server node comprises at least one slave CPLD module;
s303, the main CPLD module receives the state lamp parameters acquired by the at least one slave CPLD module;
and S304, the main CPLD module determines the working states of all the modules of the multi-path server according to all the state lamp parameters and the state parameter table set by the user.
In one embodiment, the acquiring, by the primary CPLD module, the state light parameters of each module in the primary server node includes:
the main CPLD module records the flash times of the state lamps of all modules in the main server node in unit time set by a user;
and the main CPLD module calculates the state light parameters of each module in the main server node according to the flickering times of the state light.
In one embodiment, the at least one slave CPLD module obtaining the status light parameters of each module in the slave server node includes:
the slave CPLD module records the flash times of the status lamps of each module in the slave server node in unit time set by a user;
and the slave CPLD module calculates the state light parameters of each module in the slave server node according to the flickering times of the state light.
In one embodiment, the receiving, by the master CPLD module, the at least one status light parameter obtained from the slave CPLD module includes:
the master CPLD module receives the at least one status light parameter obtained from the slave CPLD module via the I2C communication link.
In one embodiment, the state parameter table comprises a first parameter range and a second parameter range, and the working state comprises idle, normal, busy and fault.
In one embodiment, the determining, by the main CPLD module, the operating states of all modules of the multi-server according to all the status light parameters and the status parameter table set by the user includes:
when the state light parameter is within the first parameter range, determining that the working state is idle;
when the state light parameter is within the second parameter range, determining that the working state is normal;
when the status light parameter is larger than the second parameter range, determining that the working status is busy;
and when the status light parameter is zero, determining that the working status is a fault.
In one embodiment, the method further comprises:
and the main CPLD generates a protocol frame according to the working state and sends the protocol frame to the serial port screen.
The scheme of this application has following beneficial effect:
1) by analyzing the state of each module state lamp in each node obtained by each node CPLD, the working states of all modules in each node in the multi-path server can be quickly judged, and the working pressure of maintenance personnel is reduced;
2) by using the I2C communication link among the CPLDs, the working state of the modules in the nodes which are inconvenient to view can be judged without additional wiring.
It should be understood that, although the steps in the flowchart of fig. 3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
For specific limitations of the detection method based on the CPLD, reference may be made to the above limitations of the detection device based on the CPLD, and details are not repeated here.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 4. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a CPLD-based detection method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 4 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, an electronic device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
the main CPLD module acquires the state lamp parameters of each module in the main server node;
the method comprises the following steps that at least one slave CPLD module obtains state light parameters of each module in slave server nodes, wherein each slave server node comprises at least one slave CPLD module;
the master CPLD module receives the state lamp parameters acquired by the at least one slave CPLD module;
and the main CPLD module determines the working states of all the modules of the multi-path server according to all the state lamp parameters and the state parameter table set by the user.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the main CPLD module acquires the state lamp parameters of each module in the main server node and comprises the following steps:
the main CPLD module records the flash times of the state lamps of all modules in the main server node in unit time set by a user;
and the main CPLD module calculates the state light parameters of each module in the main server node according to the flickering times of the state light.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the at least one slave CPLD module acquiring the status light parameters of each module in the slave server node includes:
the slave CPLD module records the flash times of the status lamps of each module in the slave server node in unit time set by a user;
and the slave CPLD module calculates the state light parameters of each module in the slave server node according to the flickering times of the state light.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the receiving, by the master CPLD module, the status light parameter obtained by the at least one slave CPLD module includes:
the master CPLD module receives the at least one status light parameter obtained from the slave CPLD module via the I2C communication link.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the state parameter table comprises a first parameter range and a second parameter range, and the working state comprises idle, normal, busy and fault.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the main CPLD module determines the working states of all modules of the multi-path server according to all the state lamp parameters and the state parameter table set by the user, and the working states comprise that:
when the state light parameter is within the first parameter range, determining that the working state is idle;
when the state light parameter is within the second parameter range, determining that the working state is normal;
when the status light parameter is larger than the second parameter range, determining that the working status is busy;
when the status light parameter is zero, determining that the operating status is a fault.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the method further comprises the following steps:
and the main CPLD generates a protocol frame according to the working state and sends the protocol frame to the serial port screen.
In one embodiment, a computer-readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, performs the steps of:
the main CPLD module acquires the state lamp parameters of each module in the main server node;
the method comprises the following steps that at least one slave CPLD module obtains state light parameters of each module in slave server nodes, wherein each slave server node comprises at least one slave CPLD module;
the master CPLD module receives the state lamp parameters acquired by the at least one slave CPLD module;
and the main CPLD module determines the working states of all the modules of the multi-path server according to all the state lamp parameters and the state parameter table set by the user.
In one embodiment, the computer program when executed by a processor implements the steps of:
the main CPLD module acquires the state lamp parameters of each module in the main server node and comprises the following steps:
the main CPLD module records the flash times of the state lamps of all modules in the main server node in unit time set by a user;
and the main CPLD module calculates the state light parameters of each module in the main server node according to the flickering times of the state lights.
In one embodiment, the computer program when executed by a processor implements the steps of:
the at least one slave CPLD module acquiring the status light parameters of each module in the slave server node includes:
the slave CPLD module records the flash times of the status lamps of each module in the slave server node in unit time set by a user;
and the slave CPLD module calculates the state light parameters of each module in the slave server node according to the flickering times of the state light.
In one embodiment, the computer program when executed by a processor implements the steps of:
the receiving, by the master CPLD module, the status light parameter obtained by the at least one slave CPLD module includes:
the master CPLD module receives the at least one status light parameter obtained from the slave CPLD module via the I2C communication link.
In one embodiment, the computer program when executed by a processor implements the steps of:
the state parameter table comprises a first parameter range and a second parameter range, and the working state comprises idle, normal, busy and fault.
In one embodiment, the computer program when executed by a processor implements the steps of:
the main CPLD module determines the working states of all modules of the multi-path server according to all the state lamp parameters and the state parameter table set by the user, and the working states comprise that:
when the state light parameter is within the first parameter range, determining that the working state is idle;
when the state light parameter is within the second parameter range, determining that the working state is normal;
when the status light parameter is larger than the second parameter range, determining that the working status is busy;
and when the status light parameter is zero, determining that the working status is a fault.
In one embodiment, the computer program when executed by a processor implements the steps of:
the method further comprises the following steps:
and the main CPLD generates a protocol frame according to the working state and sends the protocol frame to the serial port screen.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent application shall be subject to the appended claims.
Claims (10)
1. A CPLD-based detection device is characterized in that a plurality of servers form a plurality of server nodes, each server node comprises at least one server, and the detection device comprises:
the main CPLD module is used for acquiring the state lamp parameters of each module in the main server node;
the slave CPLD module is used for acquiring the state lamp parameters of each module in the slave server nodes, wherein each slave server node comprises at least one slave CPLD module;
and the main CPLD module is also used for receiving the state light parameters acquired by the at least one slave CPLD module and determining the working states of all the modules of the multi-path server according to all the state light parameters and a state parameter table set by a user.
2. A CPLD-based detection method is characterized in that a plurality of server nodes are formed by a plurality of servers, each server node comprises at least one server, and the method comprises the following steps:
the main CPLD module acquires the state lamp parameters of each module in the main server node;
the method comprises the steps that at least one slave CPLD module obtains the state lamp parameters of each module in slave server nodes, wherein each slave server node comprises at least one slave CPLD module;
the master CPLD module receives the state lamp parameters acquired by the at least one slave CPLD module;
and the main CPLD module determines the working states of all the modules of the multi-path server according to all the state lamp parameters and the state parameter table set by the user.
3. The method of claim 2, wherein the acquiring, by the primary CPLD module, the status light parameters of each module in the primary server node comprises:
the main CPLD module records the flash times of the status lamps of all modules in the main server node in unit time set by a user;
and the main CPLD module calculates the state light parameters of each module in the main server node according to the flickering times of the state light.
4. The method of claim 2, wherein said at least one slave CPLD module obtaining the status light parameters of each module in the slave server node comprises:
the slave CPLD module records the flash times of the status lamps of all modules in the slave server node in unit time set by a user;
and the slave CPLD module calculates the state light parameters of each module in the slave server node according to the flickering times of the state light.
5. The method of claim 2, wherein said receiving by said master CPLD module said at least one slave CPLD module status light parameter comprises:
the master CPLD module receives the at least one status light parameter obtained from the slave CPLD module via the I2C communication link.
6. The method of claim 2, wherein the status parameter table includes a first parameter range and a second parameter range, and wherein the operational status includes idle, normal, busy, and fault.
7. The method of claim 6, wherein the determining, by the primary CPLD module, the operating status of all modules of the multi-server according to all status light parameters and the user-set status parameter table comprises:
when the state light parameter is within the first parameter range, determining that the working state is idle;
when the state light parameter is within the second parameter range, determining that the working state is normal;
when the status light parameter is larger than the second parameter range, determining that the working status is busy;
and when the status light parameter is zero, determining that the working status is a fault.
8. The method of claim 2, further comprising:
and the main CPLD generates a protocol frame according to the working state and sends the protocol frame to the serial port screen.
9. An electronic device, comprising:
one or more processors; and memory associated with the one or more processors for storing program instructions which, when read and executed by the one or more processors, perform the method of any of claims 2-8.
10. A computer storage medium, having a computer program stored thereon, wherein the program, when executed by a processor, implements the method of any of claims 2-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210476706.XA CN114840383A (en) | 2022-04-30 | 2022-04-30 | CPLD-based detection device and method, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210476706.XA CN114840383A (en) | 2022-04-30 | 2022-04-30 | CPLD-based detection device and method, electronic device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114840383A true CN114840383A (en) | 2022-08-02 |
Family
ID=82566916
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210476706.XA Pending CN114840383A (en) | 2022-04-30 | 2022-04-30 | CPLD-based detection device and method, electronic device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114840383A (en) |
-
2022
- 2022-04-30 CN CN202210476706.XA patent/CN114840383A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109471770B (en) | System management method and device | |
CN103473167B (en) | The fault display method of server and device | |
CN102622279B (en) | Redundancy control system, method and Management Controller | |
US20030005367A1 (en) | Reporting hard disk drive failure | |
US20070038885A1 (en) | Method for operating an arrangement of a plurality of computers in the event of a computer failure | |
CN102346707B (en) | Server system and operation method thereof | |
CN115629825B (en) | Server and asset information acquisition method, asset information providing method and asset information providing device | |
CN112015689B (en) | Method, system and device for switching serial port output paths and switch | |
CN111988196B (en) | Bandwidth detection method and device, electronic equipment and storage medium | |
CN111581043A (en) | Server power consumption monitoring method and device and server | |
CN114003445B (en) | BMC I2C monitoring function test method, system, terminal and storage medium | |
CN109240847A (en) | EMS memory error report method, device, terminal and storage medium during a kind of POST | |
CN116820827B (en) | Control method and system of substrate management controller of node server | |
CN110727611B (en) | Configurable consistency verification system with state monitoring function | |
CN114840383A (en) | CPLD-based detection device and method, electronic device and storage medium | |
CN117077221A (en) | Hard disk screen printing distribution method and device, computer equipment and medium | |
CN111858187A (en) | Electronic equipment and service switching method and device | |
CN115686896A (en) | Extended memory error processing method, system, electronic device and storage medium | |
CN115714714B (en) | Management network intelligent switching system, management network intelligent switching method, computer equipment and storage medium | |
CN114785789B (en) | Database fault management method and device, electronic equipment and storage medium | |
CN114443446B (en) | Hard disk indicator lamp control method, system, terminal and storage medium | |
CN114706715B (en) | Control method, device, equipment and medium for distributed RAID based on BMC | |
CN114020561B (en) | Fault reporting method, system, device, computer equipment and storage medium | |
US20240028439A1 (en) | Attributing errors to input/output peripheral drivers | |
US7308507B1 (en) | Method, system, and computer-readable medium for redirecting video text data in a computer network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |