CN111289922B - Cable plugging detection method and related equipment - Google Patents
Cable plugging detection method and related equipment Download PDFInfo
- Publication number
- CN111289922B CN111289922B CN202010075791.XA CN202010075791A CN111289922B CN 111289922 B CN111289922 B CN 111289922B CN 202010075791 A CN202010075791 A CN 202010075791A CN 111289922 B CN111289922 B CN 111289922B
- Authority
- CN
- China
- Prior art keywords
- raid card
- cable
- detection
- bmc
- hard disk
- 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.)
- Active
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
本申请提供一种线缆插接检测方法及相关设备,该方法包括:基板管理控制器BMC,用于向RAID卡发送线缆检测指示,该线缆检测指示用于指示RAID卡检测RAID卡与硬盘背板之间的线缆的连接状态;该RAID卡,用于接收该线缆检测指示,并根据该线缆检测指示按照预设规则生成预设标记的检测信号;向该硬盘背板发送该检测信号;该BMC获取解析结果,根据该解析结果和预设值进行比较确认该线缆插接状态,其中,该解析结果为硬盘背板解析该检测信号获得。以此实现自动化的线缆插接检测,节省人力物力成本。
The present application provides a cable insertion detection method and related equipment. The method includes: a baseboard management controller (BMC), configured to send a cable detection instruction to a RAID card, where the cable detection instruction is used to instruct the RAID card to detect the relationship between the RAID card and the RAID card. The connection status of the cables between the hard disk backplanes; the RAID card is used to receive the cable detection instruction, and generate a detection signal with a preset mark according to a preset rule according to the cable detection instruction; send it to the hard disk backplane The detection signal; the BMC obtains an analysis result, and compares the analysis result with a preset value to confirm the cable insertion state, wherein the analysis result is obtained by analyzing the detection signal by the hard disk backplane. In this way, automatic cable insertion detection is realized, which saves manpower and material costs.
Description
技术领域technical field
本申请涉及线缆插接技术领域,尤其涉及一种线缆插接检测方法及相关设备。The present application relates to the technical field of cable insertion, and in particular, to a cable insertion detection method and related equipment.
背景技术Background technique
服务器中通常利用硬盘背板实现独立硬盘冗余阵列(redundant array ofindependent disks,RAID)卡和多个硬盘的连接,进而通过RAID卡对硬盘上的数据进行条带化,实现对数据成块存取。通常地,RAID卡与硬盘背板需要通过大量线缆连接实现数据交互,而同一RAID卡连接的硬盘的数量受限于RAID卡的端口数量,当服务器中配置的硬盘增多时,RAID卡的数量也随之增多,相应地,线缆数量也越多。另一方面,为了增加服务器中线缆的可复用性,线缆端口采用的连接器均相同,不同线缆的差异仅在于长度的区别。但不同线缆在机箱内可能有很长一段平行的走线,或者存在线缆多次交叉的情况,很难区分与对端端口之间的对应关系。在生产和维护过程中,容易造成线缆之间相互插错。传统技术中,通过在线缆上增加标签等物理方式标识不同线缆,利用维护人员人为确认的方式确定线缆插接的准确性。但对于同一服务器中存在多个RAID卡,且需要支持RAID灵活插接的情况,由于线缆多、布局复杂,当前方法无法实现线缆插接的有效检测,容易出现服务器无法识别硬盘或线缆连接错乱的问题,影响服务器中应用使用硬盘资源。因此,如何提供一种自动化的线缆插接检测方法成为亟待解决的技术问题。In the server, the hard disk backplane is usually used to realize the connection between the redundant array of independent disks (RAID) card and multiple hard disks, and then the data on the hard disks is striped through the RAID card to realize the block access to the data. . Usually, the RAID card and the hard disk backplane need to be connected through a large number of cables to realize data interaction, and the number of hard disks connected to the same RAID card is limited by the number of ports on the RAID card. When the number of hard disks configured in the server increases, the number of RAID cards It has also increased, and accordingly, the number of cables has also increased. On the other hand, in order to increase the reusability of cables in the server, the connectors used in the cable ports are all the same, and the difference between different cables is only the difference in length. However, different cables may have a long parallel route in the chassis, or the cables may cross multiple times, so it is difficult to distinguish the corresponding relationship with the opposite port. In the process of production and maintenance, it is easy to cause the wrong cables to be inserted into each other. In the traditional technology, different cables are identified by physical methods such as adding labels on the cables, and the accuracy of cable insertion is determined by manual confirmation by maintenance personnel. However, in the case where there are multiple RAID cards in the same server and need to support flexible RAID insertion, due to the large number of cables and the complex layout, the current method cannot realize the effective detection of cable insertion, and it is easy to cause the server to fail to recognize the hard disk or cable. The problem of disordered connection affects the use of hard disk resources by applications in the server. Therefore, how to provide an automated cable insertion detection method has become an urgent technical problem to be solved.
发明内容SUMMARY OF THE INVENTION
本申请公开了一种线缆插接检测方法及相关设备,能够实现自动化的线缆插接检测,节省人力物力成本。The present application discloses a cable insertion detection method and related equipment, which can realize automatic cable insertion detection and save labor and material cost.
第一方面,本申请公开了一种线缆插接检测方法,该方法应用于服务器,该服务器包括主板和硬盘背板。其中:该主板中包括基板管理控制器(baseboard managementcontroller,BMC)和独立磁盘冗余阵列RAID卡,该BMC和该RAID卡通过插槽连接。该硬盘背板中包括多个连接器。该RAID卡的端口与该多个连接器端口通过线缆一对一连接。BMC,用于向上述RAID卡发送线缆检测指示。该RAID卡接收该线缆检测指示,并根据该线缆检测指示按照预设规则生成预设标记的检测信号;然后,向上述硬盘背板发送该生成的检测信号。该BMC获取解析结果,根据该解析结果和预设值进行比较确认上述RAID卡与多个连接器端口之间的线缆插接状态,其中,该解析结果为硬盘背板解析该RAID卡生成的检测信号获得。通过基板管理控制器BMC控制RAID卡生成不同的检测信号来检测RAID卡与连接器之间的线缆插接是否正确,从而实现了自动化的线缆检测,提高了线缆检测的效率和准确率,节省人力物力成本。In a first aspect, the present application discloses a cable insertion detection method, which is applied to a server, and the server includes a main board and a hard disk backplane. Wherein: the mainboard includes a baseboard management controller (baseboard management controller, BMC) and a redundant array of independent disks RAID card, and the BMC and the RAID card are connected through a slot. The hard disk backplane includes a plurality of connectors. The ports of the RAID card are connected one-to-one with the plurality of connector ports through cables. The BMC is used to send the cable detection instruction to the above RAID card. The RAID card receives the cable detection instruction, and generates a preset-marked detection signal according to a preset rule according to the cable detection instruction; and then sends the generated detection signal to the hard disk backplane. The BMC obtains an analysis result, and compares the analysis result with a preset value to confirm the cable insertion state between the RAID card and the plurality of connector ports, wherein the analysis result is generated by the hard disk backplane analyzing the RAID card. The detection signal is obtained. The baseboard management controller BMC controls the RAID card to generate different detection signals to detect whether the cable between the RAID card and the connector is correctly inserted, thereby realizing automatic cable detection and improving the efficiency and accuracy of cable detection. , saving manpower and material costs.
可选的,上述插槽可以是快捷外围部件互连标准(peripheral componentinterconnect express,PCIe)插槽、内置集成电路(inter-integrated circuit,I2C)插槽或串行通用输入输出(serial general purpose input/output,SGPIO)插槽等等。Optionally, the above slot may be a peripheral component interconnect express (PCIe) slot, an inter-integrated circuit (I2C) slot, or a serial general purpose input/output (serial general purpose input/output) slot. output, SGPIO) slot, etc.
在一种可能的实施方式中,上述生成预设标记的检测信号的预设规则可以包括以下方式中任意一种:In a possible implementation manner, the above-mentioned preset rule for generating the detection signal of the preset mark may include any one of the following manners:
方式1:RAID卡的输出端口均会配置不同的占空比的方波,线缆检测指示中包括占空比的值,RAID卡可以按照该占空比值生成检测信号,以此检测RAID卡的端口与连接器的端口连接的线缆的状态。Mode 1: The output ports of the RAID card are all configured with square waves with different duty cycles. The cable detection indication includes the value of the duty cycle. The RAID card can generate a detection signal according to the duty cycle value to detect the The status of the cable that the port is connected to the port of the connector.
方式2:线缆检测指示中包括频率,RAID卡可以按照该频率生成检测信号,以此检测RAID卡的端口与连接器的端口连接的线缆的状态。例如,每个RAID卡112的每个信号输出端口输出的检测信号的频率均不相同。Mode 2: The cable detection indication includes a frequency, and the RAID card can generate a detection signal according to the frequency, so as to detect the status of the cable connected between the port of the RAID card and the port of the connector. For example, the frequencies of the detection signals output by each signal output port of each
方式3:线缆检测指示中包括串行数据,该串行数据可以用于唯一标识一个信号,以此检测RAID卡的端口与连接器的端口连接的线缆的状态。例如,每个RAID卡112的每个信号输出端口输出的检测信号为不相同的串行数据信号。Mode 3: The cable detection indication includes serial data, and the serial data can be used to uniquely identify a signal, so as to detect the state of the cable connected between the port of the RAID card and the port of the connector. For example, the detection signals output by each signal output port of each
方式4:线缆检测指示中包括随机数字,不同线缆检测指示中携带的随机数字不同,检测信号的指定位置携带该数字,RAID卡产生用于表示该数字的任意形式的检测信号。Mode 4: The cable detection instruction includes a random number. Different cable detection instructions carry different random numbers. The designated position of the detection signal carries the number, and the RAID card generates a detection signal in any form to represent the number.
在另一种可能的实施方式中,RAID卡将生成的检测信号按照预设规则从多个信号输出端口输出。In another possible implementation manner, the RAID card outputs the generated detection signal from a plurality of signal output ports according to a preset rule.
可选的,该预设规则可以包括在RAID卡中预先配置的生成的检测信号与多个信号输出端口的关联关系。例如,将生成的占空比20%的信号从信号输出端口1输出的关联关系,将生成的占空比30%的信号从信号输出端口2输出的关联关系等等。Optionally, the preset rule may include an association relationship between the generated detection signal and a plurality of signal output ports preconfigured in the RAID card. For example, the relationship of outputting the generated signal with a duty ratio of 20% from the
可选的,该预设规则可以包括根据接收到的线缆检测指示来确定的生成的检测信号与多个信号输出端口的映射关系。例如,该接收到的线缆检测指示包括将生成的占空比20%的信号从信号输出端口1输出,和将生成的占空比30%的信号从信号输出端口2输出等等类似的指示。Optionally, the preset rule may include a mapping relationship between the generated detection signal and multiple signal output ports determined according to the received cable detection indication. For example, the received cable detection instruction includes an instruction to output the generated signal with a duty cycle of 20% from the
可选的,该预设规则可以包括根据RAID卡首次将生成的检测信号从对应的信号输出端口输出时信号与输出端口之间的关联关系来确定检测信号的输出端口。例如,RAID卡1中首次是将占空比20%和30%的检测信号分别从信号输出端口1和信号输出端口2输出,则再次输出时还是将占空比20%和30%的检测信号分别从信号输出端口1和信号输出端口2输出。Optionally, the preset rule may include determining the output port of the detection signal according to the correlation between the signal and the output port when the RAID card outputs the generated detection signal from the corresponding signal output port for the first time. For example, for the first time in
在另一种可能的实施方式中,上述插槽为上述主板中用于连接多个RAID卡的多个插槽中的任意一个。上述BMC向上述RAID卡发送线缆检测指示可以是该插槽的排序信息;该排序信息由该BMC对该主板中多个RAID卡的多个插槽排序后得到。本申请使用RAID卡插槽的排序信息作为RAID卡生成检测信号的线缆检测指示,简单易实现,不占用过多的计算资源。In another possible implementation manner, the above-mentioned slot is any one of a plurality of slots in the above-mentioned motherboard for connecting a plurality of RAID cards. The cable detection indication sent by the BMC to the RAID card may be sorting information of the slot; the sorting information is obtained by sorting the multiple slots of the multiple RAID cards in the motherboard by the BMC. The present application uses the sorting information of the RAID card slot as the cable detection indication of the detection signal generated by the RAID card, which is simple and easy to implement and does not occupy too many computing resources.
在另一种可能的实施方式中,上述BMC获取的解析结果,具体为该BMC获取寄存器的预设地址中存储的该解析结果。其中,该预设地址包括多个存储地址,该多个存储地址与上述多个连接器端口一一映射。该多个存储地址中每一个地址用于存储一个检测信号的解析结果;每一个地址存储的解析结果为上述硬盘背板的背板处理器根据每个地址映射的连接器端口接收的检测信号所解析出的结果。本申请通过将当次检测时对检测信号解析得到的解析结果与预设值比较,从而快速判断出RAID卡与连接器端口之间线缆的连接情况。In another possible implementation manner, the analysis result obtained by the BMC is specifically the analysis result stored in the preset address of the BMC obtaining register. Wherein, the preset address includes a plurality of storage addresses, and the plurality of storage addresses are mapped one-to-one with the above-mentioned plurality of connector ports. Each of the plurality of storage addresses is used to store an analysis result of a detection signal; the analysis result stored in each address is the result of the detection signal received by the backplane processor of the above-mentioned hard disk backplane according to the connector port mapped by each address. parsed results. The present application can quickly determine the connection of the cable between the RAID card and the connector port by comparing the analysis result obtained by analyzing the detection signal during the current detection with the preset value.
在另一种可能的实施方式中,上述RAID卡的端口与上述多个连接器端口首次通过线缆一对一连接的情况为线缆正确插接的情况。那么,在上述BMC向上述RAID卡发送线缆检测指示之前,且在该BMC首次发起对该RAID卡的端口与多个连接器端口之间的线缆插接检测的情况下,该BMC将从寄存器的预设地址中获取的解析结果设置为预设值;其中,该解析结果包括上述硬盘背板的背板处理器首次根据该多个连接器端口接收的检测信号所解析出的结果。在本申请中,BMC无需预先设置各种插接方式的预设值和各种插接方式的预设告警信息,只需在首次检测时将首次检测时寄存器中预设地址中存储的信息作为预设值,用于后续的比较即可。此外,至于告警,由于是由BMC控制RAID卡生成检测信号,且BMC还可以控制RAID卡生成的检测信号从哪一个RAID卡端口发送,因此BMC可以根据这些信息和前述比较的结果确定哪些线缆插接错误。这样,本申请可以实现自动化的线缆检测。In another possible implementation manner, the case that the port of the RAID card and the plurality of connector ports are connected one-to-one by cables for the first time is the case that the cables are correctly inserted. Then, before the above-mentioned BMC sends the cable detection instruction to the above-mentioned RAID card, and when the BMC initiates the cable insertion detection between the port of the RAID card and the plurality of connector ports for the first time, the BMC will start from the The parsing result obtained in the preset address of the register is set as a preset value; wherein, the parsing result includes the result parsed for the first time by the backplane processor of the hard disk backplane according to the detection signals received by the plurality of connector ports. In this application, the BMC does not need to preset the preset values of various plug-in methods and the preset alarm information of various plug-in methods in advance, and only needs to use the information stored in the preset address in the register at the first detection as the first detection. The default value can be used for subsequent comparisons. In addition, as for the alarm, since the BMC controls the RAID card to generate the detection signal, and the BMC can also control which RAID card port the detection signal generated by the RAID card is sent from, the BMC can determine which cables to use based on this information and the result of the aforementioned comparison. Misconnection. In this way, the present application can realize automated cable detection.
第二方面,本申请公开了一种线缆插接检测方法,该方法应用于服务器,该服务器包括主板和硬盘背板。其中:该主板和该硬盘背板通过线缆连接。本申请公开的线缆插接检测方法可以包括如下步骤:In a second aspect, the present application discloses a cable insertion detection method, which is applied to a server, and the server includes a main board and a hard disk backplane. Wherein: the motherboard and the hard disk backplane are connected by cables. The cable insertion detection method disclosed in the present application may include the following steps:
上述主板,用于向上述硬盘背板发送检测信号。该硬盘背板接收该检测信号,并解析该检测信号得到解析结果;向上述主板发送该解析结果。该主板接收该解析结果,根据该解析结果和预设值进行比较确认上述主板与上述硬盘背板之间线缆的插接状态。The above-mentioned mainboard is used for sending a detection signal to the above-mentioned hard disk backplane. The hard disk backplane receives the detection signal, analyzes the detection signal to obtain an analysis result, and sends the analysis result to the mainboard. The mainboard receives the analysis result, and compares the analysis result with the preset value to confirm the plugging state of the cable between the mainboard and the hard disk backplane.
在本申请中,通过基板管理控制器BMC控制RAID卡生成不同的检测信号来检测RAID卡与连接器之间的线缆插接是否正确,从而实现了自动化的线缆检测,提高了线缆检测的效率和准确率,节省人力物力成本。In the present application, the baseboard management controller BMC controls the RAID card to generate different detection signals to detect whether the cable between the RAID card and the connector is correctly inserted, thereby realizing automatic cable detection and improving cable detection. efficiency and accuracy, saving manpower and material costs.
该主板可能实现的操作可以对应参照上述第一方面及其可能的实施方式中BMC和RAID卡所做的操作,此处不再赘述。The operations that may be implemented by the motherboard may correspond to the operations performed by the BMC and the RAID card in the first aspect and its possible implementation manners, which will not be repeated here.
第三方面,本申请公开了一种基板管理控制器BMC,该BMC包括用于执行第一方面或第一方面任一种可能实现方式中BMC所做操作的各个单元。In a third aspect, the present application discloses a baseboard management controller BMC, where the BMC includes various units for performing operations performed by the BMC in the first aspect or any possible implementation manner of the first aspect.
第四方面,本申请公开了一种独立磁盘冗余阵列RAID卡,该RAID卡包括用于执行第一方面或第一方面任一种可能实现方式中RAID卡所做操作的各个单元。In a fourth aspect, the present application discloses a redundant array of independent disks RAID card, the RAID card including various units for performing operations performed by the RAID card in the first aspect or any possible implementation manner of the first aspect.
第五方面,本申请公开了一种线缆插接检测的装置,该装置包括:In a fifth aspect, the present application discloses a cable insertion detection device, the device comprising:
第一发送单元,用于向RAID卡发送线缆检测指示;该线缆检测指示用于指示RAID卡检测RAID卡与硬盘背板之间的线缆的连接状态;a first sending unit, configured to send a cable detection instruction to the RAID card; the cable detection instruction is used to instruct the RAID card to detect the connection status of the cable between the RAID card and the hard disk backplane;
接收单元,用于接收该线缆检测指示;a receiving unit for receiving the cable detection indication;
生成单元,用于根据该线缆检测指示按照预设规则生成预设标记的检测信号;a generating unit, configured to generate a detection signal of a preset mark according to a preset rule according to the cable detection instruction;
第二发送单元,用于向该硬盘背板发送该检测信号;a second sending unit, configured to send the detection signal to the hard disk backplane;
获取单元,用于获取解析结果;Get unit, used to get the parsing result;
比较单元,用于根据该解析结果和预设值比较确认该线缆插接状态,其中,该解析结果为硬盘背板解析该检测信号获得。The comparison unit is configured to compare and confirm the plug-in state of the cable according to the analysis result and a preset value, wherein the analysis result is obtained by analyzing the detection signal by the hard disk backplane.
在一种可能的实施方式中,上述装置的多个插槽中插接有多个RAID卡;上述线缆检测指示为上述RAID插接的插槽的排序信息;该排序信息为对该多个插槽排序后得到。In a possible implementation manner, a plurality of RAID cards are inserted into the plurality of slots of the above-mentioned device; the above-mentioned cable detection indication is the order information of the slots in which the above-mentioned RAID is inserted; the order information is the order information of the plurality of Get after the slots are sorted.
在另一种可能的实施方式中,上述硬盘背板通过多个连接器端口接收上述检测信号;In another possible implementation manner, the hard disk backplane receives the detection signal through a plurality of connector ports;
上述获取单元,具体用于获取寄存器的预设地址中存储的上述解析结果。The above obtaining unit is specifically configured to obtain the above analysis result stored in the preset address of the register.
具体的,该预设地址包括多个存储地址,该多个存储地址与上述多个连接器端口一一映射;该多个存储地址中每一个地址用于存储一个检测信号的解析结果;该每一个地址存储的解析结果为上述硬盘背板的背板处理器根据上述每一个地址映射的连接器端口接收的检测信号所解析出的结果。Specifically, the preset address includes a plurality of storage addresses, and the plurality of storage addresses are mapped one-to-one with the above-mentioned plurality of connector ports; each address of the plurality of storage addresses is used to store an analysis result of a detection signal; The analysis result stored in one address is the result analyzed by the backplane processor of the hard disk backplane according to the detection signal received by the connector port of each address mapping.
在另一种可能的实施方式中,上述比较单元,还用于在首次发起对上述RAID卡与硬盘背板之间的线缆插接检测时,将从寄存器的预设地址中获取的解析结果设置为预设值;其中,该预设值包括该硬盘背板的背板处理器首次根据上述多个连接器端口接收的检测信号所解析出的结果。In another possible implementation manner, the above-mentioned comparison unit is further configured to obtain the analysis result obtained from the preset address of the register when the cable insertion detection between the above-mentioned RAID card and the hard disk backplane is initiated for the first time is set as a default value; wherein, the default value includes the result parsed for the first time by the backplane processor of the hard disk backplane according to the detection signals received by the plurality of connector ports.
可选的,上述线缆插接检测的装置可以是服务器的主板。Optionally, the above-mentioned device for detecting cable insertion may be a mainboard of a server.
第六方面,本申请公开了一种服务器,该服务器包括上述第三方面的基板管理控制器和上述第四方面的独立磁盘冗余阵列。In a sixth aspect, the present application discloses a server, which includes the baseboard management controller of the third aspect and the redundant array of independent disks of the fourth aspect.
第七方面,本申请公开了一种基板管理控制器BMC,该BMC包括处理器、存储器以及通信接口;该存储器以及该通信接口与该处理器耦合。该存储器存储有计算机程序;该处理器调用该计算机程序,使得该BMC执行第一方面或第一方面任一种可能实现方式中所述BMC所执行方法的操作步骤。In a seventh aspect, the present application discloses a baseboard management controller BMC, where the BMC includes a processor, a memory, and a communication interface; the memory and the communication interface are coupled to the processor. The memory stores a computer program; the processor invokes the computer program, so that the BMC executes the operation steps of the method performed by the BMC in the first aspect or any possible implementation manner of the first aspect.
第八方面,本申请公开了一种独立磁盘冗余阵列RAID卡,该RAID卡包括处理器、存储器以及通信接口;该存储器以及该通信接口与该处理器耦合。该存储器存储有计算机程序;该处理器调用该计算机程序,使得该RAID卡执行第一方面或第一方面任一种可能实现方式中所述RAID卡所执行方法的操作步骤。In an eighth aspect, the present application discloses a RAID card of a redundant array of independent disks. The RAID card includes a processor, a memory, and a communication interface; the memory and the communication interface are coupled to the processor. The memory stores a computer program; the processor invokes the computer program, so that the RAID card executes the operation steps of the method performed by the RAID card in the first aspect or any possible implementation manner of the first aspect.
第九方面,本申请公开了一种主板,该主板中包括基板管理控制器BMC和独立磁盘冗余阵列RAID卡。该BMC为第七方面所述的BMC,该RAID卡为第八方面所述的RAID卡。In a ninth aspect, the present application discloses a mainboard, which includes a baseboard management controller BMC and a redundant array of independent disks RAID card. The BMC is the BMC of the seventh aspect, and the RAID card is the RAID card of the eighth aspect.
第十方面,本申请公开了一种服务器,该服务器包括主板和硬盘背板,该主板中包括基板管理控制器BMC和独立磁盘冗余阵列RAID卡。该BMC和该RAID卡通过插槽连接;该硬盘背板中包括多个连接器;该RAID卡的端口与该多个连接器端口通过线缆一对一连接。该BMC为第七方面所述的BMC;该RAID卡为第八方面所述的RAID卡。In a tenth aspect, the present application discloses a server, which includes a main board and a hard disk backplane, and the main board includes a baseboard management controller BMC and a redundant array of independent disks RAID card. The BMC and the RAID card are connected through slots; the hard disk backplane includes a plurality of connectors; the ports of the RAID card are connected to the plurality of connector ports one-to-one by cables. The BMC is the BMC described in the seventh aspect; the RAID card is the RAID card described in the eighth aspect.
第十一方面,本申请公开了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序被处理器执行以实现各个方面或各个方面任意一种可能实现方式所述方法的操作步骤。In an eleventh aspect, the present application discloses a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and the computer program is executed by a processor to implement the various aspects or any possible implementation manner of the various aspects. steps of the method.
第十二方面,本申请提供了一种计算机程序产品,当其在计算机上运行时,使得计算机执行以上各个方面描述的方法。In a twelfth aspect, the present application provides a computer program product which, when run on a computer, causes the computer to perform the methods described in the various aspects above.
综上所述,在本申请中,通过基板管理控制器BMC控制RAID卡生成不同的检测信号来检测RAID卡与连接器之间的线缆插接是否正确,从而实现了自动化的线缆检测,提高了线缆检测的效率和准确率,节省人力物力成本。To sum up, in this application, the baseboard management controller BMC controls the RAID card to generate different detection signals to detect whether the cable between the RAID card and the connector is correctly inserted, thereby realizing automatic cable detection. It improves the efficiency and accuracy of cable detection and saves manpower and material costs.
附图说明Description of drawings
图1为本申请实施例提供的一种线缆插接检测方法适用的系统结构示意图;FIG. 1 is a schematic structural diagram of a system to which a cable insertion detection method provided by an embodiment of the present application is applicable;
图2为本申请实施例提供的一种线缆插接检测方法的流程示意图;FIG. 2 is a schematic flowchart of a cable insertion detection method provided by an embodiment of the present application;
图3为本申请实施例提供的一种基板管理控制器的逻辑结构示意图;FIG. 3 is a schematic diagram of a logical structure of a baseboard management controller according to an embodiment of the present application;
图4为本申请实施例提供的一种独立硬盘冗余阵列的逻辑结构示意图;4 is a schematic diagram of a logical structure of a redundant array of independent hard disks according to an embodiment of the present application;
图5为本申请实施例提供的一种主板的逻辑结构示意图;FIG. 5 is a schematic diagram of a logical structure of a motherboard according to an embodiment of the present application;
图6为本申请实施例提供的一种基板管理控制器的硬件结构示意图;FIG. 6 is a schematic diagram of a hardware structure of a baseboard management controller according to an embodiment of the present application;
图7为本申请实施例提供的一种独立硬盘冗余阵列的硬件结构示意图。FIG. 7 is a schematic diagram of a hardware structure of a redundant array of independent hard disks according to an embodiment of the present application.
具体实施方式Detailed ways
为了更好的理解本申请提供的一种线缆插接检测方法,下面先对本申请适用的场景示例性地描述。参阅图1,图1是本申请提供的线缆插接检测方法适用的服务器100的系统构架示意图。如图1所示,服务器100可以包括主板110和硬盘背板120。In order to better understand a cable insertion detection method provided by the present application, the following is an exemplary description of the applicable scenarios of the present application. Referring to FIG. 1 , FIG. 1 is a schematic diagram of a system architecture of a
其中,主板110中包括基板管理控制器(baseboard management controller,BMC)111、主板处理器113和至少一个RAID卡112。主板处理器113和BMC可以通过并行总线连接实现通信。可选的,该并行总线可以是(standard data bus,STD)或电气及电子工程师学会(institute of electrical and electronics engineers,IEEE)488等等。The
主板110中还可以包括中央处理器(central processing unit,CPU)(图1未示出),CPU可以通过硬盘背板120将数据存储至硬盘或从硬盘中读取数据。The
基板管理控制器111可以用于在设备初始化过程中,对设备进行固件升级、查看设备等一些操作。例如,基板管理控制器111可以用于在服务器100的备(STANBY)电源上电时即可完成线缆的检测,避免服务器操作系统启动后才发现线缆连接问题所导致的业务中断问题。The baseboard management controller 111 can be used to perform some operations such as firmware upgrade of the device, viewing of the device, and the like during the device initialization process. For example, the baseboard management controller 111 can be used to complete the cable detection when the standby (STANBY) power supply of the
主板处理器113是主板中用于辅助CPU完成各种数据的计算的器件。可选的,主板处理器113可以是CPU、复杂可编程逻辑器件(complex programmable logic device,CPLD)、数字信号处理器(digital signal processing,DSP)、专用集成电路(applicationspecific integrated circuit,ASIC)、现场可编程门阵列(field programmable gatearray,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、通用处理器等等。The
RAID卡112,用于实现服务器110对硬盘的管理。例如,可以通过将多个硬盘组成一个逻辑盘,按照预设规则将该逻辑盘切分为多个条带,每个条带作为一个逻辑卷,以此向上层应用提供存储资源硬盘。此外,通过把数据分成多个数据块(block)并行写入/读出多个硬盘以提高访问硬盘的速度,还可以通过镜像或校验操作提供容错能力等等。The
每个RAID卡112中包括RAID处理器1121和信号输出端口,信号输出端口通过线缆与硬盘背板120的连接器121连接。每个RAID卡112中RAID处理器1121直接与插接该RAID卡112的插槽电连接,然后,RAID卡112的RAID处理器1121与该RAID卡112的多个信号输出端口电连接。其中,RAID处理器1121主要用于对RAID卡112接收到的数据进行处理。例如,在本申请实施例中,RAID处理器1121主要用于对从基板管理控制器111中接收到的线缆检测指示生成检测信号并发送到硬盘背板120中等等。Each
可选的,RAID处理器1121可以是复杂可编程逻辑器件(CPLD)、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、通用处理器等等。Optionally, the
每个RAID卡112通过插槽1122与主板110连接。其中,插接RAID卡的插槽1122可以是快捷外围部件互连标准(peripheral component interconnect express,PCIe)插槽、内置集成电路(inter-integrated circuit,I2C)插槽或串行通用输入输出(serial generalpurpose input/output,SGPIO)插槽等等。BMC与RAID卡可以通过PCIE总线、I2C总线或者SGPIO总线等等进行连接通信。Each
在本申请实施例中,BMC111发送的信号通过插接RAID卡112的插槽1122传输到RAID处理器1121,RAID处理器1121根据接收到的线缆检测指示生成对应的检测信号,并将上述检测信号从多个信号输出端口通过线缆传输到硬盘背板120的连接器121端口。其中,每个检测信号均不相同。可选地,不同信号输出端口发送的信号也不相同。In the embodiment of the present application, the signal sent by the BMC 111 is transmitted to the
RAID卡112可以根据BMC111发送的线缆检测指示生成预设标记不同的检测信号,该检测信号包括多个信号,每个信号的的预设标记不同,即每个信号为全局唯一信号。The
硬盘背板120中包括背板处理器122和多个连接器121。背板处理器122和该多个连接器121连接。具体的,背板处理器122可以通过该多个连接器121接收来自RAID卡112的信号。该硬盘背板120还与硬盘阵列连接,以实现上述CPU对这些硬盘的管理。连接器121可以是通过串行高技术配置(serial advanced technology attachment,SATA)端口或者串行小型计算机系统端口(serial attached small computer system Interface,SAS)等端口与RAID卡112的信号输出端口线缆连接。The
连接器121主要用于实现RAID卡112与硬盘背板120之间的线缆连接。The
背板处理器122可以用于对连接器121中接收到的信号进行处理。例如,在本申请实施例中,背板处理器122可以用于对连接器121中接收到的检测信号进行解析得到解析结果等。The
可选的,背板处理器122可以是复杂可编程逻辑器件(CPLD)、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、通用处理器等等。Optionally, the
此外,硬盘背板120的背板处理器122与主板处理器113连接。可选的,背板处理器122与主板处理器113可以通过串行通用输入输出(serial general purpose input/output,SGPIO)总线连接。In addition, the
值得说明的是,本申请对于RAID卡中信号输出端口的数量并不作限制,可以根据具体实施中业务需求设置。It should be noted that the present application does not limit the number of signal output ports in the RAID card, which can be set according to business requirements in specific implementation.
接下来,结合图2进一步介绍本申请提供的线缆插接检测方法,该方法可以应用于图1所示的服务器的系统架构。如图2所示,该方法包括但不限于如下步骤:Next, the cable plugging detection method provided by the present application is further introduced in conjunction with FIG. 2 , and the method can be applied to the system architecture of the server shown in FIG. 1 . As shown in Figure 2, the method includes but is not limited to the following steps:
步骤201、基板管理控制器BMC向RAID卡发送线缆检测指示。Step 201: The baseboard management controller BMC sends a cable detection instruction to the RAID card.
具体地,BMC可以从多个RAID卡中选择部分RAID卡逐个向RAID卡发送线缆检测指示,也可以同时向所有选择的RAID卡发送线缆检测指示,还可以直接向多个RAID卡发送线缆检测指示。作为一种可能的实施方式,线缆检测指示包括BMC对插接RAID卡的插槽的标识,例如,槽位编号、槽位地址或其他能够用于标识该槽位的信息。Specifically, the BMC can select some RAID cards from multiple RAID cards to send cable detection instructions to the RAID cards one by one, or send cable detection instructions to all selected RAID cards at the same time, or directly send cable detection instructions to multiple RAID cards. Cable detection indication. As a possible implementation manner, the cable detection indication includes the identification of the slot into which the RAID card is inserted by the BMC, for example, the slot number, the slot address, or other information that can be used to identify the slot.
可选的,该标识可以是插接N(N为大于1的整数)个RAID卡的插槽的排序信息。例如,该N个RAID卡每个RAID卡插接在一个插槽上,那么这些插接RAID卡的插槽的排序信息可以是1到N,即标记信息包括1到N,即上述线缆检测指示包括1到N。那么,BMC可以将线缆检测指示“1”发送给排序为1的插槽中插接的RAID卡,将线缆检测指示“2”发送给排序为2的插槽中插接的RAID卡等等。这里只是示例说明,BMC具体向RAID卡发送的信息根据具体情况确定,本方案对此不做限制。Optionally, the identifier may be sequence information of slots into which N (N is an integer greater than 1) RAID cards are inserted. For example, if each of the N RAID cards is inserted into a slot, the order information of the slots into which the RAID cards are inserted may be 1 to N, that is, the marking information includes 1 to N, that is, the above-mentioned cable detection Indications include 1 to N. Then, the BMC can send the cable detection indication "1" to the RAID card inserted in the slot ranked 1, and send the cable detection indication "2" to the RAID card inserted in the slot ranked 2, etc. Wait. This is just an example. The information sent by the BMC to the RAID card is determined according to the specific situation, and this solution does not limit this.
可选的,上述BMC对插接RAID卡的插槽进行排序的具体实现过程可以包括:Optionally, the specific implementation process of the above-mentioned BMC sorting the slots into which the RAID cards are inserted may include:
首先,该BMC查询插槽中插接的RAID卡的单板号。First, the BMC queries the board number of the RAID card inserted in the slot.
可选的,该BMC查询插槽中插接的RAID卡的单板号可以使用I2C轮询的方式来查询。Optionally, the BMC can query the board number of the RAID card inserted in the slot by using I2C polling.
该单板号也可以称为RAID卡的类型号。通过查询插槽中RAID卡的单板号来判断该插槽上是否插接有RAID卡。具体的,如果在插槽中查询到了RAID卡的单板号则表明该插槽中插接有RAID卡,否则没插接有RAID卡。The board number may also be called the type number of the RAID card. Check whether a RAID card is inserted into the slot by querying the board number of the RAID card in the slot. Specifically, if the board number of the RAID card is queried in the slot, it indicates that a RAID card is inserted into the slot; otherwise, no RAID card is inserted.
假设查询到N个插槽上插接有RAID卡,即上述N个RAID卡。那么,上述BMC对该N个插槽进行排序得到每一个插槽的排序信息。Suppose it is queried that there are RAID cards inserted into N slots, that is, the above N RAID cards. Then, the above-mentioned BMC sorts the N slots to obtain the sorting information of each slot.
如果上述线缆检测指示为插槽的排序信息,则该BMC将该N个插槽的排序信息发送给对应插接的RAID卡。即将第i个插槽的排序信息发送给插接在该第i个插槽上的RAID卡,其中,i的取值为从1到N。If the above-mentioned cable detection indication is the sequence information of the slots, the BMC sends the sequence information of the N slots to the corresponding inserted RAID cards. That is, the sorting information of the ith slot is sent to the RAID card inserted in the ith slot, where the value of i ranges from 1 to N.
该申请实施例使用RAID卡插槽的排序信息作为RAID卡生成检测信号的线缆检测指示,简单易实现,不占用过多的计算资源。This embodiment of the application uses the sorting information of the RAID card slot as the cable detection indication for the detection signal generated by the RAID card, which is simple and easy to implement, and does not occupy too many computing resources.
步骤202、RAID卡根据线缆检测指示分别生成检测信号。Step 202: The RAID card respectively generates detection signals according to the cable detection instructions.
生成的检测信号包括多个不同预设标记的检测信号。其中,多个不同预设标记的检测信号可以包括以下形式中的一种或多种:The generated detection signal includes a plurality of detection signals of different preset markers. Wherein, the detection signals of multiple different preset markers may include one or more of the following forms:
形式1,占空比不同的信号,例如可以是占空比不同的方波信号或者三角波信号等等。
形式2,频率不同的信号,例如可以是频率不同的方波信号、正弦信号或三角波信号等。Form 2, signals with different frequencies, for example, can be square wave signals, sinusoidal signals or triangular wave signals with different frequencies.
形式3,位数不同的串行数据信号等等。Form 3, serial data signal with different number of bits, etc.
形式4、不同的随机数等。Form 4, different random numbers, etc.
具体的,RAID卡有多个信号输出端口,每个RAID卡的信号输出端口的个数可以相同,也可以不相同,具体根据实际情况确定,本方案对此不做限制。Specifically, the RAID card has multiple signal output ports, and the number of signal output ports of each RAID card may be the same or different, which is determined according to the actual situation, which is not limited in this solution.
可选地,每个线缆检测指示用于指示RAID卡生成多路不同预设标记的检测信号,不同的RAID卡生成的检测信号的预设标记不同。Optionally, each cable detection indication is used to instruct the RAID card to generate multiple detection signals with different preset marks, and the detection signals generated by different RAID cards have different preset marks.
进一步地,RAID卡可以根据线缆检测指示按照预设规则生成对应的检测信号。其中,预设规则包括以下方式中任意一种:Further, the RAID card may generate a corresponding detection signal according to a preset rule according to the cable detection instruction. The preset rules include any one of the following methods:
方式1:RAID卡的输出端口均会配置不同的占空比的方波,线缆检测指示中包括占空比的值,RAID卡可以按照该占空比值生成检测信号,以此检测RAID卡的端口与连接器的端口连接的线缆的状态。Mode 1: The output ports of the RAID card are all configured with square waves with different duty cycles. The cable detection indication includes the value of the duty cycle. The RAID card can generate a detection signal according to the duty cycle value to detect the The status of the cable that the port is connected to the port of the connector.
方式2:线缆检测指示中包括频率,RAID卡可以按照该频率生成检测信号,以此检测RAID卡的端口与连接器的端口连接的线缆的状态。其中,每个RAID卡112的每个信号输出端口输出的检测信号的频率均不相同。Mode 2: The cable detection indication includes a frequency, and the RAID card can generate a detection signal according to the frequency, so as to detect the status of the cable connected between the port of the RAID card and the port of the connector. The frequencies of the detection signals output by each signal output port of each
方式3:线缆检测指示中包括串行数据,该串行数据可以用于唯一标识检测信号,以此检测RAID卡的端口与连接器的端口连接的线缆的状态。其中,每个RAID卡112的每个检测信号输出端口输出的检测信号为不相同的串行数据信号。Mode 3: The cable detection indication includes serial data, and the serial data can be used to uniquely identify the detection signal, so as to detect the state of the cable connected between the port of the RAID card and the port of the connector. The detection signals output by each detection signal output port of each
方式4:线缆检测指示中包括随机数字,不同线缆检测指示中携带的随机数字不同,检测信号的指定位置携带该数字,RAID卡产生用于表示该数字的任意形式的检测信号。Mode 4: The cable detection instruction includes a random number. Different cable detection instructions carry different random numbers. The designated position of the detection signal carries the number. The RAID card generates a detection signal in any form to represent the number.
为了便于理解,下面以检测信号为占空比不同的方波信号为例进行说明。For ease of understanding, the following description is given by taking the detection signal as a square wave signal with different duty ratios as an example.
例一、假设主板中插接有2个RAID卡(分别称为RAID卡1和RAID卡2),每一个RAID卡有2个信号输出端口。那么,BMC向该RAID卡1和RAID卡2分别发送不同的线缆检测指示1和线缆检测指示2。由于预先在RAID卡1中配置了根据线缆检测指示1生成两路占空比分别为20%和30%的方波信号的预设规则,在RAID卡2中配置了根据线缆检测指示2生成两路占空比分别为40%和50%的方波信号的预设规则;因此,RAID卡1根据接收到的线缆检测指示1生成两路占空比分别为20%和30%的方波信号。RAID卡2根据接收到的线缆检测指示2生成两路占空比分别为40%和50%的方波信号。Example 1: Suppose there are 2 RAID cards (referred to as
步骤203、RAID卡通过自身的多个信号输出端口向背板处理器发送生成的检测信号。Step 203: The RAID card sends the generated detection signal to the backplane processor through its own multiple signal output ports.
步骤204、背板处理器通过连接器端口接收到RAID卡发送的检测信号,每一个连接器端口接收一路检测信号。Step 204: The backplane processor receives the detection signal sent by the RAID card through the connector port, and each connector port receives one channel of the detection signal.
RAID卡生成多路不同预设标记的检测信号后,分别将该多路信号从多个信号输出端口输出,每一个信号输出端口输出一路检测信号,通过线缆发送至背板处理器。After the RAID card generates multiple detection signals with different preset marks, the multiple signals are respectively output from multiple signal output ports, and each signal output port outputs one detection signal, which is sent to the backplane processor through a cable.
具体的,RAID卡将生成的检测信号按照预设规则从多个信号输出端口输出。Specifically, the RAID card outputs the generated detection signals from a plurality of signal output ports according to preset rules.
可选的,该预设规则可以包括在RAID卡中预先配置的生成的检测信号与多个信号输出端口的关联关系。例如,将生成的占空比20%的信号从信号输出端口1输出的关联关系,将生成的占空比30%的信号从信号输出端口2输出的关联关系等等。Optionally, the preset rule may include an association relationship between the generated detection signal and a plurality of signal output ports preconfigured in the RAID card. For example, the relationship of outputting the generated signal with a duty ratio of 20% from the
可选的,该预设规则可以包括根据接收到的线缆检测指示来确定的生成的检测信号与多个信号输出端口的映射关系。例如,该接收到的线缆检测指示包括将生成的占空比20%的信号从信号输出端口1输出,和将生成的占空比30%的信号从信号输出端口2输出等等类似的指示。Optionally, the preset rule may include a mapping relationship between the generated detection signal and multiple signal output ports determined according to the received cable detection indication. For example, the received cable detection instruction includes an instruction to output the generated signal with a duty cycle of 20% from the
可选的,该预设规则可以包括根据RAID卡首次将生成的检测信号从对应的信号输出端口输出时信号与输出端口之间的关联关系来确定检测信号的输出端口。例如,RAID卡1中首次是将占空比20%和30%的检测信号分别从信号输出端口1和信号输出端口2输出,则再次输出时还是将占空比20%和30%的检测信号分别从信号输出端口1和信号输出端口2输出。Optionally, the preset rule may include determining the output port of the detection signal according to the correlation between the signal and the output port when the RAID card outputs the generated detection signal from the corresponding signal output port for the first time. For example, for the first time in
具体的,RAID卡的每一个信号输出端口通过线缆与一个连接器端口连接,连接器端口接收到RAID卡发送的检测信号后传输到背板处理器中。Specifically, each signal output port of the RAID card is connected to a connector port through a cable, and the connector port receives the detection signal sent by the RAID card and transmits it to the backplane processor.
步骤205、背板处理器解析接收的每一路检测信号得到解析结果,该解析结果包括每一个连接器端口接收到的检测信号的预设标记信息。Step 205: The backplane processor analyzes each received detection signal to obtain an analysis result, where the analysis result includes preset label information of the detection signal received by each connector port.
可选的,如果检测信号为占空比不同的信号,那么背板处理器解析得到的检测信号的预设标记信息可以是该检测信号的占空比。Optionally, if the detection signal is a signal with different duty ratios, the preset label information of the detection signal obtained by the backplane processor analysis may be the duty cycle of the detection signal.
可选的,如果检测信号为频率不同的信号,那么背板处理器解析得到的检测信号的预设标记信息可以是该检测信号的频率。Optionally, if the detection signals are signals with different frequencies, the preset flag information of the detection signals obtained by the analysis of the backplane processor may be the frequency of the detection signals.
可选的,如果检测信号为位数不同的串行数据信号,那么背板处理器解析得到的检测信号的预设标记信息可以是该检测信号的位数。Optionally, if the detection signal is a serial data signal with different number of bits, the preset flag information of the detection signal obtained by parsing by the backplane processor may be the number of bits of the detection signal.
可选的,如果检测信号为随机数,那么背板处理器解析得到的检测信号的预设标记信息可以是该随机数。Optionally, if the detection signal is a random number, the preset marking information of the detection signal obtained by the backplane processor by parsing may be the random number.
具体解析到的检测信号的预设标记信息根据实际情况确定,本方案对此不作限制。为了便于理解,下面以检测信号为占空比不同的方波信号举例说明。The preset flag information of the detected detection signal is determined according to the actual situation, which is not limited in this solution. For ease of understanding, the following description takes the detection signal as a square wave signal with different duty ratios as an example.
例二、基于例一的描述,那么背板处理器通过4个连接器端口接收到上述RAID卡1和RAID卡2的4路检测信号。假设该4个连接器端口的端口1、端口2、端口3、端口4分别与RAID卡1的信号输出端口1、RAID卡1的信号输出端口2、RAID卡2的信号输出端口1、RAID卡2的信号输出端口2线缆连接。RAID卡1从自身的信号输出端口1和信号输出端口2输出的信号分别为占空比20%和30%的方波信号;RAID卡2从自身的信号输出端口1和信号输出端口2输出的信号分别为占空比40%和50%的方波信号。Example 2. Based on the description of Example 1, the backplane processor receives the 4-channel detection signals of the above-mentioned
那么,连接器的端口1、端口2、端口3和端口4接收到的检测信号分别为占空比20%、占空比30%、占空比40%和占空比50%的方波信号。那么,背板处理器从端口1获取到检测信号后解析得到的预设标记信息为20%,背板处理器从端口2获取到检测信号后解析得到的预设标记信息为30%,背板处理器从端口3获取到检测信号后解析得到的预设标记信息为40%,背板处理器从端口4获取到检测信号后解析得到的预设标记信息为50%。Then, the detection signals received by
上述背板处理器解析得到的检测信号的预设标记信息可以用于上述BMC检测上述RAID卡的端口与连接器的端口之间的线缆是否正确插接,具体实现过程可以参见步骤206至步骤209。The preset marking information of the detection signal obtained by the analysis of the backplane processor can be used by the BMC to detect whether the cable between the port of the RAID card and the port of the connector is correctly inserted. For the specific implementation process, refer to steps 206 to 206. 209.
步骤206、背板处理器向主板处理器发送该解析结果以及该每一个预设标记信息与连接器接口的对应关系信息。Step 206 , the backplane processor sends the analysis result and the corresponding relationship information between each preset mark information and the connector interface to the mainboard processor.
步骤207、主板处理器根据该对应关系信息将该解析结果存储到寄存器中的预设地址中。Step 207: The mainboard processor stores the parsing result into a preset address in the register according to the correspondence information.
具体的,该寄存器可以是主板处理器的寄存器,该寄存器可以与BMC进行交互。该寄存器中的预设地址为预先配置用于存储上述解析结果的地址,该解析结果包括对RAID卡发送的检测信号的预设标记信息地址。该预设地址包括多个存储地址,每一个存储地址用于存储一个检测信号的预设标记信息。且,该多个存储地址与连接器端口有一一映射的关系。即具体哪一个存储地址用于存储哪一个连接器端口接收到的检测信号的预设标记信息都预先设置好了。为了便于理解,下面举例说明。Specifically, the register may be a register of the mainboard processor, and the register may interact with the BMC. The preset address in the register is an address pre-configured for storing the above analysis result, where the analysis result includes a preset marking information address of the detection signal sent by the RAID card. The preset address includes a plurality of storage addresses, and each storage address is used to store preset marker information of a detection signal. Moreover, there is a one-to-one mapping relationship between the plurality of storage addresses and the connector ports. That is, which specific storage address is used to store the preset flag information of the detection signal received by which connector port is pre-set. For ease of understanding, examples are given below.
例三、基于上述例二的描述,那么背板处理器将解析得到的检测信号的预设标记信息20%、30%、40%和50%发送给主板处理器。同时,将20%与上述端口1对应关联、30%与上述端口2对应关联、40%与上述端口3对应关联以及50%与上述端口4对应关联的信息一起发送给主板处理器。Example 3: Based on the description of the above example 2, the backplane processor sends the preset marking information 20%, 30%, 40% and 50% of the detected signal obtained by analysis to the mainboard processor. At the same time, the information that 20% is associated with the
假设上述预设地址包括四个存储地址,分别为地址1、地址2、地址3和地址4。且,预先配置了地址1用于存储端口1接收到的检测信号的预设标记信息、地址2用于存储端口2接收到的检测信号的预设标记信息、地址3用于存储端口3接收到的检测信号的预设标记信息以及地址4用于存储端口4接收到的检测信号的预设标记信息。那么,主板处理器接收到上述背板处理器发送的信息后,根据这些信息将20%、30%、40%和50%分别存储到地址1、地址2、地址3和地址4中。存储后预设地址中的信息例如可以参见表1。It is assumed that the above preset address includes four storage addresses, which are
表1Table 1
步骤208、主板处理器向BMC发送该寄存器的预设地址中存储的解析结果。Step 208: The mainboard processor sends the parsing result stored in the preset address of the register to the BMC.
步骤209、BMC将该寄存器的预设地址中存储的解析结果与预设值比较,以判断RAID卡的端口与连接器的端口之间的线缆是否正确插接。Step 209: The BMC compares the analysis result stored in the preset address of the register with the preset value to determine whether the cable between the port of the RAID card and the port of the connector is correctly inserted.
该预设值包括在上述RAID卡的端口与上述多个连接器端口之间的线缆正确插接的情况下,该预设地址中存储的检测信号的预设标记信息。The preset value includes preset flag information of the detection signal stored in the preset address under the condition that the cables between the port of the RAID card and the multiple connector ports are correctly inserted.
具体的,该预设值可以由BMC预先设置。在首次检测RAID卡的端口与连接器端口之间的线缆是否连接的时候,BMC将主板处理器存储到上述预设地址中的检测信号解析结果设置为该预设地址的预设值。即BMC将RAID卡的端口与连接器端口之间首次一对一连接线缆的情况设置为正确连接的情况,以后每一次检测的时候都要与首次连接的情况相同才算连接正确,否则连接出错。即,只要以后每次检测的时候,该预设地址中存储的检测信号解析结果与该设置的预设值一致,则表明上述RAID卡端口与连接器的端口之间的线缆插接正确,否则插接错误。为了便于理解,下面举例说明。Specifically, the preset value may be preset by the BMC. When detecting whether the cable between the port of the RAID card and the connector port is connected for the first time, the BMC sets the detection signal analysis result stored in the preset address by the motherboard processor as the preset value of the preset address. That is, the BMC sets the first one-to-one connection between the RAID card port and the connector port as the correct connection, and every subsequent detection must be the same as the first connection to be correctly connected, otherwise the connection is correct. error. That is, as long as the analysis result of the detection signal stored in the preset address is consistent with the preset value in each subsequent detection, it indicates that the cable between the RAID card port and the connector port is correctly inserted, Otherwise the connection is wrong. For ease of understanding, examples are given below.
例四,基于上述例三的描述,假设上述例三中RAID卡1和RAID卡2的信号输出端口与连接器端口之间的线缆是首次连接。那么,BMC接收到主板处理器发送的寄存器的预设地址中存储的预设标记信息(例如表1中的信息),然后,将接收到的信息设置为该预设地址中的预设值。也就是说,BMC默认4个连接器端口中端口1、端口2、端口3、端口4分别与RAID卡1的信号输出端口1、RAID卡1的信号输出端口2、RAID卡2的信号输出端口1、RAID卡2的信号输出端口2线缆连接这种连接情况时正确的连接情况。以后的线缆检测中,都必须保证是这种连接情况才是正确的连接,否则连接出错。Example 4, based on the description of the above example 3, it is assumed that the cables between the signal output ports and the connector ports of the
在BMC将主板处理器首次存储到上述预设地址中的检测信号的预设标记信息设置为上述预设地址中的预设值后,每次线缆检测时,BMC都会将从主板处理器寄存器的预设地址中获取到检测信号的解析结果与该预设地址中的预设值比较,如果两个信息匹配则线缆连接正确。如果两个信息不完全匹配,则线缆出现错误。可选的,BMC可以根据预设地址中哪一个预设地址的信息不匹配确定出对应的RAID卡端口与连接器端口之间的线缆插接错误。为了便于理解,下面举例说明。After the BMC sets the preset flag information of the detection signal stored in the preset address by the motherboard processor for the first time to the preset value in the preset address, each time the cable is detected, the BMC will retrieve the data from the motherboard processor register. The analysis result of the detection signal obtained from the preset address of , is compared with the preset value in the preset address, and if the two pieces of information match, the cable connection is correct. If the two information do not match exactly, the cable is in error. Optionally, the BMC may determine a cable insertion error between the corresponding RAID card port and the connector port according to which preset address information among the preset addresses does not match. For ease of understanding, examples are given below.
例五,基于上述例三和例四的描述,假设表1为BMC中存储的寄存器中预设地址中预设的信息。那么,如果在一次线缆检测的过程中,主板处理器存储到寄存器的预设地址中的检测信号的预设标记信息与表1的一致,也是20%、30%、40%和50%分别存储到地址1、地址2、地址3和地址4中。那么,这表明RAID卡1和RAID卡2的端口与硬盘背板的连接器端口之间的线缆插接正确。Example 5, based on the descriptions of the above examples 3 and 4, it is assumed that Table 1 is the preset information in the preset address in the register stored in the BMC. Then, if in the process of a cable detection, the preset marking information of the detection signal stored in the preset address of the register by the motherboard processor is consistent with that in Table 1, which is 20%, 30%, 40% and 50% respectively Store to address 1, address 2, address 3 and address 4. Well, this indicates that the cables between the ports of
如果在一次线缆检测的过程中,主板处理器存储到寄存器的预设地址中的检测信号的预设标记信息如表2所示。比较表2和表1可知,表2的地址1和地址2中的信息与表1中的不一致,这表明地址1和地址2对应的连接器端口的线缆插接错了。而根据例二和例三可知,地址1和地址2分别与连接器端口1和端口2关联,正确连接的情况下端口1和端口2分别与RAID卡1的信号输出端口1和RAID卡1的信号输出端口2。因此,BMC通过这些信息可确定端口1与RAID卡1的信号输出端口1之间的线缆插接错误,以及端口2与RAID卡1的信号输出端口2之间的线缆插接错误。If during a cable detection process, the preset flag information of the detection signal stored in the preset address of the register by the motherboard processor is shown in Table 2. Comparing Table 2 and Table 1, it can be seen that the information in
表2Table 2
在一种可能的实施方式中,上述BMC可以是采用轮询检测的方式对上述N个RAID卡中的每一个RAID卡与硬盘背板的连接器之间的线缆进行检测。例如,可以是先对第j个RAID卡与硬盘背板的连接器之间的线缆进行检测后,再对第j+1个RAID卡与硬盘背板的连接器之间的线缆进行检测,直至检测完该N个RAID卡与硬盘背板的连接器之间的线缆。其中,该j的取值为从1到N-1。In a possible implementation manner, the BMC may detect the cable between each of the N RAID cards and the connector of the hard disk backplane in a polling detection manner. For example, the cable between the j-th RAID card and the connector of the hard disk backplane can be detected first, and then the cable between the j+1-th RAID card and the connector of the hard disk backplane can be detected. , until the cables between the N RAID cards and the connectors on the hard disk backplane are detected. Among them, the value of j is from 1 to N-1.
需要说明的是,既然是逐个对RAID卡的线缆进行检测,那么最后存储到寄存器的预设地址中的检测信号的解析结果可以是一个RAID卡发送的检测信号的解析结果,然后BMC将该解析结果与存储了检测信号的解析结果的预设地址对应的预设值比较以判断该RAID卡的线缆是否插接正确。此外,该BMC轮番对每一个RAID卡与硬盘背板的连接器之间的线缆进行检测的具体实现过程可以对应参见上述图2所述的实施例,此处不再赘述。It should be noted that since the cables of the RAID card are detected one by one, the analysis result of the detection signal finally stored in the preset address of the register can be the analysis result of the detection signal sent by a RAID card, and then the BMC The parsing result is compared with a preset value corresponding to the preset address where the parsing result of the detection signal is stored to determine whether the cable of the RAID card is correctly inserted. In addition, the specific implementation process for the BMC to detect the cable between each RAID card and the connector of the hard disk backplane in turn may refer to the embodiment described in FIG. 2 above, which will not be repeated here.
综上所述,通过基板管理控制器BMC控制RAID卡生成不同的检测信号来检测RAID卡与连接器之间的线缆插接是否正确,实现了自动化的线缆插接检测,提高了线缆检测的效率和准确率。本申请实施例无需在BMC中预先设置各种插接方式的预设值和各种插接方式的预设告警信息,节省了人力物力成本,同时也节省了BMC中存储资源的占用。另外,通过基板管理控制器BMC控制RAID卡生成不同的检测信号来检测RAID卡与连接器之间的线缆插接是否正确,可以在服务器备电源上电时即可完成线缆的检测,即在系统初始化阶段即完成了检测,从而不影响生产的时间。此外,本申请实施例不依赖于一些驱动程序(例如,固件(firmware)版本),支持RAID卡的灵活插拔和适配,降低方案的复杂性。In summary, the baseboard management controller (BMC) controls the RAID card to generate different detection signals to detect whether the cable insertion between the RAID card and the connector is correct, realizes the automatic cable insertion detection, and improves the cable connection. Detection efficiency and accuracy. In the embodiment of the present application, it is not necessary to pre-set preset values of various plug-in modes and preset alarm information of various plug-in modes in the BMC, which saves manpower and material costs, and also saves the occupation of storage resources in the BMC. In addition, the baseboard management controller BMC controls the RAID card to generate different detection signals to detect whether the cable between the RAID card and the connector is correctly inserted. The cable detection can be completed when the server is powered on, that is, The detection is done during the system initialization phase, so that it does not affect the production time. In addition, the embodiments of the present application do not depend on some drivers (eg, firmware (firmware) versions), support flexible plugging and adaptation of RAID cards, and reduce the complexity of the solution.
上述主要从基板管理控制器、独立硬盘冗余阵列RAID卡、背板处理器和主板处理器交互的角度对本申请实施例提供的线缆插接检测方法进行了介绍。可以理解的是,各个设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的设备及方法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The foregoing mainly introduces the cable insertion detection method provided by the embodiment of the present application from the perspective of interaction between a baseboard management controller, a redundant array of independent hard disk RAID card, a backplane processor, and a mainboard processor. It can be understood that, in order to implement the above-mentioned functions, each device includes corresponding hardware structures and/or software modules for performing each function. Those skilled in the art should easily realize that the present application can be implemented in hardware or in the form of a combination of hardware and computer software, in conjunction with the device and method steps of each example described in the embodiments disclosed herein. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
本申请实施例可以根据上述方法示例对上述各个设备例如基板管理控制器、RAID卡等等进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In this embodiment of the present application, functional modules may be divided for each of the above devices, such as a baseboard management controller, a RAID card, etc., according to the above method examples. For example, each functional module may be divided corresponding to each function, or two or more The functions are integrated in a processing module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. It should be noted that, the division of modules in the embodiments of the present application is schematic, and is only a logical function division, and there may be other division manners in actual implementation.
在采用对应各个功能划分各个功能模块的情况下,上述实施例中所涉及的基板管理控制器包括用于执行如图2所述方法实施例中BMC所做操作的单元。图3示出了上述实施例中所涉及的基板管理控制器的一种可能的逻辑结构示意图,基板管理控制器300包括:发送单元301、接收单元302(接收单元302可以称为获取单元302)和比较单元303。其中,发送单元301可以用于执行如前述图2所示方法实施例中基板管理控制器发送信息的操作步骤等;接收单元302或者获取单元302可以用于执行如前述图2所示方法实施例中基板管理控制器接收信息的操作步骤等;比较单元303可以用于执行如前述图2所示方法实施例中基板管理控制器进行信息比较的操作步骤等。In the case where each functional module is divided according to each function, the baseboard management controller involved in the above embodiment includes a unit for performing the operations performed by the BMC in the method embodiment shown in FIG. 2 . FIG. 3 shows a schematic diagram of a possible logical structure of the baseboard management controller involved in the above embodiment. The baseboard management controller 300 includes: a sending
需要说明的是,图3所示的基板管理控制器300仅仅是本申请实施例的一种实现方式,实际应用中,基板管理控制器300还可以包括更多或更少的部件,这里不作限制。关于基板管理控制器300的具体实现可以参考前述图2所示方法实施例中的相关描述,此处不再赘述。It should be noted that the baseboard management controller 300 shown in FIG. 3 is only an implementation manner of the embodiment of the present application. In practical applications, the baseboard management controller 300 may further include more or less components, which is not limited here. . For the specific implementation of the baseboard management controller 300, reference may be made to the relevant descriptions in the foregoing method embodiment shown in FIG. 2, and details are not described herein again.
在采用对应各个功能划分各个功能模块的情况下,上述实施例中所涉及的独立磁盘冗余阵列RAID卡包括用于执行如图2所述方法实施例中RAID卡所做操作的单元。图4示出了上述实施例中所涉及的独立磁盘冗余阵列的一种可能的逻辑结构示意图,独立磁盘冗余阵列400包括:接收单元401、生成单元402和发送单元403。其中,接收单元401可以用于执行如前述图2所示方法实施例中RAID卡接收信息的操作步骤等;生成单元402可以用于执行如前述图2所示方法实施例中RAID卡生成检测信号的操作步骤等;发送单元404可以用于执行如前述图2所示方法实施例中RAID卡发送检测信号的操作步骤等。In the case where each functional module is divided according to each function, the redundant array of independent disks RAID card involved in the above embodiment includes a unit for performing the operations performed by the RAID card in the method embodiment shown in FIG. 2 . FIG. 4 shows a schematic diagram of a possible logical structure of the redundant array of independent disks involved in the above embodiment. The redundant array of independent disks 400 includes a receiving
需要说明的是,图4所示的独立磁盘冗余阵列400仅仅是本申请实施例的一种实现方式,实际应用中,独立磁盘冗余阵列400还可以包括更多或更少的部件,这里不作限制。关于独立磁盘冗余阵列400的具体实现可以参考前述图2所示方法实施例中的相关描述,此处不再赘述。It should be noted that the redundant array of independent disks 400 shown in FIG. 4 is only an implementation manner of the embodiment of the present application. In practical applications, the redundant array of independent disks 400 may also include more or less components. No restrictions apply. For the specific implementation of the redundant array of independent disks 400, reference may be made to the relevant descriptions in the foregoing method embodiment shown in FIG. 2, and details are not repeated here.
在采用对应各个功能划分各个功能模块的情况下,图5所示,为上述所涉及的主板的一种可能的逻辑结构示意图。该主板500包括:In the case where each functional module is divided corresponding to each function, FIG. 5 is a schematic diagram of a possible logical structure of the above-mentioned motherboard. The motherboard 500 includes:
第一发送单元501,用于向RAID卡发送线缆检测指示;该线缆检测指示用于指示RAID卡检测RAID卡与硬盘背板之间的线缆的连接状态;The
接收单元502,用于接收该线缆检测指示;a receiving
生成单元503,用于根据该线缆检测指示按照预设规则生成预设标记的检测信号;a
第二发送单元504,用于向该硬盘背板发送该检测信号;The
获取单元505,用于获取解析结果;an obtaining
比较单元506,用于根据该解析结果和预设值比较确认该线缆插接状态,其中,该解析结果为硬盘背板解析该检测信号获得。The comparing
在一种可能的实施方式中,上述主板500的多个插槽中插接有多个RAID卡;上述线缆检测指示为上述RAID插接的插槽的排序信息;该排序信息为对该多个插槽排序后得到。In a possible implementation manner, multiple RAID cards are inserted into the multiple slots of the mainboard 500; the cable detection indication is the sorting information of the slots into which the RAID is inserted; the sorting information is the sorting information for the multiple slots. obtained after sorting the slots.
在另一种可能的实施方式中,上述硬盘背板通过多个连接器端口接收上述检测信号;In another possible implementation manner, the hard disk backplane receives the detection signal through a plurality of connector ports;
上述获取单元505,具体用于获取寄存器的预设地址中存储的上述解析结果。The above obtaining
具体的,该预设地址包括多个存储地址,该多个存储地址与上述多个连接器端口一一映射;该多个存储地址中每一个地址用于存储一个检测信号的解析结果;该每一个地址存储的解析结果为上述硬盘背板的背板处理器根据上述每一个地址映射的连接器端口接收的检测信号所解析出的结果。Specifically, the preset address includes a plurality of storage addresses, and the plurality of storage addresses are mapped one-to-one with the above-mentioned plurality of connector ports; each address of the plurality of storage addresses is used to store an analysis result of a detection signal; The analysis result stored in one address is the result analyzed by the backplane processor of the hard disk backplane according to the detection signal received by the connector port of each address mapping.
在另一种可能的实施方式中,上述比较单元506,还用于在首次发起对上述RAID卡与硬盘背板之间的线缆插接检测时,将从寄存器的预设地址中获取的解析结果设置为预设值;其中,该预设值包括该硬盘背板的背板处理器首次根据上述多个连接器端口接收的检测信号所解析出的结果。In another possible implementation manner, the above-mentioned
本申请还提供了一种服务器,该服务器中包括上述图3所述的基板管理控制器300和上述图4所述的独立磁盘冗余阵列400。或者,该服务器中包括上述图5所述的主板500。为了简洁,此处不再赘述。The present application further provides a server, which includes the baseboard management controller 300 described in FIG. 3 and the redundant array of independent disks 400 described in FIG. 4 . Alternatively, the server includes the motherboard 500 described in FIG. 5 above. For brevity, details are not repeated here.
图6所示,为上述实施例中所涉及的基板管理控制器的一种可能的硬件结构示意图。基板管理控制器600包括:处理器601、存储器602和通信端口603。处理器601、通信端口603以及存储器602可以相互连接或者通过总线604相互连接。FIG. 6 is a schematic diagram of a possible hardware structure of the baseboard management controller involved in the above embodiment. The baseboard management controller 600 includes: a
示例性的,存储器602用于存储基板管理控制器600的计算机程序和数据,存储器602可以包括但不限于是随机存储记忆体(random access memory,RAM)、只读存储器(read-only memory,ROM)、可擦除可编程只读存储器(erasable programmable read onlymemory,EPROM)或便携式只读存储器(compact disc read-only memory,CD-ROM)等。通信端口603用于支持基板管理控制器600进行通信,例如接收或发送数据。Exemplarily, the
示例性的,处理器601可以是CPU、复杂可编程逻辑器件、通用处理器、数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理器和微处理器的组合等等。处理器601可以用于读取上述存储器602中存储的程序,执行上述图2以及可能的实施方式所述方法中基板管理控制器所实现的操作。Illustratively, the
需要说明的是,图6所示的基板管理控制器600仅仅是本申请实施例的一种实现方式,实际应用中,基板管理控制器600还可以包括更多或更少的部件,这里不作限制。另外,基板管理控制器600可以对应于本申请实施例中基板管理控制器300,并可以对应执行根据本申请实施例中图2所示方法中相应的主体,并且基板管理控制器600中各个模块和其它操作和/或功能分别为了实现图2中各个方法的相应流程,为了简洁,在此不再赘述。It should be noted that the baseboard management controller 600 shown in FIG. 6 is only an implementation manner of the embodiment of the present application. In practical applications, the baseboard management controller 600 may further include more or less components, which is not limited here. . In addition, the baseboard management controller 600 may correspond to the baseboard management controller 300 in the embodiment of the present application, and may correspondingly execute the corresponding subject according to the method shown in FIG. 2 in the embodiment of the present application, and each module in the baseboard management controller 600 and other operations and/or functions are respectively in order to implement the corresponding flow of each method in FIG. 2 , and are not repeated here for brevity.
图7所示,为上述实施例中所涉及的独立磁盘冗余阵列的一种可能的硬件结构示意图。独立磁盘冗余阵列700包括:处理器701、存储器702和通信端口703。处理器701、通信端口703以及存储器702可以相互连接或者通过总线704相互连接。FIG. 7 is a schematic diagram of a possible hardware structure of the redundant array of independent disks involved in the above embodiment. The redundant array of independent disks 700 includes: a
示例性的,存储器702用于存储独立磁盘冗余阵列700的计算机程序和数据,存储器702可以包括但不限于是随机存储记忆体RAM、只读存储器ROM、可擦除可编程只读存储器EPROM或便携式只读存储器CD-ROM等。通信端口703用于支持独立磁盘冗余阵列700进行通信,例如接收或发送数据。Exemplarily, the
示例性的,处理器701可以是CPU、复杂可编程逻辑器件、通用处理器、数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理器和微处理器的组合等等。处理器701可以用于读取上述存储器702中存储的程序,执行上述图2以及可能的实施方式所述方法中独立磁盘冗余阵列所实现的操作。Illustratively, the
需要说明的是,图7所示的独立磁盘冗余阵列700仅仅是本申请实施例的一种实现方式,实际应用中,独立磁盘冗余阵列700还可以包括更多或更少的部件,这里不作限制。另外,独立磁盘冗余阵列700可以对应于本申请实施例中独立磁盘冗余阵列400,并可以对应执行根据本申请实施例中图2所示方法中相应的主体,并且独立磁盘冗余阵列700中各个模块和其它操作和/或功能分别为了实现图2中各个方法的相应流程,为了简洁,在此不再赘述。It should be noted that the redundant array of independent disks 700 shown in FIG. 7 is only an implementation manner of the embodiment of the present application. In practical applications, the redundant array of independent disks 700 may also include more or less components. No restrictions apply. In addition, the redundant array of independent disks 700 may correspond to the redundant array of independent disks 400 in the embodiment of the present application, and may correspondingly execute the corresponding subject in the method shown in FIG. 2 in the embodiment of the present application, and the redundant array of independent disks 700 Each module and other operations and/or functions in FIG. 2 are intended to implement the corresponding flow of each method in FIG. 2 , and are not repeated here for brevity.
本申请实施例还提供了一种线缆检测的装置,该装置中包括基板管理控制器BMC和独立磁盘冗余阵列RAID卡;其中,该BMC可以为上述图6所述的基板管理控制器,该RAID卡可以为上述图7所述的独立磁盘冗余阵列。可选的,该装置可以是上述服务器的主板。An embodiment of the present application further provides a cable detection device, which includes a baseboard management controller BMC and a redundant array of independent disks RAID card; wherein the BMC may be the baseboard management controller described in FIG. 6 , The RAID card may be the redundant array of independent disks described in FIG. 7 above. Optionally, the device may be the motherboard of the above-mentioned server.
本申请公开了一种服务器,该服务器包括主板和硬盘背板,该主板中包括基板管理控制器BMC和独立磁盘冗余阵列RAID卡。该BMC和该RAID卡通过插槽连接;该硬盘背板中包括多个连接器;该RAID卡的端口与该多个连接器端口通过线缆一对一连接。可选的,该服务器可以是图1所示服务器100。The present application discloses a server, which includes a main board and a hard disk backplane, and the main board includes a baseboard management controller BMC and a redundant array of independent disks RAID card. The BMC and the RAID card are connected through slots; the hard disk backplane includes a plurality of connectors; the ports of the RAID card are connected to the plurality of connector ports one-to-one by cables. Optionally, the server may be the
上述实施例,可以全部或部分地通过软件、硬件、固件或其他任意组合来实现。当使用软件实现时,上述实施例可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载或执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以为通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集合的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质。半导体介质可以是固态硬盘(solid state drive,SSD)。The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented in software, the above-described embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded or executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer may be a general purpose computer, special purpose computer, computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server, or data center Transmission to another website site, computer, server, or data center is by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that a computer can access, or a data storage device such as a server, a data center, or the like containing one or more sets of available media. The usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVDs), or semiconductor media. The semiconductor medium may be a solid state drive (SSD).
综上所述,在本申请中,通过基板管理控制器BMC控制RAID卡生成不同的检测信号来检测RAID卡与连接器之间的线缆插接是否正确,从而实现了自动化的线缆检测,提高了线缆检测的效率和准确率,节省人力物力成本。To sum up, in this application, the baseboard management controller BMC controls the RAID card to generate different detection signals to detect whether the cable between the RAID card and the connector is correctly inserted, thereby realizing automatic cable detection. It improves the efficiency and accuracy of cable detection and saves manpower and material costs.
以上所述,仅为本申请的具体实施方式。熟悉本技术领域的技术人员根据本申请提供的具体实施方式,可想到变化或替换,都应涵盖在本申请的保护范围之内。The above descriptions are merely specific embodiments of the present application. Those skilled in the art can think of changes or substitutions based on the specific embodiments provided by the present application, which should all fall within the protection scope of the present application.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010075791.XA CN111289922B (en) | 2020-01-22 | 2020-01-22 | Cable plugging detection method and related equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010075791.XA CN111289922B (en) | 2020-01-22 | 2020-01-22 | Cable plugging detection method and related equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111289922A CN111289922A (en) | 2020-06-16 |
CN111289922B true CN111289922B (en) | 2022-04-22 |
Family
ID=71028481
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010075791.XA Active CN111289922B (en) | 2020-01-22 | 2020-01-22 | Cable plugging detection method and related equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111289922B (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114003108A (en) * | 2020-07-28 | 2022-02-01 | 华为技术有限公司 | Server, cabinet type server and blade type server |
CN112035304A (en) * | 2020-09-03 | 2020-12-04 | 西安易朴通讯技术有限公司 | Plug detection method and server system |
CN112306867B (en) * | 2020-10-26 | 2022-11-11 | 苏州浪潮智能科技有限公司 | A method for automatic detection of system I2C address anomalies based on layer-order traversal |
CN112527582A (en) * | 2020-12-18 | 2021-03-19 | 浪潮电子信息产业股份有限公司 | Detection method, detection device, detection equipment and storage medium of server cable |
CN112783703A (en) * | 2021-01-15 | 2021-05-11 | 苏州浪潮智能科技有限公司 | SAS link fault positioning method, device, equipment and storage medium |
CN113505033B (en) * | 2021-07-09 | 2023-10-13 | 南昌华勤电子科技有限公司 | Cable misinsertion prevention system, motherboard, daughter card components and method |
CN113868037B (en) * | 2021-08-30 | 2023-06-16 | 苏州浪潮智能科技有限公司 | System and method for judging connection accuracy of hard disk backboard cables |
CN114661546A (en) * | 2022-03-02 | 2022-06-24 | 南昌华勤电子科技有限公司 | Server cable detection system and communication method thereof |
CN114578162A (en) * | 2022-03-04 | 2022-06-03 | 上海合见工业软件集团有限公司 | Connector Connectivity Detection System |
CN114594410A (en) * | 2022-04-14 | 2022-06-07 | 联想长风科技(北京)有限公司 | Intelligent detection method and device for missing insertion of cable of multipath connector |
CN115309688A (en) * | 2022-07-11 | 2022-11-08 | 中国长城科技集团股份有限公司 | Method and device for checking connection correctness of PCIE (peripheral component interface express) cable of server |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101795421A (en) * | 2010-02-05 | 2010-08-04 | 中兴通讯股份有限公司 | Method and device for judging reliable in-place of single plate |
CN103399251A (en) * | 2013-07-30 | 2013-11-20 | 广州视睿电子科技有限公司 | USB communication line detection device |
CN103534983A (en) * | 2012-11-30 | 2014-01-22 | 华为技术有限公司 | Detection method and apparatus of cable plugging case |
US9946552B2 (en) * | 2016-09-21 | 2018-04-17 | American Megatrends, Inc. | System and method for detecting redundant array of independent disks (RAID) controller state from baseboard management controller (BMC) |
CN108829619A (en) * | 2018-05-23 | 2018-11-16 | 郑州云海信息技术有限公司 | A kind of continuous topological structure of hard disk ID and hard disk ID localization method |
CN108828363A (en) * | 2018-06-29 | 2018-11-16 | 郑州云海信息技术有限公司 | A kind of fault detection system of connector |
CN109933491A (en) * | 2019-03-15 | 2019-06-25 | 西安易朴通讯技术有限公司 | A kind of hard disk backboard signal source arrangement for detecting, method, system and server |
KR102011144B1 (en) * | 2018-04-27 | 2019-08-14 | 태양쓰리시 주식회사 | System and method of testing a cable connect circuit |
CN110377553A (en) * | 2019-06-26 | 2019-10-25 | 苏州浪潮智能科技有限公司 | A kind of method and device detecting hard disk backboard and mainboard port corresponding relationship |
CN110377142A (en) * | 2019-06-27 | 2019-10-25 | 苏州浪潮智能科技有限公司 | A kind of system and method for supporting server hard disc independence power-on and power-off |
CN110489284A (en) * | 2019-07-12 | 2019-11-22 | 苏州浪潮智能科技有限公司 | A kind of server backplane wiring method of calibration and device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102143516B (en) * | 2011-03-31 | 2015-04-29 | 华为技术有限公司 | Detection method, device and system |
CN104731678A (en) * | 2013-12-19 | 2015-06-24 | 鸿富锦精密工业(深圳)有限公司 | RAID storage mode test system and method and electronic device |
CN105446657B (en) * | 2015-11-11 | 2018-06-19 | 浪潮电子信息产业股份有限公司 | Method for monitoring RAID card |
CN108959026A (en) * | 2018-06-28 | 2018-12-07 | 合肥浪金防伪科技有限公司 | A kind of method of accurate monitoring RAID card |
CN109753396A (en) * | 2019-01-16 | 2019-05-14 | 浪潮商用机器有限公司 | Cable self-checking method, system and server for storage system |
-
2020
- 2020-01-22 CN CN202010075791.XA patent/CN111289922B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101795421A (en) * | 2010-02-05 | 2010-08-04 | 中兴通讯股份有限公司 | Method and device for judging reliable in-place of single plate |
CN103534983A (en) * | 2012-11-30 | 2014-01-22 | 华为技术有限公司 | Detection method and apparatus of cable plugging case |
CN103399251A (en) * | 2013-07-30 | 2013-11-20 | 广州视睿电子科技有限公司 | USB communication line detection device |
US9946552B2 (en) * | 2016-09-21 | 2018-04-17 | American Megatrends, Inc. | System and method for detecting redundant array of independent disks (RAID) controller state from baseboard management controller (BMC) |
KR102011144B1 (en) * | 2018-04-27 | 2019-08-14 | 태양쓰리시 주식회사 | System and method of testing a cable connect circuit |
CN108829619A (en) * | 2018-05-23 | 2018-11-16 | 郑州云海信息技术有限公司 | A kind of continuous topological structure of hard disk ID and hard disk ID localization method |
CN108828363A (en) * | 2018-06-29 | 2018-11-16 | 郑州云海信息技术有限公司 | A kind of fault detection system of connector |
CN109933491A (en) * | 2019-03-15 | 2019-06-25 | 西安易朴通讯技术有限公司 | A kind of hard disk backboard signal source arrangement for detecting, method, system and server |
CN110377553A (en) * | 2019-06-26 | 2019-10-25 | 苏州浪潮智能科技有限公司 | A kind of method and device detecting hard disk backboard and mainboard port corresponding relationship |
CN110377142A (en) * | 2019-06-27 | 2019-10-25 | 苏州浪潮智能科技有限公司 | A kind of system and method for supporting server hard disc independence power-on and power-off |
CN110489284A (en) * | 2019-07-12 | 2019-11-22 | 苏州浪潮智能科技有限公司 | A kind of server backplane wiring method of calibration and device |
Non-Patent Citations (1)
Title |
---|
高频连接器测试治具信号串扰研究与应用;曹立松;《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》;20121215(第12期);第C042-61页 * |
Also Published As
Publication number | Publication date |
---|---|
CN111289922A (en) | 2020-06-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111289922B (en) | Cable plugging detection method and related equipment | |
US7908407B1 (en) | Method, computer-readable storage media, and integrated circuit for providing enclosure management services utilizing multiple interfaces and protocols | |
US7490176B2 (en) | Serial attached SCSI backplane and detection system thereof | |
US8103993B2 (en) | Structure for dynamically allocating lanes to a plurality of PCI express connectors | |
US11748218B2 (en) | Methods, electronic devices, storage systems, and computer program products for error detection | |
US7685329B1 (en) | Detecting the presence and activity of a mass storage device | |
CN111949457A (en) | Server fault chip detection method and device | |
CN111966419A (en) | A method and device for automatically assigning VPP addresses by signal conditioning equipment | |
CN111176913A (en) | A circuit and method for detecting Cable Port in a server | |
CN115509978A (en) | A method, device, device, and storage medium for determining the physical location of an extrapolation device | |
CN116126613A (en) | A method, device, electronic device, and storage medium for detecting the position of a PCIe device | |
US8554974B2 (en) | Expanding functionality of one or more hard drive bays in a computing system | |
CN115129560A (en) | A server and its wiring alarm system | |
CN117608952A (en) | Detection device and detection method | |
CN216388068U (en) | PCIE interface verification board and test system | |
CN115454341A (en) | Method and server for associating logical disk identifier with hard disk slot | |
CN115794530A (en) | Hardware connection testing method, device, equipment and readable storage medium | |
CN115269344A (en) | A kind of backplane hard disk lighting method, device and equipment | |
CN204129732U (en) | Based on the board self-adaptation equipment of satellite time transfer machine frame system | |
US8832341B2 (en) | Dynamically determining a primary or slave assignment based on receiving a power signal from the cable at the port of a device | |
CN117971608B (en) | Method, device, equipment and medium for acquiring and sending hard disk logs | |
CN114662013B (en) | Self-describing system using single source/multiple destination cables | |
CN112100109B (en) | A cable connection fault-tolerant connection device and method | |
CN116795609A (en) | Board system and detection method and computing device thereof | |
CN104346312A (en) | Main board identifier setting system and method |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |