Server straightening detection device, server and use method
By designing a server alignment detection device that uses ball switches and GPIO ports, the structural unevenness and failure problems caused by the server not being rectified are solved, and rapid positioning and reminding are achieved, which improves the reliability and security of the server.
Patent Information
- Application Number
- CN202411559570.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-04
- Publication Date
- 2025-03-21
AI Technical Summary
The server is not straightened after installation, resulting in uneven structural stress, which may cause server deformation, failure and safety hazards, but it is difficult for staff to discover it in time.
A detection device for server alignment is designed, a ball switch is used to connect the power supply to the GPIO port on the controller, and the server alignment status is judged according to the inclination change, and the user is reminded through an alarm.
Effectively help maintenance personnel to quickly locate the failed server, avoid deformation and failure caused by uncorrectedness, and improve the reliability and security of the server.
Smart Images

Figure CN119668954A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of servers, and in particular to a server alignment detection device, a server, and a use method. Background Art
[0002] A server is a high-performance computer that provides various services on the Internet. As a node of the network, it stores and processes 80% of the data and information on the network, so it is also called the soul of the network.
[0003] The functions of servers and ordinary computers are similar, but compared with ordinary computers, servers have higher requirements in terms of stability, security, performance, etc., so the CPU, chipset, memory, disk system, network and other hardware are different from those of ordinary computers.
[0004] Specifically, the main differences between servers and ordinary computers include:
[0005] 1) The communication method is one-to-many: PCs, tablets, mobile phones and other fixed or mobile network terminals must go through the server to access the Internet, obtain information, communicate with the outside world, and entertain themselves. The server organizes and leads these devices through "one-to-many".
[0006] 2) Resources are shared through the network: The server listens to service requests submitted by other terminals on the network, and under the control of the network operating system, it provides the hard disks, printers and various special communication equipment connected to it to the client sites on the network for sharing. It can also provide network users with centralized computing, information publishing and data management services.
[0007] 3) More powerful hardware performance: The high performance of the server is mainly reflected in high-speed computing capabilities, long-term reliable operation, and powerful external data throughput capabilities.
[0008] Server manufacturers will design servers differently based on different application scenarios. The current main application scenarios include file interaction, data storage and query, application response and operation, etc.
[0009] Servers are usually placed on racks in the computer room. Due to irregular installation by engineers and inadequate management of the computer room, the server may not be in a horizontal state after installation, but in a tilted or even inverted state.
[0010] When the server is tilted or upside down, it may work normally in the short term, but it will inevitably cause uneven structural force in the long term, causing server deformation, failure and even safety hazards, which are not easy for staff to detect. Summary of the invention
[0011] The embodiments of the present application provide a server alignment detection device, a server, and a method for using the server to solve the problem in the related art that when the server is not aligned properly, it is difficult for staff to detect and thus easily cause server failure.
[0012] In a first aspect, a device for detecting a server alignment is provided, comprising:
[0013] A controller, wherein the controller has a port group, and the port group includes at least one GPIO port;
[0014] A switch mechanism, wherein the switch mechanism comprises at least one switch group, wherein the switch group comprises at least one ball switch for installation on the server, wherein one end of the switch group is used to be connected to a power source, and the other end is connected to a GPIO port of the port group;
[0015] Furthermore, the controller is further used to determine whether the level state of each of the GPIO ports is consistent with the corresponding preset level state when the server is properly positioned.
[0016] In some embodiments, the server is placed upright, the port group and the switch mechanism each have one, the port group includes one GPIO port, and the switch mechanism includes one switch group;
[0017] The ball switch included in the switch group is arranged vertically, and the guide pin of the ball switch is located above the ball, and the corresponding preset level state is a low level; or, the ball switch included in the switch group is arranged vertically, and the guide pin of the ball switch is located below the ball, and the corresponding preset level state is a high level.
[0018] In some embodiments, the server is placed upright, the port group and the switch mechanism are both one, the port group includes two GPIO ports, the switch mechanism includes two switch groups, and the two switch groups are respectively connected to the two GPIO ports;
[0019] In the two switch groups included in the switch mechanism, the ball switch included in one of the switch groups is arranged vertically, and the guide pin of the ball switch is located above the ball, and the corresponding preset level state is a low level;
[0020] The ball switch included in the other switch group is arranged vertically, and the guide pin of the ball switch is located below the ball, and the corresponding preset level state is a high level.
[0021] In some embodiments, the server is placed flat when it is aligned, the port group and the switch mechanism each have one, the port group includes one GPIO port, and the switch mechanism includes one switch group;
[0022] The ball switch included in the switch group is arranged horizontally, and the guide pin of the ball switch is located on the left side of the left and right sides of the ball, and the corresponding preset level state is a low level; or, the ball switch included in the switch group is arranged horizontally, and the guide pin of the ball switch is located on the right side of the left and right sides of the ball, and the corresponding preset level state is a low level.
[0023] In some embodiments, the server is placed horizontally when it is aligned, the port group and the switch mechanism are both one, the port group includes two GPIO ports, the switch mechanism includes two switch groups, and the two switch groups are respectively connected to the two GPIO ports;
[0024] Of the two switch groups included in the switch mechanism, the ball switch included in one of the switch groups is arranged horizontally, and the guide pin of the ball switch is located on the left side of the left and right sides of the ball, and the corresponding preset level state is a low level;
[0025] The ball switch included in the other switch group is arranged horizontally, and the guide pin of the ball switch is located on the right side of the left and right sides of the ball, and the corresponding preset level state is a low level.
[0026] In some embodiments, the server alignment includes placing the server upright and the server flat, and both the port group and the switch mechanism have two; the port group includes a GPIO port, and the switch mechanism includes a switch group;
[0027] In the two switch mechanisms, the ball switch included in the switch group of one of the switch mechanisms is arranged vertically, and the guide pin of the ball switch is located above the ball, and the corresponding preset level state is a low level; or the ball switch included in the switch group is arranged vertically, and the guide pin of the ball switch is located below the ball, and the corresponding preset level state is a high level;
[0028] The ball switch included in the switch group of the other switch mechanism is arranged horizontally, and the guide pin of the ball switch is located on the left side of the left and right sides of the ball, and the corresponding preset level state is a low level; or, the ball switch included in the switch group is arranged horizontally, and the guide pin of the ball switch is located on the right side of the left and right sides of the ball, and the corresponding preset level state is a low level.
[0029] In some embodiments, the server alignment includes placing the server upright and the server flat, and both the port group and the switch mechanism have two; the port group includes two GPIO ports, and the switch mechanism includes two switch groups, and the two switch groups are respectively connected to the two GPIO ports;
[0030] In the two switch mechanisms, in the two switch groups included in one of the switch mechanisms, the ball switch included in one of the switch groups is arranged vertically, and the guide pin of the ball switch is located above the ball, and the corresponding preset level state is a low level; the ball switch included in the other switch group is arranged vertically, and the guide pin of the ball switch is located below the ball, and the corresponding preset level state is a high level;
[0031] Among the two switch groups included in the other switch mechanism, the ball switch included in one of the switch groups is arranged horizontally, and the guide pin of the ball switch is located on the left side of the left and right sides of the ball, and the corresponding preset level state is a low level; the ball switch included in the other switch group is arranged horizontally, and the guide pin of the ball switch is located on the right side of the left and right sides of the ball, and the corresponding preset level state is a low level.
[0032] In some embodiments, the detection device further includes an alarm, and the controller is connected to the alarm and is used to control the alarm to sound an alarm when it is determined that the conditions do not meet the requirements;
[0033] And / or, the detection device further includes a power supply, and one end of the switch group is connected to the power supply.
[0034] In a second aspect, a server is provided, comprising a housing, on which is mounted a server alignment detection device as described above.
[0035] In a third aspect, a method for using the above-mentioned server alignment detection device is provided, which comprises:
[0036] Determine whether the level status of each GPIO port is consistent with the corresponding preset level status;
[0037] If so, the server is corrected;
[0038] Otherwise, it is not straightened.
[0039] The beneficial effects of the technical solution provided by this application include:
[0040] In this application, a ball switch is used to connect the power supply and the GPIO port on the controller. The ball switch will generate a corresponding circuit on-off or closed according to the inclination, so as to pull down the level of the connected GPIO port or pull up the level of the connected GPIO port. When the ball switch is installed on the server after the server is straightened, the level state of the GPIO port connected to the ball switch at this time is used as the preset level state and stored. The controller determines whether it is straightened according to whether the level state of each GPIO port is consistent with the corresponding preset level state. If the server is straightened, each GPIO port is always in the preset level state. If the level state signal input by the GPIO port changes, its level state changes, which means that the server is not straightened, and the user can be reminded that the server is not straightened and an abnormal state occurs. This will help maintenance personnel quickly locate the faulty server and avoid server deformation and failure. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0042] Figure 1 A schematic diagram of a detection device for server alignment provided in an embodiment of the present application;
[0043] Figure 2 A flow chart for determining the upright position provided in an embodiment of the present application;
[0044] Figure 3 A flowchart for determining the flat-laying condition provided in an embodiment of the present application.
[0045] In the figure: 1. power supply; 2. controller; 20. GPIO port; 3. server; 4. ball switch; 40. guide pin; 41. ball. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0047] See also Figure 1As shown, an embodiment of the present application provides a detection device for correcting a server, which includes a power supply 1, a controller 2 and a switch mechanism, wherein the controller 2 has a port group, the port group includes at least one GPIO port 20, wherein the GPIO port is a generic input / output, which is a general-purpose input / output; the switch mechanism includes at least one switch group, each of the switch groups includes at least one ball switch 4 for installation on a server 3, and the arrangement of each ball switch 4 in the same switch group is exactly the same, one end of the switch group is connected to the power supply 1, and the other end is connected to the GPIO port 20 of the port group; the controller 2 is also used to determine whether the level state of each GPIO port 20 is consistent with the preset level state corresponding to when the server 3 is corrected.
[0048] In the present application, a ball switch is used to connect the power supply and the GPIO port on the controller. When the power is connected, the ball switch will generate a corresponding circuit on-off or closed according to the inclination, so as to pull down the level of the connected GPIO port or pull up the level of the connected GPIO port. When the ball switch is installed on the server after the server is straightened, the level state of the GPIO port connected to the ball switch at this time is used as the preset level state and stored. The controller determines whether it is straightened according to whether the level state of each GPIO port is consistent with the corresponding preset level state. If the server is straightened, each GPIO port is always in the preset level state. If the level state signal input by the GPIO port changes, its level state changes, which means that the server is not straightened, and the user can be reminded that the server is not straightened and an abnormal state occurs. This will help maintenance personnel quickly locate the faulty server and avoid server deformation and failure.
[0049] It is understandable that the power supply 1 can be provided by the detection device itself, or it can be from other sources, such as a power supply in the area where the server is located, etc., as long as it can provide electrical energy.
[0050] It is understandable that there are many situations where the server is not properly positioned, for example, the server is tilted and not horizontal, another example is that the server is horizontal and not tilted, but is inverted and not upright, and another example is the combination of the above situations. These situations all belong to the situation where the server is not properly positioned.
[0051] For different situations where the server is not properly positioned, one switch group may be used to detect one GPIO port, or two switch groups may be used to detect two GPIO ports, so that at least fifteen detection schemes can be formed. The fifteen detection schemes are described one by one below.
[0052] For example, see Figure 1As shown, in the scheme 1, the server is placed upright, the port group and the switch mechanism are both one, the port group includes a GPIO port 20, and the switch mechanism includes a switch group; the ball switch 4 included in the switch group is arranged vertically, and the guide pin 40 of the ball switch 4 is located above the ball 41, and the GPIO port 20 connected to the ball switch 4 is at Figure 1 It is recorded as "GPIO1" in the figure, and the corresponding preset level state is low level.
[0053] When upright, the guide pin 40 of the ball switch 4 corresponding to the left "GPIO1" is above the ball 41 and is in an open circuit state. "GPIO1" is pulled down, and the detected level state is a low level. At this time, the controller 2 does not alarm. When inverted, the guide pin 40 of the ball switch 4 corresponding to the left "GPIO1" is below the ball 41 and is in a closed circuit state. The inverted "GPIO1" is pulled up, and the detected level state is a high level. At this time, the controller 2 determines that the server is in an inverted state based on the level state change of "GPIO1" and generates an alarm.
[0054] For example, see Figure 1 As shown, in the second scheme, the server is placed upright, the port group and the switch mechanism are both one, the port group includes a GPIO port 20, and the switch mechanism includes a switch group; the ball switch 4 included in the switch group is arranged vertically, and the guide pin 40 of the ball switch 4 is located below the ball 41, and the GPIO port 20 connected to the ball switch 4 is at Figure 1 It is recorded as "GPIO4" in the figure, and the corresponding preset level state is high level.
[0055] When upright, the ball switch 4 corresponding to the right "GPIO4" is in a closed circuit state because the guide pin 40 is below the ball 41, "GPIO4" is pulled up, and the detected level state is a high level. At this time, the controller 2 does not alarm. When inverted, the ball switch 4 corresponding to the right "GPIO4" is in an open circuit state because the guide pin 40 is above the ball 41, "GPIO4" is pulled down, and the detected level state is a low level. At this time, the controller 2 determines that the server is in an inverted state based on the level state change of "GPIO4" and generates an alarm.
[0056] For example, see Figure 1As shown, in scheme three, the server is placed upright, the port group and the switch mechanism are both one, the port group includes two GPIO ports 20, the switch mechanism includes two switch groups, and the two switch groups are respectively connected to the two GPIO ports 20; at this time, in the two switch groups included in the switch mechanism, the ball switch 4 included in one of the switch groups is arranged vertically, and the guide pin 40 of the ball switch 4 is located above the ball 41, and the GPIO port 20 connected to the ball switch 4 is at Figure 1 In the figure, it is marked as "GPIO1", and the corresponding preset level state is low level; another ball switch 4 included in the switch group is arranged vertically, and the guide pin 40 of the ball switch 4 is located below the ball 41, and the GPIO port 20 connected to the ball switch 4 is at Figure 1 It is recorded as "GPIO4" in the figure, and the corresponding preset level state is high level.
[0057] When it is upright, the guide pin 40 of the ball switch 4 corresponding to the left "GPIO1" is above the ball 41 and is in an open circuit state, "GPIO1" is pulled down, and the detected level state is low. The ball switch 4 corresponding to the right "GPIO4" is in a closed circuit state because the guide pin 40 is below the ball 41, "GPIO4" is pulled up, and the detected level state is high. At this time, the controller 2 does not alarm.
[0058] When inverted, the guide pin 40 of the ball switch 4 corresponding to the left "GPIO1" is below the ball 41 and is in a closed circuit state. The inverted "GPIO1" is pulled up, and the detected level state is a high level. The ball switch 4 corresponding to the right "GPIO4" is in an open circuit state because the guide pin 40 is above the ball 41. "GPIO4" is pulled down, and the detected level state is a low level. At this time, the controller 2 determines that the server is in an inverted state based on the level state changes of "GPIO1" and "GPIO4", and generates an alarm.
[0059] It is understandable that a high level is usually represented by "1" and a low level is represented by "0". For the positive setting of scheme 3, see Figure 2 The specific judgment process is as follows:
[0060] 101: Detect the level status of "GPIO1" and "GPIO4".
[0061] 102: Determine whether GPIO1=0 and GPIO4=1 are simultaneously established.
[0062] 103: If so, the server is set to normal and the process ends; otherwise, it is determined whether GPIO1=1 and GPIO4=0 are simultaneously established.
[0063] 104: If yes, the server is inverted, an alarm is given, and the process ends; otherwise, the process ends.
[0064] For example, see Figure 1 As shown, in the fourth scheme, the server is placed horizontally, the port group and the switch mechanism are both one, the port group includes a GPIO port 20, and the switch mechanism includes a switch group; the ball switch 4 included in the switch group is arranged horizontally, and the guide pin 40 of the ball switch 4 is located on the left side of the left and right sides of the ball 41, and the GPIO port 20 connected to the ball switch 4 is on the left side. Figure 1 It is recorded as "GPIO2" in the figure, and the corresponding preset level state is low level.
[0065] When placed horizontally, the guide pin 40 of the ball switch 4 corresponding to the left "GPIO2" is on the left side of the ball 41 and is in an open circuit state. "GPIO2" is pulled down and the detected level state is low. At this time, the controller 2 does not alarm. When the server tilts more than a certain angle, the ball switch 4 will enter the circuit closed state due to the contact between the ball 41 and the guide pin 40, and the corresponding GPIO port will be pulled high. At this time, the controller 2 determines that the server has tilted and generates an alarm.
[0066] For example, see Figure 1 As shown, in scheme five, the server is placed flat, the port group and the switch mechanism are both one, the port group includes a GPIO port 20, and the switch mechanism includes a switch group; the ball switch 4 included in the switch group is arranged horizontally, and the guide pin 40 of the ball switch 4 is located on the right side of the left and right sides of the ball 41, and the GPIO port 20 connected to the ball switch 4 is on the left side. Figure 1 It is recorded as "GPIO3" in the figure, and the corresponding preset level state is low level.
[0067] When placed horizontally, the ball switch 4 corresponding to the right "GPIO3" is in an open circuit state because the guide pin 40 is on the right side of the ball 41, and "GPIO3" is pulled down, and the detected level state is low. At this time, the controller 2 does not alarm. When the server tilts more than a certain angle, the ball switch 4 will enter the circuit closed state because the ball 41 contacts the guide pin 40, and the corresponding GPIO port is pulled high. At this time, the controller 2 determines that the server has tilted and generates an alarm.
[0068] For example, see Figure 1As shown, in scheme six, the server is straightened so that the server is laid flat, the port group and the switch mechanism are both one, the port group includes two GPIO ports 20, the switch mechanism includes two switch groups, and the two switch groups are respectively connected to the two GPIO ports 20; in the two switch groups included in the switch mechanism, the ball switch 4 included in one of the switch groups is arranged horizontally, and the guide pin 40 of the ball switch 4 is located on the left side of the left and right sides of the ball 41, and the GPIO port 20 connected to the ball switch 4 is on Figure 1 In the figure, it is marked as "GPIO2", and the corresponding preset level state is low level; the ball switch 4 included in the other switch group is arranged horizontally, and the guide pin 40 of the ball switch 4 is located on the right side of the left and right sides of the ball 41, and the GPIO port 20 connected to the ball switch 4 is at Figure 1 It is recorded as "GPIO3" in the figure, and the corresponding preset level state is low level.
[0069] When placed horizontally, the guide pin 40 of the ball switch 4 corresponding to the left "GPIO2" is on the left side of the ball 41 and is in an open circuit state, "GPIO2" is pulled down, and the detected level state is low. The guide pin 40 of the ball switch 4 corresponding to the right "GPIO3" is on the right side of the ball 41 and is in an open circuit state, "GPIO3" is pulled down, and the detected level state is low. At this time, the controller 2 does not alarm.
[0070] When the server tilts more than a certain angle, the two sets of ball switches 4 will enter a circuit closed state because the ball 41 of one set contacts the guide pin 40, and the corresponding GPIO port is pulled high. At this time, the controller 2 determines that the server has tilted and generates an alarm.
[0071] It is understandable that a high level is usually represented by "1" and a low level is represented by "0". For the horizontal placement of scheme 6, see Figure 3 The specific judgment process is as follows:
[0072] 201: Detect the level status of "GPIO2" and "GPIO3".
[0073] 202: Determine whether GPIO2=0 and GPIO3=0 are simultaneously established.
[0074] 203: If yes, the server is placed flat and not tilted, and the process ends; otherwise, it is determined whether GPIO2=1 and GPIO3=0 are simultaneously established.
[0075] 204: If yes, the server is tilted and not laid flat, and an alarm is given, and the process ends; otherwise, it is determined whether GPIO2=0 and GPIO3=1 are simultaneously established.
[0076] 205: If yes, the server is tilted and not laid flat, and an alarm is given, and the process ends; otherwise, the process ends.
[0077] For example, see Figure 1 As shown, in Scheme 7, the server alignment includes placing the server upright and laying the server flat, and there are two port groups and two switch mechanisms; the port group includes a GPIO port 20, and the switch mechanism includes a switch group; at this time, it can be composed of the above-mentioned Schemes 1 and 4.
[0078] For example, see Figure 1 As shown, in Scheme 8, the server alignment includes placing the server upright and laying the server flat, and there are two port groups and two switch mechanisms; the port group includes a GPIO port 20, and the switch mechanism includes a switch group; at this time, the above-mentioned Schemes 1 and 5 can be combined.
[0079] For example, see Figure 1 As shown, in Scheme 9, the server alignment includes placing the server upright and laying the server flat, and there are two port groups and two switch mechanisms; the port group includes a GPIO port 20, and the switch mechanism includes a switch group; at this time, it can be composed of the above-mentioned Schemes 2 and 4.
[0080] For example, see Figure 1 As shown, in Scheme 10, the server alignment includes placing the server upright and laying the server flat, and there are two port groups and two switch mechanisms; the port group includes a GPIO port 20, and the switch mechanism includes a switch group; at this time, it can be combined from Scheme 2 and Scheme 5 mentioned above.
[0081] For example, see Figure 1 As shown, in scheme eleven, the server alignment includes placing the server upright and placing the server flat, which can be a combination of schemes three and four.
[0082] For example, see Figure 1 As shown, in Scheme 12, the server alignment includes placing the server upright and laying the server flat, which can be a combination of Scheme 3 and Scheme 5 mentioned above.
[0083] For example, see Figure 1 As shown, in Scheme 13, the server alignment includes placing the server upright and laying the server flat, which can be a combination of Scheme 1 and Scheme 6 mentioned above.
[0084] For example, see Figure 1As shown, in Scheme 14, the server alignment includes placing the server upright and laying the server flat, which can be a combination of Scheme 2 and Scheme 6 mentioned above.
[0085] For example, see Figure 1 As shown, in scheme fifteen, the server alignment includes placing the server upright and laying the server flat, there are two port groups and two switch mechanisms, the port group includes two GPIO ports 20, the switch mechanism includes two switch groups, and the two switch groups are respectively connected to the two GPIO ports 20. Among the two switch mechanisms, in the two switch groups included in one of the switch mechanisms, the ball switch 4 included in one of the switch groups is arranged vertically, and the guide pin 40 of the ball switch 4 is located above the ball 41, and the corresponding preset level state is a low level; the ball switch 4 included in the other switch group is arranged vertically, and the guide pin 40 of the ball switch 4 is located below the ball 41, and the corresponding preset level state is a high level; among the two switch groups included in the other switch mechanism, the ball switch 4 included in one of the switch groups is arranged horizontally, and the guide pin 40 of the ball switch 4 is located on the left side of the left and right sides of the ball 41, and the corresponding preset level state is a low level; the ball switch 4 included in the other switch group is arranged horizontally, and the guide pin 40 of the ball switch 4 is located on the right side of the left and right sides of the ball 41, and the corresponding preset level state is a low level.
[0086] At this time, the tilt and inversion judgments are performed simultaneously according to the above steps 101 to 104 and 201 to 205 to ensure that the server is placed upright and horizontally.
[0087] It can be understood that the above scheme 3 can improve the detection accuracy compared with scheme 1 and scheme 2. The above scheme 6 can improve the detection accuracy compared with scheme 4 and scheme 5. The accuracy of the above scheme 15 is higher among all the schemes.
[0088] When the above reminder is issued, a log reminder may be used, for example, an alarm log may be generated to remind the user that the server status is abnormal.
[0089] An alarm may also be provided, and the controller 2 is connected to the alarm and is used to control the alarm to sound an alarm when it is judged that there is no compliance.
[0090] The alarm is a warning light or a buzzer.
[0091] Furthermore, the controller is a baseboard management controller BMC.
[0092] An embodiment of the present application further provides a server, which includes a housing, on which is mounted a server alignment detection device as described above.
[0093] In the description of the present application, it should be noted that the terms "upper", "lower", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. Unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be a connection between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances.
[0094] It should be noted that, in this application, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0095] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. A server alignment detection device, characterized in that: It includes: A controller (2), the controller (2) having a port group, the port group including at least one GPIO port (20); A switch mechanism, the switch mechanism comprising at least one switch group, the switch group comprising at least one ball switch (4) for installation on a server (3), one end of the switch group being connected to a power source (1), and the other end being connected to a GPIO port (20) of the port group; Furthermore, the controller (2) is further used to determine whether the level state of each of the GPIO ports (20) is consistent with the corresponding preset level state when the server (3) is properly positioned.
2. The server alignment detection device according to claim 1, characterized in that: The server is placed upright, the port group and the switch mechanism each have one, the port group includes a GPIO port (20), and the switch mechanism includes a switch group; The ball switch (4) included in the switch group is arranged vertically, and the guide pin (40) of the ball switch (4) is located above the ball (41), and the corresponding preset level state is a low level; or the ball switch (4) included in the switch group is arranged vertically, and the guide pin (40) of the ball switch (4) is located below the ball (41), and the corresponding preset level state is a high level.
3. The server alignment detection device according to claim 1, characterized in that: The server is aligned so that the server is upright, the port group and the switch mechanism each have one, the port group includes two GPIO ports (20), the switch mechanism includes two switch groups, and the two switch groups are respectively connected to the two GPIO ports (20); In the two switch groups included in the switch mechanism, the ball switch (4) included in one of the switch groups is arranged vertically, and the guide pin (40) of the ball switch (4) is located above the ball (41), and the corresponding preset level state is a low level; The ball switch (4) included in the other switch group is arranged vertically, and the guide pin (40) of the ball switch (4) is located below the ball (41), and the corresponding preset level state is a high level.
4. The server alignment detection device according to claim 1, characterized in that: The server is aligned so that the server is laid flat, the port group and the switch mechanism each have one, the port group includes a GPIO port (20), and the switch mechanism includes a switch group; The ball switch (4) included in the switch group is arranged horizontally, and the guide pin (40) of the ball switch (4) is located on the left side of the left and right sides of the ball (41), and the corresponding preset level state is a low level; or the ball switch (4) included in the switch group is arranged horizontally, and the guide pin (40) of the ball switch (4) is located on the right side of the left and right sides of the ball (41), and the corresponding preset level state is a low level.
5. The server alignment detection device according to claim 1, characterized in that: The server is aligned so that the server is laid flat, the port group and the switch mechanism are both one, the port group includes two GPIO ports (20), the switch mechanism includes two switch groups, and the two switch groups are respectively connected to the two GPIO ports (20); In the two switch groups included in the switch mechanism, the ball switch (4) included in one of the switch groups is arranged horizontally, and the guide pin (40) of the ball switch (4) is located on the left side of the left and right sides of the ball (41), and the corresponding preset level state is a low level; The ball switch (4) included in the other switch group is arranged horizontally, and the guide pin (40) of the ball switch (4) is located on the right side of the left and right sides of the ball (41), and the corresponding preset level state is a low level.
6. The server alignment detection device according to claim 1, characterized in that: The server alignment includes placing the server upright and laying the server flat, and both the port group and the switch mechanism have two; the port group includes a GPIO port (20), and the switch mechanism includes a switch group; In the two switch mechanisms, the ball switch (4) included in the switch group of one of the switch mechanisms is arranged vertically, and the guide pin (40) of the ball switch (4) is located above the ball (41), and the corresponding preset level state is a low level; or the ball switch (4) included in the switch group is arranged vertically, and the guide pin (40) of the ball switch (4) is located below the ball (41), and the corresponding preset level state is a high level; The ball switch (4) included in the switch group of the other switch mechanism is arranged horizontally, and the guide pin (40) of the ball switch (4) is located on the left side of the left and right sides of the ball (41), and the corresponding preset level state is a low level; or the ball switch (4) included in the switch group is arranged horizontally, and the guide pin (40) of the ball switch (4) is located on the right side of the left and right sides of the ball (41), and the corresponding preset level state is a low level.
7. The server alignment detection device according to claim 1, characterized in that: The server alignment includes placing the server upright and laying the server flat, and both the port group and the switch mechanism have two; the port group includes two GPIO ports (20), and the switch mechanism includes two switch groups, and the two switch groups are respectively connected to the two GPIO ports (20); In the two switch mechanisms, in the two switch groups included in one of the switch mechanisms, the ball switch (4) included in one of the switch groups is arranged vertically, and the guide pin (40) of the ball switch (4) is located above the ball (41), and the corresponding preset level state is a low level; the ball switch (4) included in the other switch group is arranged vertically, and the guide pin (40) of the ball switch (4) is located below the ball (41), and the corresponding preset level state is a high level; Of the two switch groups included in the other switch mechanism, the ball switch (4) included in one of the switch groups is arranged horizontally, and the guide pin (40) of the ball switch (4) is located on the left side of the left and right sides of the ball (41), and the corresponding preset level state is a low level; the ball switch (4) included in the other switch group is arranged horizontally, and the guide pin (40) of the ball switch (4) is located on the right side of the left and right sides of the ball (41), and the corresponding preset level state is a low level.
8. The server alignment detection device according to claim 1, characterized in that: The detection device also includes an alarm, and the controller (2) is connected to the alarm and is used to control the alarm to sound an alarm when it is judged that the condition does not meet the requirements; And / or, the detection device further comprises a power supply (1), and one end of the switch group is connected to the power supply (1).
9. A server, characterized in that: It comprises a shell, on which a server alignment detection device as claimed in any one of claims 1 to 8 is mounted.
10. A method for using the server alignment detection device according to claim 1, characterized in that: It includes: Determining whether the level state of each GPIO port (20) is consistent with the corresponding preset level state; If so, the server is corrected; Otherwise, it is not straightened.