CN107976933A - A kind of server servo-control system and server power-off protection method - Google Patents

A kind of server servo-control system and server power-off protection method Download PDF

Info

Publication number
CN107976933A
CN107976933A CN201711015159.0A CN201711015159A CN107976933A CN 107976933 A CN107976933 A CN 107976933A CN 201711015159 A CN201711015159 A CN 201711015159A CN 107976933 A CN107976933 A CN 107976933A
Authority
CN
China
Prior art keywords
server
detection signal
controller module
detection
host computer
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.)
Pending
Application number
CN201711015159.0A
Other languages
Chinese (zh)
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 Panyu Polytechnic
Original Assignee
Guangzhou Panyu Polytechnic
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 Panyu Polytechnic filed Critical Guangzhou Panyu Polytechnic
Priority to CN201711015159.0A priority Critical patent/CN107976933A/en
Publication of CN107976933A publication Critical patent/CN107976933A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25314Modular structure, modules

Abstract

The invention discloses a kind of server servo-control system, including detection module, controller module, host computer and server, detection module is used to detect commercial power supply situation and sends detection signal to controller module;Controller module is used to receive detection signal, and sentences section according to detection signal and go out when alternating current powers off, and the first shutdown command is sent to host computer;Host computer is used for after the shutdown command of controller module transmission is received, call operation system function, control server shutdown.The invention also discloses a kind of server power-off protection method.Can effectively detect alternating current whether regular supply, can preferably ensure that the hard disk of server and data are not damaged automatically by server closing during mains failure to UPS battery exhausts.

Description

A kind of server servo-control system and server power-off protection method
Technical field
The present invention relates to automatic control technology field, more particularly to a kind of server servo-control system and server power-off Guard method.
Background technology
At present, server all act as indispensable effect in numerous industries, the usual round-the-clock unlatching of server requirement, Keep 24 it is small when stable operation incessantly, this just need ensure incessantly to server power to maintain its stable operation, But in the situation that power failure sometimes occurs, the operation of server is influenced, for this reason, UPS would generally be configured as standby electricity Source, when power-off condition occurs in alternating current, server relies on UPS and is powered to maintain its stable operation.
But since the factors such as the space be subject to computer room and cost are influenced, the battery capacity of UPS can only generally maintain 1 To 3 it is small when, if failed before USP batteries exhaust in time by server closing, situation about powering off suddenly just occurs in server, Server hardware is caused to damage, situations such as loss of data, system crash, and server usually requires that round-the-clock unlatching, in alternating current During power failure, administrative staff are difficult to accomplish to close server in time.
The content of the invention
For overcome the deficiencies in the prior art, it is an object of the present invention to provide a kind of server SERVO CONTROL system System, can effectively detect alternating current whether regular supply, mains failure to UPS battery exhaust period server can be closed automatically Close, preferably ensure that the hard disk of server and data are not damaged.
The second object of the present invention is to provide a kind of server power-off protection method effectively whether can detect alternating current Regular supply, can be automatically by the hard disk of server closing, preferably guarantee server during mains failure to UPS battery exhausts It is not damaged with data.
The third object of the present invention is to provide a kind of computer-readable recording medium effectively whether can detect alternating current Regular supply, can be automatically by the hard disk of server closing, preferably guarantee server during mains failure to UPS battery exhausts It is not damaged with data.
An object of the present invention adopts the following technical scheme that realization:
A kind of server servo-control system, including detection module, controller module, host computer and server, the inspection Module is surveyed to be used to detect commercial power supply situation and send detection signal to the controller module, the controller module to receive Signal is detected, and section is sentenced according to detection signal and is gone out when alternating current powers off, the first shutdown command is sent to the host computer;On described Position machine is used for after the first shutdown command that the controller module is sent is received, call operation system function, described in control Server shuts down.
Further, the detection module includes city's power detection circuit and radio transmitter, and city's power detection circuit is used In detection commercial power supply situation, the radio transmitter is used to send detection signal to the controller module.
Further, the controller module includes wireless receiver and single chip machine controlling circuit, the wireless receiver Receive detection signal and be transferred to the single chip machine controlling circuit, the single chip machine controlling circuit is used to analyze detection signal and sentences Cut off market electricity whether regular supply.
Further, the single chip machine controlling circuit includes 89C51 microcontrollers.
Further, the controller module passes through serial communication with the host computer.
Further, the server includes power switch, and the detection module is additionally operable to detect the server USB port 5V power supplys are to confirm whether the server is successfully closed, when the server closing is unsuccessful, the controller module hair The second shutdown command to the server, control is sent to be connected to the power switch of the server, close the server.
The second object of the present invention adopts the following technical scheme that realization:
A kind of server power-off protection method, comprises the following steps:
Receiving step:Receive the detection signal that detection module detects.
Feedback step:Sentence section according to detection signal to go out when alternating current powers off, control server shutdown is sent to host computer First shutdown command.
Further, it is further comprising the steps of:
Receiving step:Receive the signal whether server that detection module is detected from server is successfully closed.
Feedback step:Judged according to detection signal when server closing is unsuccessful, control service is sent to server The second shutdown command that appliance mains switch is closed.
The third object of the present invention adopts the following technical scheme that realization:
A kind of computer-readable recording medium, is stored thereon with computer program, and the computer program is held by processor Realized during row such as the method as described in any one in the second purpose.
Compared with prior art, the beneficial effects of the present invention are:A kind of server servo-control system of the present invention, passes through Detection signal is analyzed, judges whether to carry out power-off operation to server, can effectively detect whether alternating current normally supplies Should, can be automatically by the hard disk and data of server closing, preferably guarantee server during mains failure to UPS battery exhausts It is not damaged, the degree of automation is high, securely and reliably, facilitates administrative staff's management server.
Brief description of the drawings
Fig. 1 is a kind of server servo-control system flow chart of the present invention;
Fig. 2 is a kind of server power-off protection method flow chart of the present invention.
In figure:1st, detection module;11st, city's power detection circuit;12nd, radio transmitter;2nd, controller module;21st, wirelessly connect Receive device;22nd, single chip machine controlling circuit;3rd, host computer;4th, server.
Embodiment
In the following, with reference to attached drawing and embodiment, the present invention is described further, it is necessary to which explanation is, not Under the premise of afoul, new implementation can be formed between various embodiments described below or between each technical characteristic in any combination Example.
A kind of server servo-control system as shown in Figure 1, including detection module 1, controller module 2, host computer 3 and Server 4, the detection module 1 are used to detect commercial power supply situation and send detection signal to the controller module 2;The control Device module 2 receives detection signal, and sentences section according to detection signal and go out when alternating current powers off, and the first shutdown is sent to the host computer 3 Instruction;The host computer 3 is used for after the shutdown command of the controller module 2 transmission is received, call operation system function, the letter Number is api functions, by the power switch for calling this api function to be applied on the server 4, so as to control the server 4 to close Machine.
By analyzing detection signal, judge whether to carry out power-off operation to the server 4, can effectively detect Alternating current whether regular supply, mains failure to UPS battery exhaust during the server 4 can be closed automatically, preferably ensure The hard disk and data of the server 4 are not damaged, and the degree of automation is high, securely and reliably, facilitates administrative staff to manage the server 4.Due to the battery capacity of UPS be about able to maintain that 1 to 3 it is small when, when user can power off alternating current, the server 4 Power-off operation be arranged in an appropriate time and complete, so can either during mains failure to UPS battery exhaust general The server 4 is closed, and the backup of UPS can be made full use of the server 4 is run more a period of times.
As preferred embodiment, which includes city's power detection circuit 11 and radio transmitter 12, the alternating current Detection circuit 11 is used to detect commercial power supply situation, which is used to send detection signal to the controller module 2.City's power detection circuit 11 detects commercial power supply situation incessantly using its city's photodetector, can be in real time by abnormal electrical power supply Situation reports, which has USB interface, conveniently accesses city's power detection circuit 11.
The controller module 2 includes wireless receiver 21 and single chip machine controlling circuit 22, which receives inspection Survey signal and be transferred to the single chip machine controlling circuit 22, which is used to analyze detection signal and judges alternating current Whether regular supply.The single chip machine controlling circuit 22 computer miniature equivalent to one, can be handled detection signal And corresponding feedback command is made, which has USB interface, conveniently accesses the single chip machine controlling circuit 22.Tool Body, the single chip machine controlling circuit 22 include 89C51 microcontrollers, and 89C51 microcontrollers are common microcontroller, its flexibility compared with It is high and cheap, the single chip machine controlling circuit 22 suitable for a kind of server servo-control system of the present embodiment.
In addition, the controller module 2 and the host computer 3 are controlled the microcontroller in controller module 2 by serial communication Circuit 22 is directly linked together with host computer 3 by serial ports, is transmitted compared to using wireless channel, the connection mode of the present embodiment Interference is less susceptible to, also, is based on the characteristics of 2 small volume of controller module is more flexible, its connection with the host computer 3 It is extremely convenient.The server 4 includes power switch (not shown), which is additionally operable to detect the USB port of the server 4 5V power supplys are to confirm whether the server 4 is successfully closed, and when the server 4 closes unsuccessful, which sends the Two shutdown commands to the server 4, control is connected to the power switch of the server 4, closes the server 4.So provide A kind of emergency plan, when the server 4 closes unsuccessful, the power switch for directly controlling the server 4 closes the service Device 4, has ensured influence of the server 4 from shutdown abnormal conditions, avoids result in the situation of server hard disc and corrupted data.
A kind of server power-off protection method as shown in Figure 2, comprises the following steps:
Receiving step:Receive the detection signal that detection module 1 detects.
Feedback step:Sentence section according to detection signal to go out when alternating current powers off, sending control server 4 to host computer 3 shuts down The first shutdown command.
The detection module 1 detects commercial power supply situation and sends detection signal to controller module 2, the controller module 2 receive detection signals, analysis detection signal and judge alternating current whether regular supply, when alternating current power off, to the transmission of host computer 3 the One shutdown command, after which receives the shutdown command that the controller module 2 is sent, call operation system function, control should Server 4 shuts down.
A kind of server power-off protection method of the present invention, can be judged whether pair by analyzing detection signal The server 4 carry out power-off operation, can effectively detect alternating current whether regular supply, exhausted in mains failure to UPS battery Period automatically can close the server 4, and the hard disk and data for preferably ensureing the server 4 are not damaged, the degree of automation Height, securely and reliably, facilitates administrative staff to manage the server 4.Due to the battery capacity of UPS be about able to maintain that 1 to 3 it is small when, Therefore when user can power off alternating current, the power-off operation of the server 4, which was arranged in an appropriate time, to be completed, so The server 4 can either be closed during mains failure to UPS battery exhausts, and the backup of UPS can be made full use of The server 4 is set to run more a period of times.
Specifically, it is further comprising the steps of:
Receiving step:Receive the signal whether server 4 that detection module 1 is detected from server 4 is successfully closed.
Feedback step:Judged according to detection signal when server 4 closes unsuccessful, control clothes are sent to server 4 The second shutdown command that 4 power switch of business device is closed.
The detection module 1 detect 4USB mouthfuls of 5V power supplys of the server with confirm the server 4 whether normal switching-off, when the clothes When business device 4 closes unsuccessful, which sends the second shutdown command to the server 4, control and is connected to the server 4 power switch (not shown), closes the server 4.A kind of emergency plan is so provided, can not closed in the server 4 During work(, the power switch for directly controlling the server 4 closes the server 4, has ensured the server 4 from shutdown abnormal conditions Influence, avoid result in the situation of server hard disc and corrupted data.
The present embodiment also discloses a kind of computer-readable recording medium, is stored thereon with computer program, the computer When program is performed by the processor of the controller module 2, any one in a kind of above-mentioned server power-off protection method is realized The method.
The above embodiment is only the preferred embodiment of the present invention, it is impossible to the scope of protection of the invention is limited with this, The change and replacement for any unsubstantiality that those skilled in the art is done on the basis of the present invention belong to institute of the present invention Claimed scope.

Claims (9)

  1. A kind of 1. server servo-control system, it is characterised in that:Including detection module, controller module, host computer and service Device, the detection module are used to detect commercial power supply situation and send detection signal to the controller module;The control Device module receives detection signal, and sentences section according to detection signal and go out when alternating current powers off, and the first shutdown is sent to the host computer Instruction;The host computer is used for after the first shutdown command that the controller module is sent is received, call operation system letter Number, controls the server to shut down.
  2. A kind of 2. server servo-control system as claimed in claim 1, it is characterised in that:The detection module includes alternating current Detection circuit and radio transmitter, city's power detection circuit are used to detect commercial power supply situation, and the radio transmitter is used for Detection signal is sent to the controller module.
  3. A kind of 3. server servo-control system as claimed in claim 1, it is characterised in that:The controller module includes nothing Line receiver and single chip machine controlling circuit, the wireless receiver receive detection signal and are transferred to the microcontroller control electricity Road, the single chip machine controlling circuit be used for analyze detection signal and judge alternating current whether regular supply.
  4. A kind of 4. server servo-control system as claimed in claim 3, it is characterised in that:The single chip machine controlling circuit bag Include 89C51 microcontrollers.
  5. A kind of 5. server servo-control system as claimed in claim 1, it is characterised in that:The controller module with it is described Host computer passes through serial communication.
  6. A kind of 6. server servo-control system as claimed in claim 1, it is characterised in that:The server is opened including power supply Closing, the detection module is additionally operable to detect the server USB port 5V power supplys to confirm whether the server is successfully closed, when When the server closing is unsuccessful, the controller module directly transmits the second shutdown command to the server, control and connects The power switch of the server is connected on, closes the server.
  7. 7. a kind of server power-off protection method, it is characterised in that comprise the following steps:
    Receiving step:Receive the detection signal that detection module detects.
    Feedback step:Sentence section according to detection signal to go out when alternating current powers off, the first of control server shutdown is sent to host computer Shutdown command.
  8. 8. a kind of server power-off protection method as claimed in claim 7, it is characterised in that further comprising the steps of:
    Receiving step:Receive the signal whether server that detection module is detected from server is successfully closed.
    Feedback step:Judged according to detection signal when server closing is unsuccessful, control server electricity is sent to server The second shutdown command that source switch is closed.
  9. 9. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that:The computer program quilt The method as described in claim 7-8 any one is realized when processor performs.
CN201711015159.0A 2017-10-26 2017-10-26 A kind of server servo-control system and server power-off protection method Pending CN107976933A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711015159.0A CN107976933A (en) 2017-10-26 2017-10-26 A kind of server servo-control system and server power-off protection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711015159.0A CN107976933A (en) 2017-10-26 2017-10-26 A kind of server servo-control system and server power-off protection method

Publications (1)

Publication Number Publication Date
CN107976933A true CN107976933A (en) 2018-05-01

Family

ID=62012782

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711015159.0A Pending CN107976933A (en) 2017-10-26 2017-10-26 A kind of server servo-control system and server power-off protection method

Country Status (1)

Country Link
CN (1) CN107976933A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111366316A (en) * 2020-02-19 2020-07-03 苏州浪潮智能科技有限公司 System and method for detecting liquid in server and server
CN114280916A (en) * 2021-12-27 2022-04-05 楚天科技股份有限公司 Control method and system for soft shutdown of pharmaceutical equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101201688A (en) * 2006-12-15 2008-06-18 英业达股份有限公司 Power-off protection system and method
CN202041843U (en) * 2011-05-17 2011-11-16 四川韵博科技有限公司 Control system for remotely controlling on and off of IT (Information Technology) server
CN103856620A (en) * 2012-12-06 2014-06-11 华为终端有限公司 Method and device for controlling terminal to close down
CN104238714A (en) * 2013-06-09 2014-12-24 上海梅山钢铁股份有限公司 Method for protecting computer systems after outage of uninterrupted power supply (UPS)
CN105007018A (en) * 2015-07-20 2015-10-28 深圳市合信自动化技术有限公司 Servo driving system and power-off position control method thereof
CN105281423A (en) * 2015-10-27 2016-01-27 盐城市智能达工程技术有限公司 Intelligent shutdown control system of server
CN205301910U (en) * 2016-01-07 2016-06-08 郑州捷安高科股份有限公司 Open power -off control device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101201688A (en) * 2006-12-15 2008-06-18 英业达股份有限公司 Power-off protection system and method
CN202041843U (en) * 2011-05-17 2011-11-16 四川韵博科技有限公司 Control system for remotely controlling on and off of IT (Information Technology) server
CN103856620A (en) * 2012-12-06 2014-06-11 华为终端有限公司 Method and device for controlling terminal to close down
CN104238714A (en) * 2013-06-09 2014-12-24 上海梅山钢铁股份有限公司 Method for protecting computer systems after outage of uninterrupted power supply (UPS)
CN105007018A (en) * 2015-07-20 2015-10-28 深圳市合信自动化技术有限公司 Servo driving system and power-off position control method thereof
CN105281423A (en) * 2015-10-27 2016-01-27 盐城市智能达工程技术有限公司 Intelligent shutdown control system of server
CN205301910U (en) * 2016-01-07 2016-06-08 郑州捷安高科股份有限公司 Open power -off control device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111366316A (en) * 2020-02-19 2020-07-03 苏州浪潮智能科技有限公司 System and method for detecting liquid in server and server
CN114280916A (en) * 2021-12-27 2022-04-05 楚天科技股份有限公司 Control method and system for soft shutdown of pharmaceutical equipment

Similar Documents

Publication Publication Date Title
US10666072B2 (en) Power adapter and method for handling impedance anomaly in charging loop
US8862916B2 (en) Wireless control of power sockets based on host and signal quality
TWI420295B (en) Power saving apparatus and power saving method thereof
CN102387022B (en) A kind of POE method and apparatus
CN104866418A (en) Automatic testing method and system
CN107168087B (en) Socket control system for storing and recovering intelligent household parameters by detecting power failure
CN101655733A (en) Method and device for collocating uninterruptible power supply to enable computer to safely hibernate during power cut
US20110066884A1 (en) Power supply control device, a storage system, a control method of the power supply control device, a control method of a disk array unit and a computer readable medium thereof
CN107976933A (en) A kind of server servo-control system and server power-off protection method
CN103678178A (en) Power failure processing method and system of storage system
JP4075513B2 (en) Serial bus connection device and driver software
CN101510116B (en) Energy-conserving method and system of terminal equipment with standby function
US20040073817A1 (en) Method for automatically saving in-process programs before shutdown
WO2013131236A1 (en) Power supply circuit and electrical device
CN211402623U (en) Portable testing device for indoor unit and outdoor unit of air conditioner
CN107357403A (en) A kind of computer power power-off and power down protection system
CN105320905B (en) A kind of multi-function device for ensureing Computer Data Security
CN101895414A (en) System and method for power off protection of server
CN201425723Y (en) Switch of dual hard disk power lines
CN105824650A (en) Computer system, adaptive dormancy control module and control method for same
CN218866465U (en) Commercial power detection circuit and servo control system of server
CN105098854A (en) Charging method and electronic apparatus
US11016919B2 (en) Intelligent switching peripheral connector
EP2725680B1 (en) Electronic device and power supplying control method thereof
CN208588958U (en) A kind of desktop computer

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180501