CN117076214A - Method, system, terminal and medium for detecting dial fool-proof of hard disk backboard of server - Google Patents

Method, system, terminal and medium for detecting dial fool-proof of hard disk backboard of server Download PDF

Info

Publication number
CN117076214A
CN117076214A CN202310941960.7A CN202310941960A CN117076214A CN 117076214 A CN117076214 A CN 117076214A CN 202310941960 A CN202310941960 A CN 202310941960A CN 117076214 A CN117076214 A CN 117076214A
Authority
CN
China
Prior art keywords
hard disk
backplane
positioning light
status
slot
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
CN202310941960.7A
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 CN202310941960.7A priority Critical patent/CN117076214A/en
Publication of CN117076214A publication Critical patent/CN117076214A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本发明涉及硬盘背板配置检测领域,具体公开一种服务器硬盘背板拨码防呆检测方法、系统、终端及介质,向待测硬盘背板发送包含待点亮定位灯的硬盘槽位标识硬盘定位灯点亮指令;待测硬盘背板根据拨码状态与硬盘槽位的对应关系,匹配到硬盘槽位标识对应的硬盘槽位;控制所匹配到硬盘槽位的定位灯点亮;查询所有硬盘背板的硬盘物理端口的定位灯状态;判断各个硬盘物理端口的定位灯状态与期望状态是否一致,若一致则硬盘背板拨码配置正常,否则硬盘背板拨码配置异常。本发明自动控制硬盘定位灯点亮,查询定位灯的状态是否符合预期,来自动判断硬盘背板定位灯功能是否正常,进而判定拨码配置是否正确,提高拨码检测效率,适用于大批量硬盘背板检测。

The invention relates to the field of hard disk backplane configuration detection, and specifically discloses a server hard disk backplane dial code foolproof detection method, system, terminal and medium, which sends a hard disk slot identification hard disk containing a positioning light to be lit to the hard disk backplane to be tested. Positioning light lighting command; the hard disk backplane to be tested is matched to the hard disk slot corresponding to the hard disk slot identification according to the corresponding relationship between the dialing status and the hard disk slot; the positioning light of the matched hard disk slot is controlled to light up; query all Check the positioning light status of the hard disk physical port on the hard disk backplane; determine whether the positioning light status of each hard disk physical port is consistent with the expected status. If they are consistent, the hard disk backplane dialing configuration is normal, otherwise the hard disk backplane dialing configuration is abnormal. The invention automatically controls the hard disk positioning light to light up, checks whether the status of the positioning light meets expectations, and automatically determines whether the function of the hard disk backplane positioning light is normal, and then determines whether the dialing configuration is correct, improves the dialing detection efficiency, and is suitable for large quantities of hard disks. Backplane detection.

Description

服务器硬盘背板拨码防呆检测方法、系统、终端及介质Server hard disk backplane dial code fool-proof detection method, system, terminal and media

技术领域Technical field

本发明涉及硬盘背板配置检测领域,具体涉及一种服务器硬盘背板拨码防呆检测方法、系统、终端及介质。The invention relates to the field of hard disk backplane configuration detection, and specifically relates to a server hard disk backplane dial code fool-proof detection method, system, terminal and medium.

背景技术Background technique

硬盘(SAS_SATA)背板可以支持直连板载PCH使用、级联expander背板(前置级联、中置级联、后置级联)使用、搭配非expander背板使用等,为了支持多场景应用,降低物料呆滞成本以及提高产品可复用性,不同应用场景要对硬盘背板进行不同拨码设置以满足盘序识别以及定位灯点灯功能,每个拨码状态对应一个应用场景,进而对应一组盘序序列。The hard disk (SAS_SATA) backplane can support direct connection to the onboard PCH, use of cascade expander backplanes (front cascade, middle cascade, rear cascade), use with non-expander backplanes, etc., in order to support multiple scenarios Application, reduce material cost and improve product reusability. Different application scenarios require different dialing settings for the hard disk backplane to meet the disk sequence identification and positioning light lighting functions. Each dialing status corresponds to an application scenario, and then corresponds to A set of disk sequences.

在生产工艺中要求硬盘(SAS_SATA)背板应该按照BOM中配置信息进行拨码设置,拨码设置一般是指对物理光码进行配置,但此工艺较为繁琐,实际装配过程中可能会由于作业人员对工艺解读错误或者人为漏失导致拨码错误不符合工艺要求。拨码错误时并不会影响硬盘的识别和读写功能,但是会影响硬盘定位灯点亮及硬盘定位,如定位灯点不亮或者点亮一个槽位结果多个槽位都亮,为后期出货后的产品维修留下质量隐患。In the production process, it is required that the hard disk (SAS_SATA) backplane should be dialed and set according to the configuration information in the BOM. The dialing setting generally refers to configuring the physical optical code. However, this process is relatively cumbersome, and the actual assembly process may cause problems due to the operator Errors in process interpretation or human errors lead to coding errors that do not meet process requirements. Dipping errors will not affect the identification and reading and writing functions of the hard disk, but will affect the lighting of the hard disk positioning light and the positioning of the hard disk. For example, if the positioning light does not light up or if one slot is turned on and multiple slots light up, it will be a problem for the later stage. Product maintenance after shipment leaves quality hazards.

硬盘(SAS_SATA)背板拨码错误时,通过开盖检查拨码开关状态,或者通过驱动定位灯点亮并人工确认亮灯是否符合预期的方法可以识别,但此方法依赖产线作业员经验且不防呆,效率也较低,并不适合在工厂端批量操作。When the hard disk (SAS_SATA) backplane DIP is wrong, it can be identified by opening the cover and checking the status of the DIP switch, or by driving the positioning light to light up and manually confirming whether the light is as expected, but this method relies on the experience of the production line operator and It is not fool-proof, has low efficiency, and is not suitable for batch operations at the factory.

发明内容Contents of the invention

为解决上述问题,本发明提供一种服务器硬盘背板拨码防呆检测方法、系统、终端及介质,自动驱动硬盘背板槽位控制硬盘定位灯点亮或熄灭,再查询定位灯的状态是否符合预期,来自动判断硬盘背板定位灯功能是否正常,进而判定拨码配置是否正确,提高拨码检测效率,适用于大批量硬盘背板检测。In order to solve the above problems, the present invention provides a server hard disk backplane dial code anti-fool detection method, system, terminal and medium, which automatically drives the hard disk backplane slot to control the hard disk positioning light to turn on or off, and then checks whether the status of the positioning light is In line with expectations, it can automatically determine whether the hard drive backplane positioning light function is normal, and then determine whether the dialing configuration is correct, improve the dialing detection efficiency, and is suitable for large-volume hard drive backplane detection.

第一方面,本发明的技术方案提供一种服务器硬盘背板拨码防呆检测方法,包括以下步骤:In the first aspect, the technical solution of the present invention provides a server hard disk backplane dial code foolproof detection method, which includes the following steps:

控制所有硬盘背板的硬盘定位灯熄灭;Control the hard drive positioning lights on all hard drive backplanes to turn off;

向待测硬盘背板发送硬盘定位灯点亮指令,所述硬盘定位灯点亮指令中包含待点亮定位灯的硬盘槽位标识;Send a hard disk positioning light lighting instruction to the hard disk under test backplane, and the hard disk positioning light lighting instruction includes the hard disk slot identification of the positioning light to be turned on;

待测硬盘背板响应硬盘定位灯点亮指令,查询拨码状态,根据拨码状态与硬盘槽位的对应关系,匹配到硬盘槽位标识对应的硬盘槽位;The backplane of the hard disk under test responds to the hard disk positioning light lighting command, queries the dialing status, and matches the hard disk slot corresponding to the hard disk slot identification according to the correspondence between the dialing status and the hard disk slot;

控制所匹配到的硬盘槽位的定位灯点亮;Control the positioning light of the matched hard disk slot to light up;

响应于定位灯点亮操作执行完成,查询所有硬盘背板的硬盘物理端口的定位灯状态;In response to the completion of the positioning light lighting operation, query the positioning light status of the hard disk physical ports of all hard disk backplanes;

判断各个硬盘物理端口的定位灯状态与期望状态是否一致,若一致则硬盘背板拨码配置正常,否则硬盘背板拨码配置异常。Determine whether the positioning light status of each hard disk physical port is consistent with the expected status. If they are consistent, the hard disk backplane dialing configuration is normal. Otherwise, the hard disk backplane dialing configuration is abnormal.

在一个可选的实施方式中,控制所有硬盘背板的硬盘定位灯熄灭之前,还包括以下步骤:In an optional implementation, before controlling the hard disk positioning lights of all hard disk backplanes to turn off, the following steps are also included:

解析物料清单中的硬盘背板搭配关系;Analyze the matching relationship between hard disk backplanes in the bill of materials;

根据物料清单中的硬盘背板搭配关系,配置硬盘槽位标识与硬盘物理端口的标准对应关系。According to the hard disk backplane matching relationship in the bill of materials, configure the standard correspondence between the hard disk slot identification and the hard disk physical port.

在一个可选的实施方式中,解析物理清单中的背板搭配关系之后,还包括以下步骤:In an optional implementation, after parsing the backplane matching relationship in the physical inventory, the following steps are also included:

根据物料清单中的背板搭配关系,筛选出待点亮定位灯的各个硬盘槽位标识;According to the backplane matching relationship in the bill of materials, select the hard drive slot identifiers to be lit with positioning lights;

对筛选出的待点亮定位灯的各个硬盘槽位标识进行排序。Sort the hard drive slot IDs that are selected to be lit with positioning lights.

在一个可选的实施方式中,控制所有硬盘背板的硬盘定位灯熄灭之后,该方法具体包括以下步骤:In an optional implementation, after controlling the hard disk positioning lights of all hard disk backplanes to go out, the method specifically includes the following steps:

向待测硬盘背板发送包含第一个硬盘槽位标识的硬盘定位灯点亮指令,根据硬盘槽位标识与硬盘物理端口的标准对应关系,配置硬盘物理端口当前各个定位灯状态的期望状态;Send the hard disk positioning light lighting instruction containing the first hard disk slot identification to the hard disk under test backplane, and configure the desired status of each positioning light status of the hard disk physical port according to the standard correspondence between the hard disk slot identification and the hard disk physical port;

待测硬盘背板响应于接收到包含第一个硬盘槽位标识的硬盘定位灯点亮指令,查询拨码状态,根据拨码状态与硬盘槽位的对应关系,匹配到第一个硬盘槽位标识对应的硬盘槽位;The hard drive backplane under test responds to receiving the hard drive positioning light lighting instruction containing the first hard drive slot identification, queries the dialing status, and matches the first hard drive slot based on the correspondence between the dialing status and the hard drive slot. Identify the corresponding hard disk slot;

控制所匹配到的硬盘槽位的定位灯点亮;Control the positioning light of the matched hard disk slot to light up;

响应于第一个定位灯点亮操作执行完成,查询所有硬盘背板的硬盘物理端口的定位灯状态;In response to the completion of the first positioning light lighting operation, query the positioning light status of the hard disk physical ports of all hard disk backplanes;

判断各个硬盘物理端口的定位灯状态与期望状态是否一致;Determine whether the positioning light status of each hard disk physical port is consistent with the expected status;

若一致,则判断筛选出的所有硬盘槽位标识是否已全部测试完成,若否,则向待测硬盘背板发送包含第二个硬盘槽位标识的硬盘定位灯点亮指令,若是,则判定硬盘背板拨码配置正常,同时控制所有硬盘背板的硬盘定位灯熄灭;If they are consistent, it is judged whether all the screened hard disk slot identifications have been tested. If not, a hard disk positioning light lighting instruction containing the second hard disk slot identification is sent to the hard disk backplane to be tested. If so, it is judged. The hard disk backplane dialing configuration is normal, and the hard disk positioning lights controlling all hard disk backplanes are turned off at the same time;

若不一致,则判定硬盘背板拨码配置异常,同时控制所有硬盘背板的硬盘定位灯熄灭。If they are inconsistent, it is determined that the hard disk backplane DIP configuration is abnormal, and the hard disk positioning lights of all hard disk backplanes are controlled to turn off.

在一个可选的实施方式中,向待测硬盘背板发送硬盘定位灯点亮指令,具体为:In an optional implementation, a hard disk positioning light lighting instruction is sent to the hard disk backplane under test, specifically as follows:

向待测硬盘背板上的复杂可编程逻辑器件发送硬盘定位灯点亮指令;Send the hard disk positioning light lighting instruction to the complex programmable logic device on the backplane of the hard disk under test;

待测硬盘背板响应硬盘定位灯点亮指令,查询拨码状态,根据拨码状态与硬盘槽位的对应关系,匹配到硬盘槽位标识对应的硬盘槽位,控制所匹配到的硬盘槽位的定位灯点亮,具体为:The backplane of the hard disk under test responds to the hard disk positioning light lighting command, queries the dialing status, and matches the hard disk slot corresponding to the hard disk slot identification according to the correspondence between the dialing status and the hard disk slot, and controls the matched hard disk slot. The positioning light is on, specifically:

待测硬盘背板上的复杂可编程逻辑器件响应硬盘定位灯点亮指令,查询拨码状态,根据拨码状态与硬盘槽位的对应关系,匹配到硬盘槽位标识对应的硬盘槽位;The complex programmable logic device on the backplane of the hard disk under test responds to the hard disk positioning light lighting command, queries the dialing status, and matches the hard disk slot corresponding to the hard disk slot identification according to the corresponding relationship between the dialing status and the hard disk slot;

输出相应高低电平状态的脉冲信号到所匹配到的硬盘槽位,控制相应定位灯点亮。Output corresponding high and low level pulse signals to the matched hard disk slot, and control the corresponding positioning light to light up.

在一个可选的实施方式中,配置硬盘槽位标识与硬盘物理端口的标准对应关系之后,还包括以下步骤:In an optional implementation, after configuring the standard correspondence between the hard disk slot identifier and the hard disk physical port, the following steps are also included:

配置硬盘物理端口与硬盘背板的寄存器状态字节的对应关系。Configure the corresponding relationship between the hard disk physical port and the register status byte of the hard disk backplane.

在一个可选的实施方式中,响应于定位灯点亮操作执行完成,查询所有硬盘背板的硬盘物理端口的定位灯状态,具体包括:In an optional implementation, in response to the completion of the positioning light lighting operation, query the positioning light status of the hard disk physical ports of all hard disk backplanes, specifically including:

响应于定位灯点亮操作执行完成,待测硬盘背板上的复杂可编程逻辑器件获取所有硬盘背板的硬盘物理端口的定位灯状态,并写入到寄存器;In response to the completion of the positioning light lighting operation, the complex programmable logic device on the hard disk backplane under test obtains the positioning light status of the hard disk physical ports of all hard disk backplanes and writes it to the register;

基板管理控制器扫描寄存器中状态字节;The baseboard management controller scans the status byte in the register;

根据硬盘物理端口与硬盘背板的寄存器状态字节的对应关系,解析所扫描寄存器中状态字节,查询到所有硬盘背板的硬盘物理端口的定位灯状态。According to the corresponding relationship between the hard disk physical port and the register status byte of the hard disk backplane, the status byte in the scanned register is analyzed, and the positioning light status of the hard disk physical port of all hard disk backplanes is queried.

第二方面,本发明的技术方案提供一种服务器硬盘背板拨码防呆检测系统,包括,In the second aspect, the technical solution of the present invention provides a server hard disk backplane dial code foolproof detection system, including:

定位灯熄灭控制模块:控制所有硬盘背板的硬盘定位灯熄灭;Positioning light extinguishing control module: controls the hard disk positioning lights of all hard disk backplanes to turn off;

点亮指令发送模块:向待测硬盘背板发送硬盘定位灯点亮指令,所述硬盘定位灯点亮指令中包含待点亮定位灯的硬盘槽位标识;Lighting instruction sending module: sends a hard disk positioning light lighting instruction to the hard disk backplane to be tested, and the hard disk positioning light lighting instruction includes the hard disk slot identification of the positioning light to be lighted;

点亮指令响应模块:响应硬盘定位灯点亮指令,查询拨码状态,根据拨码状态与硬盘槽位的对应关系,匹配到硬盘槽位标识对应的硬盘槽位;控制所匹配到的硬盘槽位的定位灯点亮;Lighting command response module: responds to the hard disk positioning light lighting command, queries the dialing status, and matches the hard disk slot corresponding to the hard disk slot identification according to the correspondence between the dialing status and the hard disk slot; controls the matched hard disk slot. The positioning light of the position lights up;

定位灯状态查询模块:响应于定位灯点亮操作执行完成,查询所有硬盘背板的硬盘物理端口的定位灯状态;Positioning light status query module: In response to the completion of the positioning light lighting operation, query the positioning light status of the hard disk physical ports of all hard disk backplanes;

检测结果判断模块:判断各个硬盘物理端口的定位灯状态与期望状态是否一致,若一致则硬盘背板拨码配置正常,否则硬盘背板拨码配置异常。Test result judgment module: Determine whether the positioning light status of each hard disk physical port is consistent with the expected status. If they are consistent, the hard disk backplane dialing configuration is normal, otherwise the hard disk backplane dialing configuration is abnormal.

第三方面,本发明的技术方案提供一种终端,包括:In a third aspect, the technical solution of the present invention provides a terminal, including:

存储器,用于存储服务器硬盘背板拨码防呆检测程序;Memory, used to store the server hard disk backplane dial code fool-proof detection program;

处理器,用于执行所述服务器硬盘背板拨码防呆检测程序时实现如上述任一项所述服务器硬盘背板拨码防呆检测方法的步骤。A processor, configured to implement the steps of the server hard disk backplane dialing code anti-fool detection method as described in any one of the above when executing the server hard disk backplane dial code anti-fool detection program.

第四方面,本发明的技术方案提供一种计算机可读存储介质,所述可读存储介质上存储有服务器硬盘背板拨码防呆检测程序,所述服务器硬盘背板拨码防呆检测程序被处理器执行时实现如上述任一项所述服务器硬盘背板拨码防呆检测方法的步骤。In the fourth aspect, the technical solution of the present invention provides a computer-readable storage medium. The readable storage medium stores a server hard disk backplane dialing code anti-fool detection program. The server hard disk backplane dialing code anti-fool detection program When executed by the processor, the steps of the server hard disk backplane dial code foolproof detection method as described in any one of the above are implemented.

本发明提供的一种服务器硬盘背板拨码防呆检测方法、系统、终端及介质,相对于现有技术,具有以下有益效果:向待测硬盘背板发送硬盘定位灯点亮指令,待测硬盘背板根据其自身拨码状态匹配到硬盘槽位进行定位灯点亮,之后查询所有硬盘物理端口的定位灯状态,检测定位灯状态是否与预期符合,进而判断拨码配置是否正确。本发明自动驱动硬盘背板槽位控制硬盘定位灯点亮或熄灭,再查询定位灯的状态是否符合预期,来自动判断硬盘背板定位灯功能是否正常,进而判定拨码配置是否正确,提高拨码检测效率,适用于大批量硬盘背板检测。The present invention provides a server hard disk backplane dial code fool-proof detection method, system, terminal and medium. Compared with the existing technology, it has the following beneficial effects: a hard disk positioning light lighting instruction is sent to the hard disk backplane to be tested. The hard disk backplane matches the hard disk slot according to its own DIP status and lights up the positioning light. Then, the positioning light status of all hard disk physical ports is queried to check whether the positioning light status is as expected, and then it is judged whether the DIP configuration is correct. The invention automatically drives the hard disk backplane slot to control the hard disk positioning light to turn on or off, and then checks whether the status of the positioning light meets expectations to automatically determine whether the function of the hard disk backplane positioning light is normal, and then determines whether the dialing configuration is correct and improves dialing efficiency. Code detection efficiency, suitable for large-volume hard drive backplane detection.

附图说明Description of the drawings

为了更清楚的说明本发明实施例或现有技术的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions of the prior art more clearly, the following will briefly introduce the drawings needed to describe the embodiments or the prior art. Obviously, the drawings in the following description are only For some embodiments of the present invention, those of ordinary skill in the art can also obtain other drawings based on these drawings without exerting creative efforts.

图1是本发明实施例提供的一种服务器硬盘背板拨码防呆检测方法流程示意图,Figure 1 is a schematic flow chart of a server hard disk backplane dial code foolproof detection method provided by an embodiment of the present invention.

图2是本发明一具体实施例的服务器架构示意图。Figure 2 is a schematic diagram of a server architecture according to a specific embodiment of the present invention.

图3是本发明提供的一种服务器硬盘背板拨码防呆检测方法的一具体实施例流程示意图。Figure 3 is a schematic flowchart of a specific embodiment of a server hard disk backplane dial code foolproof detection method provided by the present invention.

图4是本发明实施例提供的一种服务器硬盘背板拨码防呆检测系统结构示意框图。Figure 4 is a schematic structural block diagram of a server hard disk backplane dial code foolproof detection system provided by an embodiment of the present invention.

图5是本发明实施例提供的一种终端的结构示意图。Figure 5 is a schematic structural diagram of a terminal provided by an embodiment of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are only some of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present invention.

除非另有定义,本文所使用的所有的技术和科学术语与属于本发明的技术领域的技术人员通常理解的含义相同。本文中在本发明的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本发明。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field to which the invention belongs. The terminology used herein in the description of the invention is for the purpose of describing specific embodiments only and is not intended to limit the invention.

下面对本发明中出现的关键术语进行解释。Key terms appearing in the present invention are explained below.

SAS:Serial Attached SCSI,串行SCSI接口。SAS: Serial Attached SCSI, serial SCSI interface.

SATA:Serial ATA,串行ATA接口。SATA: Serial ATA, serial ATA interface.

IPMI:Intelligent Platform Management Interface,即智能平台管理接口是使硬件管理具备“智能化”的新一代通用接口标准。用户可以利用 IPMI 监视服务器的物理特征,如温度、电压、电扇工作状态、电源供应以及机箱入侵等。IPMI: Intelligent Platform Management Interface, that is, the intelligent platform management interface is a new generation of universal interface standard that makes hardware management "intelligent". Users can use IPMI to monitor the physical characteristics of the server, such as temperature, voltage, fan operating status, power supply, and chassis intrusion.

BOM:Bill Of Material,物料清单。BOM: Bill Of Material, bill of materials.

CPLD:Complex Programmable Logic Device,是Complex PLD的简称,一种较PLD更为复杂的逻辑元件。CPLD是一种用户根据各自需要而自行构造逻辑功能的数字集成电路。其基本设计方法是借助集成开发软件平台,用原理图、硬件描述语言等方法,生成相应的目标文件,通过下载电缆(“在系统”编程)将代码传送到目标芯片中,实现设计的数字系统。CPLD: Complex Programmable Logic Device, which is the abbreviation of Complex PLD, a more complex logic component than PLD. CPLD is a digital integrated circuit that allows users to construct logic functions according to their own needs. The basic design method is to use an integrated development software platform to generate corresponding target files using schematic diagrams, hardware description languages and other methods, and then transfer the code to the target chip through a download cable ("in-system" programming) to realize the designed digital system. .

PCH:Platform Controller Hub,是intel公司的集成南桥。PCH: Platform Controller Hub is Intel's integrated south bridge.

Expander:扩展板。Expander: expansion board.

硬盘背板支持直连板载PCH使用、级联expander背板(前置级联、中置级联、后置级联)使用、搭配非expander背板使用等,支持多种场景,为了提高产品可复用性,在硬盘背板上设置拨码器件,通过不同拨码配置对应不同应用场景,以满足盘序识别以及定位灯点灯功能。例如某硬盘背板应用在后置级联场景中,即该硬盘背板连接在另一硬盘背板上,该硬盘背板记为后背板,另一硬盘背板记为前背板,前背板上有12个硬盘端口,后背板有2个硬盘端口,在前置级联场景中,前背板和后背板的硬盘端口是12+2的盘序,即前背板的12个硬盘端口占用0-11序号的槽位,后背板的2个硬盘端口占用12-13序号的槽位,如果向后背板发送包含slot0的点灯指令,应点亮前背板上第一个硬盘端口的定位灯,如果向后背板发送包含slot13的点灯指令,应点亮后背板上第二个硬盘端口的定位灯。又例如在前置级联场景中,前背板和一个后背板的硬盘端口是2+12的盘序。在前背板和两个后背板的中置级联场景中,前背板和两个后背板的硬盘端口是2+12+2的盘序。硬盘背板根据拨码配置来解析应用场景,进而解析出盘序,定位到硬盘端口,如果拨码配置错误,显然定位不到正确的硬盘端口。The hard drive backplane supports direct connection to the onboard PCH, use of cascade expander backplanes (front cascade, mid-mount cascade, rear cascade), use with non-expander backplanes, etc., supporting a variety of scenarios. In order to improve the product For reusability, a dialing device is set on the hard disk backplane, and different dialing configurations correspond to different application scenarios to meet the disk sequence identification and positioning light lighting functions. For example, a hard drive backplane is used in a rear cascade scenario, that is, the hard drive backplane is connected to another hard drive backplane. The hard drive backplane is recorded as the backplane, the other hard drive backplane is marked as the front backplane, and the front backplane is There are 12 hard disk ports on the backplane and 2 hard disk ports on the rear backplane. In the front cascading scenario, the hard disk ports on the front backplane and the rear backplane are in 12+2 order, that is, 12 on the front backplane. One hard disk port occupies the slot numbered 0-11, and the two hard disk ports on the backplane occupy the slot numbered 12-13. If a lighting command containing slot 0 is sent to the backplane, the first one on the front backplane should be lit. If a lighting command containing slot 13 is sent to the backplane, the positioning light of the second hard drive port on the backplane should light up. For another example, in the front-end cascading scenario, the hard disk ports on the front backplane and one backplane are in 2+12 order. In a mid-mounted cascading scenario with a front backplane and two backplanes, the hard drive ports on the front backplane and two backplanes are in 2+12+2 order. The hard disk backplane analyzes the application scenario based on the DIP configuration, then parses out the disk sequence and locates the hard disk port. If the DIP configuration is incorrect, the correct hard disk port will obviously not be located.

为检测硬盘背板上的拨码配置是否正确,本发明提供服务器硬盘背板拨码防呆检测方法,可实现拨码配置的自动化检测,首先向硬盘背板发送硬盘定位灯点亮指令,硬盘背板解析自身的拨码配置来定位到槽位进行定位灯点亮,之后获取所有硬盘物理端口的定位灯点亮状态,判断硬盘物理端口的定位灯点亮状态是否与预期相符,如果相符则说明拨码配置正确,否则拨码配置异常。In order to detect whether the dialing configuration on the hard disk backplane is correct, the present invention provides a foolproof detection method for the dialing code on the server hard disk backplane, which can realize automatic detection of the dialing configuration. First, a hard disk positioning light lighting instruction is sent to the hard disk backplane. The backplane parses its own dialing configuration to locate the slot and lights up the positioning lights. Then it obtains the lighting status of the positioning lights of all hard disk physical ports and determines whether the lighting status of the positioning lights of the hard disk physical ports is consistent with expectations. If so, It means that the dialing configuration is correct, otherwise the dialing configuration is abnormal.

图1是本发明实施例提供的一种服务器硬盘背板拨码防呆检测方法流程示意图,其中,图1执行主体可以为一种服务器硬盘背板拨码防呆检测系统。本发明实施例提供的服务器硬盘背板拨码防呆检测方法由计算机设备执行,相应地,服务器硬盘背板拨码防呆检测系统运行于计算机设备中。根据不同的需求,该流程图中步骤的顺序可以改变,某些可以省略。Figure 1 is a schematic flowchart of a server hard disk backplane dial code anti-fool detection method provided by an embodiment of the present invention. The execution subject of Figure 1 can be a server hard disk backplane dial code anti-fool detection system. The server hard disk backplane dialing code foolproof detection method provided by the embodiment of the present invention is executed by computer equipment. Correspondingly, the server hard disk backplane dialcoding foolproof detection system runs in the computer equipment. Depending on different needs, the order of steps in this flowchart can be changed, and some can be omitted.

如图1所示,该方法包括以下步骤。As shown in Figure 1, the method includes the following steps.

S1,控制所有硬盘背板的硬盘定位灯熄灭。S1, controls the hard disk positioning lights of all hard disk backplanes to turn off.

为方便测试,首先将所有硬盘定位灯熄灭,之后根据需要点亮目标定位灯,防止后续对结果判断有误。To facilitate testing, first turn off all hard drive positioning lights, and then light up the target positioning lights as needed to prevent subsequent misjudgments of the results.

S2,向待测硬盘背板发送硬盘定位灯点亮指令。S2, sends the hard disk positioning light lighting command to the hard disk backplane under test.

需要说明的是,硬盘定位灯点亮指令中包含待点亮定位灯的硬盘槽位标识,例如需要点亮盘序为0的硬盘的定位灯,则在硬盘定位灯点亮指令中配置slot0的标识,如果需要点亮盘序为13的硬盘的定位灯,则在硬盘定位灯点亮指令中配置slot13的标识。It should be noted that the hard disk positioning light lighting command includes the hard disk slot identification of the positioning light to be turned on. For example, if you need to light the positioning light of a hard disk with disk sequence 0, configure slot 0 in the hard disk positioning light lighting command. If you need to light the positioning light of the hard disk with disk sequence 13, configure the identification of slot 13 in the hard disk positioning light lighting command.

S3,待测硬盘背板响应硬盘定位灯点亮指令,查询拨码状态,根据拨码状态与硬盘槽位的对应关系,匹配到硬盘槽位标识对应的硬盘槽位。S3, the backplane of the hard disk under test responds to the hard disk positioning light lighting command, queries the dialing status, and matches the hard disk slot corresponding to the hard disk slot identification according to the corresponding relationship between the dialing status and the hard disk slot.

需要说明的是,硬盘背板中保存有拨码状态与应用场景等的对应关系,硬盘背板首先查询到拨码状态,之后根据拨码状态解析出应用场景,再根据应用场景解析出盘序规则,进而匹配到硬盘槽位标识对应的硬盘槽位。It should be noted that the hard disk backplane stores the corresponding relationship between the dialing status and application scenarios. The hard disk backplane first queries the dialing status, then parses the application scenario based on the dialing status, and then parses the disk sequence based on the application scenario. rules, and then match the hard drive slot corresponding to the hard drive slot ID.

例如,硬盘定位灯点亮指令中包含的硬盘槽位标识为slot0,硬盘背板根据拨码状态解析出应用场景为后置级联,则根据slot0应点亮前背板的第一个硬盘端口的定位灯。For example, the hard disk slot identification contained in the hard disk positioning light lighting instruction is slot0. The hard disk backplane parses the application scenario according to the dialing status to rear cascading. According to slot0, the first hard disk port on the front backplane should be lit. positioning lights.

S4,控制所匹配到的硬盘槽位的定位灯点亮。S4, controls the positioning light of the matched hard disk slot to light up.

硬盘背板匹配到硬盘槽位后,控制对应定位灯点亮即可。After the hard disk backplane is matched to the hard disk slot, just control the corresponding positioning light to light up.

S5,响应于定位灯点亮操作执行完成,查询所有硬盘背板的硬盘物理端口的定位灯状态。S5, in response to the completion of the positioning light lighting operation, query the positioning light status of the hard disk physical ports of all hard disk backplanes.

S6,判断各个硬盘物理端口的定位灯状态与期望状态是否一致,若一致则硬盘背板拨码配置正常,否则硬盘背板拨码配置异常。S6, determine whether the positioning light status of each hard disk physical port is consistent with the expected status. If they are consistent, the hard disk backplane dialing configuration is normal, otherwise the hard disk backplane dialing configuration is abnormal.

可以理解的是,根据硬盘定位灯点亮指令中所包含的硬盘槽位标识,应有一个标准的硬盘物理端口的定位灯状态,物料清单中要求的配置场景是前置级联,那么如果向硬盘背板发送slot0,那么应点亮的是后背板的第一个硬盘端口的定位灯,如果硬盘背板执行指令点亮的是前背板的第一个硬盘端口的定位灯,则说明硬盘背板解析出的是后置级联的场景,拨码配置是错误的。It can be understood that according to the hard disk slot identification contained in the hard disk positioning light lighting instruction, there should be a standard positioning light status of the hard disk physical port. The configuration scenario required in the bill of materials is front-end cascading, so if If the hard disk backplane sends slot 0, then the positioning light of the first hard disk port on the back backplane should be lit. If the hard disk backplane executes the command and the positioning light of the first hard disk port on the front backplane is lit, it means that The hard disk backplane analysis shows the rear cascade scenario, and the dial configuration is wrong.

本实施例自动驱动硬盘背板槽位控制硬盘定位灯点亮或熄灭,再查询定位灯的状态是否符合预期,来自动判断硬盘背板定位灯功能是否正常,进而判定拨码配置是否正确,提高拨码检测效率,适用于大批量硬盘背板检测。This embodiment automatically drives the hard disk backplane slot to control the hard disk positioning light to turn on or off, and then checks whether the status of the positioning light is as expected to automatically determine whether the hard disk backplane positioning light function is normal, and then determine whether the dialing configuration is correct, improving Dial-code detection efficiency, suitable for large-volume hard drive backplane detection.

为进一步理解本发明,以下提供一具体实施例对本发明进一步详细说明,该具体实施例可应用于图2所示的服务器架构中,前背板和后背板连接,后背板是两口背板(包含两个硬盘端口),前背板可以和后背板是前置级联关系、中置级联关系或后置级联关系,后背板上设置拨码开关,拨码开关配置级联关系。后背板上设置CPLD和寄存器,CPLD接收信号进行处理,解析拨码开关,控制定位灯点亮,并查询定位灯状态写入寄存器,BMC通过I2C连接器获取寄存器中的信息,查询到各个定位灯状态,检测定位灯状态是否与预期相符。需要说明的是,后背板是待测试的硬盘背板。In order to further understand the present invention, a specific embodiment is provided below to further describe the present invention. This specific embodiment can be applied to the server architecture shown in Figure 2. The front backplane and the back backplane are connected, and the back backplane is a two-port backplane. (Contains two hard disk ports). The front backplane can be in a front cascade relationship, a mid cascade relationship or a rear cascade relationship with the back panel. A DIP switch is set on the back panel. The DIP switch configures the cascade. relation. CPLD and registers are set on the back panel. The CPLD receives signals for processing, parses the DIP switch, controls the positioning light to light up, and queries the positioning light status and writes it into the register. The BMC obtains the information in the register through the I2C connector and queries each positioning Light status, check whether the positioning light status is consistent with expectations. It should be noted that the backplane is the hard drive backplane to be tested.

具体的,服务器开机启动后,在linux系统下自动化的驱动硬盘背板槽位点亮或熄灭硬盘定位灯,该点灯信号通过sgpio总线协议传递给硬盘背板CPLD,CPLD根据sgpio信号以及拨码开关状态响应点灯信号,输出相应高低电平状态的脉冲信号到硬盘定位灯led,CPLD获取硬盘背板各port硬盘定位灯状态写入寄存器,BMC通过I2C信号循环扫描CPLD寄存器中各port定位灯状态并提供ipmi接口支持查询,通过BMC ipmi接口查询硬盘背板每个port状态并按bit解析定位灯的状态是否与期望一致,来自动化判断SAS_SATA背板拨码正确性。Specifically, after the server is powered on, the hard disk backplane slot is automatically driven under the Linux system to light up or turn off the hard disk positioning light. The lighting signal is transmitted to the hard disk backplane CPLD through the sgpio bus protocol. The CPLD uses the sgpio signal and the DIP switch. The status responds to the lighting signal and outputs corresponding high and low level pulse signals to the hard disk positioning light LED. CPLD obtains the hard disk positioning light status of each port on the hard disk backplane and writes it into the register. The BMC cyclically scans the status of each port positioning light in the CPLD register through the I2C signal and The ipmi interface is provided to support query. The BMC ipmi interface is used to query the status of each port on the hard disk backplane and analyze whether the status of the positioning light is consistent with expectations by bit to automatically determine the correctness of the SAS_SATA backplane dialing.

图3是该具体实施例流程示意图,该具体实施例包括以下步骤,根据不同的需求,该流程图中步骤的顺序可以改变,某些可以省略。Figure 3 is a schematic flowchart of this specific embodiment. This specific embodiment includes the following steps. According to different requirements, the order of the steps in this flowchart can be changed, and some of them can be omitted.

SS1,解析物料清单中的硬盘背板搭配关系。SS1, analyze the hard drive backplane matching relationship in the bill of materials.

需要说明的是,物料清单中的硬盘背板搭配关系是期望的标准搭配关系。It should be noted that the hard drive backplane matching relationship in the bill of materials is the expected standard matching relationship.

SS2,根据物料清单中的硬盘背板搭配关系,配置硬盘槽位标识与硬盘物理端口的标准对应关系,配置硬盘物理端口与硬盘背板的寄存器状态字节的对应关系。SS2, according to the matching relationship of the hard disk backplane in the bill of materials, configure the standard corresponding relationship between the hard disk slot identification and the hard disk physical port, and configure the corresponding relationship between the hard disk physical port and the register status byte of the hard disk backplane.

例如,搭配前置级联expander背板且SAS-SATA硬盘背板数量为1时,系统下硬盘槽位为0/1,BMC ipmi查询接口为后置0背板0/1; 如搭配后置级联12口expander背板且SAS-SATA硬盘背板数量为1时,系统下硬盘槽位为12/13,BMC ipmi查询接口为后置0背板0/1;如搭配中置级联12口expander背板且SAS-SATA硬盘背板数量为2时,系统下硬盘槽位为0/1/14/15,BMC ipmi查询接口为后置0背板0/1和后置1背板0/1,如搭配前置非expander背板且SAS-SATA硬盘背板数量为2时,系统下硬盘槽位为0/1/2/3,BMC ipmi查询接口为后置0背板0/1和后置1背板0/1,等等。以下表1为两个2口硬盘背板与前背板搭配关系示意表。For example, when equipped with a front cascade expander backplane and the number of SAS-SATA hard disk backplanes is 1, the hard disk slot under the system is 0/1, and the BMC ipmi query interface is rear 0 backplane 0/1; When cascading a 12-port expander backplane and the number of SAS-SATA hard disk backplanes is 1, the hard disk slots under the system are 12/13, and the BMC ipmi query interface is rear 0 backplane 0/1; if used with a mid-mount cascade 12 When the port expander backplane is installed and the number of SAS-SATA hard disk backplanes is 2, the hard disk slots under the system are 0/1/14/15, and the BMC ipmi query interface is rear 0 backplane 0/1 and rear 1 backplane 0 /1. If the front non-expander backplane is used and the number of SAS-SATA hard disk backplanes is 2, the hard disk slots under the system are 0/1/2/3, and the BMC ipmi query interface is rear 0 backplane 0/1. and rear 1 backplane 0/1, etc. Table 1 below shows the matching relationship between two 2-port hard drive backplanes and front backplanes.

表1:两个2口硬盘背板与前背板搭配关系示意表Table 1: Schematic diagram of the matching relationship between two 2-port hard disk backplanes and front backplanes

配置硬盘槽位标识与硬盘物理端口的标准对应关系,以便后续硬盘定位灯指令中所包含的待点亮定位灯的硬盘槽位标识配置硬盘物理端口各个定位灯状态的期望状态。Configure the standard corresponding relationship between the hard disk slot identifier and the hard disk physical port, so that the hard disk slot identifier to be lit with the positioning light contained in the subsequent hard disk positioning light command configures the desired status of each positioning light status of the hard disk physical port.

该具体实施例将硬盘物理端口定位灯状态存入寄存器,扫描寄存器中的数据来解析出硬盘物理端口定位灯状态,因此预先配置硬盘物理端口与硬盘背板的寄存器状态字节的对应关系,后续根据该对应关系对硬盘物理端口定位灯状态进行解析。In this specific embodiment, the hard disk physical port positioning light status is stored in a register, and the data in the register is scanned to parse out the hard disk physical port positioning light status. Therefore, the corresponding relationship between the hard disk physical port and the register status byte of the hard disk backplane is configured in advance. Subsequently, Analyze the hard disk physical port positioning light status based on the corresponding relationship.

SS3,根据物料清单中的背板搭配关系,筛选出待点亮定位灯的各个硬盘槽位标识。SS3, based on the backplane matching relationship in the bill of materials, selects the identification of each hard disk slot to be lit with the positioning light.

SS4,对筛选出的待点亮定位灯的各个硬盘槽位标识进行排序。SS4: Sort the hard drive slot identifiers of the selected hard disk slots to be lit.

需要说明的是,可以对硬盘背板的所有槽位均进行测试,也可以选出部分可表征背板搭配关系的槽位进行测试,用户可根据测试需要筛选出需要点亮测试的硬盘槽位标识。It should be noted that all slots of the hard disk backplane can be tested, or some slots that can represent the matching relationship of the backplane can be selected for testing. The user can filter out the hard disk slots that need to be lit for testing according to the test needs. logo.

对筛选出的硬盘槽位标识进行排序,之后根据该排序依次对各个硬盘槽位进行点灯测试。Sort the filtered hard disk slot identifiers, and then perform a lighting test on each hard disk slot in sequence based on this sorting.

SS5,控制所有硬盘背板的硬盘定位灯熄灭。SS5, the hard drive positioning lights controlling all hard drive backplanes are turned off.

在系统下通过工具驱动硬盘定位灯全部熄灭。Use the tool to drive the hard disk positioning lights under the system and all the lights will go out.

SS6,向待测硬盘背板发送包含第一个硬盘槽位标识的硬盘定位灯点亮指令。SS6: Send the hard drive positioning light lighting command containing the first hard drive slot identification to the hard drive backplane under test.

具体的,通过sgpio总线协议将硬盘定位灯点亮指令传递给硬盘背板的CPLD。Specifically, the hard disk positioning light lighting instruction is transmitted to the CPLD on the hard disk backplane through the sgpio bus protocol.

SS7,根据硬盘定位灯指令中所包含的待点亮定位灯的硬盘槽位标识,基于硬盘槽位标识与硬盘物理端口的标准对应关系,配置硬盘物理端口各个定位灯状态的期望状态。SS7 configures the desired status of each positioning light status of the hard disk physical port based on the hard disk slot identification of the positioning light to be illuminated contained in the hard disk positioning light command and based on the standard correspondence between the hard disk slot identification and the hard disk physical port.

SS8,待测硬盘背板响应于接收到包含第一个硬盘槽位标识的硬盘定位灯点亮指令,查询拨码状态,根据拨码状态与硬盘槽位的对应关系,匹配到第一个硬盘槽位标识对应的硬盘槽位。SS8, the hard drive backplane under test responds to receiving the hard drive positioning light lighting command containing the first hard drive slot identification, queries the dialing status, and matches the first hard drive based on the correspondence between the dialing status and the hard drive slot. The hard drive slot corresponding to the slot identifier.

SS9,控制所匹配到的硬盘槽位的定位灯点亮。SS9 controls the positioning light of the matched hard disk slot to light up.

具体的,CPLD响应硬盘定位灯点亮指令,查询拨码状态,根据拨码状态与硬盘槽位的对应关系,匹配到硬盘槽位标识对应的硬盘槽位,输出相应高低电平状态的脉冲信号到所匹配到的硬盘槽位,控制相应定位灯点亮。Specifically, the CPLD responds to the hard disk positioning light lighting command, queries the dialing status, matches the hard disk slot corresponding to the hard disk slot identification according to the correspondence between the dialing status and the hard disk slot, and outputs pulse signals with corresponding high and low levels. Go to the matched hard disk slot and control the corresponding positioning light to light up.

SS10,响应于第一个定位灯点亮操作执行完成,查询所有硬盘背板的硬盘物理端口的定位灯状态。SS10, in response to the completion of the first positioning light lighting operation, query the positioning light status of the hard disk physical ports of all hard disk backplanes.

该步骤具体包括以下步骤。This step specifically includes the following steps.

SS10.1,响应于定位灯点亮操作执行完成,待测硬盘背板上的复杂可编程逻辑器件获取所有硬盘背板的硬盘物理端口的定位灯状态,并写入到寄存器。SS10.1, in response to the completion of the positioning light lighting operation, the complex programmable logic device on the hard disk backplane under test obtains the positioning light status of the hard disk physical ports of all hard disk backplanes and writes it to the register.

SS10.2,基板管理控制器扫描寄存器中状态字节。SS10.2, the baseboard management controller scans the status byte in the register.

SS10.3,根据硬盘物理端口与硬盘背板的寄存器状态字节的对应关系,解析所扫描寄存器中状态字节,查询到所有硬盘背板的硬盘物理端口的定位灯状态。SS10.3, based on the corresponding relationship between the hard disk physical port and the register status byte of the hard disk backplane, analyzes the status byte in the scanned register, and queries the positioning light status of the hard disk physical port of all hard disk backplanes.

具体的,CPLD获取硬盘背板各port硬盘定位灯状态写入寄存器,BMC通过I2C信号循环扫描CPLD寄存器中各port定位灯状态并提供ipmi接口支持查询,通过BMC ipmi接口查询硬盘背板每个port状态并按bit解析硬盘定位灯的状态,并按照定义的对应关系检查各槽位定位灯点亮状态与期望是否一致,一致则继续测试,不一致则测试出拨码配置异常。Specifically, CPLD obtains the hard disk positioning light status of each port on the hard disk backplane and writes it into the register. The BMC cyclically scans the positioning light status of each port in the CPLD register through I2C signals and provides an ipmi interface to support querying. Each port on the hard disk backplane is queried through the BMC ipmi interface. status and analyze the status of the hard disk positioning light by bit, and check whether the lighting status of each slot positioning light is consistent with the expectation according to the defined correspondence. If consistent, continue testing, if inconsistent, the test indicates an abnormal dialing configuration.

SS11,判断各个硬盘物理端口的定位灯状态与期望状态是否一致。SS11, determine whether the positioning light status of each hard disk physical port is consistent with the expected status.

期望状态已由上述步骤配置完成,查询到各个硬盘物理端口的定位灯状态之后,将其与期望状态比对来判断拨码配置是否正常。The expected status has been configured through the above steps. After querying the positioning light status of each hard disk physical port, compare it with the expected status to determine whether the dialing configuration is normal.

SS12,若一致,则判断筛选出的所有硬盘槽位标识是否已全部测试完成,若否,则向待测硬盘背板发送包含第二个硬盘槽位标识的硬盘定位灯点亮指令,若是,则判定硬盘背板拨码配置正常,同时控制所有硬盘背板的硬盘定位灯熄灭。SS12, if consistent, determine whether all the screened hard disk slot identifications have been tested. If not, send a hard disk positioning light lighting instruction containing the second hard disk slot identification to the hard disk backplane to be tested. If so, Then it is determined that the hard disk backplane dialing configuration is normal, and the hard disk positioning lights of all hard disk backplanes are controlled to go out.

SS13,若不一致,则判定硬盘背板拨码配置异常,同时控制所有硬盘背板的硬盘定位灯熄灭。SS13, if they are inconsistent, it is determined that the hard disk backplane DIP configuration is abnormal, and the hard disk positioning lights of all hard disk backplanes are controlled to turn off.

可以理解的是,向待测硬盘背板发送包含第二个硬盘槽位标识的硬盘定位灯点亮指令之后,循环返回步骤SS7,一旦有槽位的定位灯状态与期望状态不同,则说明拨码配置异常,若所有槽位定位灯状态与期望状态相同,则拨码配置正常。It can be understood that after sending the hard disk positioning light lighting command containing the second hard disk slot identification to the hard disk backplane under test, the loop returns to step SS7. Once the positioning light status of a slot is different from the expected status, the dial The code configuration is abnormal. If the status of all slot positioning lights is the same as expected, the code configuration is normal.

最终测试通过或测试拨码配置异常,均在系统下驱动硬盘定位灯全部熄灭。If the final test passes or the test dial configuration is abnormal, all the hard drive positioning lights under the system will go out.

上文中对于一种服务器硬盘背板拨码防呆检测方法的实施例进行了详细描述,基于上述实施例描述的服务器硬盘背板拨码防呆检测方法,本发明实施例还提供了一种与该方法对应的服务器硬盘背板拨码防呆检测系统。The above describes in detail an embodiment of a method for detecting server hard disk backplane dialing and foolproofing. Based on the method for detecting server hard disk backplane dialing and foolproofing described in the above embodiment, embodiments of the present invention also provide a method with This method corresponds to the server hard disk backplane dialing and anti-fool detection system.

图4是本发明实施例提供的一种服务器硬盘背板拨码防呆检测系统结构示意框图,本实施例中,服务器硬盘背板拨码防呆检测系统400根据其所执行的功能,可以被划分为多个功能模块,如图2所示。所述功能模块可以包括:定位灯熄灭控制模块430、点亮指令发送模块440、点亮指令响应模块460、定位灯状态查询模块470、检测结果判断模块480。本发明所称的模块是指一种能够被至少一个处理器所执行并且能够完成固定功能的一系列计算机程序段,其存储在存储器中。Figure 4 is a schematic structural block diagram of a server hard disk backplane dial code anti-fool detection system provided by an embodiment of the present invention. In this embodiment, the server hard disk backplane dial code anti-fool detection system 400 can be configured according to the functions it performs. It is divided into multiple functional modules, as shown in Figure 2. The functional modules may include: a positioning light extinguishing control module 430, a lighting instruction sending module 440, a lighting instruction response module 460, a positioning light status query module 470, and a detection result judgment module 480. The module referred to in the present invention refers to a series of computer program segments that can be executed by at least one processor and can complete fixed functions, which are stored in the memory.

定位灯熄灭控制模块430:控制所有硬盘背板的硬盘定位灯熄灭。Positioning light extinguishing control module 430: controls the hard disk positioning lights of all hard disk backplanes to turn off.

点亮指令发送模块440:向待测硬盘背板发送硬盘定位灯点亮指令,所述硬盘定位灯点亮指令中包含待点亮定位灯的硬盘槽位标识。The lighting instruction sending module 440: sends a hard disk positioning light lighting instruction to the hard disk backplane to be tested, and the hard disk positioning light lighting instruction includes the hard disk slot identification of the positioning light to be lighted.

点亮指令响应模块460:响应硬盘定位灯点亮指令,查询拨码状态,根据拨码状态与硬盘槽位的对应关系,匹配到硬盘槽位标识对应的硬盘槽位;控制所匹配到的硬盘槽位的定位灯点亮。Lighting command response module 460: responds to the hard disk positioning light lighting command, queries the dialing status, and matches the hard disk slot corresponding to the hard disk slot identification according to the correspondence between the dialing status and the hard disk slot; controls the matched hard disk The positioning light of the slot lights up.

定位灯状态查询模块470:响应于定位灯点亮操作执行完成,查询所有硬盘背板的硬盘物理端口的定位灯状态。Positioning light status query module 470: In response to the completion of the positioning light lighting operation, query the positioning light status of the hard disk physical ports of all hard disk backplanes.

检测结果判断模块480:判断各个硬盘物理端口的定位灯状态与期望状态是否一致,若一致则硬盘背板拨码配置正常,否则硬盘背板拨码配置异常。Detection result judgment module 480: Determine whether the positioning light status of each hard disk physical port is consistent with the expected status. If they are consistent, the hard disk backplane dialing configuration is normal, otherwise the hard disk backplane dialing configuration is abnormal.

在一个可选的实施方式中,系统400还包括对应关系配置模块410和期望状态配置模块450。其中,对应关系配置模块410配置用于解析物料清单中的硬盘背板搭配关系,根据物料清单中的硬盘背板搭配关系,配置硬盘槽位标识与硬盘物理端口的标准对应关系。期望状态配置模块450配置用于向待测硬盘背板发送硬盘定位灯点亮指令之后,根据硬盘定位灯指令中所包含的待点亮定位灯的硬盘槽位标识,基于硬盘槽位标识与硬盘物理端口的标准对应关系,配置硬盘物理端口各个定位灯状态的期望状态。In an optional implementation, the system 400 further includes a correspondence configuration module 410 and an expected state configuration module 450. Among them, the correspondence configuration module 410 is configured to parse the hard disk backplane matching relationship in the bill of materials, and configure the standard corresponding relationship between the hard disk slot identification and the hard disk physical port according to the hard disk backplane matching relationship in the bill of materials. After the desired state configuration module 450 is configured to send a hard disk positioning light lighting instruction to the hard disk backplane to be tested, according to the hard disk slot identification of the positioning light to be lighted included in the hard disk positioning light instruction, based on the hard disk slot identification and the hard disk Standard correspondence of physical ports, configure the expected status of each positioning light status of the hard disk physical port.

在一个可选的实施方式中,系统400还包括测试槽位筛选模块420,配置用于根据物料清单中的背板搭配关系,筛选出待点亮定位灯的各个硬盘槽位标识,对筛选出的待点亮定位灯的各个硬盘槽位标识进行排序。In an optional implementation, the system 400 also includes a test slot screening module 420 configured to screen out the hard drive slot identifiers to be lit with positioning lights according to the backplane matching relationship in the bill of materials, and select Sort the hard drive slot IDs to be lit.

在一个可选的实施方式中,系统400具体用于:点亮指令发送模块440向待测硬盘背板发送包含第一个硬盘槽位标识的硬盘定位灯点亮指令;点亮指令响应模块460响应于接收到包含第一个硬盘槽位标识的硬盘定位灯点亮指令,查询拨码状态,根据拨码状态与硬盘槽位的对应关系,匹配到第一个硬盘槽位标识对应的硬盘槽位;控制所匹配到的硬盘槽位的定位灯点亮;定位灯状态查询模块470响应于第一个定位灯点亮操作执行完成,查询所有硬盘背板的硬盘物理端口的定位灯状态;检测结果判断模块480判断各个硬盘物理端口的定位灯状态与期望状态是否一致;若一致,则判断筛选出的所有硬盘槽位标识是否已全部测试完成,若否,则点亮指令发送模块440向待测硬盘背板发送包含第二个硬盘槽位标识的硬盘定位灯点亮指令,若是,则判定硬盘背板拨码配置正常,同时控制所有硬盘背板的硬盘定位灯熄灭;若不一致,则判定硬盘背板拨码配置异常,同时控制所有硬盘背板的硬盘定位灯熄灭。In an optional implementation, the system 400 is specifically configured to: the lighting instruction sending module 440 sends a hard disk positioning light lighting instruction containing the first hard disk slot identification to the hard disk backplane to be tested; and the lighting instruction response module 460 In response to receiving the instruction to light up the hard disk positioning light containing the first hard disk slot identification, query the dialing status, and match the hard disk slot corresponding to the first hard disk slot identification based on the correspondence between the dialing status and the hard disk slot. bit; control the positioning light of the matched hard disk slot to light up; the positioning light status query module 470 responds to the completion of the first positioning light lighting operation and queries the positioning light status of the hard disk physical ports of all hard disk backplanes; detect The result judgment module 480 judges whether the positioning light status of each hard disk physical port is consistent with the expected status; if they are consistent, it judges whether all the screened hard disk slot identifications have been tested. If not, the instruction sending module 440 lights up and sends a signal to the waiting state. Test the hard disk backplane and send the hard disk positioning light lighting command containing the second hard disk slot identification. If so, it is determined that the hard disk backplane dialing configuration is normal, and the hard disk positioning lights of all hard disk backplanes are controlled to turn off at the same time; if they are inconsistent, it is judged The hard disk backplane dialing configuration is abnormal, and the hard disk positioning lights controlling all hard disk backplanes are turned off at the same time.

在一个可选的实施方式中,系统400具体用于:点亮指令发送模块440向待测硬盘背板上的复杂可编程逻辑器件发送硬盘定位灯点亮指令;待测硬盘背板上的复杂可编程逻辑器件响应硬盘定位灯点亮指令,查询拨码状态,根据拨码状态与硬盘槽位的对应关系,匹配到硬盘槽位标识对应的硬盘槽位;输出相应高低电平状态的脉冲信号到所匹配到的硬盘槽位,控制相应定位灯点亮。In an optional implementation, the system 400 is specifically configured to: the lighting instruction sending module 440 sends a hard disk positioning light lighting instruction to the complex programmable logic device on the hard disk backplane to be tested; The programmable logic device responds to the hard disk positioning light lighting command, queries the dialing status, and matches the hard disk slot corresponding to the hard disk slot identification according to the corresponding relationship between the dialing status and the hard disk slot; outputs pulse signals with corresponding high and low levels. Go to the matched hard disk slot and control the corresponding positioning light to light up.

在一个可选的实施方式中,期望状态配置模块450还配置用于配置硬盘物理端口与硬盘背板的寄存器状态字节的对应关系。In an optional implementation, the desired status configuration module 450 is also configured to configure the corresponding relationship between the hard disk physical port and the register status byte of the hard disk backplane.

在一个可选的实施方式中,定位灯状态查询模块470具体配置用于:响应于定位灯点亮操作执行完成,待测硬盘背板上的复杂可编程逻辑器件获取所有硬盘背板的硬盘物理端口的定位灯状态,并写入到寄存器;基板管理控制器扫描寄存器中状态字节;根据硬盘物理端口与硬盘背板的寄存器状态字节的对应关系,解析所扫描寄存器中状态字节,查询到所有硬盘背板的硬盘物理端口的定位灯状态。In an optional implementation, the positioning light status query module 470 is specifically configured to: in response to the completion of the positioning light lighting operation, the complex programmable logic device on the hard disk backplane to be tested obtains the hard disk physical data of all hard disk backplanes. The positioning light status of the port is written to the register; the baseboard management controller scans the status byte in the register; based on the correspondence between the hard disk physical port and the register status byte of the hard disk backplane, it parses the status byte in the scanned register and queries The positioning light status of the hard disk physical ports on all hard disk backplanes.

本实施例的服务器硬盘背板拨码防呆检测系统用于实现前述的服务器硬盘背板拨码防呆检测方法,因此该系统中的具体实施方式可见前文中的服务器硬盘背板拨码防呆检测方法的实施例部分,所以,其具体实施方式可以参照相应的各个部分实施例的描述,在此不再展开介绍。The server hard disk backplane dial-coded anti-fool detection system of this embodiment is used to implement the aforementioned server hard disk backplane dial-coded fool-proof detection method. Therefore, the specific implementation in the system can be seen in the server hard disk backplane dial-coded fool-proof detection method mentioned above. The embodiments of the detection method are part of the detection method. Therefore, its specific implementation can be referred to the description of the corresponding embodiments, and will not be introduced here.

另外,由于本实施例的服务器硬盘背板拨码防呆检测系统用于实现前述的服务器硬盘背板拨码防呆检测方法,因此其作用与上述方法的作用相对应,这里不再赘述。In addition, since the server hard disk backplane dial-coding anti-fool detection system of this embodiment is used to implement the aforementioned server hard disk backplane dial-coding anti-fool detection method, its function corresponds to the function of the above method, and will not be described again here.

图5为本发明实施例提供的一种终端500的结构示意图,包括:处理器510、存储器520及通信单元530。所述处理器510用于实现存储器520中保存的服务器硬盘背板拨码防呆检测程序时实现以下步骤:FIG. 5 is a schematic structural diagram of a terminal 500 provided by an embodiment of the present invention, including: a processor 510, a memory 520, and a communication unit 530. The processor 510 implements the following steps when used to implement the server hard disk backplane dial code anti-fool detection program stored in the memory 520:

控制所有硬盘背板的硬盘定位灯熄灭;Control the hard drive positioning lights on all hard drive backplanes to turn off;

向待测硬盘背板发送硬盘定位灯点亮指令,所述硬盘定位灯点亮指令中包含待点亮定位灯的硬盘槽位标识;Send a hard disk positioning light lighting instruction to the hard disk under test backplane, and the hard disk positioning light lighting instruction includes the hard disk slot identification of the positioning light to be turned on;

待测硬盘背板响应硬盘定位灯点亮指令,查询拨码状态,根据拨码状态与硬盘槽位的对应关系,匹配到硬盘槽位标识对应的硬盘槽位;The backplane of the hard disk under test responds to the hard disk positioning light lighting command, queries the dialing status, and matches the hard disk slot corresponding to the hard disk slot identification according to the correspondence between the dialing status and the hard disk slot;

控制所匹配到的硬盘槽位的定位灯点亮;Control the positioning light of the matched hard disk slot to light up;

响应于定位灯点亮操作执行完成,查询所有硬盘背板的硬盘物理端口的定位灯状态;In response to the completion of the positioning light lighting operation, query the positioning light status of the hard disk physical ports of all hard disk backplanes;

判断各个硬盘物理端口的定位灯状态与期望状态是否一致,若一致则硬盘背板拨码配置正常,否则硬盘背板拨码配置异常。Determine whether the positioning light status of each hard disk physical port is consistent with the expected status. If they are consistent, the hard disk backplane dialing configuration is normal. Otherwise, the hard disk backplane dialing configuration is abnormal.

该终端500包括处理器510、存储器520及通信单元530。这些组件通过一条或多条总线进行通信,本领域技术人员可以理解,图中示出的服务器的结构并不构成对本发明的限定,它既可以是总线形结构,也可以是星型结构,还可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。The terminal 500 includes a processor 510, a memory 520 and a communication unit 530. These components communicate through one or more buses. Those skilled in the art can understand that the structure of the server shown in the figure does not limit the invention. It can be a bus structure, a star structure, or More or fewer components may be included than shown, or certain components may be combined, or may be arranged differently.

其中,该存储器520可以用于存储处理器510的执行指令,存储器520可以由任何类型的易失性或非易失性存储终端或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。当存储器520中的执行指令由处理器510执行时,使得终端500能够执行以下上述方法实施例中的部分或全部步骤。Among them, the memory 520 can be used to store execution instructions of the processor 510. The memory 520 can be implemented by any type of volatile or non-volatile storage terminals or their combination, such as static random access memory (SRAM), electronic Erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk . When the execution instructions in the memory 520 are executed by the processor 510, the terminal 500 is enabled to perform some or all of the steps in the following method embodiments.

处理器510为存储终端的控制中心,利用各种接口和线路连接整个电子终端的各个部分,通过运行或执行存储在存储器520内的软件程序和/或模块,以及调用存储在存储器内的数据,以执行电子终端的各种功能和/或处理数据。所述处理器可以由集成电路(Integrated Circuit,简称IC) 组成,例如可以由单颗封装的IC 所组成,也可以由连接多颗相同功能或不同功能的封装IC而组成。举例来说,处理器510可以仅包括中央处理器(Central Processing Unit,简称CPU)。在本发明实施方式中,CPU可以是单运算核心,也可以包括多运算核心。The processor 510 is the control center of the storage terminal, using various interfaces and lines to connect various parts of the entire electronic terminal, by running or executing software programs and/or modules stored in the memory 520, and calling data stored in the memory, To perform various functions of the electronic terminal and/or process data. The processor may be composed of an integrated circuit (IC for short), for example, it may be composed of a single packaged IC, or it may be composed of multiple packaged ICs connected with the same function or different functions. For example, the processor 510 may only include a central processing unit (Central Processing Unit, CPU for short). In the embodiment of the present invention, the CPU may be a single computing core or may include multiple computing cores.

通信单元530,用于建立通信信道,从而使所述存储终端可以与其它终端进行通信。接收其他终端发送的用户数据或者向其他终端发送用户数据。The communication unit 530 is used to establish a communication channel so that the storage terminal can communicate with other terminals. Receive user data sent by other terminals or send user data to other terminals.

本发明还提供一种计算机存储介质,这里所说的存储介质可为磁碟、光盘、只读存储记忆体(英文:read-only memory,简称:ROM)或随机存储记忆体(英文:random accessmemory,简称:RAM)等。The invention also provides a computer storage medium. The storage medium here can be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (English: random access memory). , abbreviation: RAM), etc.

计算机存储介质存储有服务器硬盘背板拨码防呆检测程序,所述服务器硬盘背板拨码防呆检测程序被处理器执行时实现以下步骤:The computer storage medium stores a server hard disk backplane dial-coding fool-proof detection program. When the server hard disk backplane dial-coding fool-proof detection program is executed by the processor, the following steps are implemented:

控制所有硬盘背板的硬盘定位灯熄灭;Control the hard drive positioning lights on all hard drive backplanes to turn off;

向待测硬盘背板发送硬盘定位灯点亮指令,所述硬盘定位灯点亮指令中包含待点亮定位灯的硬盘槽位标识;Send a hard disk positioning light lighting instruction to the hard disk under test backplane, and the hard disk positioning light lighting instruction includes the hard disk slot identification of the positioning light to be turned on;

待测硬盘背板响应硬盘定位灯点亮指令,查询拨码状态,根据拨码状态与硬盘槽位的对应关系,匹配到硬盘槽位标识对应的硬盘槽位;The backplane of the hard disk under test responds to the hard disk positioning light lighting command, queries the dialing status, and matches the hard disk slot corresponding to the hard disk slot identification according to the correspondence between the dialing status and the hard disk slot;

控制所匹配到的硬盘槽位的定位灯点亮;Control the positioning light of the matched hard disk slot to light up;

响应于定位灯点亮操作执行完成,查询所有硬盘背板的硬盘物理端口的定位灯状态;In response to the completion of the positioning light lighting operation, query the positioning light status of the hard disk physical ports of all hard disk backplanes;

判断各个硬盘物理端口的定位灯状态与期望状态是否一致,若一致则硬盘背板拨码配置正常,否则硬盘背板拨码配置异常。Determine whether the positioning light status of each hard disk physical port is consistent with the expected status. If they are consistent, the hard disk backplane dialing configuration is normal. Otherwise, the hard disk backplane dialing configuration is abnormal.

本领域的技术人员可以清楚地了解到本发明实施例中的技术可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本发明实施例中的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中如U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质,包括若干指令用以使得一台计算机终端(可以是个人计算机,服务器,或者第二终端、网络终端等)执行本发明各个实施例所述方法的全部或部分步骤。Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus the necessary general hardware platform. Based on this understanding, the technical solutions in the embodiments of the present invention can be embodied in the form of software products in essence or in part that contribute to the existing technology. The computer software products are stored in a storage medium such as a USB flash drive or mobile phone. Hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code, including a number of instructions to make a computer terminal (It can be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention.

在本发明所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.

以上公开的仅为本发明的优选实施方式,但本发明并非局限于此,任何本领域的技术人员能思之的没有创造性的变化,以及在不脱离本发明原理前提下所作的若干改进和润饰,都应落在本发明的保护范围内。What is disclosed above is only the preferred embodiment of the present invention, but the present invention is not limited thereto. Any non-creative changes that those skilled in the art can think of, as well as several improvements and modifications made without departing from the principles of the present invention can be made. , should all fall within the protection scope of the present invention.

Claims (10)

1.一种服务器硬盘背板拨码防呆检测方法,其特征在于,包括以下步骤:1. A server hard disk backplane dial code foolproof detection method, which is characterized by including the following steps: 控制所有硬盘背板的硬盘定位灯熄灭;Control the hard drive positioning lights on all hard drive backplanes to turn off; 向待测硬盘背板发送硬盘定位灯点亮指令,所述硬盘定位灯点亮指令中包含待点亮定位灯的硬盘槽位标识;Send a hard disk positioning light lighting instruction to the hard disk under test backplane, and the hard disk positioning light lighting instruction includes the hard disk slot identification of the positioning light to be turned on; 待测硬盘背板响应硬盘定位灯点亮指令,查询拨码状态,根据拨码状态与硬盘槽位的对应关系,匹配到硬盘槽位标识对应的硬盘槽位;The backplane of the hard disk under test responds to the hard disk positioning light lighting command, queries the dialing status, and matches the hard disk slot corresponding to the hard disk slot identification according to the correspondence between the dialing status and the hard disk slot; 控制所匹配到的硬盘槽位的定位灯点亮;Control the positioning light of the matched hard disk slot to light up; 响应于定位灯点亮操作执行完成,查询所有硬盘背板的硬盘物理端口的定位灯状态;In response to the completion of the positioning light lighting operation, query the positioning light status of the hard disk physical ports of all hard disk backplanes; 判断各个硬盘物理端口的定位灯状态与期望状态是否一致,若一致则硬盘背板拨码配置正常,否则硬盘背板拨码配置异常。Determine whether the positioning light status of each hard disk physical port is consistent with the expected status. If they are consistent, the hard disk backplane dialing configuration is normal. Otherwise, the hard disk backplane dialing configuration is abnormal. 2.根据权利要求1所述的服务器硬盘背板拨码防呆检测方法,其特征在于,控制所有硬盘背板的硬盘定位灯熄灭之前,还包括以下步骤:2. The server hard disk backplane dial code detection method according to claim 1, characterized in that, before controlling the hard disk positioning lights of all hard disk backplanes to go out, the following steps are further included: 解析物料清单中的硬盘背板搭配关系;Analyze the matching relationship between hard disk backplanes in the bill of materials; 根据物料清单中的硬盘背板搭配关系,配置硬盘槽位标识与硬盘物理端口的标准对应关系。According to the hard disk backplane matching relationship in the bill of materials, configure the standard correspondence between the hard disk slot identification and the hard disk physical port. 3.根据权利要求2所述的服务器硬盘背板拨码防呆检测方法,其特征在于,解析物理清单中的背板搭配关系之后,还包括以下步骤:3. The server hard disk backplane dialing code foolproof detection method according to claim 2, characterized in that after parsing the backplane matching relationship in the physical list, it also includes the following steps: 根据物料清单中的背板搭配关系,筛选出待点亮定位灯的各个硬盘槽位标识;According to the backplane matching relationship in the bill of materials, select the hard drive slot identifiers to be lit with positioning lights; 对筛选出的待点亮定位灯的各个硬盘槽位标识进行排序。Sort the hard drive slot IDs that are selected to be lit with positioning lights. 4.根据权利要求3所述的服务器硬盘背板拨码防呆检测方法,其特征在于,控制所有硬盘背板的硬盘定位灯熄灭之后,该方法具体包括以下步骤:4. The server hard disk backplane dial code detection method according to claim 3, characterized in that after controlling the hard disk positioning lights of all hard disk backplanes to go out, the method specifically includes the following steps: 向待测硬盘背板发送包含第一个硬盘槽位标识的硬盘定位灯点亮指令,根据硬盘槽位标识与硬盘物理端口的标准对应关系,配置硬盘物理端口当前各个定位灯状态的期望状态;Send the hard disk positioning light lighting instruction containing the first hard disk slot identification to the hard disk under test backplane, and configure the desired status of each positioning light status of the hard disk physical port according to the standard correspondence between the hard disk slot identification and the hard disk physical port; 待测硬盘背板响应于接收到包含第一个硬盘槽位标识的硬盘定位灯点亮指令,查询拨码状态,根据拨码状态与硬盘槽位的对应关系,匹配到第一个硬盘槽位标识对应的硬盘槽位;The hard drive backplane under test responds to receiving the hard drive positioning light lighting instruction containing the first hard drive slot identification, queries the dialing status, and matches the first hard drive slot based on the correspondence between the dialing status and the hard drive slot. Identify the corresponding hard disk slot; 控制所匹配到的硬盘槽位的定位灯点亮;Control the positioning light of the matched hard disk slot to light up; 响应于第一个定位灯点亮操作执行完成,查询所有硬盘背板的硬盘物理端口的定位灯状态;In response to the completion of the first positioning light lighting operation, query the positioning light status of the hard disk physical ports of all hard disk backplanes; 判断各个硬盘物理端口的定位灯状态与期望状态是否一致;Determine whether the positioning light status of each hard disk physical port is consistent with the expected status; 若一致,则判断筛选出的所有硬盘槽位标识是否已全部测试完成,若否,则向待测硬盘背板发送包含第二个硬盘槽位标识的硬盘定位灯点亮指令,若是,则判定硬盘背板拨码配置正常,同时控制所有硬盘背板的硬盘定位灯熄灭;If they are consistent, it is judged whether all the screened hard disk slot identifications have been tested. If not, a hard disk positioning light lighting instruction containing the second hard disk slot identification is sent to the hard disk backplane to be tested. If so, it is judged. The hard disk backplane dialing configuration is normal, and the hard disk positioning lights controlling all hard disk backplanes are turned off at the same time; 若不一致,则判定硬盘背板拨码配置异常,同时控制所有硬盘背板的硬盘定位灯熄灭。If they are inconsistent, it is determined that the hard disk backplane DIP configuration is abnormal, and the hard disk positioning lights of all hard disk backplanes are controlled to turn off. 5.根据权利要求1所述的服务器硬盘背板拨码防呆检测方法,其特征在于,向待测硬盘背板发送硬盘定位灯点亮指令,具体为:5. The server hard disk backplane dial code detection method according to claim 1, characterized in that a hard disk positioning light lighting instruction is sent to the hard disk backplane to be tested, specifically: 向待测硬盘背板上的复杂可编程逻辑器件发送硬盘定位灯点亮指令;Send the hard disk positioning light lighting instruction to the complex programmable logic device on the backplane of the hard disk under test; 待测硬盘背板响应硬盘定位灯点亮指令,查询拨码状态,根据拨码状态与硬盘槽位的对应关系,匹配到硬盘槽位标识对应的硬盘槽位,控制所匹配到的硬盘槽位的定位灯点亮,具体为:The backplane of the hard disk under test responds to the hard disk positioning light lighting command, queries the dialing status, and matches the hard disk slot corresponding to the hard disk slot identification according to the correspondence between the dialing status and the hard disk slot, and controls the matched hard disk slot. The positioning light is on, specifically: 待测硬盘背板上的复杂可编程逻辑器件响应硬盘定位灯点亮指令,查询拨码状态,根据拨码状态与硬盘槽位的对应关系,匹配到硬盘槽位标识对应的硬盘槽位;The complex programmable logic device on the backplane of the hard disk under test responds to the hard disk positioning light lighting command, queries the dialing status, and matches the hard disk slot corresponding to the hard disk slot identification according to the corresponding relationship between the dialing status and the hard disk slot; 输出相应高低电平状态的脉冲信号到所匹配到的硬盘槽位,控制相应定位灯点亮。Output corresponding high and low level pulse signals to the matched hard disk slot, and control the corresponding positioning light to light up. 6.根据权利要求5所述的服务器硬盘背板拨码防呆检测方法,其特征在于,配置硬盘槽位标识与硬盘物理端口的标准对应关系之后,还包括以下步骤:6. The server hard disk backplane dial code detection method according to claim 5, characterized in that after configuring the standard correspondence between the hard disk slot identification and the hard disk physical port, it also includes the following steps: 配置硬盘物理端口与硬盘背板的寄存器状态字节的对应关系。Configure the corresponding relationship between the hard disk physical port and the register status byte of the hard disk backplane. 7.根据权利要求6所述的服务器硬盘背板拨码防呆检测方法,其特征在于,响应于定位灯点亮操作执行完成,查询所有硬盘背板的硬盘物理端口的定位灯状态,具体包括:7. The server hard disk backplane dial code detection method according to claim 6, characterized in that, in response to the completion of the positioning light lighting operation, query the positioning light status of the hard disk physical ports of all hard disk backplanes, specifically including : 响应于定位灯点亮操作执行完成,待测硬盘背板上的复杂可编程逻辑器件获取所有硬盘背板的硬盘物理端口的定位灯状态,并写入到寄存器;In response to the completion of the positioning light lighting operation, the complex programmable logic device on the hard disk backplane under test obtains the positioning light status of the hard disk physical ports of all hard disk backplanes and writes it to the register; 基板管理控制器扫描寄存器中状态字节;The baseboard management controller scans the status byte in the register; 根据硬盘物理端口与硬盘背板的寄存器状态字节的对应关系,解析所扫描寄存器中状态字节,查询到所有硬盘背板的硬盘物理端口的定位灯状态。According to the corresponding relationship between the hard disk physical port and the register status byte of the hard disk backplane, the status byte in the scanned register is analyzed, and the positioning light status of the hard disk physical port of all hard disk backplanes is queried. 8.一种服务器硬盘背板拨码防呆检测系统,其特征在于,包括,8. A server hard disk backplane dial code fool-proof detection system, which is characterized by including: 定位灯熄灭控制模块:控制所有硬盘背板的硬盘定位灯熄灭;Positioning light extinguishing control module: controls the hard disk positioning lights of all hard disk backplanes to turn off; 点亮指令发送模块:向待测硬盘背板发送硬盘定位灯点亮指令,所述硬盘定位灯点亮指令中包含待点亮定位灯的硬盘槽位标识;Lighting instruction sending module: sends a hard disk positioning light lighting instruction to the hard disk backplane to be tested, and the hard disk positioning light lighting instruction includes the hard disk slot identification of the positioning light to be lighted; 点亮指令响应模块:响应硬盘定位灯点亮指令,查询拨码状态,根据拨码状态与硬盘槽位的对应关系,匹配到硬盘槽位标识对应的硬盘槽位;控制所匹配到的硬盘槽位的定位灯点亮;Lighting command response module: responds to the hard disk positioning light lighting command, queries the dialing status, and matches the hard disk slot corresponding to the hard disk slot identification according to the correspondence between the dialing status and the hard disk slot; controls the matched hard disk slot. The positioning light is on; 定位灯状态查询模块:响应于定位灯点亮操作执行完成,查询所有硬盘背板的硬盘物理端口的定位灯状态;Positioning light status query module: In response to the completion of the positioning light lighting operation, query the positioning light status of the hard disk physical ports of all hard disk backplanes; 检测结果判断模块:判断各个硬盘物理端口的定位灯状态与期望状态是否一致,若一致则硬盘背板拨码配置正常,否则硬盘背板拨码配置异常。Test result judgment module: Determine whether the positioning light status of each hard disk physical port is consistent with the expected status. If they are consistent, the hard disk backplane dialing configuration is normal, otherwise the hard disk backplane dialing configuration is abnormal. 9.一种终端,其特征在于,包括:9. A terminal, characterized in that it includes: 存储器,用于存储服务器硬盘背板拨码防呆检测程序;Memory, used to store the server hard disk backplane dial code fool-proof detection program; 处理器,用于执行所述服务器硬盘背板拨码防呆检测程序时实现如权利要求1-7任一项所述服务器硬盘背板拨码防呆检测方法的步骤。A processor, configured to implement the steps of the server hard disk backplane dial-coding fool-proof detection method according to any one of claims 1 to 7 when executing the server hard disk backplane dial-coding fool-proof detection program. 10.一种计算机可读存储介质,其特征在于,所述可读存储介质上存储有服务器硬盘背板拨码防呆检测程序,所述服务器硬盘背板拨码防呆检测程序被处理器执行时实现如权利要求1-7任一项所述服务器硬盘背板拨码防呆检测方法的步骤。10. A computer-readable storage medium, characterized in that the readable storage medium stores a server hard disk backplane dialing code anti-fool detection program, and the server hard disk backplane dialing code anti-fool detection program is executed by the processor When implementing the steps of the server hard disk backplane dial code fool-proof detection method as described in any one of claims 1-7.
CN202310941960.7A 2023-07-28 2023-07-28 Method, system, terminal and medium for detecting dial fool-proof of hard disk backboard of server Pending CN117076214A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310941960.7A CN117076214A (en) 2023-07-28 2023-07-28 Method, system, terminal and medium for detecting dial fool-proof of hard disk backboard of server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310941960.7A CN117076214A (en) 2023-07-28 2023-07-28 Method, system, terminal and medium for detecting dial fool-proof of hard disk backboard of server

Publications (1)

Publication Number Publication Date
CN117076214A true CN117076214A (en) 2023-11-17

Family

ID=88714375

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310941960.7A Pending CN117076214A (en) 2023-07-28 2023-07-28 Method, system, terminal and medium for detecting dial fool-proof of hard disk backboard of server

Country Status (1)

Country Link
CN (1) CN117076214A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117648134A (en) * 2024-01-26 2024-03-05 宝德计算机系统股份有限公司 Self-adaptive positioning method, device and storage medium for server multi-backboard screen printing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117648134A (en) * 2024-01-26 2024-03-05 宝德计算机系统股份有限公司 Self-adaptive positioning method, device and storage medium for server multi-backboard screen printing
CN117648134B (en) * 2024-01-26 2024-05-14 宝德计算机系统股份有限公司 Self-adaptive positioning method, device and storage medium for server multi-backboard screen printing

Similar Documents

Publication Publication Date Title
US20150026526A1 (en) Techniques for testing enclosure management controller using backplane initiator
CN111694760B (en) Server system, flash memory module and method for updating firmware mapping file
US9690602B2 (en) Techniques for programming and verifying backplane controller chip firmware
US5469554A (en) Detecting the presence of a device on a computer system bus by altering the bus termination
US10853213B2 (en) Validation of installation of removeable computer hardware components
CN104054064B (en) Flexible port configuration based on interface coupling
CN106649019B (en) A kind of complete machine automation PCIE communication quality test method based on serial ports
US9886335B2 (en) Techniques for validating functionality of backplane controller chips
CN114996069A (en) A motherboard testing method, device and medium
CN115221015A (en) Hard disk failure early warning method, system, terminal and storage medium
CN115878533A (en) Adaptive configuration method, device, equipment and storage medium of AI server
CN114780316A (en) Memory test method, device and system
CN117076214A (en) Method, system, terminal and medium for detecting dial fool-proof of hard disk backboard of server
CN115269293B (en) Interconnection interface testing method based on chip FPGA prototype verification equipment
CN115981971A (en) Lighting method of server hard disk and server
CN118708519B (en) Server expansion module, server, configuration method, device and medium
CN107818032A (en) A kind of mainboard, information Method of printing, system, device and storage medium
CN115729640A (en) Firmware upgrade method, upgrade tool and computing device of programmable logic device
US20060026462A1 (en) Apparatus for recovering BIOS in computer system
CN116112412B (en) A virtual network card binding redundancy function testing method, system, device and medium
CN117370118A (en) Method, device and equipment for detecting hard disk slot number and readable storage medium
CN104678292A (en) Test method and device for CPLD (Complex Programmable Logic Device)
CN111309353A (en) Method and device for updating FPGA (field programmable Gate array) firmware of operation board based on server control board
CN117319528A (en) Automatic identification method for vehicle-mounted display terminal panel and related equipment
CN112395224B (en) Data processing method and system, concatenation device and electronic equipment

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