CN113869108B - Method and related device for identifying equipment connected with hard disk backboard - Google Patents

Method and related device for identifying equipment connected with hard disk backboard Download PDF

Info

Publication number
CN113869108B
CN113869108B CN202110961024.3A CN202110961024A CN113869108B CN 113869108 B CN113869108 B CN 113869108B CN 202110961024 A CN202110961024 A CN 202110961024A CN 113869108 B CN113869108 B CN 113869108B
Authority
CN
China
Prior art keywords
hard disk
signal
tri
mode card
disk backboard
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.)
Active
Application number
CN202110961024.3A
Other languages
Chinese (zh)
Other versions
CN113869108A (en
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 CN202110961024.3A priority Critical patent/CN113869108B/en
Publication of CN113869108A publication Critical patent/CN113869108A/en
Application granted granted Critical
Publication of CN113869108B publication Critical patent/CN113869108B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/18Packaging or power distribution
    • G06F1/183Internal mounting support structures, e.g. for printed circuit boards, internal connecting means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2218/00Aspects of pattern recognition specially adapted for signal processing
    • G06F2218/12Classification; Matching
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a method for identifying equipment connected with a hard disk backboard, which comprises the following steps: receiving a signal sent by equipment currently connected with a hard disk backboard, and analyzing the signal; when the signals are the first type of signals, determining that the equipment currently connected with the hard disk backboard is a Tri-mode card; and when the signal is the second type signal, determining that the equipment currently connected with the hard disk backboard is a CPU. The method can realize that the CPLD automatically detects whether the hard disk backboard is connected with the CPU or the Tri-mode card, a dial switch is not required to be arranged, the production and maintenance efficiency can be improved, and the labor investment can be saved. The application also discloses a device for identifying the equipment connected with the hard disk backboard, the equipment and a computer readable storage medium, which all have the technical effects.

Description

Method and related device for identifying equipment connected with hard disk backboard
Technical Field
The application relates to the technical field of servers, in particular to a method for identifying equipment connected with a hard disk backboard; an apparatus, device and computer readable storage medium for identifying a device connected to a hard disk backplane are also described.
Background
The hard disk backplane of the server is typically in two forms at shipment, one is connected to the CPU and the other is connected to the Tri-mode card. With the development of the hard disk backboard, the hard disk backboard can be connected with a CPU or a Tri-mode card in a time sharing compatible manner. Under the two connection modes, the high-speed signals given to the hard disk interface of the hard disk backboard by the CPU and the Tri-mode card are identical, but the functions of the same signal given to the CPLD by the high-speed connector are different, so that the CPLD needs to obtain what is connected by the hard disk backboard at the moment so as to realize the corresponding functions.
Referring to fig. 1, the current way of identifying whether the hard disk is connected with the CPU or the Tri-mode card is that the hard disk back plate is provided with a dial switch, the dial switch is connected with the CPLD, and the dial switch is connected to a power supply or ground by operating the dial switch, so that the CPLD can detect different level signals, and further judge whether the hard disk back plate is connected with the CPU or the Tri-mode card at the moment. However, the above manner needs to set a dial switch, and needs to be manually dialed, which is easy to make mistakes, and affects the production efficiency of the production line, and when the configuration is changed (for example, the CPU is replaced by the Tri-mode card), the dial switch needs to be dialed again, and affects the maintenance efficiency.
In view of this, how to solve the above technical defects has become a technical problem to be solved by those skilled in the art.
Disclosure of Invention
The purpose of the application is to provide a method for identifying equipment connected with a hard disk backboard, which can realize that a CPLD automatically identifies whether the hard disk backboard is connected with a CPU or a Tri-mode card, a dial switch is not required to be arranged, the production and maintenance efficiency can be improved, and the labor investment can be saved. Another object of the present application is to provide an apparatus, a system, and a computer-readable storage medium for identifying a device connected to a hard disk backplane, which have the above technical effects.
In order to solve the above technical problems, the present application provides a method for identifying a device connected to a hard disk back plate, including:
receiving a signal sent by equipment currently connected with a hard disk backboard, and analyzing the signal;
when the signals are the first type of signals, determining that the equipment currently connected with the hard disk backboard is a Tri-mode card;
and when the signal is the second type signal, determining that the equipment currently connected with the hard disk backboard is a CPU.
Optionally, the first type of signal is a square wave signal.
Optionally, the second type of signal is a single level state level signal.
Optionally, the method further comprises:
and when the equipment currently connected with the hard disk backboard is determined to be a Tri-mode card, sending a feedback signal to the Tri-mode card, so that the Tri-mode card sets a target zone bit in a target register to be a first value representing that handshake is successful.
Optionally, the sending the feedback signal to the Tri-mode card includes:
the VPP SAD signal is pulled low.
Optionally, the method further comprises:
reading a firmware version of the CPLD and a firmware version of the Tri-mode card;
and when the CPLD is the updated firmware and the Tri-mode card is the non-updated firmware, reporting errors.
Optionally, the method further comprises:
reading the target zone bit in the target register;
and when the target flag bit is a second value representing handshake failure and the CPLD is the upgraded firmware, recording a log and reporting errors.
In order to solve the above technical problem, the present application further provides an apparatus for identifying a device connected to a hard disk back plate, including:
the analysis module is used for receiving signals sent by equipment currently connected with the hard disk backboard and analyzing the signals;
the first determining module is used for determining that the equipment currently connected with the hard disk backboard is a Tri-mode card when the signal is a first type signal;
and the second determining module is used for determining that the equipment currently connected with the hard disk backboard is a CPU when the signal is a second type signal.
In order to solve the above technical problem, the present application further provides an apparatus for identifying an apparatus for connecting a hard disk back plate, including:
a memory for storing a computer program;
a processor for implementing the steps of the method of identifying a device connected to a hard disk backplane as claimed in any one of the above when executing the computer program.
To solve the above technical problem, the present application further provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the method for identifying a device connected to a hard disk backplane as described in any one of the above.
The method for identifying the equipment connected with the hard disk backboard comprises the following steps: receiving a signal sent by equipment currently connected with a hard disk backboard, and analyzing the signal; when the signals are the first type of signals, determining that the equipment currently connected with the hard disk backboard is a Tri-mode card; and when the signal is the second type signal, determining that the equipment currently connected with the hard disk backboard is a CPU.
Therefore, according to the method for identifying the equipment connected with the hard disk backboard, corresponding signal types are defined for the CPU and the Tri-mode card, after the CPLD receives the signals sent by the equipment currently connected with the hard disk backboard, whether the equipment currently connected with the hard disk backboard is the CPU or the Tri-mode card can be automatically identified by analyzing the types of the received signals, a dial switch is not required to be set, and the dial switch is not required to be manually dialed, so that the production and maintenance efficiency can be greatly improved, and the labor investment is saved.
The device, the equipment and the computer readable storage medium for identifying the equipment connected with the hard disk backboard have the technical effects.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following description will briefly explain the drawings needed in the prior art and embodiments, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a conventional device for identifying a hard disk backplane connection;
fig. 2 is a flowchart of a method for identifying a device connected to a hard disk backplane according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a hard disk backplane connection Tri-mode card according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a hard disk back plate connected to a CPU according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a sideband signal according to one embodiment of the present disclosure;
FIG. 6 is a diagram illustrating a handshake mechanism according to an embodiment of the present application;
fig. 7 is a schematic diagram of an apparatus for identifying a device connected to a hard disk backplane according to an embodiment of the present disclosure;
fig. 8 is a schematic diagram of a device for identifying a device connected to a hard disk backplane according to an embodiment of the present application.
Detailed Description
The core of the application is to provide a method for identifying equipment connected with the hard disk backboard, which can realize that the CPLD automatically identifies whether the hard disk backboard is connected with the CPU or the Tri-mode card, and a dial switch is not required to be arranged, so that the production and maintenance efficiency can be improved, and the labor investment can be saved. Another core of the present application is to provide an apparatus, a system, and a computer-readable storage medium for identifying a device connected to a hard disk backplane, which all have the above technical effects.
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Referring to fig. 2, fig. 2 is a flowchart of a method for identifying a device connected to a hard disk back plate according to an embodiment of the present application, and referring to fig. 2, the method includes:
s101: receiving a signal sent by equipment currently connected with a hard disk backboard, and analyzing the signal;
s102: when the signals are the first type of signals, determining that the equipment currently connected with the hard disk backboard is a Tri-mode card;
s103: and when the signal is the second type signal, determining that the equipment currently connected with the hard disk backboard is a CPU.
Specifically, referring to fig. 3, when the hard disk back plate is connected to the CPU, the high-speed signal of the CPU is transmitted to the hard disk interface of the hard disk back plate through the high-speed connector of the hard disk back plate, the motherboard sideband signal is transmitted to the CPLD (Complex Programmable Logic Device ) through the high-speed connector, and the VPP signal of the CPU is transmitted to the CPLD through the VPP connector. Referring to fig. 4, when the hard disk back plate is connected to the Tri-mode card, the high-speed signal and the VPP signal of the Tri-mode card are respectively transmitted to the hard disk interface and the CPLD of the hard disk back plate through the high-speed connector. The VPP signal is a signal for notifying the CPLD of lighting, and includes a VPP SCL signal and a VPP SDA signal.
In order to enable the CPLD to automatically identify whether the device currently connected with the hard disk backboard is a CPU or a Tri-mode card, the method and the device customize the types of signals transmitted to the CPLD by the CPU and the Tri-mode card through the high-speed connector on the basis of the hardware design, firmware upgrade is carried out on the CPLD, and firmware upgrade is carried out on at least one of the Tri-mode card and the CPU, so that the type of signals transmitted to the CPLD by the Tri-mode card through the high-speed connector is a first type; the type of signal that causes the CPU to pass through the high-speed connector to the CPLD is the second type; the first type is different from the second type; the CPLD is enabled to identify whether the device currently connected with the hard disk backboard is a CPU or a Tri-mode card by analyzing the type of the received signal.
In a specific embodiment, the first type of signal is a square wave signal. The second type of signal is a single level state level signal.
Specifically, in this embodiment, a first type signal representing that the device to which the hard disk back plate is currently connected is a Tri-mode card is defined as a square wave signal, and a second type signal representing that the device to which the hard disk back plate is currently connected is a CPU is defined as a level signal in a single level state. And carrying out firmware upgrade on the CPLD and the Tri-mode card, and maintaining the original configuration by the CPU.
If the device currently connected to the hard disk backboard is a Tri-mode card, the Tri-mode card outputs the VPP SCL signal in the form of square wave through the high-speed connector, and the CPLD can determine that the device currently connected to the hard disk backboard is the Tri-mode card after receiving the square wave signal.
If the device currently connected to the hard disk back plate is a CPU, the VPP signal is multiplexed as a main board sideband signal, and referring to fig. 5, the main board sideband signal 1 and the main board sideband signal 2 are level signals in a single level state. The single-level signal is a level signal in a high level state or a level signal in a low level state.
Taking a single level state as an example, specifically, a low level signal, if the device currently connected to the hard disk back plate is a CPU, the CPU transmits a continuous low level signal to the motherboard sideband signal 1 of the CPLD through the high-speed connector, and the CPLD detects the continuous low level signal, but does not detect a square wave signal, so that the CPLD can determine that the device currently connected to the hard disk back plate is the CPU.
After the CPLD judges that the device currently connected with the hard disk backboard is the CPU, the CPLD analyzes the VPP signal output by the VPP connector, so that the hard disk lighting information is obtained.
It is understood that the example in which the first type of signal is a square wave signal and the second type of signal is a level signal in a single level state is only one specific implementation provided in the present application. The first type of signal may be a square wave signal, a sawtooth wave signal, a level signal in a single level state, or the like. The second type of signal may be a single level signal, or may be a square wave signal, a sawtooth signal, or the like. As long as the types of the first type signal and the second type signal are different, the specific type of the device currently connected with the hard disk backboard can be identified based on the types of the first type signal and the second type signal, and the differential setting can be performed by those skilled in the art.
Further, on the basis of the above embodiment, as a specific implementation manner, the method further includes: and when the equipment currently connected with the hard disk backboard is determined to be a Tri-mode card, sending a feedback signal to the Tri-mode card, so that the Tri-mode card sets a target zone bit in a target register to be a first value representing that handshake is successful.
Specifically, in this embodiment, a handshake mechanism is introduced between the Tri-mode card and the CPLD, and before the hard disk back plate works normally, the Tri-mode card and the CPLD handshake via VPP signals. When the CPLD receives the square wave signal sent by the Tri-mode card and determines that the equipment currently connected with the hard disk backboard is the Tri-mode card, the CPLD sends a feedback signal to the Tri-mode card, and the CPLD responds to the feedback signal to enable the Tri-mode card to set a target flag bit in a target register as a first numerical value representing that handshake is successful. After receiving the response, the Tri-mode card sets the target flag bit to a first value, enters a normal working state, and outputs a VPP signal to the CPLD so as to transmit the hard disk lighting information to the CPLD.
Referring to fig. 6, the manner in which the CPLD sends the feedback signal to the Tri-mode card may be that the CPLD pulls the VPP SDA signal low.
Namely, the Tri-mode sends a VPP SCL signal in a square wave form to the CPLD, the CPLD receives the square wave signal sent by the Tri-mode card, and after determining that the device currently connected with the hard disk backboard is the Tri-mode card, the CPLD pulls down the VPP SAD signal, and returns. And after the Tri-mode detects that the VPP SDA signal is pulled down, the target flag bit in the target register is set to a first value, for example, set to 1, which indicates that the handshake is successful.
Further, on the basis of the above embodiment, as a specific implementation manner, the method further includes:
reading a firmware version of the CPLD and a firmware version of the Tri-mode card;
and when the CPLD is the updated firmware and the Tri-mode card is the non-updated firmware, reporting errors.
Specifically, the CPLD realizes that the device for automatically identifying the connection of the hard board and the backboard provided by the application is based on that both the Tri-mode card and the CPLD are upgraded, if the Tri-mode card is not upgraded and the CPLD is upgraded, the un-upgraded Tri-mode may not output square wave signals, but may continuously output low-level signals, thereby possibly causing that the hard board and the backboard are actually connected as the Tri-mode card, and the hard board and the backboard are erroneously judged as being connected as the CPU.
When the device is started, the firmware versions of the Tri-mode card and the CPLD can be read by the BMC (Baseboard Manager Controller, baseboard management controller) through an I2C (Inter-Integrated Circuit, a serial bus) bus. If CPLD has been upgraded and the Tri-mode card has not been upgraded, reporting errors in the system to remind the user to upgrade the Tri-mode firmware, thereby ensuring the normal operation of the server.
Except for the case that the CPLD is upgraded and the Tri-mode card is not upgraded, the server can work normally in other cases. If the Tri-mode card is upgraded and the CPLD is not upgraded, although the un-upgraded CPLD cannot automatically identify the equipment connected with the hard disk backboard by adopting the scheme provided by the application, the square wave output by the upgraded Tri-mode cannot influence the un-upgraded CPLD, and the server can work normally. And the CPLD that is not upgraded at this time can learn the device connected to the hard disk back plate in a conventional manner.
If the Tri-mode card is not upgraded and the CPLD is not upgraded, the un-upgraded Tri-mode does not output square waves, but adopts a traditional signal output mode, the CPLD cannot automatically identify the equipment connected with the hard disk backboard by adopting the scheme provided by the application, but the server can work normally. And at this time, the device connected to the hard disk back plate can be known by the non-upgraded CPLD in a conventional manner.
Further, on the basis of the above embodiment, as a specific implementation manner, the method further includes:
reading the target zone bit in the target register;
and when the target flag bit is a second value representing handshake failure and the CPLD is the upgraded firmware, recording a log and reporting errors.
Specifically, if the Tri-mode card is updated and the CPLD is not updated, during the handshake process between the Tri-mode card and the CPLD, the Tri-mode card sends a square wave signal but does not receive a response from the CPLD, and at this time, the Tri-mode card marks a target flag bit in the target register as a second value, for example, 0, for marking the handshake failure, and normally outputs the VPP signal. If the Tri-mode card is not upgraded and the CPLD is upgraded, the Tri-mode card does not output square wave signals and does not receive response of the CPLD, and the Tri-mode card also records a target flag bit in a target register as a second value for marking handshake failure at the moment, and normally outputs VPP signals. On the basis of reading the firmware version of the CPLD and reading the target flag bit of the target register of the Tri-mode card, when the CPLD is judged to be updated and the Tri-mode card does not receive a response, the BMC considers that handshake fails, and at the moment, the BMC records a log and reports errors. The CPLD is updated and the Tri-mode card does not receive the response, generally because the Tri-mode card is not updated, the Tri-mode card does not output square waves and does not receive the response of the CPLD, and therefore, the error reporting can also play a role in reminding a user of updating the Tri-mode.
In summary, the method for identifying a device connected to a hard disk provided by the present application includes: receiving a signal sent by equipment currently connected with a hard disk backboard, and analyzing the signal; when the signals are the first type of signals, determining that the equipment currently connected with the hard disk backboard is a Tri-mode card; and when the signal is the second type signal, determining that the equipment currently connected with the hard disk backboard is a CPU. Therefore, according to the method for identifying the equipment connected with the hard disk backboard, corresponding signal types are defined for the CPU and the Tri-mode card, after the CPLD receives the signals sent by the equipment currently connected with the hard disk backboard, whether the equipment currently connected with the hard disk backboard is the CPU or the Tri-mode card can be automatically identified by analyzing the types of the received signals, a dial switch is not required to be set, and the dial switch is not required to be manually dialed, so that the production and maintenance efficiency can be greatly improved, and the labor investment is saved.
The application also provides a device for identifying the equipment connected with the hard disk backboard, and the device can be referred to in a mutual correspondence manner with the method. Referring to fig. 7, fig. 7 is a schematic diagram of an apparatus for identifying a device connected to a hard disk back plate according to an embodiment of the present application, and in combination with fig. 7, the apparatus includes:
the analysis module 10 is used for receiving signals sent by equipment currently connected with the hard disk backboard and analyzing the signals;
the first determining module 20 is configured to determine that the device currently connected to the hard disk back plate is a Tri-mode card when the signal is a first type signal;
and the second determining module 30 is configured to determine that the device currently connected to the hard disk back plate is a CPU when the signal is a second type signal.
Specifically, in order to enable the CPLD to automatically identify whether the device currently connected to the hard disk back plate is a CPU or a Tri-mode card, the method and the device enable the CPLD to customize the types of signals transmitted to the CPLD by the CPU and the Tri-mode card through the high-speed connector, upgrade the CPLD and the Tri-mode card, enable the type of signals transmitted to the CPLD by the Tri-mode card through the high-speed connector to be a first type, enable the type of signals transmitted to the CPLD by the CPU to be a second type, and enable the CPLD to identify whether the device currently connected to the hard disk back plate is the CPU or the Tri-mode card by analyzing the types of the received signals.
The signal received by the CPLD is firstly analyzed by the analysis module 10, and if the signal is a first type signal, the first determination module 20 determines that the device currently connected with the hard disk backboard is a Tri-mode card; if the signal is of the second type, the second determining module 30 determines that the device to which the hard disk back plate is currently connected is a CPU.
On the basis of the above embodiment, optionally, the first type signal is a square wave signal.
Alternatively, the second type of signal is a single level state level signal.
Specifically, if the device currently connected to the hard disk back plate is a Tri-mode card, the Tri-mode card outputs the VPP SCL signal in the form of a square wave through the high-speed connector, and after the CPLD receives the square wave signal, the first determining module 20 may determine that the device currently connected to the hard disk back plate is the Tri-mode card.
If the device to which the hard disk back plate is currently connected is a CPU, the VPP signal is multiplexed as a main board sideband signal, and the main board sideband signal transmitted to the CPLD by the CPU through the high-speed connector is a level signal that is continuously in a certain state, for example, is continuously a low level signal, and the CPLD detects the continuous low level signal, but does not detect the square wave signal, so the second determining module 30 may determine that the device to which the hard disk back plate is currently connected is a CPU.
On the basis of the above embodiment, optionally, the method further includes:
and the feedback module is used for sending a feedback signal to the Tri-mode card when the equipment currently connected with the hard disk backboard is determined to be the Tri-mode card, so that the Tri-mode card sets a target zone bit in a target register to be a first value representing that handshake is successful.
On the basis of the above embodiment, optionally, the feedback module is specifically configured to:
the VPP SAD signal is pulled low.
Specifically, in this embodiment, a handshake mechanism is introduced between the Tri-mode card and the CPLD, and before the hard disk back plate works normally, the Tri-mode card and the CPLD handshake via VPP signals. When the CPLD receives the square wave signal sent by the Tri-mode card, the first determining module 20 determines that the device currently connected to the hard disk back plate is the Tri-mode card, and the CPLD pulls the VPP SAD signal low, and in response, causes the Tri-mode card to set the target flag bit in the target register to a first value representing that handshake is successful. After receiving the response, the Tri-mode card sets the target flag bit to a first value, enters a normal working state, and outputs a VPP signal to the CPLD so as to transmit the hard disk lighting information to the CPLD.
On the basis of the above embodiment, optionally, the method further includes:
the first reading module is used for reading the firmware version of the CPLD and the firmware version of the Tri-mode card;
and the first error reporting module is used for reporting errors when the CPLD is the updated firmware and the Tri-mode card is the non-updated firmware.
Specifically, in order to avoid erroneous judgment and ensure that the server works normally, the embodiment introduces a firmware detection mechanism. When the device is started, the firmware versions of the Tri-mode card and the CPLD can be read by the first reading module. If CPLD has been upgraded and the Tri-mode card has not been upgraded, reporting errors in the system by the first error reporting module to remind the user to upgrade the Tri-mode firmware, thereby ensuring the normal operation of the server.
Except for the case that the CPLD is upgraded and the Tri-mode card is not upgraded, the server can work normally in other cases. If the Tri-mode card is upgraded and the CPLD is not upgraded, although the un-upgraded CPLD cannot automatically identify the equipment connected with the hard disk backboard by adopting the scheme provided by the application, the square wave output by the upgraded Tri-mode cannot influence the un-upgraded CPLD, and the server can work normally. And at this time, the device connected to the hard disk back plate can be known by the non-upgraded CPLD in a conventional manner.
If the Tri-mode card is not upgraded and the CPLD is not upgraded, the un-upgraded Tri-mode does not output square waves, but adopts a traditional signal output mode, the CPLD cannot automatically identify the equipment connected with the hard disk backboard by adopting the scheme provided by the application, but the server can work normally. And at this time, the device connected to the hard disk back plate can be known by the non-upgraded CPLD in a conventional manner.
On the basis of the above embodiment, optionally, the method further includes:
the second reading module is used for reading the target zone bit in the target register;
and the second error reporting module is used for recording a log and reporting errors when the target zone bit is a second numerical value representing handshake failure and the CPLD is the upgraded firmware.
Specifically, if the Tri-mode card is upgraded and the CPLD is not upgraded, during the handshake between the Tri-mode card and the CPLD, the Tri-mode card sends a square wave signal but does not receive a response from the CPLD, at this time, the Tri-mode card marks a target flag bit in the target register as a second value, for example, 0, for marking the handshake failure, and normally outputs the VPP signal. If the Tri-mode card is not upgraded and the CPLD is upgraded, the Tri-mode card does not output square wave signals and does not receive response of the CPLD, and the Tri-mode card also records a target flag bit in a target register as a second value for marking handshake failure at the moment, and normally outputs VPP signals. The first reading module reads the firmware version of the CPLD and the second reading module reads the target flag bit of the target register of the Tri-mode card, and when the CPLD is judged to be upgraded and the Tri-mode does not receive a response, the handshake is considered to be failed, and at the moment, the second error reporting module records a log and reports errors.
According to the device for identifying the equipment connected with the hard disk backboard, corresponding signal types are defined for the CPU and the Tri-mode card, after the CPLD receives the signals sent by the equipment currently connected with the hard disk backboard, whether the equipment currently connected with the hard disk backboard is the CPU or the Tri-mode card can be automatically identified by analyzing the types of the received signals, a dial switch is not required to be arranged, and the dial switch is not required to be manually dialed, so that the production and maintenance efficiency can be greatly improved, and the labor investment can be saved.
The present application also provides an apparatus for identifying an apparatus for hard disk backplane connection, the apparatus comprising a memory 1 and a processor 2, as shown with reference to fig. 8.
A memory 1 for storing a computer program;
a processor 2 for executing a computer program to perform the steps of:
receiving a signal sent by equipment currently connected with a hard disk backboard, and analyzing the signal; when the signals are the first type of signals, determining that the equipment currently connected with the hard disk backboard is a Tri-mode card; and when the signal is the second type signal, determining that the equipment currently connected with the hard disk backboard is a CPU.
For the description of the apparatus provided in the present application, reference is made to the above method embodiments, and the description is omitted herein.
According to the equipment for identifying the equipment connected with the hard disk backboard, corresponding signal types are defined for the CPU and the Tri-mode card, after the CPLD receives the signals sent by the equipment currently connected with the hard disk backboard, whether the equipment currently connected with the hard disk backboard is the CPU or the Tri-mode card can be automatically identified by analyzing the types of the received signals, a dial switch is not required to be arranged, and the dial switch is not required to be manually dialed, so that the production and maintenance efficiency can be greatly improved, and the labor investment can be saved.
The present application also provides a computer readable storage medium having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving a signal sent by equipment currently connected with a hard disk backboard, and analyzing the signal; when the signals are the first type of signals, determining that the equipment currently connected with the hard disk backboard is a Tri-mode card; and when the signal is the second type signal, determining that the equipment currently connected with the hard disk backboard is a CPU.
The computer readable storage medium may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
For the description of the computer-readable storage medium provided in the present application, reference is made to the above method embodiments, and the description is omitted herein.
According to the computer readable storage medium, corresponding signal types are defined for the CPU and the Tri-mode card, after the CPLD receives signals sent by equipment currently connected with the hard disk backboard, whether the equipment currently connected with the hard disk backboard is the CPU or the Tri-mode card can be automatically identified by analyzing the types of the received signals, a dial switch is not required to be arranged, and the dial switch is not required to be manually dialed, so that the production and maintenance efficiency can be greatly improved, and the labor investment can be saved.
In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the apparatus, device and computer readable storage medium of the embodiment disclosure, since it corresponds to the method of the embodiment disclosure, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The method, apparatus, device and computer readable storage medium for identifying a hard disk connected device provided in the present application are described in detail above. Specific examples are set forth herein to illustrate the principles and embodiments of the present application, and the description of the examples above is only intended to assist in understanding the methods of the present application and their core ideas. It should be noted that it would be obvious to those skilled in the art that various improvements and modifications can be made to the present application without departing from the principles of the present application, and such improvements and modifications fall within the scope of the claims of the present application.

Claims (7)

1. The method for identifying the equipment connected with the hard disk backboard is characterized in that when the hard disk backboard is connected with a CPU, a high-speed signal of the CPU is transmitted to a hard disk interface of the hard disk backboard through a high-speed connector of the hard disk backboard, a mainboard sideband signal is transmitted to a complex programmable logic device through the high-speed connector, and a VPP signal of the CPU is transmitted to the complex programmable logic device through a VPP connector; when the hard disk backboard is connected with a Tri-mode card, a high-speed signal and a VPP signal of the Tri-mode card are respectively transmitted to a hard disk interface of the hard disk backboard and the complex programmable logic device through the high-speed connector; comprising the following steps:
receiving a signal sent by equipment currently connected with the hard disk backboard, and analyzing the signal;
when the signals are the first type of signals, determining that the equipment currently connected with the hard disk backboard is the Tri-mode card;
when the signal is a second type signal, determining that the equipment currently connected with the hard disk backboard is the CPU;
when the device currently connected with the hard disk backboard is determined to be a Tri-mode card, a feedback signal is sent to the Tri-mode card, so that the Tri-mode card sets a target zone bit in a target register to be a first value representing that handshake is successful;
reading a firmware version of the CPLD and a firmware version of the Tri-mode card;
when the CPLD is the updated firmware and the Tri-mode card is the non-updated firmware, reporting errors;
reading the target zone bit in the target register;
and when the target flag bit is a second value representing handshake failure and the CPLD is the upgraded firmware, recording a log and reporting errors.
2. The method of claim 1, wherein the first type of signal is a square wave signal.
3. The method of claim 1, wherein the second type of signal is a single level state level signal.
4. The method of identifying a hard disk backplane connected device of claim 1, wherein the sending a feedback signal to the Tri-mode card comprises:
the VPP SAD signal is pulled low.
5. The device for identifying the equipment connected with the hard disk backboard is characterized in that when the hard disk backboard is connected with a CPU, a high-speed signal of the CPU is transmitted to a hard disk interface of the hard disk backboard through a high-speed connector of the hard disk backboard, a mainboard sideband signal is transmitted to a complex programmable logic device through the high-speed connector, and a VPP signal of the CPU is transmitted to the complex programmable logic device through a VPP connector; when the hard disk backboard is connected with a Tri-mode card, a high-speed signal and a VPP signal of the Tri-mode card are respectively transmitted to a hard disk interface of the hard disk backboard and the complex programmable logic device through the high-speed connector; comprising the following steps:
the analysis module is used for receiving signals sent by equipment currently connected with the hard disk backboard and analyzing the signals;
the first determining module is used for determining that the equipment currently connected with the hard disk backboard is a Tri-mode card when the signal is a first type signal;
the second determining module is used for determining that the equipment currently connected with the hard disk backboard is a CPU when the signal is a second type signal;
the feedback module is used for sending a feedback signal to the Tri-mode card when the equipment currently connected with the hard disk backboard is determined to be the Tri-mode card, so that the Tri-mode card sets a target zone bit in a target register to be a first value representing that handshake is successful;
the first reading module is used for reading the firmware version of the CPLD and the firmware version of the Tri-mode card;
the first error reporting module is used for reporting errors when the CPLD is an upgraded firmware and the Tri-mode card is an un-upgraded firmware;
the second reading module is used for reading the target zone bit in the target register;
and the second error reporting module is used for recording a log and reporting errors when the target zone bit is a second numerical value representing handshake failure and the CPLD is the upgraded firmware.
6. An apparatus for identifying devices connected to a hard disk backplane, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method of identifying a hard disk backplane connected device according to any of claims 1 to 4 when executing said computer program.
7. A computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method of identifying a device for hard disk backplane connection according to any of claims 1 to 4.
CN202110961024.3A 2021-08-20 2021-08-20 Method and related device for identifying equipment connected with hard disk backboard Active CN113869108B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110961024.3A CN113869108B (en) 2021-08-20 2021-08-20 Method and related device for identifying equipment connected with hard disk backboard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110961024.3A CN113869108B (en) 2021-08-20 2021-08-20 Method and related device for identifying equipment connected with hard disk backboard

Publications (2)

Publication Number Publication Date
CN113869108A CN113869108A (en) 2021-12-31
CN113869108B true CN113869108B (en) 2024-01-23

Family

ID=78987981

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110961024.3A Active CN113869108B (en) 2021-08-20 2021-08-20 Method and related device for identifying equipment connected with hard disk backboard

Country Status (1)

Country Link
CN (1) CN113869108B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110806964A (en) * 2019-10-31 2020-02-18 苏州浪潮智能科技有限公司 Method and equipment for lighting hard disk and storage medium
CN111090568A (en) * 2019-10-31 2020-05-01 苏州浪潮智能科技有限公司 Method and equipment for lighting back plate CPLD
CN111221390A (en) * 2019-12-31 2020-06-02 苏州浪潮智能科技有限公司 Backboard compatible with time-sharing connection of CPU and Tri mode card and implementation method
CN111737174A (en) * 2020-05-28 2020-10-02 苏州浪潮智能科技有限公司 Tri-mode RAID function compatible hard disk backplane and design method thereof
CN113238918A (en) * 2021-01-07 2021-08-10 苏州浪潮智能科技有限公司 Hard disk lighting method and device and related components

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110806964A (en) * 2019-10-31 2020-02-18 苏州浪潮智能科技有限公司 Method and equipment for lighting hard disk and storage medium
CN111090568A (en) * 2019-10-31 2020-05-01 苏州浪潮智能科技有限公司 Method and equipment for lighting back plate CPLD
CN111221390A (en) * 2019-12-31 2020-06-02 苏州浪潮智能科技有限公司 Backboard compatible with time-sharing connection of CPU and Tri mode card and implementation method
CN111737174A (en) * 2020-05-28 2020-10-02 苏州浪潮智能科技有限公司 Tri-mode RAID function compatible hard disk backplane and design method thereof
CN113238918A (en) * 2021-01-07 2021-08-10 苏州浪潮智能科技有限公司 Hard disk lighting method and device and related components

Also Published As

Publication number Publication date
CN113869108A (en) 2021-12-31

Similar Documents

Publication Publication Date Title
WO2021169260A1 (en) System board card power supply test method, apparatus and device, and storage medium
CN111538539B (en) Storage system starting method and device and computer readable storage medium
US20040003322A1 (en) Method and apparatus for maintaining data integrity using a system management processor
CN116107819A (en) Server start-up fault detection system, method, device and medium
CN112527582A (en) Detection method, detection device, detection equipment and storage medium of server cable
CN101620580B (en) Computer system and control method of the same
CN111176913A (en) Circuit and method for detecting Cable Port in server
CN113672306B (en) Server component self-checking abnormity recovery method, device, system and medium
CN111048138A (en) Hard disk fault detection method and related device
CN113869108B (en) Method and related device for identifying equipment connected with hard disk backboard
CN113434442A (en) Switch and data access method
CN210721440U (en) PCIE card abnormity recovery device, PCIE card and PCIE expansion system
FI91108C (en) Multiprocessor system controller
CN116539992A (en) Storage device in-place stable state detection device, method, logic module and medium
CN111459730A (en) PCH (physical channel) end parameter adjusting method and system under Whitley platform
CN116541026A (en) Self-adaptive chip manufacturer bit stream burning method, device, equipment and medium
CN113138951B (en) Method, system and medium for connecting multiple devices through SGPIO
CN113867812B (en) Method, system, equipment and medium for BMC to acquire link information
CN115098342A (en) System log collection method, system, terminal and storage medium
CN212782723U (en) PCIe and SATA compatible copying device
CN114996069A (en) Mainboard test method, device and medium
CN112596983A (en) Monitoring method for connector in server
CN112947964A (en) Chip firmware updating method, device, equipment and storage medium
CN102243601B (en) Debugging system and relevant method for detecting and controlling state of computer host
CN116841374A (en) Power supply in-place state correction method, device, equipment and readable 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