CN112416439B - Remote restarting system of server and control method thereof - Google Patents

Remote restarting system of server and control method thereof Download PDF

Info

Publication number
CN112416439B
CN112416439B CN201910770618.9A CN201910770618A CN112416439B CN 112416439 B CN112416439 B CN 112416439B CN 201910770618 A CN201910770618 A CN 201910770618A CN 112416439 B CN112416439 B CN 112416439B
Authority
CN
China
Prior art keywords
server
restarting
connecting rod
address
main control
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
CN201910770618.9A
Other languages
Chinese (zh)
Other versions
CN112416439A (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.)
Guangzhou Hongdu Information Technology Co ltd
Original Assignee
Guangzhou Hongdu Information 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 Guangzhou Hongdu Information Technology Co ltd filed Critical Guangzhou Hongdu Information Technology Co ltd
Priority to CN201910770618.9A priority Critical patent/CN112416439B/en
Publication of CN112416439A publication Critical patent/CN112416439A/en
Application granted granted Critical
Publication of CN112416439B publication Critical patent/CN112416439B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4416Network booting; Remote initial program loading [RIPL]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications

Abstract

The invention discloses a remote restarting system of a server and a control method thereof, wherein the system comprises a server restarting device which is used for triggering a restarting button of the server; the client is used for sending a restarting instruction; the main control module is used for receiving a restarting instruction sent by the client and controlling the restarting device of the server to execute restarting operation according to the restarting instruction; the server restarting device comprises an end seat and an automatic key device, the automatic key device is installed on the end seat, the end seat is used for fixing the server restarting device, the automatic key device comprises a motor, a control circuit and a connecting rod assembly, the control circuit controls the motor to drive the connecting rod assembly to reciprocate along a straight line, an actuator used for pressing keys is arranged on the connecting rod assembly, and the control circuit is communicated with a main control module. The invention can be installed in an external mode, does not need to disassemble and modify the existing server, is more convenient to modify and has higher reliability, and can be widely applied to the field of external auxiliary equipment of computers.

Description

Remote restarting system of server and control method thereof
Technical Field
The invention relates to the field of external auxiliary equipment of computers, in particular to a remote restarting system of a server and a control method thereof.
Background
Servers are often centrally located in a server room. When some specific situations need to restart the server, for example, when the server program crashes and the self-restart cannot be implemented, an operator is usually required to go to a machine room to find the server which is wrong and needs to be restarted, and the server is restarted manually, so that the server is easy to restart wrong due to unclassified server which is restarted, and the efficiency is quite low. To solve this problem, it has been proposed to restart the server remotely by a command, however, when the network where the server is located is unstable or the server itself is in a state of being blocked or dead, such an operation still cannot be performed smoothly, and manual restarting from the operator to the machine room is still required, so that the scheme is not practical.
Based on this, it has been proposed to provide additional circuitry on the power supply of the server to perform a cold restart by controlling the power supply of the server. However, this solution requires disassembly and modification for existing servers (including desktop servers and blade servers, etc.), is cumbersome and is prone to unexpected adverse consequences.
Disclosure of Invention
In order to solve the technical problems, the invention aims to: a remote restarting system of a server and a control method thereof are provided, so that the existing server can be modified with high reliability, and remote restarting can be realized.
A first aspect of an embodiment of the present invention provides:
a remote restart system for a server, comprising:
the server restarting devices are used for triggering restarting keys of the server;
the client is used for sending a restarting instruction;
the main control module is used for receiving a restarting instruction sent by the client and controlling the restarting device of the server to execute restarting operation according to the restarting instruction;
the server restarting device comprises an end seat and an automatic key device, wherein the automatic key device is arranged on the end seat, the end seat is used for fixing the server restarting device, the automatic key device comprises a motor, a control circuit and a connecting rod assembly, the control circuit controls the motor to drive the connecting rod assembly to reciprocate along a straight line, an actuator for pressing keys is arranged on the connecting rod assembly, and the control circuit is communicated with a main control module.
Further, the automatic key device comprises a sine mechanism, the sine mechanism comprises a rotary table and a driving rod, the motor is connected with the end face of the rotary table, one end of the driving rod is connected with a connecting rod assembly, and the motor drives the connecting rod assembly to reciprocate along a straight line through the sine mechanism.
Further, the connecting rod assembly comprises a first connecting rod and a second connecting rod, the head end of the first connecting rod is hinged to the driving rod, an elastic piece is further arranged between the first connecting rod and the driving rod, the head end of the second connecting rod is vertically connected with the tail end of the first connecting rod, and the actuator is located on the second connecting rod.
Further, the main control module comprises a first Bluetooth module, the control circuit comprises a second Bluetooth module, and the first Bluetooth module is communicated with the second Bluetooth module.
Further, the client comprises a WEB interface, and the WEB interface comprises a plurality of operation components which are in one-to-one correspondence with the server restarting devices.
Further, the second bluetooth module alternately performs sleep and address broadcasting according to a set period before communication with the first bluetooth module is not established.
Further, the elastic piece comprises a first positioning nail and a second positioning nail, wherein the first positioning nail and the second positioning nail are respectively fixed on the first connecting rod, and the first positioning nail is connected with the second positioning nail through a tension spring.
Further, the actuator is detachably fixed to the second link.
Further, the motor, the control circuit and the sine mechanism are all installed in the shell, the sine mechanism is fixed on the bottom plate, and one end of the driving rod connected with the connecting rod assembly extends out from one side of the shell.
Further, a side opening is formed in the other side of the shell, and a detachable rear cover is arranged on the side opening.
A second aspect of an embodiment of the invention provides:
a control method of a remote restarting system of a server is used for a main control module and comprises the following steps:
receiving a restarting instruction of a client;
resolving the restart instruction to determine the address of the target server restart device;
establishing connection with a target server restarting device according to the address of the target server restarting device;
and sending a control signal to control the target server restarting device to execute restarting operation.
Further, the establishing connection with the target server restarting device according to the address of the target server restarting device specifically includes:
and scanning the Bluetooth slave, judging whether the Bluetooth slave which is the same as the address of the target server restarting device is scanned within a first set time, if so, establishing connection with the Bluetooth slave which is the same as the address of the target server restarting device, and if not, not executing the restarting instruction.
A third aspect of embodiments of the present invention provides:
a control method of a remote restarting system of a server is used for a server restarting device and comprises the following steps:
reading the address of the restarting device of the server;
alternately dormancy and broadcasting the address of the restarting device of the server according to the set period;
receiving a connection request sent by a main control module during the period of broadcasting the address of the restarting device of the server;
after establishing connection with the main control module according to the connection request, receiving a control signal sent by the main control module;
and executing restarting operation according to the received control signal.
Further, the method also comprises the following steps:
and in a second set time after connection is established with the main control module according to the connection request, the control signal is not received, the server restarting device enters into dormancy, and the dormancy and the broadcasting of the address of the server restarting device are alternately carried out according to a set period.
The beneficial effects of the invention are as follows: the server restarting device capable of being controlled remotely is additionally arranged, the server restarting device can be arranged outside the server, the server restarting device is controlled by the main control module, and the main control module can control the server restarting device to trigger the power button of the server in a mechanical mode according to the restarting instruction sent by the client.
Drawings
FIG. 1 is a block diagram of a remote restart system for a server according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an overall structure of a server restarting device according to an embodiment of the present invention;
FIG. 3 is an exploded view of a server restarting device according to an embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating an installation of a server restarting device according to an embodiment of the present invention;
FIG. 5 is an enlarged view of a portion of FIG. 4;
FIG. 6 is a flowchart of a control method for a remote server restart system of a master control module according to an embodiment of the present invention;
FIG. 7 is a flowchart of a control method of a server remote restart system for a server restart device according to an embodiment of the present invention;
FIG. 8 is another flowchart of a control method for a remote server restart system of a master control module according to an embodiment of the present invention;
FIG. 9 is another flowchart of a control method of a server remote restart system for a server restart device according to an embodiment of the present invention.
Detailed Description
The invention will be further described with reference to the drawings and specific examples.
Referring to fig. 1, the present embodiment discloses a remote restart system of a server, which includes:
the server restarting devices are used for triggering restarting keys of the server;
the client is used for sending a restarting instruction; the client can be APP, WEB application and the like running on a mobile phone and a computer.
The main control module is used for receiving a restarting instruction sent by the client and controlling the restarting device of the server to execute restarting operation according to the restarting instruction;
referring to fig. 2 and 3, the server restarting device includes an end base 14 and an automatic key device, the automatic key device is installed on the end base 14, the end base 14 is used for fixing the server restarting device, specifically, the server restarting device is fixed on a wall, a server or a rack of the server, and the fixing modes include modes of setting a clamp on the end base or setting a magnet on the end base through glue, screws, buckles, and the like.
The automatic key device comprises a motor 1, a control circuit 2 and a connecting rod assembly, wherein the control circuit 2 controls the motor 1 to drive the connecting rod assembly to reciprocate along a straight line, and an actuator 3 for key pressing is arranged on the connecting rod assembly.
The control circuit is communicated with the main control module, and particularly can be communicated in a wired or wireless mode, wherein the wired mode comprises a network cable, a USB (universal serial bus) cable, a 232/485 serial port cable, a common electric wire or the like; the wireless mode comprises Bluetooth, zigbee, NB-IOT, infrared, 2/3/4G and the like. Of course, the control circuit and the main control module are respectively provided with a related module or circuit for communication. Taking the control circuit and the main control module as an example through network cable communication, the control circuit and the main control module are both provided with RJ45 network ports and encoding and driving circuits thereof. Taking the control circuit and the main control module as an example through 2G communication, the control circuit and the main control module are both provided with GSM communication modules.
The motor 1 drives the connecting rod assembly to reciprocate along a straight line through a sine mechanism, the sine mechanism comprises a rotary table 4 and a driving rod 5, the motor 1 is connected with the end face of the rotary table 4, and one end of the driving rod 5 is connected with the connecting rod assembly. The control circuit 2 starts the motor 1, the motor 1 drives the turntable 4 to rotate, and a bulge is arranged at the non-center position of the bottom surface of the turntable 4 and is inserted into a strip-shaped groove in the driving rod 5, so that the driving rod 5 can reciprocate along a straight line along with the rotation of the turntable 4. The driving rod 5 drives the link assembly to move, so that the actuator 3 on the link assembly moves and can press the key.
As an alternative embodiment of the sine mechanism, a rack driven by a motor may be provided, one end of the rack is connected to the link assembly, and then the link assembly is driven to reciprocate along a straight line by controlling the forward and reverse rotation of the motor.
In this embodiment, the client is a WEB application, and is carried by a WEB server, and the user may access the WEB server through a browser, so that the remote control server restarting device performs a restarting operation. Specifically, a user logs in through a WEB client, then selects a server needing restarting, and triggers a restarting instruction. In this embodiment, at least one main control module is configured in each machine room, and each main control module controls at least one server restarting device. Therefore, when the restarting instruction is generated, the WEB server inquires the communication address of the main control module for controlling the restarting device of the server according to the server which is restarted by the user. The restarting instruction is firstly sent to the main control module, after the restarting instruction is received by the main control module, the main control module analyzes the control instruction to obtain the communication address of the main control module for controlling the server restarting device, so that the server restarting device which is required to be controlled by a user, namely the target server restarting device, is determined. And then the main control module sends control to the target server restarting device to enable the target server restarting device to execute restarting operation, namely, a restarting button of the server needing restarting is pressed down through the connecting rod assembly.
Specifically, the main control module includes a first communication unit, a second communication unit, and a processor in this embodiment, where the first communication unit of the main control module may be a network module, a wireless module, or a 4G module with an RJ45 interface, and the first communication unit is used to communicate with a client, that is, communicate with a WEB server that carries a WEB client. The second communication unit is used for communicating with the main control module.
The control circuit specifically comprises a communication unit for communicating with the main control module, a processor and a motor driving circuit for driving the motor to rotate, wherein the motor driving circuit can drive the motor to rotate in at least one direction. The processor of the control circuit receives the control signal through the communication unit, and then the processor controls the motor driving circuit to drive the motor according to the control signal.
The workflow of the server restarting device is as follows: after the control circuit 2 receives the control signal, the motor 1 is started, the motor 1 drives the connecting rod assembly to approach to the restarting button direction of the server, the executor 3 presses the restarting button, and at the moment, the motor 1 is suspended for 4s to finish the shutdown operation of the server. Then, the motor 1 is restarted to move the actuator 3 on the link assembly in a direction away from the restart key, and when the actuator 3 is moved to the farthest position from the restart key, the motor 1 is suspended for 30s as an interval time of restarting. Finally, the motor 1 is started again, the actuator 3 moves towards the direction of the restarting button and presses the restarting button again, the button time is 1s, then the motor 1 drives the actuator 3 to stop at the farthest end from the restarting button, and the restarting of the server is completed.
The server restarting device that can remote control has been add to this embodiment, and this server restarting device can be external in the server, server restarting device is controlled by main control module, and main control module can control the power button of server through the mode triggering server according to the restarting instruction that the customer end sent, and this embodiment need not to tear open the machine to the power of server and reforms transform, and the reliability is high and the installation of being convenient for.
The following describes a preferred embodiment of the server restarting device:
as shown in fig. 2 and 3, as a preferred embodiment, the link assembly includes a first link 6 and a second link 7, the first link 6 has a head end hinged to the driving rod 5, an elastic member is further disposed between the first link 6 and the driving rod 5, the head end of the second link 7 is vertically connected to the end of the first link 6, and the actuator 3 is located on the second link 7. The elastic member comprises a first positioning nail 8 and a second positioning nail 9, wherein the first positioning nail 8 and the second positioning nail 9 are respectively fixed on the first connecting rod 6 and the first positioning nail 8 is connected with the second positioning nail 9 through a tension spring 10. The tension spring 10 plays a buffering role after the actuator 3 presses the key, so that the key is prevented from being damaged by excessively pressing the key when the actuator 3 on the second connecting rod 7 moves towards the key direction, and the motor 1 is prevented from being locked.
As shown in fig. 2 and 3, as a preferred embodiment, the actuator 3 is detachably fixed on the second link 7, so that the installation position of the actuator 3 on the second link 7 can be appropriately adjusted according to the height position of the key, thereby better adapting to the keys on different devices. Preferably, the actuator 3 may be fixed to the second link 7 by screws or snaps.
As shown in fig. 2 and 3, the driving rod 5 further comprises a bottom plate 11 and a shell 12 with an opening at the bottom, the shell 12 is covered on the bottom plate 11, the motor 1, the control circuit 2 and the sine mechanism are all arranged in the shell 12, the sine mechanism is fixed on the bottom plate 11, and one end of the driving rod 5 connected with the connecting rod assembly extends out of one side of the shell 12. The housing 12 protects the motor 1, the control circuit 2 and the sinusoidal mechanism. The other side of the housing 12 is provided with a side opening on which a detachable rear cover 13 is provided. The battery can be installed on the control circuit 2, an operator can overhaul or replace the control circuit and the battery thereof only by detaching the rear cover 13, the whole shell 12 does not need to be opened, and the maintenance is convenient and quick.
Referring to fig. 3, 4 and 5, as a preferred embodiment, the automatic key device is fixed to the end base 14, and the actuator 3 is located opposite to the restart key 17 of the server. The end seat 14 is provided with a magnetic part 15, and the magnetic part 15 is adsorbed on the server. The end seat 14 is adjusted to a proper position, and the magnetic piece 15 is adsorbed on the surface of the server, so that the relative position of the fixed end seat 14 and the server is quickly realized. And then the fixed position of the actuator 3 on the second connecting rod 7 is adjusted and fixed according to the height position of the restarting button of the server.
Further, as a preferred embodiment, the main control module includes a first bluetooth module, and the control circuit includes a second bluetooth module, and the first bluetooth module and the second bluetooth module communicate.
Specifically, the main control module and the server restarting device communicate in a Bluetooth mode. In this embodiment, the first bluetooth module set by the master control module is initialized as a master, and the second bluetooth module of the control circuit is initialized as a slave. When the first Bluetooth module and the second Bluetooth module are connected, the second Bluetooth module broadcasts an address, the first Bluetooth module confirms which of the nearby server restarting devices exist by scanning the address broadcast by the second Bluetooth module, and determines which second Bluetooth module is connected according to the restarting instruction of the client.
In a preferred embodiment, the client includes a WEB interface, where the WEB interface includes a plurality of operation components corresponding to the server restarting devices one by one.
Specifically, the operation component is composed of UI components such as pictures, characters, buttons or option bars. Wherein each operating component corresponds to a server restarting device, and in the WEB server, each operating component of the server restarting device corresponds to a data packet of the server restarting device in the database, where the data packet includes an identification ID, location information, a communication address (such as MAC, IP address) and the like of the server restarting device.
As a preferred embodiment, the second bluetooth module alternately performs sleep and address broadcasting according to a set period before communication with the first bluetooth module is not established.
In this embodiment, the address refers to the physical address of the bluetooth module, i.e. the MAC address, but it goes without saying that other serial numbers that can be used as identification of the bluetooth module can also be used as the address described in this embodiment. The set period may be 1 second sleep and then 1 second address broadcast. Of course, the period size may be set according to actual needs, and the duration of sleep and address broadcast may be different, for example, each sleep for 1 second and broadcast for 0.5 seconds. Of course, the control logic of the master control module, such as the scan period and the waiting time of the master control module, needs to be considered when setting the period, so as to avoid that the master control module does not receive the address broadcasted by the server restarting device in the scan period or the waiting time. The main purpose of this embodiment is to reduce the power consumption of the server restarting device, so that the server restarting device can use the battery to supply power, and complete wireless implementation is achieved.
Referring to fig. 6, the present embodiment discloses a control method of a remote restart system of a server, where the method of the present embodiment is applied to a main control module, and the present embodiment includes steps S601 to S604:
s601, receiving a restarting instruction of the client.
In the foregoing embodiment, the client is a WEB application, and is carried by the WEB server, and after the client sends a restart instruction, the main control module receives the restart instruction, where the restart instruction includes an address of the target server restart device stored in a database of the WEB server. The receiving mode may be through the internet.
S602, analyzing the restarting instruction to determine the address of the restarting device of the target server.
In this step, the main control module analyzes the received restart instruction to obtain the operation instruction itself and the address of the target server restart device. The analysis comprises links such as protocol decoding and error correction.
S603, establishing connection with the target server restarting device according to the address of the target server restarting device.
Specifically, this step discovers the target server restart device by scanning the address broadcast by the server restart device, and then sends a connection request to establish a connection with the target server restart device.
S604, a control signal is sent to control the target server restarting device to execute restarting operation.
After connection with the target server restarting device is established, namely after communication is established, the main control module sends a control signal to the target server restarting device according to the restarting instruction, wherein the control signal can be an encrypted signal, and the encrypted signal can only be decrypted by the target server restarting device, so that the server restarting device is ensured not to be controlled by other equipment. And the target server restarting device executes restarting operation according to the control signal, namely presses a restarting button of the target server, so that the target server performs restarting.
As a preferred embodiment, the establishing a connection with the target server restarting device according to the address of the target server restarting device specifically includes:
and scanning the Bluetooth slave, judging whether the Bluetooth slave which is the same as the address of the target server restarting device is scanned within a first set time, if so, establishing connection with the Bluetooth slave which is the same as the address of the target server restarting device, and if not, not executing the restarting instruction.
In this embodiment, the target server restarting device may fail for various reasons, and at this time, if the master control module is scanning the failed target server restarting device all the time, other restarting instructions may not be executed, thereby causing the entire remote restarting system to fail. Thus, in order to solve this problem, the present embodiment sets the scan time of the target server restart apparatus, and once the target server restart apparatus is not scanned beyond this time, gives up the task, then executes other restart instructions, or returns to wait for receiving other restart instructions.
Referring to fig. 7, the present embodiment discloses a control method of a remote restart system of a server, which is used for a server restart device, and the present embodiment includes steps S701 to S705:
s701, reading the address of the restarting device of the server.
In this embodiment, the server restarting device further includes a memory, where the memory stores an address of the server restarting device, and the register may be a separate memory or a memory built in the processor. Specifically, in this embodiment, the address is a physical address of bluetooth.
S702, alternately dormancy and broadcasting the address of the restarting device of the server according to the set period.
In this embodiment, the server restarting device is powered by a battery, so in order to save power, the server restarting device alternately performs sleep and address broadcasting according to a set period, where sleep refers to that a main power consumption device of the server restarting device enters a sleep state, and in this embodiment, specifically, a bluetooth module and/or a processor enters sleep.
S703, receiving a connection request sent by the main control module during broadcasting the address of the restarting device of the server.
In this step, if the address broadcasted by the server restarting device is found by the main control module, and the main control module needs the server restarting device to perform the restarting operation, the main control module will send a connection request, and after receiving the connection request, the server restarting device will answer, thereby establishing the communication connection.
S704, after connection is established with the main control module according to the connection request, a control signal sent by the main control module is received.
In this step, the main control module sends a control signal to make the server restart device execute a restart operation after establishing a connection. Here, the control signal may be lost, cannot be received correctly, or is cancelled from being sent, so, in order to avoid the server restarting device waiting indefinitely, power consumption may be set for the server restarting device to set a waiting time, and once the waiting time is overtime and the control signal sent by the main control module is not received correctly, the waiting is abandoned, and the period of alternate dormancy is re-entered.
S705, according to the received control signal, performing a restart operation.
Specifically, referring to fig. 2 and 5, after the control circuit 2 receives the control signal, the motor 1 is started, the motor 1 drives the link assembly to approach the direction of the restart key 17 of the server, and the actuator 3 presses the restart key 17, at this time, the motor 1 is suspended for 4s to complete the shutdown operation of the server. Then, the motor 1 is restarted to move the actuator 3 on the link assembly in a direction away from the restart key 17, and when the actuator 3 is moved to the farthest position from the restart key 17, the motor 1 is suspended for 30s as an interval time of restarting. Finally, the motor 1 is started again, the actuator 3 moves towards the direction of the restarting button 17, the restarting button 17 is pressed again, the button time is 1s, then the motor 1 drives the actuator 3 to stop at the farthest end from the restarting button 17, and the restarting of the server is completed.
As a preferred embodiment, the method further comprises the steps of:
and in a second set time after connection is established with the main control module according to the connection request, the control signal is not received, the server restarting device enters into dormancy, and the dormancy and the broadcasting of the address of the server restarting device are alternately carried out according to a set period.
In this embodiment, a waiting time is set for the server restarting device to receive the control signal. The main purpose is to avoid that the server restarting means is waiting all the time, thus consuming power.
With reference to fig. 8 and 9, the overall control method of the server remote restart system is described in this embodiment. Specifically, the embodiment explains the control flow of the client and the main control module and the control flow of the server restarting device.
As shown in fig. 8, the control flow of the client and the main control module in this embodiment includes steps S801 to S809.
S801, creating a server number and restarting device Bluetooth address mapping relation database; the database may be accessed by a WEB server.
S802, initializing a WEB server; including configuring software and hardware resources, access rights, etc.
S803, initializing a main control module as a Bluetooth host.
S804, the WEB server receives the instruction through a WEB interface of the client; if a command is received, including the number of the target server, step S805 is performed, and if not, reception is waited for all the time.
S805, the WEB server queries the database to find the Bluetooth address of the server restarting device corresponding to the serial number of the server. I.e. the target server restarts the bluetooth address of the device.
S806, after obtaining the Bluetooth address of the target server restarting device, the main control module judges whether the target server restarting device is scanned within a set time. Specifically, it scans whether there is a bluetooth slave identical to the bluetooth address. If so, step S807 is performed; if not, return to step S804.
S807, the main control module sends a connection establishment request to the Bluetooth slave, namely the target server restarting device.
S808, judging whether the response of establishing connection is accepted by the target server restarting device or not in the set time. If the target server restarting means responds within the set time, step S809 is performed, whereas step S804 is performed.
S809, sending a restarting instruction to a target server restarting device.
Meanwhile, in the server restarting device, a method as shown in fig. 9 is performed, which includes steps S901 to S908.
And S901, writing a Bluetooth address of a server restarting device corresponding to the server number in a memory in advance. This may be configured manually when the server restart device is deployed.
S902, the server restarting device reads the Bluetooth address from the memory, and initializes the Bluetooth module as a Bluetooth slave.
S903, the server restarts the device to broadcast the Bluetooth address of the device at intervals 1S, so that the Bluetooth host can find the Bluetooth address.
S904, judging whether the Bluetooth host, namely the main control module, receives a request for establishing connection within a set time. If so, step S905 is performed. Otherwise, step S906 is performed.
S905, transmitting response information for establishing a connection.
S906, entering into a sleep state, and returning to the step S903.
S907, judging whether an instruction for restarting the server sent by the main control module is received within a set time, if yes, executing step S908; otherwise, step S903 is performed.
S908, driving a motor to drive a connecting rod and pressing a restarting button of the server.
The step numbers in the above method embodiments are set for convenience of illustration, and the order of steps is not limited in any way, and the execution order of the steps in the embodiments may be adaptively adjusted according to the understanding of those skilled in the art.
While the preferred embodiment of the present invention has been described in detail, the present invention is not limited to the embodiments described above, and various equivalent modifications and substitutions can be made by those skilled in the art without departing from the spirit of the present invention, and these equivalent modifications and substitutions are intended to be included in the scope of the present invention as defined in the appended claims.

Claims (6)

1. A remote restart system for a server, characterized by: comprising the following steps:
the server restarting devices are used for triggering restarting keys of the server;
the client is used for sending a restarting instruction;
the main control module is used for receiving a restarting instruction sent by the client and controlling the restarting device of the server to execute restarting operation according to the restarting instruction;
the server restarting device comprises an end seat and an automatic key device, wherein the automatic key device is arranged on the end seat, the end seat is used for fixing the server restarting device, the automatic key device comprises a motor, a control circuit and a connecting rod assembly, the control circuit controls the motor to drive the connecting rod assembly to reciprocate along a straight line, an actuator for key pressing is arranged on the connecting rod assembly, the control circuit is communicated with a main control module, the automatic key device comprises a sine mechanism, the sine mechanism comprises a turntable and a driving rod, the motor is connected with the end face of the turntable, one end of the driving rod is connected with the connecting rod assembly, the motor drives the connecting rod assembly to reciprocate along the straight line through the sine mechanism, the connecting rod assembly comprises a first connecting rod and a second connecting rod, the head end of the first connecting rod is hinged with the driving rod, an elastic piece is further arranged between the first connecting rod and the driving rod, the head end of the second connecting rod is vertically connected with the tail end of the first connecting rod, and the actuator is positioned on the second connecting rod;
the main control module comprises a first Bluetooth module, the control circuit comprises a second Bluetooth module, the first Bluetooth module and the second Bluetooth module are communicated, and the second Bluetooth module alternately performs dormancy and address broadcasting according to a set period before communication is established with the first Bluetooth module.
2. A remote restart system for a server according to claim 1, wherein: the client comprises a WEB interface, wherein the WEB interface comprises a plurality of operation components which are in one-to-one correspondence with the server restarting devices.
3. A control method of a remote restarting system of a server according to any one of claims 1-2, for a main control module, characterized in that: the method comprises the following steps:
receiving a restarting instruction of a client;
resolving the restart instruction to determine the address of the target server restart device;
establishing connection with a target server restarting device according to the address of the target server restarting device;
and sending a control signal to control the target server restarting device to execute restarting operation.
4. A control method of a remote restart system of a server according to claim 3, wherein: the establishing connection with the target server restarting device according to the address of the target server restarting device specifically comprises:
and scanning the Bluetooth slave, judging whether the Bluetooth slave which is the same as the address of the target server restarting device is scanned within a first set time, if so, establishing connection with the Bluetooth slave which is the same as the address of the target server restarting device, and if not, not executing the restarting instruction.
5. A control method of a remote restart system of a server according to any one of claims 1 to 2, for a server restart apparatus, characterized by: the method comprises the following steps:
reading the address of the restarting device of the server;
alternately dormancy and broadcasting the address of the restarting device of the server according to the set period;
receiving a connection request sent by a main control module during the period of broadcasting the address of the restarting device of the server;
after establishing connection with the main control module according to the connection request, receiving a control signal sent by the main control module;
and executing restarting operation according to the received control signal.
6. The control method of a remote restart system of a server according to claim 5, wherein: the method also comprises the following steps:
and in a second set time after connection is established with the main control module according to the connection request, the control signal is not received, the server restarting device enters into dormancy, and the dormancy and the broadcasting of the address of the server restarting device are alternately carried out according to a set period.
CN201910770618.9A 2019-08-20 2019-08-20 Remote restarting system of server and control method thereof Active CN112416439B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910770618.9A CN112416439B (en) 2019-08-20 2019-08-20 Remote restarting system of server and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910770618.9A CN112416439B (en) 2019-08-20 2019-08-20 Remote restarting system of server and control method thereof

Publications (2)

Publication Number Publication Date
CN112416439A CN112416439A (en) 2021-02-26
CN112416439B true CN112416439B (en) 2024-03-05

Family

ID=74780308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910770618.9A Active CN112416439B (en) 2019-08-20 2019-08-20 Remote restarting system of server and control method thereof

Country Status (1)

Country Link
CN (1) CN112416439B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116719391A (en) * 2023-05-09 2023-09-08 南京星河世纪信息技术有限公司 Big data information sharing system based on block chain

Citations (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101958939A (en) * 2010-10-15 2011-01-26 德讯科技股份有限公司 Automatic distribution method and system for multi-machine communication node equipment key address
CN102110029A (en) * 2009-12-25 2011-06-29 中国长城计算机深圳股份有限公司 System backup and restoration method
CN102354261A (en) * 2011-08-15 2012-02-15 广州爱亿信息科技有限公司 Remote control system for power supply switches of machine room servers
CN103248663A (en) * 2012-02-14 2013-08-14 鸿富锦精密工业(深圳)有限公司 Terminal equipment control circuit
CN104580475A (en) * 2015-01-13 2015-04-29 华为技术有限公司 Remote control method, terminal equipment, management server and remote control system
CN104671398A (en) * 2015-01-27 2015-06-03 宜兴市汇合环保设备有限公司 Sewage treatment device with biological rotating discs
CN105305481A (en) * 2014-07-29 2016-02-03 通用电气公司 System and method for controlling a power distribution network
CN105649903A (en) * 2014-11-29 2016-06-08 刘运武 Pressure type driving device
CN106230805A (en) * 2016-07-27 2016-12-14 厦门中控生物识别信息技术有限公司 A kind of data processing method, server and data handling system
CN106571972A (en) * 2015-10-10 2017-04-19 北京国双科技有限公司 Server monitoring method and device
CN106604269A (en) * 2016-11-30 2017-04-26 努比亚技术有限公司 Mobile terminal network communication method and system
CN106780068A (en) * 2016-12-23 2017-05-31 绥化学院 A kind of agriculture knowbot system and method based on wechat public platform
CN107054414A (en) * 2017-04-18 2017-08-18 卡斯柯信号有限公司 Remote reboot control method and device for Urban Rail Transit Signal equipment
CN107104449A (en) * 2017-04-07 2017-08-29 南京新联能源技术有限责任公司 Electronic type phase inversion is switched
CN107134996A (en) * 2017-04-27 2017-09-05 中山大学 A kind of digital lock-in amplifier of many reference models
CN107168841A (en) * 2017-05-25 2017-09-15 北京云测信息技术有限公司 The remote test method and device of a kind of mobile device
CN107300844A (en) * 2017-04-13 2017-10-27 上海市金山区青少年活动中心 Rouser and method
CN107436831A (en) * 2016-05-26 2017-12-05 北京京东尚科信息技术有限公司 Monitoring method and device for client server system
CN107590310A (en) * 2017-08-03 2018-01-16 东华大学 A kind of remote microcontroller virtual experimental system
CN107655627A (en) * 2017-11-09 2018-02-02 上海市计量测试技术研究院 A kind of sinusoidal pressure generating means
CN107942861A (en) * 2017-11-27 2018-04-20 上海上实龙创智慧能源科技股份有限公司 A kind of remote equipment management-control method
CN108628219A (en) * 2018-06-06 2018-10-09 湖州瑞云信息科技有限公司 A kind of Server remote control method and system
CN108697457A (en) * 2001-06-12 2018-10-23 伊西康有限责任公司 Modular battery power supply hand-held surgical instrument including elongated multilayer axis
CN108735531A (en) * 2018-06-26 2018-11-02 上海良信电器股份有限公司 A kind of automatic change-over with overlapping neutral function
CN109413821A (en) * 2018-10-26 2019-03-01 北京首航艾启威节能技术股份有限公司 Novel aviation obstruction light controller and control method
CN109461609A (en) * 2018-12-12 2019-03-12 扬州新菱电器有限公司 A kind of double power supply automatic transfer switch with zero curve overlapping conversion function
CN109552715A (en) * 2017-09-26 2019-04-02 湖北职业技术学院 A kind of multi-mode driving winding package platform transmission device
CN109952753A (en) * 2016-10-25 2019-06-28 苹果公司 For managing the user interface of the access to the voucher used in operation
CN110095714A (en) * 2019-04-04 2019-08-06 Oppo(重庆)智能科技有限公司 A kind of test equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8694589B2 (en) * 2005-03-31 2014-04-08 Google Inc. Methods and systems for saving draft electronic communications
US8959323B2 (en) * 2010-10-27 2015-02-17 International Business Machines Corporation Remote restarting client logical partition on a target virtual input/output server using hibernation data in a cluster aware data processing system
US9686232B2 (en) * 2012-06-25 2017-06-20 Connectify, Inc. Network address translating router for mobile networking
US10474694B2 (en) * 2015-02-25 2019-11-12 International Business Machines Corporation Zero-data loss recovery for active-active sites configurations
US20170170979A1 (en) * 2015-12-15 2017-06-15 Pentair Flow Technologies, Llc Systems and Methods for Wireless Control and Monitoring of Residential Devices
US10872046B2 (en) * 2017-06-04 2020-12-22 Lenovo Enterprise Solutions (Singapore) Pte. Ltd Remote power cycling of computing device via network packet

Patent Citations (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108697457A (en) * 2001-06-12 2018-10-23 伊西康有限责任公司 Modular battery power supply hand-held surgical instrument including elongated multilayer axis
CN102110029A (en) * 2009-12-25 2011-06-29 中国长城计算机深圳股份有限公司 System backup and restoration method
CN101958939A (en) * 2010-10-15 2011-01-26 德讯科技股份有限公司 Automatic distribution method and system for multi-machine communication node equipment key address
CN102354261A (en) * 2011-08-15 2012-02-15 广州爱亿信息科技有限公司 Remote control system for power supply switches of machine room servers
CN103248663A (en) * 2012-02-14 2013-08-14 鸿富锦精密工业(深圳)有限公司 Terminal equipment control circuit
CN108183807A (en) * 2012-02-14 2018-06-19 安溪县景宏技术咨询有限公司 The tele-control system of server
CN105305481A (en) * 2014-07-29 2016-02-03 通用电气公司 System and method for controlling a power distribution network
CN105649903A (en) * 2014-11-29 2016-06-08 刘运武 Pressure type driving device
CN104580475A (en) * 2015-01-13 2015-04-29 华为技术有限公司 Remote control method, terminal equipment, management server and remote control system
CN104671398A (en) * 2015-01-27 2015-06-03 宜兴市汇合环保设备有限公司 Sewage treatment device with biological rotating discs
CN106571972A (en) * 2015-10-10 2017-04-19 北京国双科技有限公司 Server monitoring method and device
CN107436831A (en) * 2016-05-26 2017-12-05 北京京东尚科信息技术有限公司 Monitoring method and device for client server system
CN106230805A (en) * 2016-07-27 2016-12-14 厦门中控生物识别信息技术有限公司 A kind of data processing method, server and data handling system
CN109952753A (en) * 2016-10-25 2019-06-28 苹果公司 For managing the user interface of the access to the voucher used in operation
CN106604269A (en) * 2016-11-30 2017-04-26 努比亚技术有限公司 Mobile terminal network communication method and system
CN106780068A (en) * 2016-12-23 2017-05-31 绥化学院 A kind of agriculture knowbot system and method based on wechat public platform
CN107104449A (en) * 2017-04-07 2017-08-29 南京新联能源技术有限责任公司 Electronic type phase inversion is switched
CN107300844A (en) * 2017-04-13 2017-10-27 上海市金山区青少年活动中心 Rouser and method
CN107054414A (en) * 2017-04-18 2017-08-18 卡斯柯信号有限公司 Remote reboot control method and device for Urban Rail Transit Signal equipment
CN107134996A (en) * 2017-04-27 2017-09-05 中山大学 A kind of digital lock-in amplifier of many reference models
CN107168841A (en) * 2017-05-25 2017-09-15 北京云测信息技术有限公司 The remote test method and device of a kind of mobile device
CN107590310A (en) * 2017-08-03 2018-01-16 东华大学 A kind of remote microcontroller virtual experimental system
CN109552715A (en) * 2017-09-26 2019-04-02 湖北职业技术学院 A kind of multi-mode driving winding package platform transmission device
CN107655627A (en) * 2017-11-09 2018-02-02 上海市计量测试技术研究院 A kind of sinusoidal pressure generating means
CN107942861A (en) * 2017-11-27 2018-04-20 上海上实龙创智慧能源科技股份有限公司 A kind of remote equipment management-control method
CN108628219A (en) * 2018-06-06 2018-10-09 湖州瑞云信息科技有限公司 A kind of Server remote control method and system
CN108735531A (en) * 2018-06-26 2018-11-02 上海良信电器股份有限公司 A kind of automatic change-over with overlapping neutral function
CN109413821A (en) * 2018-10-26 2019-03-01 北京首航艾启威节能技术股份有限公司 Novel aviation obstruction light controller and control method
CN109461609A (en) * 2018-12-12 2019-03-12 扬州新菱电器有限公司 A kind of double power supply automatic transfer switch with zero curve overlapping conversion function
CN110095714A (en) * 2019-04-04 2019-08-06 Oppo(重庆)智能科技有限公司 A kind of test equipment

Also Published As

Publication number Publication date
CN112416439A (en) 2021-02-26

Similar Documents

Publication Publication Date Title
EP3193518B1 (en) Wireless communication terminal, wireless communication system, and wireless communication program
TWI361579B (en) Communication apparatus and network search method thereof
US20080168127A1 (en) System and Method For Scheduling Device Management
US20090064195A1 (en) Method for synchronizing information of dual operating systems
CN107025083A (en) The control method of information processor and its control method and communication system
JP6115159B2 (en) Image forming apparatus and log management system
CN109587005B (en) Connection detection method and device, computer equipment and readable storage medium
WO2014067256A1 (en) Remote control method, intelligent terminal and intelligent remote control system
JP5704904B2 (en) DATA PROCESSING DEVICE, DATA PROCESSING DEVICE CONTROL METHOD, AND PROGRAM
US9264460B2 (en) Method, apparatus, and system for executing a job in cooperation with a server
CN104053194A (en) Communication apparatus and control method thereof, and communication system
CN110012527B (en) Awakening method and electronic equipment
CN112416439B (en) Remote restarting system of server and control method thereof
CN109451354B (en) Terminal and method for awakening same
US7640445B2 (en) Power-saving control method for a network device
JP2019500164A (en) Washing machine and control method
JP2003044288A (en) Information processor, information processing system and program
JP2004326434A (en) Pc card and control method therefor
JP6479230B2 (en) Printing apparatus, printing apparatus control method, and program
JP2014127121A (en) Portable terminal, control method of portable terminal, and device control system
CN112882759A (en) Control method and device and electronic equipment
JP6297123B1 (en) Printing apparatus, printing apparatus control method, and program
CN212061141U (en) External control equipment and system outside frequency
JP2011070279A (en) Application server and method of controlling operation of the same
KR20020053991A (en) Appliance control system and method using dynamic software downloading

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