Electronic equipment, circuit board and connector connection detection method
By setting a connector with the same identity information in the circuit board connector detection and storing the expected identity information in the detection device, the problems of high detection costs and waste of resources in the prior art are solved, and efficient utilization of resources and reduction of costs are achieved.
Patent Information
- Application Number
- CN202411681857.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-21
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2044-11-21
AI Technical Summary
In the prior art, when detecting whether the circuit board connector is misconnected, a large number of detection chip pin resources are required, resulting in increased costs and waste of resources.
By setting at least two second connectors to have the same identity information and storing the desired identity information corresponding to each first connector in the detection device, more connectors are identified using the limited identity information, saving pin resources of the detection chip.
It effectively utilizes identity information resources, reduces detection costs, saves pin resources of detection chips, and meets the development needs of device miniaturization.
Smart Images

Figure CN119621634A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an electronic device, a circuit board, and a connector connection detection method. Background Art
[0002] With the development of science and technology, electronic devices such as servers include more and more circuit boards, and more and more connectors are integrated on the circuit boards. The connectors provide connection ports for connecting the circuit boards with other circuit boards. For example, the connectors on the circuit boards can be connected to the connectors on other circuit boards through cables (such as communication cables), thereby realizing the connection between the circuit boards and other circuit boards.
[0003] In order to ensure normal communication between circuit boards, it is necessary to detect whether the connectors are misconnected to ensure that the connectors are correctly connected. Currently, detecting whether the connectors are misconnected requires using more pin resources of the detection chip, thereby increasing the cost of connector misconnection detection. Summary of the invention
[0004] The embodiments of the present application provide a circuit board, an electronic device including a circuit board, and a connector connection detection method for detecting the connection of a circuit board connector. More connectors can be identified based on limited identity information, thereby avoiding the waste of identity information resources, and saving the pin resources of a detection chip used to identify identity information, thereby avoiding the waste of pin resources of a detection chip used to identify identity information, and thus avoiding the increase in the cost of connector connection detection.
[0005] In the first aspect, an embodiment of the present application provides an electronic device, which includes: a first circuit board and a plurality of second connectors, the first circuit board includes a detection device and a plurality of first connectors, the detection device is connected to each first connector respectively; a second connector is connected to a first connector correspondingly; a plurality of second connectors are distributed on one or more second circuit boards, and at least two second connectors are configured with the same identity information. The detection device stores the expected identity information corresponding to each first connector, and the expected identity information is the identity information of the second connector that should be received when the first connector is correctly connected to the second connector; the expected identity information of at least two first connectors is the same, and when correctly connected, the at least two first connectors are connected to the at least two second connectors correspondingly; the detection device confirms whether the connection between the first connector and the second connector is wrong by comparing the identity information actually received by the first connector with the corresponding expected identity information.
[0006] The electronic device may be, for example, an electronic device such as a server including multiple circuit boards. The first circuit board may be, for example, a high-speed serial computer expansion bus standard (peripheral component interconnect express, PCI-Express) adapter board (referred to as PCIe adapter board) and other adapter boards for connecting different circuit boards in the server. Of course, the first circuit board may also be other circuit boards that can be used for connector connection detection. The second circuit board where the second connector is located may be, for example, a circuit board where the central processing unit (CPU) is located (referred to as the CPU main circuit board), other circuit boards where processing units other than the CPU such as neural network processors (NPU), graphics processors (GPU), etc. are located for realizing specific functions, input / output device circuit boards for connecting external input / output devices (referred to as IO frame circuit boards), graphics card circuit boards, network card circuit boards, etc. Riser card circuit boards. Of course, the second circuit board where the second connector is located may also be other circuit boards. The detection device may be, for example, a complex programmable logic device (CPLD). Of course, the detection device may also be other types of logic devices or processing devices.
[0007] In this implementation, since at least two second connectors are configured with the same identity information, the expected identity information of at least two first connectors corresponding to the at least two second connectors is also the same. In this way, more connectors can be identified based on limited identity information, which improves the utilization rate of identity information and avoids the waste of identity information resources. On the other hand, since the identification of identity information depends on the pins of detection devices such as CPLD (i.e., detection chips), when the amount of identity information is small, fewer pins can be used, so the pin resources of the detection device for identifying the connector identity information can be saved, avoiding the waste of pin resources, thereby avoiding the increase of connector connection detection costs. In addition, detection devices such as CPLD with fewer pins occupy less space, which is more in line with the development needs of device miniaturization.
[0008] In a possible implementation of the first aspect above, among the at least two second connectors with the same identity information, any two second connectors have different physical forms, or have different positions relative to the first circuit board, or the path values connected to the corresponding first connectors are in different length ranges.
[0009] Exemplarily, in the process of connecting the second connector to the corresponding first connector through a cable, physical foolproofing can be achieved to a certain extent based on the physical factors such as the physical form, position, and length interval of the connection path value of the connector. Therefore, the second connectors with different physical forms, different positions relative to the first circuit board, and different length intervals of the path values connected to the corresponding first connector are not easy to be misconnected, so the same identity information can be set for such second connectors. In this way, on the one hand, identity information resources are saved, more connectors can be identified based on limited identity information, the utilization rate of identity information is improved, and the waste of identity information resources is avoided. On the other hand, since the identification of identity information depends on the pins of detection devices such as CPLD, when the number of identity information is small, fewer pins can be used, so the pin resources of the detection device for identifying the connector identity information can be saved, and the waste of pin resources can be avoided, thereby avoiding the increase of connector connection detection costs. In addition, detection devices such as CPLD with fewer pins occupy less space, which is more in line with the development needs of device miniaturization.
[0010] In a possible implementation of the first aspect above, the identity information of the second connector is represented by a level combination on a target pin of the second connector; when the first connector and the second connector are in a connected state, the detection device obtains the level combination on the target pin of the second connector through the first connector to identify the identity information of the second connector.
[0011] In a possible implementation of the first aspect, the identity information may be, for example, a UID, and the UID is represented by one or more levels, for example, by a three-level combination, and the identity information is, for example, binary level combination data 000, 001, etc., where 0 represents a low level and 1 represents a high level. Of course, the identity information may also be other information other than the UID for identifying the connector.
[0012] In a possible implementation of the first aspect above, the identity information may also be in other forms, such as decimal data 0 to 7, etc., which can be set as needed.
[0013] In a possible implementation of the first aspect above, the first connector includes a detection pin corresponding to the detection device, and the detection device obtains a level combination on a target pin of the second connector through the detection pin of the first connector.
[0014] In this way, the identity information of the second connector can be obtained conveniently and accurately based on the level information transmitted by the level pin.
[0015] Based on the above technical solution, the identity information of different second connectors can be the same based on physical factors such as physical form, location, and connection path value length interval, which can achieve physical foolproofing to a certain extent, effectively reducing the number and quantity of the identity information. On the one hand, it avoids the waste of identity information resources, and on the other hand, it improves the recognition rate of identity information. On the other hand, since the identity information is a level combination, the recognition of the identity information depends on the level pins of detection devices such as CPLD, so reducing the number of identity information bits makes it unnecessary to use detection devices such as CPLD with more pins to identify the identity information, saving pin resources, avoiding the increase in the cost of detection devices, thereby avoiding the increase in connector connection detection costs, and avoiding detection devices such as CPLD from occupying too much space, which meets the development needs of device miniaturization.
[0016] In a possible implementation of the first aspect, if the identity information actually received is consistent with the expected identity information, it is considered that the corresponding first connector and the second connector are connected correctly, and if the identity information actually received is inconsistent with the expected identity information, it is considered that the corresponding first connector and the second connector are connected incorrectly. In this way, based on whether the identity information actually received is consistent with the expected identity information, the result of whether the connector is connected correctly or incorrectly can be obtained conveniently and accurately.
[0017] Furthermore, in the case of a connector connection error, the electronic device may also generate a connector connection error prompt message for the incorrectly connected connector, so that the user can recheck and reconnect the connector to ensure that the connector is correctly connected.
[0018] In a possible implementation of the first aspect above, the electronic device further includes a baseboard management controller, which is connected to the detection device and is used to write the expected identity information corresponding to the first connector into a register included in the detection device.
[0019] In a possible implementation of the first aspect above, the electronic device also includes a memory, which is used to store cable topology configuration information of the electronic device, the cable topology configuration information includes expected identity information corresponding to the first connector, and the baseboard management controller is connected to the memory, and is used to obtain the expected identity information corresponding to the first connector according to the cable topology configuration information stored in the memory.
[0020] In a possible implementation of the first aspect, the memory is, for example, an electrically erasable programmable read only memory (EEPROM). Of course, the memory may also be other types of memory.
[0021] In a possible implementation of the first aspect above, the number of the second connectors is greater than 2. N , and at least two second connectors are configured with the same identity information so that the identity information of each second connector has N bits; each first connector transmits the N bits of identity information of the connected second connector to the detection device, and the detection device obtains the identity information of one second connector through N pins.
[0022] In a possible implementation of the first aspect, the identity information is represented by an N-bit level combination. For example, N is a positive integer greater than or equal to 1 and less than or equal to 3. Of course, N can also be a positive integer greater than 3.
[0023] Wherein, N can be determined based on the number of connectors included in the electronic device or the circuit board, or can be specifically set as needed, for example, it can be 2, 3, etc. Of course, N can also be a positive integer greater than 3.
[0024] In a second aspect, an embodiment of the present application provides a circuit board, the circuit board includes a plurality of connectors, each connector is configured with its own identity information, and at least two connectors are configured with the same identity information, and the identity information is used for identification of the connectors.
[0025] In this implementation, since at least two connectors are configured with the same identity information, more connectors can be identified based on limited identity information, thereby improving the utilization rate of identity information and avoiding the waste of identity information resources. On the other hand, since the identification of connector identity information depends on the pins of detection devices such as CPLD, when the amount of identity information is small, fewer pins can be used, thereby saving the pin resources of the detection device for identifying the connector identity information, avoiding the waste of pin resources, and thus avoiding the increase in connector connection detection costs. In addition, detection devices such as CPLD with fewer pins occupy less space, which is more in line with the development needs of device miniaturization.
[0026] Furthermore, among the at least two connectors with the same identity information, any two connectors have different physical forms, or are located in different positions relative to a certain circuit board, or path values connected to the corresponding connectors are in different length ranges.
[0027] Exemplarily, in the process of connecting a certain connector on a circuit board to a corresponding connector on another circuit board through a cable, physical foolproofing can be achieved to a certain extent based on the physical factors such as the physical form, position, and length interval of the connection path value of the connector. Therefore, such connectors with different physical forms, different positions relative to a certain circuit board, and path values connected to the corresponding connectors in different length intervals are not easy to be misconnected, so such connectors can be set with the same identity information. In this way, on the one hand, identity information resources are saved, more connectors can be identified based on limited identity information, the utilization rate of identity information is improved, and the waste of identity information resources is avoided. On the other hand, since the identification of identity information depends on the pins of detection devices such as CPLD, when the number of identity information is small, fewer pins can be used, so the pin resources of the detection device for identifying the connector identity information can be saved, and the waste of pin resources can be avoided, thereby avoiding the increase of connector connection detection costs. In addition, detection devices such as CPLD with fewer pins occupy less space, which is more in line with the development needs of device miniaturization.
[0028] In a possible implementation of the second aspect, the identity information of the connector is represented based on a combination of levels on target pins of the connector.
[0029] In a possible implementation of the second aspect, the circuit board may be the aforementioned CPU main circuit board, a circuit board where a processing unit such as an NPU or GPU for implementing a specific function is located, an IO frame circuit board, a graphics card circuit board, a network card circuit board, or other riser card circuit boards. Of course, the circuit board may also be other circuit boards in the electronic device.
[0030] In a third aspect, an embodiment of the present application provides a connector connection detection method, which is applied to the aforementioned electronic device, the method comprising: a detection device obtains the identity information of the second connector actually received by the first connector, and compares the identity information of the second connector actually received by the first connector with the corresponding expected identity information to confirm whether there is a connection error between the first connector and the second connector.
[0031] In this way, based on the identity information actually detected or received and the expected identity information, a result of whether the connector is connected correctly or incorrectly can be obtained conveniently and accurately.
[0032] In a possible implementation of the third aspect above, the identity information of the second connector actually received by the first connector is compared with the corresponding expected identity information to confirm whether the connection between the first connector and the second connector is incorrect, including: if the identity information of the second connector actually received by the first connector is consistent with the corresponding expected identity information, it is considered that the connection between the first connector and the second connector is correct; if the identity information of the second connector actually received by the first connector is inconsistent with the corresponding expected identity information, it is considered that the connection between the first connector and the second connector is incorrect.
[0033] In this way, by comparing whether the identity information corresponding to the two connectors in the connected state is consistent, it is possible to conveniently and accurately determine whether the connector connection is correct.
[0034] In a possible implementation of the third aspect, the connector connection error is a loose cable connection or a connector corresponding relationship connection error.
[0035] In a possible implementation of the third aspect above, if it is determined that a connection error occurs between the first connector and the second connector, the method further includes: generating connector connection error prompt information for presenting to a user.
[0036] In this way, the user can be easily reminded to adjust the connector connection status in time.
[0037] In a possible implementation of the third aspect above, when the identity information of the second connector is obtained, the method also includes: checking the format of the identity information of the second connector; if the format of the identity information of the second connector does not meet the preset format requirements, generating an identity information error prompt message for presenting to the user; if the format of the identity information of the second connector meets the preset format requirements, comparing the identity information of the second connector actually received by the first connector with the corresponding expected identity information.
[0038] In this way, it is possible to avoid performing identity information comparison when the identity information of the second connector is incorrect, and it is possible to conveniently remind the user to adjust the incorrect identity information in a timely manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solution of the present application, the drawings used in the description of the implementation methods are briefly introduced below.
[0040] Figure 1 A schematic diagram of the structure of a server as an example of an electronic device provided in an embodiment of the present application is shown;
[0041] Figure 2 A schematic diagram of the structure of a circuit board provided in an embodiment of the present application is shown;
[0042] Figure 3 A schematic diagram showing a structure in which circuit boards provided in an embodiment of the present application are connected via cables;
[0043] Figure 4 Another structural schematic diagram of a server provided in an embodiment of the present application is shown;
[0044] Figure 5 A schematic diagram of a process of a connector connection detection method provided in an embodiment of the present application is shown;
[0045] Figure 6 Another structural schematic diagram of a server provided in an embodiment of the present application is shown;
[0046] Figure 7 Another structural diagram of a server provided in an embodiment of the present application is shown;
[0047] Figure 8 Another schematic flow chart of the connector connection detection method provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0048] The technical solution of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0049] Taking a server as an example of an electronic device provided in an embodiment of the present application, as the number of circuit boards and connectors on the circuit boards included in the server increases, since the connectors are usually connected based on cables, there are cable convergence scenarios in some scenarios. Since the connectors corresponding to each cable have their own specific connections, they cannot be connected incorrectly. For example, there are 64 PCIe x8 connectors on a PCIe adapter board in a server, and the PCIe x8 connector is a high-speed connector. The PCIe adapter board may be docked with a CPU main circuit board, or a circuit board such as a Riser card circuit board that supports a PCI card. These circuit boards are provided with corresponding connectors for connecting to the connectors on the PCIe adapter board through corresponding cables.
[0050] Among the connectors included in the server provided in the embodiment of the present application, the UIDs of some connectors are the same, for example, the UIDs of at least two connectors are the same, and the UID is the identity information of the connector, for example, it can be a three-level combination data 000, 001, etc. In this way, the number of level digits and the number of UIDs can be effectively reduced. On the one hand, UID resources are saved, more connectors can be identified based on limited UIDs, the utilization rate of UID resources is improved, and the waste of UID resources is avoided. On the other hand, the recognition rate of UID is improved. On the other hand, since UID is a level combination, the identification of UID depends on the pins of detection devices such as CPLD, so the number of level digits of UID is reduced, and fewer pins can be used, so that there is no need to use detection devices such as CPLD with more pins to identify UID, saving pin resources, avoiding the waste of pin resources, and avoiding the increase in the cost of detection devices, thereby avoiding the increase in the cost of connector connection detection, and avoiding the detection devices such as CPLD from occupying too much space, which meets the development needs of device miniaturization.
[0051] For example, Figure 1 As shown, the server includes a first circuit board 100 and one or more second circuit boards 200 other than the first circuit board 100 .
[0052] The first circuit board 100 includes a detection device 110 and a plurality of first connectors 120, and the detection device 110 is connected to each of the first connectors 120. For example, Figure 1 As shown, the first circuit board 100 may be, for example, a PCIe adapter board, the detection device 110 may be, for example, a CPLD, and the first circuit board 100 includes a plurality of first connectors 120 distributed on the left side, right side, and bottom side of the first circuit board 100. Of course, the first circuit board 100 may also include first connectors 120 located at other positions.
[0053] Each second circuit board 200 includes a plurality of second connectors 210. For example, Figure 1 As shown, the second circuit board 200 can be, for example, a CPU main circuit board, a riser card circuit board, or other circuit boards. The CPU main circuit board includes a plurality of second connectors 210 distributed on the upper side and the left side of the CPU main circuit board, and the riser card circuit board includes a plurality of second connectors 210 distributed on the left side of the riser card circuit board. Of course, the CPU main circuit board and the riser card circuit board may also include second connectors 210 located at other positions.
[0054] Furthermore, if Figure 1 As shown, the first circuit board 100 can be connected to each of the second circuit boards 200 other than the first circuit board 100 through corresponding connectors.
[0055] In this implementation, among the above-mentioned multiple second connectors 210, at least two second connectors 210 have the same UID. In addition, the detection device 110 on the first circuit board 100 stores the expected UID corresponding to each first connector 120, and the expected UID is the UID of the second connector 210 that should be received when the first connector 120 is correctly connected to the second connector 210. The UIDs corresponding to at least two second connectors 210 are the same, and the expected UIDs of at least two first connectors 120 correspondingly connected to the at least two second connectors 210 are also the same, and when the first connector 120 is correctly connected to the corresponding second connector 210, the at least two first connectors 120 with the same UID are correspondingly connected to the at least second connector 210 with the same UID. The detection device 110 determines whether the connection between the first connector 110 and the second connector 210 is wrong by comparing the UID of the second connector 210 actually received by the first connector 120 with the corresponding expected UID.
[0056] In the server provided in the embodiment of the present application, at least two second connectors 210 in the second connectors 210 are configured with the same UID. Exemplarily, among the at least two second connectors 210 with the same UID, any two second connectors 210 have different physical forms, or different positions relative to the first circuit board 100, or the path values connected to the corresponding first connectors 110 are respectively in different length intervals. That is, among the second connectors 210, the UIDs of at least two second connectors 210 with different physical forms can be the same, the UIDs of at least two second connectors 210 with different positions relative to the first circuit board 100 can be the same, and the UIDs of at least two second connectors 210 whose path values connected to the corresponding first connector 110 are respectively in different length intervals can be the same. Of course, the UIDs of at least two second connectors 210 in the second connectors 210 that meet other conditions can also be the same.
[0057] In this way, since at least two second connectors 210 are configured to have the same UID, the expected UIDs of at least two first connectors 120 correspondingly connected to the at least two second connectors 210 are also the same. Therefore, more connectors can be identified based on limited UIDs, which improves the utilization rate of UIDs and avoids the waste of UID resources. On the other hand, since the identification of UIDs depends on the pins of detection devices such as CPLD, when the number of UIDs is small, fewer pins can be used, thereby saving the pin resources of the detection device for identifying the connector UID, avoiding the waste of pin resources, and thus avoiding the increase in the cost of connector connection detection. In addition, detection devices such as CPLD with fewer pins occupy less space, which is more in line with the development needs of device miniaturization.
[0058] Furthermore, in one implementation of the present application, the second connector 210 can be divided into multiple groups. For example, the second connector 210 can be divided into multiple groups based on physical factors such as physical form, location relative to a certain circuit board, and connection path value length interval. It can also be divided into multiple groups based on information such as the circuit board, the number of connectors included in the circuit board, the number of connectors included in the server, the number of level combination bits of the UID, and the number of UIDs.
[0059] For example, second connectors 210 with the same physical form can be grouped together based on their physical form. Second connectors 210 with the same position relative to a circuit board can be grouped together based on their position relative to a circuit board. Second connectors 210 with the same connection path value length interval can be grouped together based on the connection path value length interval. Second connectors 210 on the same circuit board can be grouped together based on the circuit board they are located on. Based on the number of level combination bits of the UID, for example, when the UID is a three-digit level combination data that can only correspond to 8 different UIDs, every 8 second connectors 210 can be grouped together. Of course, grouping can also be based on other methods.
[0060] Among the second connectors 210 included in different groups, at least some of the second connectors 210 have the same UID. For example, the UID of a second connector 210 in the first group is the same as the UID of a second connector 210 in the second group. These two second connectors 210 with the same UID may be second connectors 210 that meet physical foolproofing conditions, such as different physical forms, different locations relative to a circuit board, and different connection path value length intervals. In this way, the second connectors 210 located in different groups can reuse the UID. Furthermore, in the same group, the UIDs of each second connector 210 can be different. Of course, in the same group, the UIDs of some second connectors 210 that meet certain physical foolproofing conditions, such as second connectors 210 that are far apart, can also be the same. In this way, the second connectors 210 in the same group can also reuse the UID.
[0061] In summary, at least some of the second connectors 210 have the same UID, which can save UID resources. Different second connectors 210 are identified based on limited UIDs, which improves the utilization rate of UID resources and avoids the waste of UID resources. Moreover, without affecting the determination of whether the connection between the first connector 110 and the second connector 210 is incorrect based on the UID, there is no need to use detection devices such as CPLD with a larger number of pins to identify the UID, which can save pin resources and avoid waste of pin resources. It can also avoid an increase in the cost of detection devices, thereby avoiding an increase in the cost of connector connection detection and avoiding detection devices such as CPLD from occupying too much space, which meets the development needs of device miniaturization.
[0062] Specifically, the physical forms of the connectors in the server are different. Since the physical form of the connector can prevent mistakes, connectors of different physical forms are not easy to be connected incorrectly. Therefore, in one implementation of the present application, the UIDs of connectors of different physical forms that are not easy to be connected incorrectly can be the same. In this way, on the basis of identifying whether the connector is misconnected based on the UID, more connectors can be identified based on the limited UID, avoiding the waste of UID resources and pin resources.
[0063] For example, Figure 1 As shown, the CPU main circuit board includes a plurality of second connectors 210, which may include, for example, 16 Universal Box Connectors (UBC) and 8 Multi-channel Input / Output (Mini Cool Edge O, MCIO) connectors. Figure 1 As shown, 8 UBC connectors are located on the upper side of the CPU main circuit board to form group Z11, 8 UBC connectors are located on the left side of the CPU main circuit board to form group Z12, and 8 MCIO connectors are located on the upper side of the CPU main circuit board to form group Z13. Since the physical forms of the UBC connector and the MCIO connector are different and it is not easy to connect them wrongly, for the connectors in group Z11 and group Z13, only 3 bits of UID need to be set so that the UIDs of the 8 UBC connectors in group Z11 and the UIDs of the 8 MCIO connectors in Z13 correspond to each other one by one, and the 8 UBC connectors and 8 MCIO connectors can be identified. A 3-bit UID is, for example, an eight-level combination of data: 000, 001, 010, 011, 100, 101, 110, 111. Therefore, the UIDs of the eight UBC connectors in group Z11 can be 000, 001, 010, 011, 100, 101, 110, 111 respectively, and the UIDs of the eight MCIO connectors in Z13 can also be 000, 001, 010, 011, 100, 101, 110, 111 respectively. Correspondingly, the expected UIDs of the eight first connectors 120 on the PCIe adapter board connected to the eight UBC connectors in group Z11 are 000, 001, 010, 011, 100, 101, 110, 111, respectively, and the expected UIDs of the eight first connectors 120 on the PCIe adapter board connected to the eight MCIO connectors in group Z13 are 000, 001, 010, 011, 100, 101, 110, 111, respectively.
[0064] In this way, some second connectors 210 of different physical forms on the same circuit board can serve as different connector groups, each second connector 210 in the same connector group can have a different UID, and some second connectors 210 in different connector groups can have the same UID to reuse the UID. On the basis of identifying whether the connector is misconnected based on the UID, more connectors can be identified based on limited UIDs, which can effectively reduce the required number of UIDs and avoid the waste of UID resources and pin resources.
[0065] Furthermore, some connectors of different physical forms on different circuit boards can also be used as different connector groups to reuse UIDs. Figure 1 As shown, the riser card circuit board includes a plurality of second connectors 210, and the plurality of second connectors 210 include, for example, 8 UBC connectors, and the 8 UBC connectors are group Z21. Then, the UIDs of the 8 UBC connectors in group Z21 may also correspond one-to-one to the UIDs of the 8 MCIO connectors in group Z13 on the CPU main circuit board, and may be 000, 001, 010, 011, 100, 101, 110, 111 in sequence. Correspondingly, the expected UIDs of the 8 first connectors 120 on the PCIe adapter board connected to the 8 UBC connectors in group Z21 are 000, 001, 010, 011, 100, 101, 110, 111 in sequence.
[0066] In this way, some connectors of different physical forms on different circuit boards can be used as different connector groups, each second connector 210 in the same connector group can have a different UID, and some second connectors 210 in different connector groups can have the same UID to reuse the UID. On the basis of identifying whether the connector is misconnected based on the UID, more connectors can be identified based on limited UIDs, which can effectively reduce the required number of UIDs and avoid the waste of UID resources and pin resources.
[0067] Furthermore, in this implementation, the number of connector groups and connectors included in the connector group can be determined based on the positions of the second connectors 210 of different physical forms on the corresponding circuit board, the number of second connectors 210 of different physical forms included in the circuit board, the number of level combination bits of the UID, etc. For example, each connector group can also include 1, 2, 4 or 10 second connectors 210. In addition, the number of connector groups and connectors included in the connector group can be set based on the principle of minimizing the number of UIDs without affecting the accuracy of connection detection.
[0068] Furthermore, in some other implementations of the present application, the second connector 210 with the same UID may also be any multiple second connectors 210 with different physical forms among the second connectors 210 .
[0069] Further, the positions of the circuit boards in the server relative to a certain circuit board are different. For example, for a certain circuit board, some circuit boards are located above it, some circuit boards are located below it, or some circuit boards are located on its east side, and some circuit boards are located on its north side, or the center points of different circuit boards are at different angles with the center point of the certain circuit board, for example, some are at a 45° angle, and some are at a 110° angle. Also, the positions of different connectors in a certain circuit board relative to another circuit board are different. For example, some connectors in a certain circuit board are located on the left side of the center line of the other circuit board relative to the other circuit board, and some connectors are located on the right side of the center line of the other circuit board relative to the other circuit board. Since the connectors used for connecting between circuit boards are usually arranged nearby based on the positions between the circuit boards, it is not easy to connect the connectors in different positions relative to a certain circuit board. The certain circuit board can be the circuit board where the connector to which the connector is connected is located. Therefore, in one implementation of the present application, relative to the first circuit board 100, the UIDs of the second connectors 210 located at different positions of the first circuit board 100 can be the same, which reduces the number of UID requirements to avoid the waste of UID resources and pin resources.
[0070] For example, Figure 1 As shown, the CPU main circuit board is located at the lower side of the PCIe adapter board, and the riser card circuit board is located at the right side of the PCIe adapter board. The second connector 210 included in the CPU main circuit board and the second connector 210 of the riser card circuit board are located at different positions relative to the PCIe adapter board. Based on factors such as different cable lengths and the need to avoid cable crossing as much as possible, the CPU main circuit board is usually connected to the first connector 120 at the lower side of the PCIe adapter board through the second connector 210 on the upper side of the CPU main circuit board, and the riser card circuit board is usually connected to the first connector 120 on the right side of the PCIe adapter board through the second connector 210 on the left side of the riser card circuit board. Usually, the second connector 210 on the upper side of the CPU main circuit board will not be mistakenly connected to the first connector 110 on the right side of the PCIe adapter board, and the second connector 210 on the riser card circuit board will not be mistakenly connected to the first connector 120 on the lower side of the PCIe adapter board. Therefore, relative to the PCIe adapter board, the UIDs of some second connectors 210 on the CPU main circuit board and the Riser card circuit board located at different positions of the PCIe adapter board can be the same, and the expected UIDs of the first connectors 120 to which these second connectors 210 are connected are also the same.
[0071] In this way, some second connectors 210 on the second circuit board 200 located at different positions of the first circuit board 100 can be used as different connector groups, and some second connectors 210 in different connector groups can have the same UID to reuse the UID. On the basis of identifying whether the connector is misconnected based on the UID, more connectors can be identified based on limited UIDs, which can effectively reduce the required number of UIDs and avoid wasting UID resources and pin resources.
[0072] Furthermore, if Figure 1 As shown, the second connector 210 in group Z11 on the CPU main circuit board and the second connector 210 in group Z12 are also in different orientations relative to the PCIe adapter board. Based on factors such as different cable lengths and the need to avoid cable crossing as much as possible, the second connector 210 in group Z11 on the CPU main circuit board is usually connected to the bottom side of the PCIe adapter board, and the second connector 210 in group Z12 on the CPU main circuit board is usually connected to the left side of the PCIe adapter board. Usually, the second connector 210 in group Z11 will not be mistakenly connected to the left side of the PCIe adapter board, nor will the second connector 210 in group Z12 be mistakenly connected to the bottom side of the PCIe adapter board. Therefore, the UIDs of some second connectors 210 in group Z12 can be the same as the UIDs of some second connectors 210 in group Z11. For example, the UIDs of the eight second connectors 210 in Z12 are identical to the UIDs of the eight second connectors 210 in Z11, and can be 000, 001, 010, 011, 100, 101, 110, 111. Correspondingly, the expected UIDs of the first connectors 120 to which the second connectors 210 in group Z12 are connected are also identical to the expected UIDs of the first connectors 120 to which the second connectors 210 in group Z11 are connected, and can be 000, 001, 010, 011, 100, 101, 110, 111.
[0073] In this way, some second connectors 210 located at different positions on the same second circuit board 200 relative to the first circuit board 100 can serve as different connector groups, each second connector 210 in the same connector group can have a different UID, and some second connectors 210 in different connector groups can have the same UID to reuse the UID. On the basis of identifying whether the connector is misconnected based on the UID, more connectors can be identified based on the limited UID, which can effectively reduce the required number of UIDs and avoid the waste of UID resources and pin resources.
[0074] Furthermore, in this implementation, the connector group and the number of connectors included in the connector group can be determined based on the orientation of the second connector 210 relative to the first circuit board 100, the number of second connectors 210, the second circuit board 200 where the second connector 210 is located, the number of bits of the UID, etc. For example, each group of connectors can also include 1, 2, 4, or 10 connectors. In addition, the connector group and the number of connectors included in the connector group can be determined based on the principle of minimizing the number of UIDs without affecting the accuracy of connection detection.
[0075] Furthermore, in some other implementations of the present application, the second connector 210 with the same UID may also be any multiple second connectors 210 located at different positions of the first circuit board 100 among the second connectors 210 .
[0076] Furthermore, the physical positions of the circuit boards in the server are different, and the physical positions of the connectors in the circuit boards are different. Since the length of the cable used to connect the connectors between different circuit boards is usually set based on the physical distance between the two connectors that need to be connected, it is not easy to misconnect the connectors corresponding to cables of different length intervals, that is, it is not easy to misconnect the connectors whose path values of the connection path between the two connectors are in different length intervals. Therefore, in one implementation of the present application, the UIDs of the connectors of different length intervals corresponding to the path value or cable length are the same, which reduces the number of UIDs required and avoids the waste of UID resources and pin resources.
[0077] For example, Figure 1As shown, the CPU main circuit board is located at the lower side of the PCIe adapter board, and the riser card circuit board is located at the right side of the PCIe adapter board. Usually, the second connector 210 on the upper side of the CPU main circuit board is connected to the first connector 120 on the lower side of the PCIe adapter board, and the second connector 210 on the left side of the riser card circuit board is connected to the first connector 120 on the right side of the PCIe adapter board. Therefore, the length of the cable used to connect the second connector 210 on the upper side of the CPU main circuit board and the second connector 210 on the left side of the riser card circuit board to the corresponding first connector 120 of the PCIe adapter board is different, and there is usually a certain range of length difference (i.e., poor), that is, the corresponding cable length is in different length intervals. For example, the length of the cable used to connect the second connector 210 on the upper side of the CPU main circuit board to the corresponding first connector 120 of the PCIe adapter board is in the length interval of 7cm-10cm, and the length of the cable used to connect the second connector 210 on the left side of the riser card circuit board to the corresponding first connector 120 of the PCIe adapter board is in the length interval of 5cm-8cm. Therefore, due to the length of the cable corresponding to the second connector 210 on the CPU main circuit board, the second connector 210 on the upper side of the CPU main circuit board is usually not connected to the first connector 120 on the right side of the PCIe adapter board, and due to the length of the cable corresponding to the second connector 210 on the riser card circuit board, the second connector 210 on the left side of the riser card circuit board is usually not connected to the first connector 120 on the lower side of the PCIe adapter board. Therefore, the UIDs of some second connectors 210 corresponding to different length intervals of the path value or cable length on the CPU main circuit board and the riser card circuit board can be the same, and the expected UIDs of the first connectors 120 to which these second connectors 210 are connected are also the same.
[0078] In this way, some second connectors 210 located on different second circuit boards 200 and having path values or cable lengths corresponding to different length intervals can be used as different connector groups, and some second connectors 210 in different connector groups can have the same UID to reuse the UID. On the basis of identifying whether the connector is misconnected based on the UID, more connectors can be identified based on limited UIDs, which can effectively reduce the required number of UIDs and avoid wasting UID resources and pin resources.
[0079] Furthermore, if Figure 1As shown, the second connector 210 in group Z11 on the CPU main circuit board needs to be connected to the lower side of the PCIe adapter board, and the second connector 210 in group Z12 on the CPU main circuit board needs to be connected to the left side of the PCIe adapter board. Due to the length of the cables corresponding to the connectors at different positions, the second connector 210 in group Z11 is usually not connected to the left side of the PCIe adapter board, nor is the second connector 210 in group Z12 connected to the lower side of the PCIe adapter board. Therefore, the UIDs of some second connectors 210 in group Z11 can be the same as the UIDs of some second connectors 210 in group Z13, and the expected UIDs of the first connectors 120 to which these second connectors 210 are connected are also the same.
[0080] In this way, some second connectors 210 located on the same second circuit board 200 and having path values or cable lengths corresponding to different length intervals can be used as different connector groups, and some second connectors 210 in different connector groups can have the same UID to reuse the UID. On the basis of identifying whether the connector is misconnected based on the UID, more connectors can be identified based on the limited UID, which can effectively reduce the required number of UIDs and avoid the waste of UID resources and pin resources.
[0081] Furthermore, in this implementation, the connector group and the number of connectors included in the connector group can be determined according to the length interval of the cable corresponding to the second connector 210, the number of digits of the UID, etc. For example, each connector group can also include 1, 2, 4, or 10 connectors. In addition, the connector group and the number of connectors included in the connector group can be determined based on the principle of minimizing the number of UIDs without affecting the accuracy of connection detection.
[0082] Furthermore, in some other implementations of the present application, the second connector 210 with the same UID may also be a second connector 210 in which any multiple path values or cable lengths connected to the first connector 120 correspond to different length intervals.
[0083] In summary, in the server provided by the implementation method of the present application, on the same second circuit board 200, the UIDs of some connectors with different physical forms can be the same, the UIDs of some connectors in different orientations compared to the first circuit board 100 can be the same, and the UIDs of some connectors with path values or cable lengths corresponding to different length intervals can be the same. On different second circuit boards 200, the UIDs of some connectors with different physical forms can be the same, the UIDs of some connectors in different orientations compared to the first circuit board 100 can be the same, and the UIDs of some connectors with path values or cable lengths corresponding to different length intervals can be the same. In this way, the number of UIDs can be effectively reduced, avoiding the waste of UID resources and pin resources.
[0084] Based on the server provided in the embodiment of the present application, the embodiment of the present application further provides a circuit board, which includes a substrate and a plurality of connectors arranged on the substrate, and the circuit board may be the aforementioned CPU main circuit board, riser card circuit board or other second circuit board 200. Each connector is configured with its own UID, and at least two connectors are configured with the same UID, and the UID is used for the identity identification of the connector.
[0085] Furthermore, in one implementation of the present application, any two of the at least two connectors with the same UID have different physical forms, or different positions relative to a certain circuit board, or the path values connected to the corresponding connectors are in different length intervals. That is, in the connector, the UIDs of at least two connectors with different physical forms can be the same, the UIDs of at least two connectors with different positions relative to a certain circuit board can be the same, and the UIDs of at least two connectors whose path values connected to the corresponding connectors are in different length intervals can be the same. Of course, the UIDs of at least two connectors that meet other conditions in the connector can also be the same.
[0086] The circuit board provided in this embodiment can prevent the corresponding connectors from being connected incorrectly due to the physical prevention of connectors with different physical forms, connectors with path values connected to corresponding connectors in different length ranges, and connectors in different positions relative to a circuit board. Therefore, the UIDs of such connectors can be the same, which effectively reduces the number of digits and the number of UID numbers. On the one hand, it saves UIDs and avoids the waste of UID number resources. On the other hand, it improves the recognition rate of UID numbers. On still another hand, it does not need to use a CPLD with more pins to identify the UID number, which saves pin resources and can avoid an increase in CPLD cost, thereby avoiding an increase in connector connection detection costs and avoiding CPLD occupying too much space, which meets the development needs of device miniaturization.
[0087] Exemplarily, since the physical form of the connector can be foolproof, connectors of different physical forms are not easily misconnected. In one implementation of the present application, the UIDs of connectors of the same physical form that are easily misconnected may be different to identify misconnections of connectors of the same physical form, and the UIDs of connectors of different physical forms may be the same to avoid waste of UIDs. For example, there are 8 UBC and 8 MCIO connectors on a circuit board. Since the physical forms of the UBC connector and the MCIO connector are different and it is not easy to misconnect, only a 3-bit UID needs to be set to identify the 8 UBC connectors and the 8 MCIO connectors. That is, the UIDs of the 8 UBC connectors can be 000, 001, 010, 011, 100, 101, 110, 111, respectively, and the UIDs of the 8 MCIO connectors can be 000, 001, 010, 011, 100, 101, 110, 111, respectively. In this way, 16 connectors can be identified using 8 different UIDs, which can effectively reduce the number of UID requirements.
[0088] For example, in one implementation of the present application, Figure 2 As shown, the circuit board includes a substrate G and a plurality of connectors L. The substrate G includes a plurality of regions, namely, region A, region B, region C, region D, and region E, and a plurality of connectors are disposed in each of the regions A, region B, region C, region D, and region E.
[0089] For example, in area A, there are multiple Figure 2 The eight connectors L1 to L8 of the physical form shown in FIG. Figure 2 The eight connectors L1 to L8 of the physical form shown in FIG. Figure 2 The eight connectors L1 to L8 of the physical form shown in FIG. Figure 2 The 12 connectors L1 to L12 of the physical form shown in FIG. Figure 2 The physical form of the 16 connectors L1 to L16 is shown.
[0090] Each connector has its own UID. The UIDs of some connectors in the first area are the same as the UIDs of some connectors in the second area. UID can be, for example, 3-bit binary data, that is, three-bit level combination data. The UIDs of the 8 connectors L1 to L8 in the first area A are shown in Table 1, which are 000, 001, 010, 011, 100, 101, 110, 111 (corresponding to decimal data 0, 1, 2, 3, 4, 5, 6, 7, respectively). The UIDs of the 8 connectors L1 to L8 in the second area A are also 000, 001, 010, 011, 100, 101, 110, 111, respectively.
[0091] Table 1
[0092] L1 L2 L3 L4 L5 L6 L7 L8 Region A 000 001 010 011 100 101 110 111 Region B 000 001 010 011 100 101 110 111
[0093] In this way, in the circuit board provided by the present application, some connectors located in different areas have the same UID, which effectively reduces the number and quantity of digits of the UID number. On the one hand, it avoids the waste of UID number resources, and on the other hand, it improves the recognition rate of the UID number. On the other hand, there is no need to use detection devices with more pins to identify the number, which can avoid the increase in the cost of the detection device, thereby avoiding the increase in the cost of cable connection detection, and avoiding the cable connection detection device from occupying too much space, which meets the development needs of device miniaturization.
[0094] Furthermore, in one implementation of the present application, since a 3-bit UID is used to identify the connector, the connector can be identified by the aforementioned 8 data 000, 001, 010, 011, 100, 101, 110, and 111. Therefore, when the number of connectors with the same physical form set in a certain area (for example, the aforementioned area A and area B) is less than or equal to 8, the UIDs of the connectors in the area are different.
[0095] Furthermore, when the number of connectors of the same physical form set in a certain area is greater than 8, the UIDs of adjacent connectors are different, and the UIDs of some non-adjacent connectors are the same. For example, the area can be divided into sub-areas, the UIDs of the connectors in the sub-areas are different, and the UIDs of the connectors in adjacent sub-areas are different. The aforementioned 8 numbers 000, 001, 010, 011, 100, 101, 110, and 111 are used cyclically according to the sub-areas to identify different connectors, so that the UIDs of the connectors in multiple sub-areas are in a cyclic continuous numbering form. In this way, more connectors can be identified within a limited number of UID numbers for connector cable connection detection.
[0096] For example, different connectors may be identified by using 000, 001, 010, 011, 100, 101, 110, 111 as a whole as a cycle. Figure 2 As shown, there are 12 connectors L1~L12 in area D, then L1~L8 are regarded as a sub-area, L9~L12 are regarded as a sub-area, and the UIDs of connectors L1~L12 are as shown in Table 2, which can be 000, 001, 010, 011, 100, 101, 110, 111, 000, 001, 010, 011 respectively.
[0097] Table 2
[0098]
[0099] In addition, four adjacent connectors can be used as a sub-area, with 000, 001, 010, 011 as a group number (or 0 to 3 as a group number), 100, 101, 110, 111 as a group number (or 4 to 7 as a group number), and these two groups of numbers can be used to cycle to identify different connectors. Figure 2 As shown, there are 16 connectors L1~L16 in area E, then L1~L4 are regarded as a sub-area, L5~L8 are regarded as a sub-area, L9~L12 are regarded as a sub-area, and L13~L16 are regarded as a sub-area. The UIDs of connectors L1~L16 can be 000, 001, 010, 011, 100, 101, 110, 111, 000, 001, 010, 011, 100, 101, 110, 111 respectively.
[0100] Of course, sub-areas may be divided in other ways, or a UID numbering cycle may be defined, which may be set as required.
[0101] Furthermore, in another implementation of the present application, there may be connectors with different physical forms in a certain area. Since a 3-bit UID is used to identify the connector, the connector can be identified by the aforementioned 8 data 000, 001, 010, 011, 100, 101, 110, and 111. Therefore, when the number of connectors set in a certain area (for example, the aforementioned area A and area B) is less than or equal to 8, regardless of whether the physical forms of the connectors in the area are the same, the UIDs of the connectors in the area are different.
[0102] Since the physical form of the connector can effectively prevent misconnection, therefore, when UID number resources are limited, connectors of the same physical form that are easy to be misconnected have different UID numbers, while connectors of different physical forms can have the same UID numbers. Therefore, when connectors of different physical forms are arranged in a certain area, and the number of connectors is greater than 8, the UIDs of adjacent connectors of the same physical form in the area are different, and the UID numbers of non-adjacent connectors in the area are the same. Furthermore, when the number of connectors of different physical forms arranged in a certain area is greater than 8, the UIDs of adjacent connectors of the same physical form are different, and the UIDs of at least some connectors of different physical forms are the same. In this way, more connectors can be identified with a limited number of UID numbers for connector cable connection detection.
[0103] Furthermore, in some other implementations of the present application, the connector with the same UID may also be any multiple connectors with different physical forms, or any multiple connectors located in different orientations relative to a certain circuit board, or any multiple connectors whose path values or cable lengths connected to corresponding connectors correspond to different length intervals, etc.
[0104] Furthermore, in some other implementations of the present application, since the lengths of the cables corresponding to the connectors in different areas of the circuit board are different, during the connection process of the connectors, the connectors are usually not connected incorrectly across a long distance due to the limitation of the cable length. Therefore, for connectors in different areas, that is, for connectors whose path values connecting the connectors to the corresponding connectors are in different length intervals, and for connectors in different positions relative to a certain circuit board, the UIDs of some connectors can be the same.
[0105] In this way, at least some of the connectors on the circuit board have the same UID, and more connectors can be identified in a limited number of UID numbers for connector cable connection detection. The number and number of digits of the UID number are effectively reduced, which saves UID resources and avoids the waste of UID number resources on the one hand, and improves the recognition rate of the UID number on the other hand. On the other hand, there is no need to use a CPLD with more pins to identify the number, which saves pin resources and avoids the increase in CPLD cost, thereby avoiding the increase in connector connection detection cost and avoiding the connector connection detection device from occupying too much space, which meets the development needs of device miniaturization.
[0106] Furthermore, the circuit board provided in this embodiment can be the second circuit board 200 such as the aforementioned CPU main circuit board, IO frame circuit board, NPU circuit board, etc. Figure 3 As shown, in another implementation of the present application, the first circuit board 100 included in the server is a PCIe adapter board, and the second circuit board 200 is a CPU main circuit board, an IO frame circuit board, and an NPU circuit board. The PCIe adapter board is respectively connected to the CPU main circuit board, the IO frame circuit board, and the NPU circuit board through cables. Connectors of each other.
[0107] Further, as mentioned above, in order to check whether the connector is correctly connected, the detection device 110, when the first connector 120 and the second connector 210 are in a connected state, checks whether the connection between the first connector 120 and the second connector 210 is wrong by comparing the UID actually received by the first connector 120 with the corresponding expected UID. Therefore, corresponding to the second connector 210 with the same UID as the above, the corresponding first connector 120 connected to the second connector 210 has the same expected UID for connector connection detection. Then, if Figure 3As shown, in the PCIe adapter board as an example of the first circuit board 100, the settings of the desired UIDs of the plurality of first connectors 120 correspond to the UIDs of the second connectors 210 in each second circuit board 200 to be correctly connected thereto, and are also based on Figure 2 The illustrated circuit boards are configured in a similar manner, wherein the desired UIDs of at least two first connectors 120 are the same to reuse the UID.
[0108] The following is a description of a process for detecting whether a connector in a server is incorrectly connected, as provided in an embodiment of the present application.
[0109] In one implementation of the present application, Figure 4 As shown, the server includes a first circuit board 100 and a second circuit board 200, wherein:
[0110] The first circuit board 100 serves as the master board in the UID detection scenario. The CPLD in the first circuit board 100 includes multiple groups of pins, each group of pins corresponds to a first connector 120, and each first connector 120 includes a group of detection pins corresponding to the CPLD. The CPLD is connected to the first connector 120 through the detection pins of the first connector 120 to implement UID detection.
[0111] The second circuit board 200 is used as a slave board in the UID detection scenario. For the level on the target pin of the second connector 210 in the second circuit board 200, it can be forced to be pulled down or pulled up, or set to be settable (i.e., set to 0 or 1) using a dial switch. For example, as mentioned above, a low-level configuration can be achieved by grounding the corresponding pin through a grounding resistor, and a high-level configuration can be achieved by connecting the corresponding pin to the target power supply, thereby obtaining a level combination based on 0 and 1 as the UID.
[0112] When the first connector 120 and the second connector 210 are in a connected state, the CPLD obtains the level combination on the target pin of the second connector 210 through the first connector 120 based on the detection pin of the first electrical connector 120 to identify the UID of the second connector 210. Moreover, the CPLD can determine whether the connector connection is correct through the UID.
[0113] The number of the second connectors 210 is greater than 2 N , when the UID is composed of N-bit levels, each group of pins included in the CPLD includes N pins, the detection pins corresponding to the first connector 120 also include N pins, and the target pins corresponding to the second connector 210 also include N pins. Each first connector 120 transmits the N-bit UID of the connected second connector 210 to the CPLD, and the CPLD obtains the UID of one second connector 210 through each N pin. For example, N can be 3.
[0114] Furthermore, if Figure 4 As shown, the server further includes a memory 140 and a baseboard management controller (BMC) 130. The memory 140 may be, for example, the aforementioned EEPROM. The memory 140 and the BMC 130 may be disposed on the first circuit board 100, or may be disposed on other circuit boards other than the first circuit board 100. The BMC 130 is connected to the memory 140 and the CPLD respectively, and the CPLD is connected to each first connector 120 in the first circuit board 100 respectively.
[0115] Among them, the memory 140 is used to store the cable topology configuration information corresponding to the first circuit board 100, or to store the cable topology configuration information of the server. The cable topology configuration information is a configuration file related to the UID of the connector, including the expected UID corresponding to the first connector 120, and the cable topology configuration information can be written according to the order during the customization of the whole machine.
[0116] The BMC 130 is used to obtain the expected UID of the first connector according to the cable topology configuration information stored in the memory 140 , and write the expected UID corresponding to each first connector 120 into the register included in the CPLD, so that the expected UID corresponding to the first connector 120 is stored in the CPLD.
[0117] When the first connector 120 and the second connector 210 are in a connected state, the CPLD compares the UID of the second connector 210 actually obtained by the first connector 120 with the expected UID corresponding to the first connector 120, and determines whether the connection between the first connector 120 and the second connector 210 is incorrect based on the comparison result.
[0118] Based on this, the embodiment of the present application provides a connector connection detection method, which can be applied to the above-mentioned server. Figure 5 As shown, the method includes the following steps.
[0119] S100 , the CPLD obtains the UID of the second connector 210 actually received by the first connector 120 .
[0120] S200, the CPLD compares the UID of the second connector 210 actually received by the first connector 120 with the expected UID corresponding to the first connector 120, and determines whether the connection between the first connector 120 and the second connector 210 is wrong according to the comparison result.
[0121] For example, if the UID of the second connector 210 actually received by the first connector 120 is consistent with the corresponding expected UID, it is considered that the connection between the first connector 120 and the second connector 210 is correct; if the UID of the second connector 210 actually received by the first connector 120 is inconsistent with the corresponding expected UID, it is considered that the connection between the first connector 120 and the second connector 210 is incorrect.
[0122] Further, regarding the setting method of UID, exemplarily, when the number of second connectors 210 in the second circuit board 200 is less than or equal to 2, if the UID is a three-level combination, the highest bit of the UID can be set to 0, 1 dial switch, supporting four configurations of 00, 01, 10, 11. The lowest bit can be 0 or 1. As described in Table 5 below, the second circuit board 200 is, for example, Riser0, Riser1, Riser2, Riser3, and the number of connectors included on Riser0, Riser1, Riser2, Riser3 is less than or equal to 2, then the corresponding UID configuration method (A: B: C) is, x00, x01, x10, x11, where x is 0 or 1.
[0123] Table 5
[0124] A B C Riser0 x 0 0 Riser1 x 0 1 Riser2 x 1 0 Riser3 x 1 1
[0125] Furthermore, if Figure 6 As shown, the first circuit board 100 may be, for example, the aforementioned PCIe adapter board, which includes four connectors UBC1, UBC2, UBC3, and UBC4, wherein the expected UIDs (i.e., expected values) corresponding to UBC1, UBC2, UBC3, and UBC4 are 000, 100, 001, and 101, respectively, as shown in Table 6 below. The second circuit board 200 may be, for example, Riser0 and Riser1, Riser0 includes two connectors UBC1 and UBC2, and the corresponding UIDs are 000 and 100, respectively. Riser1 includes two connectors UBC1 and UBC2, and the corresponding UIDs are 001 and 101, respectively.
[0126] The BMC compares the detection value corresponding to each UBC with its corresponding expected value to determine whether the two are consistent, and thus determine whether the corresponding cable connection is correct. As shown in Table 6, UBC1 and UBC3 are correctly connected, while UBC3 and UBC4 are incorrectly connected, for example, the cable is incorrectly connected or loose.
[0127] Table 6
[0128]
[0129] Further, when the number of second connectors 210 in the second circuit board 200 is greater than 2 and less than or equal to 4, the highest 2 bits of the UID can be set to a 0, 1 dial switch. As described in Table 7 below, if the number of connectors included on Riser0 is less than or equal to 2, the corresponding UID configuration mode (A: B: C) is x00, and if the number of connectors included on Riser1 is equal to 4, the corresponding UID configuration mode (A: B: C) is xx1, where x is 0 or 1.
[0130] Table 7
[0131] A B C Riser0 x x 0 Riser1 x x 1
[0132] like Figure 7 As shown, the first circuit board 100 may be, for example, the aforementioned PCIe adapter board, which includes six connectors UBC1, UBC2, UBC3, UBC4, UBC5, and UBC6, wherein the expected UIDs (i.e., expected values) corresponding to UBC1, UBC2, UBC3, UBC4, UBC5, and UBC6 are 000, 100, 001, and 101, respectively, as shown in Table 8 below. The second circuit board 200 may be, for example, Riser0 and Riser1, Riser0 includes two connectors UBC1 and UBC2, and the corresponding UIDs are 000 and 100, respectively. Riser1 includes two connectors UBC1 and UBC2, and the corresponding UIDs are 001 and 101, respectively.
[0133] The BMC compares the detection value corresponding to each UBC with its corresponding expected value to determine whether the two are consistent, and thus determines whether the corresponding connector is connected correctly. As shown in Table 8, each UBC is connected correctly.
[0134] Table 8
[0135]
[0136] In addition, as mentioned above Figure 2 As shown, for a single board, if the number of connectors of the same type is greater than 4, since the high-speed cables corresponding to the high-speed connectors are sensitive to distance, misconnection usually occurs in adjacent areas. Therefore, the UID can be arranged in 4 partitions, such as the aforementioned 000, 001, 010, 011 (i.e., 0 to 3), 100, 101, 110, 111 (i.e., 4 to 7), 000, 001, 010, 011 (i.e., 0 to 3), 100, 101, 110, 111 (i.e., 4 to 7) for cyclic arrangement.
[0137] In another implementation of the present application, if it is determined that there is a connection error between the first connector 120 and the second connector 210, the method further includes: generating a connector connection error prompt message for presenting to the user, so as to report the error to the outside and remind the user to check the connector connection. In this way, the connector connection detection and the existing network detection in the circuit board production link can be realized.
[0138] In another implementation of the present application, Figure 8 As shown, the CPLD executes step S100, and in the case of obtaining the UID of the second connector 210, further includes executing the following step S110:
[0139] Step S110 , checking the format of the UID of the second connector 210 , for example, checking the number of digits of the UID and whether the highest digit of the UID is a corresponding value.
[0140] If the format of the UID of the second connector 210 does not meet the preset format requirement, step S120 is executed. If the format of the UID of the second connector 210 meets the preset format requirement, step S200 is executed.
[0141] S120: Generate identity information error prompt information for presenting to the user.
[0142] In this way, it is possible to promptly detect whether the format of the connector's UID is correct, and if it is incorrect, the relevant user is reminded to make adjustments.
[0143] In summary, the technical solution provided in the implementation mode of the present application takes into account the setting method of the connector UID on a multi-connector circuit board as a whole, configures the corresponding UID based on the flexibility of connecting multiple single boards, and the UIDs of some connectors are the same, which can effectively reduce the number and quantity of UID level bits. In addition, the connector connection detection method provided by the present application, based on the aforementioned circuit board, can support connector anti-misconnection inspection in scenarios where cables are flexibly configurable.
[0144] Furthermore, since high-speed connectors are very sensitive to cable length, incorrect connections usually do not span the range of 8 connectors, so as mentioned above, when the UID only includes the UID of the connector, it can be a 3-bit level combination data. Of course, as the information included in the UID is different, the number of connectors is different, etc., the number of bits, size, form, etc. of the UID can be set to other modes as needed, that is, the number of bits of the UID level can be set according to actual needs.
[0145] Furthermore, the electronic device provided in the embodiments of the present application may also be other electronic devices other than servers, such as mobile phones, tablet computers, laptop computers, PDAs, mobile Internet devices (MIDs), wearable devices (such as smart watches, smart bracelets, pedometers, etc.), personal digital assistants, portable media players, navigation devices, video game devices, set-top boxes, virtual reality and / or augmented reality devices, Internet of Things devices, industrial control equipment, streaming media client devices, e-books, reading devices, POS machines, vehicle-mounted devices, and other computing devices.
[0146] An embodiment of the present application also provides a chip for executing instructions, which is used to execute the technical solution of the connector connection detection method in the above-mentioned embodiment.
[0147] An embodiment of the present application also provides a computer-readable storage medium, which stores computer instructions / programs. When the computer instructions / programs are executed on a processor of an electronic device, the processor of the electronic device executes the technical solution of the connector connection detection method in the above-mentioned embodiment.
[0148] In some possible implementations, various aspects of the method provided in the present application can also be implemented in the form of a program product, which includes program code. When the program product runs on a processor of an electronic device, the program code is used to enable the processor of the electronic device to execute the steps of the method described above in this specification according to various exemplary implementations of the present application. For example, the electronic device can execute the connector connection detection method in the implementation of the present application.
[0149] The program product may employ any combination of one or more readable media. The readable medium may be a readable data medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0150] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices and computer program products according to the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable information processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable information processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0151] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable information processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0152] These computer program instructions can also be loaded onto a computer or other programmable information processing device so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0153] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the application disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.
[0154] It should be noted that, in addition to the implementation of the present application described in the above-mentioned specific embodiments, those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. Although the description of the present application is introduced in conjunction with the preferred embodiment, this does not mean that the features of this application are limited to the implementation. On the contrary, the purpose of introducing the application in conjunction with the implementation is to cover other options or modifications that may be extended based on the claims of the present application. In order to provide an in-depth understanding of the present application, the above description contains many specific details, and the present application may also be implemented without using these details. In addition, in order to avoid confusion or blurring the focus of the present application, some specific details will be omitted in the description. It should be noted that, in the absence of conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.
[0155] It should be noted that in this specification, similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0156] Although the present application has been illustrated and described by referring to certain preferred implementations of the present application, it should be understood by those skilled in the art that the above contents are further detailed descriptions of the present application in combination with specific implementations, and it cannot be determined that the specific implementation of the present application is limited to these descriptions. Those skilled in the art may make various changes in form and details, including making several simple deductions or substitutions, without departing from the spirit and scope of the present application.
Claims
1. An electronic device, characterized in that: include: A first circuit board, the first circuit board comprising a detection device and a plurality of first connectors, the detection device being connected to each of the first connectors respectively; A plurality of second connectors, wherein one of the second connectors is connected to one of the first connectors; The plurality of second connectors are distributed on one or more second circuit boards, and at least two of the second connectors are configured with the same identity information; The detection device stores the expected identity information corresponding to each of the first connectors, where the expected identity information is the identity information of the second connector that should be received when the first connector is correctly connected to the second connector; The expected identity information of at least two of the first connectors is the same, and in the case of correct connection, the at least two of the first connectors are correspondingly connected to the at least two of the second connectors; The detection device confirms whether the connection between the first connector and the second connector is wrong by comparing the identity information actually received by the first connector with the corresponding expected identity information.
2. The electronic device according to claim 1, characterized in that: Any two of the at least two second connectors have different physical forms, or are located in different positions relative to the first circuit board, or the path values connected to the corresponding first connectors are in different length ranges.
3. The electronic device according to claim 1 or 2, characterized in that: The identity information of the second connector is represented by a level combination on a target pin of the second connector; When the first connector and the second connector are in a connected state, the detection device obtains the level combination on the target pin of the second connector through the first connector to identify the identity information of the second connector.
4. The electronic device according to claim 3, characterized in that: The first connector includes a detection pin corresponding to the detection device, and the detection device obtains a level combination on the target pin of the second connector through the detection pin of the first connector.
5. The electronic device according to any one of claims 1 to 4, characterized in that: The electronic device further comprises a baseboard management controller, which is connected to the detection device and is used to write the expected identity information corresponding to the first connector into a register included in the detection device.
6. The electronic device according to any one of claims 1 to 5, characterized in that: The electronic device also includes a memory, which is used to store cable topology configuration information of the electronic device, the cable topology configuration information including the expected identity information corresponding to the first connector, and the baseboard management controller is connected to the memory, and is used to obtain the expected identity information corresponding to the first connector according to the cable topology configuration information stored in the memory.
7. The electronic device according to claim 6, characterized in that: The baseboard management controller and the memory are arranged on the first circuit board, the electronic device is a server, the first circuit board is an adapter board for connecting different circuit boards in the electronic device, the second circuit board where the second connector is located is at least one of a circuit board where a central processing unit is located, a circuit board where a processing unit other than the central processing unit is located, a circuit board for connecting an input / output device, a graphics card circuit board, and a network card circuit board, the detection device is a complex programmable logic device, and the memory is an electrically erasable programmable read-only memory.
8. The electronic device according to any one of claims 1 to 7, characterized in that: The number of the second connectors is greater than 2 N , and at least two of the second connectors are configured with the same identity information, so that the identity information of each of the second connectors has N bits; Each of the first connectors transmits N bits of identity information of the connected second connector to the detection device, and the detection device obtains the identity information of one second connector through each of the N pins.
9. A circuit board, characterized in that: The circuit board includes a plurality of connectors, each of the connectors is configured with respective identity information, and at least two of the connectors are configured with the same identity information, and the identity information is used for identification of the connectors.
10. A connector connection detection method, characterized in that: Applied to the electronic device according to any one of claims 1 to 8, the method comprising: The detection device obtains the identity information of the second connector actually received by the first connector, and compares the identity information of the second connector actually received by the first connector with the corresponding expected identity information to confirm whether the connection between the first connector and the second connector is wrong.
Citation Information
Patent Citations
Topology detection processing method and device, server and readable storage medium
CN113064850A
Connection state identification method and electronic equipment
CN113849234A
Method and device for identifying hard disk backplane
CN115686998A
Cable detection method and computing device
CN118091494A
Device identification
US20050010698A1