CN114138352A - Board card type identification method, device, equipment and readable storage medium - Google Patents
Board card type identification method, device, equipment and readable storage medium Download PDFInfo
- Publication number
- CN114138352A CN114138352A CN202111376576.4A CN202111376576A CN114138352A CN 114138352 A CN114138352 A CN 114138352A CN 202111376576 A CN202111376576 A CN 202111376576A CN 114138352 A CN114138352 A CN 114138352A
- Authority
- CN
- China
- Prior art keywords
- level
- board card
- card type
- server
- preset
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000004590 computer program Methods 0.000 claims description 12
- 238000011084 recovery Methods 0.000 claims description 3
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 238000003491 array Methods 0.000 description 5
- 238000012423 maintenance Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000010606 normalization Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4411—Configuring for operating with peripheral devices; Loading of device drivers
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a board card type identification method, which can receive a preset number of level signals sent by a server board card, fill the level signals to preset positions in a level array, and finally determine board card types corresponding to all values of all positions in the current level array according to preset corresponding relations. The invention also discloses a board card type identification device, equipment and a computer readable storage medium, which have the same beneficial effects as the board card type identification method.
Description
Technical Field
The invention relates to the field of servers, in particular to a method for identifying the type of a card, and also relates to a device, equipment and a computer readable storage medium for identifying the type of the card.
Background
For a server, when specific firmware (for example, BMC (Baseboard Management Controller) firmware and BIOS (Basic Input Output System) firmware) is started, the specific firmware needs to initialize board cards of the server, however, board card types of the server are more, and therefore, specific firmware corresponding to various board cards is designed, however, in the prior art, each server only stores specific firmware corresponding to its own board card type, so that the board card is initialized in the server starting process through the specific firmware, which means that the specific firmware inside each server is basically different from each other, and the maintenance cost of the firmware is higher due to the diversity of the specific firmware.
Therefore, how to provide a solution to the above technical problem is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a board card type identification method, each server can only store the same set of specific firmware adapted to all board card types, so that the maintenance cost is reduced, and level signals are filled into level arrays with more positions to represent the board card types, so that a large number of board card types can be represented through a small number of level signals, and the occupied number of level output ports of the board cards is reduced; another object of the present invention is to provide a card type identification apparatus, a device and a computer readable storage medium, wherein each server can only store a same set of specific firmware adapted to all card types, so as to reduce maintenance cost, and since the level signals are filled into the level arrays with more positions to characterize the card types, a large number of card types can be characterized by a small number of level signals, so as to reduce the number of occupied level output ports of the card.
In order to solve the above technical problem, the present invention provides a method for identifying a card type, comprising:
receiving a preset number of level signals sent by a server board card in the process of starting a server;
filling the level signal to a preset position in a level array;
determining the board card type corresponding to all values of all positions in the current level array together according to a preset corresponding relation so as to select a specific firmware corresponding to the board card type to initialize the server board card;
clearing the numerical values of all positions in the level array when the server is shut down;
and the total number of the positions in the level array is greater than the preset number.
Preferably, the filling the level signal to a preset position in the level array specifically includes:
receiving a preset number of level signals through the total number of level receiving ports of the position per se;
and filling each received level signal to the corresponding position of the level array according to the corresponding relation between the level receiving port and the position in the level array.
Preferably, the filling the level signal to a preset position in the level array specifically includes:
receiving a preset number of level signals through the preset number of level receiving ports;
and filling each received level signal to the specified filling position of the level array according to the pre-stored specified filling position.
Preferably, to a processor;
determining the board card type corresponding to all values of all positions in the current level array together according to the preset corresponding relation so as to select a specific firmware initialization server board card corresponding to the board card type as follows:
and sending each numerical value in the level array to a controller where a specific firmware is located, so that the controller determines the board card type corresponding to all the numerical values at each position in the level array according to a preset corresponding relation, and selects the specific firmware corresponding to the board card type to initialize the server board card.
Preferably, the level array is a register.
Preferably, the processor is a complex programmable logic device CPLD originally existing in the server.
Preferably, the level receiving port is a general purpose input output interface GPIO.
In order to solve the above technical problem, the present invention provides a card type identification device, including:
the receiving module is used for receiving a preset number of level signals sent by the server board card in the process of starting the server;
the filling module is used for filling the level signal to a preset position in a level array;
the determining module is used for determining the board card type which corresponds to all the numerical values of all the positions in the current level array together according to the preset corresponding relation so as to select a specific firmware initialization server board card corresponding to the board card type;
the recovery module is used for clearing numerical values of all positions in the level array when the server is shut down;
and the total number of the positions in the level array is greater than the preset number.
In order to solve the above technical problem, the present invention provides a card type identification device, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the board type identification method when executing the computer program.
In order to solve the above technical problem, the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when being executed by a processor, implements the steps of the board type identification method as described above.
The invention provides a board card type identification method, which can receive a preset number of level signals sent by a server board card, fill the level signals to preset positions in a level array, and finally determine board card types corresponding to all values of all positions in the current level array according to preset corresponding relations.
The invention also provides a board card type identification device, equipment and a computer readable storage medium, and has the same beneficial effects as the board card type identification method.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed in the prior art and the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a schematic flow chart of a method for identifying a type of a card according to the present invention;
FIG. 2 is a schematic structural diagram of a card type identification device according to the present invention;
fig. 3 is a schematic structural diagram of a card type identification device provided in the present invention.
Detailed Description
The core of the invention is to provide a method for identifying the board card type, each server can only store the same set of specific firmware adapted to all the board card types, so that the maintenance cost is reduced, and because the level signals are filled into the level arrays with more positions for representing the board card types, a large number of board card types can be represented through a small number of level signals, so that the occupied number of the level output ports of the board cards is reduced; another core of the present invention is to provide a board type identification device, a device and a computer readable storage medium, each server can only store a same set of specific firmware adapted to all board types, so that the maintenance cost is reduced, and since the level signals are filled into the level arrays with more positions to characterize the board types, a large number of board types can be characterized by a small number of level signals, so that the number of occupied level output ports of the board is reduced.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic flow chart of a card type identification method provided by the present invention, where the card type identification method includes:
s101: receiving a preset number of level signals sent by a server board card in the process of starting a server;
specifically, in consideration of the technical problems in the background art, a set of specific firmware suitable for all board card types can be designed, and as long as the controller where the firmware is located knows the board card type each time the server is powered on, the board card can be initialized by using the firmware corresponding to the board card type in the set of specific firmware.
The preset number may be set autonomously, and the embodiment of the present invention is not limited herein.
The board card may be of various types, such as a motherboard or a backplane, and the embodiment of the present invention is not limited herein.
S102: filling the level signal to a preset position in the level array;
specifically, in consideration of the fact that the resource of the level signal output pins on the server board card is limited, the number of level signals which can be output by the server board card is limited, and the board types which can be represented by a small number of level signals are limited, so that in order to enable the preset number of level signals output by the server board card to represent more board types, the level signals are put into the level array with the number of positions larger than the preset number, so that the board types are represented by combining the level number values at all the positions in the level array, and the representable number of the board types is greatly increased.
Specifically, for example, if the preset number is 3, then 3 level signals can represent 2 at most3g total 8 types of cards, and if 3 level signals are filled into a level array having 7 positions, the level array filled with level signals can represent 2 at most7Individual board card type.
In the embodiment of the invention, a large number of board card types can be represented by combining the level signals output by the board cards and the level arrays, so that the same set of specific firmware can be used for the board cards of such a large number of types, and the normalization of the specific firmware is realized.
S103: determining the board card type corresponding to all values of all positions in the current level array together according to the preset corresponding relation so as to select a specific firmware corresponding to the board card type to initialize the server board card;
specifically, the filling of the level signals into the level array means that more levels of the level array are used to represent more board types, so in the embodiment of the present invention, the board type corresponding to all values at each position in the current level array can be determined according to the preset corresponding relationship.
The combination of the level signals output by each specific type of board card is determined, and when the server is constructed, which positions of the level array to which the level signals of the electric board card need to be filled are also determined, so that the board card type can be represented by a fixed set of values of the level array.
S104: clearing numerical values of all positions in the level array when the server is shut down;
the total number of the positions in the level array is larger than the preset number.
Specifically, in order to correctly determine the type of the board card at the next start, the numerical values at the positions in the level array may be cleared when the server is powered off.
The invention provides a board card type identification method, which can receive a preset number of level signals sent by a server board card, fill the level signals to preset positions in a level array, and finally determine board card types corresponding to all values of all positions in the current level array according to preset corresponding relations.
As a preferred embodiment, the step of filling the level signal into the preset position in the level array specifically includes:
receiving a preset number of level signals through a total number of level receiving ports at the position of the receiving terminal;
and filling each received level signal to the corresponding position of the level array according to the corresponding relation between the level receiving port and the position in the level array.
Specifically, the embodiment of the present invention provides a specific manner for filling level signals to preset positions in a level array, where the number of level receiving ports of a processor for receiving the level signals is equal to the total number of positions in the level array, and each level receiving port corresponds to a position in the level array, so that the processor can fill each received level signal to a corresponding position in the level array according to a corresponding relationship between the level receiving port and the position in the level array.
Specifically, in the embodiment of the present invention, when a worker connects a board card and a processor, the worker needs to accurately connect a level signal output port of the board card and a level receiving port specific to the processor, so that a numerical combination of a finally formed level array corresponds to a type of the board card.
The processor is provided with a plurality of level receiving ports with the total number of positions, wherein the level receiving ports are specially used for receiving level signals, and other signal ports cannot be connected so as to avoid influencing the identification work of the board type.
As a preferred embodiment, the step of filling the level signal into the preset position in the level array specifically includes:
receiving a preset number of level signals through a preset number of level receiving ports of the device;
and filling the received level signals to the specified filling positions of the level array according to the pre-stored specified filling positions.
Specifically, in the embodiment of the present invention, another specific way of filling level signals into a preset position in a level array is provided, and in order to save level receiving ports of a processor under certain circumstances, the level signals may be received only by using the same number of level receiving ports (that is, a one-to-one correspondence relationship), so that, if the received level signals are to be filled into the level array, each received level signal may be filled into an assigned filling position of the level array by using a pre-stored assigned filling position, that is, when a worker designs the server, the assigned filling position may be pre-stored in the processor according to a board type of the server, so that a numerical combination of the finally formed level array corresponds to the type of the board.
Specifically, for better explaining the embodiments of the present invention, please refer to table 1 below, where table 1 is a structure table of a level array provided by the present invention.
TABLE 1
Specifically, in the above level array, Bit 0-6 is 7 positions, GPIO 0-2 is three level signals, and Bit 7 is a check signal (e.g., parity/xor), so that the level signals at each three positions in the level array can express at most 8 types of cards, and the switching positions of the three level signals in the level array (e.g., to Bit 1-3) can further characterize 8 types of cards.
The check signal can also be provided by the board card, so that the processor can check the electrical frequency signal according to the check signal to determine the reliability of the level signal.
As a preferred embodiment, the method is applied to a processor;
determining the board card type corresponding to all values of all positions in the current level array together according to the preset corresponding relation so as to select a specific firmware initialization server board card corresponding to the board card type as follows:
and sending each numerical value in the level array to a controller where the specific firmware is located, so that the controller determines the board card type corresponding to all the numerical values at each position in the current level array according to the preset corresponding relation, and selects the specific firmware corresponding to the board card type to initialize the server board card.
Specifically, in the embodiment of the present invention, the processor may be utilized to receive the level signal and manage the level array, so as to reduce modification of the controller where the specific firmware is located.
In a preferred embodiment, the level array is a register.
Specifically, a register in the processor can be used as the level array, and the level array has the advantage of high stability.
Of course, the level array may be of other types, and the embodiment of the present invention is not limited herein.
As a preferred embodiment, the processor is a CPLD (Complex Programmable logic device) originally in the server.
Specifically, the original CPLD in the server has the advantage of high maturity, and additional cost does not need to be added.
Of course, the processor may be of other types besides the CPLD originally in the server, and the embodiment of the present invention is not limited herein.
In a preferred embodiment, the level receiving port is a GPIO (General-Purpose Input/Output).
Specifically, the GPIO has the advantages of simple structure, strong stability and the like.
Of course, the level receiving port may be other types besides GPIO, and the embodiment of the present invention is not limited herein.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a card type identification apparatus provided in the present invention, the card type identification apparatus includes:
the receiving module 21 is configured to receive a preset number of level signals sent by the server board card in a server starting process;
the filling module 22 is used for filling the level signal to a preset position in the level array;
the determining module 23 is configured to determine, according to a preset corresponding relationship, a board card type that corresponds to all values at each position in the current level array together, so as to select a specific firmware initialization server board card corresponding to the board card type;
the recovery module 24 is configured to zero values at each position in the level array when the server is powered off;
the total number of the positions in the level array is larger than the preset number.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a card type identification device provided in the present invention, where the card type identification device includes:
a memory 31 for storing a computer program;
the processor 32 is configured to implement the steps of the board type identification method in the foregoing embodiments when executing the computer program.
The present invention provides a computer readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the board type identification method in the foregoing embodiments.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should also be noted that, in the present specification, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A card type identification method is characterized by comprising the following steps:
receiving a preset number of level signals sent by a server board card in the process of starting a server;
filling the level signal to a preset position in a level array;
determining the board card type corresponding to all values of all positions in the current level array together according to a preset corresponding relation so as to select a specific firmware corresponding to the board card type to initialize the server board card;
clearing the numerical values of all positions in the level array when the server is shut down;
and the total number of the positions in the level array is greater than the preset number.
2. The board card type identification method according to claim 1, wherein the filling of the level signal to a preset position in a level array specifically includes:
receiving a preset number of level signals through the total number of level receiving ports of the position per se;
and filling each received level signal to the corresponding position of the level array according to the corresponding relation between the level receiving port and the position in the level array.
3. The board card type identification method according to claim 1, wherein the filling of the level signal to a preset position in a level array specifically includes:
receiving a preset number of level signals through the preset number of level receiving ports;
and filling each received level signal to the specified filling position of the level array according to the pre-stored specified filling position.
4. The board card type identification method according to claim 2 or 3, characterized by being applied to a processor;
determining the board card type corresponding to all values of all positions in the current level array together according to the preset corresponding relation so as to select a specific firmware initialization server board card corresponding to the board card type as follows:
and sending each numerical value in the level array to a controller where a specific firmware is located, so that the controller determines the board card type corresponding to all the numerical values at each position in the level array according to a preset corresponding relation, and selects the specific firmware corresponding to the board card type to initialize the server board card.
5. The board type identification method according to claim 4, wherein the level array is a register.
6. The board card type identification method according to claim 5, wherein the processor is a Complex Programmable Logic Device (CPLD) originally existing in the server.
7. The board card type identification method according to claim 6, wherein the level receiving port is a general purpose input output interface GPIO.
8. A card type identification device, comprising:
the receiving module is used for receiving a preset number of level signals sent by the server board card in the process of starting the server;
the filling module is used for filling the level signal to a preset position in a level array;
the determining module is used for determining the board card type which corresponds to all the numerical values of all the positions in the current level array together according to the preset corresponding relation so as to select a specific firmware initialization server board card corresponding to the board card type;
the recovery module is used for clearing numerical values of all positions in the level array when the server is shut down;
and the total number of the positions in the level array is greater than the preset number.
9. A card type identification device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the board type identification method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the board type identification method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111376576.4A CN114138352B (en) | 2021-11-19 | 2021-11-19 | Board type identification method, device, equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111376576.4A CN114138352B (en) | 2021-11-19 | 2021-11-19 | Board type identification method, device, equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114138352A true CN114138352A (en) | 2022-03-04 |
CN114138352B CN114138352B (en) | 2023-08-04 |
Family
ID=80390358
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111376576.4A Active CN114138352B (en) | 2021-11-19 | 2021-11-19 | Board type identification method, device, equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114138352B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080244147A1 (en) * | 2007-03-29 | 2008-10-02 | Inventec Corporation | Device Recognition Circuit and the Method of Recognition |
CN110515865A (en) * | 2019-08-30 | 2019-11-29 | 苏州浪潮智能科技有限公司 | A kind of board type judgment method, device, equipment and storage medium |
-
2021
- 2021-11-19 CN CN202111376576.4A patent/CN114138352B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080244147A1 (en) * | 2007-03-29 | 2008-10-02 | Inventec Corporation | Device Recognition Circuit and the Method of Recognition |
CN110515865A (en) * | 2019-08-30 | 2019-11-29 | 苏州浪潮智能科技有限公司 | A kind of board type judgment method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114138352B (en) | 2023-08-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5119498A (en) | Feature board with automatic adjustment to one of two bus widths based on sensing power level at one connection contact | |
CN114003538B (en) | Identification method of intelligent network card and intelligent network card | |
CN106569806A (en) | Method achieving adaptive PCIE bandwidth distribution of BIOS, BIOS and motherboard | |
CN111949285B (en) | Method, device, equipment and storage medium for upgrading firmware of expansion chip | |
CN112527582A (en) | Detection method, detection device, detection equipment and storage medium of server cable | |
CN105354116A (en) | Hot-plug detection method, apparatus, system and mobile terminal | |
CN107402720B (en) | Hard disk processing method and device and terminal | |
CN115480971A (en) | Test card, test method, test device and medium for NVMe hard disk backboard | |
CN111176913A (en) | Circuit and method for detecting Cable Port in server | |
CN103412838B (en) | A kind of expanding system, communication means, address configuration method, equipment and device | |
CN101620580A (en) | Computer system and control method of the same | |
US8391162B2 (en) | Apparatus and method for testing SMNP cards | |
CN108920338A (en) | A kind of method and terminal indicating file system state | |
CN114138352A (en) | Board card type identification method, device, equipment and readable storage medium | |
CN112003730A (en) | Method, system, terminal and storage medium for rapid cluster deployment | |
CN115599727A (en) | PCIE equipment bandwidth allocation method and related device | |
CN116048889A (en) | Detection method and related device for cable connection of cabinet server | |
CN110703988B (en) | Storage pool creating method, system, terminal and storage medium for distributed storage | |
CN113448786A (en) | PCIe equipment testing method, device, equipment and readable storage medium | |
WO2016078322A1 (en) | Io channel allocation method and device | |
CN112506291A (en) | Backboard cascading device and electronic equipment | |
CN112306947A (en) | Topology switching method, device and equipment | |
CN109885530A (en) | A kind of the operation management framework and server of server | |
CN116991545B (en) | Virtual machine deployment position determining method and device | |
CN112463704B (en) | Method, device and equipment for identifying topology of case and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |