CN117077221A - Hard disk screen printing distribution method and device, computer equipment and medium - Google Patents

Hard disk screen printing distribution method and device, computer equipment and medium Download PDF

Info

Publication number
CN117077221A
CN117077221A CN202310885700.2A CN202310885700A CN117077221A CN 117077221 A CN117077221 A CN 117077221A CN 202310885700 A CN202310885700 A CN 202310885700A CN 117077221 A CN117077221 A CN 117077221A
Authority
CN
China
Prior art keywords
hard disk
interface
interfaces
preset condition
low level
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310885700.2A
Other languages
Chinese (zh)
Inventor
杨震
徐志远
姚藩益
杨霖
刘召琦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202310885700.2A priority Critical patent/CN117077221A/en
Publication of CN117077221A publication Critical patent/CN117077221A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/71Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information
    • G06F21/73Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information by creating or determining hardware identification, e.g. serial numbers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/06Addressing a physical block of locations, e.g. base addressing, module addressing, memory dedication
    • G06F12/0646Configuration or reconfiguration

Abstract

The present application relates to the field of computer technologies, and in particular, to a method and apparatus for distributing hard disk screen printing, a computer device, and a medium. The method comprises the following steps: acquiring high-low level signals of a plurality of hard disks; establishing mapping relations between a plurality of hard disk high-low level signals and different hard disk configuration types; judging whether the hard disk configuration type accords with a first preset condition or not; when the hard disk configuration type accords with a first preset condition, acquiring a main board ID value of a main board connected with the current hard disk; the main board ID value determines the type of the equipment connected with the hard disk; when the machine type of the equipment connected with the hard disk accords with a second preset condition, acquiring interface information of the hard disk; and sequencing the interfaces of the hard disk, and distributing silk-screen information corresponding to the hard disk interfaces according to the sequencing of the hard disk interfaces and the interface information. The method can improve the efficiency and accuracy of silk-screen distribution of the hard disk equipment.

Description

Hard disk screen printing distribution method and device, computer equipment and medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and apparatus for distributing hard disk screen printing, a computer device, and a medium.
Background
With the continuous optimization of server technology and function implementation, more and more configurations are supported by the server, and configuration information of the server needs to be displayed in a bios setup (basic input output system setup function) to help a user to know the specific location situation of a device connected to the current server system. The BIOS is a set of programs solidified on a ROM (read only memory) chip on a main board in the computer, and stores the most important basic input and output programs, system setting information, a self-checking program after starting and a system self-starting program of the computer, and the main functions of the BIOS are to provide the bottommost and most direct hardware setting and control for the computer.
However, with the development of server technology, the configuration of servers is increasing, and the number of devices included in each configuration is dynamically changed, so that the display and processing methods for the configuration information of the server devices in the related art cannot meet the functional requirements.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a hard disk screen printing distribution method, apparatus, computer device, and storage medium capable of realizing accurate positioning of external devices connected to different device interfaces.
In order to solve the above technical problem, in a first aspect, a multi-configuration hard disk screen printing distribution method is provided, including:
acquiring high-low level signals of a plurality of hard disks;
establishing mapping relations between a plurality of hard disk high-low level signals and different hard disk configuration types;
judging whether the hard disk configuration type accords with a first preset condition or not;
when the hard disk configuration type accords with a first preset condition, acquiring a main board ID value of a main board connected with the current hard disk; the main board ID value determines the type of the equipment connected with the hard disk;
when the machine type of the equipment connected with the hard disk accords with a second preset condition, acquiring interface information of the hard disk;
and sequencing the interfaces of the hard disk, and distributing silk-screen information corresponding to the hard disk interfaces according to the sequencing of the hard disk interfaces.
In one embodiment, the method further comprises: and obtaining high-low level signals of a plurality of hard disks by a GPIO read value or IC2 read value method.
In one embodiment, the obtaining the high-low level signals of the plurality of hard disks through the GPIO reading method includes:
detecting a high-low level signal of each interface in the hard disk based on a GPIO pin connected with the hard disk;
and determining a bandwidth demand array corresponding to each interface of the hard disk based on the high-low level signals of each interface in the hard disk, and setting the bandwidth of each interface in the hard disk based on the bandwidth demand array.
In one embodiment, establishing a mapping relationship between the plurality of high and low level signals and different hard disk configuration types includes:
obtaining high-low level signals of a plurality of hard disks by a method of reading values of the IC2 comprises the following steps:
acquiring each interface response signal of the hard disk based on an IC2 driving chip connected with the main board;
analyzing each interface response signal of the hard disk to obtain a bandwidth demand array corresponding to each interface of the hard disk;
and setting the bandwidth of each interface in the hard disk based on the bandwidth demand array.
In one embodiment, establishing a mapping relationship between the plurality of high and low level signals and different hard disk configuration types includes:
and establishing a mapping relation between the bandwidth demand array corresponding to each interface of the hard disk and each interface bandwidth type of the hard disk.
In one embodiment, when the hard disk configuration type meets a first preset condition, acquiring a main board ID value of a main board connected with the current hard disk; comprising the following steps:
obtaining a bandwidth type corresponding to each interface of the hard disk;
when the bandwidth type corresponding to each interface of the hard disk accords with a first preset condition, acquiring a main board ID value of a main board connected with the current hard disk; the first preset condition is that the bandwidth type corresponding to the hard disk is the bandwidth type adapted to the NVME hard disk.
In one embodiment, ordering the interfaces of the hard disk, and distributing the silk-screen information corresponding to the hard disk interface according to the ordering of the hard disk interfaces and the interface information includes:
traversing all the hard disk interfaces, and judging whether the current hard disk interface is suitable for silk screen printing or not;
if the front hard disk interface is not suitable for screen printing, configuring an interface serial number for the hard disk interface which is not suitable for screen printing, and sequencing the interfaces of the hard disk according to the interface serial number; distributing silk-screen information corresponding to the hard disk interfaces according to the ordering of the hard disk interfaces; establishing a mapping relation table of the hard disk interface sequence and corresponding silk-screen information thereof so as to facilitate management of the hard disk according to the silk-screen information;
and if the front hard disk interface is already adaptive to the screen printing, setting the attribute of the current hard disk interface to be hidden in the basic input/output system.
In order to solve the above technical problem, in a second aspect, there is provided a hard disk screen printing distribution device, the device comprising:
the acquisition module is used for acquiring high-low level signals of a plurality of hard disks; when the hard disk configuration type accords with a first preset condition, acquiring a main board ID value of a main board connected with the current hard disk; the main board ID value determines the type of the equipment connected with the hard disk; when the machine type of the equipment connected with the hard disk accords with a second preset condition, acquiring interface information of the hard disk;
the mapping module is used for establishing mapping relations between the high-low level signals of the plurality of hard disks and different hard disk configuration types;
the judging module is used for judging whether the hard disk configuration type accords with a first preset condition or not and judging whether the machine type of the equipment connected with the hard disk accords with a second preset condition or not;
the ordering module is used for ordering the interfaces of the hard disk;
and the distribution module is used for distributing silk-screen information corresponding to the hard disk interfaces according to the ordering of the hard disk interfaces and the interface information.
In order to solve the above technical problem, in a third aspect, there is provided a computer device including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: the steps of the method of the first aspect described above are implemented when the processor executes a computer program.
In order to solve the above technical problem, in a fourth aspect, the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of the first aspect.
The method provided by the application comprises the following steps, different from the prior art: acquiring high-low level signals of a plurality of hard disks; establishing mapping relations between a plurality of hard disk high-low level signals and different hard disk configuration types; judging whether the hard disk configuration type accords with a first preset condition or not; when the hard disk configuration type accords with a first preset condition, acquiring a main board ID value of a main board connected with the current hard disk; the main board ID value determines the type of the equipment connected with the hard disk; when the machine type of the equipment connected with the hard disk accords with a second preset condition, acquiring interface information of the hard disk; and sequencing the interfaces of the hard disk, and distributing silk-screen information corresponding to the hard disk interfaces according to the sequencing of the hard disk interfaces and the interface information. The method can improve the efficiency and accuracy of silk-screen distribution of the hard disk equipment.
Drawings
FIG. 1 is a flow chart of a hard disk silk-screen dispensing method in one embodiment;
FIG. 2 is a block diagram of a hard disk screen distributing device according to an embodiment;
FIG. 3 is an internal block diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
In server production, the chassis is printed with silk-screening information to display the device location. In the rapid development of science and technology, under the circumstance that the demands of clients tend to be diversified, more demands are placed on the complex configuration of the server. Where silk screening of NVME devices is also more complex. The traditional mode is to directly judge different configurations, and adapt to the silk screen printing of the NVME equipment according to the configurations. When there are more configurations and more NVME devices, the workload and code risk are greatly increased.
And different machine type configurations meet different configuration requirements by using different interfaces or using different functions on the same interface. The GPIO read values and IC2 read values used in different configurations may also be different, and the different GPIO read values and IC2 read values may be represented by the values of the high and low level signals. Therefore, the embodiment of the application provides a multi-configuration hard disk screen printing distribution method, which judges the configuration information of equipment interfaces through GPIO read values and IC2 read values, sorts the hard disk interfaces, distributes screen printing information corresponding to the hard disk interfaces according to the sorting of the hard disk interfaces, can reduce redundancy and complexity of codes, and can meet the requirement of automatically distributing hard disk screen printing under different multi-configurations.
The application provides a hard disk screen printing distribution method which can be applied to, but not limited to, a BIOS (Basic InputOutputSystem ) in a server, wherein the method comprises the following steps: acquiring high-low level signals of a plurality of hard disks; establishing mapping relations between a plurality of hard disk high-low level signals and different hard disk configuration types; judging whether the hard disk configuration type accords with a first preset condition or not; when the hard disk configuration type accords with a first preset condition, acquiring a main board ID value of a main board connected with the current hard disk; the main board ID value determines the type of the equipment connected with the hard disk; when the machine type of the equipment connected with the hard disk accords with a second preset condition, acquiring interface information of the hard disk; and sequencing the interfaces of the hard disk, and distributing silk-screen information corresponding to the hard disk interfaces according to the sequencing of the hard disk interfaces and the interface information. The method can improve the efficiency and accuracy of silk-screen distribution of the hard disk equipment.
It should be noted that, the embodiment of the present application is described with a server architecture of the Intel platform, but the method is not limited to servers of the Intel platform, and is not limited to server systems, and has a general application value on server systems of other platforms or other computer systems.
In one embodiment, as shown in fig. 1, fig. 1 is a flow chart of a hard disk screen printing distribution method in one embodiment, which specifically includes the following steps:
step S101: and acquiring high-low level signals of a plurality of hard disks.
Specifically, during the initial start-up period, the BIOS may obtain the high-low level signal of each hard disk interface of each hard disk in the plurality of hard disks through a GPIO read value or an IC2 read value method.
GPIO (general purpose input/output ports) are some pins of a chip. When the GPIO read value is used as an input port, the state of the read pin can be read into the high level or the low level by the GPIO read value, and when the GPIO read value is used as an output port, the connected external device can be controlled by outputting the high level or the low level by the GPIO read value, the GPIO read value can be executed by using a GPIO driver of the bottom layer of the system, independent development is not needed, and the cost can be saved.
In this embodiment, the level value of each interface of the hard disk may be detected based on the GPIO pin. In practical applications, when the hard disk interface is not connected to an external device, the level of the GPIO pin is high, and when the hard disk interface is connected to the external device, the level of the GPIO pin is pulled down. Because the external device has different bandwidth requirements on the hard disk interfaces, the pins with the level being pulled down in each interface are different, so that the corresponding level value arrays are different, for example, one interface comprises 4 GPIO pins for detecting and identifying the bandwidth requirements of the external device, and the bandwidth type of the external device is identified by reading the values of the GPIO pins.
For example, in a particular embodiment, the GPIO pins may include a first GPIO pin and a second GPIO pin. The read value 1 represents high level, the value 0 represents low level, when the external device is not connected to the interface, the value of the level value is 1111, the bandwidth requirement of the external device is x2, the level of the first GPIO pin is pulled down, the corresponding level value array is 0111, the bandwidth requirement of the external device is x4, the levels of the first GPIO pin and the second GPIO pin are pulled down, and the corresponding level value array is 0011; based on the above, the bandwidth requirement corresponding to each interface can be obtained based on the level value array corresponding to each interface. It should be noted that, the bandwidth requirement corresponding to each interface is the bandwidth requirement of the external device connected to the interface.
Optionally, in this embodiment, the external device is a hard disk device, and the hard disk device may be, but not limited to, an NVME hard disk (NVME, non-volatile memory express, non-volatile memory host controller interface specification), and the type of the hard disk device is not limited (for example, solid state Drive, hybrid hard Drive, and conventional hard disk HardDiskDrive, etc.), and specifically may be adjusted according to a management requirement of a device accessed by the server, where a processing mechanism is the same, and may also be other types of devices.
In another embodiment, the high-low level signals of a plurality of hard disks can be obtained by means of IC2 reading values. Specifically, each interface response signal of the hard disk can be obtained through an IC2 driving chip connected with the main board; analyzing the response signal of each interface of the hard disk to obtain the bandwidth demand array corresponding to each interface of the hard disk.
I2C is a very common communication protocol applied by an IC2 driver chip, where the IC2 is composed of two bidirectional signal lines, a data line SDA and a clock line SCL, and the CPU sends out a clock signal using a serial clock line and sends or receives data using a serial data line. The SDA line transmission data is a large end transmission (byte high order first pass), 8 bits each time, i.e., 1 byte. The portability of the IC2 protocol is good, and even in different devices, the same set of codes can be used to drive as long as the protocol is met. For example, four cases of 00, 01, 10 and 11 can occur through bits 0-1 in the I2C, namely, the bandwidth requirement array corresponding to each interface, and the cases can be respectively set as x16, x8x8, x4x4x4 corresponding to the bandwidth types.
Judging whether the bandwidth type of the hard disk interface is the bandwidth type required by the hard disk or not by using a GPIO read value or IC2 read value method, and distinguishing the types of different hard disk interfaces. And then, the chassis is subjected to screen printing according to different hard disk interface types, so that the screen printing distribution accuracy of the hard disk equipment is improved.
Optionally, if the bandwidth type of the hard disk interface is the bandwidth type required by the hard disk, further judging whether the hard disk interface is a hard disk interface which is already adapted to the chassis screen printing, and whether the hard disk interface is a subsequent interface which needs to be connected with the hard disk device, if the fact that the subsequent device interface does not need to be connected with the hard disk device or other external devices is judged, indicating that the external interface is an interface without practical application, hiding the interface, so that only the external interface which can be subsequently applied by the user is displayed on the BOIS display interface, and the interference of the device interface without practical application to the user can be reduced.
Step S102: and establishing mapping relations between the high and low level signals of the plurality of hard disks and different hard disk configuration types.
Specifically, the above steps are used to obtain the bandwidth requirement array of each interface of the hard disk and the mapping relation of the bandwidth type of each interface of each hard disk.
For example, four cases of 00, 01, 10 and 11 can occur when bits 0-1 are 2 bits in the I2C method, and the cases can be respectively set as x16, x8x8, x4x4x4x4. Here 00 corresponds to the bandwidth type x 16.
Step S103: judging whether the hard disk configuration type meets a first preset condition or not.
Step S104: when the hard disk configuration type accords with a first preset condition, acquiring a main board ID value of a main board connected with the current hard disk; the motherboard ID value determines the type of the device connected to the hard disk.
Specifically, after obtaining the bandwidth type of each interface of the hard disk through the above steps, it may be determined whether the bandwidth type (hard disk configuration type) of each interface of the hard disk meets the first preset condition. And when the bandwidth type corresponding to each interface of the hard disk accords with a first preset condition, acquiring a main board ID value of a main board connected with the current hard disk. The first preset condition is that the bandwidth type corresponding to the hard disk is the bandwidth type adapted to the NVME hard disk.
It can be understood that if the bandwidth type of the interface of the hard disk does not meet the first preset condition, the subsequent operation of silk-screen printing of the distributor box is not performed on the hard disk interface.
Step S105: and when the machine type of the equipment connected with the hard disk accords with the second preset condition, acquiring interface information of the hard disk.
Alternatively, the model of the device (host) to which the hard disk is connected may be determined by the ID value of the main board. For example, the ID value of the motherboard may be called by a locatehandlebuffer function, to determine an attribute parameter of the host device, and determine a type of the corresponding host device according to the attribute parameter of the host device. The second preset condition may be to determine whether the type of the host device is a specially configured model.
Here, in order to determine whether a device connected to a hard disk is a specially configured model, some models are specially configured, even if the interface bandwidth configuration thereof meets the requirement of the interface bandwidth of the hard disk. However, the interface may be an interface for connecting other external devices, for example, in a specific embodiment, we need to configure the bandwidth of the NVME, where the interface is an X4 type bandwidth, and the X4 type bandwidth is set in accordance with the bandwidth of the NVME, but because of the requirement of a special configuration model, we need to configure the interface with a PICE device, at this time, we determine the model of the device connected to the hard disk through the ID value of the motherboard, so that it is possible to avoid distributing silk-screen to the interface that has been specially set, and benefit the efficiency of silk-screen distribution of the subsequent hard disk device.
Step S106: and sequencing the interfaces of the hard disk, and distributing silk-screen information corresponding to the hard disk interfaces according to the sequencing of the hard disk interfaces and the interface information.
Specifically, traversing all hard disk interfaces, and judging whether the current hard disk interface is suitable for silk screen printing or not; and configuring interface serial numbers for the hard disk interfaces which are not adapted to the screen printing, writing serial numbers for all the acquired hard disk interfaces, and configuring the chassis screen printing for each hard disk interface according to the serial number sequence of the hard disk interface based on the positions of the hard disk interfaces. And establishing a mapping relation table of the hard disk interface sequence and the corresponding silk-screen information so as to facilitate management of the hard disk according to the silk-screen information.
In another embodiment, traversing all hard disk interfaces, and judging whether the current hard disk interface is suitable for silk screen printing; and if the front hard disk interface is already adaptive to the screen printing, setting the attribute of the current hard disk interface to be hidden in the basic input/output system.
In the embodiment of the application, the broadband configuration type of the hard disk interface is obtained by obtaining the high-low level signals of the hard disk interface, whether the interface configuration type is the interface configuration type suitable for connecting equipment is judged, so that the configuration requirement of an external interface is determined, the type of a main board connected with the equipment interface which meets the configuration requirement is further judged, whether the interface which meets the configuration requirement is an interface which needs to be connected with other external equipment is judged, if the interface needs to be connected with the external equipment, the distribution of the box silk screen of the interface is not carried out subsequently, and the distribution processing is carried out uniformly on the box silk screen of the interface under different types and different configurations in a mode, so that the situation that the server configuration is too complex is avoided, even if the equipment is mixed, the equipment is reduced, the flexible requirements such as equipment configuration are met, the efficiency and the accuracy of silk screen distribution of the hard disk equipment are improved.
It should be understood that, although the steps in the flowchart of fig. 1 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 1 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of other steps or sub-steps of other steps.
In one embodiment, as shown in fig. 2, there is provided a hard disk screen printing dispensing device, including: the device comprises an acquisition module, a mapping module, a judging module, a sequencing module and an allocation module, wherein:
the acquisition module is used for acquiring high-low level signals of a plurality of hard disks; when the hard disk configuration type accords with a first preset condition, acquiring a main board ID value of a main board connected with the current hard disk; the main board ID value determines the type of the equipment connected with the hard disk; when the machine type of the equipment connected with the hard disk accords with a second preset condition, acquiring interface information of the hard disk;
the mapping module is used for establishing mapping relations between the high-low level signals of the plurality of hard disks and different hard disk configuration types;
the judging module is used for judging whether the hard disk configuration type accords with a first preset condition or not and judging whether the machine type of the equipment connected with the hard disk accords with a second preset condition or not;
the ordering module is used for ordering the interfaces of the hard disk;
and the distribution module is used for distributing silk-screen information corresponding to the hard disk interfaces according to the ordering of the hard disk interfaces.
For specific limitations of the hard disk silk-screen dispensing apparatus, reference is made to the above limitations of the hard disk silk-screen dispensing method, and no further description is given here. The modules in the multi-configuration hard disk screen printing distribution device can be realized in whole or in part by software, hardware and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 3. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used to store the data required for applying the multi-configuration hard disk screen distribution described above. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a hard disk screen printing distribution method.
It will be appreciated by those skilled in the art that the structure shown in FIG. 3 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of when executing the computer program:
step S101: and acquiring high-low level signals of a plurality of hard disks.
Step S102: and establishing mapping relations between the high and low level signals of the plurality of hard disks and different hard disk configuration types.
Step S103: judging whether the hard disk configuration type meets a first preset condition or not.
Step S104: when the hard disk configuration type accords with a first preset condition, acquiring a main board ID value of a main board connected with the current hard disk; the motherboard ID value determines the type of the device connected to the hard disk.
Step S105: and when the machine type of the equipment connected with the hard disk accords with the second preset condition, acquiring interface information of the hard disk.
Step S106: and sequencing the interfaces of the hard disk, and distributing silk-screen information corresponding to the hard disk interfaces according to the sequencing of the hard disk interfaces and the interface information.
In one embodiment, another implementation manner of the hard disk silk-screen distribution method that can be implemented by the device includes the following specific steps:
and obtaining high-low level signals of a plurality of hard disks by a GPIO read value or IC2 read value method.
In one embodiment, another implementation manner of the hard disk silk-screen distribution method that can be implemented by the device includes the following specific steps:
the method for obtaining the high-low level signals of a plurality of hard disks through the GPIO reading method comprises the following steps:
detecting a high-low level signal of each interface in the hard disk based on a GPIO pin connected with the hard disk;
and determining a bandwidth demand array corresponding to each interface of the hard disk based on the high-low level signals of each interface in the hard disk, and setting the bandwidth of each interface in the hard disk based on the bandwidth demand array.
In one embodiment, another implementation manner of the hard disk silk-screen distribution method that can be implemented by the device includes the following specific steps:
the establishing of the mapping relation between the high-low level signals and different hard disk configuration types comprises the following steps:
obtaining high-low level signals of a plurality of hard disks by a method of reading values of the IC2 comprises the following steps:
acquiring each interface response signal of the hard disk based on an IC2 driving chip connected with the main board;
analyzing each interface response signal of the hard disk to obtain a bandwidth demand array corresponding to each interface of the hard disk;
and setting the bandwidth of each interface in the hard disk based on the bandwidth demand array.
In one embodiment, another implementation manner of the hard disk silk-screen distribution method that can be implemented by the device includes the following specific steps:
the establishing of the mapping relation between the high-low level signals and different hard disk configuration types comprises the following steps:
and establishing a mapping relation between the bandwidth demand array corresponding to each interface of the hard disk and each interface bandwidth type of the hard disk.
In one embodiment, another implementation manner of the hard disk silk-screen distribution method that can be implemented by the device includes the following specific steps:
when the hard disk configuration type accords with a first preset condition, acquiring a main board ID value of a main board connected with the current hard disk; comprising the following steps:
obtaining a bandwidth type corresponding to each interface of the hard disk;
when the bandwidth type corresponding to each interface of the hard disk accords with a first preset condition, acquiring a main board ID value of a main board connected with the current hard disk; the first preset condition is that the bandwidth type corresponding to the hard disk is the bandwidth type adapted to the NVME hard disk.
In one embodiment, another implementation manner of the hard disk silk-screen distribution method that can be implemented by the device includes the following specific steps:
ordering the interfaces of the hard disk, and distributing the corresponding silk-screen information of the hard disk interface according to the ordering of the hard disk interfaces and the interface information comprises the following steps:
traversing all the hard disk interfaces, and judging whether the current hard disk interface is suitable for silk screen printing or not;
if the front hard disk interface is not suitable for screen printing, configuring an interface serial number for the hard disk interface which is not suitable for screen printing, and sequencing the interfaces of the hard disk according to the interface serial number; distributing silk-screen information corresponding to the hard disk interfaces according to the ordering of the hard disk interfaces; establishing a mapping relation table of the hard disk interface sequence and corresponding silk-screen information thereof so as to facilitate management of the hard disk according to the silk-screen information;
and if the front hard disk interface is already adaptive to the screen printing, setting the attribute of the current hard disk interface to be hidden in the basic input/output system.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
step S101: and acquiring high-low level signals of a plurality of hard disks.
Step S102: and establishing mapping relations between the high and low level signals of the plurality of hard disks and different hard disk configuration types.
Step S103: judging whether the hard disk configuration type meets a first preset condition or not.
Step S104: when the hard disk configuration type accords with a first preset condition, acquiring a main board ID value of a main board connected with the current hard disk; the motherboard ID value determines the type of the device connected to the hard disk.
Step S105: and when the machine type of the equipment connected with the hard disk accords with the second preset condition, acquiring interface information of the hard disk.
Step S106: and sequencing the interfaces of the hard disk, and distributing silk-screen information corresponding to the hard disk interfaces according to the sequencing of the hard disk interfaces and the interface information.
In one embodiment, another implementation manner of the hard disk silk-screen distribution method that can be implemented by the device includes the following specific steps:
and obtaining high-low level signals of a plurality of hard disks by a GPIO read value or IC2 read value method.
In one embodiment, another implementation manner of the hard disk silk-screen distribution method that can be implemented by the device includes the following specific steps:
the method for obtaining the high-low level signals of a plurality of hard disks through the GPIO reading method comprises the following steps:
detecting a high-low level signal of each interface in the hard disk based on a GPIO pin connected with the hard disk;
and determining a bandwidth demand array corresponding to each interface of the hard disk based on the high-low level signals of each interface in the hard disk, and setting the bandwidth of each interface in the hard disk based on the bandwidth demand array.
In one embodiment, another implementation manner of the hard disk silk-screen distribution method that can be implemented by the device includes the following specific steps:
the establishing of the mapping relation between the high-low level signals and different hard disk configuration types comprises the following steps:
obtaining high-low level signals of a plurality of hard disks by a method of reading values of the IC2 comprises the following steps:
acquiring each interface response signal of the hard disk based on an IC2 driving chip connected with the main board;
analyzing each interface response signal of the hard disk to obtain a bandwidth demand array corresponding to each interface of the hard disk;
and setting the bandwidth of each interface in the hard disk based on the bandwidth demand array.
In one embodiment, another implementation manner of the hard disk silk-screen distribution method that can be implemented by the device includes the following specific steps:
the establishing of the mapping relation between the high-low level signals and different hard disk configuration types comprises the following steps:
and establishing a mapping relation between the bandwidth demand array corresponding to each interface of the hard disk and each interface bandwidth type of the hard disk.
In one embodiment, another implementation manner of the hard disk silk-screen distribution method that can be implemented by the device includes the following specific steps:
when the hard disk configuration type accords with a first preset condition, acquiring a main board ID value of a main board connected with the current hard disk; comprising the following steps:
obtaining a bandwidth type corresponding to each interface of the hard disk;
when the bandwidth type corresponding to each interface of the hard disk accords with a first preset condition, acquiring a main board ID value of a main board connected with the current hard disk; the first preset condition is that the bandwidth type corresponding to the hard disk is the bandwidth type adapted to the NVME hard disk.
In one embodiment, another implementation manner of the hard disk silk-screen distribution method that can be implemented by the device includes the following specific steps:
ordering the interfaces of the hard disk, and distributing the corresponding silk-screen information of the hard disk interface according to the ordering of the hard disk interfaces and the interface information comprises the following steps:
traversing all the hard disk interfaces, and judging whether the current hard disk interface is suitable for silk screen printing or not;
if the front hard disk interface is not suitable for screen printing, configuring an interface serial number for the hard disk interface which is not suitable for screen printing, and sequencing the interfaces of the hard disk according to the interface serial number; distributing silk-screen information corresponding to the hard disk interfaces according to the ordering of the hard disk interfaces; establishing a mapping relation table of the hard disk interface sequence and corresponding silk-screen information thereof so as to facilitate management of the hard disk according to the silk-screen information;
and if the front hard disk interface is already adaptive to the screen printing, setting the attribute of the current hard disk interface to be hidden in the basic input/output system.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (10)

1. The hard disk screen printing distribution method is characterized by comprising the following steps of:
acquiring high-low level signals of a plurality of hard disks;
establishing mapping relations between a plurality of hard disk high-low level signals and different hard disk configuration types;
judging whether the hard disk configuration type accords with a first preset condition or not;
when the hard disk configuration type accords with a first preset condition, acquiring a main board ID value of a main board connected with the current hard disk; the main board ID value determines the type of the equipment connected with the hard disk;
when the machine type of the equipment connected with the hard disk accords with a second preset condition, acquiring interface information of the hard disk;
and sequencing the interfaces of the hard disk, and distributing silk-screen information corresponding to the hard disk interfaces according to the sequencing of the hard disk interfaces and the interface information.
2. The method of claim 1, wherein the high-low level signals of the plurality of hard disks are obtained by a GPIO reading method or an IC2 reading method.
3. The method of claim 2, wherein the obtaining high-low level signals of the plurality of hard disks by the GPIO reading method comprises:
detecting a high-low level signal of each interface in the hard disk based on a GPIO pin connected with the hard disk;
and determining a bandwidth demand array corresponding to each interface of the hard disk based on the high-low level signals of each interface in the hard disk, and setting the bandwidth of each interface in the hard disk based on the bandwidth demand array.
4. The method of claim 2, wherein obtaining high and low level signals of the plurality of hard disks by the method of IC2 reading values comprises:
acquiring each interface response signal of the hard disk based on an IC2 driving chip connected with a main board;
analyzing each interface response signal of the hard disk to obtain a bandwidth demand array corresponding to each interface of the hard disk;
and setting the bandwidth of each interface in the hard disk based on the bandwidth demand array.
5. The method of claim 1, wherein the establishing a mapping relationship between the plurality of high and low level signals and different hard disk configuration types comprises:
and establishing a mapping relation between the bandwidth demand array corresponding to each interface of the hard disk and each interface bandwidth type of the hard disk.
6. The method of claim 5, wherein when the hard disk configuration type meets a first preset condition, acquiring a motherboard ID value of a motherboard connected to a current hard disk; comprising the following steps:
acquiring a bandwidth type corresponding to each interface of the hard disk;
when the bandwidth type corresponding to each interface of the hard disk accords with a first preset condition, acquiring a main board ID value of a main board connected with the current hard disk; and the first preset condition is that the bandwidth type corresponding to the hard disk is the bandwidth type adapted to the NVME hard disk.
7. The method of claim 1, wherein the ordering the interfaces of the hard disk, and the distributing the silk-screen information corresponding to the hard disk interface according to the ordering of the hard disk interfaces and the interface information comprises:
traversing all the hard disk interfaces, and judging whether the current hard disk interface is suitable for silk screen printing or not;
if the front hard disk interface is not suitable for screen printing, configuring an interface serial number for the hard disk interface which is not suitable for screen printing, and sequencing the interfaces of the hard disk according to the interface serial number; distributing silk-screen information corresponding to the hard disk interfaces according to the ordering of the hard disk interfaces; establishing a mapping relation table of the hard disk interface sequence and corresponding screen printing information thereof so as to manage the hard disk according to the screen printing information;
and if the front hard disk interface is already adaptive to the screen printing, setting the attribute of the current hard disk interface to be hidden in the basic input/output system.
8. A hard disk screen printing dispensing device, the device comprising:
the acquisition module is used for acquiring high-low level signals of a plurality of hard disks; when the hard disk configuration type meets a first preset condition, acquiring a main board ID value of a main board connected with the current hard disk; the main board ID value determines the type of the equipment connected with the hard disk; when the machine type of the equipment connected with the hard disk accords with a second preset condition, acquiring interface information of the hard disk;
the mapping module is used for establishing mapping relations between the high-low level signals of the plurality of hard disks and different hard disk configuration types;
the judging module is used for judging whether the hard disk configuration type accords with a first preset condition or not and judging whether the machine type of the equipment connected with the hard disk accords with a second preset condition or not;
the ordering module is used for ordering the interfaces of the hard disk;
and the distribution module is used for distributing the silk-screen information corresponding to the hard disk interfaces according to the ordering of the hard disk interfaces and the interface information.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 7 when the computer program is executed by the processor.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
CN202310885700.2A 2023-07-19 2023-07-19 Hard disk screen printing distribution method and device, computer equipment and medium Pending CN117077221A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310885700.2A CN117077221A (en) 2023-07-19 2023-07-19 Hard disk screen printing distribution method and device, computer equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310885700.2A CN117077221A (en) 2023-07-19 2023-07-19 Hard disk screen printing distribution method and device, computer equipment and medium

Publications (1)

Publication Number Publication Date
CN117077221A true CN117077221A (en) 2023-11-17

Family

ID=88712389

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310885700.2A Pending CN117077221A (en) 2023-07-19 2023-07-19 Hard disk screen printing distribution method and device, computer equipment and medium

Country Status (1)

Country Link
CN (1) CN117077221A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117648134A (en) * 2024-01-26 2024-03-05 宝德计算机系统股份有限公司 Self-adaptive positioning method, device and storage medium for server multi-backboard screen printing

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117648134A (en) * 2024-01-26 2024-03-05 宝德计算机系统股份有限公司 Self-adaptive positioning method, device and storage medium for server multi-backboard screen printing

Similar Documents

Publication Publication Date Title
CN111258667A (en) Self-adaptive configuration method, device, equipment and storage medium of server
US20230350831A1 (en) Bandwidth allocation method and apparatus for pcie external plug-in card, and device and storage medium
CN117077221A (en) Hard disk screen printing distribution method and device, computer equipment and medium
CN115454512A (en) Chip drive loading configuration method, device, equipment and storage medium
CN115904251A (en) Hard disk sequence adjusting method, device, system, electronic equipment and storage medium
US20170103797A1 (en) Calibration method and device for dynamic random access memory
EP4167080A1 (en) Memory initialisation apparatus and method, and computer system
CN115562738B (en) Port configuration method, component and hard disk expansion device
CN116561030A (en) Data transmission method, device, equipment and medium
CN115878327A (en) Bus reservation method, device, server, electronic equipment and storage medium
CN110765060A (en) Method, device, equipment and medium for converting MDIO bus into parallel bus
CN115509618A (en) Drive control method, device, apparatus, storage medium, and program product
CN112000591B (en) SSD scanning method capable of designating logical block address, SSD scanning device, SSD scanning computer equipment and storage medium
CN110908684B (en) Method and device for updating silk-screen information of configuration page memory
CN112764673A (en) Storage rate optimization method and device, computer equipment and storage medium
CN114003516B (en) Method, system, equipment and storage medium for setting BIOS as default value
CN111158733A (en) BMC upgrading method, device, equipment and computer readable storage medium
US6789138B1 (en) Computer peripheral apparatus and a computer readable medium having a program for controlling the computer peripheral apparatus
CN114121138B (en) Memory voltage testing method, device, computing equipment and system
CN117215966B (en) Test method and test device for chip SDK interface and electronic equipment
CN111309529B (en) System and method for complete testing of communication links within a processor based on processor information
CN115358331A (en) Device type identification method and device, computer readable storage medium and terminal
CN114741350A (en) Method, system, equipment and medium for cascading multiple NVME hard disk backplanes
CN117608933A (en) Method, device, equipment and medium for identifying silk screen printing of PCIe card case of server
CN117135055A (en) Bandwidth resource control method and device, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination