Single board slot number determination method and device, single board and storage medium

By using connectors between the motherboard and the hard disk expansion board to determine the position and electrical signal of the screw hole and configure the slot number, the problem of insufficient flexibility caused by the use of connector pins in the prior art is solved, and more flexible connections are achieved Device selection.

CN119088174AActive Publication Date: 2024-12-06ZHEJIANG UNIVIEW TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202310654196.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-05
Publication Date
2024-12-06
Estimated Expiration
2043-06-05

AI Technical Summary

Technical Problem

In the prior art, when connecting between the motherboard and the hard disk expansion board, it is necessary to occupy the pins of the connector, affecting the pin allocation and selection of the connector, resulting in insufficient flexibility.

Method used

Connect the screw posts to the screw holes of the single plate through the connector, determine the position and electrical signals of the different screw holes, and then configure the slot number without occupying the pins of the connector.

Benefits of technology

The configuration of the single board slot number is completed without occupying the connector pins, which improves the flexibility of the connector selection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119088174A_ABST
    Figure CN119088174A_ABST
Patent Text Reader

Abstract

The invention discloses a single board slot number determination method and device, a single board and a storage medium. The method is applied to a complete machine, screw columns of the complete machine are correspondingly connected with screw holes of at least two single plates through connecting pieces, and the method comprises the steps that first screw holes, where the connecting pieces are fixed, in the screw holes in the at least two single plates are determined; the positions of the first screw holes in the screw holes of the single plates are different; respectively determining high and low level signals of interfaces electrically connected with the screw holes in one-to-one correspondence on the at least two single boards; and determining the slot position number of each single board according to the high and low level signals of each interface on each single board. According to the technical scheme provided by the embodiment of the invention, the configuration of the slot number of each single board can be completed without occupying the pin of the connector, so that the model selection of the connector is more flexible when each single board is connected to the whole machine.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a method and device for determining a single board slot number, a single board and a storage medium. Background Art

[0002] In order to meet certain business requirements, at least two hard disk expansion boards of the same design need to be connected to the main board through high-speed connectors and cables. Each hard disk expansion board needs to be configured with a different slot number. The main board confirms the position of the hardware expansion board based on the slot number transmitted by the hard disk expansion board. The position of the hardware expansion board will affect the management configuration of the system business.

[0003] In the prior art, N (N is a positive integer and N≥1) pins are reserved on the connector that interconnects the mainboard and the expansion board. The high level of the pin is regarded as 1, and the low level is regarded as 0. The high and low levels of these pins are configured on the mainboard, and 2n slot numbers can be formed by arranging the N pins in a fixed order. The expansion board obtains its own slot number by reading the levels of these pins. Obviously, the slot number configuration scheme provided by the prior art needs to occupy the pins of the connector, which affects the pin allocation and selection of the connector. Summary of the invention

[0004] The present invention provides a method and device for determining a single board slot number, a single board and a storage medium, which can complete the configuration of the single board slot number without occupying a connector pin.

[0005] According to one aspect of the present invention, a method for determining a slot number of a single board is provided, which is applied to a whole machine, wherein screw columns of the whole machine are respectively connected to screw holes of at least two single boards through connecting members, and the method comprises:

[0006] For each of the at least two single boards, determine a first screw hole on which the connecting member is fixed from the screw holes on the current single board; wherein the screw hole positions of the first screw hole on each of the single boards are different;

[0007] Respectively determine high and low level signals of interfaces on the at least two boards that are electrically connected to the respective screw holes in a one-to-one correspondence; wherein the high and low level signals of the first interface and the second interface are different, the first interface is an interface electrically connected to the first screw hole, the second interface is an interface electrically connected to the second screw hole, and the second screw hole is a screw hole among the screw holes on the board except the first screw hole;

[0008] For each of the single boards, the slot number of the current single board is determined according to the high and low level signals of each interface on the current single board.

[0009] According to another aspect of the present invention, a method for determining a slot number of a single board is provided, which is applied to a single board, and the method comprises:

[0010] When the screw column of the whole machine is connected to the screw hole on the single board correspondingly through the connecting piece, determining the position information of the connecting piece on the single board;

[0011] Determine the high and low level signals of at least one interface on the single board according to the position information; wherein the screw holes on the single board are electrically connected with the at least one interface in a one-to-one correspondence;

[0012] Based on the high and low level signals of the at least one interface, the slot number of the board is determined.

[0013] According to another aspect of the present invention, a device for determining a slot number of a single board is provided, which is applied to a whole machine, wherein screw columns of the whole machine are respectively connected to screw holes of at least two single boards through connecting members, and the device comprises:

[0014] A first screw hole determination module is used to determine, for each of the at least two single boards, from the screw holes on the current single board, a first screw hole to which the connecting member is fixed; wherein the screw hole positions of the first screw holes on each of the single boards are different;

[0015] an interface level signal determination module, used to respectively determine high and low level signals of interfaces on the at least two boards that are electrically connected to the respective screw holes in a one-to-one correspondence; wherein the high and low level signals of the first interface and the second interface are different, the first interface is an interface electrically connected to the first screw hole, the second interface is an interface electrically connected to the second screw hole, and the second screw hole is a screw hole among the screw holes on the board except the first screw hole;

[0016] The single board slot number determination module is used to determine the slot number of the current single board according to the high and low level signals of each interface on the current single board.

[0017] According to another aspect of the present invention, a device for determining a slot number of a single board is provided, which is applied to a single board, and the device comprises:

[0018] A position information determination module, used to determine the position information of the connecting member on the single board when the screw column of the whole machine is connected to the screw hole on the single board correspondingly through the connecting member;

[0019] A level signal determination module, used to determine the high and low level signals of at least one interface on the single board according to the position information; wherein the screw holes on the single board are electrically connected to the at least one interface in a one-to-one correspondence;

[0020] The slot number determination module is used to determine the slot number of the single board based on the high and low level signals of the at least one interface.

[0021] According to another aspect of the present invention, a single board is provided, the single board comprising:

[0022] at least one processor; and

[0023] a memory communicatively connected to the at least one processor; wherein,

[0024] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for determining the single board slot number described in any embodiment of the present invention.

[0025] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for determining a board slot number described in any embodiment of the present invention when executed.

[0026] The scheme for determining the slot number of a single board in the embodiment of the present invention is applied to a whole machine, wherein the screw column of the whole machine is respectively connected to the screw holes of at least two single boards by a connecting piece, and the method comprises: for each single board in the at least two single boards, determining the first screw hole to which the connecting piece is fixed from the screw holes on the current single board; wherein the screw hole positions of the first screw holes in each single board are different; respectively determining the high and low level signals of the interfaces on the at least two single boards that are electrically connected to each screw hole in a one-to-one correspondence; wherein the high and low level signals of the first interface and the second interface are different, the first interface is an interface electrically connected to the first screw hole, the second interface is an interface electrically connected to the second screw hole, and the second screw hole is a screw hole among the screw holes on the single board except the first screw hole; for each single board, determining the slot number of the current single board according to the high and low level signals of each interface on the current single board. Through the technical scheme provided by the embodiment of the present invention, the configuration of the slot number of each single board can be completed without occupying the connector pins, so that the selection of the connector is more flexible when each single board is connected to the whole machine.

[0027] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0029] Figure 1 is a flow chart of a method for determining a slot number of a single board provided according to Embodiment 1 of the present invention;

[0030] Figure 2 is a flow chart of a method for determining a board slot number provided according to Embodiment 2 of the present invention;

[0031] Figure 3a It is a schematic diagram of the design structure of a single board frame and a whole machine frame provided by an embodiment of the present invention;

[0032] Figure 3b This is a schematic diagram of the configuration of the slot number of a single board after a single board is connected to a whole machine provided by an embodiment of the present invention;

[0033] Figure 4a It is a schematic diagram of another design structure of a single board frame and a whole machine frame provided by an embodiment of the present invention;

[0034] Figure 4b It is a schematic diagram of the configuration of the slot number of another single board after the single board is connected to the whole machine provided by an embodiment of the present invention;

[0035] Figure 5 It is a structural schematic diagram of a device for determining a slot number of a single board provided according to Embodiment 3 of the present invention;

[0036] Figure 6 It is a structural schematic diagram of a device for determining a slot number of a single board provided according to a fourth embodiment of the present invention;

[0037] Figure 7 The present invention is a schematic diagram of the structure of a single board for implementing the method for determining the single board slot number according to an embodiment of the present invention. DETAILED DESCRIPTION

[0038] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0039] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0040] Embodiment 1

[0041] Figure 1 A flow chart of a method for determining a single board slot number is provided for the first embodiment of the present invention. This embodiment is applicable to the case of determining a single board slot number. The method can be executed by a device for determining a single board slot number. The device for determining a single board slot number can be implemented in the form of hardware and / or software. The device for determining a single board slot number can be configured in a complete machine, wherein the screw columns of the complete machine are respectively connected to the screw holes of at least two single boards through a connecting piece. Figure 1 As shown, the method includes:

[0042] S110. For each of the at least two boards, determine, from the screw holes on the current board, a first screw hole to which the connecting member is fixed; wherein the screw hole positions of the first screw hole on each of the boards are different.

[0043] In an embodiment of the present invention, the whole machine is connected to at least two single boards, wherein the screw columns of the whole machine are respectively connected to the screw holes of the at least two single boards through a connecting piece, thereby realizing the connection between the whole machine and the at least two single boards. At least one screw hole is provided on the frame of each single board, and at least one screw column is provided on the whole machine, wherein the number of screw holes provided on the frame of each single board and the number of screw columns provided on the whole machine may be the same or different, and the embodiment of the present invention does not limit the number of screw holes and screw columns.

[0044] For each of the at least two single boards, determine the first screw hole on which the connecting piece is fixed from the screw holes on the current single board. It is understandable that when the current single board is connected to the whole machine, when the screw holes on the single board are assembled with the screw columns on the whole machine, not every screw hole and screw column is fixed with a connecting piece. Therefore, it is necessary to determine the screw hole on which the connecting piece is fixed from each screw hole of the current single board, and the screw hole on which the connecting piece is fixed is called the first screw hole. It should be noted that the screw hole positions of the first screw holes on each single board are different. Exemplarily, the whole machine is connected to 3 single boards, and each single board is provided with 3 screw holes, and the number of the first screw holes on each single board that are fixed with the connecting piece is 2, then the screw hole position of the first screw hole on the first single board can be the first screw hole and the second screw hole, the screw hole position of the first screw hole on the second single board can be the first screw hole and the third screw hole, and the screw hole position of the first screw hole on the third single board can be the second screw hole and the third screw hole. Optionally, the connecting piece can be a screw.

[0045] S120. Respectively determine the high and low level signals of the interfaces on the at least two boards that are electrically connected to the respective screw holes in a one-to-one correspondence; wherein the high and low level signals of the first interface and the second interface are different, the first interface is an interface electrically connected to the first screw hole, the second interface is an interface electrically connected to the second screw hole, and the second screw hole is a screw hole among the screw holes on the board except the first screw hole.

[0046] In an embodiment of the present invention, each screw hole on each single board is electrically connected to an interface in a one-to-one correspondence, wherein the interface may be a general input and output interface GPIO of a CPLD or other chip. For each single board on at least two single boards, determine the high and low level signals of the interface to which each screw hole on the current single board is electrically connected in a one-to-one correspondence. The high and low level signals of the first interface and the second interface are different, for example, the high and low level signals of the first interface are high level, and the high and low level signals of the second interface are low level; or, the high and low level signals of the first interface are low level, and the high and low level signals of the second interface are high level. The first interface is an interface electrically connected to a first screw hole to which a connecting part is fixed, and the second interface is an interface electrically connected to a second screw hole to which a connecting part is not fixed. The second screw hole to which a connecting part is not fixed can be understood as a screw hole in all the screw holes on the single board except the first screw hole.

[0047] S130. For each of the boards, determine the slot number of the current board according to the high and low level signals of each interface on the current board.

[0048] Exemplarily, for each single board, according to the pre-set interface sequence, the slot number of the current single board is determined according to the high and low level signals of each interface on the current single board. Since the screw hole positions of the first screw holes on each single board are different, the high and low level signals of the interfaces electrically connected by the screw holes on each single board are different. Exemplarily, the whole machine is connected to three single boards, and each single board is provided with three screw holes, the number of first screw holes on each single board with a connector fixed thereon is 2, the screw hole positions of the first screw hole on the first single board are the first screw hole and the second screw hole, then the high and low level signals of the interface electrically connected to each screw hole on the first single board are respectively: low level, low level, high level; the screw hole positions of the first screw hole on the second single board are the first screw hole and the third screw hole, then the high and low level signals of the interface electrically connected to each screw hole on the second single board are respectively: low level, high level, low level; the screw hole positions of the first screw hole on the third single board can be the second screw hole and the third screw hole, then the high and low level signals of the interface electrically connected to each screw hole on the third single board are respectively: high level, low level, low level. For example, the low level signal is represented by 0, and the high level signal is represented by 1, then the slot number of the first single board is 001, the slot number of the second single board is 010, and the slot number of the third single board is 100.

[0049] The method for determining the slot number of a single board of the embodiment of the present invention is applied to a whole machine, wherein the screw column of the whole machine is respectively connected to the screw holes of at least two single boards by a connecting piece, and the method comprises: for each single board of the at least two single boards, determining the first screw hole to which the connecting piece is fixed from the screw holes on the current single board; wherein the screw hole positions of the first screw holes of the single boards are different; respectively determining the high and low level signals of the interfaces on the at least two single boards that are electrically connected to each screw hole in a one-to-one correspondence; wherein the high and low level signals of the first interface and the second interface are different, the first interface is an interface electrically connected to the first screw hole, the second interface is an interface electrically connected to the second screw hole, and the second screw hole is a screw hole among the screw holes on the single board except the first screw hole; for each single board, determining the slot number of the current single board according to the high and low level signals of each interface on the current single board. Through the technical solution provided by the embodiment of the present invention, the configuration of the slot number of each single board can be completed without occupying the connector pins, so that the selection of the connector is more flexible when each single board is connected to the whole machine.

[0050] Embodiment 2

[0051] Figure 2A flow chart of a method for determining a single board slot number is provided for the first embodiment of the present invention. This embodiment is applicable to the case of determining a single board slot number. The method can be executed by a single board slot number determination device. The single board slot number determination device can be implemented in the form of hardware and / or software. The single board slot number determination device can be configured in a single board. Figure 2 As shown, the method includes:

[0052] S210: When the screw columns of the whole machine are connected to the screw holes on the single board correspondingly through the connecting piece, the position information of the connecting piece on the single board is determined.

[0053] Among them, at least one screw hole is set on the frame of the single board, and at least one screw column is set on the whole machine. The number of screw holes set on the frame of the single board and the number of screw columns set on the whole machine can be the same or different. The embodiment of the present invention does not limit the number of screw holes and screw columns.

[0054] In the embodiment of the present invention, when the single board is connected to the whole machine, that is, when the screw column of the whole machine is connected to the screw hole on the single board correspondingly through the connecting piece, the position information of the connecting piece on the single board is determined. It is understandable that when the single board is connected to the whole machine, when the screw holes on the single board and the screw columns on the whole machine are assembled together, not every screw hole and screw column is fixed with a connecting piece, therefore, it is necessary to determine the position information of the connecting piece on the single board, that is, to determine the position of the screw hole of the connecting piece on the single board.

[0055] S220. Determine high and low level signals of at least one interface on the single board according to the position information; wherein the screw holes on the single board are electrically connected to the at least one interface in a one-to-one correspondence.

[0056] At least one interface is provided on the single board, wherein the interface may be a general purpose input / output interface GPIO of a CPLD or other chip, and the GPIO may be pulled up to a high level through a resistor. The screw holes on the single board are electrically connected to the at least one interface in a one-to-one correspondence. It is understandable that the number of screw holes on the single board is the same as the number of interfaces.

[0057] In an embodiment of the present invention, the high and low level signals of each interface on the single board that is electrically connected to the screw holes in a one-to-one correspondence are determined based on the position information of the connector on the single board. That is, based on the screw hole position where the connector is located on the single board, the high and low level signals of each interface that is electrically connected to each screw hole on the single board in a one-to-one correspondence are determined. Exemplarily, the high and low level signals of the interface corresponding to the screw hole at the screw hole position where the connector is located on the single board are different from the high and low level signals of the interface corresponding to the other screw holes. Among them, the other screw holes are the screw holes on the single board except the screw holes at the screw hole position where the connector is located.

[0058] Optionally, determining the high and low level signals of at least one interface on the single board according to the position information includes: determining the first screw hole on which the connector is fixed from the screw holes on the single board according to the position information; determining that the high and low level signals of the interface electrically connected to the first screw hole are low level, and the high level signal of the interface electrically connected to the second screw hole is high level; wherein the second screw hole is a screw hole on the single board except the first screw hole. Exemplarily, according to the screw hole position of the connector on the single board, the screw hole on which the connector is fixed is determined among all the screw holes on the single board, and the screw hole on which the connector is fixed is used as the first screw hole. It can be understood that the screw hole corresponding to the screw hole position of the connector on the single board is used as the first screw hole. The high and low level signals of the interface on the single board electrically connected to the first screw hole are set to low level (which can be represented by 0), and the high level signal of the interface electrically connected to the second screw hole is set to high level (which can be represented by 1); wherein the second screw hole is a screw hole on the single board except the first screw hole.

[0059] Optionally, N screw holes are provided on the single board, and M screw columns are provided at the single board slot of the whole machine; wherein, when the single board is connected to the whole machine, M third screw holes among the N screw holes are assembled together with the M screw columns; M≤N; according to the position information, the first screw hole to which the connecting member is fixed is determined from the screw holes on the single board, including: when P target screw holes among the M third screw holes are respectively connected one-to-one with P target screw columns among the M screw columns through connecting members, the P target screw holes are determined as the first screw holes to which the connecting member is fixed.

[0060] In the embodiment of the present invention, the interface is GPIO as an example for explanation. The board frame of the single board is provided with N screw holes, and the N screw holes are electrically connected to the GPIO on the single board in a one-to-one correspondence. Therefore, the single board is also provided with N GPIO. The initial level of each GPIO on the single board can be pulled up to a high level by a resistor. Optionally, 2 N Greater than or equal to the maximum number of boards that can be installed on the whole machine. According to business needs, multiple identical boards need to be connected to the whole machine. Therefore, the maximum number of boards that can be connected to the whole machine can be determined according to the pre-set whole machine configuration information. According to the maximum number of boards that can be installed on the whole machine, the number of screw holes N set on the frame of the board is determined, where 2 NGreater than or equal to the maximum number of single boards that can be installed in the whole machine. For example, if the maximum number of single boards that can be installed in the whole machine is 3, then N can be 2 or 3. If the maximum number of single boards that can be installed in the whole machine is m, then m single board slots are set on the whole machine. M screw columns are set at each single board slot of the whole machine, where M≤N, and the positions of the M screw columns set at each single board slot are different. When the single board is connected to the whole machine, the M third screw holes among the N screw holes can be assembled together with the M screw columns; wherein the third screw hole is a screw hole corresponding to the position of the M screw columns.

[0061] In an embodiment of the present invention, when a single board is connected to a whole machine, the M third screw holes on the single board are assembled with the M screw columns on the frame of the whole machine in a one-to-one correspondence. If the P target screw holes among the M first screw holes are connected with the P target screw columns among the M screw columns in a one-to-one correspondence through screws, the P target screw holes can be connected with the P target screw columns respectively through screws, so that the GPIO electrically connected to the P target screw holes is shorted to GND, so that the high and low level signals of the GPIO electrically connected to the P target screw holes in the single board are low level (which can be represented by 0), and the high and low level signals of the GPIO electrically connected to the other NP screw holes (i.e., the third target screw holes) on the single board except the target screw holes are high level (which can be represented by 1). Among them, the third target screw holes include two types of screw holes, one type is a screw hole assembled with the screw column on the frame of the whole machine but without a screw, and the other type is a screw hole that is not assembled with the screw column on the frame of the whole machine.

[0062] S230. Determine the slot number of the board based on the high and low level signals of the at least one interface.

[0063] In an embodiment of the present invention, the slot number of the single board is determined according to the high and low level signals of each interface on the single board according to a pre-set interface sequence. Optionally, the slot number of the single board is determined based on the high and low level signals of at least one interface, including: obtaining a pre-set interface sequence; wherein the interface sequence is an sequence for generating the slot number of the single board; and determining the slot number of the single board according to the interface sequence based on the high and low level signals of at least one interface. Exemplarily, the user can adjust the pre-set interface sequence as needed, wherein the pre-set interface sequence is different, and the slot number of the single board generated based on the high and low level signals of at least one interface is different. There can be one or more single boards. When there are multiple single boards, each single board can determine the slot number of the single board itself according to the single board slot number determination scheme provided by S210-S230.

[0064] For example, when a machine can be installed with at most three identical boards, N can be any integer greater than or equal to 2. Two solutions are described below:

[0065] Solution 1: Figure 3a A schematic diagram of the design structure of a single board frame and a whole machine frame provided by an embodiment of the present invention, Figure 3b A schematic diagram of the configuration of the slot number of a single board after a single board is connected to a whole machine is provided in an embodiment of the present invention. Figure 3a As shown, N=2, M=2, that is, two screw holes corresponding to the GPIO are set on the frame of the single board, and two screw posts corresponding to the screw holes on the single board are set on the whole machine frame. Figure 3b As shown, when the single board is connected to the whole machine, the two screw posts on the whole machine frame are assembled with the two screw holes on the single board frame, and the user can screw the screw posts as needed. Among them, the output level signal of the GPIO electrically connected to the screw hole with the screw is low level (0), and the output level signal of the GPIO electrically connected to the screw hole without the screw is high level (1). Therefore, the single board slot number can be any one of the four types: 00, 01, 10, and 11. This solution can use N screw holes to configure 2 N When there are a large number of boards, this solution can use fewer screw holes and GPIOs to configure slot numbers for the boards.

[0066] Option 2: Figure 4a A schematic diagram of another design structure of a single board frame and a whole machine frame provided by an embodiment of the present invention, Figure 4b Another embodiment of the present invention provides a schematic diagram of the configuration of the slot number of a single board after the single board is connected to the whole machine. Figure 4a As shown, N=3, M=1, that is, the frame of the single board is provided with 3 screw holes that are electrically connected to the GPIO in a one-to-one correspondence, and the whole machine frame is provided with 1 screw column that has a position corresponding relationship with the screw hole on the single board. Figure 4b As shown, when the single board is connected to the whole machine, the three screw posts on the whole machine frame are assembled with the one screw hole on the single board frame, and the user can screw the screws on the screw posts as needed. Among them, the output level signal of the GPIO electrically connected to the screw hole with the screw is low level (0), and the output level signal of the GPIO electrically connected to the screw hole without the screw is high level (1). When the frame as a whole and the single board are connected together through the screw posts and the screws and the grounding screw holes of the single board, the single board is installed in the slot and the screws are screwed, and the slot number changes from 111, 111, 111 to 011, 101, 110. This solution can only screw one screw on a single board, requires more GPIOs and screw holes, and can effectively avoid screwing the wrong screws when assembling the whole machine.

[0067] For example, when a machine can be equipped with up to 4 identical boards, N≥2, and so on. This method is very flexible, and the number of screw holes reserved on the board frame can be flexibly selected according to product requirements and future plans. When the board needs to be reused on other machines, it only needs to be adapted to the machine frame.

[0068] The method for determining the single board slot number of the embodiment of the present invention is applied to a single board, and the method includes: when the screw column of the whole machine is connected to the screw hole on the single board by the connecting piece, determining the position information of the connecting piece on the single board; determining the high and low level signals of at least one interface on the single board according to the position information; wherein the screw hole on the single board is electrically connected to the at least one interface in a one-to-one correspondence; and determining the slot number of the single board based on the high and low level signals of the at least one interface. Through the technical solution provided by the embodiment of the present invention, the configuration of the single board slot number can be completed without occupying the connector pins, which can make the selection of the connector more flexible when connecting the single board to the whole machine.

[0069] In some embodiments, after determining the slot number of the single board, the method further includes: obtaining a mapping relationship between a preset slot number and a single board slot; and determining the target single board slot of the single board in the whole machine according to the slot number of the single board and the mapping relationship. Specifically, obtaining a mapping relationship between the slot number and the single board slot, wherein the slot number and the single board slot are a one-to-one mapping relationship. According to the determined slot number of the single board and the mapping relationship between the slot number and the single board slot, the target single board slot of the single board in the whole machine is determined.

[0070] In some embodiments, after determining the slot number of the single board, the method further includes: sending the slot number to the whole machine, wherein the slot number is used to instruct the whole machine to perform service configuration on the single board. Specifically, the single board sends its own determined slot number to the whole machine, so that the whole machine performs service configuration on the whole machine according to the slot number of the single board. Different slot numbers mean different positions of the single board in the whole machine, and different service management configurations are performed on the single board.

[0071] Embodiment 3

[0072] Figure 5 This is a schematic diagram of the structure of a device for determining a single board slot number provided in Embodiment 3 of the present invention. Figure 5 As shown, the device is applied to a whole machine, wherein the screw columns of the whole machine are respectively connected to the screw holes of at least two single boards through a connecting piece, and the device includes:

[0073] A first screw hole determination module 510 is configured to determine, for each of the at least two boards, from the screw holes on the current board, a first screw hole to which the connecting member is fixed; wherein the screw hole positions of the first screw holes on each of the boards are different;

[0074] The interface level signal determination module 520 is used to respectively determine the high and low level signals of the interfaces on the at least two boards that are electrically connected to the respective screw holes in a one-to-one correspondence; wherein the high and low level signals of the first interface and the second interface are different, the first interface is an interface electrically connected to the first screw hole, the second interface is an interface electrically connected to the second screw hole, and the second screw hole is a screw hole among the screw holes on the board except the first screw hole;

[0075] The board slot number determination module 530 is used to determine the slot number of the current board according to the high and low level signals of each interface on the current board.

[0076] The device for determining the single board slot number provided in the embodiment of the present invention can execute the method for determining the single board slot number provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0077] Embodiment 4

[0078] Figure 6 This is a schematic diagram of the structure of a device for determining a slot number of a single board provided in Embodiment 4 of the present invention. Figure 6 As shown, the device is applied to a single board and includes:

[0079] The position information determining module 610 is used to determine the position information of the connecting member on the single board when the screw column of the whole machine is connected to the screw hole on the single board by the connecting member;

[0080] A level signal determination module 620, configured to determine a high or low level signal of at least one interface on the board according to the position information;

[0081] The slot number determination module 630 is used to determine the slot number of the board based on the high and low level signals of the at least one interface.

[0082] Optionally, the level signal determination module includes:

[0083] A first screw hole determining unit, configured to determine, from the screw holes on the single board according to the position information, a first screw hole to which the connecting member is fixed;

[0084] A level signal determination unit is used to determine that the high and low level signals of the interface electrically connected to the first screw hole are low level, and the high level signal of the interface electrically connected to the second screw hole is high level; wherein the second screw hole is a screw hole on the single board except the first screw hole.

[0085] Optionally, the single board is provided with N screw holes, and the single board slot of the whole machine is provided with M screw columns; wherein, when the single board is connected to the whole machine, M third screw holes among the N screw holes are assembled with the M screw columns; M≤N;

[0086] The first screw hole determining unit is used to:

[0087] When P target screw holes among the M third screw holes are respectively connected to P target screw columns among the M screw columns in a one-to-one correspondence through connecting pieces, the P target screw holes are determined as first screw holes fixed with the connecting pieces.

[0088] Optionally, the device further comprises:

[0089] A mapping relationship determination module, used to obtain a mapping relationship between a preset slot number and a board slot after determining the slot number of the board;

[0090] The target single board slot determination module is used to determine the target single board slot where the single board is located in the whole machine according to the slot number of the single board and the mapping relationship.

[0091] Optionally, the level signal determination module is used to:

[0092] Obtaining a preset interface sequence; wherein the interface sequence is the sequence used to generate the board slot number;

[0093] According to the interface sequence, based on the high and low level signals of the at least one interface, the slot number of the single board is determined.

[0094] The device for determining the single board slot number provided in the embodiment of the present invention can execute the method for determining the single board slot number provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0095] Embodiment 5

[0096] Figure 7The structural schematic diagram of the single board 10 that can be used to implement an embodiment of the present invention is shown. The single board is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The single board can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are only examples, and are not intended to limit the implementation of the present invention described and / or required herein.

[0097] like Figure 7 As shown, the single board 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the single board 10 can also be stored. The processor 11, ROM 12 and RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0098] Multiple components in the single board 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the single board 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0099] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a method for determining a single board slot number.

[0100] In some embodiments, the method for determining the single board slot number can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the single board 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for determining the single board slot number described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the method for determining the single board slot number in any other appropriate manner (for example, by means of firmware).

[0101] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0102] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0103] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer 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 foregoing.

[0104] To provide interaction with a user, the systems and techniques described herein may be implemented on a single board having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which a user can provide input to the single board. Other types of devices may also be used to provide interaction with a user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0105] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0106] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0107] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0108] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for determining a slot number of a single board, characterized in that: Applied to a complete machine, wherein the screw columns of the complete machine are respectively connected to the screw holes of at least two boards through a connecting piece, and the method comprises: For each of the at least two single boards, determine a first screw hole on which the connecting member is fixed from the screw holes on the current single board; wherein the screw hole positions of the first screw hole on each of the single boards are different; Respectively determine high and low level signals of interfaces on the at least two boards that are electrically connected to the respective screw holes in a one-to-one correspondence; wherein the high and low level signals of the first interface and the second interface are different, the first interface is an interface electrically connected to the first screw hole, the second interface is an interface electrically connected to the second screw hole, and the second screw hole is a screw hole among the screw holes on the board except the first screw hole; For each of the single boards, the slot number of the current single board is determined according to the high and low level signals of each interface on the current single board.

2. A method for determining a slot number of a single board, characterized in that: Applied to a single board, the method comprises: When the screw column of the whole machine is connected to the screw hole on the single board correspondingly through the connecting piece, determining the position information of the connecting piece on the single board; Determine the high and low level signals of at least one interface on the single board according to the position information; wherein the screw holes on the single board are electrically connected with the at least one interface in a one-to-one correspondence; Based on the high and low level signals of the at least one interface, the slot number of the board is determined.

3. The method according to claim 1, characterized in that Determining high and low level signals of at least one interface on the board according to the position information includes: Determine, according to the position information, a first screw hole to which the connecting member is fixed from the screw holes on the single board; Determine that the high and low level signals of the interface electrically connected to the first screw hole are low level, and the high level signal of the interface electrically connected to the second screw hole is high level; wherein, the second screw hole is a screw hole on the single board except the first screw hole.

4. The method according to claim 3, characterized in that The single board is provided with N screw holes, and the single board slot of the whole machine is provided with M screw columns; wherein, when the single board is connected to the whole machine, M third screw holes among the N screw holes are assembled with the M screw columns; M≤N; Determining, from the screw holes on the single board according to the position information, a first screw hole to which the connecting member is fixed, comprises: When P target screw holes among the M third screw holes are respectively connected to P target screw columns among the M screw columns in a one-to-one correspondence through connecting pieces, the P target screw holes are determined as first screw holes fixed with the connecting pieces.

5. The method according to claim 1, characterized in that After determining the slot number of the board, the method further includes: Obtain the mapping relationship between the preset slot number and the board slot; According to the slot number of the single board and the mapping relationship, a target single board slot of the single board in the whole machine is determined.

6. The method according to claim 1, characterized in that Determining the slot number of the board based on the high and low level signals of the at least one interface includes: Obtaining a preset interface sequence; wherein the interface sequence is the sequence used to generate the board slot number; According to the interface sequence, based on the high and low level signals of the at least one interface, the slot number of the single board is determined.

7. A device for determining a slot number of a single board, characterized in that: Applied to a complete machine, wherein the screw columns of the complete machine are respectively connected to the screw holes of at least two single boards through a connecting piece, and the device comprises: A first screw hole determination module is used to determine, for each of the at least two single boards, from the screw holes on the current single board, a first screw hole to which the connecting member is fixed; wherein the screw hole positions of the first screw holes on each of the single boards are different; an interface level signal determination module, used to respectively determine high and low level signals of interfaces on the at least two boards that are electrically connected to the respective screw holes in a one-to-one correspondence; wherein the high and low level signals of the first interface and the second interface are different, the first interface is an interface electrically connected to the first screw hole, the second interface is an interface electrically connected to the second screw hole, and the second screw hole is a screw hole among the screw holes on the board except the first screw hole; The single board slot number determination module is used to determine the slot number of the current single board according to the high and low level signals of each interface on the current single board.

8. A device for determining a slot number of a single board, characterized in that: Applied to a single board, the device comprises: A position information determination module, used to determine the position information of the connecting member on the single board when the screw column of the whole machine is connected to the screw hole on the single board correspondingly through the connecting member; A level signal determination module, used to determine the high and low level signals of at least one interface on the single board according to the position information; wherein the screw holes on the single board are electrically connected to the at least one interface in a one-to-one correspondence; The slot number determination module is used to determine the slot number of the single board based on the high and low level signals of the at least one interface.

9. A single board, characterized in that: The single board comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for determining the single board slot number according to any one of claims 2-6.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for determining the single board slot number according to any one of claims 1 or 2-6 when executed.

Citation Information

Patent Citations

  • Method, device and system for veneer groove position number identification

    CN101729319A

  • Server recognition device and method

    CN109327492A

  • Position identification system of array server hardware board card

    CN115237222A

  • Recognition system for single-board slot in frame

    CN1838152A

  • Controller and Method for Operating That Controller

    KR101602073B1