Cable connection testing methods, devices, equipment and storage media
By setting up programmable logic devices on the backplane to detect hard drive read/write signals in real time and determine the correctness of cable insertion, the problem of disk order disorder caused by reversed cable insertion is solved, and the accuracy and reliability of cable insertion are achieved.
Patent Information
- Application Number
- CN202210782754.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-29
- Publication Date
- 2026-03-06
- Estimated Expiration
- 2042-06-29
AI Technical Summary
In server systems, reversed cable connections can cause disk order confusion. Current technology cannot effectively prevent reversed cable connections, which can lead to incorrect indicator lights and increase the risk of quality incidents.
By setting programmable logic devices on the backplane, the read and write signals of the hard drive are detected in real time, and the correctness of cable insertion is determined based on the light status. The insertion status is recorded by the baseboard management controller to avoid reversed cable insertion.
This effectively prevents cables from being inserted incorrectly, reduces quality accidents caused by human error, and ensures that cables are inserted correctly.
Smart Images

Figure CN115129559B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of cable connection technology, and in particular to a cable connection detection method, apparatus, equipment and storage medium. Background Technology
[0002] Most server systems use 2-port backplanes. The uplink interface of the 2-port backplane is connected to the controller interface via a cable. However, the uplink interface of the 2-port backplane only has relevant silkscreen markings on the disk slots, and the cables also only have simple silkscreen markings, without any corresponding foolproof design. As a result, operators on the production line can easily plug the cables in backwards, causing disk sequence confusion.
[0003] In traditional implementations, a controller similar to a redundant RAID card is typically used to position the corresponding hard drive indicator lights on the two-port backplane. The programmable logic devices on the two-port backplane issue the corresponding indicator light lighting operation. However, in the current testing environment, operators cannot ensure 100% correct cable connections, and the testing system cannot intercept machines with reversed cables. Therefore, it is uncertain whether the corresponding hard drive indicator light is lit. There is no verification operation to confirm the one-to-one correspondence between indicator lights and hard drives, which leads to situations where incorrect lighting occurs due to reversed cable connections. Summary of the Invention
[0004] Based on this, this application provides a cable connection detection method, apparatus, device, and storage medium to avoid reversed cable insertion and reduce quality accidents caused by human error.
[0005] Firstly, a cable connection detection method is provided. This method is applied to a cable detection system, which includes a backplane, a control unit connected via a cable and an uplink interface of the backplane, and a first hard drive and a second hard drive correspondingly connected to downlink interfaces of the backplane. The uplink and downlink interfaces of the backplane correspond to each other. The backplane includes programmable logic devices. The method includes:
[0006] The programmable logic device obtains the first hard disk light-up command and lights up the light corresponding to the first hard disk position according to the first hard disk light-up command;
[0007] The programmable logic device detects the read and write signals of the first and second hard drives in real time;
[0008] If a read / write signal of the first hard drive is detected within a preset time and the light corresponding to the first hard drive position is lit, it is determined that the cable plugged into the uplink interface on the backplane is inserted correctly.
[0009] If a read / write signal for the second hard drive is detected within a preset time but the light corresponding to the first hard drive is on, it is determined that the cable plugged into the uplink interface on the backplane is incorrectly inserted.
[0010] According to one achievable method in an embodiment of this application, the method further includes:
[0011] If no read / write signal is detected from either the first or second hard drive within a preset time, but the light corresponding to the first hard drive is lit, it is determined that the cable of the uplink interface on the corresponding backplane is not inserted.
[0012] According to one achievable embodiment of this application, the cable detection system further includes a substrate management controller; before the step of the programmable logic device acquiring a first hard disk illumination command and illuminating the lamp corresponding to the first hard disk position according to the first hard disk illumination command, the system includes:
[0013] The programmable logic device acquires cable connection detection commands issued by the baseboard management controller via the I2C bus;
[0014] Enter cable connection test mode based on cable connection detection command.
[0015] According to one possible implementation method in the embodiments of this application, the control unit includes an independent hard disk redundant array card or an integrated southbridge, and the first hard disk light-up command is issued by the cable detection system through the independent hard disk redundant array card or the integrated southbridge.
[0016] According to one possible implementation method in an embodiment of this application, the read / write signals of the first hard disk and the second hard disk are generated by the cable detection system through read / write operations on the first hard disk and the second hard disk, and the generated read / write signals are returned to the programmable logic device.
[0017] According to one achievable method in an embodiment of this application, the method further includes:
[0018] After confirming that the cable to the uplink interface plugged into the backplane is correctly inserted, the programmable logic device notifies the cable detection system that the test has passed via the baseboard management controller; and,
[0019] When the programmable logic device determines that the cable to the uplink interface of the backplane is incorrectly inserted or that the cable to the corresponding uplink interface of the backplane is not inserted, it notifies the cable detection system of test failure through the baseboard management controller.
[0020] According to one achievable method in an embodiment of this application, the method further includes:
[0021] After determining whether the test passes or fails, the baseboard management controller will log the cable insertion status corresponding to the uplink interface of the backplane to instruct staff to make changes based on the log. The insertion status includes one of the following: inserted correctly, inserted incorrectly, or not inserted.
[0022] Secondly, a cable connection detection device is provided for use in a cable detection system. The cable detection system includes a backplane, a control unit connected to an uplink interface of the backplane via a cable, and a first hard drive and a second hard drive correspondingly connected to a downlink interface of the backplane. The uplink and downlink interfaces of the backplane correspond to each other. The backplane includes programmable logic devices. The device is disposed on the programmable logic devices and includes:
[0023] The instruction acquisition module is used by the programmable logic device to acquire the first hard disk light-up instruction and light up the corresponding light at the first hard disk position according to the first hard disk light-up instruction;
[0024] The read / write signal acquisition module is used for real-time detection of read / write signals of the first and second hard drives by the programmable logic device;
[0025] The first detection module is used to determine that the cable plugged into the uplink interface on the backplane is correctly inserted if a read / write signal of the first hard drive is detected within a preset time and the light corresponding to the first hard drive position is lit.
[0026] The second detection module is used to determine that the cable plugged into the uplink interface on the backplane is incorrectly inserted if a read / write signal of the second hard drive is detected within a preset time but the light corresponding to the first hard drive position is lit.
[0027] Thirdly, a computer device is provided, comprising:
[0028] At least one processor; and
[0029] A memory that is communicatively connected to at least one processor; wherein,
[0030] The memory stores computer instructions that can be executed by at least one processor to enable the at least one processor to perform the methods involved in the first aspect above.
[0031] Fourthly, a computer-readable storage medium is provided, having stored thereon computer instructions, characterized in that the computer instructions are used to cause a computer to perform the methods involved in the first aspect above.
[0032] According to the technical content provided in the embodiments of this application, firstly, the programmable logic device obtains the first hard drive light-up command and lights up the light corresponding to the first hard drive position according to the first hard drive light-up command; then, the programmable logic device detects the read / write signals of the first hard drive and the second hard drive in real time; finally, if the read / write signal of the first hard drive is detected within a preset time and the light corresponding to the first hard drive position is lit, it is determined that the cable plugged into the uplink interface of the backplane is correctly inserted; if the read / write signal of the second hard drive is detected within a preset time but the light corresponding to the first hard drive position is lit, it is determined that the cable plugged into the uplink interface of the backplane is incorrectly inserted. Through the above operation, when the read / write signal of the first hard drive is detected and the light corresponding to the first hard drive position is lit, it can be determined that the cable plugged into the uplink interface of the backplane is correctly inserted; thereby achieving the effect of avoiding reversed cable insertion and reducing quality accidents caused by human operation. Attached Figure Description
[0033] Figure 1 This is a system architecture diagram of a cable connection detection method in one embodiment;
[0034] Figure 2 This is a flowchart illustrating a cable connection detection method in one embodiment;
[0035] Figure 3 This is a schematic diagram of a preferred process for a cable connection detection method in one embodiment;
[0036] Figure 4 This is a structural block diagram of a cable connection detection device in one embodiment;
[0037] Figure 5 This is a schematic structural diagram of a computer device in one embodiment. Detailed Implementation
[0038] The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the scope of the present application.
[0039] For ease of understanding, the system to which this application applies will first be described. The cable connection detection method provided in this application can be applied to, for example... Figure 1The cable detection system architecture shown includes: a control unit, a baseboard management controller, a backplane, a first hard drive, and a second hard drive. The control unit includes a SATA0 interface and a SATA1 interface. The backplane includes a SATA0 upstream interface, a SATA1 upstream interface, a SATA0 downstream interface, and a SATA1 downstream interface. The SATA0 interface of the control unit is connected to the SATA0 upstream interface of the backplane via one cable, and the SATA1 interface of the control unit is connected to the SATA1 upstream interface of the backplane via another cable. The first hard drive is plugged into the SATA0 downstream interface of the backplane, and the second hard drive is plugged into the SATA1 downstream interface of the backplane. Signals are transmitted between the SATA0 upstream interface and its corresponding SATA0 downstream interface of the backplane. Signals are also transmitted between the SATA1 upstream interface and its corresponding SATA1 downstream interface of the backplane. Simultaneously, the backplane is equipped with programmable logic devices, and both the control unit and the baseboard management controller are communicatively connected to these programmable logic devices.
[0040] Figure 2 This is a flowchart illustrating a cable connection detection method provided in an embodiment of this application. The method can be performed by, for example... Figure 1 The programmable logic devices in the system shown execute. For example... Figure 2 As shown, the method may include the following steps:
[0041] Step 201: The programmable logic device obtains the first hard disk light-up command and lights up the light corresponding to the first hard disk position according to the first hard disk light-up command.
[0042] Among them, the programmable logic device can be a CPLD (Complex Programmable Logic Device), which is short for Complex PLD. It is a digital integrated circuit that users can construct logic functions according to their own needs. Its basic design method is to use an integrated development software platform to generate corresponding target files using schematic diagrams, hardware description languages, etc., and then transfer the code to the target chip through a download cable ("in-system" programming) to realize the designed digital system.
[0043] Here, the programmable logic devices are located on the backplane, which is a 2-port SATA backplane. As is well known, backplanes have always been specialized products in the PCB manufacturing industry. Backplanes are thicker and heavier than regular PCBs, and correspondingly have a larger heat capacity. Given the slower cooling rate of the backplane, the reflow oven needs to be longer, and forced air cooling is required at the exit to reduce the backplane temperature to a safe operating level.
[0044] Specifically, the programmable logic device (PLC) receives the first hard drive LED activation command and illuminates the corresponding LED at the first hard drive's location based on the command. The first hard drive LED activation command is the command to illuminate the indicator light at the corresponding location of the first hard drive. Since the two-port backplane connects to both the first and second hard drives, a first hard drive indicator light (Locate0) is set for the first hard drive, and a second hard drive indicator light (Locate1) is set for the second hard drive. Here, the first hard drive can be a SATA0 hard drive, and the second hard drive can be a SATA1 hard drive; the corresponding Locate0 LED is illuminated based on the first hard drive LED activation command.
[0045] Step 203: The programmable logic device detects the read / write signals of the first hard disk and the second hard disk in real time; if the read / write signal of the first hard disk is detected, proceed to step 205; if the read / write signal of the second hard disk is detected, proceed to step 207.
[0046] Here, the programmable logic device detects the read and write signals of the first and second hard drives in real time, and determines whether the cables are correctly plugged into the backplane based on the read and write signals of the first and second hard drives.
[0047] Step 205: If the read / write signal of the first hard drive is detected within a preset time and the light corresponding to the first hard drive position is lit, it is confirmed that the cable plugged into the uplink interface on the backplane is inserted correctly.
[0048] The preset time can be 5 seconds.
[0049] Here, the programmable logic device monitors the read and write signals of the first and second hard drives in real time. If the read and write signal of the first hard drive is detected within 5 seconds and the corresponding light of the first hard drive is lit, it is determined that the cable of the SATA0 upstream interface plugged into the back panel is inserted correctly; naturally, the cable of the SATA1 upstream interface plugged into the back panel is also inserted correctly.
[0050] Step 207: If a read / write signal for the second hard drive is detected within a preset time but the light corresponding to the first hard drive is on, it is determined that the cable plugged into the uplink interface on the backplane is inserted incorrectly.
[0051] Here, the programmable logic device monitors the read / write signals of the first and second hard drives in real time. If the read / write signal of the second hard drive is detected within 5 seconds and the corresponding light of the first hard drive is lit, it is determined that the cable plugged into the SATA0 upstream interface on the back panel is inserted incorrectly. Naturally, the cable plugged into the SATA1 upstream interface on the back panel is also inserted incorrectly, indicating that it is plugged in backwards.
[0052] As can be seen from the embodiments of this application, firstly, the programmable logic device obtains the first hard drive lighting command and lights up the light corresponding to the first hard drive position according to the first hard drive lighting command; then, the programmable logic device detects the read / write signals of the first hard drive and the second hard drive in real time; finally, if the read / write signal of the first hard drive is detected within a preset time and the light corresponding to the first hard drive position is lit, it is determined that the cable plugged into the uplink interface of the backplane is correctly inserted; if the read / write signal of the second hard drive is detected within a preset time but the light corresponding to the first hard drive position is lit, it is determined that the cable plugged into the uplink interface of the backplane is incorrectly inserted. Through the above operations, when the read / write signal of the first hard drive is detected and the light corresponding to the first hard drive position is lit, it can be determined that the cable plugged into the uplink interface of the backplane is correctly inserted; thereby achieving the effect of avoiding reversed cable insertion and reducing quality accidents caused by human operation.
[0053] In some embodiments, the method further includes:
[0054] If no read / write signal is detected from either the first or second hard drive within a preset time, but the light corresponding to the first hard drive is lit, it is determined that the cable of the backplane's uplink interface is not inserted.
[0055] Specifically, if the programmable logic device does not detect read / write signals from either the first or second hard drive within 5 seconds, but the light corresponding to the first hard drive is on, it determines that the cables for the SATA0 and SATA1 upstream interfaces on the corresponding backplane are not inserted, thus instructing the staff to insert the cables into the backplane in a timely manner.
[0056] In some embodiments, before step 201 above, namely "the programmable logic device obtains the first hard disk light-up command and lights up the light corresponding to the first hard disk position according to the first hard disk light-up command", the following steps are included:
[0057] The programmable logic device receives cable connection detection commands issued by the baseboard management controller via the I2C bus; and enters the cable connection test mode based on the cable connection detection commands.
[0058] Here, the baseboard management controller can be a BMC (Baseboard Management Controller), also called an execution server remote management controller. It can perform operations such as firmware upgrades and viewing machine devices when the machine is not powered on. It also provides basic IPMI v1.5 (Intelligent Platform Management Interface) remote manageability in terms of secure remote reboot, secure power-on, LAN (Local Area Network) warnings, and system health monitoring.
[0059] Specifically, the baseboard management controller sends cable connection detection commands to the programmable logic device (PLD) via the I2C (Inter-Integrated Circuit) bus. Upon receiving the command, the PLD enters the cable connection test mode. It should be noted that the I2C bus is used here because it occupies very little space and processes relatively little data, thus saving space while meeting data transmission requirements.
[0060] In some embodiments, the control unit includes a standalone redundant hard disk array card or an integrated southbridge, and the first hard disk light-up command is issued by the cable detection system through the standalone redundant hard disk array card or the integrated southbridge.
[0061] Here, the control unit includes either a Redundant Array of Independent Disks (RAID) card or an integrated southbridge. The RAID card can be a RAID (Redundant Array of Independent Disks) card, often simply referred to as a disk array. In short, RAID is a disk subsystem composed of multiple independent high-performance disk drives, providing higher storage performance and data redundancy than a single disk. RAID technology combines multiple hard drives into a larger, more secure disk array, divides data into multiple segments and stores them on different physical hard drives, and then uses distributed read / write technology to improve the overall performance of the disk array. Simultaneously, it synchronizes multiple copies of important data to different physical hard drives, thus achieving excellent data redundancy and backup.
[0062] The integrated southbridge can be a PCH (Platform Controller Hub), which replaces the previous ICH10 in mainstream mobile and desktop Intel Core i7 computers. The PCH can be directly connected to the Nehalemel P55.
[0063] In one feasible implementation, the control unit can be a standalone redundant hard drive RAID card, which includes a SATA0 interface and a SATA1 interface. The SATA0 interface and SATA1 interface correspond to the SATA0 upstream interface and SATA1 upstream interface on the backplane, respectively. With both cables correctly connected, one end of one cable is plugged into the SATA0 interface and the other end into the SATA0 upstream interface; one end of the other cable is plugged into the SATA1 interface and the other end into the SATA1 upstream interface, thus connecting the standalone redundant hard drive RAID card to the backplane.
[0064] Both the independent hard disk redundant array card and the backplane are equipped with SGPIO (General-purpose input / output) interfaces. The first hard disk light-up command is issued by the cable detection system through the independent hard disk redundant array card. The independent hard disk redundant array card sends the first hard disk light-up command to the programmable logic device through the SGPIO interface. After receiving the first hard disk light-up command through the SGPIO interface, the programmable logic device analyzes it and executes the operation of lighting up the indicator light at the corresponding first hard disk position.
[0065] In another feasible approach, the control unit can be an integrated southbridge, which includes SATA0 and SATA1 interfaces. These interfaces correspond to the SATA0 and SATA1 upstream interfaces on the backplane, respectively. The cable connection between the integrated southbridge and the backplane is the same as that of a standalone RAID card, and will not be repeated here.
[0066] The integrated southbridge also has an SGPIO interface. The first hard drive light-up command is issued by the cable detection system through the integrated southbridge. The integrated southbridge sends the first hard drive light-up command to the programmable logic device (PLD) through the SGPIO interface. After receiving the first hard drive light-up command through the SGPIO interface, the PLD analyzes it and executes the operation of lighting up the indicator light at the corresponding position of the first hard drive.
[0067] In some embodiments, the read / write signals of the first hard disk and the second hard disk are generated by the cable detection system through read / write operations on the first hard disk and the second hard disk, and the generated read / write signals are returned to the programmable logic device.
[0068] Here, the cable detection system generates corresponding read / write signals for the first and second hard drives by performing read / write operations on them. After generating these signals, the system returns them to the programmable logic device (PLD), allowing the PLD to detect the read / write signals in real time. It's important to note that the cable detection system can only detect the read / write signals of the first and second hard drives after the control unit and backplane are connected via cables. The control unit transmits the corresponding signal to the backplane's uplink interface, which in turn transmits it to its downlink interface, which then transmits it to the first and second hard drives. Furthermore, once the cable detection system has performed read / write operations on the first and second hard drives, it prohibits further read / write operations on them at other times.
[0069] In some embodiments, after determining that the cable plugged into the uplink interface of the backplane is correctly inserted, the programmable logic device notifies the cable detection system that the test has passed through the baseboard management controller; and after determining that the cable plugged into the uplink interface of the backplane is incorrectly inserted or that the cable of the corresponding uplink interface of the backplane is not inserted, the programmable logic device notifies the cable detection system that the test has failed through the baseboard management controller.
[0070] In one feasible approach, after the programmable logic device determines that the cable plugged into the uplink interface on the backplane is correctly inserted, the board management controller notifies the cable detection system via IPMI (Intelligent Platform Management Interface) command that the cable sequence is correct and the test has passed.
[0071] In one feasible approach, after the programmable logic device determines that the cable insertion error is incorrect at the uplink interface plugged into the backplane, the board management controller notifies the cable detection system of a disk sequence error via an IPMI command, and the test fails.
[0072] In one feasible approach, after the programmable logic device determines that the cable of the uplink interface of the corresponding backplane is not inserted, the baseboard management controller notifies the cable detection system via an IPMI command that the cable is not inserted and the test fails.
[0073] In some embodiments, after determining whether a test passes or fails, the baseboard management controller logs the cable insertion status corresponding to the uplink interface of the backplane to instruct staff to make changes based on the log.
[0074] The insertion status includes one of the following: insertion successful, insertion error, or no insertion.
[0075] Here, regardless of whether the test passes or fails, the baseboard management controller will log the cable insertion status corresponding to the uplink interface of the backplane. If the test passes, the baseboard management controller will log that the cable corresponding to the uplink interface of the backplane is correctly inserted; if the test fails, the baseboard management controller will log that the cable corresponding to the uplink interface of the backplane is incorrectly inserted or not inserted, so as to instruct the staff to make changes according to the log.
[0076] Based on the implementation methods in the above embodiments, the following will be combined with... Figure 3 A preferred method flow provided in an embodiment of this application will be described by way of example. For instance... Figure 3 As shown, the method may include the following steps:
[0077] Step 301: The programmable logic device obtains the cable connection detection command issued by the board management controller through the I2C bus.
[0078] Step 302: Enter the cable connection test mode based on the cable connection detection command.
[0079] Step 303: The programmable logic device obtains the first hard disk light-up command and lights up the light corresponding to the first hard disk position according to the first hard disk light-up command.
[0080] Step 304: The programmable logic device detects the read / write signals of the first hard disk and the second hard disk in real time; if the read / write signal of the first hard disk is detected, then step 305 is executed; if the read / write signal of the second hard disk is detected, then step 307 is executed; if neither the first hard disk nor the second hard disk is detected, then step 308 is executed.
[0081] Step 305: If the read / write signal of the first hard drive is detected within a preset time and the light corresponding to the first hard drive position is lit, it is confirmed that the cable plugged into the uplink interface on the backplane is inserted correctly.
[0082] Step 306: After confirming that the cable plugged into the uplink interface on the backplane is correctly inserted, the programmable logic device notifies the cable detection system that the test has passed through the baseboard management controller.
[0083] Step 307: If a read / write signal for the second hard drive is detected within a preset time but the light corresponding to the first hard drive is on, it is determined that the cable plugged into the uplink interface on the backplane is inserted incorrectly.
[0084] Step 308: If no read / write signal is detected from either the first hard drive or the second hard drive within a preset time, but the light corresponding to the first hard drive is on, then it is determined that the cable of the uplink interface of the corresponding backplane is not inserted.
[0085] Step 309: After determining that the cable of the uplink interface plugged into the backplane is incorrectly inserted or the cable of the corresponding uplink interface of the backplane is not inserted, the programmable logic device notifies the cable detection system of test failure through the baseboard management controller.
[0086] Step 310: After determining whether the test passes or fails, the baseboard management controller will log the cable insertion status corresponding to the uplink interface of the backplane to instruct the staff to make changes based on the log.
[0087] It should be understood that, although Figures 2-3 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated in this application, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Furthermore, Figures 2-3At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
[0088] Figure 4 This application provides a schematic diagram of a cable connection detection device, applied to a cable detection system. The cable detection system includes a backplane, a control unit connected to the backplane via a cable and an uplink interface, and a first hard drive and a second hard drive correspondingly connected to downlink interfaces on the backplane. The uplink and downlink interfaces on the backplane correspond to each other. The backplane includes programmable logic devices. This device can be configured in... Figure 1 In the programmable logic device of the system shown, the function is to perform actions such as Figures 2-3 The method flow is shown below. Figure 4 As shown, the device may include: an instruction acquisition module 401, a read / write signal acquisition module 403, a first detection module 405, and a second detection module 407, wherein the main functions of each component module are as follows:
[0089] The instruction acquisition module 401 is used for the programmable logic device to acquire the first hard disk light-up instruction and to light up the light corresponding to the first hard disk position according to the first hard disk light-up instruction;
[0090] The read / write signal acquisition module 403 is used for the programmable logic device to detect the read / write signals of the first hard disk and the second hard disk in real time.
[0091] The first detection module 405 is used to determine that the cable plugged into the uplink interface of the backplane is correctly inserted if a read / write signal of the first hard disk is detected within a preset time and the light corresponding to the position of the first hard disk is lit.
[0092] The second detection module 407 is used to determine that the cable plugged into the uplink interface on the backplane is incorrectly inserted if a read / write signal of the second hard drive is detected within a preset time but the light corresponding to the first hard drive position is lit.
[0093] In some embodiments, the device is further used for:
[0094] If no read / write signal is detected from either the first or second hard drive within a preset time, but the light corresponding to the first hard drive is lit, it is determined that the cable of the uplink interface on the corresponding backplane is not inserted.
[0095] In some embodiments, the cable detection system of the device further includes a substrate management controller; specifically, it is also used for:
[0096] The programmable logic device acquires cable connection detection commands issued by the baseboard management controller via the I2C bus;
[0097] Enter cable connection test mode based on cable connection detection command.
[0098] In some embodiments, the control unit of the device includes a standalone redundant hard disk array card or an integrated southbridge, and the first hard disk light-up command is issued by the cable detection system through the standalone redundant hard disk array card or the integrated southbridge.
[0099] In some embodiments, the read / write signals of the first and second hard drives of the device are generated by the cable detection system through read / write operations on the first and second hard drives, and the generated read / write signals are returned to the programmable logic device.
[0100] In some embodiments, the device is further used for:
[0101] After confirming that the cable to the uplink interface plugged into the backplane is correctly inserted, the programmable logic device notifies the cable detection system that the test has passed via the baseboard management controller; and,
[0102] When the programmable logic device determines that the cable to the uplink interface of the backplane is incorrectly inserted or that the cable to the corresponding uplink interface of the backplane is not inserted, it notifies the cable detection system of test failure through the baseboard management controller.
[0103] In some embodiments, the device is further used for:
[0104] After determining whether the test passes or fails, the baseboard management controller will log the cable insertion status corresponding to the uplink interface of the backplane to instruct staff to make changes based on the log; the insertion status includes one of the following: inserted correctly, inserted incorrectly, not inserted.
[0105] The same or similar parts among the above embodiments can be referred to interchangeably. Each embodiment focuses on describing the differences from other embodiments. In particular, the device embodiments are basically similar to the method embodiments, so the description is relatively simple, and the relevant parts can be referred to the description of the method embodiments.
[0106] It should be noted that the embodiments of this application may involve the use of user data. In practical applications, user-specific personal data may be used in the scheme described herein within the scope permitted by applicable laws and regulations, provided that it complies with the applicable laws and regulations of the country (e.g., explicit consent from the user, actual notification to the user, explicit authorization from the user, etc.).
[0107] According to embodiments of this application, this application also provides a computer device and a computer-readable storage medium.
[0108] like Figure 5 The diagram shown is a block diagram of a computer device according to an embodiment of this application. The term "computer device" is intended to represent various forms of digital computers or mobile devices. The digital computer may include a desktop computer, a portable computer, a workbench, a personal digital assistant, a server, a mainframe computer, and other suitable computers. The mobile device may include a tablet computer, a smartphone, a wearable device, etc.
[0109] like Figure 5 As shown, device 500 includes a computing unit 501, a ROM 502, a RAM 503, a bus 504, and an input / output (I / O) interface 505. The computing unit 501, ROM 502, and RAM 503 are interconnected via the bus 504. The input / output (I / O) interface 505 is also connected to the bus 504.
[0110] The computing unit 501 can execute various processes in the method embodiments of this application according to computer instructions stored in the read-only memory (ROM) 502 or computer instructions loaded from the storage unit 508 into the random access memory (RAM) 503. The computing unit 501 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. The computing unit 501 can include, but is not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. In some embodiments, the methods provided in the embodiments of this application can be implemented as computer software programs, which are tangibly contained in a computer-readable storage medium, such as the storage unit 508.
[0111] RAM 503 can also store various programs and data required for the operation of device 500. Part or all of the computer program can be loaded and / or installed on device 500 via ROM 502 and / or communication unit 509.
[0112] The input unit 506, output unit 507, storage unit 508, and communication unit 509 in device 500 can be connected to I / O interface 505. The input unit 506 can be, for example, a keyboard, mouse, touchscreen, or microphone; the output unit 507 can be, for example, a display, speaker, or indicator light. Device 500 can exchange information and data with other devices through the communication unit 509.
[0113] It should be noted that the device may also include other components necessary for normal operation. It may also include only the components necessary for implementing the solution of this application, without necessarily including all the components shown in the figures.
[0114] Various implementations of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SOCs), payload programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof.
[0115] The computer instructions used to implement the methods of this application may be written in any combination of one or more programming languages. These computer instructions may be provided to the computing unit 501 such that when executed by the computing unit 501, such as a processor, the computer instructions cause the execution of the steps involved in the embodiments of the methods of this application.
[0116] The computer-readable storage medium provided in this application can be a tangible medium that can contain or store computer instructions for performing the steps involved in the method embodiments of this application. The computer-readable storage medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, and other forms of storage media.
[0117] The specific embodiments described above do not constitute a limitation on the scope of protection of this application. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A cable plugging detection method, applied to a cable detection system, the cable detection system comprising a backplane, a control unit connected to an upstream interface of the backplane through a cable, and a first hard disk and a second hard disk plugged into a downstream interface of the backplane corresponding to the upstream interface of the backplane; wherein, The backboard comprises an editable logic device, and the method comprises: The editable logic device acquires a cable insertion detection instruction issued by a baseboard management controller through an I2C bus and enters a cable insertion test mode based on the instruction; In the cable insertion test mode, the editable logic device acquires a first hard disk light-on instruction and lights up a lamp corresponding to a first hard disk position according to the first hard disk light-on instruction; Before the control unit and the backboard establish a communication connection through a cable, the editable logic device detects read-write signals of the first hard disk and the second hard disk in real time; the read-write signals of the first hard disk and the second hard disk are generated by the cable detection system through read-write operations on the first hard disk and the second hard disk and returned to the editable logic device; after the read-write operations are completed, the read-write operations on the first hard disk and the second hard disk are prohibited; If the read-write signals of the first hard disk are detected within a preset time and the lamp corresponding to the first hard disk position is on, it is determined that a cable inserted into an uplink interface of the backboard is inserted correctly; If the read-write signals of the second hard disk are detected within a preset time but the lamp corresponding to the first hard disk position is on, it is determined that a cable inserted into the uplink interface of the backboard is inserted incorrectly; If no read-write signals of the first hard disk and the second hard disk are detected within a preset time but the lamp corresponding to the first hard disk position is on, it is determined that a cable corresponding to the uplink interface of the backboard is not inserted.
2. The method of claim 1, wherein, The control unit comprises a redundant array of independent hard disks card or an integrated south bridge, and the first hard disk light-on instruction is issued by the cable detection system through the redundant array of independent hard disks card or the integrated south bridge.
3. The method of claim 1, wherein, The method further comprises: After determining that the cable inserted into the uplink interface of the backboard is inserted correctly, the editable logic device informs the cable detection system of a test pass through the baseboard management controller; and After determining that the cable inserted into the uplink interface of the backboard is inserted incorrectly or that the cable corresponding to the uplink interface of the backboard is not inserted, the editable logic device informs the cable detection system of a test failure through the baseboard management controller.
4. The method of claim 3, wherein, The method further comprises: After determining that the test is passed or failed, the baseboard management controller records a log corresponding to an insertion state of the cable corresponding to the uplink interface of the backboard to instruct a worker to make changes according to the log, wherein the insertion state comprises one of the following: correct insertion, incorrect insertion, and non-insertion. 5.A hard disk cable plug detection device, applied to a cable detection system, the cable detection system comprising a backplane, a control unit connected to uplink interfaces of the backplane through cables, and a first hard disk and a second hard disk corresponding to downlink interfaces of the backplane, the uplink interfaces of the backplane and the downlink interfaces corresponding to each other; wherein, The backboard comprises an editable logic device; and the device is arranged in the editable logic device, and the device comprises: An acquisition instruction module is configured to acquire a cable insertion detection instruction issued by a baseboard management controller through an I2C bus and enter a cable insertion test mode based on the instruction; in the cable insertion test mode, the editable logic device acquires a first hard disk light-on instruction and lights up a lamp corresponding to a first hard disk position according to the first hard disk light-on instruction; The read-write signal acquisition module is configured to, before the control unit and the backboard establish a communication connection through a cable, the editable logic device detects read-write signals of the first hard disk and the second hard disk in real time, the read-write signals of the first hard disk and the second hard disk are generated by the cable detection system through read-write operations on the first hard disk and the second hard disk, and the generated read-write signals are returned to the editable logic device; after the read-write operation is completed, the read-write operation on the first hard disk and the second hard disk is prohibited. The first detection module is configured to, if the read-write signals of the first hard disk are detected within a preset time and the light corresponding to the position of the first hard disk is on, determine that the cable inserted into the uplink interface of the backboard is inserted correctly. The second detection module is configured to, if the read-write signals of the second hard disk are detected within a preset time but the light corresponding to the position of the first hard disk is on, determine that the cable inserted into the uplink interface of the backboard is inserted incorrectly; if none of the read-write signals of the first hard disk and the second hard disk is detected within a preset time but the light corresponding to the position of the first hard disk is on, determine that the cable corresponding to the uplink interface of the backboard is not inserted.
6. A computer device, comprising: at least one processor; and a memory in communication connection with the at least one processor; wherein the memory stores computer instructions executable by the at least one processor, and the computer instructions are executed by the at least one processor to enable the at least one processor to execute the method of any one of claims 1-4.
7. A computer readable storage medium having stored thereon computer instructions, wherein, The computer instructions are used to enable the computer to execute the method of any one of claims 1 to 4.
Citation Information
Patent Citations
Cable self-checking method and system for storage system, and server
CN109753396A
Disk detection system, method and device and storage medium
CN112463475A