CN111289922A - Cable plugging detection method and related equipment - Google Patents

Cable plugging detection method and related equipment Download PDF

Info

Publication number
CN111289922A
CN111289922A CN202010075791.XA CN202010075791A CN111289922A CN 111289922 A CN111289922 A CN 111289922A CN 202010075791 A CN202010075791 A CN 202010075791A CN 111289922 A CN111289922 A CN 111289922A
Authority
CN
China
Prior art keywords
cable
detection
hard disk
raid card
analysis result
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.)
Granted
Application number
CN202010075791.XA
Other languages
Chinese (zh)
Other versions
CN111289922B (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202010075791.XA priority Critical patent/CN111289922B/en
Publication of CN111289922A publication Critical patent/CN111289922A/en
Application granted granted Critical
Publication of CN111289922B publication Critical patent/CN111289922B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The application provides a cable plugging detection method and related equipment, wherein the method comprises the following steps: the base plate management controller BMC is used for sending a cable detection instruction to the RAID card, and the cable detection instruction is used for indicating the RAID card to detect the connection state of a cable between the RAID card and the hard disk backboard; the RAID card is used for receiving the cable detection indication and generating a detection signal with a preset mark according to the cable detection indication and a preset rule; sending the detection signal to the hard disk backboard; the BMC obtains an analysis result, and compares the analysis result with a preset value to confirm the plugging state of the cable, wherein the analysis result is obtained by analyzing the detection signal by the hard disk backboard. Therefore, automatic cable plugging detection is realized, and the cost of manpower and material resources is saved.

Description

Cable plugging detection method and related equipment
Technical Field
The application relates to the technical field of cable plugging, in particular to a cable plugging detection method and related equipment.
Background
In a server, a hard disk backplane is usually used to implement connection between a Redundant Array of Independent Disks (RAID) card and a plurality of hard disks, and then data on the hard disks is striped by the RAID card to implement block access to the data. Generally, a RAID card and a hard disk backplane need to be connected through a large number of cables to achieve data interaction, and the number of hard disks connected to the same RAID card is limited by the number of ports of the RAID card. On the other hand, in order to increase the reusability of cables in the server, the connectors adopted by the cable ports are the same, and the different cables only differ in length. However, different cables may have a long parallel section of wires in the chassis, or there is a situation where the cables cross many times, it is difficult to distinguish the corresponding relationship between the cables and the opposite end ports. In the production and maintenance process, the cables are easily inserted in a wrong way. In the traditional technology, different cables are marked by adding physical modes such as labels on the cables, and the accuracy of cable plugging is determined by utilizing a mode of manual confirmation of maintenance personnel. However, under the condition that a plurality of RAID cards exist in the same server and flexible splicing of the RAID is required to be supported, due to the fact that a plurality of cables and complex layout are provided, effective detection of cable splicing cannot be achieved by the current method, and the problem that the server cannot identify a hard disk or the cable connection is disordered easily occurs, and application and use of hard disk resources in the server are affected. Therefore, how to provide an automatic cable plugging detection method is a technical problem to be solved urgently.
Disclosure of Invention
The application discloses a cable plugging detection method and related equipment, which can realize automatic cable plugging detection and save labor and material cost.
In a first aspect, the application discloses a cable plugging detection method, which is applied to a server, and the server comprises a mainboard and a hard disk backplane. Wherein: the main board comprises a Baseboard Management Controller (BMC) and a Redundant Array of Independent Disks (RAID) card, and the BMC is connected with the RAID card through a slot. The hard disk back plate comprises a plurality of connectors. The ports of the RAID card are connected with the plurality of connector ports in a one-to-one mode through cables. And the BMC is used for sending a cable detection instruction to the RAID card. The RAID card receives the cable detection indication and generates a detection signal with a preset mark according to the cable detection indication and a preset rule; and then, sending the generated detection signal to the hard disk backboard. The BMC obtains an analysis result, and compares and confirms the cable plugging state between the RAID card and the plurality of connector ports according to the analysis result and a preset value, wherein the analysis result is obtained by analyzing a detection signal generated by the RAID card through the hard disk backboard. The baseboard management controller BMC controls the RAID card to generate different detection signals to detect whether cable splicing between the RAID card and the connector is correct or not, so that automatic cable detection is achieved, the efficiency and accuracy of cable detection are improved, and manpower and material cost is saved.
Alternatively, the socket may be a peripheral component interconnect express (PCIe) socket, an inter-integrated circuit (I2C) socket, or a serial general input/output (SGPIO) socket.
In a possible embodiment, the preset rule for generating the detection signal of the preset mark may include any one of the following modes:
mode 1: the output ports of the RAID card are all configured with square waves with different duty ratios, the cable detection indication comprises the duty ratio value, and the RAID card can generate a detection signal according to the duty ratio value so as to detect the state of a cable connected between the port of the RAID card and the port of the connector.
Mode 2: the cable detection indication includes a frequency at which the RAID card can generate a detection signal to detect the state of the cable connecting the port of the RAID card and the port of the connector. For example, each signal output port of each RAID card 112 outputs a detection signal with different frequency.
Mode 3: the cable detection indication comprises serial data which can be used for uniquely identifying a signal so as to detect the state of a cable connecting the port of the RAID card and the port of the connector. For example, each signal output port of each RAID card 112 outputs a detection signal as a serial data signal that is not identical.
Mode 4: the cable detection indication comprises random numbers, the random numbers carried in different cable detection indications are different, the numbers are carried at the appointed positions of the detection signals, and the RAID card generates any form of detection signals for representing the numbers.
In another possible implementation, the RAID card outputs the generated detection signals from the plurality of signal output ports according to a preset rule.
Optionally, the preset rule may include an association relationship between the generated detection signal and the plurality of signal output ports, which is configured in advance in the RAID card. For example, the correlation in which a signal of a duty ratio of 20% is generated is output from the signal output port 1, the correlation in which a signal of a duty ratio of 30% is generated is output from the signal output port 2, and the like.
Optionally, the preset rule may include a mapping relationship between the generated detection signal and the plurality of signal output ports, which is determined according to the received cable detection indication. For example, the received cable detection instruction includes an instruction similar to the instruction to output a signal of 20% duty ratio generated from the signal output port 1, and output a signal of 30% duty ratio generated from the signal output port 2.
Optionally, the preset rule may include determining the output port of the detection signal according to an association relationship 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, in the RAID card 1, the detection signals with the duty ratios of 20% and 30% are output from the signal output port 1 and the signal output port 2, respectively, for the first time, and when the detection signals with the duty ratios of 20% and 30% are output again, the detection signals with the duty ratios of 20% and 30% are output from the signal output port 1 and the signal output port 2, respectively.
In another possible implementation, the slot is any one of a plurality of slots in the motherboard for connecting a plurality of RAID cards. The BMC sends cable detection indication to the RAID card, wherein the cable detection indication can be sequencing information of the slot; the sequencing information is obtained by sequencing a plurality of slots of a plurality of RAID cards in the mainboard by the BMC. The method and the device use the sequencing information of the RAID card slot as the cable detection indication of the RAID card to generate the detection signal, are simple and easy to implement, and do not occupy excessive computing resources.
In another possible implementation, the analysis result obtained by the BMC is specifically the analysis result stored in the preset address of the BMC obtaining register. The preset address comprises a plurality of storage addresses, and the storage addresses are mapped with the connector ports one by one. Each of the plurality of storage addresses is used for storing an analysis result of the detection signal; the analysis result stored in each address is the result analyzed by the backplane processor of the hard disk backplane according to the detection signal received by the connector port mapped by each address. According to the method and the device, the analysis result obtained by analyzing the detection signal in the current detection is compared with the preset value, so that the connection condition of the cable between the RAID card and the connector port is rapidly judged.
In another possible embodiment, the first one-to-one connection between the port of the RAID card and the plurality of connector ports via cables is a correct cable plugging. Then, before the BMC sends a cable detection instruction to the RAID card, and in a case where the BMC first initiates cable plugging detection between a port of the RAID card and a plurality of connector ports, the BMC sets an analysis result obtained from a preset address of a register to a preset value; the analysis result comprises a result analyzed by the backplane processor of the hard disk backplane according to the detection signals received by the plurality of connector ports for the first time. In the application, the BMC does not need to preset values of various plugging modes and preset alarm information of various plugging modes, and only needs to take information stored in a preset address in a register during first detection as a preset value during first detection for subsequent comparison. In addition, as for the alarm, the BMC controls the RAID card to generate the detection signal, and the BMC may also control which RAID card port the detection signal generated by the RAID card is sent from, so the BMC may determine which cable is plugged incorrectly according to the information and the result of the comparison. Like this, this application can realize automatic cable detection.
In a second aspect, the application discloses a cable plugging detection method, which is applied to a server, and the server comprises a mainboard and a hard disk backplane. Wherein: the main board and the hard disk backboard are connected through a cable. The cable plugging detection method disclosed by the application can comprise the following steps:
and the mainboard is used for sending a detection signal to the hard disk backboard. The hard disk backboard receives the detection signal and analyzes the detection signal to obtain an analysis result; and sending the analysis result to the mainboard. The mainboard receives the analysis result, and compares and confirms the plugging state of the cable between the mainboard and the hard disk backboard according to the analysis result and a preset value.
In the application, the baseboard management controller BMC controls the RAID card to generate different detection signals to detect whether cable splicing between the RAID card and the connector is correct or not, so that automatic cable detection is realized, the efficiency and accuracy of cable detection are improved, and the cost of manpower and material resources is saved.
The possible operation of the motherboard may correspond to the operation performed by the BMC and the RAID card in the first aspect and the possible embodiment thereof, and details are not described here.
In a third aspect, the present application discloses a baseboard management controller BMC, which includes units for performing operations performed by the BMC in the first aspect or any one of the possible implementations of the first aspect.
In a fourth aspect, the present application discloses a redundant array of independent disks RAID card comprising means for performing the operations performed by the RAID card in the first aspect or any one of the possible implementations of the first aspect.
In a fifth aspect, the present application discloses a device for detecting cable plugging, the device comprising:
the system comprises a first sending unit, a second sending unit and a control unit, wherein the first sending unit is used for sending a cable detection instruction to the RAID card; the cable detection indication is used for indicating the RAID card to detect the connection state of a cable between the RAID card and a hard disk backboard;
a receiving unit for receiving the cable detection indication;
the generating unit is used for generating a detection signal of a preset mark according to the cable detection instruction and a preset rule;
the second sending unit is used for sending the detection signal to the hard disk backboard;
the acquisition unit is used for acquiring an analysis result;
and the comparing unit is used for comparing and confirming the cable plugging state according to the analysis result and a preset value, wherein the analysis result is obtained by analyzing the detection signal by the hard disk backboard.
In a possible implementation, a plurality of RAID cards are inserted into a plurality of slots of the apparatus; the cable detection indication is ordering information of slots plugged by the RAID; the sorting information is obtained by sorting the plurality of slots.
In another possible embodiment, the hard disk backplane receives the detection signal through a plurality of connector ports;
the obtaining unit is specifically configured to obtain the 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 to the plurality of connector ports one to one; each of the plurality of storage addresses is used for storing an analysis result of the detection signal; the analysis result stored in each address is the result analyzed by the backplane processor of the hard disk backplane according to the detection signal received by the connector port mapped by each address.
In another possible implementation manner, the comparing unit is further configured to set, as a preset value, an analysis result obtained from a preset address of a register when the cable plugging detection between the RAID card and the hard disk backplane is initiated for the first time; the preset value comprises a result analyzed by a backplane processor of the hard disk backplane according to the detection signals received by the plurality of connector ports for the first time.
Optionally, the cable plugging detection device may be a motherboard 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.
In a seventh aspect, the present application discloses a BMC, which 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 to cause the BMC to perform the operational steps of the method performed by the BMC in the first aspect or any possible implementation of the first aspect.
In an eighth aspect, the present application discloses a redundant array of independent disks RAID card, comprising 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 to cause the RAID card to perform the operational steps of the method performed by the RAID card in the first aspect or any one of the possible implementations of the first aspect.
In a ninth aspect, the present application discloses a motherboard, where the motherboard includes a BMC and a RAID card. The BMC is the BMC of the seventh aspect, and the RAID card is the RAID card of the eighth aspect.
In a tenth aspect, the application discloses a server, which includes a motherboard and a hard disk backplane, where the motherboard includes a baseboard management controller BMC and a redundant array of independent disks RAID card. The BMC is connected with the RAID card through a slot; the hard disk back plate comprises a plurality of connectors; the ports of the RAID card are connected with the plurality of connector ports in a one-to-one mode through cables. The BMC is the BMC of the seventh aspect; the RAID card is the RAID card according to the eighth aspect.
In an eleventh aspect, the present application discloses a computer-readable storage medium storing a computer program for execution by a processor to perform the operational steps of the method according to the various aspects or any one of the possible implementations of the various aspects.
In a twelfth aspect, the present application provides a computer program product which, when run on a computer, causes the computer to perform the method described in the above aspects.
In summary, in the application, the baseboard management controller BMC controls the RAID card to generate different detection signals to detect whether the cable splicing between the RAID card and the connector is correct, so that automatic cable detection is achieved, the efficiency and accuracy of cable detection are improved, and the cost of manpower and material resources is saved.
Drawings
Fig. 1 is a schematic structural diagram of a system to which a cable plugging detection method according to an embodiment of the present disclosure is applied;
fig. 2 is a schematic flow chart of a cable plugging detection method according to an embodiment of the present application;
fig. 3 is a schematic diagram of a logic structure of a baseboard management controller according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a logical structure of a redundant array of independent hard disks according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram of a logic structure of a motherboard according to an embodiment of the present disclosure;
fig. 6 is a schematic hardware structure diagram of a baseboard management controller according to an embodiment of the present disclosure;
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 Description
In order to better understand the cable plugging detection method provided by the present application, an exemplary scenario applicable to the present application is described below. Referring to fig. 1, fig. 1 is a schematic diagram of a system architecture of a server 100 to which the cable plugging detection method provided in the present application is applied. As shown in fig. 1, the server 100 may include a motherboard 110 and a hard disk backplane 120.
The motherboard 110 includes a Baseboard Management Controller (BMC) 111, a motherboard processor 113, and at least one RAID card 112. The motherboard processor 113 and the BMC may communicate via a parallel bus connection. Alternatively, the parallel bus may be a (standard data bus, STD) or an Institute of Electrical and Electronics Engineers (IEEE) 488 or the like.
The main board 110 may further include a Central Processing Unit (CPU) (not shown in fig. 1), and the CPU may store data in the hard disk or read data from the hard disk through the hard disk backplane 120.
The baseboard management controller 111 can be used to perform some operations such as firmware upgrade and device viewing during device initialization. For example, the bmc111 may be configured to complete cable detection when a Standby (STANBY) power supply of the server 100 is powered on, so as to avoid a service interruption problem caused by a cable connection problem discovered only after a server operating system is started.
The main board processor 113 is a device in the main board for assisting the CPU in performing calculations of various data. Alternatively, the motherboard processor 113 may be a CPU, a Complex Programmable Logic Device (CPLD), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, a transistor logic device, a general purpose processor, or the like.
And the RAID card 112 is used for realizing management of the server 110 on the hard disk. For example, a storage resource hard disk may be provided to an upper layer application by forming a plurality of hard disks into a logical disk, and splitting the logical disk into a plurality of stripes according to a preset rule, where each stripe serves as a logical volume. In addition, the speed of accessing the hard disk is increased by dividing data into a plurality of data blocks (blocks) and writing/reading the data into/from the plurality of hard disks in parallel, and fault tolerance capability and the like can be provided by mirroring or checking operation.
Each RAID card 112 includes a RAID processor 1121 and a signal output port, and the signal output port is connected to the connector 121 of the hard disk backplane 120 through a cable. The RAID processor 1121 of each RAID card 112 is directly electrically connected to the slot into which the RAID card 112 is inserted, and then the RAID processor 1121 of the RAID card 112 is electrically connected to a plurality of signal output ports of the RAID card 112. The RAID processor 1121 is mainly used to process data received by the RAID card 112. For example, in the embodiment of the present application, the RAID processor 1121 is mainly used to generate a detection signal for a cable detection instruction received from the baseboard management controller 111 and send the detection signal to the hard disk backplane 120, and the like.
Alternatively, the RAID processor 1121 may be a Complex Programmable Logic Device (CPLD), Digital Signal Processor (DSP), Application Specific Integrated Circuit (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic device, transistor logic device, general purpose processor, or the like.
Each RAID card 112 is connected to the motherboard 110 through a slot 1122. The slot 1122 into which the RAID card is inserted may be a peripheral component interconnect express (PCIe) slot, an inter-integrated circuit (I2C) slot, or a serial general input/output (SGPIO) slot. The BMC and the RAID card can be connected and communicated through a PCIE bus, an I2C bus or an SGPIO bus and the like.
In this embodiment, a signal sent by the BMC111 is transmitted to the RAID processor 1121 through the slot 1122 of the plug-in RAID card 112, and the RAID processor 1121 generates a corresponding detection signal according to the received cable detection instruction, and transmits the detection signal from the plurality of signal output ports to the connector 121 port of the hard disk backplane 120 through a cable. Wherein each detection signal is different. Optionally, the signals sent by different signal output ports are different.
The RAID card 112 may generate a detection signal with a different preset flag according to the cable detection indication sent by the BMC111, where the detection signal includes a plurality of signals, and the preset flag of each signal is different, that is, each signal is a globally unique signal.
The hard disk backplane 120 includes a backplane processor 122 and a plurality of connectors 121. The backplane processor 122 is connected to the plurality of connectors 121. In particular, the backplane processor 122 may receive signals from the RAID card 112 via the plurality of connectors 121. The hard disk backplane 120 is further connected to a hard disk array to implement management of the hard disks by the CPU. Connector 121 may be cabled to a signal output port of RAID card 112 via a Serial Advanced Technology Attachment (SATA) port or a serial small computer system port (SAS).
The connector 121 is mainly used for realizing cable connection between the RAID card 112 and the hard disk backplane 120.
Backplane processor 122 may be configured to process signals received in connector 121. For example, in the embodiment of the present application, the backplane processor 122 may be configured to analyze the detection signal received by the connector 121 to obtain an analysis result, and the like.
Alternatively, backplane processor 122 may be a Complex Programmable Logic Device (CPLD), Digital Signal Processor (DSP), Application Specific Integrated Circuit (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic device, transistor logic device, general purpose processor, or the like.
In addition, the backplane processor 122 of the hard disk backplane 120 is connected to the motherboard processor 113. Alternatively, the backplane processor 122 and the main board processor 113 may be connected via a serial general purpose input/output (SGPIO) bus.
It should be noted that, the number of signal output ports in the RAID card is not limited in the present application, and may be set according to business requirements in specific implementation.
Next, the cable plugging detection method provided by the present application is further described 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 fig. 2, the method includes, but is not limited to, the following steps:
step 201, the baseboard management controller BMC sends a cable detection instruction to the RAID card.
Specifically, the BMC may select a part of RAID cards from the plurality of RAID cards to send cable detection instructions to the RAID cards one by one, may send cable detection instructions to all the selected RAID cards at the same time, and may send cable detection instructions to the plurality of RAID cards directly. As one possible implementation, the cable detection indication includes an identification of the slot into which the RAID card is inserted by the BMC, e.g., a slot number, a slot address, or other information that can be used to identify the slot.
Optionally, the identifier may be ordering information of slots into which N (N is an integer greater than 1) RAID cards are inserted. For example, if the N RAID cards are each plugged into one slot, the ordering information of the slots into which the RAID cards are plugged may be 1 to N, that is, the flag information includes 1 to N, that is, the cable detection indication includes 1 to N. Then, the BMC may send a cable detection indication "1" to the RAID cards plugged in the slot ordered as 1, send a cable detection indication "2" to the RAID cards plugged in the slot ordered as 2, and so on. Here, the information that the BMC specifically sends to the RAID card is determined according to specific situations, and this is not limited in this embodiment.
Optionally, the specific implementation process of the BMC sequencing the slots into which the RAID cards are inserted may include:
firstly, the BMC inquires the single board number of the RAID card inserted in the slot.
Optionally, the BMC may query the board number of the RAID card inserted in the slot by using a polling manner of I2C.
The board number may also be referred to as a type number of the RAID card. And judging whether the slot is inserted with the RAID card or not by inquiring the single board number of the RAID card in the slot. Specifically, if the single board number of the RAID card is found in the slot, it indicates that the RAID card is inserted in the slot, and otherwise, the RAID card is not inserted.
Suppose that the N slots are inquired to be plugged with RAID cards, namely the N RAID cards. Then, the BMC sorts the N slots to obtain the sorting information of each slot.
And if the cable detection indication is the sequencing information of the slots, the BMC sends the sequencing information of the N slots to the corresponding inserted RAID card. 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 is from 1 to N.
The method and the device use the sequencing information of the RAID card slot as the cable detection indication of the RAID card to generate the detection signal, are simple and easy to implement, and do not occupy excessive computing resources.
Step 202, the RAID card generates detection signals according to the cable detection instructions.
The generated detection signal comprises detection signals of a plurality of different preset marks. Wherein the detection signals of the plurality of different preset marks may comprise one or more of the following forms:
in the form 1, the signals with different duty ratios may be square wave signals or triangular wave signals with different duty ratios, for example.
In the form 2, the signals having different frequencies may be square wave signals, sinusoidal signals, triangular wave signals, or the like.
Form 3, serial data signals with different numbers of bits, and so on.
Form 4, different random numbers, etc.
Specifically, the RAID card has a plurality of signal output ports, the number of the signal output ports of each RAID card may be the same or different, and the number is determined specifically according to an actual situation, and the present solution does not limit this.
Optionally, each cable detection indicator is used to instruct the RAID card to generate a plurality of different preset marks of the detection signal, and the preset marks of the detection signals generated by different RAID cards are different.
Further, the RAID card may generate a corresponding detection signal according to a preset rule according to the cable detection instruction. The preset rule comprises any one of the following modes:
mode 1: the output ports of the RAID card are all configured with square waves with different duty ratios, the cable detection indication comprises the duty ratio value, and the RAID card can generate a detection signal according to the duty ratio value so as to detect the state of a cable connected between the port of the RAID card and the port of the connector.
Mode 2: the cable detection indication includes a frequency at which the RAID card can generate a detection signal to detect the state of the cable connecting the port of the RAID card and the port of the connector. Wherein, the frequency of the detection signal output by each signal output port of each RAID card 112 is different.
Mode 3: the cable detection indication comprises serial data which can be used for uniquely identifying the detection signal so as to detect the state of a cable connecting the port of the RAID card and the port of the connector. The detection signal output by each detection signal output port of each RAID card 112 is a serial data signal that is not the same.
Mode 4: the cable detection indication comprises random numbers, the random numbers carried in different cable detection indications are different, the numbers are carried at the appointed positions of the detection signals, and the RAID card generates any form of detection signals for representing the numbers.
For convenience of understanding, the following description will be given taking as an example a case where the detection signal is a square wave signal having a different duty ratio.
For example, assume that 2 RAID cards (referred to as RAID card 1 and RAID card 2, respectively) are plugged into the motherboard, and each RAID card has 2 signal output ports. Then, the BMC sends different cable detection indication 1 and cable detection indication 2 to the RAID card 1 and RAID card 2, respectively. Because the preset rules for generating two paths of square wave signals with duty ratios of 20% and 30% respectively according to the cable detection instruction 1 are configured in the RAID card 1 in advance, and the preset rules for generating two paths of square wave signals with duty ratios of 40% and 50% respectively according to the cable detection instruction 2 are configured in the RAID card 2; therefore, the RAID card 1 generates two square wave signals with duty ratios of 20% and 30%, respectively, according to the received cable detection instruction 1. The RAID card 2 generates two paths of square wave signals with duty ratios of 40% and 50% respectively according to the received cable detection instruction 2.
Step 203, the RAID card sends the generated detection signal to the backplane processor through its own plurality of signal output ports.
Step 204, the backplane processor receives the detection signal sent by the RAID card through the connector ports, and each connector port receives one path of the detection signal.
After the RAID card generates a plurality of detection signals with different preset marks, the detection signals are respectively output from a plurality of signal output ports, and each signal output port outputs one path of detection signal which is sent to the backplane processor through a cable.
Specifically, the RAID card outputs the generated detection signals from the plurality of signal output ports according to a preset rule.
Optionally, the preset rule may include an association relationship between the generated detection signal and the plurality of signal output ports, which is configured in advance in the RAID card. For example, the correlation in which a signal of a duty ratio of 20% is generated is output from the signal output port 1, the correlation in which a signal of a duty ratio of 30% is generated is output from the signal output port 2, and the like.
Optionally, the preset rule may include a mapping relationship between the generated detection signal and the plurality of signal output ports, which is determined according to the received cable detection indication. For example, the received cable detection instruction includes an instruction similar to the instruction to output a signal of 20% duty ratio generated from the signal output port 1, and output a signal of 30% duty ratio generated from the signal output port 2.
Optionally, the preset rule may include determining the output port of the detection signal according to an association relationship 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, in the RAID card 1, the detection signals with the duty ratios of 20% and 30% are output from the signal output port 1 and the signal output port 2, respectively, for the first time, and when the detection signals with the duty ratios of 20% and 30% are output again, the detection signals with the duty ratios of 20% and 30% are output from the signal output port 1 and the signal output port 2, respectively.
Specifically, each signal output port of the RAID card is connected to one connector port through a cable, and the connector port receives a detection signal sent by the RAID card and transmits the detection signal to the backplane processor.
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 a different duty ratio, the preset mark information of the detection signal analyzed by the backplane processor may be the duty ratio of the detection signal.
Alternatively, if the detection signals are signals with different frequencies, the preset mark information of the detection signals analyzed by the backplane processor may be the frequencies of the detection signals.
Alternatively, if the detection signal is a serial data signal with different bits, the preset flag information of the detection signal analyzed by the backplane processor may be the bit number of the detection signal.
Alternatively, if the detection signal is a random number, the preset flag information of the detection signal analyzed by the backplane processor may be the random number.
The preset mark information of the specifically analyzed detection signal is determined according to the actual situation, and the scheme is not limited to this. For the sake of easy understanding, the detection signal is exemplified as a square wave signal with different duty ratios.
Example two, based on the description of example one, the backplane processor receives 4 paths of detection signals of the RAID card 1 and the RAID card 2 through 4 connector ports. It is assumed that the ports 1, 2, 3, and 4 of the 4 connector ports are cable-connected to the signal output port 1 of the RAID card 1, the signal output port 2 of the RAID card 1, the signal output port 1 of the RAID card 2, and the signal output port 2 of the RAID card 2, respectively. Signals output by the RAID card 1 from the signal output port 1 and the signal output port 2 of the RAID card are square wave signals with duty ratios of 20% and 30%, respectively; the signals output by the RAID card 2 from the signal output port 1 and the signal output port 2 are square wave signals with duty ratios of 40% and 50%, respectively.
Then, the detection signals received by the port 1, the port 2, the port 3 and the port 4 of the connector are square wave signals with duty ratio of 20%, duty ratio of 30%, duty ratio of 40% and duty ratio of 50%, respectively. Then, the preset flag information obtained by analyzing the port 1 of the backplane processor after acquiring the detection signal is 20%, the preset flag information obtained by analyzing the port 2 of the backplane processor after acquiring the detection signal is 30%, the preset flag information obtained by analyzing the port 3 of the backplane processor after acquiring the detection signal is 40%, and the preset flag information obtained by analyzing the port 4 of the backplane processor after acquiring the detection signal is 50%.
The preset flag information of the detection signal obtained by the analysis of the backplane processor may 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 plugged, and the specific implementation process may refer to steps 206 to 209.
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 motherboard processor.
And step 207, the main board processor stores the analysis result into a preset address in a register according to the corresponding relation information.
In particular, the register may be a register of a motherboard processor, which may interact with the BMC. The preset address in the register is an address which is configured in advance and used for storing the analysis result, and the analysis result comprises a preset mark information address of a detection signal sent to the RAID card. The preset address includes a plurality of storage addresses, each for storing preset flag information of a detection signal. And, the plurality of memory addresses have a one-to-one mapping relationship with the connector ports. That is, the specific storage address for storing the preset flag information of the detection signal received by the specific connector port is preset. For ease of understanding, the following is exemplified.
In the third embodiment, based on the description of the second embodiment, the backplane processor sends 20%, 30%, 40% and 50% of the predetermined tag information of the detection signal obtained by the parsing to the main board processor. Meanwhile, information that 20% is associated with the port 1, 30% is associated with the port 2, 40% is associated with the port 3, and 50% is associated with the port 4 is transmitted to the board processor.
Assume that the predetermined address includes four storage addresses, address 1, address 2, address 3, and address 4. And, address 1 is configured in advance for storing preset flag information of the detection signal received by port 1, address 2 is configured for storing preset flag information of the detection signal received by port 2, address 3 is configured for storing preset flag information of the detection signal received by port 3, and address 4 is configured for storing preset flag information of the detection signal received by port 4. Then, after receiving the information sent by the backplane processor, the main board processor stores 20%, 30%, 40% and 50% in address 1, address 2, address 3 and address 4, respectively, according to the information. The information in the stored preset address can be seen in table 1, for example.
TABLE 1
Address 1 Address 2 Address 3 Address 4
20% 30% 40% 50%
And step 208, the mainboard processor sends the analysis result stored in the preset address of the register to the BMC.
Step 209, the BMC compares the analysis result stored in the preset address of the register with a preset value to determine whether the cable between the port of the RAID card and the port of the connector is correctly plugged.
The preset value includes preset mark information of the detection signal stored in the preset address in the case that the cables between the port of the RAID card and the plurality of connector ports are correctly plugged.
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 analysis result of the detection signal stored in the preset address by the mainboard processor as the preset value of the preset address. The BMC sets the condition of first one-to-one connection of the cables between the port of the RAID card and the connector port to be the condition of correct connection, and then calculates the correct connection when each detection is the same as the condition of first connection, otherwise, the connection is wrong. 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 port of the connector is correctly plugged, otherwise, the plugging is wrong. For ease of understanding, the following is exemplified.
In the fourth example, based on the description of the third example, it is assumed that the cables between the signal output ports of the RAID cards 1 and 2 and the connector ports in the third example are connected for the first time. Then, the BMC receives the preset flag information (e.g., the information in table 1) stored in the preset address of the register sent by the motherboard processor, and then sets the received information to the preset value in the preset address. That is, the BMC defaults to correct connection when the ports 1, 2, 3, and 4 of the 4 connector ports are connected to the signal output port 1 of the RAID card 1, the signal output port 2 of the RAID card 1, the signal output port 1 of the RAID card 2, and the signal output port 2 of the RAID card 2 by cables, respectively. In the later cable test, it is necessary to ensure that the connection is correct, otherwise the connection is faulty.
After the BMC sets the preset mark information of the detection signal, which is stored in the preset address by the mainboard processor for the first time, to the preset value in the preset address, the BMC compares the analysis result of the detection signal obtained from the preset address of the mainboard processor register with the preset value in the preset address during each cable detection, and if the two information are matched, the cable connection is correct. If the two pieces of information do not match completely, the cable is in error. Optionally, the BMC may determine a cable plugging error between the corresponding RAID card port and the connector port according to a mismatch of information of which preset address is not matched. For ease of understanding, the following is exemplified.
In the fifth example, based on the descriptions of the third example and the fourth example, it is assumed that table 1 is information preset in a preset address in a register stored in the BMC. Then, if the preset flag information of the detection signal stored into the preset address of the register by the board processor during one cable detection is identical to that of table 1, 20%, 30%, 40%, and 50% are stored into address 1, address 2, address 3, and address 4, respectively. This then indicates that the cables between the ports of RAID card 1 and RAID card 2 and the connector ports of the hard disk backplane are properly plugged.
If the motherboard processor stores the preset flag information of the detection signal in the preset address of the register during one cable detection as shown in table 2. Comparing table 2 with table 1, it can be seen that the information in address 1 and address 2 of table 2 is inconsistent with that in table 1, which indicates that the cable of the connector port corresponding to address 1 and address 2 is plugged by mistake. As can be seen from the second and third examples, address 1 and address 2 are respectively associated with port 1 and port 2 of the connector, and in the case of correct connection, port 1 and port 2 are respectively associated with signal output port 1 of RAID card 1 and signal output port 2 of RAID card 1. Thus, the BMC can determine, from this information, a cable plugging error between port 1 and signal output port 1 of the RAID card 1, and a cable plugging error between port 2 and signal output port 2 of the RAID card 1.
TABLE 2
Address 1 Address 2 Address 3 Address 4
30% 20% 40% 50%
In a possible implementation manner, the BMC may detect a cable between each RAID card of the N RAID cards and a connector of a hard disk backplane by using a polling detection method. For example, the cables between the jth RAID card and the connector of the hard disk backplane may be detected, and then the cables between the jth +1 RAID card and the connector of the hard disk backplane may be detected until the cables between the N RAID cards and the connector of the hard disk backplane are detected. Wherein j has a value from 1 to N-1.
It should be noted that since the cables of the RAID cards are detected one by one, the analysis result of the detection signal finally stored in the preset address of the register may be the analysis result of the detection signal sent by one RAID card, and then the BMC compares the analysis result with the preset value corresponding to the preset address in which the analysis result of the detection signal is stored to determine whether the cable of the RAID card is correctly plugged. In addition, the specific implementation process of the BMC detecting the cable between each RAID card and the connector of the hard disk backplane may correspond to the embodiment described in fig. 2, and details are not described here.
In conclusion, 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 plugged correctly or not, so that automatic cable plugging detection is realized, and the efficiency and accuracy of cable detection are improved. According to the embodiment of the application, preset values of various plugging modes and preset alarm information of various plugging modes do not need to be preset in the BMC, so that the manpower and material resource cost is saved, and the occupation of storage resources in the BMC is also saved. 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 or not, the detection of the cable can be completed when the server is powered on, namely, the detection is completed in the system initialization stage, so that the production time is not influenced. In addition, the embodiment of the application does not depend on some drivers (for example, firmware), supports flexible plugging and adaptation of the RAID card and reduces complexity of the scheme.
The cable plugging detection method provided by the embodiment of the application is introduced mainly from the perspective of interaction of the baseboard management controller, the redundant array of independent hard disks (RAID) card, the backplane processor and the mainboard processor. It will be appreciated that each device, in order to carry out the above-described functions, comprises corresponding hardware structures and/or software modules for performing each function. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative devices and method steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the functional modules of the above-mentioned devices, for example, the baseboard management controller, the RAID card, and the like, may be divided according to the above-mentioned method examples, for example, the functional modules may be divided corresponding to the functions, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation.
In the case of dividing each functional module according to each function, the BMC in the above embodiment includes a unit for performing operations performed by the BMC in the embodiment of the method shown in fig. 2. Fig. 3 shows a schematic diagram of a possible logical structure of the baseboard management controller according to the above embodiment, where the baseboard management controller 300 includes: a transmitting unit 301, a receiving unit 302 (the receiving unit 302 may be referred to as an obtaining unit 302), and a comparing unit 303. The sending unit 301 may be configured to perform the operation steps of sending information by the bmc in the embodiment of the method shown in fig. 2, and the like; the receiving unit 302 or the obtaining unit 302 may be configured to perform the operation steps of receiving information by the bmc in the embodiment of the method shown in fig. 2, and the like; the comparing unit 303 may be configured to perform the operation steps of comparing information by the bmc in the embodiment of the method shown in fig. 2, and the like.
It should be noted that the baseboard management controller 300 shown in fig. 3 is only one implementation manner of the embodiment of the present application, and in practical applications, the baseboard management controller 300 may further include more or less components, which is not limited herein. For the specific implementation of the bmc 300, reference may be made to the foregoing description in the method embodiment shown in fig. 2, and details are not repeated here.
In the case of adopting the functional modules divided corresponding to the functions, the RAID card of the redundant array of independent disks according to the above embodiment includes a unit for executing the operation performed by the RAID card in the embodiment of the method shown in fig. 2. Fig. 4 is a schematic diagram illustrating a possible logical structure of the raid involved in the above embodiments, where the raid 400 includes: receiving section 401, generating section 402, and transmitting section 403. The receiving unit 401 may be configured to perform the operation steps of receiving information by the RAID card in the method embodiment shown in fig. 2, and the like; the generating unit 402 may be configured to perform the operation steps of generating the detection signal by the RAID card in the foregoing method embodiment shown in fig. 2, and the like; the sending unit 404 may be configured to perform the operation steps of sending the detection signal by the RAID card in the method embodiment shown in fig. 2, and the like.
It should be noted that the raid 400 shown in fig. 4 is only one implementation manner of the embodiment of the present application, and in practical applications, the raid 400 may also include more or less components, and is not limited herein. For specific implementation of redundant array of independent disks 400, reference may be made to the foregoing description in the embodiment of the method shown in fig. 2, and details are not repeated here.
In the case of dividing each functional module according to each function, fig. 5 is a schematic diagram of a possible logic structure of the motherboard. The main board 500 includes:
a first sending unit 501, configured to send a cable detection indication to a RAID card; the cable detection indication is used for indicating the RAID card to detect the connection state of a cable between the RAID card and a hard disk backboard;
a receiving unit 502 for receiving the cable detection indication;
a generating unit 503, 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 504, configured to send the detection signal to the hard disk backplane;
an obtaining unit 505, configured to obtain an analysis result;
a comparing unit 506, configured to compare the analysis result with a preset value to determine the cable plugging state, where the analysis result is obtained by analyzing the detection signal by the hard disk backplane.
In a possible implementation manner, a plurality of RAID cards are inserted into a plurality of slots of the motherboard 500; the cable detection indication is ordering information of slots plugged by the RAID; the sorting information is obtained by sorting the plurality of slots.
In another possible embodiment, the hard disk backplane receives the detection signal through a plurality of connector ports;
the obtaining unit 505 is specifically configured to obtain the 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 to the plurality of connector ports one to one; each of the plurality of storage addresses is used for storing an analysis result of the detection signal; the analysis result stored in each address is the result analyzed by the backplane processor of the hard disk backplane according to the detection signal received by the connector port mapped by each address.
In another possible implementation manner, the comparing unit 506 is further configured to set, as a preset value, an analysis result obtained from a preset address of a register when the cable plugging detection between the RAID card and the hard disk backplane is initiated for the first time; the preset value comprises a result analyzed by a backplane processor of the hard disk backplane according to the detection signals received by the plurality of connector ports for the first time.
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, no further description is provided herein.
Fig. 6 is a schematic diagram of a possible hardware structure of the bmc according to the above embodiment. The baseboard management controller 600 includes: a processor 601, a memory 602, and a communications port 603. The processor 601, communication port 603, and memory 602 may be interconnected or interconnected via a bus 604.
Illustratively, the memory 602 is used for storing computer programs and data of the baseboard management controller 600, and the memory 602 may include, but is not limited to, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a portable read-only memory (CD-ROM), and the like. The communication port 603 is used to support the baseboard management controller 600 for communication, such as receiving or transmitting data.
Illustratively, the processor 601 may be a CPU, complex programmable logic device, general purpose processor, digital signal processor, application specific integrated circuit, field programmable gate array or other programmable logic device, transistor logic device, hardware component, or any combination thereof. A processor may also be a combination of computing functions, e.g., a combination of one or more microprocessors, a digital signal processor and a microprocessor, or the like. The processor 601 may be configured to read the program stored in the memory 602, and execute the operations implemented by the bmc in the method of fig. 2 and possible embodiments.
It should be noted that the baseboard management controller 600 shown in fig. 6 is only one implementation manner of the embodiment of the present application, and in practical applications, the baseboard management controller 600 may further include more or less components, which is not limited herein. In addition, the bmc 600 may correspond to the bmc 300 in the embodiment of the present application, and may correspondingly execute a corresponding main body in the method shown in fig. 2 in the embodiment of the present application, and each module and other operations and/or functions in the bmc 600 are respectively for implementing a corresponding flow of each method in fig. 2, and are not described herein again for brevity.
Fig. 7 is a schematic diagram of a possible hardware structure of the raid according to the above embodiment. The redundant array of independent disks 700 includes: a processor 701, a memory 702, and a communications port 703. The processor 701, the communication port 703, and the memory 702 may be connected to each other or to each other through a bus 704.
Illustratively, the memory 702 is used for storing computer programs and data for the redundant array of independent disks 700, and the memory 702 may include, but is not limited to, a random access memory RAM, a read only memory ROM, an erasable programmable read only memory EPROM, or a portable read only memory CD-ROM. The communication port 703 is used for supporting the redundant array of independent disks 700 for communication, such as receiving or transmitting data.
Illustratively, the processor 701 may be a CPU, complex programmable logic device, general purpose processor, digital signal processor, application specific integrated circuit, field programmable gate array or other programmable logic device, transistor logic device, hardware component, or any combination thereof. A processor may also be a combination of computing functions, e.g., a combination of one or more microprocessors, a digital signal processor and a microprocessor, or the like. The processor 701 may be configured to read the program stored in the memory 702 and execute the operations implemented by the redundant array of independent disks in the method described in fig. 2 and the possible embodiments.
It should be noted that the raid 700 shown in fig. 7 is only one implementation manner of the embodiment of the present application, and in practical applications, the raid 700 may also include more or less components, and is not limited herein. In addition, the redundant array of independent disks 700 may correspond to the redundant array of independent disks 400 in this embodiment, and may correspondingly execute the corresponding main body in the method shown in fig. 2 in this embodiment, and each module and other operations and/or functions in the redundant array of independent disks 700 are respectively for implementing the corresponding flow of each method in fig. 2, and are not described herein again for brevity.
The embodiment of the application also provides a device for detecting the cable, wherein the device comprises a baseboard management controller BMC and an independent disk redundant array RAID card; the BMC may be the BMC shown in fig. 6, and the RAID card may be the redundant array of independent disks shown in fig. 7. Optionally, the device may be a motherboard of the server.
The application discloses server, this server include mainboard and hard disk backplate, include base plate management controller BMC and redundant array of independent disks RAID card in this mainboard. The BMC is connected with the RAID card through a slot; the hard disk back plate comprises a plurality of connectors; the ports of the RAID card are connected with the plurality of connector ports in a one-to-one mode through cables. Alternatively, the server may be the server 100 shown in fig. 1.
The above embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. 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 loaded or executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more collections of available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium. The semiconductor medium may be a Solid State Drive (SSD).
In summary, in the application, the baseboard management controller BMC controls the RAID card to generate different detection signals to detect whether the cable splicing between the RAID card and the connector is correct, so that automatic cable detection is achieved, the efficiency and accuracy of cable detection are improved, and the cost of manpower and material resources is saved.
The foregoing is only illustrative of the present application. Those skilled in the art can conceive of changes or substitutions based on the specific embodiments provided in the present application, and all such changes or substitutions are intended to be included within the scope of the present application.

Claims (12)

1. A cable plugging detection method is applied to a server, the server comprises a mainboard and a hard disk backboard, the mainboard comprises a Baseboard Management Controller (BMC) and an independent hard disk Redundant Array (RAID) card, and the BMC and the RAID card are connected through a slot; the hard disk back plate comprises a plurality of connectors; the ports of the RAID card are connected with the plurality of connector ports in a one-to-one mode through cables; characterized in that the method comprises:
the BMC is used for sending a cable detection indication to the RAID card; the cable detection indication is used for indicating the RAID card to detect the connection state of a cable between the RAID card and a hard disk backboard;
the RAID card is used for receiving the cable detection indication and generating a detection signal with a preset mark according to the cable detection indication and a preset rule; sending the detection signal to the hard disk backboard;
and the BMC acquires an analysis result, and compares the analysis result with a preset value to confirm the cable plugging state, wherein the analysis result is obtained by analyzing the detection signal by the hard disk backboard.
2. The method of claim 1, wherein the slot is a peripheral component interconnect express (PCIe) slot, an inter-integrated circuit (I2C) slot, or a Serial General Purpose Input Output (SGPIO) slot.
3. The method according to claim 1 or 2, wherein the slot is any one of a plurality of slots for connecting a plurality of RAID cards in the motherboard; the cable detection indication is ordering information of the slot; and the sequencing information is obtained by sequencing the slots by the BMC.
4. The method of any of claims 1 to 3, wherein the BMC obtains the resolution result and comprises:
acquiring the analysis result stored in a preset address of a register; the preset address comprises a plurality of storage addresses, and the storage addresses are mapped with the connector ports one by one; each of the plurality of storage addresses is used for storing an analysis result of the detection signal; the analysis result stored in each address is the result analyzed by the backplane processor of the hard disk backplane according to the detection signal received by the connector port mapped by each address.
5. The method according to any one of claims 1 to 4, wherein the condition that the ports of the RAID card are connected with the plurality of connector ports one to one through cables for the first time is a condition that the cables are correctly plugged;
the BMC is further used for setting an analysis result obtained from a preset address of a register to be a preset value when the BMC initiates the cable plugging detection for the first time; the analysis result obtained from the preset address of the register comprises a result analyzed by the backplane processor of the hard disk backplane according to the detection signals received by the plurality of connector ports for the first time.
6. A cable plugging detection method is applied to a server, the server comprises a mainboard and a hard disk backboard, and the mainboard is connected with the hard disk backboard through a cable; characterized in that the method comprises:
the main board is used for sending a detection signal to the hard disk backboard;
the hard disk back plate is used for receiving the detection signal and analyzing the detection signal to obtain an analysis result; sending the analysis result to the mainboard;
the mainboard is also used for receiving the analysis result and comparing the analysis result with a preset value to confirm the plugging state of the cable.
7. A device for detecting cable plugging is characterized by comprising a first sending unit, a receiving unit, a generating unit, an analyzing unit, a second sending unit, an acquiring unit and a comparing unit;
the first sending unit is used for sending a cable detection instruction to the RAID card; the cable detection indication is used for indicating the RAID card to detect the connection state of a cable between the RAID card and a hard disk backboard;
the receiving unit is used for receiving the cable detection indication;
the generating unit is used for generating a detection signal of a preset mark according to the cable detection instruction and a preset rule;
the second sending unit is used for sending the detection signal to the hard disk backboard;
the acquisition unit is used for acquiring an analysis result;
and the comparing unit is used for comparing and confirming the cable plugging state according to the analysis result and a preset value, wherein the analysis result is obtained by analyzing the detection signal by the hard disk backboard.
8. The apparatus of claim 7, wherein the cable detection indicates ordering information for slots plugged for the RAID; the sequencing information is obtained by sequencing a plurality of slots.
9. The apparatus of claim 7 or 8, wherein the hard disk backplane receives the detection signal through a plurality of connector ports;
the obtaining unit is specifically configured to obtain the analysis result stored in a preset address of a register; the preset address comprises a plurality of storage addresses, and the storage addresses are mapped with the connector ports one by one; each of the plurality of storage addresses is used for storing an analysis result of the detection signal; the analysis result stored in each address is the result analyzed by the backplane processor of the hard disk backplane according to the detection signal received by the connector port mapped by each address.
10. The apparatus of any one of claims 7 to 9, wherein the hard disk backplane receives the detection signal through a plurality of connector ports;
the comparing unit is further configured to set an analysis result obtained from a preset address of a register to a preset value when the cable plugging detection is initiated for the first time; the preset value comprises a result analyzed by a backplane processor of the hard disk backplane according to the detection signals received by the plurality of connector ports for the first time.
11. A server for cable detection comprises a mainboard and a hard disk backboard, wherein the mainboard comprises a Baseboard Management Controller (BMC) and an independent hard disk Redundant Array (RAID) card, and the BMC is connected with the RAID card through a slot; the hard disk back plate comprises a plurality of connectors; the ports of the RAID card are connected with the plurality of connector ports in a one-to-one mode through cables; the BMC and the RAID card are configured to perform the operational steps performed by the BMC and RAID card of any of the methods of claims 1-5, respectively.
12. A computer-readable storage medium, characterized in that it stores a computer program which is executed by a processor to implement the operational steps of the method of any one of claims 1 to 5 or to implement the operational steps of the method of claim 6.
CN202010075791.XA 2020-01-22 2020-01-22 Cable plugging detection method and related equipment Active CN111289922B (en)

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 true CN111289922A (en) 2020-06-16
CN111289922B 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)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112306867A (en) * 2020-10-26 2021-02-02 苏州浪潮智能科技有限公司 Method for automatically detecting I2C address exception based on hierarchical 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
CN113505033A (en) * 2021-07-09 2021-10-15 南昌华勤电子科技有限公司 Cable misplug prevention system, main board, sub-card assembly and method
CN113868037A (en) * 2021-08-30 2021-12-31 苏州浪潮智能科技有限公司 System and method for judging cable connection accuracy of hard disk backboard
WO2022022010A1 (en) * 2020-07-28 2022-02-03 华为技术有限公司 Server, cabinet server, and blade server

Citations (16)

* Cited by examiner, † Cited by third party
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
CN102143516A (en) * 2011-03-31 2011-08-03 华为技术有限公司 Detection method, device and system
CN103399251A (en) * 2013-07-30 2013-11-20 广州视睿电子科技有限公司 USB (Universal Serial Bus) communication line detection device
CN103534983A (en) * 2012-11-30 2014-01-22 华为技术有限公司 Detection method and apparatus of cable plugging case
CN104731678A (en) * 2013-12-19 2015-06-24 鸿富锦精密工业(深圳)有限公司 RAID storage mode test system and method and electronic device
CN105446657A (en) * 2015-11-11 2016-03-30 浪潮电子信息产业股份有限公司 Method for monitoring RAID card
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
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 浪潮商用机器有限公司 A kind of cable self checking method, system and the server of storage system
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

Patent Citations (17)

* Cited by examiner, † Cited by third party
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
CN102143516A (en) * 2011-03-31 2011-08-03 华为技术有限公司 Detection method, device and system
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 (Universal Serial Bus) communication line detection device
CN104731678A (en) * 2013-12-19 2015-06-24 鸿富锦精密工业(深圳)有限公司 RAID storage mode test system and method and electronic device
US20150177998A1 (en) * 2013-12-19 2015-06-25 Hon Hai Precision Industry Co., Ltd. Electronic device and method for testing redundant array of independent disks level
CN105446657A (en) * 2015-11-11 2016-03-30 浪潮电子信息产业股份有限公司 Method for monitoring RAID card
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
CN108959026A (en) * 2018-06-28 2018-12-07 合肥浪金防伪科技有限公司 A kind of method of accurate monitoring RAID card
CN108828363A (en) * 2018-06-29 2018-11-16 郑州云海信息技术有限公司 A kind of fault detection system of connector
CN109753396A (en) * 2019-01-16 2019-05-14 浪潮商用机器有限公司 A kind of cable self checking method, system and the server of storage system
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)

* Cited by examiner, † Cited by third party
Title
曹立松: "高频连接器测试治具信号串扰研究与应用", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022022010A1 (en) * 2020-07-28 2022-02-03 华为技术有限公司 Server, cabinet server, and blade server
EP4188044A4 (en) * 2020-07-28 2024-01-10 Huawei Tech Co Ltd Server, cabinet server, and blade server
CN112306867A (en) * 2020-10-26 2021-02-02 苏州浪潮智能科技有限公司 Method for automatically detecting I2C address exception based on hierarchical traversal
CN112306867B (en) * 2020-10-26 2022-11-11 苏州浪潮智能科技有限公司 Method for automatically detecting I2C address abnormity of system based on sequence 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
WO2022151988A1 (en) * 2021-01-15 2022-07-21 苏州浪潮智能科技有限公司 Sas link fault positioning method and apparatus, device, and storage medium
CN113505033A (en) * 2021-07-09 2021-10-15 南昌华勤电子科技有限公司 Cable misplug prevention system, main board, sub-card assembly and method
CN113505033B (en) * 2021-07-09 2023-10-13 南昌华勤电子科技有限公司 Cable misplug prevention system, main board, sub-card assembly and method
CN113868037A (en) * 2021-08-30 2021-12-31 苏州浪潮智能科技有限公司 System and method for judging cable connection accuracy of hard disk backboard
CN113868037B (en) * 2021-08-30 2023-06-16 苏州浪潮智能科技有限公司 System and method for judging connection accuracy of hard disk backboard cables

Also Published As

Publication number Publication date
CN111289922B (en) 2022-04-22

Similar Documents

Publication Publication Date Title
CN111289922B (en) Cable plugging detection method and related equipment
US9146823B2 (en) Techniques for testing enclosure management controller using backplane initiator
US7908407B1 (en) Method, computer-readable storage media, and integrated circuit for providing enclosure management services utilizing multiple interfaces and protocols
US20090157920A1 (en) Dynamically Allocating Communication Lanes For A Plurality Of Input/Output ('I/O') Adapter Sockets In A Point-To-Point, Serial I/O Expansion Subsystem Of A Computing System
US11748218B2 (en) Methods, electronic devices, storage systems, and computer program products for error detection
CN103218180A (en) Disk positioning method and device
CN115904835A (en) Cable detection method and server
CN114327571B (en) File configuration method, chip testing machine and computer readable storage medium
CN116662091A (en) Method, device, equipment and storage medium for detecting high-speed cable of server
CN111176913A (en) Circuit and method for detecting Cable Port in server
US9983970B2 (en) Redundant cable routing management in storage systems
CN102063341A (en) High-density server
US8391162B2 (en) Apparatus and method for testing SMNP cards
CN104062530B (en) A kind of mobile terminal hardware failure detection device and method
CN116048889A (en) Detection method and related device for cable connection of cabinet server
US11854577B2 (en) Hard disk device simulator, testing system using hard disk device simulators and testing method thereof
CN216388068U (en) PCIE interface verification board and test system
CN113468028B (en) Device management method for computing device, apparatus and medium
CN211787062U (en) MCTP equipment testing arrangement
CN115129560A (en) Server and wiring warning system thereof
CN114265731A (en) PCIE interface verification board, test system and test method
CN109002404B (en) PCIE equipment and monitoring method thereof
CN112596983A (en) Monitoring method for connector in server
CN112115007B (en) Debugging method and device of countdown display
CN117648239A (en) Misplug detection method of external equipment and computing 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
GR01 Patent grant
GR01 Patent grant