CN112416439A - 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
CN112416439A
CN112416439A CN201910770618.9A CN201910770618A CN112416439A CN 112416439 A CN112416439 A CN 112416439A CN 201910770618 A CN201910770618 A CN 201910770618A CN 112416439 A CN112416439 A CN 112416439A
Authority
CN
China
Prior art keywords
server
restarting
connecting rod
restart
address
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.)
Granted
Application number
CN201910770618.9A
Other languages
Chinese (zh)
Other versions
CN112416439B (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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention discloses a remote restarting system of a server and a control method thereof, wherein the system comprises a server restarting device, a remote restarting device and a remote restarting device, wherein the server restarting device is used for triggering a restarting key of the server; the client is used for sending a restart instruction; the main control module is used for receiving a restarting instruction sent by the client and controlling the server restarting device 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 move in a reciprocating mode along a straight line, an actuator used for pressing keys is arranged on the connecting rod assembly, and the control circuit is communicated with the main control module. The invention can be installed in an external mode, does not need to disassemble and transform the existing server, is more convenient to transform and higher in 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 a server needs to be restarted under certain conditions, for example, a server program crashes and self-restart cannot be implemented, an operator is usually required to go to a machine room to find a server which has an error and needs to be restarted, and the server is manually restarted, so that the server which needs to be restarted is easily restarted and has an error due to the fact that the server which needs to be restarted is not distinguished, and meanwhile, the efficiency is very low. In order to solve the problem, it is proposed to restart the server remotely by command, however, when the network where the server is located is unstable, or the server itself is in a stuck or dead state, such operation still cannot be performed smoothly, and an operator still needs to go to the machine room to restart the server manually, so that the solution is not practical.
In this regard, it has been proposed to provide additional circuitry on the power supply of the server to implement a cold restart by controlling the power supply of the server. However, this solution requires dismantling and modifying the existing servers (including desktop servers and blade servers, etc.), which is troublesome and prone to unexpected adverse consequences.
Disclosure of Invention
To solve the above technical problems, the present invention aims to: a remote restarting system of a server and a control method thereof are provided to facilitate high reliability modification of an existing server to achieve remote restarting.
A first aspect of an embodiment of the present invention provides:
a remote reboot system of a server, comprising:
the server restarting devices are used for triggering a restarting key of the server;
the client is used for sending a restart instruction;
the main control module is used for receiving a restarting instruction sent by the client and controlling the server restarting device 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 move linearly in a reciprocating mode, an actuator used for pressing keys is arranged on the connecting rod assembly, and the control circuit is communicated with the main control module.
Further, automatic button device includes sinusoidal mechanism, sinusoidal mechanism includes carousel and actuating lever, the motor is connected with the terminal surface of carousel, the one end and the link assembly of actuating lever are connected, the motor passes through sinusoidal mechanism drive link assembly is along straight reciprocating motion.
Furthermore, 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 part 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 correspond to the server restarting devices one to one.
Further, before the second bluetooth module does not establish communication with the first bluetooth module, the second bluetooth module alternately performs sleep and address broadcasting according to a set period.
Furthermore, the elastic component comprises a first positioning nail and a second positioning nail, wherein the first positioning nail is fixed on the first connecting rod, the second positioning nail is fixed on the driving 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, still include that bottom plate and bottom have the open-ended shell, the shell lid is established on the bottom plate, motor, control circuit and sinusoidal mechanism all install in the shell, sinusoidal mechanism fixes on the bottom plate, the one end of being connected with link assembly in the actuating lever stretches out from one side of shell.
Further, the opposite side of shell is equipped with the side opening, be equipped with detachable back lid on the side opening.
A second aspect of an embodiment of the present 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 restart instruction of a client;
resolving the restart instruction to determine an 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 a connection with the target server restart device according to the address of the target server restart device specifically includes:
and scanning the Bluetooth slave, and judging whether the Bluetooth slave with the same address as the target server restarting device is scanned within a first set time, if so, establishing connection with the Bluetooth slave with the same address as the target server restarting device, and if not, not executing the restarting command.
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 server restarting device;
the address of the server restarting device is alternatively dormant and broadcasted according to a set period;
receiving a connection request transmitted by a main control module during broadcasting an address of a server restart device;
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 the restarting operation according to the received control signal.
Further, the method also comprises the following steps:
and in a second set time after the connection with the main control module is established according to the connection request, the server restarting device enters the dormancy and alternately sleeps and broadcasts the address of the server restarting device according to a set period without receiving the control signal.
The invention has the beneficial effects that: the invention adds the server restarting device which can be remotely controlled, the server restarting device can be externally arranged on the server, the server restarting device is controlled by the main control module, 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 reboot system of a server according to an embodiment of the invention;
fig. 2 is a schematic diagram illustrating an overall structure of a server rebooting device according to an embodiment of the present invention;
FIG. 3 is an exploded view of a server reboot apparatus according to an embodiment of the invention;
FIG. 4 is a diagram illustrating an installation of a server reboot apparatus 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 server remote reboot system of a master control module according to an embodiment of the present invention;
FIG. 7 is a flowchart of a method for controlling a server remote reboot system used in a server reboot apparatus according to an embodiment of the present invention;
FIG. 8 is a flowchart illustrating a method for controlling a server remote reboot system of a host module according to an embodiment of the present invention;
fig. 9 is another flowchart of a control method for a server remote reboot system of a server reboot apparatus according to an embodiment of the present invention.
Detailed Description
The invention is further described with reference to the drawings and the specific examples.
Referring to fig. 1, the present embodiment discloses a remote reboot system of a server, including:
the server restarting devices are used for triggering a restarting key of the server;
the client is used for sending a restart 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 server restarting device to execute restarting operation according to the restarting instruction;
referring to fig. 2 and 3, the server restarting device includes an end seat 14 and an automatic key device, the automatic key device is installed on the end seat 14, the end seat 14 is used for fixing the server restarting device, specifically, on a wall, a server or a rack of the server, and the fixing mode includes a mode of setting a clamp on the end seat or setting a magnet on the end seat through glue, a screw, a buckle, etc.
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 linearly, and an actuator 3 for pressing keys is arranged on the connecting rod assembly.
The control circuit is communicated with the main control module, specifically, the control circuit can be communicated in a wired or wireless mode, and the wired mode comprises a network cable, a USB cable, an 232/485 serial port cable or a common electric wire and the like; the wireless modes comprise Bluetooth, zigbee, NB-IOT, infrared and 2/3/4G and the like. Of course, the control circuit and the main control module are both provided with related modules or circuits for communication. Taking the control circuit and the main control module communicating through the network cable as an example, the control circuit and the main control module are both provided with an RJ45 network port and a coding and driving circuit thereof. Taking the control circuit and the main control module to communicate through 2G as an example, the control circuit and the main control module are both provided with GSM communication modules.
Wherein, motor 1 drives link assembly along straight reciprocating motion through a sinusoidal mechanism, sinusoidal mechanism includes carousel 4 and actuating lever 5, and motor 1 is connected with the terminal surface of carousel 4, and the one end and the link assembly of actuating lever 5 are connected. Control circuit 2 starts motor 1, and motor 1 drive carousel 4 rotates, is equipped with the arch on the non-centre of a circle position of carousel 4 bottom surface, and this arch inserts in the bar groove in the actuating lever 5, consequently, along with the rotation of carousel 4, actuating lever 5 can be followed straight reciprocating motion. The driving rod 5 drives the connecting rod assembly to move, so that the actuator 3 on the connecting rod assembly moves and can press the key.
As an alternative embodiment of the sine mechanism, a rack driven by a motor can be arranged, one end of the rack is connected with the connecting rod assembly, and then the connecting rod assembly is driven to linearly reciprocate by controlling the motor to rotate forwards and backwards.
In this embodiment, the client is a WEB application and is borne by a WEB server, and a user can access the WEB server through a browser, so as to remotely control the server restart apparatus to execute a restart operation. Specifically, a user logs in through a WEB client, then selects a server needing to be restarted, and triggers a restart instruction. In this embodiment, each computer room is configured with at least one master control module, and each master control module controls at least one server restarting device. Therefore, when the restart instruction is generated, the WEB server queries the communication address of the main control module controlling the server restart device according to the server which needs to be restarted by the user. The restarting instruction is firstly sent to the main control module, and after the restarting instruction is received by the main control module, the main control module analyzes the control instruction to obtain a communication address of the main control module for controlling the server restarting device, so that the server restarting device which needs 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 key of the server needing restarting is pressed through the connecting rod assembly.
Specifically, the main control module in this embodiment includes a first communication unit, a second communication unit, and a processor, where the first communication unit of the main control module may be a network module with an RJ45 interface, a wireless module, or a 4G module, and the first communication unit is used for communicating with a client, that is, communicating with a WEB server bearing a WEB client. And the second communication unit is used for communicating with the main control module.
The control circuit specifically comprises a communication unit used for communicating with the main control module, a processor and a motor driving circuit used for driving the motor to rotate, and the motor driving circuit can drive the motor to rotate towards 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 key direction of the server, the actuator 3 presses the restarting key, and at the moment, the motor 1 is paused for 4s to complete the shutdown operation of the server. Then, the motor 1 is restarted, so that the actuator 3 on the connecting rod assembly moves in the direction far away from the restart key, and when the actuator 3 moves to the position farthest away from the restart key, the motor 1 is paused for 30s as the restart interval time. And finally, the motor 1 is started again, the actuator 3 moves towards the direction of the restart key and presses the restart key again, the key pressing time is 1s, then the motor 1 drives the actuator 3 to move to the farthest end away from the restart key for stagnation, and the server is restarted and completed.
The server restarting device capable of being remotely controlled is additionally arranged in the embodiment, the server restarting device can be externally arranged on a server, the server restarting device is controlled by the main control module, the main control module can control the server restarting device to trigger a power button of the server in a mechanical mode according to the restarting instruction sent by the client, the power button of the server does not need to be dismounted and transformed, and the server restarting device is high in reliability and convenient to install.
A preferred embodiment of the server restart apparatus is described below:
as shown in fig. 2 and 3, the link assembly includes a first link 6 and a second link 7, a head end of the first link 6 is hinged to the driving rod 5, an elastic member is disposed between the first link 6 and the driving rod 5, a head end of the second link 7 is perpendicularly connected to a tail end of the first link 6, and the actuator 3 is disposed on the second link 7. The elastic piece comprises a first positioning nail 8 fixed on the first connecting rod 6 and a second positioning nail 9 fixed on the driving rod 5, 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 actuator 3 on the second connecting rod 7 is prevented from excessively pressing the key to damage the key when moving towards the key direction, and the motor 1 is prevented from stalling.
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 properly adjusted according to the height position of the key, thereby better adapting to the keys on different devices. Preferably, the actuator 3 can be fixed to the second link 7 by means of screws or snaps.
As shown in fig. 2 and fig. 3, as a preferred embodiment, the driving device further includes a bottom plate 11 and a housing 12 having an opening at the bottom, the housing 12 is covered on the bottom plate 11, the motor 1, the control circuit 2 and the sine mechanism are all installed in the housing 12, the sine mechanism is fixed on the bottom plate 11, and one end of the driving rod 5 connected to the link assembly extends out from one side of the housing 12. The housing 12 protects the motor 1, the control circuit 2 and the sine 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, and an operator can overhaul or replace the control circuit and the battery thereof only by detaching the rear cover 13 without opening the whole shell 12, so that the maintenance is convenient and fast.
Referring to fig. 3, 4 and 5, as a preferred embodiment, the automatic keying means is fixed on the end seat 14, with the position of the actuator 3 opposite to the position of 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, the magnetic piece 15 is adsorbed on the surface of the server, and therefore the relative position of the end seat 14 and the server is fixed, and positioning is achieved rapidly. And then, according to the height position of the server restart key, the fixed position of the actuator 3 on the second connecting rod 7 is adjusted and fixed.
In addition, as a preferred embodiment, the main control module includes a first bluetooth module, the control circuit includes a second bluetooth module, and the first bluetooth module and the second bluetooth module communicate with each other.
Specifically, the master control module communicates with the server restarting device in a bluetooth manner. In this embodiment, the first bluetooth module provided in the master control module is initialized to be the master, and the second bluetooth module of the control circuit is initialized to be the slave. When the first Bluetooth module and the second Bluetooth module are connected, the second Bluetooth module broadcasts addresses, the first Bluetooth module confirms which server restarting devices nearby are provided by scanning the addresses broadcasted by the second Bluetooth module, and the second Bluetooth module is determined to be connected with according to the restarting instruction of the client.
As a preferred embodiment, the client includes a WEB interface, and the WEB interface includes a plurality of operation components corresponding to the server restart device one to one.
Specifically, the operation component is composed of UI components such as pictures, characters, buttons, or options bars. Wherein, each operation component corresponds to a server restarting device, in the WEB server, each operation component of the server restarting device corresponds to a data packet of the server restarting device in the database, and the data packet comprises the identification ID, the position information, the communication address (such as MAC, IP address) and the like of the server restarting device.
In a preferred embodiment, the second bluetooth module alternately performs sleep and address broadcasting according to a set period before the second bluetooth module does not establish communication with the first bluetooth module.
In this embodiment, the address refers to a physical address of the bluetooth module, i.e. a MAC address, but it goes without saying that other serial numbers that can be used to identify the identity of the bluetooth module may also be used as the address described in this embodiment. The set period may be sleep for 1 second and then address broadcast for 1 second. Of course, the size of the period may be set according to actual needs, and the time duration of the sleep and the address broadcast may also be different, for example, each sleep time is 1 second, and the address broadcast time is 0.5 second. Of course, the period needs to be set by considering the control logic of the master control module, such as the scan period and the waiting time of the master control module, so as to avoid that the master control module does not receive the address broadcast by the server restart apparatus in the scan period or the waiting time of the master control module. The main purpose of this embodiment is to reduce the power consumption of the server restart apparatus, so that the server restart apparatus can use a battery to supply power, and complete wireless operation is achieved.
Referring to fig. 6, the present embodiment discloses a method for controlling a remote reboot 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 restart instruction of the client.
As described in the foregoing embodiment, the client is a WEB application and is borne 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 a target server restart device stored in a database of the WEB server. The receiving means may be through the internet.
And S602, resolving the restart instruction to determine the address of the target server restart device.
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 rebooting device by scanning the address broadcast by the server rebooting device, and then sends a connection request to establish a connection with the target server rebooting device.
S604, sending a control signal 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. The target server restarting device executes restarting operation according to the control signal, namely, a restarting key of the target server is pressed down, so that the target server is restarted.
As a preferred embodiment, the establishing a connection with the target server reboot device according to the address of the target server reboot device specifically includes:
and scanning the Bluetooth slave, and judging whether the Bluetooth slave with the same address as the target server restarting device is scanned within a first set time, if so, establishing connection with the Bluetooth slave with the same address as the target server restarting device, and if not, not executing the restarting command.
In this embodiment, there may be various reasons that the target server reboot device fails, and at this time, if the master control module is scanning the failed target server reboot device all the time, other reboot instructions may not be executed, thereby causing the entire remote reboot system to fail. Therefore, in order to solve this problem, the present embodiment sets the scan time of the target server restart device, and once the target server restart device is not scanned beyond this time, the task is abandoned, and then other restart instructions are executed, or the process returns to wait for receiving other restart instructions.
Referring to fig. 7, the present embodiment discloses a method for controlling a remote reboot system of a server, which is used for a server reboot apparatus, and includes steps S701 to S705:
and S701, reading the address of the server restarting device.
In this embodiment, the server reboot apparatus further includes a memory, where the memory stores an address of the server reboot apparatus, and the register may be an independent memory or a memory built in the processor. Specifically, in this embodiment, the address is a physical address of bluetooth.
S702, the server restarts the address of the device by alternately performing sleep and broadcasting according to a set period.
In this embodiment, the server restart apparatus uses battery power, so to save power, the server restart apparatus alternately performs hibernation and address broadcast according to a set period, where hibernation means that a main power consumption device of the server restart apparatus enters a hibernation state, in this embodiment, specifically, a bluetooth module and/or a processor enters hibernation.
S703 receives the connection request transmitted from the main control module while the address of the server restart apparatus is broadcasted.
In this step, if the address broadcasted by the server restart apparatus is found by the master control module, and the master control module needs the server restart apparatus to perform a restart operation, the master control module may send a connection request, and after receiving the connection request, the server restart apparatus may respond, thereby establishing a communication connection.
And S704, after the connection with the main control module is established according to the connection request, receiving a control signal sent by the main control module.
In this step, the main control module sends a control signal to enable the server reboot device to execute a reboot operation after establishing a connection. Here, the control signal may be lost, unable to be correctly received, or cancelled, so that, in order to avoid that the server reboot apparatus waits indefinitely and consumes power, a set wait time may be set for the server reboot apparatus, and once the wait time expires and the control signal sent by the master control module is not correctly received, the wait is abandoned and the alternate sleep period is entered again.
S705, according to the received control signal, executing restarting 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 restart key 17 of the server, the actuator 3 presses the restart key 17, and at this time, the motor 1 is paused for 4s to complete the server shutdown operation. Then, the motor 1 is restarted, so that the actuator 3 on the connecting rod assembly moves in the direction far away from the restart key 17, and when the actuator 3 moves to the position farthest away from the restart key 17, the motor 1 is paused for 30s as the restart interval. And finally, the motor 1 is started again, the actuator 3 moves towards the direction of the restart key 17 and presses the restart key 17 again, the key pressing time is 1s, then the motor 1 drives the actuator 3 to move to the farthest end away from the restart key 17 for stagnation, and the server is restarted and finished.
As a preferred embodiment, the method further comprises the following steps:
and in a second set time after the connection with the main control module is established according to the connection request, the server restarting device enters the dormancy and alternately sleeps and broadcasts the address of the server restarting device according to a set period without receiving the control signal.
In this embodiment, a waiting time is set for the server restart apparatus to receive the control signal. The main purpose is to avoid that the server restarts the device to wait all the time, thereby consuming power.
Referring to fig. 8 and 9, the present embodiment describes an overall control method of the server remote restart system. Specifically, the present embodiment explains the two parts through the control flow of the client and the main control module and the control flow of the server restart 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 accessible by a WEB server.
S802, initializing a WEB server; including configuring software and hardware resources, access rights, etc.
And S803, initializing the main control module to be a Bluetooth host.
S804, the WEB server receives an instruction through a WEB interface of the client; if a command including the number of the target server is received, step S805 is performed, and if not, reception is waited for.
And S805, the WEB server inquires a database and finds out the Bluetooth address of the server restart device corresponding to the serial number of the server. I.e. the bluetooth address of the target server restart device.
S806, after obtaining the Bluetooth address of the target server restarting device, the main control module determines whether the target server restarting device is scanned within a set time. Specifically, whether a bluetooth slave with the same bluetooth address exists is scanned. If yes, go to step S807; if not, return to step S804.
And S807, the master control module sends a request for establishing connection to the Bluetooth slave, namely a target server restarting device.
And S808, judging whether a response that the target server restarting device accepts the connection establishment is received within the set time. If the target server restart apparatus responds within the set time, step S809 is performed, otherwise step S804 is performed.
And S809, sending a restarting instruction to the target server to restart the device.
Meanwhile, in the server restart apparatus, the method shown in fig. 9 is performed, which includes steps S901 to S908.
S901, writing a Bluetooth address of a server restart device corresponding to a server number in a memory in advance. This may be manually configured 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 own Bluetooth address at interval 1S, so that the Bluetooth host can discover itself.
And S904, judging whether a request for establishing connection sent by the Bluetooth host, namely the master control module, is received within the set time. If so, step S905 is performed. Otherwise, step S906 is executed.
S905, sending response information for establishing connection.
S906, enters the sleep state, and returns to step S903.
S907, judging whether a command for restarting the server sent by the main control module is received within a set time, if so, executing the step S908; otherwise, step S903 is executed.
And S908, driving the motor to drive the connecting rod and pressing a restart key of the server.
The step numbers in the above method embodiments are set for convenience of illustration only, the order between the steps is not limited at all, and the execution order of each step in the embodiments can be adapted according to the understanding of those skilled in the art.
While the preferred embodiments of the present invention have been illustrated and described, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A remote reboot system of a server, characterized by: the method comprises the following steps:
the server restarting devices are used for triggering a restarting key of the server;
the client is used for sending a restart instruction;
the main control module is used for receiving a restarting instruction sent by the client and controlling the server restarting device 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 move linearly in a reciprocating mode, an actuator used for pressing keys is arranged on the connecting rod assembly, and the control circuit is communicated with the main control module.
2. A system for remote reboot of a server according to claim 1, characterized in that: 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 a connecting rod assembly, and the motor drives the connecting rod assembly to move linearly and reciprocally through the sine mechanism.
3. A system for remote reboot of a server according to claim 2, characterized in that: 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 part is further arranged between the first connecting rod and the driving rod, the head end of the second connecting rod is perpendicularly connected with the tail end of the first connecting rod, and the actuator is located on the second connecting rod.
4. A system for remote restart of a server according to any of claims 1 to 3, characterized in that: the master 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.
5. A system for remote restart of a server according to any of claims 1 to 3, characterized in that: the client comprises a WEB interface, and the WEB interface comprises a plurality of operation components which correspond to the server restarting devices one to one.
6. The remote reboot system of a server according to claim 4, wherein: and the second Bluetooth module alternately performs dormancy and address broadcasting according to a set period before the second Bluetooth module establishes communication with the first Bluetooth module.
7. A control method of a remote restart system of a server according to any one of claims 1 to 6, applied to a master control module, characterized in that: the method comprises the following steps:
receiving a restart instruction of a client;
resolving the restart instruction to determine an 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.
8. The method of claim 7, wherein: the establishing of the connection with the target server restarting device according to the address of the target server restarting device specifically includes:
and scanning the Bluetooth slave, and judging whether the Bluetooth slave with the same address as the target server restarting device is scanned within a first set time, if so, establishing connection with the Bluetooth slave with the same address as the target server restarting device, and if not, not executing the restarting command.
9. A control method of a remote restart system of a server according to any one of claims 1 to 6, for a server restart apparatus, characterized in that: the method comprises the following steps:
reading the address of the server restarting device;
the address of the server restarting device is alternatively dormant and broadcasted according to a set period;
receiving a connection request transmitted by a main control module during broadcasting an address of a server restart device;
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 the restarting operation according to the received control signal.
10. The method of claim 9, wherein: further comprising the steps of:
and in a second set time after the connection with the main control module is established according to the connection request, the server restarting device enters the dormancy and alternately sleeps and broadcasts the address of the server restarting device according to a set period without receiving the control signal.
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 true CN112416439A (en) 2021-02-26
CN112416439B 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)

Cited By (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 (35)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060224674A1 (en) * 2005-03-31 2006-10-05 Buchheit Paul T Methods and systems for saving draft electronic communications
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
US20130031341A1 (en) * 2010-10-27 2013-01-31 Ibm Corporation Hibernation and Remote Restarting Hibernation Data in a Cluster Environment
CN103248663A (en) * 2012-02-14 2013-08-14 鸿富锦精密工业(深圳)有限公司 Terminal equipment control circuit
US20130346620A1 (en) * 2012-06-25 2013-12-26 Connectify Network address translating router for mobile networking
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
US20160246867A1 (en) * 2015-02-25 2016-08-25 International Business Machines Corporation Zero-data loss recovery for active-active sites configurations
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
US20170170979A1 (en) * 2015-12-15 2017-06-15 Pentair Flow Technologies, Llc Systems and Methods for Wireless Control and Monitoring of Residential Devices
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
US20180348848A1 (en) * 2017-06-04 2018-12-06 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Remote power cycling of computing device via network packet
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

Patent Citations (38)

* 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
US20060224674A1 (en) * 2005-03-31 2006-10-05 Buchheit Paul T Methods and systems for saving draft electronic communications
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
US20130031341A1 (en) * 2010-10-27 2013-01-31 Ibm Corporation Hibernation and Remote Restarting Hibernation Data in a Cluster Environment
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
US20170250950A1 (en) * 2012-06-25 2017-08-31 Connectify, Inc. Network address translating router for mobile networking
US20130346620A1 (en) * 2012-06-25 2013-12-26 Connectify Network address translating router for mobile networking
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
US20160246867A1 (en) * 2015-02-25 2016-08-25 International Business Machines Corporation Zero-data loss recovery for active-active sites configurations
CN106571972A (en) * 2015-10-10 2017-04-19 北京国双科技有限公司 Server monitoring method and device
US20190149352A1 (en) * 2015-12-15 2019-05-16 Pentair Water Pool And Spa, Inc. Systems and Methods for Wireless Monitoring of Pool Pumps Based on Geographic Location
US20170170979A1 (en) * 2015-12-15 2017-06-15 Pentair Flow Technologies, Llc Systems and Methods for Wireless Control and Monitoring of Residential Devices
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
US20180348848A1 (en) * 2017-06-04 2018-12-06 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Remote power cycling of computing device via network packet
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

Cited By (2)

* 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
CN116719391B (en) * 2023-05-09 2024-04-30 中数智创科技有限公司 Big data information sharing system based on block chain

Also Published As

Publication number Publication date
CN112416439B (en) 2024-03-05

Similar Documents

Publication Publication Date Title
RU2427031C2 (en) Fast display initialisation and light up
US8849992B2 (en) System and method for scheduling device management
TWI361579B (en) Communication apparatus and network search method thereof
US20180074828A1 (en) Setting a startup parameter and controlling startup of a mainboard
US20070247467A1 (en) Energy-saving mode-equipped apparatus, information processing apparatus, and control method
EP2034403A1 (en) Method for synchronizing information of dual operating systems
CN109587005B (en) Connection detection method and device, computer equipment and readable storage medium
JP5704904B2 (en) DATA PROCESSING DEVICE, DATA PROCESSING DEVICE CONTROL METHOD, AND PROGRAM
CN101964821A (en) Method and system for loading operating environment of remote terminal
CN110955396B (en) Information processing system, information processing apparatus, information processing method, storage medium, and computer apparatus
CN110012527B (en) Awakening method and electronic equipment
US20110276625A1 (en) Method and system for host independent keyboard, video, and mouse (kvm) redirection
US8908105B2 (en) Wireless display system, wireless display device and method for switching working mode
WO2015062217A1 (en) Connection processing method and device for peripheral in virtual desktop system
CN112416439A (en) Remote restarting system of server and control method thereof
WO2012094853A1 (en) Method, device and system for installing terminal software
US20070050532A1 (en) Device and control method of the device
JP2019500164A (en) Washing machine and control method
CN101848124B (en) Image forming apparatus, communication device, and communication method
CN112399211A (en) Operation method and convergence gateway
CN111580986A (en) Data acquisition method, system and medium based on acquisition service middleware
CN101577701A (en) Method for initializing disk drive in batches
CN114952826A (en) Method, device and medium for automatically identifying robot driver
KR100494429B1 (en) Relay apparatus for pc remote driving and remote controlling method thereof
CN112416641A (en) Controlled end node restart detection method in master-slave architecture and master control end node

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