CN111857314B - Method, device and medium for controlling server power-on based on power supply installation stroke - Google Patents

Method, device and medium for controlling server power-on based on power supply installation stroke Download PDF

Info

Publication number
CN111857314B
CN111857314B CN202010676478.1A CN202010676478A CN111857314B CN 111857314 B CN111857314 B CN 111857314B CN 202010676478 A CN202010676478 A CN 202010676478A CN 111857314 B CN111857314 B CN 111857314B
Authority
CN
China
Prior art keywords
state
level signal
server
detection switch
power
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010676478.1A
Other languages
Chinese (zh)
Other versions
CN111857314A (en
Inventor
马义超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010676478.1A priority Critical patent/CN111857314B/en
Publication of CN111857314A publication Critical patent/CN111857314A/en
Application granted granted Critical
Publication of CN111857314B publication Critical patent/CN111857314B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/30Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The invention discloses a method, a system, equipment and a storage medium for controlling the power-on of a server based on the installation stroke of a power supply, wherein the method comprises the following steps: configuring a first state and a second state of a stroke detection switch of a server power supply to correspond to a first level signal and a second level signal, respectively; determining whether the stroke detection switch is transitioned from the first state to the second state in response to a transition of a stroke detection button in the stroke detection switch from a first position corresponding to the first state to a second position corresponding to the second state; in response to the stroke detection switch transitioning from the first state to the second state, determining whether the detection signal transitions from a first level signal to a second level signal; and powering on the server in response to the detection signal being converted from the first level signal to the second level signal.

Description

Method, device and medium for controlling server power-on based on power supply installation stroke
Technical Field
The present invention relates to the field of servers, and more particularly, to a method, a system, a computer device, and a readable medium for controlling a server to be powered on based on a power installation process.
Background
The market today has ever greater demands on servers and higher demands on the computing power of the servers. Accordingly, the system power consumption of the server is also increasing. The overall power consumption of the system of the general server is not equal to 800-.
The input voltage of the main board end of the main stream server is usually 12V direct current voltage, and the input current can reach 250A according to the maximum power consumption 3000W of the whole system. The huge supply current requires that the mainboard of the server and the power module interconnection part must be in sufficient and reliable contact to ensure the safety and stability of the power supply of the server system.
The following 3 common interconnection modes of the server motherboard and the power module are provided:
1. the golden finger of the power module is inserted into the golden finger connector at the end of the main board, and the interconnection is directly realized.
2. The power supply module is connected with a power supply cable, and the male end of the power supply cable is connected with the power supply connector terminal of the mainboard end in an inserting mode.
3. The power module is inserted into the golden finger connector at the end of the power panel, and the power panel and the mainboard are mutually inserted through the male and female heads of the copper bar to realize interconnection.
The three interconnection modes have certain requirements on the stroke of the interconnection part of the power module. If the installation stroke of power module is not in place, then probably lead to the area of contact between the interconnection part conducting metal (copper foil, copper post, copper bar etc.) not enough, and then lead to contact resistance to increase, supply power for a long time and probably lead to the system loss to rise. Moreover, excessive contact resistance and excessive heat generation can also cause system downtime or board burning.
However, in the general server market, designers do not associate the installation stroke of the power supply module with the power supply logic at the board end, but guarantee the installation stroke of the power supply module by external mechanism limitation. The mechanism is limited in actual production and has certain processing tolerance, so that the phenomena of system power consumption increase, system downtime, board burning and the like caused by the fact that the installation stroke of the power supply module is not in place cannot be fundamentally eliminated.
Disclosure of Invention
In view of the above, an object of the embodiments of the present invention is to provide a method, a system, a computer device, and a computer readable storage medium for controlling power-on of a server based on power installation stroke, wherein when a stroke detection button is switched from a first position to a second position, whether a stroke detection switch is switched from a first state to a second state is determined to determine whether a power is installed in place, so as to avoid power consumption increase, downtime, and board burning of the system caused by power modules of the server not being installed in place; and the installation state of the power supply module of the server can be monitored constantly, and the server can be guaranteed to supply power efficiently and safely constantly.
Based on the above object, an aspect of the embodiments of the present invention provides a method for controlling server power-on based on power installation, including the following steps: configuring a first state and a second state of a stroke detection switch of a server power supply to correspond to a first level signal and a second level signal, respectively; determining whether the stroke detection switch is transitioned from the first state to the second state in response to a transition of a stroke detection button in the stroke detection switch from a first position corresponding to the first state to a second position corresponding to the second state; in response to the travel detection switch transitioning from the first state to the second state, determining whether the detection signal transitions from a first level signal to a second level signal; and powering on the server in response to the detection signal being converted from the first level signal to the second level signal.
In some embodiments, further comprising: and in response to the travel detection switch not being converted from the first state to the second state, the detection signal is placed at a non-preset working potential to inhibit the server from being powered on.
In some embodiments, further comprising: and responding to the completion of the power-on of the server, and continuously detecting whether a detection signal of a non-preset working potential is generated.
In some embodiments, further comprising: and responding to the generation of a detection signal of a non-preset working potential, and turning on a standby power supply and turning off the power supply of the server.
In some embodiments, further comprising: in response to a transition of a stroke detection button in the stroke detection switch from a second position corresponding to the second state to a first position corresponding to the first state, it is determined whether the stroke detection switch transitions from the second state to the first state.
In some embodiments, further comprising: in response to the stroke detection switch transitioning from the second state to the first state, it is determined whether the detection signal transitions from the second level signal to the first level signal.
In some embodiments, further comprising: powering down the server in response to the detection signal being converted from the second level signal to the first level signal.
In another aspect of the embodiments of the present invention, a power supply installation stroke control server-based power supply system is further provided, including: the server power supply control device comprises a setting module, a first level signal generation module and a second level signal generation module, wherein the setting module is used for respectively configuring a first state and a second state of a travel detection switch of a server power supply to correspond to a first level signal and a second level signal; a first detection module configured to determine whether a stroke detection switch transitions from a first state to a second state in response to a stroke detection button in the stroke detection switch transitioning from a first position corresponding to the first state to a second position corresponding to the second state; a second detection module configured to determine whether the detection signal is converted from the first level signal to the second level signal in response to the stroke detection switch being converted from the first state to the second state; and a power-up module configured to power up the server in response to the detection signal being converted from the first level signal to the second level signal.
In another aspect of the embodiments of the present invention, there is also provided a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method as above.
In a further aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, in which a computer program for implementing the above method steps is stored when the computer program is executed by a processor.
The invention has the following beneficial technical effects: when the stroke detection button is converted from the first position to the second position, whether the stroke detection switch is converted from the first state to the second state is judged to determine whether the power supply is installed in place, so that the power consumption of a system is prevented from being increased, down and board burning caused by the fact that a power supply module of a server is not installed in place; and the installation state of the power supply module of the server can be monitored constantly, and the server can be guaranteed to supply power efficiently and safely constantly.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
Fig. 1 is a schematic diagram illustrating an embodiment of a method for controlling a server to power on based on a power installation stroke according to the present invention;
FIG. 2 is a general schematic diagram of a device for controlling the power-on of a server based on the installation of a power supply according to the present invention;
FIG. 3 is a schematic view of a travel detection switch provided by the present invention;
fig. 4 is a schematic hardware structure diagram of an embodiment of a computer device for controlling server power-on based on power installation.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In view of the foregoing, a first aspect of the embodiments of the present invention provides an embodiment of a method for controlling power on of a server based on power installation. Fig. 1 is a schematic diagram illustrating an embodiment of a method for controlling power-on of a server based on power installation. As shown in fig. 1, the embodiment of the present invention includes the following steps:
s1, configuring the first state and the second state of a stroke detection switch of the server power supply to correspond to the first level signal and the second level signal respectively;
s2, in response to the stroke detection button in the stroke detection switch transitioning from a first position corresponding to the first state to a second position corresponding to the second state, determining whether the stroke detection switch transitioned from the first state to the second state;
s3, responding to the change of the travel detection switch from the first state to the second state, judging whether the detection signal is changed from the first level signal to the second level signal; and
and S4, responding to the conversion of the detection signal from the first level signal to the second level signal, and powering on the server.
Fig. 2 is an overall schematic diagram of a device for controlling power-on of a server based on power installation. As shown in fig. 2, the apparatus for controlling the power-on of the server based on the power installation stroke includes three parts, separated by a dotted line. The first part comprises a stroke detection switch S5, the second part is a hardware detection unit and mainly comprises an N-type MOS tube, a plurality of current-limiting resistors and a filter capacitor (not shown in the figure), and the hardware detection unit is mainly used for converting the opening and closing states of the stroke switch into high and low level signals and further transmitting the high and low level signals to a software monitoring unit; and the third part is a software monitoring unit, and after receiving the opening or closing state signal of the stroke detection switch, the CPLD performs corresponding protection measures on the power supply at the mainboard end.
Fig. 3 is a schematic diagram of a stroke detection switch provided by the present invention. As shown in fig. 3, the stroke detection switch includes: travel button 1, button base 2, cable 3 and cable terminal 4. The stroke button 1 is in an extended state in an initial condition, and a spring piece is built in. When the travel button 1 is pressed or rebounds from the pressed state to the initial state, the opening and closing of the whole switch can be triggered, the corresponding relation between the opening and closing and the button pressing rebounding is determined according to specific hardware design, and no uniform requirement exists. The button base 2 is internally provided with a spring leaf and leads the external PIN needles at the two ends of the travel detection switch out of the base. The button base 2 may be soldered to a PCB of a motherboard or may be externally cabled to connector terminals of the PCB, depending on the specific hardware design. When the hardware design is limited, the cable 3 may be provided in the stroke detection switch, and in addition, the cable terminal 4 may be provided for use in association with the cable. A and B in the drawing represent the sockets corresponding to the cable terminals 4, respectively.
The first state and the second state of the stroke detection switch of the server power supply are configured to correspond to the first level signal and the second level signal, respectively. The travel detection switch has two existing states: the first state and the second state correspond to the closed state and the open state, respectively, and the closed state may correspond to the first level signal and the open state may correspond to the second level signal, respectively. In other embodiments, the open state may correspond to the first level signal, and the closed state may correspond to the second level signal.
In response to a transition of a stroke detection button in the stroke detection switch from a first position corresponding to the first state to a second position corresponding to the second state, it is determined whether the stroke detection switch transitions from the first state to the second state. In this embodiment, the first state is a closed state, the second state is an open state, the first position corresponding to the first state is an extended state, and the second position corresponding to the second state is a compressed state. When the stroke detection button is changed from the extended state to the compressed state, it is determined whether the stroke detection switch is changed from the closed state to the open state. There are various ways of determining whether the stroke detection switch is changed from the closed state to the open state, and for example, it is possible to determine whether a change occurs in the current in the circuit connected to the stroke detection button.
In response to the stroke detection switch transitioning from the first state to the second state, it is determined whether the detection signal transitions from the first level signal to the second level signal. The server is powered on in response to the detection signal being converted from the first level signal to the second level signal.
When the power module of the server is installed in place, that is, the contact area of the conductive interconnection part is sufficient and meets the design requirement, the state of the stroke detection switch is changed from being closed (or opened) to being opened (or closed) from the default setting. The stroke detection signal is set at a normal working potential by the hardware detection unit, and the subsequent normal mainboard electrifying action is executed when the software monitoring unit detects that the stroke detection signal is normal.
In some embodiments, further comprising: and in response to the travel detection switch not being converted from the first state to the second state, the detection signal is placed at a non-preset working potential to inhibit the server from being powered on.
On the contrary, when the power module of the server is not installed in place, the contact area of the conductive interconnection part is insufficient, and the design requirement is not met. The stroke detection switch can be extruded, but the stroke is not in place, and the initial state can not be changed. At this time, the stroke detection signal is set at an abnormal working potential by the hardware detection unit, and the software monitoring unit detects that the stroke detection signal is abnormal, so that the mainboard cannot be started.
In some embodiments, further comprising: and responding to the completion of power-on of the server, and continuously detecting whether a detection signal of a non-preset working potential is generated. In some embodiments, further comprising: and responding to the generation of a detection signal of a non-preset working potential, and turning on a standby power supply and turning off the power supply of the server.
If the server is in a normal working state, the power module is installed in a misplaced manner due to external interference. The hardware detection unit of the motherboard will set the stroke detection signal from the normal operation potential to the abnormal operation potential. At the moment, when the software monitoring unit of the server mainboard detects that the stroke detection signal is abnormal, a normal shutdown time sequence of the mainboard is executed, and meanwhile, a Standby power supply of the mainboard is reserved, so that the power supply of the system is protected, and meanwhile, the data loss caused by abnormal power failure is prevented.
In some embodiments, further comprising: in response to a transition of a stroke detection button in the stroke detection switch from a second position corresponding to the second state to a first position corresponding to the first state, it is determined whether the stroke detection switch transitions from the second state to the first state.
In some embodiments, further comprising: in response to the stroke detection switch transitioning from the second state to the first state, it is determined whether the detection signal transitions from the second level signal to the first level signal.
In some embodiments, further comprising: powering down the server in response to the detection signal being converted from the second level signal to the first level signal.
It should be particularly noted that, the steps in the embodiments of the method for controlling server power-on based on power installation route may be mutually intersected, replaced, added, and deleted, so that these methods for controlling server power-on based on power installation route, which are reasonably arranged and combined, should also belong to the scope of the present invention, and the scope of the present invention should not be limited to the embodiments.
In view of the above, a second aspect of the embodiments of the present invention provides a power-on system for controlling a server based on a power installation stroke, including: the server power supply control device comprises a setting module, a first level signal generation module and a second level signal generation module, wherein the setting module is used for respectively configuring a first state and a second state of a travel detection switch of a server power supply to correspond to a first level signal and a second level signal; a first detection module configured to determine whether a stroke detection switch transitions from a first state to a second state in response to a stroke detection button in the stroke detection switch transitioning from a first position corresponding to the first state to a second position corresponding to the second state; a second detection module configured to determine whether the detection signal is converted from the first level signal to the second level signal in response to the stroke detection switch being converted from the first state to the second state; and a power-up module configured to power up the server in response to the detection signal being converted from the first level signal to the second level signal.
In some embodiments, further comprising: and the forbidding module is configured to respond to the condition that the travel detection switch is not converted from the first state to the second state, and place the detection signal at a non-preset working potential so as to forbid the server from being powered on.
In some embodiments, further comprising: and the third detection module is configured to respond to the fact that the server is powered on and continuously detect whether a detection signal of a non-preset working potential is generated.
In some embodiments, further comprising: and the standby module is configured for responding to the generation of a detection signal with a non-preset working potential, turning on a standby power supply and turning off the power supply of the server.
In some embodiments, further comprising: and the fourth detection module is configured to respond to the change of the stroke detection button in the stroke detection switch from the second position corresponding to the second state to the first position corresponding to the first state, and judge whether the stroke detection switch is changed from the second state to the first state.
In some embodiments, further comprising: and the fifth detection module is used for responding to the change of the stroke detection switch from the second state to the first state and judging whether the detection signal is converted from the second level signal to the first level signal.
In some embodiments, further comprising: and the power-down module is configured to power down the server in response to the detection signal being converted from the second level signal to the first level signal.
In view of the above object, a third aspect of the embodiments of the present invention provides a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions being executable by the processor to perform the steps of: s1, configuring the first state and the second state of a stroke detection switch of the server power supply to correspond to the first level signal and the second level signal respectively; s2, in response to the stroke detection button in the stroke detection switch transitioning from a first position corresponding to the first state to a second position corresponding to the second state, determining whether the stroke detection switch transitioned from the first state to the second state; s3, responding to the change of the travel detection switch from the first state to the second state, judging whether the detection signal is changed from the first level signal to the second level signal; and S4, responding to the conversion of the detection signal from the first level signal to the second level signal, and powering on the server.
In some embodiments, further comprising: and in response to the travel detection switch not being converted from the first state to the second state, the detection signal is placed at a non-preset working potential to inhibit the server from being powered on.
In some embodiments, further comprising: and responding to the completion of power-on of the server, and continuously detecting whether a detection signal of a non-preset working potential is generated.
In some embodiments, further comprising: and responding to the generation of a detection signal of a non-preset working potential, and turning on a standby power supply and turning off the power supply of the server.
In some embodiments, further comprising: in response to a transition of a stroke detection button in the stroke detection switch from a second position corresponding to the second state to a first position corresponding to the first state, it is determined whether the stroke detection switch transitions from the second state to the first state.
In some embodiments, further comprising: in response to the stroke detection switch transitioning from the second state to the first state, it is determined whether the detection signal transitions from the second level signal to the first level signal.
In some embodiments, further comprising: powering down the server in response to the detection signal being converted from the second level signal to the first level signal.
Fig. 4 is a schematic hardware structural diagram of an embodiment of the computer device for controlling power on of the server based on power installation according to the present invention.
Taking the apparatus shown in fig. 4 as an example, the apparatus includes a processor 301 and a memory 302, and may further include: an input device 303 and an output device 304.
The processor 301, the memory 302, the input device 303 and the output device 304 may be connected by a bus or other means, and fig. 4 illustrates the connection by a bus as an example.
The memory 302 is a non-volatile computer-readable storage medium, and can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the method for controlling the server to power on based on power installation. The processor 301 executes various functional applications and data processing of the server by running the nonvolatile software program, instructions and modules stored in the memory 302, that is, implements the method for controlling the power-on of the server based on the power installation stroke of the above-described method embodiment.
The memory 302 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of a power-supply-installation-stroke-based control server power-on method, and the like. Further, the memory 302 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 302 optionally includes memory located remotely from processor 301, which may be connected to a local module via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 303 may receive information such as a user name and a password that are input. The output means 304 may comprise a display device such as a display screen.
Program instructions/modules corresponding to one or more methods for powering on a power installation trip control server are stored in the memory 302 and, when executed by the processor 301, perform the method for powering on a power installation trip control server in any of the above-described method embodiments.
Any embodiment of the computer device executing the method for controlling the power-on of the server based on the power installation stroke can achieve the same or similar effects as any corresponding embodiment of the method.
The invention also provides a computer readable storage medium storing a computer program which, when executed by a processor, performs the method as above.
Finally, it should be noted that, as one of ordinary skill in the art can appreciate that all or part of the processes of the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the program of the method for controlling power on of the server based on the power installation stroke can be stored in a computer readable storage medium, and when executed, the program can include the processes of the embodiments of the methods described above. The storage medium of the program may be a magnetic disk, an optical disk, a read-only memory (ROM), or a Random Access Memory (RAM). The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A method for controlling the power-on of a server based on the installation of a power supply is characterized by comprising the following steps:
configuring a first state and a second state of a stroke detection switch of a server power supply to correspond to a first level signal and a second level signal, respectively;
determining whether the stroke detection switch is transitioned from the first state to the second state in response to a transition of a stroke detection button in the stroke detection switch from a first position corresponding to the first state to a second position corresponding to the second state;
in response to the travel detection switch transitioning from the first state to the second state, determining whether the detection signal transitions from a first level signal to a second level signal; and
and responding to the conversion of the detection signal from the first level signal to the second level signal, and powering on the server.
2. The method of claim 1, further comprising:
and in response to the travel detection switch not being converted from the first state to the second state, the detection signal is placed at a non-preset working potential to inhibit the server from being powered on.
3. The method of claim 1, further comprising:
and responding to the completion of the power-on of the server, and continuously detecting whether a detection signal of a non-preset working potential is generated.
4. The method of claim 3, further comprising:
and responding to the generation of a detection signal of a non-preset working potential, and turning on a standby power supply and turning off the power supply of the server.
5. The method of claim 1, further comprising:
in response to a transition of a stroke detection button in the stroke detection switch from a second position corresponding to the second state to a first position corresponding to the first state, it is determined whether the stroke detection switch transitions from the second state to the first state.
6. The method of claim 5, further comprising:
in response to the stroke detection switch transitioning from the second state to the first state, it is determined whether the detection signal transitions from the second level signal to the first level signal.
7. The method of claim 6, further comprising:
powering down the server in response to the detection signal being converted from the second level signal to the first level signal.
8. A system for controlling power-on and power-off of a server based on power installation travel, comprising:
the server power supply control device comprises a setting module, a first level signal generation module and a second level signal generation module, wherein the setting module is used for respectively configuring a first state and a second state of a travel detection switch of a server power supply to correspond to a first level signal and a second level signal;
a first detection module configured to determine whether a stroke detection switch transitions from a first state to a second state in response to a stroke detection button in the stroke detection switch transitioning from a first position corresponding to the first state to a second position corresponding to the second state;
a second detection module configured to determine whether the detection signal is converted from the first level signal to the second level signal in response to the stroke detection switch being converted from the first state to the second state; and
and the power-on module is used for responding to the conversion of the detection signal from the first level signal to the second level signal and powering on the server.
9. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method of any one of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202010676478.1A 2020-07-14 2020-07-14 Method, device and medium for controlling server power-on based on power supply installation stroke Active CN111857314B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010676478.1A CN111857314B (en) 2020-07-14 2020-07-14 Method, device and medium for controlling server power-on based on power supply installation stroke

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010676478.1A CN111857314B (en) 2020-07-14 2020-07-14 Method, device and medium for controlling server power-on based on power supply installation stroke

Publications (2)

Publication Number Publication Date
CN111857314A CN111857314A (en) 2020-10-30
CN111857314B true CN111857314B (en) 2022-06-14

Family

ID=72984155

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010676478.1A Active CN111857314B (en) 2020-07-14 2020-07-14 Method, device and medium for controlling server power-on based on power supply installation stroke

Country Status (1)

Country Link
CN (1) CN111857314B (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110032264A (en) * 2019-04-16 2019-07-19 苏州浪潮智能科技有限公司 A kind of progress control method of server, equipment and storage medium
CN111090319B (en) * 2019-11-21 2021-07-30 苏州浪潮智能科技有限公司 Method, device and medium for controlling server fan based on thermistor
CN111352497A (en) * 2020-02-29 2020-06-30 苏州浪潮智能科技有限公司 Power consumption limiting method, system, equipment and medium for server

Also Published As

Publication number Publication date
CN111857314A (en) 2020-10-30

Similar Documents

Publication Publication Date Title
CN101576764B (en) CMOS data clear circuit
EP3287905B1 (en) Circuit, method and apparatus for usb interface sharing
CN110739661B (en) Overcurrent protection device and board card
CN110649694A (en) NCSI network card power supply system
CN108933627B (en) Optical module and optical network system
US10741112B2 (en) Display apparatus and protection circuit thereof
CN209028159U (en) Battery access state detection circuit and connector
CN110008069B (en) Power supply switching control circuit and control method
CN111857314B (en) Method, device and medium for controlling server power-on based on power supply installation stroke
CN110958000A (en) Medical equipment mainboard burn-proof protection circuit and working method thereof
US20230352257A1 (en) Relay protective device, construction machine, relay protection control method and apparatus
CN211653795U (en) Tamper pin extension circuit and POS machine
CN113156244B (en) Method and device for testing charging device, electronic device and storage medium
CN205427710U (en) Start circuit, motherboard and computer of motherboard
CN212410835U (en) Detection circuit of alternating current input line and socket with detection circuit
CN112731134A (en) Digital quantity input state self-checking circuit, method, device and readable storage medium
JP2017203727A (en) Short circuit detection circuit
CN109871111B (en) Display and electronic device using same
CN112017579B (en) Display device and driving system thereof
CN114624524A (en) Charging detection method, device and equipment
CN111812553A (en) Detection circuit of alternating current input line and socket with detection circuit
CN217181045U (en) Power supply circuit, mainboard and electronic equipment
CN210053201U (en) Low-cost control output overcurrent automatic protection circuit structure based on single chip microcomputer
CN211630398U (en) Network security device
CN216979719U (en) USB power supply switching circuit and USB power supply device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant