An information processing method, an electronic device, and a computer-readable storage medium
The target type of the electronic device backplane is determined through the target adapter and the slot information is obtained, which solves the problems of low wiring efficiency and low accuracy in the prior art, and achieves efficient and accurate automated detection.
Patent Information
- Application Number
- CN202210272674.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-18
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2042-03-18
AI Technical Summary
In the prior art, when detecting whether the wiring between the electronic device adapter and the backplane is accurate, the efficiency is low and the detection results are inaccurate.
The target type of the backplane to be detected is determined through the target adapter, the slot information of the hard disk slot is obtained based on the target type, and the target correspondence relationship is used to determine whether the wiring between the adapter and the backplane is accurate.
It improves detection efficiency and accuracy, avoids the problem of mis-detection of users manually plugging and unplugging hard disks, and realizes automatic detection.
Smart Images

Figure CN114756412B_ABST
Abstract
Description
Technical Field
[0001] This application relates to information processing technology in the field of information processing, and in particular, to an information processing method, an electronic device, and a computer-readable storage medium. Background Art
[0002] During the production process of an electronic device, it is a very crucial step to detect whether the wiring between the adapter and the backplane on the electronic device is accurate. In related technologies, when detecting, users usually need to insert a test hard disk into the backplane and read the relevant information of the test hard disk through the adapter to determine whether the wiring between the adapter and the backplane is accurate. However, related technologies require users to manually plug and unplug the test hard disk to detect whether the wiring between the adapter and the backplane is accurate, with low efficiency and inaccurate detection results. Summary of the Invention
[0003] To solve the above technical problems, embodiments of this application are expected to provide an information processing method, an electronic device, and a computer-readable storage medium, which solve the problems of low efficiency and inaccurate detection results when detecting whether the wiring between the adapter and the backplane is accurate in related technologies, and improve the detection efficiency and the accuracy of the detection results.
[0004] The technical solution of this application is implemented as follows:
[0005] An information processing method, the method includes:
[0006] Determine the target type of the backplane to be detected through a target adapter; wherein, no hard disk is installed on the backplane to be detected;
[0007] Based on the target type, determine the slot information of the hard disk slots on the backplane to be detected;
[0008] Based on the slot information and the target correspondence relationship, determine whether the wiring between the target adapter and the backplane to be detected is accurate; wherein, the target correspondence relationship is the correspondence relationship between the backplane and the slots.
[0009] In the above solution, the determining the target type of the backplane to be detected through a target adapter includes:
[0010] When it is determined that the target character in the target adapter is the first character, determine that the target type is the first type;
[0011] When it is determined that the target character is the second character, determine that the target type is the second type.
[0012] In the above solution, the determining the slot information of the hard disk slots on the backplane to be detected based on the target type includes:
[0013] Detect the to-be-detected backplane based on the target type, and determine whether there is a wiring connection between the target adapter and the to-be-detected backplane and whether the to-be-detected backplane is a valid backplane;
[0014] When it is determined that there is a wiring connection between the target adapter and the to-be-detected backplane and the to-be-detected backplane is a valid backplane, obtain the starting slot information of the starting hard disk slot on the to-be-detected backplane based on the target type.
[0015] In the above solution, the detecting the to-be-detected backplane based on the target type, and determining whether there is a wiring connection between the target adapter and the to-be-detected backplane and whether the to-be-detected backplane is a valid backplane includes:
[0016] When the target type is the first type, read the target information characterizing the identity of the to-be-detected backplane;
[0017] When the target information is read, determine that there is a wiring connection between the target adapter and the to-be-detected backplane and the to-be-detected backplane is the valid backplane.
[0018] In the above solution, the obtaining the starting slot information of the starting hard disk slot on the to-be-detected backplane based on the target type when it is determined that there is a wiring connection between the target adapter and the to-be-detected backplane includes:
[0019] When it is determined that there is a wiring connection between the target adapter and the to-be-detected backplane and the to-be-detected backplane is the valid backplane, obtain the starting slot information through the communication between the target adapter and the to-be-detected backplane.
[0020] In the above solution, the detecting the to-be-detected backplane based on the target type, and determining whether there is a wiring connection between the target adapter and the to-be-detected backplane and whether the to-be-detected backplane is a valid backplane includes:
[0021] When the target type is the second type, obtain the data stream during the operation of the to-be-detected backplane;
[0022] Determine the first value of the first field from the data stream; wherein, the first field is the field characterizing the operation state of the to-be-detected backplane;
[0023] When the first value matches the target value, determine that there is a wiring connection between the target adapter and the to-be-detected backplane and the to-be-detected backplane is the valid backplane.
[0024] In the above solution, when it is determined that there is a wiring connection between the target adapter and the backplane to be detected, and the backplane to be detected is a valid backplane, obtaining the starting slot information of the starting hard disk slot on the backplane to be detected based on the target type includes:
[0025] When it is determined that there is a wiring connection between the target adapter and the backplane to be detected, and the backplane to be detected is the valid backplane, determining a second value of a second field from the data stream; wherein, the second field is a field characterizing the slot information of the hard disk slots on the backplane to be detected;
[0026] Based on the second value, determining the starting slot information.
[0027] In the above solution, determining whether the wiring between the target adapter and the backplane to be detected is accurate based on the slot information and the target correspondence includes:
[0028] Based on the identifier of the backplane to be detected and the target correspondence, determining the target slot information corresponding to the backplane to be detected;
[0029] When the slot information matches the target slot information, determining that the wiring between the target adapter and the backplane to be detected is accurate;
[0030] When the slot information does not match the target slot information, determining that the wiring between the target adapter and the backplane to be detected is inaccurate.
[0031] An electronic device, the device includes: a processor, a memory, and a communication bus;
[0032] The communication bus is used to implement a communication connection between the processor and the memory;
[0033] The processor is used to execute an information processing program in the memory to implement the following steps:
[0034] Determining the target type of the backplane to be detected through a target adapter; wherein, no hard disk is installed on the backplane to be detected;
[0035] Based on the target type, determining the slot information of the hard disk slots on the backplane to be detected;
[0036] Based on the slot information and the target correspondence, determining whether the wiring between the target adapter and the backplane to be detected is accurate; wherein, the target correspondence is a correspondence between the backplane and the slots.
[0037] A computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the above information processing method.
[0038] The information processing method, electronic device, and computer-readable storage medium provided by the embodiments of the present application determine the target type of the backplane to be detected through a target adapter; wherein, no hard disk is installed on the backplane to be detected; based on the target type, determine the slot information of the hard disk slots on the backplane to be detected; based on the slot information and the target correspondence, determine whether the wiring between the target adapter and the backplane to be detected is accurate; wherein, the target correspondence is the correspondence between the backplane and the slots; in this way, the slot information of the hard disk slots on the backplane to be detected can be determined through the target type of the backplane to be detected, and according to the slot information and the target correspondence, it can be determined whether the wiring between the target adapter and the backplane to be detected is accurate, avoiding the problem of false detection when the user manually inserts a hard disk on the backplane to be detected for detection, improving the accuracy of detection; moreover, it realizes the automatic determination of whether the wiring between the target adapter and the backplane to be detected is accurate, improving the detection efficiency. Description of the Drawings
[0039] Figure 1 It is a schematic flow chart of an information processing method provided by an embodiment of the present application;
[0040] Figure 2 It is a schematic flow chart of another information processing method provided by an embodiment of the present application;
[0041] Figure 3 It is a schematic flow chart of yet another information processing method provided by an embodiment of the present application;
[0042] Figure 4 It is a schematic flow chart of an information processing method provided by another embodiment of the present application;
[0043] Figure 5 It is a schematic application scenario diagram of an information processing method provided by an embodiment of the present application;
[0044] Figure 6 It is a schematic application scenario diagram of another information processing method provided by an embodiment of the present application;
[0045] Figure 7 It is a schematic flow chart of another information processing method provided by another embodiment of the present application;
[0046] Figure 8 It is a schematic diagram for obtaining slot information in an information processing method provided by an embodiment of the present application;
[0047] Figure 9A schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners
[0048] Next, the technical solutions in the embodiments of the present application will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present application.
[0049] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0050] An embodiment of the present application provides an information processing method, which can be applied to an electronic device. Referring to Figure 1 as shown, the method includes the following steps:
[0051] Step 101: Determine the target type of the backplane to be detected through a target adapter.
[0052] Wherein, no hard disk is installed on the backplane to be detected; the target type includes at least a first type and a second type.
[0053] In an embodiment of the present application, the electronic device can obtain the target character representing the type of the backplane to be detected on the target adapter, and determine the target type of the backplane to be detected based on the target character.
[0054] In a feasible implementation manner, the first type may be Universal Backplane Management (UBM), and the second type may be Serial General Purpose Input / Output (SGPIO); the target adapter may be a Serial Attached SCSI (SAS) adapter.
[0055] Step 102: Determine the slot information of the hard disk slots on the backplane to be detected based on the target type.
[0056] In an embodiment of the present application, the backplane to be detected can be detected according to the target type, and the slot information of the hard disk slots on the backplane to be detected can be obtained. Among them, the detection methods corresponding to different types of backplanes to be detected are different. The slot information includes: the slot identifier of the hard disk slot.
[0057] Step 103: Determine whether the wiring between the target adapter and the backplane to be detected is accurate based on the slot information and the target correspondence.
[0058] Wherein, the target correspondence is the correspondence between the backplane and the slots.
[0059] In an embodiment of the present application, the target slot information corresponding to the backplane to be detected can be determined according to the target correspondence relationship, and the slot information and the target slot information are matched to obtain a matching result. When the matching result indicates that the slot information and the target slot information match, it is determined that the wiring between the target adapter and the backplane to be detected is accurate; when the matching result indicates that the slot information and the target slot information do not match, it is determined that the wiring between the target adapter and the backplane to be detected is inaccurate. Among them, the target correspondence relationship can specifically be the correspondence relationship between the backplane to be detected and the slot.
[0060] The information processing method provided by the embodiment of the present application determines the target type of the backplane to be detected through the target adapter; among them, no hard disk is installed on the backplane to be detected; based on the target type, the slot information of the hard disk slot on the backplane to be detected is determined; based on the slot information and the target correspondence relationship, it is determined whether the wiring between the target adapter and the backplane to be detected is accurate; among them, the target correspondence relationship is the correspondence relationship between the backplane and the slot; in this way, the slot information of the hard disk slot on the backplane to be detected can be determined through the target type of the backplane to be detected, and according to the slot information and the target correspondence relationship, it is determined whether the wiring between the target adapter and the backplane to be detected is accurate, avoiding the problem of misdetection when the user manually inserts a hard disk on the backplane to be detected for detection, improving the accuracy of detection; moreover, it realizes the automatic determination of whether the wiring between the target adapter and the backplane to be detected is accurate, improving the detection efficiency.
[0061] Based on the foregoing embodiment, an embodiment of the present application provides an information processing method, referring to Figure 2 as shown, the method includes the following steps:
[0062] Step 201, when the electronic device determines that the target character in the target adapter is the first character, determine that the target type is the first type.
[0063] In an embodiment of the present application, the type correspondence relationship between the target character and the backplane type is stored in the electronic device. When the target character is the first character, the target type can be determined to be the first type according to the first character and the type correspondence relationship.
[0064] In a feasible implementation manner, the first character is "high", and the first type is UBM.
[0065] Step 202, when the electronic device determines that the target character is the second character, determine that the target type is the second type.
[0066] In an embodiment of the present application, when the target character in the target adapter is the second character, the target type can be determined to be the second type according to the second character and the type correspondence relationship.
[0067] In a feasible implementation, the second character may be "low" and the second type is SGPIO.
[0068] It should be noted that step 203 may be executed after step 201 or step 202.
[0069] Step 203: The electronic device detects the to-be-detected backplane based on the target type to determine whether there is a wiring connection between the target adapter and the to-be-detected backplane and whether the to-be-detected backplane is a valid backplane.
[0070] In the embodiments of the present application, a target detection method corresponding to the target type can be determined, and based on the target detection method, the to-be-detected backplane is detected to obtain a detection result. According to the detection result, it is determined whether there is a wiring connection between the target adapter and the to-be-detected backplane, and according to the detection result, it is determined whether the to-be-detected backplane is a valid backplane. Among them, a valid backplane at least includes a to-be-detected backplane whose function has not malfunctioned.
[0071] It should be noted that in the embodiments of the present application, not only can it be determined whether there is a wiring connection between the target adapter and the to-be-detected backplane, but also the function of the to-be-detected backplane can be detected to determine whether the to-be-detected backplane is a valid backplane, which improves the yield rate when producing electronic devices.
[0072] Step 204: When the electronic device determines that there is a wiring connection between the target adapter and the to-be-detected backplane and the to-be-detected backplane is a valid backplane, it obtains the starting slot information of the starting hard disk slot on the to-be-detected backplane based on the target type.
[0073] Among them, the hard disk slot includes the starting hard disk slot; the slot information includes the starting slot information.
[0074] In the embodiments of the present application, the slot information of the hard disk slots on the to-be-detected backplane can be obtained according to the obtaining method corresponding to the target type, and the starting slot information is determined from the slot information; it can also be directly obtaining the starting slot information of the starting hard disk slot in the hard disk slots on the to-be-detected backplane.
[0075] In a feasible implementation, when the number of to-be-detected backplanes is 1, the starting slot number of the first host-facing connector (HFC) of this backplane is used as the starting slot information of the hard disk slot on the to-be-detected backplane. Among them, the HFC can also be understood as the first connector facing the direction of the target adapter. The number of the first connectors is multiple.
[0076] Step 205: The electronic device determines the target slot information corresponding to the to-be-detected backplane based on the identifier of the to-be-detected backplane and the target correspondence.
[0077] Among them, the target correspondence relationship can also be the correspondence relationship between each backplane and the slot positions in multiple backplanes.
[0078] In the embodiments of the present application, based on the identifier of the backplane to be detected and the target correspondence relationship, the target slot position information matching the identifier of the backplane to be detected can be determined.
[0079] It should be noted that after step 205, step 206 or step 207 can be executed.
[0080] Step 206: When the slot position information and the target slot position information match, the electronic device determines that the wiring between the target adapter and the backplane to be detected is accurate.
[0081] In the embodiments of the present application, when the slot position information and the target slot position information are consistent, it indicates that the slot position information and the target slot position information match, and the electronic device determines that the wiring between the target adapter and the backplane to be detected is accurate.
[0082] Step 207: When the slot position information and the target slot position information do not match, the electronic device determines that the wiring between the target adapter and the backplane to be detected is inaccurate.
[0083] In the embodiments of the present application, when the slot position information and the target slot position information are inconsistent, it indicates that the slot position information and the target slot position information do not match, and the electronic device determines that the wiring between the target adapter and the backplane to be detected is inaccurate.
[0084] In this way, there is no need to purchase an additional test hard disk to test whether the wiring between the target adapter and the backplane to be detected is accurate, reducing the production cost of the electronic device; moreover, no manual intervention is required during the detection process, improving the accuracy and detection efficiency of the detection; and the backplane to be detected can also be subjected to a function test, and the backplane to be detected with abnormal functions can be detected in a timely manner, improving the yield rate of the produced electronic devices.
[0085] It should be noted that the descriptions of the same steps and the same content in this embodiment and other embodiments can refer to the descriptions in other embodiments, and will not be repeated here.
[0086] The information processing method provided by the embodiments of the present application can determine the slot position information of the hard disk slots on the backplane to be detected according to the target type of the backplane to be detected, and determine whether the wiring between the target adapter and the backplane to be detected is accurate according to the slot position information and the target correspondence relationship, avoiding the problem of misdetection when the user manually inserts a hard disk on the backplane to be detected for detection, improving the detection accuracy; moreover, it realizes automatic determination of whether the wiring between the target adapter and the backplane to be detected on the backplane to be detected is accurate, improving the detection efficiency.
[0087] Based on the foregoing embodiments, the embodiments of the present application provide an information processing method, refer toFigure 3 As shown in the figure, the method includes the following steps:
[0088] Step 301: When the electronic device determines that the target character in the target adapter is the first character, it determines that the target type is the first type.
[0089] Step 302: When the target type is the first type, the electronic device reads the target information representing the identity of the backplane to be detected.
[0090] Among them, the first type can be UBM.
[0091] In the embodiment of the present application, when the target type is the first type, the target adapter uses the first detection method corresponding to the first type to detect the backplane to be detected. Specifically, the target adapter can use the initialization process of the UBM protocol to detect the backplane to be detected to read the target information of the backplane to be detected.
[0092] In a feasible implementation, the target information can specifically be the UBM FRU information of the backplane to be detected.
[0093] Step 303: When the target information is read, the electronic device determines that there is a wiring connection between the target adapter and the backplane to be detected, and the backplane to be detected is a valid backplane.
[0094] Among them, a valid backplane at least means that the function of the backplane to be detected is normal.
[0095] In the embodiment of the present application, when the target adapter reads the target information, it indicates that the backplane to be detected expected is detected. It can be determined that there is a wiring connection between the target adapter and the backplane to be detected, and the backplane to be detected is a valid backplane.
[0096] In addition, the type of the backplane to be detected can also be verified by reading the target information. When the target information is read, it means that the target adapter can read the backplane to be detected corresponding to the first type. That is to say, the type of the backplane to be detected being the first type is accurate.
[0097] It should be noted that when the target information is not read, it is determined that the backplane to be detected is abnormal. Among them, there may be multiple abnormal situations, specifically, at least one of the following: the type of the backplane to be detected is abnormal (that is, the type is not the first type), there is no wiring connection between the target adapter and the backplane to be detected, and the function of the backplane to be detected is abnormal; when the target information is not read, a prompt message can be generated to prompt the user that the backplane to be detected is abnormal, so that the user can analyze and determine the abnormal factors of the backplane to be detected in time and perform corresponding maintenance, improving the yield rate when producing electronic devices.
[0098] In a feasible implementation manner, when the UBM FRU information is not read, it is possible to display that the expected backplane to be detected is not detected, or it is also possible to display through the command line tool that the normal backplane to be detected is not detected.
[0099] Step 304: When it is determined that there is a connection between the target adapter and the backplane to be detected, and the backplane to be detected is a valid backplane, the electronic device obtains the starting slot information through the communication between the target adapter and the backplane to be detected.
[0100] In the embodiment of the present application, the target adapter can use the UBM control command to communicate with the backplane to be detected to obtain the starting slot information of the starting hard disk slot on the backplane to be detected.
[0101] In a feasible implementation manner, the SAS adapter will use the UBM control command to communicate with the backplane to be detected to obtain the supported starting Slot number on the backplane connected by the HFC and display it, and the electronic device can use this starting Slot number as the starting slot information.
[0102] Step 305: The electronic device determines the target slot information corresponding to the backplane to be detected based on the identifier and the target correspondence relationship of the backplane to be detected.
[0103] It should be noted that after step 305, step 306 or step 307 can be executed.
[0104] Step 306: When the slot information and the target slot information match, the electronic device determines that the connection between the target adapter and the backplane to be detected is accurate.
[0105] Step 307: When the slot information and the target slot information do not match, the electronic device determines that the connection between the target adapter and the backplane to be detected is inaccurate.
[0106] It should be noted that for the description of the same steps and the same content in this embodiment and other embodiments, reference can be made to the description in other embodiments, and details are not described here again.
[0107] The information processing method provided by the embodiment of the present application can determine the slot information of the hard disk slot on the backplane to be detected according to the target type of the backplane to be detected, and determine whether the connection between the target adapter and the backplane to be detected is accurate according to the slot information and the target correspondence relationship, avoiding the problem of misdetection when the user manually inserts the hard disk on the backplane to be detected for detection, improving the detection accuracy; moreover, it realizes the automatic determination of whether the connection between the target adapter and the backplane to be detected on the backplane to be detected is accurate, improving the detection efficiency.
[0108] Based on the foregoing embodiments, the embodiment of the present application provides an information processing method, referring to Figure 4As shown, the method includes the following steps:
[0109] Step 401: When the target type is the second type, the electronic device acquires the data stream during the operation of the backplane to be detected.
[0110] Among them, the second type can be SGPIO.
[0111] In the embodiments of the present application, when it is determined that the type of the backplane to be detected is SGPIO, the target adapter uses the second detection method corresponding to the second type to detect the backplane to be detected; among them, the second detection method is to detect the backplane to be detected using the SGPIO protocol.
[0112] Specifically, the target adapter uses the SGPIO protocol to acquire the data stream during the operation of the backplane to be detected, and determines whether there is a wiring connection between the backplane to be detected and the target adapter through the data stream, and determines whether the function of the backplane to be detected is abnormal, so as to obtain slot information subsequently.
[0113] In a feasible implementation manner, the data stream is the SDataIn bit stream (serial data stream) of the backplane to be detected acquired using the SGPIO protocol.
[0114] Step 402: The electronic device determines the first value of the first field from the data stream.
[0115] Among them, the first field is a field characterizing the operating state of the backplane to be detected.
[0116] In the embodiments of the present application, the first field can be determined from the data stream, and the value corresponding to the first field is obtained as the target value corresponding to the first field, and according to the target value and the first bit relationship look-up table, the first value characterizing whether the backplane to be detected is in place is determined. Among them, the first bit relationship look-up table is used to characterize the corresponding relationship between the target value and the first value.
[0117] In a feasible implementation manner, the first field can specifically be "m.1bit", "m + 1.1bit", and "m + 1.1bit" in the SDataIn bit stream, and the target values corresponding to "m.1bit", "m + 1.1bit", and "m + 1.1bit" are obtained; where m is a non-variable. The target values corresponding to "m.1bit", the target values corresponding to "m + 1.1bit", and the target values corresponding to "m + 1.1bit" take values of 0 or 1; when the target values corresponding to "m.1bit", "m + 1.1bit", and "m + 1.1bit" are 0, 0, and 0 respectively, then according to the target value, the first value can be determined from the first bit relationship look-up table as "0".
[0118] Step 403: When the first value matches the target value, the electronic device determines that there is a wiring connection between the target adapter and the backplane to be detected, and the backplane to be detected is a valid backplane.
[0119] Wherein, the format of the target value is the same as that of the first value; wherein, the target value represents the value corresponding to the backplane to be detected when it is in place.
[0120] In the embodiment of the present application, when the first value is consistent with the target value, it is determined that the first value matches the target value. At this time, it can be indicated that the backplane to be detected corresponding to the second type is in place. In other words, the backplane to be detected corresponding to the second type is detected, and then it can be determined that there is a wiring connection between the target adapter and the backplane to be detected, and the backplane to be detected is a valid backplane.
[0121] It should be noted that when the first value does not match the target value, it is determined that the backplane to be detected is abnormal. There may be various situations for the abnormality, specifically, at least one of the following: the type of the backplane to be detected is abnormal (i.e., the type is not the second type), there is no wiring connection between the target adapter and the backplane to be detected, and the function of the backplane to be detected is abnormal. When the first value does not match the target value, the user is prompted that the backplane to be detected is abnormal, so that the user can analyze the abnormal factors of the backplane to be detected in time and perform corresponding maintenance, improving the yield rate when producing electronic devices.
[0122] In a feasible implementation manner, the second value can be represented by Bay present bit, and the target value can be 0. When the value of Bay present bit is 1, it can be determined that the second value does not match the target value. At this time, it can be displayed that a normal backplane to be detected is not detected.
[0123] Step 404: When it is determined that there is a wiring connection between the target adapter and the backplane to be detected, and the backplane to be detected is a valid backplane, the electronic device determines the second value of the second field from the data stream.
[0124] Wherein, the second field is a field characterizing the slot information of the hard disk slots on the backplane to be detected;
[0125] In the embodiment of the present application, the second field is determined from the data stream, and the second value corresponding to the second field is obtained.
[0126] In a feasible implementation manner, the second field can specifically be GroupID in the SDataIn bit stream, and the value of Group ID is obtained as the second value.
[0127] Step 405: The electronic device determines the starting slot information based on the second value.
[0128] In an embodiment of the present application, the slot information corresponding to the second value can be determined according to the second value and the second bit relationship look-up table, and the initial slot information can be obtained from the slot information; wherein, the second bit relationship look-up table represents the corresponding relationship between the second value and the slot information.
[0129] In a feasible implementation manner, the Group ID includes Group ID MSB, Group ID LSB, and GroupID Reserve. According to the second values corresponding to Group ID MSB, Group ID LSB, and Group ID Reserve, multiple slot numbers of the hard disk slots of the to-be-detected backplane are determined from the second bit relationship look-up table, and the initial slot number is determined from the multiple slot numbers.
[0130] Step 406: The electronic device determines the target slot information corresponding to the to-be-detected backplane based on the identifier of the to-be-detected backplane and the target correspondence.
[0131] It should be noted that after step 406, step 407 or step 408 can be executed.
[0132] Step 407: When the slot information matches the target slot information, the electronic device determines that the wiring between the target adapter and the to-be-detected backplane is accurate.
[0133] Step 408: When the slot information does not match the target slot information, the electronic device determines that the wiring between the target adapter and the to-be-detected backplane is inaccurate.
[0134] The information processing method provided in the embodiments of the present application will be explained in detail below in combination with application scenarios.
[0135] In an embodiment of the present application, the electronic device may specifically be a server. During the production of the server, there will be two types of problems between the target adapter on the server and the to-be-detected backplane; as Figure 5 shown, the first type of problem is specifically that the lead wire B of the target adapter is not connected to the target interface A of the to-be-detected backplane, that is, there is no wiring between the target adapter and the to-be-detected backplane; the second type of problem is specifically that there is wiring between the target adapter and the to-be-detected backplane, but the wiring between the target adapter and the to-be-detected backplane is incorrect. As Figure 6 shown, the target adapter includes a first adapter and a second adapter, the to-be-detected backplane includes a first backplane and a second backplane. The first backplane should be connected to the first adapter, and the second backplane should be connected to the second adapter. However, during the assembly process of the electronic device, due to human operation, the first backplane is connected to the second adapter, and the second backplane is connected to the first adapter, resulting in inaccurate wiring between the target adapter and the to-be-detected backplane.
[0136] Based on the above problems, with reference to Figure 7 As shown, an embodiment of the present application provides an information processing method. Through the SAS adapter, the target character in the backplane to be detected can be determined. When the target character is the first character, the type of the backplane to be detected is determined as the first type. The UBM FRU information of the backplane to be detected is read through the SAS adapter. When the UBM FRU information is read, it is determined that the backplane to be detected is a UBM backplane, and it is determined that there is a wiring connection between the SAS adapter and the backplane to be detected, and the backplane to be detected is a valid backplane. Then, communication can be carried out between the SAS adapter and the backplane to be detected to obtain the slot information of the hard disk slots on the backplane to be detected (i.e., the identification information of the hard disk slots on the backplane). According to the slot information and the target slot information, it is determined whether the wiring between the SAS adapter and the backplane to be detected is accurate. When the slot information and the target slot information match, it is determined that the wiring between the SAS adapter and the backplane to be detected is accurate; when the slot information and the target slot information do not match, it is determined that the wiring between the SAS adapter and the backplane to be detected is inaccurate; when the UBM FRU information is not read, that is, the signal of the backplane to be detected cannot be read (no signal), it can be displayed that no normal backplane to be detected is detected.
[0137] When the target character is the second character, the type of the backplane to be detected is determined as the second type. The data stream (SDataIn bit stream) during the operation of the backplane to be detected is obtained. When the first value of the first field in the data stream matches the target value, it is determined that there is a wiring connection between the SAS adapter and the backplane to be detected, and the backplane to be detected is a valid backplane. Then, the second value of the second field can be determined from the data stream. According to the second value, the slot information is determined. When the slot information and the target slot information match, it is determined that the wiring between the SAS adapter and the backplane to be detected is accurate; when the slot information and the target slot information do not match, it is determined that the wiring between the SAS adapter and the backplane to be detected is inaccurate.
[0138] It should be noted that the target character in the target adapter can be modified through the sideband management signal of the backplane to be detected; among them, the sideband management signal carries the character representing the type of the backplane to be detected.
[0139] In a feasible implementation, the target character in the target adapter is defaulted to high. When the target adapter can detect the sideband management signal of the backplane to be detected, if the character carried in the sideband management signal is low, the target character can be modified from high to low. Of course, if the target adapter fails to detect the sideband management signal or detects that the character carried in the sideband management signal is high, the target character presented by the target adapter remains high; that is to say, the type of the backplane to be detected determined by the target adapter is the initial type, and the initial type can be verified subsequently.
[0140] The following provides a detailed explanation of obtaining slot information through the target adapter in the information processing method provided in the embodiments of the present application.
[0141] Refer to Figure 8 As shown, the target adapter is a SAS adapter. The SAS adapter can be connected to the backplane to be detected through the first connector (HFC) on the backplane to be detected facing the SAS adapter direction. The number of the first connectors corresponds to the second connectors on the backplane to be detected. The SAS adapter can obtain the slot information of the first connector through the backplane to be detected, and obtain the slot information of the hard disk slot on the backplane to be detected. Among them, the second connector is a connector facing the hard disk direction (Device facing connector, DFC).
[0142] It should be noted that the slot information of the hard disk slot is the slot information of the second connector, and the first connector and the second connector are in one-to-one correspondence. That is to say, as long as the slot information of the first connector is obtained, the slot information of the first connector can be used as the slot information of the hard disk slot on the backplane to be detected.
[0143] It should be noted that for the descriptions of the same steps and the same content in this embodiment and other embodiments, reference can be made to the descriptions in other embodiments, and details are not described herein again.
[0144] The information processing method provided in the embodiments of the present application can determine the slot information of the hard disk slot on the backplane to be detected according to the target type of the backplane to be detected, and determine whether the wiring between the target adapter and the backplane to be detected is accurate according to the slot information and the target correspondence relationship, avoiding the problem of misdetection when the user manually inserts a hard disk on the backplane to be detected for detection, improving the detection accuracy; moreover, it realizes automatic determination of whether the wiring between the target adapter and the backplane to be detected on the backplane to be detected is accurate, improving the detection efficiency.
[0145] Based on the foregoing embodiments, an embodiment of the present application provides an electronic device, which can be applied to Figures 1 - 4 the information processing method provided in the corresponding embodiment, refer to Figure 9As shown, the electronic device 5 may include: a processor 51, a memory 52, and a communication bus 53, where:
[0146] The communication bus 53 is used to implement a communication connection between the processor 51 and the memory 52;
[0147] The processor 51 is used to execute an information processing program in the memory 52 to implement the following steps:
[0148] Determine the target type of the backplane to be detected through the target adapter; wherein, no hard disk is installed on the backplane to be detected;
[0149] Based on the target type, determine the slot information of the hard disk slots on the backplane to be detected;
[0150] Based on the slot information and the target correspondence, determine whether the wiring between the target adapter and the backplane to be detected is accurate; wherein, the target correspondence is the correspondence between the backplane and the slots.
[0151] In other embodiments of the present application, the processor 51 is used to execute the information processing program in the memory 52 to determine the target type of the backplane to be detected through the target adapter to implement the following steps:
[0152] In the case where the target character in the target adapter is determined to be the first character, determine that the target type is the first type;
[0153] In the case where the target character is determined to be the second character, determine that the target type is the second type.
[0154] In other embodiments of the present application, the processor 51 is used to execute the information processing program in the memory 52 to determine the slot information of the hard disk slots of the backplane to be detected based on the target type to implement the following steps:
[0155] Detect the backplane to be detected based on the target type, and determine whether there is wiring between the target adapter and the backplane to be detected and whether the backplane to be detected is a valid backplane;
[0156] In the case where it is determined that there is wiring between the target adapter and the backplane to be detected and the backplane to be detected is a valid backplane, obtain the starting slot information of the starting hard disk slot on the backplane to be detected based on the target type.
[0157] In other embodiments of the present application, the processor 51 is used to execute the information processing program in the memory 52 to detect the backplane to be detected based on the target type, and determine whether there is wiring between the target adapter and the backplane to be detected and whether the backplane to be detected is a valid backplane to implement the following steps:
[0158] In the case where the target type is the first type, read the target information representing the identity of the backplane to be detected;
[0159] When the target information is read, it is determined that there is a wiring connection between the target adapter and the backplane to be detected, and the backplane to be detected is a valid backplane.
[0160] In other embodiments of the present application, the processor 51 is used to execute the information processing program in the memory 52. When it is determined that there is a wiring connection between the target adapter and the backplane to be detected, the starting slot information of the starting hard disk slot on the backplane to be detected is obtained based on the target type, so as to implement the following steps:
[0161] When it is determined that there is a wiring connection between the target adapter and the backplane to be detected, and the backplane to be detected is a valid backplane, the starting slot information is obtained through the communication between the target adapter and the backplane to be detected.
[0162] In other embodiments of the present application, the processor 51 is used to execute the information processing program in the memory 52. The backplane to be detected is detected based on the target type to determine whether there is a wiring connection between the target adapter and the backplane to be detected and whether the backplane to be detected is a valid backplane, so as to implement the following steps:
[0163] When the target type is the second type, the data stream during the operation of the backplane to be detected is obtained;
[0164] The first value of the first field is determined from the data stream; wherein, the first field is a field representing the operating state of the backplane to be detected;
[0165] When the first value matches the target value, it is determined that there is a wiring connection between the target adapter and the backplane to be detected, and the backplane to be detected is a valid backplane.
[0166] In other embodiments of the present application, the processor 51 is used to execute the information processing program in the memory 52. When it is determined that there is a wiring connection between the target adapter and the backplane to be detected, and the backplane to be detected is a valid backplane, the starting slot information of the starting hard disk slot on the backplane to be detected is obtained based on the target type, so as to implement the following steps:
[0167] When it is determined that there is a wiring connection between the target adapter and the backplane to be detected, and the backplane to be detected is a valid backplane, the second value of the second field is determined from the data stream; wherein, the second field is a field representing the slot information of the hard disk slot on the backplane to be detected;
[0168] Based on the second value, the starting slot information is determined.
[0169] In other embodiments of the present application, the processor 51 is used to execute the information processing program in the memory 52. Based on the slot information and the target correspondence relationship, it is determined whether the wiring connection between the target adapter and the backplane to be detected is accurate, so as to implement the following steps:
[0170] Determine the target slot information corresponding to the backplane to be detected based on the identifier of the backplane to be detected and the target correspondence relationship;
[0171] When the slot information matches the target slot information, determine that the wiring between the target adapter and the backplane to be detected is accurate;
[0172] When the slot information does not match the target slot information, determine that the wiring between the target adapter and the backplane to be detected is inaccurate.
[0173] It should be noted that for the specific implementation process of the steps executed by the processor in this embodiment, reference can be made to Figures 1 - 4 the implementation process in the information processing method provided in the corresponding embodiment, which will not be elaborated here.
[0174] The electronic device provided in the embodiment of the present application can determine the slot information of the hard disk slot on the backplane to be detected through the target type of the backplane to be detected, and determine whether the wiring between the target adapter and the backplane to be detected is accurate according to the slot information and the target correspondence relationship, avoiding the problem of false detection when the user manually inserts the hard disk on the backplane to be detected for detection, and improving the detection accuracy; moreover, it realizes automatic determination of whether the wiring between the target adapter and the backplane to be detected on the backplane to be detected is accurate, and improves the detection efficiency.
[0175] Based on the foregoing embodiments, an embodiment of the present application provides a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement Figures 1 - 4 the steps of the information processing method provided in the corresponding embodiment.
[0176] It should be noted that the above computer-readable storage medium may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a ferromagnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM), etc.; it may also be various electronic devices including one or any combination of the above memories, such as a mobile phone, a computer, a tablet device, a personal digital assistant, etc.
[0177] It should be noted that in this text, the term "including", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without more limitations, an element defined by the statement "including one..." does not exclude the existence of another identical element in the process, method, article or device including that element.
[0178] The serial numbers of the embodiments of the present application above are only for description and do not represent the superiority or inferiority of the embodiments.
[0179] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disc) and includes several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in the various embodiments of the present application.
[0180] This application is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to embodiments of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram, as well as the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices produce a means for implementing the functions specified in one flow Figure 1 one flow or multiple flows and / or blocks Figure 1 or multiple blocks.
[0181] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory produce a manufactured article including an instruction means that implements the functions specified in one flow Figure 1 one flow or multiple flows and / or blocks Figure 1 or multiple blocks.
[0182] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one flow Figure 1 one flow or multiple flows and / or blocks Figure 1 or multiple blocks.
[0183] The above are only the preferred embodiments of the present application, and do not limit the patent scope of the present application. Any equivalent structural or equivalent process transformation made using the content of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of the present application.
Claims
1. An information processing method, the method comprises: determining a target type of a backplane to be detected through a target adapter; wherein, no hard disk is installed on the backplane to be detected; determining slot information of hard disk slots on the backplane to be detected based on the target type; determining whether the wiring between the target adapter and the backplane to be detected is accurate based on the slot information and a target correspondence relationship; wherein, the target correspondence relationship is a correspondence relationship between the backplane and the slots; wherein, the determining the target type of the backplane to be detected through the target adapter comprises: when determining that a target character in the target adapter is a first character, determining that the target type is a first type; when determining that the target character is a second character, determining that the target type is a second type.
2. The method according to claim 1, the determining the slot information of the hard disk slots of the backplane to be detected based on the target type, comprises: detecting the backplane to be detected based on the target type, and determining whether there is wiring between the target adapter and the backplane to be detected and whether the backplane to be detected is a valid backplane; when determining that there is wiring between the target adapter and the backplane to be detected and the backplane to be detected is a valid backplane, obtaining starting slot information of a starting hard disk slot on the backplane to be detected based on the target type.
3. The method according to claim 2, the detecting the backplane to be detected based on the target type, and determining whether there is wiring between the target adapter and the backplane to be detected and whether the backplane to be detected is a valid backplane, comprises: when the target type is a first type, reading target information characterizing the identity of the backplane to be detected; when the target information is read, determining that there is wiring between the target adapter and the backplane to be detected and the backplane to be detected is the valid backplane.
4. The method according to claim 3, the obtaining the starting slot information of the starting hard disk slot on the backplane to be detected based on the target type when determining that there is wiring between the target adapter and the backplane to be detected, comprises: when determining that there is wiring between the target adapter and the backplane to be detected and the backplane to be detected is the valid backplane, obtaining the starting slot information through communication between the target adapter and the backplane to be detected.
5. The method according to claim 2, the detecting the backplane to be detected based on the target type, and determining whether there is wiring between the target adapter and the backplane to be detected and whether the backplane to be detected is a valid backplane, comprises: when the target type is a second type, obtaining a data stream during the operation of the backplane to be detected; determining a first value of a first field from the data stream; wherein, the first field is a field characterizing the operation state of the backplane to be detected; when the first value matches a target value, determining that there is wiring between the target adapter and the backplane to be detected and the backplane to be detected is the valid backplane.
6. The method according to claim 5, wherein when it is determined that there is a wiring connection between the target adapter and the backplane to be detected, and the backplane to be detected is a valid backplane, the starting slot information of the starting hard disk slot on the backplane to be detected is obtained based on the target type, including: when it is determined that there is a wiring connection between the target adapter and the backplane to be detected, and the backplane to be detected is the valid backplane, determining a second value of a second field from the data stream; wherein, the second field is a field characterizing the slot information of the hard disk slots on the backplane to be detected; determining the starting slot information based on the second value.
7. The method according to claim 1, wherein determining whether the wiring connection between the target adapter and the backplane to be detected is accurate based on the slot information and the target correspondence relationship, including: determining the target slot information corresponding to the backplane to be detected based on the identifier of the backplane to be detected and the target correspondence relationship; when the slot information and the target slot information match, determining that the wiring connection between the target adapter and the backplane to be detected is accurate; when the slot information and the target slot information do not match, determining that the wiring connection between the target adapter and the backplane to be detected is inaccurate.
8. An electronic device, the device including: a processor, a memory, and a communication bus; the communication bus is used to implement a communication connection between the processor and the memory; the processor is used to execute an information processing program in the memory to implement the following steps: determining the target type of the backplane to be detected through a target adapter; wherein, no hard disk is installed on the backplane to be detected; determining the slot information of the hard disk slots on the backplane to be detected based on the target type; determining whether the wiring connection between the target adapter and the backplane to be detected is accurate based on the slot information and the target correspondence relationship; wherein, the target correspondence relationship is a correspondence relationship between the backplane and the slots; wherein, determining the target type of the backplane to be detected through the target adapter includes: when it is determined that the target character in the target adapter is a first character, determining that the target type is a first type; when it is determined that the target character is a second character, determining that the target type is a second type.
9. A computer-readable storage medium, the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the information processing method according to any one of claims 1 to 7.
Citation Information
Patent Citations
U.2 interface multi-hard-disk management backboard and method
CN110377956A
Backboard information acquisition method and device, and storage medium
CN110825679A