Hard disk lighting method and device, electronic equipment and storage medium
By obtaining the hard disk backplane identification and configuration information, defining the virtual pin port address, and performing the hard disk lighting process, the problem of high resource consumption in the existing technology is solved, and a more efficient and accurate hard disk lighting method is realized.
Patent Information
- Application Number
- CN202410763352.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-10
AI Technical Summary
The existing hard disk lighting method occupies the motherboard's pin resources and programmable logic device resources when sending pulse signals, resulting in high resource consumption.
By obtaining the identification confirmation signal and configuration confirmation signal, the hard disk backplane identification and configuration information are determined, the virtual pin port address is defined, and the hard disk lighting process is performed to reduce dependence on hardware resources.
It reduces the resource consumption of hard disk lighting, improves the accuracy and versatility of hard disk lighting, and eliminates the need for new hardware devices, thus reducing costs.
Smart Images

Figure CN118626346A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for lighting a hard disk. Background Art
[0002] Hard drive lighting is a method of locating and identifying a faulty hard drive by operating the hard drive's LED indicator. This method is particularly important in maintenance work because it allows operators to quickly and accurately identify the faulty hard drive, thereby avoiding data loss and improving the efficiency and accuracy of hard drive replacement.
[0003] In the prior art, a plurality of pulse signals are sent to a plurality of hard disk backplanes through a programmable logic device of a mainboard to perform hard disk lighting processing.
[0004] However, the parallel lighting method in the prior art will occupy the pin resources of the mainboard and the logic resources of the programmable logic device of the mainboard during the process of sending the pulse signal, thereby causing problems such as large resource consumption. Summary of the invention
[0005] The embodiments of the present application provide a method, device, electronic device and storage medium for lighting a hard disk, so as to achieve the effect of reducing resource consumption.
[0006] In a first aspect, an embodiment of the present application provides a method for lighting a hard disk, comprising:
[0007] Acquire an identification confirmation signal, and determine the hard disk backplane identification according to the acquired identification confirmation signal; wherein the identification confirmation signal represents a level signal or a pulse signal used to determine the hard disk backplane identification;
[0008] Acquire a configuration confirmation signal, and determine the hard disk configuration information according to the acquired configuration confirmation signal and the determined hard disk backplane identifier; wherein the configuration confirmation signal represents a level signal or a pulse signal used to determine the hard disk configuration information; the hard disk configuration information represents the configuration information of the hard disk corresponding to the mainboard;
[0009] Defining a plurality of virtual pin port addresses according to the determined hard disk backplane identifier and hard disk configuration information;
[0010] The hard disk lighting process is performed according to the defined multiple virtual pin port addresses.
[0011] In one possible implementation, the hard disk backplane identifier is determined based on the obtained identifier confirmation signal, including: if the obtained identifier confirmation signal is a level signal, then the hard disk backplane identifier is determined to be the hard disk backplane identifier corresponding to the first hard disk backplane; if the obtained identifier confirmation signal is a pulse signal, then the hard disk backplane identifier is determined based on a preset first mapping relationship; wherein the first mapping relationship represents the correspondence between the pulse frequency of the identifier confirmation signal and the hard disk backplane identifier.
[0012] In one possible implementation, if the acquired identification confirmation signal is a pulse signal, the hard disk backplane identification is determined according to a preset first mapping relationship, including: if the acquired identification confirmation signal is a pulse signal, determining the pulse frequency of the identification confirmation signal; and matching the corresponding hard disk backplane identification from the preset first mapping relationship according to the determined pulse frequency of the identification confirmation signal.
[0013] In a possible implementation, after obtaining the identification confirmation signal and determining the hard disk backplane identification based on the obtained identification confirmation signal, it also includes: extracting the pulse frequency of the identification confirmation signal corresponding to the next hard disk backplane identification from the preset first mapping relationship, and sending the identification confirmation signal corresponding to the pulse frequency to the corresponding hard disk backplane.
[0014] In one possible implementation, hard disk configuration information is determined based on the acquired configuration confirmation signal and the determined hard disk backplane identifier, including: if the acquired configuration confirmation signal is a level signal, the hard disk configuration information is determined based on the determined hard disk backplane identifier; if the acquired configuration confirmation signal is a pulse signal, the hard disk configuration information is determined based on the determined hard disk backplane identifier and a preset second mapping relationship; wherein the second mapping relationship represents the correspondence between the pulse frequency of the configuration confirmation signal, the hard disk backplane identifier, and the number of hard disk backplanes.
[0015] In one possible implementation, the hard disk configuration information is determined based on the determined hard disk backplane identifier, including: determining the number of hard disk backplanes corresponding to the motherboard based on the determined hard disk backplane identifier; determining the hard disk configuration information based on the number of hard disks configured in each hard disk backplane and the determined number of hard disk backplanes corresponding to the motherboard.
[0016] In one possible implementation, if the acquired configuration confirmation signal is a pulse signal, the hard disk configuration information is determined according to the determined hard disk backplane identifier and a preset second mapping relationship, including: if the acquired configuration confirmation signal is a pulse signal, the pulse frequency of the configuration confirmation signal is determined; according to the determined pulse frequency of the configuration confirmation signal and the determined hard disk backplane identifier, the number of corresponding hard disk backplanes is matched from the preset second mapping relationship; the hard disk configuration information is determined according to the number of hard disks configured in each hard disk backplane and the number of corresponding hard disk backplanes matched.
[0017] In a possible implementation, after obtaining a configuration confirmation signal and determining the hard disk configuration information based on the obtained configuration confirmation signal and the determined hard disk backplane identifier, it also includes: extracting the pulse frequency of the configuration confirmation signal corresponding to the previous hard disk backplane identifier from the preset second mapping relationship, and sending the configuration confirmation signal corresponding to the pulse frequency to the corresponding hard disk backplane.
[0018] In one possible implementation, multiple virtual pin port addresses are defined based on the determined hard disk backplane identifier and hard disk configuration information, including: obtaining the corresponding CPU configuration information of the motherboard; determining and defining multiple virtual pin port addresses from a predefined third mapping relationship based on the corresponding CPU configuration information of the motherboard and the hard disk configuration information; wherein the third mapping relationship represents the correspondence between the motherboard's CPU configuration information, the hard disk configuration information and the virtual pin port address.
[0019] In a possible implementation, hard disk lighting processing is performed according to multiple defined virtual pin port addresses, including: receiving a lighting instruction sent by a corresponding motherboard; wherein the lighting instruction indicates a corresponding virtual pin port address; and performing hard disk lighting processing according to the corresponding virtual pin port address indicated by the lighting instruction and multiple defined virtual pin port addresses.
[0020] In a possible implementation, before performing the hard disk lighting process according to the defined multiple virtual pin port addresses, the method further includes: establishing a communication connection with a corresponding mainboard according to the defined multiple virtual pin port addresses.
[0021] In a second aspect, an embodiment of the present application provides a hard disk lighting device, comprising:
[0022] A first acquisition module is used to acquire an identification confirmation signal, and determine the hard disk backplane identification according to the acquired identification confirmation signal; wherein the identification confirmation signal represents a level signal or a pulse signal used to determine the hard disk backplane identification;
[0023] The second acquisition module is used to acquire a configuration confirmation signal, and determine the hard disk configuration information according to the acquired configuration confirmation signal and the determined hard disk backplane identifier; wherein the configuration confirmation signal represents a level signal or a pulse signal used to determine the hard disk configuration information; the hard disk configuration information represents the configuration information of the hard disk corresponding to the mainboard;
[0024] A definition module, used for defining a plurality of virtual pin port addresses according to the determined hard disk backplane identification and hard disk configuration information;
[0025] The processing module is used to perform hard disk lighting processing according to the defined multiple virtual pin port addresses.
[0026] In a third aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor;
[0027] The memory stores computer-executable instructions;
[0028] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.
[0029] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect above and / or various possible implementations of the first aspect.
[0030] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementation methods of the first aspect.
[0031] The hard disk lighting method, device, electronic device and storage medium provided in the embodiments of the present application obtain an identification confirmation signal, and determine the hard disk backplane identification according to the obtained identification confirmation signal, obtain a configuration confirmation signal, and determine the hard disk configuration information according to the obtained configuration confirmation signal and the determined hard disk backplane identification, define multiple virtual pin port addresses according to the determined hard disk backplane identification and hard disk configuration information, and perform hard disk lighting processing according to the defined multiple virtual pin port addresses. In particular, the present application performs hard disk lighting processing through virtual pin port addresses, which can reduce the resource consumption of hard disk lighting. In particular, when defining the virtual pin port address corresponding to the hard disk backplane, the hard disk backplane identification and hard disk configuration information of the hard disk backplane can be combined to improve the accuracy of defining the virtual pin port address, and further improve the accuracy of the hard disk lighting method. In particular, the hard disk lighting process provided by the present application does not require the addition of new hardware devices, which reduces costs while also improving the versatility of the hard disk lighting method. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0033] Figure 1 A schematic diagram of a scenario of the hard disk lighting method provided in this application;
[0034] Figure 2 The process diagram of the hard disk lighting method provided in this application is as follows Figure 1 ;
[0035] Figure 3 The process diagram of the hard disk lighting method provided in this application is as follows Figure 2 ;
[0036] Figure 4 The process diagram of the hard disk lighting method provided in this application is as follows Figure 3 ;
[0037] Figure 5 A schematic diagram of an example of signal transmission between multiple hard disk backplanes;
[0038] Figure 6 A schematic diagram of the structure of the hard disk lighting device provided in this application;
[0039] Figure 7 A schematic diagram of the structure of the electronic device provided in this application.
[0040] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0041] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0042] Figure 1 A schematic diagram of a scenario of a hard disk lighting method provided in this application, such as Figure 1As shown, the specific application scenario of the present application includes: a mainboard and at least one hard disk backplane. If the specific application scenario of the present application includes multiple hard disk backplanes, the hard disk backplanes are connected in series to confirm the hard disk backplane identification and hard disk configuration information, and the mainboard is respectively connected to each hard disk backplane for communication to send a lighting instruction to each hard disk backplane. Specifically, the application scenario of the hard disk lighting method may include at least one hard disk backplane. Figure 1 The example shown in FIG. 1 is an example of an application scenario of the hard disk lighting method corresponding to three hard disk backplanes.
[0043] Combining the above scenarios, it can be seen that in the prior art, the hard disk backplane (CPLD) pins of the motherboard are connected in parallel to multiple hard disk backplanes to perform hard disk lighting processing. However, the parallel lighting method in the prior art not only occupies the pin resources of the motherboard, but also occupies the pin logic resources of the motherboard, thus resulting in problems such as large resource consumption.
[0044] The method for lighting a hard disk provided in the present application obtains an identification confirmation signal, determines a hard disk backplane identification according to the obtained identification confirmation signal, obtains a configuration confirmation signal, determines hard disk configuration information according to the obtained configuration confirmation signal and the determined hard disk backplane identification, defines multiple virtual pin port addresses according to the determined hard disk backplane identification and hard disk configuration information, and performs hard disk lighting processing according to the defined multiple virtual pin port addresses. The present application performs hard disk lighting processing through virtual pin port addresses, which can reduce resource consumption of hard disk lighting. When defining the virtual pin port address corresponding to the hard disk backplane, the accuracy of defining the virtual pin port address can be improved by combining the hard disk backplane identification and hard disk configuration information of the hard disk backplane, thereby further improving the accuracy of the hard disk lighting method. The hard disk lighting process provided in the present application does not require the addition of new hardware devices, thereby reducing costs while also improving the versatility of the hard disk lighting method.
[0045] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0046] Figure 2 The process diagram of the hard disk lighting method provided in this application is as follows Figure 1 The execution subject is the hard disk backplane, or the hard disk lighting device, which can generally be implemented by software, hardware, or a combination of software and hardware, such as Figure 2 As shown, the method includes:
[0047] Step S201: Acquire an identification confirmation signal, and determine the hard disk backplane identification according to the acquired identification confirmation signal.
[0048] Specifically, an identification confirmation signal can be obtained, and the hard disk backplane identification can be determined based on the obtained identification confirmation signal. The identification confirmation signal represents a level signal or a pulse signal used to determine the hard disk backplane identification. The hard disk backplane identification, that is, the hard disk backplane ID, is an identification that characterizes the hard disk backplane. The present application does not limit the setting of the hard disk backplane identification. Any identification that can characterize the hard disk backplane can be used as the hard disk backplane identification provided by the present application, such as: BP_1, BP_2, BP_3 and other hard disk backplane identifications, wherein BP_1, BP_2, BP_3 and other hard disk backplane identifications are identifications that characterize different hard disk backplanes, for example: in Figure 1 In the application scenario of the hard disk lighting method shown, if three hard disk backplanes are included, the hard disk backplane identifiers of the hard disk backplanes can be determined as BP_1, BP_2, and BP_3 respectively.
[0049] Optionally, the identification confirmation signal includes a signal identifier of the identification confirmation signal, and the signal identifier of the identification confirmation signal is used to indicate that the acquired signal is the identification confirmation signal.
[0050] Among them, the present application does not limit the process of obtaining the identification confirmation signal, and any process that can obtain the identification confirmation signal can be used as the process of obtaining the identification confirmation signal provided by the present application. Optionally, the identification confirmation signal sent from the mainboard corresponding to the hard disk backplane can be obtained. Optionally, the identification confirmation signal sent from other hard disk backplanes can also be obtained. Optionally, the identification confirmation signal can also be obtained from the hard disk backplane itself. Among them, the identification confirmation signal obtained from the hard disk backplane itself can be a level signal, and the identification confirmation signal sent from the mainboard corresponding to the hard disk backplane, or the identification confirmation signal sent from other hard disk backplanes, can be a pulse signal. Among them, the mainboard corresponding to the hard disk backplane is Figure 1 The scene diagram shown shows a mainboard that cooperates with the hard disk backplane to perform hard disk lighting processing.
[0051] Among them, the present application does not limit the process of determining the hard disk backplane identification according to the obtained identification confirmation signal, and any process that can determine the hard disk backplane identification according to the obtained identification confirmation signal can be used as the process of determining the hard disk backplane identification according to the obtained identification confirmation signal provided by the present application. Optionally, if the obtained identification confirmation signal is a level signal, the hard disk backplane identification is determined to be the hard disk backplane identification corresponding to the first hard disk backplane; if the obtained identification confirmation signal is a pulse signal, the hard disk backplane identification is determined according to a preset first mapping relationship; wherein the first mapping relationship represents the correspondence between the pulse frequency of the identification confirmation signal and the hard disk backplane identification.
[0052] Step S202: Obtain a configuration confirmation signal, and determine hard disk configuration information according to the obtained configuration confirmation signal and the determined hard disk backplane identifier.
[0053] Specifically, a configuration confirmation signal can be obtained, and the hard disk configuration information can be determined based on the obtained configuration confirmation signal and the determined hard disk backplane identifier. The configuration confirmation signal represents a level signal or a pulse signal used to determine the hard disk configuration information. The hard disk configuration information represents the configuration information of the hard disk corresponding to the motherboard. Specifically, the motherboard described here is the motherboard corresponding to the hard disk backplane described in step S201, which will not be repeated here. Optionally, the configuration information includes but is not limited to quantity information. If the configuration information is quantity information, the hard disk configuration information represents the quantity information of the hard disk corresponding to the motherboard. For example: Figure 1 In the application scenario of the hard disk lighting method shown, the hard disk configuration information represents the number of hard disks configured in the three hard disk backplanes corresponding to the mainboard. Optionally, if 8 hard disks are configured in each hard disk backplane, the hard disk configuration information represents that the number of hard disks configured in the three hard disk backplanes corresponding to the mainboard is 8*3.
[0054] Optionally, the configuration confirmation signal includes a signal identifier of the configuration confirmation signal, and the signal identifier of the configuration confirmation signal is used to indicate that the acquired signal is a configuration confirmation signal.
[0055] Among them, the present application does not limit the process of obtaining the configuration confirmation signal, and any process that can obtain the configuration confirmation signal can be used as the process of obtaining the configuration confirmation signal provided by the present application. Optionally, the configuration confirmation signal sent from other hard disk backplanes can be obtained, and optionally, the configuration confirmation signal can also be obtained from the hard disk backplane itself. Among them, the configuration confirmation signal obtained from the hard disk backplane itself can be a level signal, and the configuration confirmation signal sent from other hard disk backplanes can be a pulse signal.
[0056] Among them, the present application does not limit the process of determining the hard disk configuration information based on the obtained configuration confirmation signal and the determined hard disk backplane identification. Any process of determining the hard disk configuration information based on the obtained configuration confirmation signal and the determined hard disk backplane identification can be used as the process of determining the hard disk configuration information based on the obtained configuration confirmation signal and the determined hard disk backplane identification provided by the present application. Optionally, if the obtained configuration confirmation signal is a level signal, the hard disk configuration information is determined according to the determined hard disk backplane identification; if the obtained configuration confirmation signal is a pulse signal, the hard disk configuration information is determined according to the determined hard disk backplane identification and a preset second mapping relationship; wherein the second mapping relationship represents the correspondence between the pulse frequency of the configuration confirmation signal, the hard disk backplane identification, and the number of hard disk backplanes.
[0057] Step S203: define a plurality of virtual pin port addresses according to the determined hard disk backplane identifier and hard disk configuration information.
[0058] Specifically, after determining the hard disk configuration information according to the obtained configuration confirmation signal and the determined hard disk backplane identifier, multiple virtual pin port addresses can be defined according to the determined hard disk backplane identifier and the hard disk configuration information. Among them, virtual pin port addresses (Virtual Pin Port, referred to as VPP addresses) are usually used in electronic design automation (EDA) and integrated circuit (IC) design. They are used to create virtual connection points or ports in the design and verification process to simplify the design and testing of complex circuits. Optionally, creating and managing virtual pin ports usually involves the following steps: defining ports, defining virtual pin ports in design tools, including port names, types and properties; connecting ports, connecting virtual pin ports to other parts of the circuit to ensure the consistency and integrity of the design; and verification and simulation, using simulation tools to verify the behavior of virtual pin ports to ensure that they meet the design requirements.
[0059] Among them, the number of virtual pin ports that need to be defined is connected to the number of hard disks configured in the hard disk backplane. Optionally, a virtual pin port address can correspond to one or more hard disks configured on the hard disk backplane. For example: if a virtual pin port address corresponds to 2 hard disks, and each hard disk backplane is configured with 8 hard disks, then 4 virtual pin port addresses need to be defined in a hard disk backplane.
[0060] Among them, the present application does not limit the process of defining multiple virtual pin port addresses according to the determined hard disk backplane identification and hard disk configuration information. Any process that can define multiple virtual pin port addresses according to the determined hard disk backplane identification and hard disk configuration information can be used as the process of defining multiple virtual pin port addresses according to the determined hard disk backplane identification and hard disk configuration information provided by the present application. Optionally, the CPU configuration information of the corresponding motherboard can be obtained first; then, according to the CPU configuration information of the corresponding motherboard and the hard disk configuration information, multiple virtual pin port addresses can be determined and defined from a predefined third mapping relationship; wherein the third mapping relationship represents the correspondence between the CPU configuration information of the motherboard, the hard disk configuration information and the virtual pin port address. Among them, since the hard disk lighting method provided by the present application needs to be completed in coordination with the corresponding motherboard, the multiple virtual pin port addresses defined are associated with the configuration of the CPU of the corresponding motherboard to ensure effective and accurate lighting processing.
[0061] Step S204: performing hard disk lighting processing according to the defined multiple virtual pin port addresses.
[0062] Specifically, according to the multiple virtual pin port addresses defined in step S203, the hard disk lighting process can be performed. Among them, the present application does not limit the process of performing the hard disk lighting process according to the multiple virtual pin port addresses defined, and any process that can perform the hard disk lighting process according to the multiple virtual pin port addresses defined can be used as the process of performing the hard disk lighting process according to the multiple virtual pin port addresses defined provided by the present application. Optionally, a lighting instruction sent by the corresponding motherboard can be received; wherein the lighting instruction indicates the corresponding virtual pin port address; and then the hard disk lighting process is performed according to the corresponding virtual pin port address indicated by the lighting instruction and the multiple virtual pin port addresses defined.
[0063] The method for lighting a hard disk provided in an embodiment of the present application obtains an identification confirmation signal, determines a hard disk backplane identification based on the obtained identification confirmation signal, obtains a configuration confirmation signal, determines hard disk configuration information based on the obtained configuration confirmation signal and the determined hard disk backplane identification, defines multiple virtual pin port addresses based on the determined hard disk backplane identification and hard disk configuration information, and performs hard disk lighting processing based on the defined multiple virtual pin port addresses. The present application performs hard disk lighting processing through virtual pin port addresses, which can reduce resource consumption of hard disk lighting. When defining the virtual pin port address corresponding to the hard disk backplane, the accuracy of defining the virtual pin port address can be improved by combining the hard disk backplane identification and hard disk configuration information of the hard disk backplane, thereby further improving the accuracy of the hard disk lighting method. The hard disk lighting process provided in the present application does not require the addition of new hardware devices, thereby reducing costs while also improving the versatility of the hard disk lighting method.
[0064] Figure 3 The process diagram of the hard disk lighting method provided in this application is as follows Figure 2 ,like Figure 3 As shown, in this embodiment Figure 2 Based on the embodiment, a process of determining the hard disk backplane identification according to the obtained identification confirmation signal is described in detail. The method includes:
[0065] Step S301: If the obtained identification confirmation signal is a level signal, determine that the hard disk backplane identification is the hard disk backplane identification corresponding to the first hard disk backplane.
[0066] Wherein, as described in step S201, the identification confirmation signal represents a level signal or a pulse signal used to determine the hard disk backplane identification. Specifically, if the obtained identification confirmation signal is a level signal, it can be determined that the hard disk backplane identification is the hard disk backplane identification corresponding to the first hard disk backplane. Wherein, as described in step S201 for the process of obtaining the identification confirmation signal, optionally, if the obtained identification confirmation signal is a level signal, then the identification confirmation signal is obtained from the hard disk backplane itself, that is, no pulse signal is received from the mainboard corresponding to the hard disk backplane, or from other hard disk backplanes. Wherein, the first hard disk backplane refers to the one in Figure 1 In the application scenario of the hard disk lighting method shown, among the at least one hard disk backplane corresponding to the mainboard, the first hard disk backplane whose corresponding hard disk backplane identification is determined, specifically, if the mainboard corresponds to one hard disk backplane, then the hard disk backplane is the first hard disk backplane, if the mainboard corresponds to multiple hard disk backplanes, among the corresponding multiple hard disk backplanes, if the identification confirmation signal obtained by the hard disk backplane is a level signal, then the hard disk backplane is determined as the first hard disk backplane, that is, the hard disk backplane is the first hard disk backplane whose corresponding hard disk backplane identification is determined, wherein, if the mainboard corresponds to multiple hard disk backplanes, among the corresponding multiple hard disk backplanes, the first hard disk backplane is a hard disk backplane that has only one end connected to other hard disk backplanes and can send identification confirmation signals to other connected hard disk backplanes.
[0067] Among them, this application does not limit the setting of the hard disk backplane identifier corresponding to the first hard disk backplane. Optionally, the hard disk backplane identifier can also represent a sequence for determining the hard disk backplane identifier. Specifically, if the hard disk backplane identifier also represents a sequence for determining the hard disk backplane identifier, the hard disk backplane identifier corresponding to the first hard disk backplane can be determined according to the sequence for determining the hard disk backplane identifier represented by the hard disk backplane. For example: as described in step S201, in Figure 1 In the application scenario of the hard disk lighting method shown, if there are three hard disk backplanes, the hard disk backplane identification of each hard disk backplane can be determined as BP_1, BP_2 and BP_3 respectively, wherein, if the hard disk backplane identification also represents the sequence of determining the hard disk backplane identification, BP_1 can be set to the hard disk backplane identification corresponding to the first hard disk backplane identification determined, BP_2 can be set to the hard disk backplane identification corresponding to the second hard disk backplane identification determined, and BP_3 can be set to the hard disk backplane identification corresponding to the third hard disk backplane identification determined. In the example described above, if the identification confirmation signal obtained is a level signal, the hard disk backplane identification is determined to be the hard disk backplane identification corresponding to the first hard disk backplane, that is, the hard disk backplane identification is determined to be BP_1.
[0068] Optionally, the level signal corresponding to the identification confirmation signal may be a high level signal or a low level signal.
[0069] Step S302: If the acquired identification confirmation signal is a pulse signal, determine the hard disk backplane identification according to a preset first mapping relationship.
[0070] Specifically, if the obtained identification confirmation signal is a pulse signal, the hard disk backplane identification can be determined according to a preset first mapping relationship. The first mapping relationship represents the correspondence between the pulse frequency of the identification confirmation signal and the hard disk backplane identification. As described in step S201 for the process of obtaining the identification confirmation signal, optionally, if the obtained identification confirmation signal is a pulse signal, the identification confirmation signal is obtained from the mainboard corresponding to the hard disk backplane, or obtained from other hard disk backplanes.
[0071] Among them, the present application does not limit the process of determining the hard disk backplane identification according to the preset first mapping relationship, and any process that can determine the hard disk backplane identification according to the preset first mapping relationship can be used as the process of determining the hard disk backplane identification according to the preset first mapping relationship provided by the present application. Optionally, first, if the obtained identification confirmation signal is a pulse signal, the pulse frequency of the identification confirmation signal is determined. Then, according to the determined pulse frequency of the identification confirmation signal, the corresponding hard disk backplane identification is matched from the preset first mapping relationship. Among them, the pulse frequency refers to the number of pulses occurring within a certain period of time (usually one second). It is one of the important parameters describing the characteristics of the pulse signal, usually in Hertz (Hz). The pulse frequency is used in many fields, including communications, radar, medical imaging, and electronic measurement. Among them, the present application does not limit the process of determining the pulse frequency of the identification confirmation signal, and any process that can determine the pulse frequency of the identification confirmation signal can be used as the process of determining the pulse frequency of the identification confirmation signal provided by the present application.
[0072] Table 1 is a partial example display of the first mapping relationship. Specifically, Table 1 shows the correspondence between the pulse frequency of the identification confirmation signal and the hard disk backplane identification when the number of hard disk backplanes corresponding to the mainboard is 1, 2, and 3.
[0073] Table 1
[0074]
[0075] Among them, if the pulse frequency of the identification confirmation signal cannot be obtained, that is, as described in step S301, the obtained identification confirmation signal is a level signal, then the hard disk backplane identification can be determined according to the process described in step S301, or the hard disk backplane identification can be determined according to the first mapping relationship, for example: as shown in Table 1, if the pulse frequency of the identification confirmation signal is not obtained, the hard disk backplane identification is determined to be BP_1.
[0076] Among them, if the pulse frequency of the identification confirmation signal is obtained, the pulse frequency of the identification confirmation signal can be used to match the hard disk backplane identification from the first mapping relationship, for example: as shown in Table 1, the pulse frequency A0 of the identification confirmation signal corresponds to the hard disk backplane identification BP_1, that is, if the obtained pulse frequency of the identification confirmation signal is A0, the matched hard disk backplane identification is BP_1; the pulse frequency A1 of the identification confirmation signal corresponds to the hard disk backplane identification BP_2, that is, if the obtained pulse frequency of the identification confirmation signal is A1, the matched hard disk backplane identification is BP_2; the pulse frequency A2 of the identification confirmation signal corresponds to the hard disk backplane identification BP_3, that is, if the obtained pulse frequency of the identification confirmation signal is A2, the matched hard disk backplane identification is BP_3.
[0077] Optionally, after obtaining the identification confirmation signal and determining the hard disk backplane identification according to the obtained identification confirmation signal, it also includes: extracting the pulse frequency of the identification confirmation signal corresponding to the next hard disk backplane identification from the preset first mapping relationship, and sending the identification confirmation signal corresponding to the pulse frequency to the corresponding hard disk backplane. Wherein, based on the description of the first hard disk backplane in step S301, if the hard disk backplane identification also represents the sequence for determining the hard disk backplane identification, the next hard disk backplane identification refers to the hard disk backplane identification corresponding to the next hard disk backplane corresponding to the current hard disk backplane, for example: if the hard disk backplane identification of the current hard disk backplane is BP_1, then the next hard disk backplane identification, that is, the hard disk backplane identification corresponding to the next hard disk backplane corresponding to the current hard disk backplane is BP_2, and the pulse frequency of the identification confirmation signal corresponding to the next hard disk backplane identification is A2.
[0078] Specifically, after extracting the pulse frequency of the identification confirmation signal corresponding to the next hard disk backplane identifier from the preset first mapping relationship, an identification confirmation signal corresponding to the pulse frequency can be generated and sent to the corresponding hard disk backplane. Among them, the hard disk backplane corresponding to the identification confirmation signal corresponding to the pulse frequency is the next hard disk backplane. For example: as described in the above example, if the hard disk backplane identifier of the current hard disk backplane is BP_1, then the next hard disk backplane identifier, that is, the hard disk backplane identifier corresponding to the next hard disk backplane corresponding to the current hard disk backplane is BP_2, and the pulse frequency of the identification confirmation signal corresponding to the next hard disk backplane identifier is A2, and an identification confirmation signal corresponding to the pulse frequency A2 can be generated, and the identification confirmation signal corresponding to the pulse frequency A2 can be sent to the next hard disk backplane, that is, the hard disk backplane with the hard disk backplane identifier BP_2.
[0079] If the current hard disk backplane does not have a corresponding next hard disk backplane, the pulse frequency of the identification confirmation signal corresponding to the next hard disk backplane identification cannot be extracted, and the identification confirmation signal cannot be sent. For example: if the number of hard disk backplanes corresponding to the motherboard is 1, and the hard disk backplane identification of the current hard disk backplane can only be BP_1, then the current hard disk backplane does not have a corresponding next hard disk backplane; for example: if the number of hard disk backplanes corresponding to the motherboard is 2, and the hard disk backplane identification of the current hard disk backplane is BP_2, then the current hard disk backplane does not have a corresponding next hard disk backplane.
[0080] The embodiment of the present application provides a process for determining the hard disk backplane identification based on the obtained identification confirmation signal. If the obtained identification confirmation signal is a level signal, the hard disk backplane identification is determined to be the hard disk backplane identification corresponding to the first hard disk backplane. If the obtained identification confirmation signal is a pulse signal, the hard disk backplane identification is determined according to a preset first mapping relationship. By confirming whether the obtained identification confirmation signal is a level signal and matching the pulse frequency of the obtained pulse signal with the first mapping relationship, the hard disk backplane identification of the hard disk backplane can be accurately and efficiently obtained, thereby improving the accuracy of defining the virtual pin port address and further improving the accuracy of the hard disk lighting method.
[0081] Figure 4 The process diagram of the hard disk lighting method provided in this application is as follows Figure 3 ,like Figure 4 As shown, in this embodiment Figure 1 or Figure 2 Based on the illustrated embodiment, a process of determining hard disk configuration information according to the acquired configuration confirmation signal and the determined hard disk backplane identifier is described in detail. The method includes:
[0082] Step S401: If the acquired configuration confirmation signal is a level signal, hard disk configuration information is determined according to the determined hard disk backplane identifier.
[0083] Wherein, as described in step S202, the configuration confirmation signal represents a level signal or a pulse signal used to determine the hard disk configuration information. Specifically, if the obtained configuration confirmation signal is a level signal, the hard disk configuration information can be determined according to the determined hard disk backplane identifier. Wherein, as described in step S202 for the process of obtaining the configuration confirmation signal, optionally, if the obtained configuration confirmation signal is a level signal, the configuration confirmation signal is obtained from the hard disk backplane itself, that is, no pulse signal is received from other hard disk backplanes.
[0084] Among them, the present application does not limit the process of determining the hard disk configuration information according to the determined hard disk backplane identifier. Any process that can determine the hard disk configuration information according to the determined hard disk backplane identifier can be used as the process of determining the hard disk configuration information according to the determined hard disk backplane identifier provided by the present application. Optionally, the number of hard disk backplanes corresponding to the motherboard can be determined first according to the determined hard disk backplane identifier, and then the hard disk configuration information can be determined according to the number of hard disks configured in each hard disk backplane and the number of hard disk backplanes corresponding to the determined motherboard. Specifically, in the process of determining the number of hard disk backplanes corresponding to the motherboard according to the determined hard disk backplane identifier, based on Figure 3 In the description of the hard disk backplane identifier in the illustrated embodiment, if the hard disk backplane identifier also represents a sequence for determining the hard disk backplane identifier, the number of hard disk backplanes corresponding to the mainboard can be determined directly based on the determined hard disk backplane identifier. For example: if the hard disk backplane identifier corresponding to the hard disk backplane whose configuration confirmation signal is a level signal is BP_1, then the number of hard disk backplanes corresponding to the mainboard is determined to be 1; for example: if the hard disk backplane identifier corresponding to the hard disk backplane whose configuration confirmation signal is a level signal is BP_2, then the number of hard disk backplanes corresponding to the mainboard is determined to be 2, and so on. Specifically, in the process of determining the hard disk configuration information according to the number of hard disks configured in each hard disk backplane and the number of hard disk backplanes corresponding to the determined mainboard, the number of hard disks configured in each hard disk backplane corresponds to the number of hard disks supported by each hard disk backplane. For example, if the hard disk backplane supports the insertion of 8 hard disks, the number of hard disks configured in the hard disk backplane is 8, wherein the number of hard disks configured in each hard disk backplane corresponding to the mainboard is the same, for example, as in the example described above, if the mainboard corresponds to 3 hard disk backplanes, the number of hard disks corresponding to each of the 3 hard disk backplanes is 8. According to the description of the hard disk configuration information in step S202, if the configuration information is quantity information, the hard disk configuration information represents the quantity information of the hard disks corresponding to the mainboard. Therefore, as in the example described above, the hard disk configuration information represents the quantity information of the hard disks corresponding to the mainboard as 8*3.
[0085] Optionally, the level signal corresponding to the configuration confirmation signal may be a high level signal or a low level signal.
[0086] Step S402: If the acquired configuration confirmation signal is a pulse signal, the hard disk configuration information is determined according to the determined hard disk backplane identifier and a preset second mapping relationship.
[0087] Specifically, if the configuration confirmation signal obtained is a pulse signal, the hard disk configuration information can be determined according to the determined hard disk backplane identifier and the preset second mapping relationship. The second mapping relationship represents the corresponding relationship between the pulse frequency of the configuration confirmation signal, the hard disk backplane identifier, and the number of hard disk backplanes. As described in step S202 for the process of obtaining the configuration confirmation signal, optionally, if the configuration confirmation signal obtained is a pulse signal, the configuration confirmation signal is obtained from other hard disk backplanes.
[0088] Among them, the present application does not limit the process of determining the hard disk configuration information according to the determined hard disk backplane identifier and the preset second mapping relationship. Any process that can determine the hard disk configuration information according to the determined hard disk backplane identifier and the preset second mapping relationship can be used as the process of determining the hard disk configuration information according to the determined hard disk backplane identifier and the preset second mapping relationship provided by the present application. Optionally, first, if the acquired configuration confirmation signal is a pulse signal, the pulse frequency of the configuration confirmation signal is determined. Secondly, according to the pulse frequency of the determined configuration confirmation signal and the determined hard disk backplane identifier, the number of corresponding hard disk backplanes is matched from the preset second mapping relationship. Then, according to the number of hard disks configured in each hard disk backplane and the number of corresponding hard disk backplanes matched, the hard disk configuration information is determined. Among them, the description of the pulse frequency, the pulse frequency of the configuration confirmation signal, and the description of the pulse frequency of the configuration confirmation signal can refer to the description in step S302, which will not be repeated here. For the description of determining the hard disk configuration information according to the number of hard disks configured in each hard disk backplane and the number of matched corresponding hard disk backplanes, reference may be made to the description in step S401 and will not be repeated here.
[0089] Table 2 is a partial example display of the second mapping relationship. Specifically, Table 2 shows the correspondence between the pulse frequency of the configuration confirmation signal, the hard disk backplane identifier, and the number of hard disk backplanes corresponding to the mainboard when the number of hard disk backplanes corresponding to the mainboard is 1, 2, and 3.
[0090] Table 2
[0091]
[0092] Among them, if the pulse frequency of the configuration confirmation signal cannot be obtained, that is, as described in step S401, if the obtained configuration confirmation signal is a level signal, the number of hard disk backplanes corresponding to the mainboard can be determined according to the process described in step S401, and the hard disk configuration information can be further determined. The number of hard disk backplanes corresponding to the mainboard can also be determined according to the second mapping relationship, and the hard disk configuration information can be further determined. For example: as shown in Table 2, if the pulse frequency of the configuration confirmation signal is not obtained, and the hard disk backplane is identified as BP_1, then the number of hard disk backplanes corresponding to the mainboard is determined to be 1; if the pulse frequency of the configuration confirmation signal is not obtained, and the hard disk backplane is identified as BP_2, then the number of hard disk backplanes corresponding to the mainboard is determined to be 2; if the pulse frequency of the configuration confirmation signal is not obtained, and the hard disk backplane is identified as BP_3, then the number of hard disk backplanes corresponding to the mainboard is determined to be 3.
[0093] Wherein, if the pulse frequency of the configuration confirmation signal is obtained, the number of corresponding hard disk backplanes can be matched from the preset second mapping relationship according to the determined pulse frequency of the configuration confirmation signal and the determined hard disk backplane identifier. For example, as shown in Table 2, if the determined pulse frequency of the configuration confirmation signal is B1, and the determined hard disk backplane identifier is BP_1, the number of corresponding hard disk backplanes matched is 2; if the determined pulse frequency of the configuration confirmation signal is B2, and the determined hard disk backplane identifier is BP_2, the number of corresponding hard disk backplanes matched is 3; if the determined pulse frequency of the configuration confirmation signal is B1, and the determined hard disk backplane identifier is BP_2, the number of corresponding hard disk backplanes matched is 3. Wherein, for hard disk backplanes with the same hard disk backplane identifier, when the pulse frequencies of the obtained configuration confirmation signal are different, the number of hard disk backplanes corresponding to the mainboard determined is also different.
[0094] Optionally, the first mapping relationship and the second mapping relationship may be combined into one mapping relationship, as shown in Table 3, wherein the description of Table 3 may refer to the description of Table 1 and Table 2, and will not be repeated here.
[0095] Table 3
[0096]
[0097] Optionally, after obtaining the configuration confirmation signal and determining the hard disk configuration information according to the obtained configuration confirmation signal and the determined hard disk backplane identifier, the method further includes: extracting the pulse frequency of the configuration confirmation signal corresponding to the previous hard disk backplane identifier from the preset second mapping relationship, and sending the configuration confirmation signal corresponding to the pulse frequency to the corresponding hard disk backplane. Among them, the description of the previous hard disk backplane and the previous hard disk backplane identifier can refer to the description of the next hard disk backplane and the next hard disk backplane identifier in step S302, which will not be repeated here. For example: if the hard disk backplane identifier of the current hard disk backplane is BP_2, the previous hard disk backplane identifier is BP_1; if the hard disk backplane identifier of the current hard disk backplane is BP_3, the previous hard disk backplane identifier is BP_2. Among them, if the current hard disk does not have a corresponding previous hard disk backplane, it is impossible to extract the pulse frequency of the configuration confirmation signal corresponding to the previous hard disk backplane identifier from the preset second mapping relationship, and it is impossible to send the configuration confirmation signal. For example, if the hard disk backplane ID of the current hard disk backplane is BP_1, there is no previous hard disk backplane, and the previous hard disk backplane ID cannot be obtained.
[0098] Among them, the present application does not limit the process of extracting the pulse frequency of the configuration confirmation signal corresponding to the previous hard disk backplane identifier from the preset second mapping relationship. Any process that can extract the pulse frequency of the configuration confirmation signal corresponding to the previous hard disk backplane identifier from the preset second mapping relationship can be used as the process of extracting the pulse frequency of the configuration confirmation signal corresponding to the previous hard disk backplane identifier from the preset second mapping relationship provided by the present application. Optionally, the number of hard disk backplanes corresponding to the motherboard can be obtained from the determined hard disk configuration information, and then the pulse frequency of the configuration confirmation signal corresponding to the previous hard disk backplane identifier can be extracted from the second mapping relationship according to the number of hard disk backplanes corresponding to the motherboard and the hard disk backplane identifier. For example: if from the determined hard disk configuration information, the number of hard disk backplanes corresponding to the mainboard is 2, and the hard disk backplane identifier is BP_2, then the previous hard disk backplane identifier, that is, the configuration confirmation signal pulse frequency B1 corresponding to the hard disk backplane identifier BP_1 is extracted; if from the determined hard disk configuration information, the number of hard disk backplanes corresponding to the mainboard is 3, and the hard disk backplane identifier is BP_3, then the previous hard disk backplane identifier, that is, the configuration confirmation signal pulse frequency B1 corresponding to the hard disk backplane identifier BP_2 is extracted; if from the determined hard disk configuration information, the number of hard disk backplanes corresponding to the mainboard is 3, and the hard disk backplane identifier is BP_2, then the previous hard disk backplane identifier, that is, the configuration confirmation signal pulse frequency B2 corresponding to the hard disk backplane identifier BP_1 is extracted.
[0099] Among them, after extracting the pulse frequency of the configuration confirmation signal corresponding to the previous hard disk backplane identifier from the preset second mapping relationship, a configuration confirmation signal corresponding to the pulse frequency can be generated and sent to the corresponding hard disk backplane. Among them, the hard disk backplane corresponding to the identifier confirmation signal corresponding to the pulse frequency is the previous hard disk backplane. For example: as described in the above example, if the number of hard disk backplanes corresponding to the mainboard obtained from the determined hard disk configuration information is 2, and the hard disk backplane identifier is BP_2, then the pulse frequency of the configuration confirmation signal corresponding to the extracted previous hard disk backplane identifier, that is, the hard disk backplane identifier BP_1 is B1, and a configuration confirmation signal corresponding to the pulse frequency B1 can be generated, and the configuration confirmation signal corresponding to the pulse frequency B1 can be sent to the previous hard disk backplane, that is, the hard disk backplane with the hard disk backplane identifier BP_1.
[0100] Optionally, the pulse frequency of the identification confirmation signal sent by the hard disk backplane described in step S302, the corresponding relationship between the hard disk backplane identification, and the pulse frequency of the configuration confirmation signal sent by the hard disk backplane described in this step, the corresponding relationship between the hard disk backplane identification and the number of hard disk backplanes corresponding to the motherboard, can be combined into a mapping relationship, as shown in Table 4, wherein the description of Table 4 can refer to Figure 3 The embodiments shown and Figure 4 The description of the illustrated embodiment will not be repeated here.
[0101] Table 4
[0102]
[0103]
[0104] Optional, in Figure 2 or Figure 3 or Figure 4 On the basis of the illustrated embodiment, if the application scenario of the hard disk lighting method includes multiple motherboards, for example: a motherboard with a motherboard identifier of M and a motherboard with a motherboard identifier of N, then corresponding to different motherboards, different first mapping relationships and second mapping relationships can be determined. Among them, if the application scenario of the hard disk lighting method includes multiple motherboards, for motherboards corresponding to different motherboard identifiers, the pulse frequencies of the corresponding pulse signals are different, for example: if the hard disk backplane is identified as BP_2, and the pulse frequency of the obtained identification confirmation signal is MA1, then the motherboard identifier of the corresponding motherboard is M; if the hard disk backplane is identified as BP_2, and the pulse frequency of the obtained identification confirmation signal is NA1, then the motherboard identifier of the corresponding motherboard is N. As shown in Table 5, Table 5 summarizes the mapping relationships corresponding to the two motherboards with motherboard identifiers M and N in one table, wherein the description of Table 5 can refer to the description of Table 4, which will not be repeated here.
[0105]
[0106] Figure 5 The figure is a schematic diagram of an example of signal transmission between multiple hard disk backplanes. The figure shows an example of signal transmission between three hard disk backplanes, wherein hard disk backplane BP_1 is a hard disk backplane with hard disk backplane identification BP_1, hard disk backplane BP_2 is a hard disk backplane with hard disk backplane identification BP_2, and hard disk backplane BP_3 is a hard disk backplane with hard disk backplane identification BP_3; wherein identification confirmation signal A1 is an identification confirmation signal with a pulse frequency of A1, and identification confirmation signal A2 is an identification confirmation signal with a pulse frequency of A2; wherein configuration confirmation signal B1 is a configuration confirmation signal with a pulse frequency of B1, and configuration confirmation signal B2 is a configuration confirmation signal with a pulse frequency of B2.
[0107] The embodiment of the present application provides a process for determining hard disk configuration information based on an acquired configuration confirmation signal and a determined hard disk backplane identifier. If the acquired configuration confirmation signal is a level signal, the hard disk configuration information is determined based on the determined hard disk backplane identifier. If the acquired configuration confirmation signal is a pulse signal, the hard disk configuration information is determined based on the determined hard disk backplane identifier and a preset second mapping relationship. By confirming whether the acquired configuration confirmation signal is a level signal and matching the pulse frequency of the acquired pulse signal and the determined hard disk backplane identifier with the second mapping relationship, the hard disk configuration information can be accurately and efficiently acquired, thereby improving the accuracy of defining the virtual pin port address and further improving the accuracy of the hard disk lighting method.
[0108] In a possible embodiment, defining multiple virtual pin port addresses according to the determined hard disk backplane identifier and hard disk configuration information may include: first, obtaining the corresponding CPU configuration information of the mainboard; then, according to the corresponding CPU configuration information of the mainboard and the hard disk configuration information, determining and defining multiple virtual pin port addresses from a predefined third mapping relationship; wherein the third mapping relationship represents the correspondence between the mainboard CPU configuration information, the hard disk configuration information and the virtual pin port address. The corresponding CPU configuration information in each mainboard is different, for example, the number of CPUs configured in each mainboard may be different. Specifically, in the process of defining multiple virtual pin ports, the number of CPUs configured in the mainboard needs to be considered.
[0109] Table 6
[0110]
[0111]
[0112] Table 3 is an example of the third mapping relationship, where 7'h20, 7'h21, 7'h22, 7'h23, 7'h24, 7'h25, 7'h26, and 7'h27 are examples of virtual pin port addresses. Based on the description in step S203, if one virtual pin port address corresponds to two hard disks, and each hard disk backplane is configured with 8 hard disks, then four virtual pin port addresses need to be defined in one hard disk backplane. Therefore, in the example of the defined virtual pin port address shown in Table 6, each hard disk backplane identifier corresponds to four virtual pin port addresses. Among them, one CPU can correspond to 8 virtual pin port addresses, namely, 7'h20, 7'h21, 7'h22, 7'h23, 7'h24, 7'h25, 7'h26, and 7'h27. Specifically, if there is only one CPU identifier (BP_1) corresponding to the motherboard, and the number of hard disk backplanes corresponding to the motherboard is 1, the defined virtual pin port address can be any 4 of the above 8 virtual pin port addresses, for example: 7'h20, 7'h21, 7'h22, 7'h23. Specifically, if there are 2 CPU identifiers corresponding to the motherboard, and the number of hard disk backplanes corresponding to the motherboard is 1, the defined virtual pin port address can be any 4 of the above 8 virtual pin port addresses corresponding to each CPU, for example: 7'h20, 7'h21 in the CPU corresponding to the first CPU identifier (CPU1), and 7'h22, 7'h23 in the CPU corresponding to the second CPU identifier (CPU0). Specifically, if there are 2 CPU identifiers corresponding to the motherboard and the number of hard disk backplanes corresponding to the motherboard is 2, the defined virtual pin port addresses can be any 8 of the above 8 virtual pin port addresses corresponding to each CPU, for example: the virtual pin port addresses defined in the hard disk backplane of one hard disk backplane identifier (BP_1) are 7'h20, 7'h21, 7'h22, 7'h23 in the CPU corresponding to the first CPU identifier (CPU1), and the virtual pin port addresses defined in the hard disk backplane of another hard disk backplane identifier (BP_2) are 7'h20, 7'h21, 7'h22, 7'h23 in the CPU corresponding to the second CPU identifier (CPU0).
[0113] In a possible embodiment, before the hard disk lighting process is performed according to the defined multiple virtual pin port addresses, it may also include: communicating and connecting with the corresponding mainboard according to the defined multiple virtual pin port addresses. Among them, the present application does not limit the process of communicating and connecting with the corresponding mainboard according to the defined multiple virtual pin port addresses. Optionally, any process that can communicate and connect with the corresponding mainboard according to the defined multiple virtual pin port addresses can be used as the process of communicating and connecting with the corresponding mainboard according to the defined multiple virtual pin port addresses provided by the present application. Optionally, each virtual pin port address in the defined multiple virtual pin port addresses can be matched with the virtual pin port address in the mainboard respectively. If the match is successful, it is determined that the communication connection with the corresponding mainboard is completed. If the match fails, it is determined that the communication connection with the corresponding mainboard is not completed. Optionally, as described above, the multiple virtual pin port addresses defined correspond to the CPU of the motherboard. Therefore, the process described above of matching each of the multiple virtual pin port addresses defined with the virtual pin port address in the motherboard can be to match each of the multiple virtual pin port addresses defined with the virtual pin port address of the corresponding CPU in the motherboard. Optionally, if the match fails, a prompt message of failed communication connection can be sent to the user, wherein the present application does not limit the setting of the prompt message of failed communication connection. Optionally, the hard disk corresponding to the virtual pin port address can be illuminated to indicate failed communication connection.
[0114] In a possible embodiment, performing a hard disk lighting process according to a plurality of defined virtual pin port addresses may include: first receiving a lighting instruction sent by the corresponding mainboard. The lighting instruction indicates the corresponding virtual pin port address. Then performing a hard disk lighting process according to the corresponding virtual pin port address indicated by the lighting instruction and the plurality of defined virtual pin port addresses. The lighting instruction is used to perform a lighting process on the hard disk of the indicated corresponding virtual pin port address. For example: if the lighting instruction indicates that the corresponding virtual pin port address is 7'h20, 7'h21, the lighting instruction is used to perform a lighting process on the hard disk with the virtual pin port address of 7'h20, 7'h21. If the process of communicating and connecting with the corresponding mainboard described above is successful, that is, the mainboard and the hard disk backplane can communicate, then the lighting instruction sent by the corresponding mainboard may be received, and then according to the corresponding virtual pin port address indicated by the lighting instruction, the virtual pin port address to be lit and the hard disk corresponding to the virtual pin port address to be lit are determined from the plurality of defined virtual pin port addresses to perform a hard disk lighting process. Optionally, as described above, the defined multiple virtual pin port addresses correspond to the CPU of the mainboard. Therefore, receiving the lighting instruction sent by the corresponding mainboard is to receive the lighting instruction sent by one or more CPUs of the corresponding mainboard; the lighting instruction also indicates the CPU identifier that sends the lighting instruction; according to the corresponding virtual pin port address indicated by the lighting instruction, the virtual pin port address to be turned on is determined from the defined multiple virtual pin port addresses, and the hard disk corresponding to the virtual pin port address to be turned on, so as to perform hard disk lighting processing, which is to determine the virtual pin port address to be turned on from the defined multiple virtual pin port addresses, and the hard disk corresponding to the virtual pin port address to be turned on, according to the corresponding virtual pin port address indicated by the lighting instruction and the CPU identifier, so as to perform hard disk lighting processing.
[0115] Optionally, after obtaining the configuration confirmation signal and determining the hard disk configuration information according to the obtained configuration confirmation signal and the determined hard disk backplane identifier, multiple I2C addresses can also be defined according to the determined hard disk backplane identifier and hard disk configuration information, so that a baseboard management controller (BMC) configured in the mainboard can access the programmable logic device installed on the hard disk backplane. Specifically, the registers defined by the programmable logic device can be accessed.
[0116] 6 is a structural schematic diagram of the hard disk lighting device provided in this application, such as Figure 6 As shown, the hard disk lighting device 60 provided in this embodiment includes:
[0117] The first acquisition module 601 is used to acquire an identification confirmation signal, and determine the hard disk backplane identification according to the acquired identification confirmation signal; wherein the identification confirmation signal represents a level signal or a pulse signal used to determine the hard disk backplane identification;
[0118] The second acquisition module 602 is used to acquire a configuration confirmation signal, and determine the hard disk configuration information according to the acquired configuration confirmation signal and the determined hard disk backplane identifier; wherein the configuration confirmation signal represents a level signal or a pulse signal used to determine the hard disk configuration information; the hard disk configuration information represents the configuration information of the hard disk corresponding to the mainboard;
[0119] A definition module 603, used to define a plurality of virtual pin port addresses according to the determined hard disk backplane identifier and hard disk configuration information;
[0120] The processing module 604 is used to perform hard disk lighting processing according to the defined multiple virtual pin port addresses.
[0121] The hard disk lighting device provided in this embodiment can execute the method provided in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be described in detail here.
[0122] Figure 7 This is a schematic diagram of the structure of the electronic device provided in this application. Figure 7 As shown, the electronic device 70 provided in this embodiment includes: at least one processor 701 and a memory 702. Optionally, the device 70 further includes a communication component 703. The processor 701, the memory 702 and the communication component 703 are connected via a bus 704.
[0123] In a specific implementation process, at least one processor 701 executes the computer-executable instructions stored in the memory 702, so that at least one processor 701 executes the above method.
[0124] The specific implementation process of the processor 701 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.
[0125] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0126] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (NVM), such as at least one disk storage. In the above embodiment, it should be understood that the memory can also be a programmable logic device, wherein the programmable logic device includes but is not limited to: a digital integrated circuit (Complex Programmable Logic Device, referred to as CPLD) and a field programmable gate array (Field Programmable Gate Array, referred to as FPGA) in which the user constructs the logic function according to their own needs. Among them, CPLD is a digital integrated circuit in which the user constructs the logic function according to their own needs. Its basic design method is to generate the corresponding target file with the help of an integrated development software platform, using schematics, hardware description languages and other methods, and transmit the code to the target chip through a download cable ("in-system" programming) to realize the designed digital system. Among them, FPGA is a product further developed on the basis of programmable devices such as PAL (programmable array logic) and GAL (general array logic). It appears as a semi-custom circuit in the field of application-specific integrated circuits (ASIC), which not only solves the shortcomings of customized circuits, but also overcomes the shortcomings of the limited number of gate circuits of the original programmable device.
[0127] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.
[0128] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.
[0129] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.
[0130] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.
[0131] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.
[0132] The division of units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.
[0133] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0134] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0135] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0136] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0137] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. A method for lighting a hard disk, characterized in that: Applied to a hard disk backplane, the method comprises: Acquire an identification confirmation signal, and determine the hard disk backplane identification according to the acquired identification confirmation signal; wherein the identification confirmation signal represents a level signal or a pulse signal used to determine the hard disk backplane identification; Acquire a configuration confirmation signal, and determine the hard disk configuration information according to the acquired configuration confirmation signal and the determined hard disk backplane identifier; wherein the configuration confirmation signal represents a level signal or a pulse signal used to determine the hard disk configuration information; the hard disk configuration information represents the configuration information of the hard disk corresponding to the mainboard; Defining multiple virtual pin port addresses according to the determined hard disk backplane identifier and hard disk configuration information; The hard disk lighting process is performed according to the defined multiple virtual pin port addresses.
2. The method according to claim 1, characterized in that Determine the hard disk backplane identification according to the obtained identification confirmation signal, including: If the obtained identification confirmation signal is a level signal, determining that the hard disk backplane identification is the hard disk backplane identification corresponding to the first hard disk backplane; If the obtained identification confirmation signal is a pulse signal, the hard disk backplane identification is determined according to a preset first mapping relationship; wherein the first mapping relationship represents the correspondence between the pulse frequency of the identification confirmation signal and the hard disk backplane identification.
3. The method according to claim 2, characterized in that If the acquired identification confirmation signal is a pulse signal, determining the hard disk backplane identification according to a preset first mapping relationship includes: If the acquired identification confirmation signal is a pulse signal, determining the pulse frequency of the identification confirmation signal; According to the determined pulse frequency of the identification confirmation signal, the corresponding hard disk backplane identification is matched from the preset first mapping relationship.
4. The method according to claim 2, characterized in that: After obtaining the identification confirmation signal and determining the hard disk backplane identification according to the obtained identification confirmation signal, the method further includes: The pulse frequency of the identification confirmation signal corresponding to the next hard disk backplane identification is extracted from the preset first mapping relationship, and the identification confirmation signal corresponding to the pulse frequency is sent to the corresponding hard disk backplane.
5. The method according to claim 1, characterized in that Determine the hard disk configuration information according to the acquired configuration confirmation signal and the determined hard disk backplane identifier, including: If the acquired configuration confirmation signal is a level signal, the hard disk configuration information is determined according to the determined hard disk backplane identifier; If the acquired configuration confirmation signal is a pulse signal, the hard disk configuration information is determined according to the determined hard disk backplane identifier and a preset second mapping relationship; wherein the second mapping relationship represents the correspondence between the pulse frequency of the configuration confirmation signal, the hard disk backplane identifier and the number of hard disk backplanes.
6. The method according to claim 5, characterized in that Determine the hard disk configuration information according to the determined hard disk backplane identifier, including: According to the determined hard disk backplane identifier, determine the number of hard disk backplanes corresponding to the mainboard; The hard disk configuration information is determined according to the number of hard disks configured in each hard disk backplane and the number of hard disk backplanes corresponding to the determined mainboard.
7. The method according to claim 5, characterized in that If the acquired configuration confirmation signal is a pulse signal, the hard disk configuration information is determined according to the determined hard disk backplane identifier and a preset second mapping relationship, including: If the acquired configuration confirmation signal is a pulse signal, determining the pulse frequency of the configuration confirmation signal; According to the determined pulse frequency of the configuration confirmation signal and the determined hard disk backplane identifier, matching the number of corresponding hard disk backplanes from the preset second mapping relationship; The hard disk configuration information is determined according to the number of hard disks configured in each hard disk backplane and the number of the matched corresponding hard disk backplanes.
8. The method according to claim 5, characterized in that After obtaining the configuration confirmation signal and determining the hard disk configuration information according to the obtained configuration confirmation signal and the determined hard disk backplane identifier, the method further includes: The pulse frequency of the configuration confirmation signal corresponding to the previous hard disk backplane identifier is extracted from the preset second mapping relationship, and the configuration confirmation signal corresponding to the pulse frequency is sent to the corresponding hard disk backplane.
9. The method according to claim 1, characterized in that: According to the determined hard disk backplane identification and hard disk configuration information, multiple virtual pin port addresses are defined, including: Get the CPU configuration information of the corresponding motherboard; According to the corresponding motherboard CPU configuration information and hard disk configuration information, multiple virtual pin port addresses are determined and defined from a predefined third mapping relationship; wherein the third mapping relationship represents the correspondence between the motherboard CPU configuration information, hard disk configuration information and virtual pin port addresses.
10. The method according to claim 1, characterized in that According to the defined multiple virtual pin port addresses, the hard disk lighting process is performed, including: Receive a lighting instruction sent by the corresponding mainboard; wherein the lighting instruction indicates the corresponding virtual pin port address; The hard disk lighting process is performed according to the corresponding virtual pin port address indicated by the lighting instruction and the defined multiple virtual pin port addresses.
11. The method according to any one of claims 1 to 10, characterized in that Before the hard disk lighting process is performed according to the defined multiple virtual pin port addresses, it also includes: According to the defined multiple virtual pin port addresses, a communication connection is established with the corresponding mainboard.
12. A hard disk lighting device, characterized in that: include: A first acquisition module is used to acquire an identification confirmation signal, and determine the hard disk backplane identification according to the acquired identification confirmation signal; wherein the identification confirmation signal represents a level signal or a pulse signal used to determine the hard disk backplane identification; The second acquisition module is used to acquire a configuration confirmation signal, and determine the hard disk configuration information according to the acquired configuration confirmation signal and the determined hard disk backplane identifier; wherein the configuration confirmation signal represents a level signal or a pulse signal used to determine the hard disk configuration information; the hard disk configuration information represents the configuration information of the hard disk corresponding to the mainboard; A definition module, used for defining a plurality of virtual pin port addresses according to the determined hard disk backplane identification and hard disk configuration information; The processing module is used to perform hard disk lighting processing according to the defined multiple virtual pin port addresses.
13. An electronic device, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 11.
