[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN117648239A - Misplug detection method of external equipment and computing equipment - Google Patents

Misplug detection method of external equipment and computing equipment Download PDF

Info

Publication number
CN117648239A
CN117648239A CN202311525586.9A CN202311525586A CN117648239A CN 117648239 A CN117648239 A CN 117648239A CN 202311525586 A CN202311525586 A CN 202311525586A CN 117648239 A CN117648239 A CN 117648239A
Authority
CN
China
Prior art keywords
docking station
connector
controller
expansion
connection relation
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
CN202311525586.9A
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.)
XFusion Digital Technologies Co Ltd
Original Assignee
XFusion Digital Technologies 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 XFusion Digital Technologies Co Ltd filed Critical XFusion Digital Technologies Co Ltd
Priority to CN202311525586.9A priority Critical patent/CN117648239A/en
Publication of CN117648239A publication Critical patent/CN117648239A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3041Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is an input/output interface

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Details Of Connecting Devices For Male And Female Coupling (AREA)

Abstract

The embodiment of the application provides a misplug detection method of external equipment and computing equipment, relates to the technical field of servers, and can ensure the correct connection of a docking station and the computing equipment, so that the computing equipment can normally use hardware equipment to be extended, which is inserted in the docking station. The computing device includes: a controller, a plurality of transfer connectors, and at least two docking stations, each docking station including at least two docking connectors therein; one of the plurality of transit connectors is connected with one expansion connector; the plurality of switching connectors are respectively connected with the controller; the controller is used for determining the current connection relation of the docking station, and the connection relation comprises the following steps: a connection relationship of each expansion connector of the docking station with the transit connector; and outputting alarm information for indicating that the current connection relation of the docking station is wrong under the condition that the current connection relation of the docking station is different from the preset connection relation of the docking station.

Description

Misplug detection method of external equipment and computing equipment
Technical Field
The embodiment of the application relates to the technical field of servers, in particular to a misplug detection method of external equipment and computing equipment.
Background
With the rapid development of the internet industry, the complexity of the service requirement of the internet is also increasing, and in order to achieve the complex service requirement, hardware resources in a server need to be increased.
Common ways to increase hardware resources in a server include: the Switch chip in the server is connected with the docking station through a cable, and then the hardware resources to be expanded are inserted into slots provided by the docking station, so that the total amount of resources of the hardware resources to be expanded in the server is increased.
However, when the cable connection between the Switch chip and the docking station is wrong, the server system may report the error, so that the server cannot normally use the hardware resource to be extended.
Disclosure of Invention
The embodiment of the application provides a misplug detection method of external equipment and computing equipment, which are used for ensuring the correct connection between a docking station and the computing equipment, so that the computing equipment can normally use hardware equipment to be extended, which is inserted in the docking station.
In order to achieve the above purpose, the embodiments of the present application adopt the following technical solutions:
in a first aspect, embodiments of the present application provide a computing device comprising: a controller, a plurality of transfer connectors, and at least two docking stations, each docking station including at least two docking connectors therein; one of the plurality of transit connectors is connected with one expansion connector; the plurality of switching connectors are respectively connected with the controller; the controller is used for determining the current connection relation of the docking station, and the connection relation comprises the following steps: a connection relationship of each expansion connector of the docking station with the transit connector; and outputting alarm information for indicating that the current connection relation of the docking station is wrong under the condition that the current connection relation of the docking station is different from the preset connection relation of the docking station.
The embodiment of the application provides a computing device, wherein a transfer connector in the computing device is connected with an expansion connector in a docking station, and a plurality of transfer connectors are respectively connected with a controller in the computing device; the controller is used for determining the current connection relation of the docking station, and the connection relation comprises the following steps: a connection relationship of each expansion connector of the docking station with the transit connector; the controller is also used for outputting alarm information for indicating the error of the current connection relation of the docking station under the condition that the current connection relation of the docking station is different from the preset connection relation of the docking station. Therefore, the controller can compare the current connection relation of the docking station with the preset connection relation of the docking station and judge the correctness of the current connection relation of the docking station; when the current connection relation of the docking station is wrong, the controller outputs alarm information so that a user can timely learn the current connection relation of the docking station and correct the wrong connection relation, thereby ensuring the correct connection of the docking station, and therefore, the problem that the server cannot normally use the hardware resources to be expanded is solved.
In a possible implementation manner, the controller is configured to determine a current connection relationship of the docking station, and includes: the controller is used for acquiring the identification of the expansion connector connected with each transfer connector through each transfer connector; the controller is used for determining the current connection relation of the docking station according to the obtained identifiers of the plurality of docking connectors.
In a possible implementation manner, the identification of the expansion connector includes: a first location identifier and a second location identifier; the expansion connector includes: a first pin and a second pin; the first pin is configured with a first position identifier, and the first position identifier is used for indicating position information of the expansion connector on a target docking station, wherein the target docking station is the docking station where the expansion connector is located; the second pin is configured with a second location identifier for indicating location information of the target docking station in the at least two docking stations.
The first position identifier and the second position identifier of the expansion connector are used as identifiers of the expansion connector, so that the controller can determine a target docking station where the expansion connector is positioned and position information of the expansion connector in the target docking station according to the identifiers of the expansion connector; that is, the controller can determine not only the target docking station to which the transit connector is connected, but also which of the specific docking connectors in the target docking station the transit connector is connected with, based on the identification of the docking connector, and thus, the accuracy of the controller to determine the docking connector is improved.
In a possible implementation manner, the identification of the expansion connector further includes: type identification of the target docking station; the expansion connector further includes: a third pin; the third pin is configured with a type identification of the target docking station.
In the above embodiment, the first pin, the second pin and the third pin are disposed on each expansion connector, and the first position identifier of the expansion connector is configured on the first pin, where the first position identifier is used to indicate the position information of the expansion connector in the docking station where the expansion connector is located (i.e. the target docking station); a second location identifier of the expansion connector configured on the second pin, the second location identifier to indicate location information of the target docking station in the computing device in at least two docking stations; the third pin is configured with a type identifier of the target docking station and takes the first location identifier, the second location identifier and the type identifier of the target docking station of the docking connector as identifiers of the docking connector. On the basis, the controller acquires the identifiers of the expansion connectors connected with the controller through each transfer connector, and determines the current connection relation of the docking station according to the identifiers of the expansion connectors; under the condition that the current connection relation of the docking station is different from the preset connection relation of the docking station, the controller outputs alarm information, so that the type of the connected docking station is ensured to be correct under the condition that the cable connection of the docking station is ensured to be correct, and the problem that a server cannot normally use hardware resources to be expanded is solved.
In a possible implementation manner, the computing device further includes a plurality of processors, and any one of the plurality of processors is connected with at least two transit connectors in the plurality of transit connectors; the processor issues communication resources to a docking station connected to the processor via a transit connector connected thereto.
In one possible implementation manner, the computing device includes a main board and an adapter board, where the adapter connector is disposed on the adapter board;
the controller comprises a programmable logic device and a baseboard management controller, wherein the programmable logic device is arranged on the adapter board, the baseboard management controller is arranged on the main board, and the baseboard management controller is connected with a plurality of adapter connectors through the programmable logic device;
the programmable logic device is used for determining the current connection relation of the docking station; the baseboard management controller is used for outputting alarm information under the condition that the current connection relation of the docking station is different from the preset connection relation of the docking station.
In a possible implementation manner, the controller further includes a storage unit connected to the baseboard management controller, where a preset connection relationship of the docking station is stored in the storage unit.
The controller in the above embodiment further includes a storage unit connected to the BMC on the basis of including the programmable logic device CPLD and the baseboard management controller BMC, where the storage unit is configured to store a preset connection relationship of the docking station, so that before the BMC determines whether the preset connection relationship of the docking station is the same as the current connection relationship of the docking station, the BMC may obtain the preset connection relationship of the docking station from the storage unit; compared with the scheme that the preset connection relation of the docking station is stored in the BMC, the storage space of the BMC is saved.
In a possible implementation manner, the types of the docking stations at least include: a first type of docking station for providing slots to a hard disk, and a second type of docking station for providing slots to a network card.
In a second aspect, an embodiment of the present application provides a method for detecting misinsertion of an external device, where the method is applied to a computing device, and the computing device includes: a controller, a plurality of transfer connectors, and at least two docking stations, each docking station including at least two docking connectors therein; one of the plurality of transfer connectors is connected with one expansion connector, and the plurality of transfer connectors are respectively connected with the controller; the method comprises the following steps: the controller determines the current connection relation of the docking station, wherein the connection relation comprises the following steps: a connection relationship of each docking connector in the docking station with the transit connector; and under the condition that the current connection relation of the docking station is different from the preset connection relation of the docking station, the controller outputs alarm information, and the alarm information is used for indicating that the current connection relation of the docking station is wrong.
According to the misplug detection method of the external device, the controller in the method obtains the current connection relation of the docking station, and the connection relation comprises the following steps: the connection relation between the expansion connector and the transfer connector on the docking station; then, under the condition that the current connection relation of the docking station is different from the preset connection relation of the docking station, the controller outputs alarm information indicating the error of the current connection relation of the docking station, so that a user can timely acquire the error of the current connection relation of the docking station and correct the error connection relation, thereby ensuring the correct connection of the docking station, and therefore, the problem that a server cannot normally use hardware resources to be expanded is solved.
In a possible implementation manner, the controller determines a current connection relationship of the docking station, and specifically includes: the controller obtains the identification of the expansion connector connected with each transfer connector through each transfer connector; and the controller determines the current connection relation of the docking station according to the acquired identifiers of the plurality of docking connectors.
In a possible implementation manner, the identification of the expansion connector includes: the first position identifier is used for indicating the position information of the expansion connector on the target docking station, and the second position identifier is used for indicating the position information of the target docking station in the at least two docking stations, and the target docking station is the docking station where the expansion connector is located.
The controller takes the first position identifier and the second position identifier of the expansion connector as the identifiers of the expansion connector, so that the controller can determine a target docking station where the expansion connector is positioned and the position information of the expansion connector in the target docking station according to the identifiers of the expansion connector; that is, the controller can determine not only the target docking station to which the target transit connector (i.e., the transit connector to which the expansion connector is connected) is connected, but also which specific expansion connector in the target docking station the target transit connector is connected with, based on the identification of the expansion connector, and thus, the accuracy of the controller to determine the expansion connector is improved.
In a possible implementation manner, the identification of the expansion connector further includes: the type of target docking station is identified.
The above embodiment uses the first location identifier, the second location identifier and the type identifier of the target docking station of the expansion connector as the identifiers of the expansion connector, so that the controller determines the type of the target docking station on the basis of determining the location of the expansion connector, therefore, the controller can determine not only the specific location of the expansion connector but also the type of the target docking station where the expansion connector is located according to the identifiers of the expansion connector, and the accuracy of determining the expansion connector by the controller is improved.
In one possible implementation, the controller includes a programmable logic device and a baseboard management controller; the method specifically comprises the following steps: the programmable logic device determines the current connection relation of the docking station and sends the current connection relation of the docking station to the baseboard management controller; the baseboard management controller receives the current connection relation of the docking station and outputs alarm information under the condition that the current connection relation of the docking station is different from the preset connection relation of the docking station.
In the above embodiment, the BMC receives the current connection relationship of the docking station sent by the CPLD, determines whether the current connection relationship of the docking station is the same as the preset connection relationship of the docking station, and outputs the alarm information when the current connection relationship of the docking station is different from the preset connection relationship of the docking station. Therefore, the CPLD is only used for acquiring the current connection relationship of the docking station, judging whether the current connection relationship of the docking station is the same as the preset connection relationship of the docking station, and the action of outputting the alarm information is executed by the BMC, so that the utilization rate of processing resources in the CLPD is reduced.
In one possible implementation, the controller includes a programmable logic device and a baseboard management controller; the method specifically comprises the following steps: the programmable logic device determines the current connection relation of the docking station; under the condition that the current connection relation of the docking station is different from the preset connection relation of the docking station, alarm indication information is sent to the baseboard management controller; the baseboard management controller responds to the alarm indication information and outputs the alarm information.
In the above embodiment, the CPLD obtains the current connection relationship of the docking station, and determines whether the current connection relationship of the docking station is the same as the preset connection relationship of the docking station. Under the condition that the current connection relation of the docking station is different from the preset connection relation of the docking station, the CPLD sends alarm indication information to the BMC, and the BMC responds to the alarm indication information and outputs alarm information. It can be seen that the BMC is only used for outputting the alarm information, and it is not necessary to determine whether the current connection relationship of the docking station is the same as the preset connection relationship of the docking station, so that the utilization rate of processing resources in the BMC is reduced.
In a possible implementation manner, the controller further includes a storage unit, where a preset connection relationship of the docking station is stored in the storage unit; the method further comprises the steps of: the baseboard management controller obtains a preset connection relation of the docking station from the storage unit.
In a third aspect, embodiments of the present application provide a controller, including: the device comprises a determining unit and an output unit, wherein the determining unit is used for determining the current connection relation of the docking station, and the connection relation comprises the following components: a connection relationship of each docking connector in the docking station with the transit connector; the output unit is used for outputting alarm information which is used for indicating the error of the current connection relation of the docking station under the condition that the current connection relation of the docking station is different from the preset connection relation of the docking station.
In a possible implementation manner, the controller further includes: an acquisition unit; the acquisition unit is used for acquiring the identification of the expansion connector connected with the transfer connector through each transfer connector; the determining unit is specifically configured to determine a current connection relationship of the docking station according to the obtained identifiers of the plurality of docking connectors.
In a possible implementation, the controller includes: a first processing unit and a second processing unit; the first processing unit is used for determining the current connection relation of the docking station and sending the current connection relation of the docking station to the second processing unit; the second processing unit is used for receiving the current connection relation of the docking station and outputting alarm information under the condition that the current connection relation of the docking station is different from the preset connection relation of the docking station.
In a possible implementation manner, the first processing unit is configured to determine a current connection relationship of the docking station; sending alarm indication information to the second processing unit under the condition that the current connection relation of the docking station is different from the preset connection relation of the docking station; the second processing unit is used for responding to the alarm indication information and outputting alarm information.
In a possible implementation manner, the acquiring unit is specifically configured to acquire the preset connection relationship of the docking station from the storage unit.
In a fourth aspect, embodiments of the present application provide a computing device cluster including a computing device of any one of the first aspect and its possible implementations.
Drawings
FIG. 1 is a schematic diagram of a computing device according to an embodiment of the present application;
FIG. 2 is a second schematic diagram of a computing device according to an embodiment of the present application;
FIG. 3 is a third schematic diagram of a computing device according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a computing device according to an embodiment of the present disclosure;
fig. 5 is a schematic flow chart of a method for detecting misplug of an external device according to an embodiment of the present application;
fig. 6 is a schematic flow chart II of a method for detecting misplug of an external device according to an embodiment of the present application;
Fig. 7 is a schematic flow chart III of a method for detecting misplug of an external device according to an embodiment of the present application;
fig. 8 is a flow chart diagram of a misplug detection method of an external device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a controller according to an embodiment of the present application.
Detailed Description
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone.
The terms first and second and the like in the description and in the claims of embodiments of the present application are used for distinguishing between different objects and not necessarily for describing a particular sequential order of objects. For example, a first place pin and a second place pin, etc. are used to distinguish between different place pins, rather than to describe a particular order of place pins.
In the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as examples, illustrations, or descriptions. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In the description of the embodiments of the present application, unless otherwise indicated, the meaning of "a plurality" means two or more. For example, a plurality of processors refers to two or more processors; the plurality of transit connectors refers to two or more transit connectors.
Firstly, explanation is made on some concepts related in a method for detecting misplug of an external device and a computing device provided by the embodiment of the application, which are specifically as follows:
pin: called Pin, english called Pin. The wiring to the peripheral circuits is led out from the internal circuit of the integrated circuit (chip), and all the pins form the interface of the chip. A section of the end of the lead is soldered to a pad on the printed board.
Single host: also known as single-host, is used to indicate the scenario where one device (e.g., a network card) is simultaneously connected to a single processor or device.
Multiple hosts: also called multi-host, for indicating a scenario in which one device (e.g., a network card) is simultaneously connected to multiple processors or devices.
Based on the foregoing background, embodiments of the present application provide a computing device, where a controller in the computing device is connected to a plurality of transit connectors in the computing device; the transit connector is connected with an expansion connector in the docking station. The controller is used for determining the current connection relation of the docking station, and the connection relation comprises the following steps: a connection relationship of each docking connector in the docking station with the transit connector; and outputting alarm information for indicating that the current connection relation of the docking station is wrong under the condition that the current connection relation of the docking station is different from the preset connection relation of the docking station. Therefore, the user can timely acquire the error of the current connection relation of the docking station and correct the error connection relation, and the correct connection of the cable between the docking station and the transfer connector is ensured, so that the problem that the server cannot normally use the hardware resources to be expanded is solved.
Embodiments of the present application provide a computing device comprising: the docking station comprises a controller, a plurality of transfer connectors and at least two docking stations, wherein each docking station comprises at least two docking connectors. For example: the computing device includes: 1 controller, 4 transit connectors, and 2 docking stations, wherein each docking station includes 2 docking connectors. For ease of description of the embodiments herein, the computing device is illustrated in fig. 1, where the number of controllers in the computing device is 1, the number of docking connectors is 4, the number of docking stations is 2, and the number of docking connectors in each docking station is 2.
The 4 transfer connectors are respectively connected with the controller, namely: the transfer connector_1, the transfer connector_2, the transfer connector_3 and the transfer connector_4 are respectively connected with the controller; the controller may be at least one of a baseboard management controller (baseboard management controller, BMC), a programmable logic device (complex programmable logic device, CPLD), an FPGA, a DSP, and the like having processing capability.
One of the 4 transfer connectors is connected with one of the 2 docking stations (e.g., transfer connector_1 is connected with expansion connector_1, transfer connector_2 is connected with expansion connector_2, transfer connector_3 is connected with expansion connector_3, and transfer connector_4 is connected with expansion connector_4).
It should be noted that, in the embodiment of the present application, any two devices in the computing device are electrically connected (i.e. connected by a cable), which is not described in detail later.
The docking station is a device for providing a slot for a device to be expanded of the computing device, and can be understood as a circuit board with a connection slot. For example: when the equipment to be expanded is a network card, the docking station is a riser card for providing a network card slot; when the device to be expanded is a hard disk, the docking station is a hard disk backboard provided with a hard disk slot.
It should be understood that only one type of device to be expanded can be inserted into one expansion dock, and the expansion docks corresponding to different types of devices to be expanded are different, for example, the expansion dock corresponding to an OCP (open compute project, open computing item) network card is different from the expansion dock corresponding to a DPU (data processing unit, data processing) network card, and the expansion dock corresponding to a solid state disk is also different from the expansion dock corresponding to a mechanical disk.
It should be noted that, the types of the transit connector and the expansion connector are the same, for example: when the transit connector is a unified bus connector (unified bus connector, UBC) connector, the expansion connector is also a UBC connector; when the transit connector is an slimline_x8 connector, the extension connector is also an slimline_x8 connector, and in this embodiment, the transit connector and the extension connector are UBC connectors, which will not be described in detail later.
The controller is used for determining the current connection relation of the docking stations (namely, docking station_1 and docking station_2); the current connection relation of the docking station comprises the following steps: a connection relationship of each expansion connector in the docking station with the transit connector; that is, the current connection relationship of the docking station is used to indicate which of the transit connectors the docking connector in the docking station is actually connected to. For example: as shown in fig. 1, the current connection relationship of the docking station_1 includes: connection of expansion connector_1 to transit connector_1 and connection of expansion connector_2 to transit connector_2.
It should be noted that, the positions of the transit connectors_1 to transit connector_4 in the computing device are fixed; and which pin on the controller is connected to one of the transit connectors is also fixed, the controller has determined (or has knowledge of) the transit connector to which each pin on it is connected.
On the basis that the controller has knowledge of the transit connectors to which each pin is connected, the specific implementation of the controller determining the current connection relationship of a docking station includes: the controller obtains the identifiers of a plurality of expansion connectors (such as that the transit connector_1 is connected with the expansion connector_1) connected with each transit connector through each transit connector (such as that the transit connector_1 is connected with the expansion connector_1), wherein the identifiers of the expansion connectors are used for indicating the expansion dock where the expansion connectors are positioned and the positions of the expansion connectors on the expansion dock, and further, the controller can judge which expansion connector on which expansion dock each transit connector is connected with through the identifiers of the plurality of expansion connectors; the controller then determines the current connection relationship of the docking connector on the docking station with each transit connector based on the identification of the plurality of docking connectors.
Illustratively, assume that as shown in FIG. 1, a transit connector_1 in a computing device is connected to an expansion connector_1, a transit connector_2 is connected to an expansion connector_2, a transit connector_3 is connected to an expansion connector_3, and a transit connector_4 is connected to an expansion connector_4; since the docking station_1 includes: expansion connector_1 and expansion connector_2; the current connection relationship of the docking station_1 includes: the transit connector_1 is connected with the expansion connector_1, and the transit connector_2 is connected with the expansion connector_2. Since docking station_2 includes docking connector_3 and docking connector_4 therein; the current connection relationship of docking station_2 includes: the transit connector_3 is connected with the expansion connector_3, and the transit connector_4 is connected with the expansion connector_4.
Optionally, in one implementation, the identification of the expansion connector in the computing device shown in fig. 1 includes: a first location identifier and a second location identifier, the expansion connector comprising: a first pin and a second pin; the first pin is configured with a first position identifier, and the first position identifier is used for indicating position information of the expansion connector in a target docking station, wherein the target docking station is the docking station where the expansion connector is located. The second pin is configured with a second location identifier for indicating location information of the target docking station in the at least two docking stations; that is, the first location identifier is a location identifier of the docking connector in the target docking station, and the second location identifier is a location identifier of the target docking station in the plurality of docking stations; the controller may then determine a target docking station from among the plurality of docking stations in the computing device based on the second location identification, and then determine the expansion connector from among the plurality of expansion connectors in the target docking station based on the first location identification, so the controller may determine a specific location of the expansion connector based on the first location identification and the second location identification.
Illustratively, assume that the expansion connector is expansion connector_1 in fig. 1, where expansion connector_1 includes: a first pin and a second pin; the first pin is configured with a first position identifier "0", where the first position identifier "0" is used to indicate that the expansion connector_1 is located at a left side position in the docking station where the expansion connector_1 is located. A second position identifier '0' is configured on the second pin, wherein the second position identifier '0' is used for indicating that the docking station where the expansion connector_1 is located is the docking station which is located at the left side position in the docking station_1 and the docking station_2, and the docking station where the expansion connector_1 is located is the docking station_1 because the docking station_1 is located at the left side of the docking station_2; also, since the expansion connector_1 is located at the left position in the expansion dock_1, it is determined that the expansion connector is the expansion connector_1 in the expansion dock_1.
Based on the first pin and the second pin on the expansion connector, the controller obtains the identifier of the expansion connector (such as the identifier of the expansion connector_1) connected with the controller through a transfer connector (such as the transfer connector_1), wherein the identifier of the expansion connector_1 comprises: a first location identifier and a second location identifier of the expansion connector_1; and then, the controller determines the connection relation between the expansion connectors with the same second position identification in the acquired plurality of expansion connector identifications and the transfer connector as the connection relation of the docking station indicated by the second position identification.
The first position identifier and the second position identifier of the expansion connector are used as identifiers of the expansion connector, so that the controller can determine a target docking station where the expansion connector is positioned and position information of the expansion connector in the target docking station according to the identifiers of the expansion connector; that is, the controller can determine not only the target docking station to which the transit connector is connected, but also which of the specific docking connectors in the target docking station the transit connector is connected with, based on the identification of the docking connector, and thus, the accuracy of the controller to determine the docking connector is improved.
Illustratively, assuming that one of the docking stations is located at a left position within the docking station, the first position of that docking connector is identified as "0", and that one of the docking stations is located at a right position within the docking station, the first position of that docking connector is identified as "1"; the second position of the docking connector in one docking station is identified as "0" when the docking station is in a left position within the computing device and as "1" when the docking station is in a right position within the computing device.
Then in the computing device shown in fig. 1, the identity of the expansion connector acquired by the controller through transit connector_1 is { identity of expansion connector_1: (0, 0) }; wherein, the first "0" in (0, 0) is the position identification of the expansion connector_1 in the docking station where it is located (i.e. docking station_1), i.e. the first "0" is the first position identification of the expansion connector_1; the second "0" is the location identification of docking station_1, i.e., the second "0" is the second location identification of docking station_1. The identity of the expansion connector acquired by the controller through the transit connector_2 is { identity of expansion connector_2: (1, 0) }; the identity of the expansion connector acquired by the controller through the transit connector_3 is { identity of expansion connector_3: (0, 1) }; the identity of the expansion connector acquired by the controller through the transit connector_4 is { identity of expansion connector_4: (1,1) }. The controller obtains the identifier (0, 0) of the transit connector_1 through the transit connector_1, which indicates that the transit connector_1 is connected with the expansion connector_1 in the docking station_1, that is, the controller obtains the identifier of which expansion connector through the transit connector_1, which indicates that the transit connector_1 is connected with the expansion connector.
Since the second position identification in the identification (0, 0) of the expansion connector_1 acquired by the transit connector_1 and the second position identification in the identification (1, 0) of the expansion connector_2 acquired by the transit connector_2 are both "0", and the first position identification in the identification (0, 0) of the expansion connector_1 is "0", the first position identification in the identification (1, 0) of the expansion connector_2 is "1", the controller determines that the connection relationship of the current expansion connector_1 is that the expansion connector_1 is connected with the transit connector_1 and the transit connector_2, and can further confirm that the expansion connector_1 on the expansion connector_1 is connected with the transit connector_1, and the expansion connector_2 on the expansion connector_2 is connected with the transit connector_2, based on the identifications { (0, 0) and (1, 0) }, of the expansion connector_1 transmitted thereto, respectively. In the same manner, the controller determines that the current connection relationship of docking station_2 is that docking station_2 is connected with transit connector_3 and transit connector_4, and may further confirm that docking connector_3 on docking station_2 is connected with transit connector_3 and docking connector_4 on docking station_2 is connected with transit connector_4.
The controller is further configured to output alarm information when the current connection relationship of the docking station is different from the preset connection relationship of the docking station, where the alarm information is used to indicate that the current connection relationship of the docking station is wrong.
It should be noted that, the preset connection relationship of the docking station may be obtained by the controller from a local location, or may be obtained by the controller from another device or equipment.
For example, assuming that the current connection relationship of the docking station_1 is shown in fig. 1, the current connection relationship of the docking station_1 is in a single-host mode, and specifically, the current connection relationship of the docking station_1 includes: the extension connector_1 is connected with the transit connector_1, and the extension connector_2 is connected with the transit connector_2. Assume that the preset connection relationship of the docking station_1 is a multi-host mode, as shown in fig. 2, specifically including: expansion connector_1 is connected to transit connector_1, and expansion connector_2 is connected to transit connector_4. Since the expansion connector_2 is connected with the transit connector_4 in the preset connection relation of the expansion dock_1, if the expansion connector_2 is connected with the transit connector_2 in the current connection relation of the expansion dock_1; then the current connection relationship of the docking station_1 is different from the preset connection relationship of the docking station_1, at this time, the controller outputs alarm information, the content of the alarm information is that the current connection relationship of the docking station_1 is wrong, and the staff is requested to correct the following in time! The following is carried out The following is carried out ".
The embodiment of the application provides a computing device, wherein a transfer connector in the computing device is connected with an expansion connector in a docking station, and a plurality of transfer connectors are respectively connected with a controller in the computing device; the controller is used for determining the current connection relation of the docking station, and the connection relation comprises the following steps: a connection relationship of each expansion connector of the docking station with the transit connector; the controller is also used for outputting alarm information for indicating the error of the current connection relation of the docking station under the condition that the current connection relation of the docking station is different from the preset connection relation of the docking station. Therefore, the controller can compare the current connection relation of the docking station with the preset connection relation of the docking station and judge the correctness of the current connection relation of the docking station; when the current connection relation of the docking station is wrong, the controller outputs alarm information so that a user can timely learn the current connection relation of the docking station and correct the wrong connection relation, thereby ensuring the correct connection of the docking station, and therefore, the problem that the server cannot normally use the hardware resources to be expanded is solved.
Optionally, the identifier of the expansion connector further includes a type identifier of a target docking station where the expansion connector is located, where the expansion connector includes: in the case of the first pin and the second pin, the expansion connector further includes: a third pin; the third pin configures a type identification of the target docking station.
The docking station comprises at least: a first type and a second type, wherein the first type of docking station is a docking station for providing slots to a hard disk, and the second type of docking station is a docking station for providing slots to a network card.
Based on the first pin, the second pin and the third pin on the expansion connector, the controller obtains the identifier of the expansion connector_1 connected with the controller through a transfer connector (such as a transfer connector_1), wherein the identifier of the expansion connector_1: comprising the following steps: a first location identifier, a second location identifier of the expansion connector_1, and a type identifier of the expansion dock_1 where the expansion connector_1 is located; then, the controller determines the connection relationship between the docking connector, of which the second position identifier and the docking station type identifier are the same, and the transit connector as the connection relationship of the docking station_1.
Illustratively, the connection relationship between the transit connectors_1 to_4 and the expansion connectors is shown in fig. 1, the transit connector_1 is connected with the expansion connector_1 in the expansion dock_1, the transit connector_2 is connected with the expansion connector_2 in the expansion dock_1, the transit connector_3 is connected with the expansion connector_3 in the expansion dock_2, and the transit connector_4 is connected with the expansion connector_4 in the expansion dock_2; wherein the first position of expansion connector_1 is identified as "0" (i.e., on the left side) and the first position of expansion connector_2 is identified as "1" (i.e., on the right side); the location of docking station_1 is identified as "0", then the second location of docking connector_1 and docking connector_2 are both identified as "0"; the docking station_1 type is identified as "0"; this type identifier of "0" indicates that the docking station_1 is a docking station for providing a slot for the network card; the first position of expansion connector_3 is identified as "0", and the first position of expansion connector_4 is identified as "1"; the position of docking station_2 is identified as "1", and then the second positions of docking connector_3 and docking connector_4 are identified as "1"; the docking station_2 type is identified as "1"; the type identifier "1" indicates that the docking station_2 is a docking station for providing a slot to a hard disk (e.g., NVME).
Then, at this time, the identifier obtained by the controller through the transit connector_1 is { the identifier of the expansion connector_1: (0, 0) }, wherein the first "0" of the identifications (0, 0) of the expansion connector_1 is the first location identification of the expansion connector_1, the second "0" is the second location identification of the expansion connector_1, and the third "0" is the type identification of the expansion dock_1 where the expansion connector_1 is located. The identity obtained by the controller through the transit connector_2 is the identity of { expansion connector_2: (1, 0) }; the identity obtained by the controller through the transit connector_3 is the identity of { expansion connector_3: (0, 1) }; the identity obtained by the controller through the transit connector_4 is the identity of { expansion connector_4: (1,1,1) }.
Since the identifier (0, 0) of the expansion connector_1 acquired by the transit connector_1 and the second position identifier in the identifier (1, 0) of the expansion connector_2 acquired by the transit connector_2 are both "0", and the type identifiers of the docking stations are both 0; and the first position in the identifier (0, 0) of the expansion connector_1 is identified as "0", and the first position in the identifier (1, 0) of the expansion connector_2 is identified as "1", so the controller determines that the connection relationship of the current docking station_1 is that the docking station_1 is connected with the transit connector_1 and the transit connector_2; and it can be further confirmed that the docking connector_1 on the docking station_1 is connected with the transit connector_1, the docking connector_2 on the docking station_2 is connected with the transit connector_2, and the type of the docking station_1 is a network card. In the same manner, the controller determines that the current connection relationship of docking station_2 is that docking station_2 is connected with transit connector_3 and transit connector_4, and may further confirm that docking connector_3 on docking station_2 is connected with transit connector_3 and docking connector_4 on docking station_2 is connected with transit connector_4.
In the above embodiment, the first pin, the second pin and the third pin are disposed on each expansion connector, and the first position identifier of the expansion connector is configured on the first pin, where the first position identifier is used to indicate the position information of the expansion connector in the docking station where the expansion connector is located (i.e. the target docking station); a second location identifier of the expansion connector configured on the second pin, the second location identifier to indicate location information of the target docking station in the computing device in at least two docking stations; the third pin is configured with a type identifier of the target docking station and takes the first location identifier, the second location identifier and the type identifier of the target docking station of the docking connector as identifiers of the docking connector. On the basis, the controller acquires the identifiers of the expansion connectors connected with the controller through each transfer connector, and determines the current connection relation of the docking station according to the identifiers of the expansion connectors; under the condition that the current connection relation of the docking station is different from the preset connection relation of the docking station, the controller outputs alarm information, so that the type of the connected docking station is ensured to be correct under the condition that the cable connection of the docking station is ensured to be correct, and the problem that a server cannot normally use hardware resources to be expanded is solved.
Optionally, on the basis of the computing device shown in fig. 1, the computing device further comprises a plurality of processors (central processing unit, CPU), as shown in fig. 3, wherein the computing device comprises 2 CPUs; any one of the 2 CPUs is connected with 2 transfer connectors in the 4 transfer connectors (for example, CPU1 is respectively connected with transfer connector_1 and transfer connector_2, and CPU2 is respectively connected with transfer connector_3 and transfer connector_4); one of the 4 transfer connectors is connected with one of the 2 docking stations (e.g., transfer connector_1 is connected with expansion connector_1, transfer connector_2 is connected with expansion connector_2, transfer connector_3 is connected with expansion connector_3, and transfer connector_4 is connected with expansion connector_4).
The CPU issues a communication resource to the docking station connected to the CPU through the transit connector connected to the CPU, where the communication resource may be a bandwidth resource, a high-speed signal, etc. for the CPU to communicate with the docking station connected to the CPU. For example, CPU1 issues communication resources to dock_1 through transit connector_1 and transit connector_2; CPU2 issues communication resources to docking station_2 through transit connector_3 and transit connector_4.
In one embodiment, as shown in FIG. 4, on the basis of the computing device shown in FIG. 3, the computing device further comprises: the system comprises a main board and an adapter board, wherein a plurality of processors in the computing equipment are arranged on the main board, and a plurality of transfer connectors in the computing equipment are arranged on the adapter board.
The controller includes: CPLD and BMC; the CPLD is arranged on the adapter plate, the BMC is arranged on the main board, and the BMC is connected with the plurality of adapter connectors through the CPLD.
It should be noted that, the specific implementation manner of the CPLD for determining the current connection relationship of the docking station is similar to the implementation manner of the controller for determining the current connection relationship of the docking station, and detailed description of the CPLD in the computing device shown in fig. 1 is omitted here.
It should be understood that the position of each of the plurality of adapter connectors on the adapter board is fixed, and to which of the plurality of adapter connectors one pin on the controller is connected is also fixed (i.e., preset); therefore, after the controller obtains the identifier of the expansion connector connected with the transfer connector through the transfer connector, the controller can determine that the expansion connector indicated by the identifier of the expansion connector is the expansion connector connected with the transfer connector. Based on the above, the controller determines a plurality of connection relations between the plurality of transfer connectors and the plurality of expansion connectors, and determines all connection relations of the plurality of connection relations, in which the expansion connectors are located, of the same docking station as the current connection relation of the docking station.
The foregoing BMC is configured to output alarm information when the current connection relationship of the docking station is different from the preset connection relationship of the docking station, where the alarm information may be that the BMC outputs the alarm information in a management interface of the BMC, or that the BMC sends the alarm information to other devices, and then the other devices output the alarm information.
It should be noted that the foregoing is an exemplary description of the functions of the CPLD and the BMC, for example: in one implementation, the CPLD is configured to determine a current connection relationship of the docking station, and send the connection relationship to the BMC; the BMC is used for determining whether the current connection relation of the docking station is the same as the preset connection relation of the docking station, and outputting alarm information under the condition of being different; the details of example 1 are described in detail below, and will not be described in detail here. In another implementation, the CPLD is configured to determine a current connection relationship of the docking station, and send alarm indication information to the BMC when the current connection relationship of the docking station is different from a preset connection relationship of the docking station; the BMC responds to the alarm indication information and outputs alarm information; the details of example 2 are described in detail below, and will not be described in detail here.
Optionally, each CPU connects with the transit connectors_1 to_4 through a retimer card (not shown in the figure); specifically, CPU1 is connected with a re-timer_1, and the re-timer_1 is connected with a transit connector_1 and a transit connector_2 respectively; CPU2 is connected with a timer_2, and the timer_2 is connected with a transit connector_3 and a transit connector_4 respectively; the retimer card is used to enhance the signal that the CPU issues communication resources to the docking station.
Optionally, the controller further includes a storage unit connected to the BMC, where the storage unit is configured to store a preset connection relationship of the docking station; that is, the BMC is specifically configured to obtain a preset connection relationship of the docking station from the storage unit, and output the alarm information when the preset connection relationship of the docking station is different from the current connection relationship of the docking station.
The storage unit may be a device with a storage function, such as a solid state disk, a field replaceable unit (field replace unit, FRU), a nonvolatile memory (non volatile memory express, NVME), or the like; the specific embodiments of the present application are not limited to the specific form of the memory cell described above.
The controller in the above embodiment further includes a storage unit connected to the BMC on the basis of including the CPLD and the BMC, where the storage unit is configured to store a preset connection relationship of the docking station, so that before the BMC determines whether the preset connection relationship of the docking station is the same as the current connection relationship of the docking station, the BMC may obtain the preset connection relationship of the docking station from the storage unit; compared with the scheme that the preset connection relation of the docking station is stored in the BMC, the storage space of the BMC is saved.
Based on the above computing device, the embodiment of the application provides two methods for detecting misplug of external devices, which are specifically described by expanding the first scheme to the second scheme.
Scheme one
The embodiment of the application provides a method for detecting misplug of an external device, which is applied to any computing device shown in fig. 1 to 3, and comprises the following steps as shown in fig. 5: S110-S130.
S110, the controller determines the current connection relation of the docking station.
The current connection relation of the docking station comprises the following steps: the connection relationship of each expansion connector in the docking station with the transit connector.
Illustratively, as shown in FIG. 1, docking station_1 in a computing device includes: expansion connector_1 and expansion connector_2; the extension connector_1 is connected with the transfer connector_1, and the extension connector_2 is connected with the transfer connector_2. At this time, the current connection relationship of the docking station_1 includes: the extension connector_1 is connected with the transit connector_1, and the extension connector_2 is connected with the transit connector_2.
The specific implementation of S110 described above, as shown in fig. 6, includes: s110a-S110b.
S110a, the controller obtains the identification of the expansion connector connected with each transit connector through each transit connector.
The identifier of the expansion connector is used for indicating the expansion connector connected with the transit connector, that is, when the controller obtains the identifier of the expansion connector_1 through the transit connector_1, the controller indicates that the transit connector_1 is connected with the expansion connector_1; the identifier of the expansion connector includes pin information of the expansion connector, the pin information is used for determining whether the expansion connector actually connected with the transfer connector is a preset expansion connector, so as to judge whether the cable between the transfer connector and the expansion connector is connected correctly, for example, assume that the expansion connector indicated by the pin information acquired by the controller through the transfer connector_1 is an expansion connector_2; then, assume that the preset transfer connector_1 is connected with the expansion connector_1; then the controller determines at this point that transit connector_1 is connected to the wrong expansion connector.
It should be understood that the controller is respectively connected with a plurality of transfer connectors in the computing device where the controller is located, wherein the plurality of transfer connectors are respectively connected with different expansion connectors in a one-to-one manner; based on this, the controller acquires the identification of the expansion connector connected to each of the transit connectors through the plurality of transit connectors, respectively.
Illustratively, in the case where the transit connector_1 is connected to the expansion connector_1 in the computing device as shown in fig. 1, the pin information of the expansion connector_1 is included in the identification of the expansion connector acquired by the controller through the transit connector_1.
In one implementation, the identification of the expansion connector includes: a first location identifier and a second location identifier of the expansion connector; the first position identifier is used for indicating position information of the expansion connector in a target expansion dock, wherein the target expansion dock is the expansion dock where the expansion connector is located; the second location identification is used to indicate location information of the target docking station in at least two of the computing devices.
It should be noted that the expansion connector includes: the first pin is provided with the first position identifier, and the second pin is provided with the second position identifier; the controller obtains a first position identifier from a first pin of the expansion connector through the transfer connector, obtains the second position identifier from a second pin of the expansion connector, and determines the first position identifier and the second position identifier as identifiers of the expansion connector.
Illustratively, assume that transit connector_1 in the computing device shown in FIG. 1 is connected to docking connector_1 in docking station_1, transit connector_2 is connected to docking connector_2 in docking station_1, transit connector_3 is connected to docking connector_3 in docking station_2, and transit connector_4 is connected to docking connector_4 in docking station_2. The first pin of the expansion connector_1 is configured with a first position identifier "0", the second pin of the expansion connector_1 is configured with a second position identifier "0", the first pin of the expansion connector_2 is configured with a first position identifier "1", and the second pin of the expansion connector_2 is configured with a second position identifier "0"; the first pin of the expansion connector_3 is provided with a first position identifier "0", the second pin of the expansion connector_3 is provided with a second position identifier "1", the first pin of the expansion connector_4 is provided with a first position identifier "1", and the second pin of the expansion connector_4 is provided with a second position identifier "1".
Then, the identifier obtained by the controller through the transit connector_1 is { identifier of the expansion connector_1, (0, 0) }, wherein the first "0" in the identifier (0, 0) of the expansion connector_1 represents the first position identifier of the expansion connector_1, and the second "0" represents the second position identifier of the expansion connector_1; the identification obtained through the transit connector_2 is the identification of { expansion connector_2, (1, 0) }, the identification obtained through the transit connector_3 is the identification of { expansion connector_3, (0, 1) }, and the identification obtained through the transit connector_4 is the identification of { expansion connector_4, (1, 1}.
The controller takes the first position identifier and the second position identifier of the expansion connector as the identifiers of the expansion connector, so that the controller can determine a target docking station where the expansion connector is positioned and the position information of the expansion connector in the target docking station according to the identifiers of the expansion connector; that is, the controller can determine not only the target docking station to which the target transit connector (i.e., the transit connector to which the expansion connector is connected) is connected, but also which specific expansion connector in the target docking station the target transit connector is connected with, based on the identification of the expansion connector, and thus, the accuracy of the controller to determine the expansion connector is improved.
In another implementation manner, the identification of the expansion connector further includes, on the basis of the first location identification and the second location identification of the expansion connector, the identification of the expansion connector: and identifying the type of the target docking station, wherein the target docking station is the docking station where the docking connector is positioned.
It should be noted that, the expansion connector includes: the expansion connector further comprises: a third pin, on which a type identifier of the target docking station is configured; the controller obtains the type identifier of the target docking station from the third pin of the expansion connector through the transfer connector, and determines the first position identifier, the second position identifier and the type identifier of the target docking station of the expansion connector as the identifiers of the expansion connector.
The types of the target docking station include: a first type and a second type; the first type of docking station is used for providing slots for the hard disk, and the second type of docking station is used for providing slots for the network card; alternatively, the first type of docking station is an NVME backplane for providing slot riser cards to the OCP network card and the second type of docking station is an NVME backplane for providing slots to the NVME.
Illustratively, assuming that one of the docking stations is located at a left position within the docking station, the first position of that docking connector is identified as "0", and that one of the docking stations is located at a right position within the docking station, the first position of that docking connector is identified as "1"; the second position of the docking connector in one docking station is identified as "0" when the docking station is in a left position within the computing device and as "1" when the docking station is in a right position within the computing device; when the type of one docking station is the first type, the type of the docking station is identified as '0', and when the type of one docking station is the second type, the type of the docking station is identified as '1'. Assume again that the type of docking station_1 in the computing device shown in fig. 1 is identified as "0" and the type of docking station_2 is identified as "1".
Then, as shown in fig. 1, in the case where the transit connector in the computing device is connected to the expansion connector through a cable shown by a broken line, the controller in the computing device obtains an identification of { expansion connector_1: (0, 0) }, wherein the first "0" in (0, 0) is the first location identifier of expansion connector_1, the second "0" is the second location identifier of expansion connector_1, and the third "0" is the type identifier of expansion dock_1 where expansion connector_1 is located. The identity obtained by transit connector_2 is the identity of { expansion connector_2: (1, 0) }, the identification obtained by the transit connector_3 is the identification of { expansion connector_3: (0, 1) }, the identification obtained by transit connector_4 is the identification of { expansion connector_4: (1,1,1) }.
The above embodiment uses the first location identifier, the second location identifier and the type identifier of the target docking station of the expansion connector as the identifiers of the expansion connector, so that the controller determines the type of the target docking station on the basis of determining the location of the expansion connector, therefore, the controller can determine not only the specific location of the expansion connector but also the type of the target docking station where the expansion connector is located according to the identifiers of the expansion connector, and the accuracy of determining the expansion connector by the controller is improved.
S110b, the controller determines the current connection relation of the docking station according to the obtained identifiers of the plurality of docking connectors.
In the case that the identifier of the expansion connector includes the first location identifier and the second location identifier of the expansion connector, the specific implementation of S110b includes: and the controller determines the connection relation between all the expansion connectors with the same second position identification in the obtained multiple expansion connector identifications and the transfer connector as the current connection relation of the docking station.
The current connection relationship of the docking station comprises the connection relationship of all docking connectors on the docking station and the transfer connector.
Illustratively, as shown in fig. 1, in a case where the transit connector in the computing device is connected to the expansion connector through a cable represented by a broken line, the identification of the plurality of expansion connectors acquired by the controller includes: { identification of expansion connector_1 (0, 0) } wherein the first "0" in the identification of expansion connector_1 (0, 0) represents the first location identification of expansion connector_1 and the second "0" represents the second location identification of expansion connector_1; { identification of expansion connector_2, (1, 0) }, { identification of expansion connector_3, (0, 1) }, and { identification of expansion connector_4, (1, 1) }. Since the identifier (0, 0) of the expansion connector_1 is obtained by the controller through the transfer connector_1, it is determined that the transfer connector_1 is connected with the expansion connector_1, the transfer connector_2 is connected with the expansion connector_2, the transfer connector_3 is connected with the expansion connector_3, and the transfer connector_4 is connected with the expansion connector_4 in the same manner; because the second position identifiers in the identifiers (0, 0) and (1, 0) respectively acquired by the controller through the transfer connector_1 and the transfer connector_2 are both "0", and the position identifier of the docking station_1 is also "0", the controller determines that the current connection relationship of the docking station_1 comprises: the transit connector_1 is connected with the expansion connector_1, and the transit connector_2 is connected with the expansion connector_2. Likewise, the controller determines that the current connection relationship of docking station_2 includes: the transit connector_3 is connected with the expansion connector_3, and the transit connector_4 is connected with the expansion connector_4.
In the case that the identifier of the expansion connector includes a first location identifier, a second location identifier of the expansion connector, and a type identifier of a target docking station where the expansion connector is located, the specific implementation of S110b includes: the controller determines the connection relation between the expansion connector and the transfer connector, wherein the second position identification and the type identification of the expansion connector are the same, in the identifications of the expansion connectors, as the current connection relation of the expansion dock.
Illustratively, as shown in fig. 1, in a case where the transit connector in the computing device is connected to the expansion connector through a cable represented by a broken line, the identification of the plurality of expansion connectors acquired by the controller in the computing device includes: identification of { extended connector_1: (0, 0) }, wherein the first "0" in (0, 0) is a first location identifier of expansion connector_1, the second "0" is a second location identifier of expansion connector_1, and the third "0" is a type identifier of expansion dock_1 in which expansion connector_1 is located; identification of { extended connector_2: (1, 0) }, { identification of expansion connector_3: (0, 1) } identity of { expansion connector_4: (1,1,1) }.
Since the identifier acquired by the controller through the transit connector_1 is the identifier (0, 0) of the expansion connector_1, it is determined that the transit connector_1 is connected with the expansion connector_1, and the transit connector_2 is connected with the expansion connector_2, the transit connector_3 is connected with the expansion connector_3, and the transit connector_4 is connected with the expansion connector_4 in the same manner; because the second position identifiers in the identifiers (0, 0) and (1, 0) acquired by the transfer connector_1 and the transfer connector_2 are both 0, and the third position identifiers are both 0; while the second position of docking station_1 is identified as "0", and the type identification of docking station_1 is also "0"; the controller determines that the current connection relationship of docking station_1 includes: the transfer connector_1 is connected with the expansion connector_1, the transfer connector_2 is connected with the expansion connector_2, and the type of the expansion dock_1 is a network card. Likewise, the controller determines that the current connection relationship of docking station_2 includes: the transit connector_3 is connected with the expansion connector_3, and the transit connector_4 is connected with the expansion connector_4.
S120, the controller determines whether the current connection relation of the docking station is the same as the preset connection relation of the docking station.
It should be noted that, the preset connection relationship of the docking station may be directly obtained by the controller from the local, or may be obtained by the controller from another device in the computing device, or may be obtained by the controller from another device.
For example, it is assumed that the transit connector_1 is connected to the expansion connector_1 in a preset connection relationship of the expansion connector_1, that is, the identifier obtained by the controller through the transit connector_1 is (0, 0), where (0, 0) is the identifier of the expansion connector_1, the first "0" in (0, 0) is the first location identifier of the expansion connector_1, the second "0" is the second location identifier of the expansion connector_1, and the third "0" is the type identifier of the expansion connector_1 where the expansion connector_1 is located.
Then, when the transit connector_1 is connected with the docking connector_1 in the current connection relationship of the docking station_1, that is, the identifier of the docking connector actually acquired by the controller through the transit connector_1 is (0, 0), the controller determines that the current connection relationship of the docking station_1 is the same as the preset connection relationship of the docking station_1.
In the case of a cable connection error between the transit connector and the expansion connector, for example, the transit connector_1 is connected with the expansion connector_2, the identification of the expansion connector acquired by the controller through the transit connector_1 is (1, 0), since the identification (1, 0) of the expansion connector currently acquired through the transit connector_1 is not identical to the identification (0, 0) of the expansion connector preset acquired through the transit connector_1; the controller determines that the current connection relationship of the docking station_1 is different from the preset connection relationship of the docking station_1.
In case the cable connection between the transit connector and the docking connector is correct, and the type of docking station connected is wrong, such as: when the identifier of the expansion connector acquired by the controller through the transfer connector_1 is (0, 1), the docking station represented by the type identifier "1" of the docking station_1 in the identifier of the expansion connector currently acquired by the transfer connector_1 is an NVME backboard, the third bit of the identifier of the expansion connector preset in the controller and acquired by the transfer connector_1 is "0", and the docking station represented by "0" is a riser card; the NVME backplate and the riser card are docking stations providing different types of slots, so the controller determines that the current connection relationship of docking station_1 is different from the preset connection relationship of docking station_1.
And under the condition that the current connection relation of the docking station is the same as the preset connection relation of the docking station, the controller executes an ending action to end the current method.
In case that the current connection relationship of the docking station is different from the preset connection relationship of the docking station, the controller performs S130 described below.
S130, the controller outputs alarm information.
The alarm information is used for indicating the current connection relation error of the docking station.
Illustratively, as shown in fig. 1, in the case that the transit connector in the computing device is connected to the expansion connector by a cable represented by a dotted line, the current connection relationship of the docking station_1 is in a single-host mode, and specifically, the current connection relationship of the docking station_1 includes: the extension connector_1 is connected with the transfer connector_1, and the extension connector_2 is connected with the transfer connector_2; assume further that the preset connection relationship of the docking station_1 is a multi-host mode as shown in fig. 2, which specifically includes: the extension connector_1 is connected with the transfer connector_1, and the extension connector_2 is connected with the transfer connector_4; since the expansion connector_2 is connected with the transit connector_4 in the preset connection relation of the expansion dock_1, and the expansion connector_2 is connected with the transit connector_2 in the current connection relation of the expansion dock_1; therefore, the current connection relation of the docking station_1 is different from the preset connection relation of the docking station_1, at the moment, the controller outputs alarm information, and the content of the alarm information is that the current connection relation of the docking station_1 is wrong, and the staff is required to correct the following conditions in time! The following is carried out The following is carried out ".
According to the misplug detection method of the external device, the controller in the method obtains the current connection relation of the docking station, and the connection relation comprises the following steps: the connection relation between the expansion connector and the transfer connector on the docking station; then, under the condition that the current connection relation of the docking station is different from the preset connection relation of the docking station, the controller outputs alarm information indicating the error of the current connection relation of the docking station, so that a user can timely acquire the error of the current connection relation of the docking station and correct the error connection relation, thereby ensuring the correct connection of the docking station, and therefore, the problem that a server cannot normally use hardware resources to be expanded is solved.
Scheme II
Note that the computing device shown in fig. 4 includes: the system comprises a main board and an adapter board, wherein a plurality of processors in the computing equipment are arranged on the main board, and a plurality of transfer connectors in the computing equipment are arranged on the adapter board. The controller in the computing device includes: CPLD and BMC; the CPLD is arranged on the adapter plate, the BMC is arranged on the main board, and the BMC is connected with the plurality of adapter connectors through the CPLD.
The embodiment of the application provides a method for detecting misplug of an external device, which is applied to a computing device shown in fig. 4, and is described by 2 embodiments, specifically as follows:
example 1
The embodiment of the application provides a method for detecting misplug of an external device, which comprises the following steps as shown in fig. 7: S210-S240.
S210, the CPLD determines the current connection relation of the docking station.
It should be noted that, the implementation of S210 is similar to the implementation of S110, and specific descriptions of S210 may refer to the related descriptions of S110, which are not repeated herein.
S220, the CPLD transmits the current connection relation of the docking station to the BMC.
The CPLD is connected to the BMC, so the CPLD in S220 transmits the current connection relationship of the docking station to the BMC through the connection.
S230, the BMC determines whether the current connection relation of the docking station is the same as the preset connection relation of the docking station.
The preset connection relation of the docking station may be obtained by the BMC from a local place or may be obtained by the BMC from other devices or equipment.
Optionally, when the preset connection relation of the docking station is stored in the storage unit connected to the BMC, the BMC further includes, before executing S230: and the BMC acquires the preset connection relation of the docking station from the storage unit.
And under the condition that the current connection relation of the docking station is the same as the preset connection relation of the docking station, the BMC executes an ending action to end the current method.
In case that the current connection relationship of the docking station is different from the preset connection relationship of the docking station, the BMC performs S240 described below.
S240, the BMC responds to the alarm indication information and outputs alarm information.
It should be noted that, the implementation of S240 is similar to the implementation of S130, and specific descriptions of S240 may refer to the related descriptions of S130, which are not repeated herein.
In the above embodiment, the BMC receives the current connection relationship of the docking station sent by the CPLD, determines whether the current connection relationship of the docking station is the same as the preset connection relationship of the docking station, and outputs the alarm information when the current connection relationship of the docking station is different from the preset connection relationship of the docking station. Therefore, the CPLD is only used for acquiring the current connection relationship of the docking station, judging whether the current connection relationship of the docking station is the same as the preset connection relationship of the docking station, and the action of outputting the alarm information is executed by the BMC, so that the utilization rate of processing resources in the CLPD is reduced.
Example 2
The embodiment of the application provides a method for detecting misplug of an external device, which comprises the following steps as shown in fig. 8: S310-S340.
S310, the CPLD determines the current connection relation of the docking station.
It should be noted that, the implementation of S310 is similar to the implementation of S110, and specific descriptions of S310 may refer to the related descriptions of S110, which are not repeated herein.
S320, the CPLD determines whether the current connection relation of the docking station is the same as the preset connection relation of the docking station.
The preset connection relation of the docking station can be obtained by the CPLD from the local or from other devices or equipment.
Optionally, when the preset connection relation of the docking station is stored in the storage unit connected to the BMC, before executing S320, the method further includes: the BMC acquires a preset connection relation of the docking station from the storage unit and sends the preset connection relation of the docking station to the CPLD.
And under the condition that the current connection relation of the docking station is the same as the preset connection relation of the docking station, the CPLD executes an ending action to end the current method.
In the case where the current connection relationship of the docking station is different from the preset connection relationship of the docking station, the CPLD performs S330 described below.
S330, the CPLD sends alarm indication information to the BMC.
S340, the BMC responds to the alarm indication information and outputs alarm information.
It should be noted that, the implementation of S340 is similar to the implementation of S130, and specific descriptions of S340 may refer to the related descriptions of S130, which are not repeated herein.
In the above embodiment, the CPLD obtains the current connection relationship of the docking station, and determines whether the current connection relationship of the docking station is the same as the preset connection relationship of the docking station. Under the condition that the current connection relation of the docking station is different from the preset connection relation of the docking station, the CPLD sends alarm indication information to the BMC, and the BMC responds to the alarm indication information and outputs alarm information. It can be seen that the BMC is only used for outputting the alarm information, and it is not necessary to determine whether the current connection relationship of the docking station is the same as the preset connection relationship of the docking station, so that the utilization rate of processing resources in the BMC is reduced.
The foregoing description of the solution provided in the embodiments of the present application has been mainly presented in terms of a method. To achieve the above functions, the controller includes corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware 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 embodiment of the application may divide the functional modules of the controller according to the method, for example, the controller may include each functional module corresponding to each functional division, or two or more functions may be integrated into one processing module. The integrated modules may be implemented in hardware or in software functional modules. It should be noted that, in the embodiment of the present application, the division of the modules is schematic, which is merely a logic function division, and other division manners may be implemented in actual implementation.
Fig. 9 shows a schematic structural diagram of a controller, which includes: a determination unit 901 and an output unit 902.
The determining unit 901 is configured to determine a current connection relationship of the docking station, for example, to perform step S110 in the above-described method embodiment.
The output unit 902 is configured to output, by the controller, alarm information when the current connection relationship of the docking station is different from the preset connection relationship of the docking station, for example, performing step S130 in the above-described method embodiment.
Optionally, the controller further includes: an obtaining unit 903, where the obtaining unit 903 is configured to obtain, through each transit connector, an identifier of an expansion connector connected to the transit connector, for example, perform step S110a in the above-described method embodiment.
The determining unit 901 is specifically configured to determine a current connection relationship of the docking station according to the obtained identifiers of the plurality of docking connectors, for example, performing step S110b in the above method embodiment.
Optionally, the controller further comprises a first processing unit 904 and a second processing unit 905; the first processing unit 904 is configured to determine a current connection relationship of the docking station, and send the current connection relationship of the docking station to the second processing unit 905, for example, to perform steps S210-S220 in the above-described method embodiment.
The second processing unit 905 is configured to receive the current connection relationship of the docking station, and output alarm information if the current connection relationship of the docking station is different from the preset connection relationship of the docking station, for example, execute step S240 in the above method embodiment.
Optionally, the first processing unit 904 is configured to determine a current connection relationship of the docking station; in case that the current connection relationship of the docking station is different from the preset connection relationship of the docking station, alarm indication information is sent to the second processing unit 905, for example, steps S310-S330 in the above-described method embodiment are performed.
The second processing unit 905 is configured to output alarm information in response to the alarm indication information, for example, to perform step S340 in the above-described method embodiment.
Optionally, the obtaining unit 903 is specifically configured to obtain a preset connection relationship of the docking station from the storage unit.
The units of the controller may also be used to perform other actions in the above method embodiments, and all relevant content of each step related to the above method embodiments may be cited to functional descriptions of corresponding functional units, which are not repeated herein.
The embodiment of the application also provides a computing device, which is any one of the computing devices shown in fig. 1 to 4.
The embodiment of the application also provides a computing device cluster, which comprises any one of the computing devices shown in the above-mentioned fig. 1 to 4.
Embodiments of the present application also provide a computer-readable storage medium having stored thereon a computer program which, when run on a computer, causes the computer to perform a method performed by any one of the computer devices provided above.
For the explanation of the relevant content and the description of the beneficial effects in any of the above-mentioned computer-readable storage media, reference may be made to the above-mentioned corresponding embodiments, and the description thereof will not be repeated here.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using a software program, it may be wholly or partly implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the processes or functions in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, fiber optic, digital subscriber line (digital subscriber line, DSL)) means or wireless (e.g., infrared, wireless, microwave, etc.) means from one website, computer, computing device, or data center. The computer readable storage medium can be any available medium that can be accessed by a computer or a data storage device including one or more computing devices, data centers, etc. that can be integrated with the available medium. The usable medium may be a magnetic medium (e.g., floppy disk, magnetic tape), an optical medium (e.g., digital video disc (digital video disc, DVD)), or a semiconductor medium (e.g., solid state disk (solid state drives, SSD)), or the like.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of functional modules is illustrated, and in practical application, the above-described functional allocation may be implemented by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to implement all or part of the functions described above. The specific working processes of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which are not described herein.
In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions to cause a computer device (which may be a personal computer, a computing device, or a network device, etc.) or a processor to perform all or part of the steps of the methods described in the various embodiments of the present application. And the aforementioned storage medium includes: flash memory, removable hard disk, read-only memory, random access memory, magnetic or optical disk, and the like.
The foregoing is merely a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (14)

1. A computing device, the computing device comprising: a controller, a plurality of transfer connectors, and at least two docking stations, each docking station including at least two docking connectors therein;
one of the transit connectors is connected with one of the expansion connectors;
the plurality of transfer connectors are respectively connected with the controller;
the controller is used for determining the current connection relation of the docking station, and the connection relation comprises the following steps: a connection relationship of each expansion connector of the docking station with a transit connector; and outputting alarm information for indicating that the current connection relation of the docking station is wrong under the condition that the current connection relation of the docking station is different from the preset connection relation of the docking station.
2. The computing device of claim 1, wherein the controller to determine a current connection relationship of the docking station comprises:
The controller is used for acquiring the identification of the expansion connector connected with the transfer connector through each transfer connector;
the controller is used for determining the current connection relation of the docking station according to the obtained identifiers of the plurality of the expansion connectors.
3. The computing device of claim 2, wherein the identification of the expansion connector comprises: a first location identifier and a second location identifier; the expansion connector includes: a first pin and a second pin; the first pin is configured with the first position identifier, and the first position identifier is used for indicating position information of the expansion connector on a target docking station, wherein the target docking station is the docking station where the expansion connector is located; the second pin is configured with the second location identifier for indicating location information of the target docking station in the at least two docking stations.
4. The computing device of claim 3, wherein the identification of the expansion connector further comprises: a type identification of the target docking station;
the expansion connector further comprises: a third pin; the third pin is configured with a type identification of the target docking station.
5. The computing device of any one of claims 1-4, wherein the computing device comprises a motherboard and an adapter board, the adapter connector being provided to the adapter board;
the controller comprises a programmable logic device and a baseboard management controller, wherein the programmable logic device is arranged on the adapter board, the baseboard management controller is arranged on the main board, and the baseboard management controller is connected with the plurality of adapter connectors through the programmable logic device;
the programmable logic device is used for determining the current connection relation of the docking station; the baseboard management controller is used for outputting the alarm information under the condition that the current connection relation of the docking station is different from the preset connection relation of the docking station.
6. The computing device of claim 5, wherein the controller further comprises a memory unit coupled to the baseboard management controller, the memory unit having stored therein a predetermined connection relationship of the docking station.
7. The computing device of any of claims 1-6, wherein the type of docking station comprises at least: a first type of docking station for providing slots to a hard disk, and a second type of docking station for providing slots to a network card.
8. The misplug detection method of the external device is characterized in that the method is applied to a computing device, and the computing device comprises the following steps: a controller, a plurality of transfer connectors, and at least two docking stations, each docking station including at least two docking connectors therein; one of the plurality of transfer connectors is connected with one of the expansion connectors, and the plurality of transfer connectors are respectively connected with the controller; the method comprises the following steps:
the controller determines a current connection relationship of the docking station, the connection relationship comprising: a connection relationship of each expansion connector in the docking station with a transit connector;
and under the condition that the current connection relation of the docking station is different from the preset connection relation of the docking station, the controller outputs alarm information, and the alarm information is used for indicating that the current connection relation of the docking station is wrong.
9. The method of claim 8, wherein the controller determines a current connection relationship of the docking station, specifically comprising:
the controller obtains the identification of the expansion connector connected with the transfer connector through each transfer connector;
And the controller determines the current connection relation of the docking station according to the acquired identifiers of the plurality of docking connectors.
10. The method of claim 9, wherein the step of determining the position of the substrate comprises,
the identification of the expansion connector includes: the first position identifier is used for indicating the position information of the expansion connector on a target docking station, and the second position identifier is used for indicating the position information of the target docking station in the at least two docking stations, and the target docking station is the docking station where the expansion connector is located.
11. The method of claim 10, wherein the identification of the expansion connector further comprises: the type of the target docking station is identified.
12. The method of any one of claims 8-11, wherein the controller comprises a programmable logic device and a baseboard management controller; the method specifically comprises the following steps:
the programmable logic device determines the current connection relation of the docking station and sends the current connection relation of the docking station to the baseboard management controller;
the baseboard management controller receives the current connection relation of the docking station and outputs the alarm information when the current connection relation of the docking station is different from the preset connection relation of the docking station.
13. The method of any one of claims 8-11, wherein the controller comprises a programmable logic device and a baseboard management controller; the method specifically comprises the following steps:
the programmable logic device determines the current connection relation of the docking station; sending alarm indication information to the baseboard management controller under the condition that the current connection relation of the docking station is different from the preset connection relation of the docking station;
the baseboard management controller responds to the alarm indication information and outputs the alarm information.
14. The method according to any one of claims 12 to 13, wherein the controller further comprises a storage unit in which a preset connection relationship of the docking station is stored; the method further comprises the steps of:
the baseboard management controller obtains a preset connection relation of the docking station from the storage unit.
CN202311525586.9A 2023-11-15 2023-11-15 Misplug detection method of external equipment and computing equipment Pending CN117648239A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311525586.9A CN117648239A (en) 2023-11-15 2023-11-15 Misplug detection method of external equipment and computing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311525586.9A CN117648239A (en) 2023-11-15 2023-11-15 Misplug detection method of external equipment and computing equipment

Publications (1)

Publication Number Publication Date
CN117648239A true CN117648239A (en) 2024-03-05

Family

ID=90042542

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311525586.9A Pending CN117648239A (en) 2023-11-15 2023-11-15 Misplug detection method of external equipment and computing equipment

Country Status (1)

Country Link
CN (1) CN117648239A (en)

Similar Documents

Publication Publication Date Title
US10417166B2 (en) Implementing sideband control structure for PCIE cable cards and IO expansion enclosures
US10838816B2 (en) Detecting and sparing of optical PCIE cable channel attached IO drawer
US7711886B2 (en) Dynamically allocating communication lanes for a plurality of input/output (‘I/O’) adapter sockets in a point-to-point, serial I/O expansion subsystem of a computing system
US9697167B2 (en) Implementing health check for optical cable attached PCIE enclosure
US9697156B2 (en) Detecting and configuring of external IO enclosure
CN111289922B (en) Cable plugging detection method and related equipment
US10846159B2 (en) System and method for managing, resetting and diagnosing failures of a device management bus
US7111099B2 (en) Information handling system with improved bus system
US10691562B2 (en) Management node failover for high reliability systems
CN112579366A (en) Hard disk in-place detection system
CN117648239A (en) Misplug detection method of external equipment and computing equipment
US11625354B2 (en) Circuit structure with automatic PCIe link configuration adjustment and method thereof
CN115729872A (en) Computing device and detection method for PCIE cable connection
CN115905072A (en) Computer system, control method based on PCIe device and related device
US20140173365A1 (en) Semiconductor apparatus, management apparatus, and data processing apparatus
CN117667818B (en) Signal transmission structure, server and signal transmission method
US20240006823A1 (en) Systems and methods for detecting misshapen receptacle connector
CN118535503A (en) Mainboard and computing device
CN115902710A (en) Fool-proof detection method and computing device
CN116955264A (en) Communication connection establishment method and device, storage medium and electronic equipment
CN115525040A (en) PCIe equipment in-place detection circuit
CN116155712A (en) Network card configuration method, network card and computing device
CN118035138A (en) Method and device for acquiring disk attribute information
CN118916319A (en) PCIE port resource allocation method and device, main back board system and server
CN118708519A (en) Server expansion module, server, configuration method, device and 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