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 PDF

Info

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
cpld
status
main
slave
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
CN202210476706.XA
Other languages
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 Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur 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 Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210476706.XA priority Critical patent/CN114840383A/en
Publication of CN114840383A publication Critical patent/CN114840383A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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; CALCULATING OR 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/3048Monitoring 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/325Display of status information by lamps or LED's
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/328Computer systems status display
    • 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
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control 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

本申请提供基于CPLD的检测装置、方法、电子设备及存储介质,所述方法包括:主CPLD模块获取主服务器节点中各模块状态灯参数;至少一个从CPLD模块获取从服务器节点中各模块状态灯参数,其中各从服务器节点中均包括至少一个从CPLD模块;主CPLD模块接收所述至少一个从CPLD模块获取的状态灯参数;主CPLD模块根据所有状态灯参数和用户设置的状态参数表确定多路服务器所有模块的工作状态。通过串口屏接收并显示协议帧解决多路服务器中下层节点中模块工作状态不易查看的问题,并方便维护人员准确获知各模块的工作状态,减轻了维护人员的工作压力。

Figure 202210476706

The present application provides a detection device, method, electronic device and storage medium based on CPLD. The method includes: the main CPLD module obtains the parameters of the status lights of each module in the main server node; at least one slave CPLD module obtains the status lights of each module in the slave server node. parameters, wherein each slave server node includes at least one slave CPLD module; the master CPLD module receives the at least one state lamp parameter obtained from the slave CPLD module; the master CPLD module determines the number of The working status of all modules of the road server. Receive and display the protocol frame through the serial screen to solve the problem that the working status of the modules in the middle and lower nodes of the multi-channel server is not easy to check, and it is convenient for the maintenance personnel to accurately know the working status of each module, which reduces the working pressure of the maintenance personnel.

Figure 202210476706

Description

基于CPLD的检测装置、方法、电子设备及存储介质Detection device, method, electronic device and storage medium based on CPLD

技术领域technical field

本发明涉及服务器检测领域,特别是涉及一种基于CPLD的检测装置、方法、电子设备及存储介质。The invention relates to the field of server detection, in particular to a detection device, method, electronic device and storage medium based on CPLD.

背景技术Background technique

随着信息技术的发展,服务器的应用越来越广泛。在政府、金融等行业中,对大型核心数据库、高性能计算的需求越来越高,多路服务器在这些领域以其优点的得以广泛应用。以常用的八路服务器为例,每个主板上有两颗CPU,那就需要四张主板通过中背板互联,在现有设计中,总结有以下缺点:With the development of information technology, the application of server is more and more extensive. In industries such as government and finance, the demand for large-scale core databases and high-performance computing is getting higher and higher, and multi-channel servers are widely used in these fields due to their advantages. Taking a common eight-socket server as an example, each motherboard has two CPUs, so four motherboards are required to be interconnected through the mid-backplane. In the existing design, the following shortcomings are summarized:

由于四个计算节点从上到下通过中背板互联,因此除了顶层的节点的状态灯可以直观看清外,另外三个节点各自的状态灯受结构位置所限,不容易查看,并且下面三个节点中的芯片工作状态也不容易判断,哪怕是最上层节点芯片的工作状态也不能立即得到,不方便维护人员的维护工作。Since the four computing nodes are interconnected from top to bottom through the mid-backplane, in addition to the status lights of the nodes on the top layer that can be seen intuitively, the status lights of the other three nodes are limited by the structural position and are not easy to view. It is not easy to judge the working status of the chips in each node, and even the working status of the chips of the uppermost node cannot be obtained immediately, which is inconvenient for maintenance personnel to perform maintenance work.

发明内容SUMMARY OF THE INVENTION

基于此,有必要针对上述技术问题,提供一种能够检测和显示多路服务器中不易查看节点的工作状态的基于CPLD的检测装置、方法、电子设备及存储介质。Based on this, it is necessary to provide a CPLD-based detection device, method, electronic device and storage medium capable of detecting and displaying the working state of a node in a multi-channel server that is difficult to view, aiming at the above technical problems.

第一方面,提供一种基于CPLD的检测装置,其特征在于,所述多路服务器构成多个服务器节点,每个服务器节点包括至少一路服务器,所述检测装置包括:A first aspect provides a detection device based on CPLD, characterized in that the multi-channel server constitutes a plurality of server nodes, each server node includes at least one server, and the detection device includes:

主CPLD模块,用于获取主服务器节点中各模块状态灯参数;The main CPLD module is used to obtain the status light parameters of each module in the main server node;

至少一个从CPLD模块,用于获取从服务器节点中各模块状态灯参数,其中各从服务器节点中均包括至少一个从CPLD模块;At least one slave CPLD module, used to obtain the status light parameters of each module in the slave server node, wherein each slave server node includes at least one slave CPLD module;

主CPLD模块,还用于接收所述至少一个从CPLD模块获取的状态灯参数,并根据所有状态灯参数和用户设置的状态参数表确定多路服务器所有模块的工作状态。The main CPLD module is further configured to receive the at least one status light parameter obtained from the CPLD module, and determine the working status of all modules of the multi-channel server according to all the status light parameters and the status parameter table set by the user.

在其中一个实施例中,所述主CPLD模块获取主服务器节点中各模块状态灯参数包括:In one embodiment, the acquisition of the status light parameters of each module in the main server node by the main CPLD module includes:

所述主CPLD模块记录用户设置的单位时间内所述主服务器节点中各模块的状态灯闪烁次数;The main CPLD module records the flashing times of the status lights of each module in the main server node within the unit time set by the user;

所述主CPLD模块根据所述状态灯闪烁次数计算出所述主服务器节点中各模块状态灯参数。The main CPLD module calculates the status light parameters of each module in the main server node according to the flashing times of the status light.

在其中一个实施例中,所述至少一个从CPLD模块获取从服务器节点中各模块状态灯参数包括:In one of the embodiments, the at least one slave CPLD module obtains the status light parameters of each module in the slave server node including:

所述从CPLD模块记录用户设置的单位时间内所述从服务器节点中各模块的状态灯闪烁次数;The slave CPLD module records the flashing times of the status lights of each module in the slave server node within a unit time set by the user;

所述从CPLD模块根据所述状态灯闪烁次数计算出所述从服务器节点中各模块状态灯参数。The slave CPLD module calculates the status light parameters of each module in the slave server node according to the flashing times of the status lights.

在其中一个实施例中,所述主CPLD模块接收所述至少一个从CPLD模块获取的状态灯参数包括:In one embodiment, the main CPLD module receiving the at least one status light parameter obtained from the CPLD module includes:

所述主CPLD模块通过I2C通信链路接收所述至少一个从CPLD模块获取的状态灯参数。The master CPLD module receives the at least one status light parameter obtained from the CPLD module through the I2C communication link.

在其中一个实施例中,所述状态参数表包括第一参数范围和第二参数范围,所述工作状态包括空闲、正常、繁忙和故障。In one embodiment, the state parameter table includes a first parameter range and a second parameter range, and the working state includes idle, normal, busy, and fault.

在其中一个实施例中,所述主CPLD模块根据所有状态灯参数和用户设置的状态参数表确定多路服务器所有模块的工作状态包括:In one embodiment, the main CPLD module determines the working status of all modules of the multi-channel server according to all status light parameters and the status parameter table set by the user, including:

当所述状态灯参数在所述第一参数范围内,确定所述工作状态为空闲;When the parameter of the status light is within the range of the first parameter, determine that the working state is idle;

当所述状态灯参数在所述第二参数范围内时,确定所述工作状态为正常;When the state light parameter is within the second parameter range, determine that the working state is normal;

当所述状态灯参数大于所述第二参数范围内时,确定所述工作状态为繁忙;When the state light parameter is greater than the second parameter range, determine that the working state is busy;

当所述状态灯参数为零时,确定所述工作状态为故障。When the state light parameter is zero, it is determined that the working state is a fault.

在其中一个实施例中,所述方法还包括:In one embodiment, the method further includes:

根据所述主CPLD根据所述工作状态生成协议帧,发送所述协议帧到串口屏。According to the main CPLD, the protocol frame is generated according to the working state, and the protocol frame is sent to the serial screen.

另一方面,提供一种基于CPLD的检测方法,其特征在于,所述多路服务器构成多个服务器节点,每个服务器节点包括至少一路服务器,所述方法包括:On the other hand, a detection method based on CPLD is provided, wherein the multi-channel server constitutes a plurality of server nodes, and each server node includes at least one server, and the method includes:

主CPLD模块获取主服务器节点中各模块状态灯参数;The main CPLD module obtains the status light parameters of each module in the main server node;

至少一个从CPLD模块获取从服务器节点中各模块状态灯参数,其中各从服务器节点中均包括至少一个从CPLD模块;At least one slave CPLD module obtains the status light parameters of each module in the slave server node, wherein each slave server node includes at least one slave CPLD module;

主CPLD模块接收所述至少一个从CPLD模块获取的状态灯参数;The main CPLD module receives the at least one status light parameter obtained from the CPLD module;

主CPLD模块根据所有状态灯参数和用户设置的状态参数表确定多路服务器所有模块的工作状态。The main CPLD module determines the working status of all modules of the multi-channel server according to all the status light parameters and the status parameter table set by the user.

在其中一个实施例中,所述主CPLD模块获取主服务器节点中各模块状态灯参数包括:In one embodiment, the acquisition of the status light parameters of each module in the main server node by the main CPLD module includes:

所述主CPLD模块记录用户设置的单位时间内所述主服务器节点中各模块的状态灯闪烁次数;The main CPLD module records the flashing times of the status lights of each module in the main server node within the unit time set by the user;

所述主CPLD模块根据所述状态灯闪烁次数计算出所述主服务器节点中各模块状态灯参数。The main CPLD module calculates the status light parameters of each module in the main server node according to the flashing times of the status light.

在其中一个实施例中,所述至少一个从CPLD模块获取从服务器节点中各模块状态灯参数包括:In one of the embodiments, the at least one slave CPLD module obtains the status light parameters of each module in the slave server node including:

所述从CPLD模块记录用户设置的单位时间内所述从服务器节点中各模块的状态灯闪烁次数;The slave CPLD module records the flashing times of the status lights of each module in the slave server node within a unit time set by the user;

所述从CPLD模块根据所述状态灯闪烁次数计算出所述从服务器节点中各模块状态灯参数。The slave CPLD module calculates the status light parameters of each module in the slave server node according to the flashing times of the status lights.

在其中一个实施例中,所述主CPLD模块接收所述至少一个从CPLD模块获取的状态灯参数包括:In one embodiment, the main CPLD module receiving the at least one status light parameter obtained from the CPLD module includes:

所述主CPLD模块通过I2C通信链路接收所述至少一个从CPLD模块获取的状态灯参数。The master CPLD module receives the at least one status light parameter obtained from the CPLD module through the I2C communication link.

在其中一个实施例中,所述状态参数表包括第一参数范围和第二参数范围,所述工作状态包括空闲、正常、繁忙和故障。In one embodiment, the state parameter table includes a first parameter range and a second parameter range, and the working state includes idle, normal, busy, and fault.

在其中一个实施例中,所述主CPLD模块根据所有状态灯参数和用户设置的状态参数表确定多路服务器所有模块的工作状态包括:In one embodiment, the main CPLD module determines the working status of all modules of the multi-channel server according to all status light parameters and the status parameter table set by the user, including:

当所述状态灯参数在所述第一参数范围内,确定所述工作状态为空闲;When the parameter of the status light is within the range of the first parameter, determine that the working state is idle;

当所述状态灯参数在所述第二参数范围内时,确定所述工作状态为正常;When the state light parameter is within the second parameter range, determine that the working state is normal;

当所述状态灯参数大于所述第二参数范围内时,确定所述工作状态为繁忙;When the state light parameter is greater than the second parameter range, determine that the working state is busy;

当所述状态灯参数为零时,确定所述工作状态为故障。When the state light parameter is zero, it is determined that the working state is a fault.

在其中一个实施例中,所述方法还包括:In one embodiment, the method further includes:

所述主CPLD根据所述工作状态生成协议帧,发送所述协议帧到串口屏。The main CPLD generates a protocol frame according to the working state, and sends the protocol frame to the serial screen.

再一方面,提供了一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现以下步骤:In another aspect, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the following steps when executing the computer program:

主CPLD模块获取主服务器节点中各模块状态灯参数;The main CPLD module obtains the status light parameters of each module in the main server node;

至少一个从CPLD模块获取从服务器节点中各模块状态灯参数,其中各从服务器节点中均包括至少一个从CPLD模块;At least one slave CPLD module obtains the status light parameters of each module in the slave server node, wherein each slave server node includes at least one slave CPLD module;

主CPLD模块接收所述至少一个从CPLD模块获取的状态灯参数;The main CPLD module receives the at least one status light parameter obtained from the CPLD module;

主CPLD模块根据所有状态灯参数和用户设置的状态参数表确定多路服务器所有模块的工作状态。The main CPLD module determines the working status of all modules of the multi-channel server according to all the status light parameters and the status parameter table set by the user.

在其中一个实施例中,所述处理器执行所述计算机程序时实现以下步骤:In one of the embodiments, the processor implements the following steps when executing the computer program:

所述主CPLD模块获取主服务器节点中各模块状态灯参数包括:The main CPLD module obtains the parameters of the status lights of each module in the main server node, including:

所述主CPLD模块记录用户设置的单位时间内所述主服务器节点中各模块的状态灯闪烁次数;The main CPLD module records the flashing times of the status lights of each module in the main server node within the unit time set by the user;

所述主CPLD模块根据所述状态灯闪烁次数计算出所述主服务器节点中各模块状态灯参数。The main CPLD module calculates the status light parameters of each module in the main server node according to the flashing times of the status light.

在其中一个实施例中,所述处理器执行所述计算机程序时实现以下步骤:In one of the embodiments, the processor implements the following steps when executing the computer program:

所述至少一个从CPLD模块获取从服务器节点中各模块状态灯参数包括:The at least one slave CPLD module obtains the status light parameters of each module in the slave server node including:

所述从CPLD模块记录用户设置的单位时间内所述从服务器节点中各模块的状态灯闪烁次数;The slave CPLD module records the flashing times of the status lights of each module in the slave server node within a unit time set by the user;

所述从CPLD模块根据所述状态灯闪烁次数计算出所述从服务器节点中各模块状态灯参数。The slave CPLD module calculates the status light parameters of each module in the slave server node according to the flashing times of the status lights.

在其中一个实施例中,所述处理器执行所述计算机程序时实现以下步骤:In one of the embodiments, the processor implements the following steps when executing the computer program:

所述主CPLD模块接收所述至少一个从CPLD模块获取的状态灯参数包括:The main CPLD module receives the at least one status light parameter obtained from the CPLD module including:

所述主CPLD模块通过I2C通信链路接收所述至少一个从CPLD模块获取的状态灯参数。The master CPLD module receives the at least one status light parameter obtained from the CPLD module through the I2C communication link.

在其中一个实施例中,所述处理器执行所述计算机程序时实现以下步骤:In one of the embodiments, the processor implements the following steps when executing the computer program:

所述状态参数表包括第一参数范围和第二参数范围,所述工作状态包括空闲、正常、繁忙和故障。The state parameter table includes a first parameter range and a second parameter range, and the working state includes idle, normal, busy, and fault.

在其中一个实施例中,所述处理器执行所述计算机程序时实现以下步骤:In one of the embodiments, the processor implements the following steps when executing the computer program:

所述主CPLD模块根据所有状态灯参数和用户设置的状态参数表确定多路服务器所有模块的工作状态包括:The main CPLD module determines the working states of all modules of the multi-channel server according to all the state light parameters and the state parameter table set by the user, including:

当所述状态灯参数在所述第一参数范围内,确定所述工作状态为空闲;When the parameter of the status light is within the range of the first parameter, determine that the working state is idle;

当所述状态灯参数在所述第二参数范围内时,确定所述工作状态为正常;When the state light parameter is within the second parameter range, determine that the working state is normal;

当所述状态灯参数大于所述第二参数范围内时,确定所述工作状态为繁忙;When the state light parameter is greater than the second parameter range, determine that the working state is busy;

当所述状态灯参数为零时,确定所述工作状态为故障。When the state light parameter is zero, it is determined that the working state is a fault.

在其中一个实施例中,所述处理器执行所述计算机程序时实现以下步骤:In one of the embodiments, the processor implements the following steps when executing the computer program:

所述方法还包括:The method also includes:

所述主CPLD根据所述工作状态生成协议帧,发送所述协议帧到串口屏。The main CPLD generates a protocol frame according to the working state, and sends the protocol frame to the serial screen.

又一方面,提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:In yet another aspect, a computer-readable storage medium is provided on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

主CPLD模块获取主服务器节点中各模块状态灯参数;The main CPLD module obtains the status light parameters of each module in the main server node;

至少一个从CPLD模块获取从服务器节点中各模块状态灯参数,其中各从服务器节点中均包括至少一个从CPLD模块;At least one slave CPLD module obtains the status light parameters of each module in the slave server node, wherein each slave server node includes at least one slave CPLD module;

主CPLD模块接收所述至少一个从CPLD模块获取的状态灯参数;The main CPLD module receives the at least one status light parameter obtained from the CPLD module;

主CPLD模块根据所有状态灯参数和用户设置的状态参数表确定多路服务器所有模块的工作状态。The main CPLD module determines the working status of all modules of the multi-channel server according to all the status light parameters and the status parameter table set by the user.

在其中一个实施例中,所述计算机程序被处理器执行时实现以下步骤:In one embodiment, the computer program, when executed by the processor, implements the following steps:

所述主CPLD模块获取主服务器节点中各模块状态灯参数包括:The main CPLD module obtains the parameters of the status lights of each module in the main server node, including:

所述主CPLD模块记录用户设置的单位时间内所述主服务器节点中各模块的状态灯闪烁次数;The main CPLD module records the flashing times of the status lights of each module in the main server node within the unit time set by the user;

所述主CPLD模块根据所述状态灯闪烁次数计算出所述主服务器节点中各模块状态灯参数。The main CPLD module calculates the status light parameters of each module in the main server node according to the flashing times of the status light.

在其中一个实施例中,所述计算机程序被处理器执行时实现以下步骤:In one embodiment, the computer program, when executed by the processor, implements the following steps:

所述至少一个从CPLD模块获取从服务器节点中各模块状态灯参数包括:The at least one slave CPLD module obtains the status light parameters of each module in the slave server node including:

所述从CPLD模块记录用户设置的单位时间内所述从服务器节点中各模块的状态灯闪烁次数;The slave CPLD module records the flashing times of the status lights of each module in the slave server node within a unit time set by the user;

所述从CPLD模块根据所述状态灯闪烁次数计算出所述从服务器节点中各模块状态灯参数。The slave CPLD module calculates the status light parameters of each module in the slave server node according to the flashing times of the status lights.

在其中一个实施例中,所述计算机程序被处理器执行时实现以下步骤:In one embodiment, the computer program, when executed by the processor, implements the following steps:

所述主CPLD模块接收所述至少一个从CPLD模块获取的状态灯参数包括:The main CPLD module receives the at least one status light parameter obtained from the CPLD module including:

所述主CPLD模块通过I2C通信链路接收所述至少一个从CPLD模块获取的状态灯参数。The master CPLD module receives the at least one status light parameter obtained from the CPLD module through the I2C communication link.

在其中一个实施例中,所述计算机程序被处理器执行时实现以下步骤:In one embodiment, the computer program, when executed by the processor, implements the following steps:

所述状态参数表包括第一参数范围和第二参数范围,所述工作状态包括空闲、正常、繁忙和故障。The state parameter table includes a first parameter range and a second parameter range, and the working state includes idle, normal, busy, and fault.

在其中一个实施例中,所述计算机程序被处理器执行时实现以下步骤:In one embodiment, the computer program, when executed by the processor, implements the following steps:

所述主CPLD模块根据所有状态灯参数和用户设置的状态参数表确定多路服务器所有模块的工作状态包括:The main CPLD module determines the working states of all modules of the multi-channel server according to all the state light parameters and the state parameter table set by the user, including:

当所述状态灯参数在所述第一参数范围内,确定所述工作状态为空闲;When the parameter of the status light is within the range of the first parameter, determine that the working state is idle;

当所述状态灯参数在所述第二参数范围内时,确定所述工作状态为正常;When the state light parameter is within the second parameter range, determine that the working state is normal;

当所述状态灯参数大于所述第二参数范围内时,确定所述工作状态为繁忙;When the state light parameter is greater than the second parameter range, determine that the working state is busy;

当所述状态灯参数为零时,确定所述工作状态为故障。When the state light parameter is zero, it is determined that the working state is a fault.

在其中一个实施例中,所述计算机程序被处理器执行时实现以下步骤:In one embodiment, the computer program, when executed by the processor, implements the following steps:

所述方法还包括:The method also includes:

所述主CPLD根据所述工作状态生成协议帧,发送所述协议帧到串口屏。The main CPLD generates a protocol frame according to the working state, and sends the protocol frame to the serial screen.

附图说明Description of drawings

图1为基于CPLD的检测装置的结构示意图;Fig. 1 is the structural representation of the detection device based on CPLD;

图2为生成的协议帧的协议格式示意图;Fig. 2 is the schematic diagram of the protocol format of the generated protocol frame;

图3为基于CPLD的检测方法的步骤示意图;Fig. 3 is the step schematic diagram of the detection method based on CPLD;

图4为本发明实施例中计算机设备的内部结构图。FIG. 4 is an internal structural diagram of a computer device in an embodiment of the present invention.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.

本申请提供的基于CPLD的检测装置,可以应用于如图1所示的多路服务器中,其中,主CPLD模块获取主服务器节点中各模块状态灯参数;至少一个从CPLD模块获取从服务器节点中各模块状态灯参数,其中各从服务器节点中均包括至少一个从CPLD模块;主CPLD模块接收所述至少一个从CPLD模块获取的状态灯参数;主CPLD模块根据所有状态灯参数和用户设置的状态参数表确定多路服务器所有模块的工作状态。通过串口屏接收并显示协议帧解决多路服务器中下层节点中模块工作状态不易查看的问题,并方便维护人员准确获知各模块的工作状态,减轻了维护人员的工作压力。The CPLD-based detection device provided by the present application can be applied to a multi-channel server as shown in FIG. 1 , wherein the main CPLD module obtains the status light parameters of each module in the main server node; at least one slave CPLD module obtains Each module status lamp parameter, wherein each slave server node includes at least one slave CPLD module; the master CPLD module receives the at least one state lamp parameter obtained from the slave CPLD module; the master CPLD module is based on all the state lamp parameters and the state set by the user The parameter table determines the working status of all modules of the multi-way server. Receive and display the protocol frame through the serial screen to solve the problem that the working status of the modules in the middle and lower nodes of the multi-channel server is not easy to check, and it is convenient for the maintenance personnel to accurately know the working status of each module, which reduces the working pressure of the maintenance personnel.

在一个实施例中,所述多路服务器构成多个服务器节点,每个服务器节点包括至少一路服务器,所述检测装置包括:In one embodiment, the multi-channel servers constitute multiple server nodes, each server node includes at least one server, and the detection device includes:

主CPLD模块,用于获取主服务器节点中各模块状态灯参数;The main CPLD module is used to obtain the status light parameters of each module in the main server node;

至少一个从CPLD模块,用于获取从服务器节点中各模块状态灯参数,其中各从服务器节点中均包括至少一个从CPLD模块;At least one slave CPLD module, used to obtain the status light parameters of each module in the slave server node, wherein each slave server node includes at least one slave CPLD module;

主CPLD模块,还用于接收所述至少一个从CPLD模块获取的状态灯参数,并根据所有状态灯参数和用户设置的状态参数表确定多路服务器所有模块的工作状态。The main CPLD module is further configured to receive the at least one status light parameter obtained from the CPLD module, and determine the working status of all modules of the multi-channel server according to all the status light parameters and the status parameter table set by the user.

在其中一个实施例中,所述主CPLD模块获取主服务器节点中各模块状态灯参数包括:In one embodiment, the acquisition of the status light parameters of each module in the main server node by the main CPLD module includes:

所述主CPLD模块记录用户设置的单位时间内所述主服务器节点中各模块的状态灯闪烁次数;The main CPLD module records the flashing times of the status lights of each module in the main server node within the unit time set by the user;

所述主CPLD模块根据所述状态灯闪烁次数计算出所述主服务器节点中各模块状态灯参数。The main CPLD module calculates the status light parameters of each module in the main server node according to the flashing times of the status light.

具体的,以八路服务器为例,在八路服务器中一共有四个服务器节点,每个服务器节点有两个CPU(central processing unit中央处理器),最上层的是主服务器节点0,下面依次是服务器节点1,2,3,四个计算节点从上到下通过中背板互联,每个节点上都有一个BMC(BaseboardManagement Controller基板管理控制器)、一个PCH(PLATFORM CONTROLLERHUB平台控制中心)俗称南桥芯片、一个CPLD(Complex Programmable Logic Device复杂可编程逻辑器件)。主CPLD访问主服务器节点中的BMC模块和PCH模块,按照用户提前设置好的时间记录各自状态灯的闪烁次数,其中PCH的状态灯名称为POSTCODE LED,比如在一分钟内记录下BMC状态灯的闪烁次数为120次,则可以计算出主计算节点中BMC的闪烁速率为2次/秒。Specifically, taking an eight-socket server as an example, there are four server nodes in the eight-socket server, and each server node has two CPUs (central processing unit central processing units). The top layer is the main server node 0, and the following are the servers Nodes 1, 2, and 3, four computing nodes are interconnected from top to bottom through the mid-backplane. Each node has a BMC (Baseboard Management Controller) and a PCH (PLATFORM CONTROLLERHUB Platform Control Center) commonly known as the South Bridge Chip, a CPLD (Complex Programmable Logic Device complex programmable logic device). The main CPLD accesses the BMC module and the PCH module in the main server node, and records the flashing times of the respective status lights according to the time set by the user in advance. The name of the PCH status light is POSTCODE LED. If the number of blinks is 120, it can be calculated that the blink rate of the BMC in the main computing node is 2 times/second.

在其中一个实施例中,所述至少一个从CPLD模块获取从服务器节点中各模块状态灯参数包括:In one of the embodiments, the at least one slave CPLD module obtains the status light parameters of each module in the slave server node including:

所述从CPLD模块记录用户设置的单位时间内所述从服务器节点中各模块的状态灯闪烁次数;The slave CPLD module records the flashing times of the status lights of each module in the slave server node within a unit time set by the user;

所述从CPLD模块根据所述状态灯闪烁次数计算出所述从服务器节点中各模块状态灯参数。The slave CPLD module calculates the status light parameters of each module in the slave server node according to the flashing times of the status lights.

具体的,主计算节点1-3中的从CPLD访问从服务器节点中的BMC模块和PCH模块,按照用户提前设置好的时间记录各自状态灯的闪烁次数,比如在一分钟内记录下PCH的状态灯POSTCODE LED的闪烁次数为150次,则可以计算出主计算节点中BMC的闪烁速率为2.5次/秒。Specifically, the slave CPLDs in the master computing nodes 1-3 access the BMC module and the PCH module in the slave server nodes, and record the flashing times of the respective status lights according to the time set by the user in advance, for example, record the PCH status within one minute. If the number of flashes of the light POSTCODE LED is 150 times, it can be calculated that the flashing rate of the BMC in the main computing node is 2.5 times/second.

在其中一个实施例中,所述主CPLD模块接收所述至少一个从CPLD模块获取的状态灯参数包括:In one embodiment, the main CPLD module receiving the at least one status light parameter obtained from the CPLD module includes:

所述主CPLD模块通过I2C通信链路接收所述至少一个从CPLD模块获取的状态灯参数。The master CPLD module receives the at least one status light parameter obtained from the CPLD module through the I2C communication link.

具体的,计算节点0的CPLD作为主设备,计算节点1,2,3的CPLD作为从设备,在中背板上进行互联,建立专有的I2C(Inter-Integrated Circuit两线式串行总线)通信链路。Specifically, the CPLD of computing node 0 is used as the master device, and the CPLDs of computing nodes 1, 2, and 3 are used as slave devices, which are interconnected on the mid-backplane to establish a dedicated I2C (Inter-Integrated Circuit two-wire serial bus) communication link.

在其中一个实施例中,所述状态参数表包括第一参数范围和第二参数范围,所述工作状态包括空闲、正常、繁忙和故障。In one embodiment, the state parameter table includes a first parameter range and a second parameter range, and the working state includes idle, normal, busy, and fault.

在其中一个实施例中,所述主CPLD模块根据所有状态灯参数和用户设置的状态参数表确定多路服务器所有模块的工作状态包括:In one embodiment, the main CPLD module determines the working status of all modules of the multi-channel server according to all status light parameters and the status parameter table set by the user, including:

当所述状态灯参数在所述第一参数范围内,确定所述工作状态为空闲;When the parameter of the status light is within the range of the first parameter, determine that the working state is idle;

当所述状态灯参数在所述第二参数范围内时,确定所述工作状态为正常;When the state light parameter is within the second parameter range, determine that the working state is normal;

当所述状态灯参数大于所述第二参数范围内时,确定所述工作状态为繁忙;When the state light parameter is greater than the second parameter range, determine that the working state is busy;

当所述状态灯参数为零时,确定所述工作状态为故障。When the state light parameter is zero, it is determined that the working state is a fault.

具体的,用户可以提前设置好状态参数表,状态参数表包括状态灯的闪烁次数和工作状态的映射关系,比如状态参数表中BMC闪烁速率可以设置成每分钟闪烁次数在1-10次为工作空闲,每分钟闪烁次数在10-30次为工作正常,每分钟闪烁次数在30-60次为工作繁忙,而当不闪烁时,确定该芯片已故障,当计算节点0中的主CPLD获取到本节点中BMC的闪烁速率为15次时,可以确定BMC工作空闲。相同节点上不同的模块比如BMC和CPLD的闪烁速率和工作状态的映射关系可以不同,根据工作的实际需求,用户可以自行设置。每个计算节点上的模块闪烁速率范围值也可以不同,比如计算节点1上BMC闪烁速率可以设置成每分钟闪烁次数在1-5次为工作空闲,每分钟闪烁次数在5-50次为工作正常,每分钟闪烁次数在50-100次为工作繁忙,而当不闪烁时,确定该芯片已故障,根据工作的实际需求,用户可以自行设置。Specifically, the user can set the status parameter table in advance. The status parameter table includes the mapping relationship between the number of flashes of the status light and the working status. For example, the BMC flashing rate in the status parameter table can be set to 1-10 flashes per minute. Idle, the number of blinks per minute is 10-30 times, it is working normally, and the number of blinks per minute is 30-60 times is busy, and when it does not blink, it is determined that the chip is faulty, when the main CPLD in the computing node 0 obtains the When the blinking rate of the BMC in this node is 15 times, it can be determined that the BMC is idle. Different modules on the same node, such as BMC and CPLD, have different mapping relationships between the blinking rate and the working state. Users can set it according to the actual needs of the work. The module blinking rate range value on each computing node can also be different. For example, the BMC blinking rate on compute node 1 can be set to 1-5 blinks per minute as idle, and 5-50 blinks per minute as working Normally, the number of flashes per minute is 50-100 times, which means that the work is busy, and when it does not flash, it is determined that the chip is faulty. According to the actual needs of the work, the user can set it by himself.

在其中一个实施例中,所述方法还包括:In one embodiment, the method further includes:

根据所述主CPLD根据所述工作状态生成协议帧,发送所述协议帧到串口屏。According to the main CPLD, the protocol frame is generated according to the working state, and the protocol frame is sent to the serial screen.

具体的,生成的所述协议帧可以如图2所示,所述协议帧包括帧头、所有节点中BMC工作状态、PCH工作状态、CPLD工作状态、帧尾。另外,串口屏可以按照不同的工作状态显示不同颜色的等,比如确定BMC空闲时则可以显示BMC对应的灯为蓝色等。Specifically, the generated protocol frame may be as shown in FIG. 2 , and the protocol frame includes a frame header, a BMC working state in all nodes, a PCH working state, a CPLD working 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 corresponding light of the BMC can be displayed as blue.

上述基于CPLD的多路服务器状态检测装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Each module in the above-mentioned CPLD-based multi-channel server state detection device can be implemented in whole or in part by software, hardware and combinations thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

在一个实施例中,如图3所示,本发明提供提供一种基于CPLD的检测方法,其特征在于,所述多路服务器构成多个服务器节点,每个服务器节点包括至少一路服务器,所述方法包括:In one embodiment, as shown in FIG. 3 , the present invention provides a detection method based on CPLD, characterized in that the multi-channel server constitutes a plurality of server nodes, each server node includes at least one server, the Methods include:

S301、主CPLD模块获取主服务器节点中各模块状态灯参数;S301, the main CPLD module obtains the status light parameters of each module in the main server node;

S302、至少一个从CPLD模块获取从服务器节点中各模块状态灯参数,其中各从服务器节点中均包括至少一个从CPLD模块;S302, at least one slave CPLD module obtains the status light parameters of each module in the slave server node, wherein each slave server node includes at least one slave CPLD module;

S303、主CPLD模块接收所述至少一个从CPLD模块获取的状态灯参数;S303, the main CPLD module receives the at least one status light parameter obtained from the CPLD module;

S304、主CPLD模块根据所有状态灯参数和用户设置的状态参数表确定多路服务器所有模块的工作状态。S304, the main CPLD module determines the working status of all modules of the multi-channel server according to all the status light parameters and the status parameter table set by the user.

在其中一个实施例中,所述主CPLD模块获取主服务器节点中各模块状态灯参数包括:In one embodiment, the acquisition of the status light parameters of each module in the main server node by the main CPLD module includes:

所述主CPLD模块记录用户设置的单位时间内所述主服务器节点中各模块的状态灯闪烁次数;The main CPLD module records the flashing times of the status lights of each module in the main server node within the unit time set by the user;

所述主CPLD模块根据所述状态灯闪烁次数计算出所述主服务器节点中各模块状态灯参数。The main CPLD module calculates the status light parameters of each module in the main server node according to the flashing times of the status light.

在其中一个实施例中,所述至少一个从CPLD模块获取从服务器节点中各模块状态灯参数包括:In one of the embodiments, the at least one slave CPLD module obtains the status light parameters of each module in the slave server node including:

所述从CPLD模块记录用户设置的单位时间内所述从服务器节点中各模块的状态灯闪烁次数;The slave CPLD module records the flashing times of the status lights of each module in the slave server node within a unit time set by the user;

所述从CPLD模块根据所述状态灯闪烁次数计算出所述从服务器节点中各模块状态灯参数。The slave CPLD module calculates the status light parameters of each module in the slave server node according to the flashing times of the status lights.

在其中一个实施例中,所述主CPLD模块接收所述至少一个从CPLD模块获取的状态灯参数包括:In one embodiment, the main CPLD module receiving the at least one status light parameter obtained from the CPLD module includes:

所述主CPLD模块通过I2C通信链路接收所述至少一个从CPLD模块获取的状态灯参数。The master CPLD module receives the at least one status light parameter obtained from the CPLD module through the I2C communication link.

在其中一个实施例中,所述状态参数表包括第一参数范围和第二参数范围,所述工作状态包括空闲、正常、繁忙和故障。In one embodiment, the state parameter table includes a first parameter range and a second parameter range, and the working state includes idle, normal, busy, and fault.

在其中一个实施例中,所述主CPLD模块根据所有状态灯参数和用户设置的状态参数表确定多路服务器所有模块的工作状态包括:In one embodiment, the main CPLD module determines the working status of all modules of the multi-channel server according to all status light parameters and the status parameter table set by the user, including:

当所述状态灯参数在所述第一参数范围内,确定所述工作状态为空闲;When the parameter of the status light is within the range of the first parameter, determine that the working state is idle;

当所述状态灯参数在所述第二参数范围内时,确定所述工作状态为正常;When the state light parameter is within the second parameter range, determine that the working state is normal;

当所述状态灯参数大于所述第二参数范围内时,确定所述工作状态为繁忙;When the state light parameter is greater than the second parameter range, determine that the working state is busy;

当所述状态灯参数为零时,确定所述工作状态为故障。When the state light parameter is zero, it is determined that the working state is a fault.

在其中一个实施例中,所述方法还包括:In one embodiment, the method further includes:

所述主CPLD根据所述工作状态生成协议帧,发送所述协议帧到串口屏。The main CPLD generates a protocol frame according to the working state, and sends the protocol frame to the serial screen.

本申请的方案有如下有益效果:The scheme of the present application has the following beneficial effects:

1)通过分析各节点CPLD获取的节点中各模块状态灯状态,可以快速判断出多路服务器中各节点中所有模块的工作状态,减轻维护人员工作压力;1) By analyzing the status light status of each module in the node obtained by the CPLD of each node, the working status of all modules in each node in the multi-channel server can be quickly judged, reducing the work pressure of maintenance personnel;

2)通过使用多个CPLD之间的I2C通信链路,实现无需另外布线的同时就能判断出不方便查看的节点中模块的工作状态。2) By using the I2C communication link between multiple CPLDs, it is possible to judge the working status of the modules in the nodes that are inconvenient to view without additional wiring.

应该理解的是,虽然图3的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图3中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the steps in the flowchart of FIG. 3 are sequentially displayed according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in FIG. 3 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but may be executed at different times. The execution of these sub-steps or stages The sequence is also not necessarily sequential, but may be performed alternately or alternately with other steps or sub-steps of other steps or at least a portion of a phase.

关于基于CPLD的检测方法的具体限定可以参见上文中对于基于CPLD的检测装置的限定,在此不再赘述。For the specific limitation of the detection method based on CPLD, please refer to the limitation on the detection device based on CPLD above, which will not be repeated here.

在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图4所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现基于CPLD的检测方法。该计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In one embodiment, a computer device is provided, and the computer device may be a terminal, and its internal structure diagram may be as shown in FIG. 4 . The computer equipment includes a processor, memory, a network interface, a display screen, and an input device connected by a system bus. Among them, 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, an internal memory. The nonvolatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer program, when executed by the processor, implements the detection method based on the CPLD. The display screen of the computer equipment may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment may be a touch layer covered on the display screen, or a button, a trackball or a touchpad set on the shell of the computer equipment , or an external keyboard, trackpad, or mouse.

本领域技术人员可以理解,图4中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 4 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than shown in the figures, or 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 in the memory and executable on the processor, the processor implements the following steps when executing the computer program:

主CPLD模块获取主服务器节点中各模块状态灯参数;The main CPLD module obtains the status light parameters of each module in the main server node;

至少一个从CPLD模块获取从服务器节点中各模块状态灯参数,其中各从服务器节点中均包括至少一个从CPLD模块;At least one slave CPLD module obtains the status light parameters of each module in the slave server node, wherein each slave server node includes at least one slave CPLD module;

主CPLD模块接收所述至少一个从CPLD模块获取的状态灯参数;The main CPLD module receives the at least one status light parameter obtained from the CPLD module;

主CPLD模块根据所有状态灯参数和用户设置的状态参数表确定多路服务器所有模块的工作状态。The main CPLD module determines the working status of all modules of the multi-channel server according to all the status light parameters and the status parameter table set by the user.

在其中一个实施例中,所述处理器执行所述计算机程序时实现以下步骤:In one of the embodiments, the processor implements the following steps when executing the computer program:

所述主CPLD模块获取主服务器节点中各模块状态灯参数包括:The main CPLD module obtains the parameters of the status lights of each module in the main server node, including:

所述主CPLD模块记录用户设置的单位时间内所述主服务器节点中各模块的状态灯闪烁次数;The main CPLD module records the flashing times of the status lights of each module in the main server node within the unit time set by the user;

所述主CPLD模块根据所述状态灯闪烁次数计算出所述主服务器节点中各模块状态灯参数。The main CPLD module calculates the status light parameters of each module in the main server node according to the flashing times of the status light.

在其中一个实施例中,所述处理器执行所述计算机程序时实现以下步骤:In one of the embodiments, the processor implements the following steps when executing the computer program:

所述至少一个从CPLD模块获取从服务器节点中各模块状态灯参数包括:The at least one slave CPLD module obtains the status light parameters of each module in the slave server node including:

所述从CPLD模块记录用户设置的单位时间内所述从服务器节点中各模块的状态灯闪烁次数;The slave CPLD module records the flashing times of the status lights of each module in the slave server node within a unit time set by the user;

所述从CPLD模块根据所述状态灯闪烁次数计算出所述从服务器节点中各模块状态灯参数。The slave CPLD module calculates the status light parameters of each module in the slave server node according to the flashing times of the status lights.

在其中一个实施例中,所述处理器执行所述计算机程序时实现以下步骤:In one of the embodiments, the processor implements the following steps when executing the computer program:

所述主CPLD模块接收所述至少一个从CPLD模块获取的状态灯参数包括:The main CPLD module receives the at least one status light parameter obtained from the CPLD module including:

所述主CPLD模块通过I2C通信链路接收所述至少一个从CPLD模块获取的状态灯参数。The master CPLD module receives the at least one status light parameter obtained from the CPLD module through the I2C communication link.

在其中一个实施例中,所述处理器执行所述计算机程序时实现以下步骤:In one of the embodiments, the processor implements the following steps when executing the computer program:

所述状态参数表包括第一参数范围和第二参数范围,所述工作状态包括空闲、正常、繁忙和故障。The state parameter table includes a first parameter range and a second parameter range, and the working state includes idle, normal, busy, and fault.

在其中一个实施例中,所述处理器执行所述计算机程序时实现以下步骤:In one of the embodiments, the processor implements the following steps when executing the computer program:

所述主CPLD模块根据所有状态灯参数和用户设置的状态参数表确定多路服务器所有模块的工作状态包括:The main CPLD module determines the working states of all modules of the multi-channel server according to all the state light parameters and the state parameter table set by the user, including:

当所述状态灯参数在所述第一参数范围内,确定所述工作状态为空闲;When the parameter of the status light is within the range of the first parameter, determine that the working state is idle;

当所述状态灯参数在所述第二参数范围内时,确定所述工作状态为正常;When the state light parameter is within the second parameter range, determine that the working state is normal;

当所述状态灯参数大于所述第二参数范围内时,确定所述工作状态为繁忙;When the state light parameter is greater than the second parameter range, determine that the working state is busy;

当所述状态灯参数为零时,确定所述工作状态为故障。When the state light parameter is zero, it is determined that the working state is a fault.

在其中一个实施例中,所述处理器执行所述计算机程序时实现以下步骤:In one of the embodiments, the processor implements the following steps when executing the computer program:

所述方法还包括:The method also includes:

所述主CPLD根据所述工作状态生成协议帧,发送所述协议帧到串口屏。The main CPLD generates a protocol frame according to the working state, and sends the protocol frame to the serial screen.

在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:In one embodiment, there is provided a computer-readable storage medium on which a computer program is stored, the computer program implementing the following steps when executed by a processor:

主CPLD模块获取主服务器节点中各模块状态灯参数;The main CPLD module obtains the status light parameters of each module in the main server node;

至少一个从CPLD模块获取从服务器节点中各模块状态灯参数,其中各从服务器节点中均包括至少一个从CPLD模块;At least one slave CPLD module obtains the status light parameters of each module in the slave server node, wherein each slave server node includes at least one slave CPLD module;

主CPLD模块接收所述至少一个从CPLD模块获取的状态灯参数;The main CPLD module receives the at least one status light parameter obtained from the CPLD module;

主CPLD模块根据所有状态灯参数和用户设置的状态参数表确定多路服务器所有模块的工作状态。The main CPLD module determines the working status of all modules of the multi-channel server according to all the status light parameters and the status parameter table set by the user.

在其中一个实施例中,所述计算机程序被处理器执行时实现以下步骤:In one embodiment, the computer program, when executed by the processor, implements the following steps:

所述主CPLD模块获取主服务器节点中各模块状态灯参数包括:The main CPLD module obtains the parameters of the status lights of each module in the main server node, including:

所述主CPLD模块记录用户设置的单位时间内所述主服务器节点中各模块的状态灯闪烁次数;The main CPLD module records the flashing times of the status lights of each module in the main server node within the unit time set by the user;

所述主CPLD模块根据所述状态灯闪烁次数计算出所述主服务器节点中各模块状态灯参数。The main CPLD module calculates the status light parameters of each module in the main server node according to the flashing times of the status light.

在其中一个实施例中,所述计算机程序被处理器执行时实现以下步骤:In one embodiment, the computer program, when executed by the processor, implements the following steps:

所述至少一个从CPLD模块获取从服务器节点中各模块状态灯参数包括:The at least one slave CPLD module obtains the status light parameters of each module in the slave server node including:

所述从CPLD模块记录用户设置的单位时间内所述从服务器节点中各模块的状态灯闪烁次数;The slave CPLD module records the flashing times of the status lights of each module in the slave server node within a unit time set by the user;

所述从CPLD模块根据所述状态灯闪烁次数计算出所述从服务器节点中各模块状态灯参数。The slave CPLD module calculates the status light parameters of each module in the slave server node according to the flashing times of the status lights.

在其中一个实施例中,所述计算机程序被处理器执行时实现以下步骤:In one embodiment, the computer program, when executed by the processor, implements the following steps:

所述主CPLD模块接收所述至少一个从CPLD模块获取的状态灯参数包括:The main CPLD module receives the at least one status light parameter obtained from the CPLD module including:

所述主CPLD模块通过I2C通信链路接收所述至少一个从CPLD模块获取的状态灯参数。The master CPLD module receives the at least one status light parameter obtained from the CPLD module through the I2C communication link.

在其中一个实施例中,所述计算机程序被处理器执行时实现以下步骤:In one embodiment, the computer program, when executed by the processor, implements the following steps:

所述状态参数表包括第一参数范围和第二参数范围,所述工作状态包括空闲、正常、繁忙和故障。The state parameter table includes a first parameter range and a second parameter range, and the working state includes idle, normal, busy, and fault.

在其中一个实施例中,所述计算机程序被处理器执行时实现以下步骤:In one embodiment, the computer program, when executed by the processor, implements the following steps:

所述主CPLD模块根据所有状态灯参数和用户设置的状态参数表确定多路服务器所有模块的工作状态包括:The main CPLD module determines the working states of all modules of the multi-channel server according to all the state light parameters and the state parameter table set by the user, including:

当所述状态灯参数在所述第一参数范围内,确定所述工作状态为空闲;When the parameter of the status light is within the range of the first parameter, determine that the working state is idle;

当所述状态灯参数在所述第二参数范围内时,确定所述工作状态为正常;When the state light parameter is within the second parameter range, determine that the working state is normal;

当所述状态灯参数大于所述第二参数范围内时,确定所述工作状态为繁忙;When the state light parameter is greater than the second parameter range, determine that the working state is busy;

当所述状态灯参数为零时,确定所述工作状态为故障。When the state light parameter is zero, it is determined that the working state is a fault.

在其中一个实施例中,所述计算机程序被处理器执行时实现以下步骤:In one embodiment, the computer program, when executed by the processor, implements the following steps:

所述方法还包括:The method also includes:

所述主CPLD根据所述工作状态生成协议帧,发送所述协议帧到串口屏。The main CPLD generates a protocol frame according to the working state, and sends the protocol frame to the serial screen.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage In the medium, when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other medium used in the various embodiments provided in this application may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features It is considered to be the range described in this specification.

以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present application, and the descriptions thereof are specific and detailed, but should not be construed as a limitation on the scope of the invention patent. It should be pointed out that for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the patent of the present application shall be subject to the appended claims.

Claims (10)

1.一种基于CPLD的检测装置,其特征在于,所述多路服务器构成多个服务器节点,每个服务器节点包括至少一路服务器,所述检测装置包括:1. a detection device based on CPLD, is characterized in that, described multi-channel server constitutes a plurality of server nodes, and each server node comprises at least one server, and described detection device comprises: 主CPLD模块,用于获取主服务器节点中各模块状态灯参数;The main CPLD module is used to obtain the status light parameters of each module in the main server node; 至少一个从CPLD模块,用于获取从服务器节点中各模块状态灯参数,其中各从服务器节点中均包括至少一个从CPLD模块;At least one slave CPLD module, used to obtain the status light parameters of each module in the slave server node, wherein each slave server node includes at least one slave CPLD module; 主CPLD模块,还用于接收所述至少一个从CPLD模块获取的状态灯参数,并根据所有状态灯参数和用户设置的状态参数表确定多路服务器所有模块的工作状态。The main CPLD module is further configured to receive the at least one status light parameter obtained from the CPLD module, and determine the working status of all modules of the multi-channel server according to all the status light parameters and the status parameter table set by the user. 2.一种基于CPLD的检测方法,其特征在于,所述多路服务器构成多个服务器节点,每个服务器节点包括至少一路服务器,所述方法包括:2. a detection method based on CPLD, is characterized in that, described multi-way server constitutes a plurality of server nodes, and each server node comprises at least one way server, and described method comprises: 主CPLD模块获取主服务器节点中各模块状态灯参数;The main CPLD module obtains the status light parameters of each module in the main server node; 至少一个从CPLD模块获取从服务器节点中各模块状态灯参数,其中各从服务器节点中均包括至少一个从CPLD模块;At least one slave CPLD module obtains the status light parameters of each module in the slave server node, wherein each slave server node includes at least one slave CPLD module; 主CPLD模块接收所述至少一个从CPLD模块获取的状态灯参数;The main CPLD module receives the at least one status light parameter obtained from the CPLD module; 主CPLD模块根据所有状态灯参数和用户设置的状态参数表确定多路服务器所有模块的工作状态。The main CPLD module determines the working status of all modules of the multi-channel server according to all the status light parameters and the status parameter table set by the user. 3.根据权利要求2所述的方法,其特征在于,所述主CPLD模块获取主服务器节点中各模块状态灯参数包括:3. The method according to claim 2, wherein the acquisition of each module status light parameter in the main server node by the main CPLD module comprises: 所述主CPLD模块记录用户设置的单位时间内所述主服务器节点中各模块的状态灯闪烁次数;The main CPLD module records the flashing times of the status lights of each module in the main server node within the unit time set by the user; 所述主CPLD模块根据所述状态灯闪烁次数计算出所述主服务器节点中各模块状态灯参数。The main CPLD module calculates the status light parameters of each module in the main server node according to the flashing times of the status light. 4.根据权利要求2所述的方法,其特征在于,所述至少一个从CPLD模块获取从服务器节点中各模块状态灯参数包括:4. method according to claim 2, is characterized in that, described at least one obtains each module status light parameter from server node from CPLD module comprises: 所述从CPLD模块记录用户设置的单位时间内所述从服务器节点中各模块的状态灯闪烁次数;The slave CPLD module records the flashing times of the status lights of each module in the slave server node within a unit time set by the user; 所述从CPLD模块根据所述状态灯闪烁次数计算出所述从服务器节点中各模块状态灯参数。The slave CPLD module calculates the status light parameters of each module in the slave server node according to the flashing times of the status lights. 5.根据权利要求2所述的方法,其特征在于,所述主CPLD模块接收所述至少一个从CPLD模块获取的状态灯参数包括:5. method according to claim 2, is characterized in that, described main CPLD module receives described at least one state lamp parameter obtained from CPLD module comprises: 所述主CPLD模块通过I2C通信链路接收所述至少一个从CPLD模块获取的状态灯参数。The master CPLD module receives the at least one status light parameter obtained from the CPLD module through the I2C communication link. 6.根据权利要求2所述的方法,其特征在于,所述状态参数表包括第一参数范围和第二参数范围,所述工作状态包括空闲、正常、繁忙和故障。6. The method according to claim 2, wherein the state parameter table includes a first parameter range and a second parameter range, and the working state includes idle, normal, busy and fault. 7.根据权利要求6所述的方法,其特征在于,所述主CPLD模块根据所有状态灯参数和用户设置的状态参数表确定多路服务器所有模块的工作状态包括:7. method according to claim 6, is characterized in that, described main CPLD module confirms the working state of all modules of multi-way server according to all state light parameters and the state parameter table that user sets comprises: 当所述状态灯参数在所述第一参数范围内,确定所述工作状态为空闲;When the parameter of the status light is within the range of the first parameter, determine that the working state is idle; 当所述状态灯参数在所述第二参数范围内时,确定所述工作状态为正常;When the state light parameter is within the second parameter range, determine that the working state is normal; 当所述状态灯参数大于所述第二参数范围内时,确定所述工作状态为繁忙;When the state light parameter is greater than the second parameter range, determine that the working state is busy; 当所述状态灯参数为零时,确定所述工作状态为故障。When the state light parameter is zero, it is determined that the working state is a fault. 8.根据权利要求2所述的方法,其特征在于,所述方法还包括:8. The method according to claim 2, wherein the method further comprises: 所述主CPLD根据所述工作状态生成协议帧,发送所述协议帧到串口屏。The main CPLD generates a protocol frame according to the working state, and sends the protocol frame to the serial screen. 9.一种电子设备,其特征在于,包括:9. An electronic device, characterized in that, comprising: 一个或多个处理器;以及与所述一个或多个处理器关联的存储器,所述存储器用于存储程序指令,所述程序指令在被所述一个或多个处理器读取执行时,执行如权利要求2~8中任一所述的方法。one or more processors; and memory associated with the one or more processors for storing program instructions that, when read by the one or more processors, execute The method according to any one of claims 2-8. 10.一种计算机存储介质,其特征在于,其上存储有计算机程序,其中,该程序被处理器执行时实现如权利要求2~8中任一所述的方法。10. A computer storage medium, characterized in that a computer program is stored thereon, wherein when the program is executed by a processor, the method according to any one of claims 2 to 8 is implemented.
CN202210476706.XA 2022-04-30 2022-04-30 CPLD-based detection device and method, electronic device and storage medium Pending CN114840383A (en)

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)

Similar Documents

Publication Publication Date Title
CN106603265B (en) Management method, network device, and non-transitory computer-readable medium
US20140195711A1 (en) Pci express channel implementation in intelligent platform management interface stack
CN102622279B (en) Redundancy control system, method and Management Controller
CN114003445B (en) BMC I2C monitoring function test method, system, terminal and storage medium
CN112187933B (en) Method and system for monitoring services in a multi-architecture cloud platform
CN104503932A (en) Method and system for judging master baseboard management controller of multi-mainboard server
CN111581043A (en) Server power consumption monitoring method and device and server
JP5307151B2 (en) Changing system routing information in link-based systems
WO2023226197A1 (en) Cloud native storage method and apparatus based on kubernetes, and device and medium
WO2024120169A1 (en) Server, server asset information acquisition method and apparatus, and server asset information providing method and apparatus
CN118214648A (en) A dual-machine hot standby management method and computing device
EP4453742A1 (en) System, method, apparatus and architecture for dynamically configuring device fabrics
CN114840383A (en) CPLD-based detection device and method, electronic device and storage medium
JP7640146B2 (en) Parameter configuration method and system for graphics programs and vehicle development debug system
US11416352B2 (en) System and method for logic functional redundancy
CN109558300B (en) Whole cabinet alarm processing method and device, terminal and storage medium
CN115686896A (en) Extended memory error processing method, system, electronic device and storage medium
CN115599617B (en) Bus detection method, device, server and electronic equipment
CN105763366A (en) Method and device for realizing data communication based on aggregation link
WO2023137963A1 (en) Pcie device positioning method and apparatus, and related device
TW202134900A (en) Server and control method thereof
CN108664371A (en) A kind of method and device of multi-hardware system unified management
CN114020561B (en) Fault reporting method, system, device, computer equipment and storage medium
CN119356975A (en) A method, device, equipment and medium for reporting server asset information
CN120111015A (en) Switch, switch management method, device and medium

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