CN106446700A - Automatic file saving method achieving power failure preventing - Google Patents

Automatic file saving method achieving power failure preventing Download PDF

Info

Publication number
CN106446700A
CN106446700A CN201610912681.8A CN201610912681A CN106446700A CN 106446700 A CN106446700 A CN 106446700A CN 201610912681 A CN201610912681 A CN 201610912681A CN 106446700 A CN106446700 A CN 106446700A
Authority
CN
China
Prior art keywords
computer
file
program
module
control module
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
CN201610912681.8A
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.)
University of Shanghai for Science and Technology
Original Assignee
University of Shanghai for Science and Technology
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 University of Shanghai for Science and Technology filed Critical University of Shanghai for Science and Technology
Priority to CN201610912681.8A priority Critical patent/CN106446700A/en
Publication of CN106446700A publication Critical patent/CN106446700A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bioethics (AREA)
  • Stand-By Power Supply Arrangements (AREA)
  • Power Sources (AREA)

Abstract

Provided is an automatic file saving method achieving power failure preventing. The battery level and program running condition information of a computer in operation are acquired by connecting a dynamic detector which is provided with a detection module, a comparative judgment module, a control module, a storage module and a recovery file generator with the computer, the control module sends a control instruction to enable a program operated in the computer to automatically and forcibly save a file and enable the computer to achieve safe shutdown after the program stops being operated, the storage module is connected with an internal memory and stores data in the internal memory in real time according to the instruction of the control module, and the specific steps are shown in the drawings. Due to the fact that the dynamic detector can monitor the electric quantity and the program operation condition of the computer at any time and the data in the computer memory is stored through the storage module in real time, the memory data can be stored to generate a temporary file when currents are insufficient and the program is abnormal, the temporary file can recover the working file to the maximum extent, and therefore the jamming and too-late saving defects brought by usage of a timed saving function are overcome.

Description

A kind of method that automatically saves file of anti-power failure
Technical field
The invention belongs to computer realm, particularly a kind of automatic storage method of computer Chinese part.
Background technology
General document or picture software for editing, such as Microsoft Office, in the software such as AutoCAD, the preservation of content It is typically provided with fixing preservation button to realize.Particularly, for the unexpected power failure occurring, electricity be too low, computer crash or journey The user that sequence situation out of service may lead to cannot be operated manually preserving the feelings that file causes file to be lost in time Condition, typically can solve above-mentioned hidden danger using subsidiary " timing preserves " function of program.
But the even shorter preservation interval of setting 3-5 minute, can make timing preserve and produce too many temporary file, with When excessively frequently preservation that computer can be made to run is slack-off and Caton phenomenon occurs;Setting half an hour or the meeting again of longer interval Occur to crash suddenly or program runs situation about can not preserve in time that is abnormal and leading to, ultimately result in file and lose or arduous The situation that the achievement of work does not preserve.
Content of the invention
The present invention is to carry out to solve the above problems it is proposed that a kind of side automatically saving file of anti-power failure Method, the edit operation to user carries out dynamic monitoring, and carries out real-time literary composition when exception in content operation or electricity is inadequate Part preserves, and improves operating efficiency and preserves action simultaneously in time.
A kind of method automatically saving file of anti-power failure, by having detection module, multilevel iudge module, controlling mould The dynamic detector of block, memory module and recovery file generator is connected with computer to obtain the operating battery of computer Electricity, program ruuning situation information, and control instruction is sent by the control module in dynamic detector make on computer The program run preserves file rear safety shutdown out of service automatically by force, and memory module is connected with the built-in storage of computer And according to the data in this built-in storage of instruction real-time storage of control module it is characterised in that the method comprises the following steps:
Step one, the detection module real-time detection battery electric quantity of dynamic detector, the ruuning situation of program;
Step 2, whether multilevel iudge module judges battery electric quantity more than the 1% of total electricity, when less than or equal to total electricity 1% when, be directly entered step 5, otherwise enter next step;
Step 3, when more than total electricity 1% when, multilevel iudge module further determining program ruuning situation whether Normally, when situation is normal, control module controls detection module to continue detection operating procedure one, otherwise enters next step;
Step 4, when the ruuning situation of the program of real time execution is abnormal, control module controls memory module by this journey The internal storage data of sequence stores generation temporary file, subsequently into step one;
Step 5, control module controls the recovery file recovering that file generator work generates computer, is simultaneously emitted by referring to Make and force to preserve current file and shut down to computer.
The method automatically saving file of the anti-power failure that the present invention provides, can also have the feature that, its feature exists In:Wherein, dynamic detector also includes reserve battery, and the supply line of this reserve battery and computer connects, in control module Control under to computer power supply.
Invention effect and effect
The method automatically saving file of the anti-power failure that the present invention provides, because dynamic detector can monitoring computer at any time Electricity is how many and program ruuning situation, and pass through the data in memory module real-time storage calculator memory, when electricity is inadequate Shi Jinhang automatically saves and shuts down;When program exception, the internal storage data of this program is stored generation temporary file, subsequently Can farthest be resumed work file by the file that automatically saves and this temporary file, overcome and preserve work(using timing The drawbacks of interim card that can bring is with having little time preservation.
Brief description
Fig. 1 is the composition system of dynamic detector and the computer connection diagram of the present invention;And
Fig. 2 is the step schematic diagram of the method automatically saving file of anti-power failure of the present invention.
Specific embodiment
In order that technological means, creation characteristic, reached purpose and effect that the present invention realizes are easy to understand, real below Apply example combine accompanying drawing to the anti-power failure of the present invention automatically save file Method And Principle, made using step, technique effect concrete Illustrate.
Embodiment
Fig. 1 is the composition system of dynamic detector and the computer connection diagram of the present invention.
As shown in figure 1, in the present embodiment dynamic detector have detection module, multilevel iudge module, control module, Memory module, reserve battery and recovery file generator, wherein detection module passes through usb data-interface and computer motherboard phase Even, and reserve battery then directly and the supply line of computer power management module to be connected as power management module offer standby Power supply.
Detection module is connected with computer motherboard to obtain the operating battery electric quantity of computer and program ruuning situation letter Breath.Memory module is connected with the built-in storage of computer, and built-in storage Sharing computer cpu run when quick storage in internal memory Real time data in reservoir simultaneously according to the data in this built-in storage of instruction real-time storage of control module and forms temporary file.
Detection module detects the battery electric quantity of computer, program ruuning situation, and multilevel iudge module is to battery electric quantity, journey Sort run situation is compared judgement, and control module sends control instruction and makes to run on computer according to judged result information Program automatically preserve file rear safety shutdown out of service by force.
Fig. 2 is the step schematic diagram of the method automatically saving file of anti-power failure of the present invention.
As shown in Fig. 2 the method automatically saving file of the anti-power failure of the present invention comprises the following steps:
Step one, the detection module real-time detection battery electric quantity of dynamic detector, the ruuning situation of program;
Step 2, whether multilevel iudge module judges battery electric quantity more than the 1% of total electricity, when less than or equal to total electricity 1% when, be directly entered step 5, otherwise enter next step;
Step 3, when more than total electricity 1% when, multilevel iudge module further determining program ruuning situation whether Normally, when situation is normal, control module controls detection module to continue detection operating procedure one, otherwise enters next step;
Step 4, when the ruuning situation of the program of real time execution is abnormal, control module controls memory module by this journey The internal storage data of sequence stores generation temporary file, subsequently into step one;
Step 5, under the control of control module, the supply line of reserve battery and computer connects to come to computer power supply Maintain the power for operation of next step, control module controls the recovery file recovering that file generator work generates computer, simultaneously Issue instructions to computer to force to preserve current file and shut down, current file is stored and is saved directly to computer Desktop and backup storage are in memory module.
The effect of embodiment and beneficial effect
The method automatically saving file of the anti-power failure that the present invention provides, because dynamic detector can monitoring computer at any time Electricity is how many and program ruuning situation, and pass through the data in memory module real-time storage calculator memory, when electricity is inadequate Shi Jinhang automatically saves and shuts down;When program exception, the internal storage data of this program is stored generation temporary file, subsequently Can farthest be resumed work file by the file that automatically saves and this temporary file, overcome and preserve work(using timing The drawbacks of interim card that can bring is with having little time preservation.

Claims (2)

1. a kind of method automatically saving file of anti-power failure, by have detection module, multilevel iudge module, control module, The dynamic detector of memory module and recovery file generator is connected with computer to obtain computer operating battery electricity Amount, program ruuning situation information, and control instruction is sent by the described control module in dynamic detector make described meter The program run on calculation machine preserves file rear safety shutdown out of service, described memory module and described computer automatically by force Built-in storage connect and according to the data in this built-in storage of instruction real-time storage of described control module it is characterised in that The method comprises the following steps:
Step one, the operation feelings of battery electric quantity, the described program described in described detection module real-time detection of described dynamic detector Condition;
Step 2, whether described multilevel iudge module judges described battery electric quantity more than the 1% of total electricity, when less than or equal to total Electricity 1% when, be directly entered step 5, otherwise enter next step;
Step 3, when more than total electricity 1% when, described multilevel iudge module further judges the ruuning situation of described program Whether normal, when situation is normal, described control module controls described detection module to continue detection operating procedure one, otherwise enters Next step;
Step 4, when the ruuning situation of the described program of real time execution is abnormal, described control module controls described storage mould The internal storage data of this program is stored generation temporary file by block, subsequently into step one;
Step 5, described control module controls the described recovery file recovering the file generator work described computer of generation, with When issue instructions to described computer and force to preserve current file and shut down.
2. the method automatically saving file of anti-power failure according to claim 1, its feature exists:
Wherein, described dynamic detector also includes reserve battery, and the supply line of this reserve battery and described computer connects, To described computer power supply under the control of described control module.
CN201610912681.8A 2016-10-20 2016-10-20 Automatic file saving method achieving power failure preventing Pending CN106446700A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610912681.8A CN106446700A (en) 2016-10-20 2016-10-20 Automatic file saving method achieving power failure preventing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610912681.8A CN106446700A (en) 2016-10-20 2016-10-20 Automatic file saving method achieving power failure preventing

Publications (1)

Publication Number Publication Date
CN106446700A true CN106446700A (en) 2017-02-22

Family

ID=58175583

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610912681.8A Pending CN106446700A (en) 2016-10-20 2016-10-20 Automatic file saving method achieving power failure preventing

Country Status (1)

Country Link
CN (1) CN106446700A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1378120A (en) * 2001-04-04 2002-11-06 英业达股份有限公司 Power off protector for computer data
CN1725187A (en) * 2005-04-30 2006-01-25 珠海金山软件股份有限公司 Method and device for storing user data on computer when software crashing
CN105847554A (en) * 2016-03-24 2016-08-10 维沃移动通信有限公司 Data processing method during abnormal shutdown of mobile terminal and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1378120A (en) * 2001-04-04 2002-11-06 英业达股份有限公司 Power off protector for computer data
CN1725187A (en) * 2005-04-30 2006-01-25 珠海金山软件股份有限公司 Method and device for storing user data on computer when software crashing
CN105847554A (en) * 2016-03-24 2016-08-10 维沃移动通信有限公司 Data processing method during abnormal shutdown of mobile terminal and mobile terminal

Similar Documents

Publication Publication Date Title
CN103796066A (en) Smart television system and method for turning on and turning off smart television system
CN103970248B (en) power management circuit and method and computer system
CN102882267A (en) Power supply device, electronic equipment and power supply method
CN102437917B (en) A kind of network wake-up method, network wake-up device and computer
WO2015180514A1 (en) Commercial power supply method and device
CN102780207B (en) voltage protection system and method
CN113835508B (en) Power consumption management method and device of server, BMC and storage medium
CN111475008A (en) Control method for working mode of power supply module
CN106446700A (en) Automatic file saving method achieving power failure preventing
CN103176585B (en) The device and method of adjustment power consumption
CN111290560B (en) Method and system for preventing server from overcurrent and power failure
CN105320246B (en) A kind of information processing method and electronic equipment
CN101673232A (en) Voltage regulation system
CN107436671B (en) Power-down protection structure and method
CN107273239B (en) Protection system and protection method for server boot code
CN106339064A (en) Method and device for rebooting
CN103092710A (en) High available virtual machine running method in cloud computing operating system
WO2022242164A1 (en) Voltage fluctuation control system and control method for air conditioner, electronic device, and storage medium
CN115318421A (en) Control method and device for starting and stopping coal mill unit, storage medium and electronic equipment
CN110865873A (en) Dynamic shutdown and recovery method for virtual machine resources
CN110707712B (en) Microgrid power supply reliability analysis method considering demand response
CN108511009A (en) Memory power supply circuit, control device and memory power supply method
US20210135889A1 (en) Mining machine and method for limiting computing power
CN112796075A (en) Power failure processing method and device
CN102929746A (en) Quick backup and recovery method for lottery sale system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170222

WD01 Invention patent application deemed withdrawn after publication