CN102591805B - The method of data protection and terminal unit - Google Patents

The method of data protection and terminal unit Download PDF

Info

Publication number
CN102591805B
CN102591805B CN201110020424.0A CN201110020424A CN102591805B CN 102591805 B CN102591805 B CN 102591805B CN 201110020424 A CN201110020424 A CN 201110020424A CN 102591805 B CN102591805 B CN 102591805B
Authority
CN
China
Prior art keywords
terminal unit
laying state
level
described terminal
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110020424.0A
Other languages
Chinese (zh)
Other versions
CN102591805A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201110020424.0A priority Critical patent/CN102591805B/en
Publication of CN102591805A publication Critical patent/CN102591805A/en
Application granted granted Critical
Publication of CN102591805B publication Critical patent/CN102591805B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides method and the terminal unit of a kind of data protection, belongs to technical field of data processing, and described method includes: judge whether the laying state of terminal unit is in abnormal laying state;When the laying state of described terminal unit is in abnormal laying state, the data in described terminal unit are protected.When the laying state finding terminal unit is in abnormal laying state, can automatically carry out data protection such that it is able to preferably protect data, prevent data from surprisingly losing.

Description

The method of data protection and terminal unit
Technical field
The invention belongs to technical field of data processing, the method and the terminal that particularly relate to a kind of data protection set Standby.
Background technology
In existing computer technology, the data safety of computer user is the most important.Work as department of computer science When system occurs abnormal, it is most important that the data of user in protection computer in time.At present, integrated computer (AIO) development day by day becomes main flow, but, due to particularity (main frame and the display of AIO structure It is incorporated into one), in use, the desktop computer before the stability of AIO is compared just has the biggest change Change.
Frame for movement feature to AIO, if in use the long-time side of exception is fallen (such as: Vibrations or desk side are fallen), owing to the cooling requirements of AIO is the strictest, so, if AIO is long-time It is in side and falls state, can cause that the temperature in chassis of AIO is abnormal drastically to be raised, it is more likely that can affect hard The memory units such as dish, the serious data safety influencing whether user.
Summary of the invention
In order to solve the problems referred to above, the purpose of embodiments of the invention be to provide a kind of data protection method and Terminal unit, when the laying state finding terminal unit is in abnormal laying state, can carry out data automatically Protection such that it is able to preferably protect data, prevent data from surprisingly losing.
In order to achieve the above object, embodiments of the invention provide a kind of method of data protection, described method Including:
Judging whether the laying state of terminal unit is in abnormal laying state, the base of terminal unit includes bullet Spring switchs, and when normally using and place, snap switch is off state, and now GPIO level is high electricity Flat, when terminal equipment side is fallen, snap switch closes, and now GPIO level is low level;
When the laying state of described terminal unit is in abnormal laying state, to the number in described terminal unit According to protecting;Wherein
The described laying state judging terminal unit whether be in abnormal laying state step particularly as follows:
Poll predefined GPIO universal input/output level, the height of described GPIO level reflects institute State the laying state of terminal unit, when described GPIO level is more than predetermined level, at described terminal unit In normal laying state;When described GPIO level is less than or equal to described predetermined level, described terminal sets For being in abnormal laying state.
Preferably, described abnormal laying state is that state is fallen in side.
Preferably, before the described step that data in described terminal unit are protected, described method Also include:
Judge that described terminal unit is in whether persistent period of abnormal laying state meets prefixed time interval Requirement;
When meeting, directly the data in described terminal unit are protected;
When being unsatisfactory for, postpone the data in described whole terminal unit are protected.
Preferably, the described step that data in described terminal unit are protected particularly as follows:
Control the power-off of described terminal unit, but being used in described terminal unit preserves the storage of data Module is the most charged and can be waken up.
Preferably, the described step that data in described terminal unit are protected particularly as follows:
Control described terminal unit to connect power supply at interior all hardware module Close All.
In order to achieve the above object, embodiments of the invention also provide for a kind of terminal unit, the end of terminal unit Seat includes snap switch, and when normally using and place, snap switch is off state, now GPIO electricity Putting down as high level, when terminal equipment side is fallen, snap switch closes, and now GPIO level is low level, Described terminal unit also includes:
Detection module, for detecting whether the laying state of described terminal unit is in abnormal laying state;
Data protection module, for when the laying state of described terminal unit is in abnormal laying state, right Data in described terminal unit are protected;
Wherein, described detection module, it is further used for poll predefined GPIO universal input/output Level, the height of described GPIO level reflects the laying state of described terminal unit, when described GPIO electricity When putting down higher than predetermined level, described terminal unit is in normal laying state;When described GPIO level is less than During described predetermined level, described terminal unit is in abnormal laying state.
Preferably, described terminal unit also includes:
Time delay module, is connected with described detection module and described data protection module respectively, is used for judging described Terminal unit is in whether persistent period of abnormal laying state meets the requirement of prefixed time interval, when meeting Time, directly trigger described data protection module;When being unsatisfactory for, postpone to trigger described data protection module.
Preferably, described terminal unit is integrated dynamo-electric brain or PC.
As shown from the above technical solution, embodiments of the invention have the advantages that and first obtain terminal The relevant information of the laying state of equipment, then judges whether the laying state of terminal unit is in abnormal placement State, when the laying state finding terminal unit is in abnormal laying state, can carry out data protection automatically, It is thus possible to the protection data changed, prevent data from surprisingly losing, improve the safety of data.
Accompanying drawing explanation
Fig. 1 is the method flow diagram of data protection in embodiments of the invention;
Fig. 2 is the block diagram of terminal unit in embodiments of the invention;
Fig. 3 is the understructure figure of integrated computer in embodiments of the invention.
Detailed description of the invention
In the present embodiment, first obtain the relevant information of the laying state of terminal unit, then judge terminal Whether the laying state of equipment is in abnormal laying state, if the laying state of terminal unit is in abnormal placement During state, then the data in terminal unit can be protected.
In order to make the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with reality Execute example and accompanying drawing, the embodiment of the present invention is described in detail.Here, the present invention's is schematic real Execute example and illustrate for explaining the present invention, but not as a limitation of the invention.
See Fig. 1, for the method flow diagram of data protection in embodiments of the invention, specifically comprise the following steps that
Step 101, obtain the relevant information of laying state of terminal unit;
In the present embodiment, the laying state of terminal unit includes: normal laying state and abnormal laying state, Wherein abnormal laying state refers to that state is fallen in side.
Wherein, side state there occurs inclination when referring to terminal unit relative to normal placement, such as, work as terminal Equipment, relative to when normally placing, when the angle of inclination is more than the angle threshold preset, can show that this terminal sets State is fallen in the standby side that is in.This angle threshold preset can be adjusted according to practical situation, in the present embodiment Do not limit the occurrence of this angle threshold preset.
As a example by integrated computer, when the casing of integrated computer is fitted with desktop, namely relative to just When often placing, the angle of inclination is 90 degree, and now this integrated computer is in side and falls state.
In the present embodiment, in the operating system of terminal unit, by the phase at operating system running background Close software, obtain the relevant information of the laying state of terminal unit.This software can be by the way of poll Obtain the relevant information of the laying state of terminal unit.
Such as: when this installing terminal equipment has Windows OS system, at Windows OS system ring Under border, system self-protection program can be run in the backstage of system, and it realizes principle and is: at Windows OS A background service program, the predefined GPIO of automatic regular polling (universal input/output) is run under system Level, the height of this GPIO level can reflect the laying state of terminal unit.
When GPIO level is more than predetermined level, terminal unit is in normal laying state;When GPIO electricity When putting down less than or equal to predetermined level, terminal unit is in abnormal laying state.This predetermined level may be configured as Zero level, when GPIO level is more than 0, terminal unit is in normal laying state, when GPIO level During equal to 0, terminal unit is in abnormal laying state.
Certainly, it is possible to obtain the relevant information of the laying state of terminal unit by other means, such as by In the laying state that terminal unit is different, influence whether the heat dispersion within terminal unit, the most also can lead to Cross the height of temperature within terminal unit, obtain the relevant information of the laying state of terminal unit.Work as end When the temperature of end device interior is more than predetermined temperature threshold, terminal unit is in abnormal laying state.Work as terminal When the temperature of device interior is less than or equal to predetermined temperature threshold, terminal unit is in normal condition.
Temperature within above-mentioned terminal unit may refer to the temperature of terminal unit internal core parts, such as should The temperature of core component may is that the temperature of central processing unit (CPU), or mainboard (MainBord) Temperature.Wherein the predetermined temperature threshold of central processing unit could be arranged to 75 degrees Celsius, the pre-constant temperature of mainboard Degree threshold value could be arranged to 55 degrees Celsius.Certainly predetermined temperature threshold is not the most limited The concrete value of value.
Certainly, this terminal unit is not limited by related software to obtain the laying state of terminal unit, it is possible to Obtained the laying state of terminal unit by other hardware units, such as, obtain terminal by equilibristat and set The relevant information of standby laying state.
Step 102, judge whether the laying state of terminal unit is in abnormal laying state?If so, perform Step 103;Otherwise, step 101 is returned;
It is, when the laying state of terminal unit is in side time of falling state, perform step 103, it is right to take Data in terminal unit are protected.Otherwise, the relevant information of the laying state of terminal unit is obtained.
Such as, when the laying state of terminal unit is the side time of falling state, the heat radiation of terminal unit can now be affected Efficiency.After temperature raises in terminal unit, it is likely to result in terminal unit and restarts or crash, now The loss not preserving data can be caused, thus have influence on the data safety of user.And through performing step 102, When the laying state judging terminal unit is the side time of falling state, can trigger and the data in terminal unit are carried out Protection.If the laying state of terminal unit is in normal laying state, continue to obtain putting of terminal unit The relevant information of configuration state.
In the present embodiment, can judge whether terminal unit is in abnormal laying state in the following way, Such as: poll predefined GPIO level, the height of GPIO level may be used for reflecting described terminal The laying state of equipment, when GPIO level is more than predetermined level, terminal unit is in normal laying state; When GPIO level is less than or equal to described predetermined level, terminal unit is in abnormal laying state.
Certainly, in the present embodiment, it is possible to judge whether terminal unit is in abnormal putting in the following way Configuration state, such as: detection temperature within terminal unit, owing to when terminal equipment side is fallen, influencing whether Terminal unit internal heat dissipating performance, therefore the temperature within terminal unit may be used for reflecting putting of terminal unit Configuration state, when the temperature within terminal unit is more than predetermined temperature threshold, terminal unit is in abnormal placement State;When the temperature within terminal unit is less than or equal to predetermined temperature threshold, terminal unit is in normally to be put Configuration state.
Step 103, judge that terminal is in whether persistent period of abnormal laying state meets prefixed time interval Requirement?If meeting, perform step 104;If being unsatisfactory for, postpone the data in terminal unit are protected Protect, return step 103;
It is, be furnished with time delay process control in this flow process, the length of time interval can be set, mainly Be in order to effectively identify user have a mind to move terminal unit, the most provisional moves terminal unit.Right In prefixed time interval, arbitrarily can be set by user.
Such as, this time interval is 5 seconds, when terminal unit is in the persistent period of abnormal laying state 5 Time within Miao, postponing to trigger and the data in terminal unit are protected, facing because being now likely to be user Time property move terminal unit.When terminal unit be in the persistent period of abnormal laying state more than 5 seconds time, Trigger the data to terminal unit to protect.
Step 103 is optional step, judges that terminal unit is when using by the temperature within terminal unit No when being in abnormal laying state, step 103 can not be performed.
Step 104, the data in terminal unit are protected.
In the present embodiment, the data in terminal unit can be that user works as pre-editing, but the data not preserved, These data can be buffered in the internal memory of terminal unit.
In the present embodiment, the data in terminal unit are protected may is that control terminal unit electricity Source is closed, but the most charged and can be waken up for preserving the memory module of data in terminal unit.
Or, the data in terminal unit terminal are carried out protection can also be: control in described terminal unit Even power supply is at interior all module Close Alls.
Conventional data protection is to enter guard mode, such as, in triggering terminal equipment by software set Windows OS system (ACPI Event) is directly entered guard mode (S4 or S5), it is achieved that protect The safety of card user data.
Wherein, S4: also referred to as STD (Suspend to Disk, suspend to hard disk), memory information writes In memory module, then all hardware module from service;
S5: in terminal unit, all hardware module (including power supply) is all closed, and namely shuts down.
As shown from the above technical solution, embodiments of the invention have the advantages that and first obtain terminal The laying state of equipment, then judges whether the laying state of terminal unit is in abnormal laying state, when sending out When the laying state of existing terminal unit is in abnormal laying state, can automatically carry out data protection such that it is able to The protection data changed, prevent data from surprisingly losing, improve the safety of data.
Seeing Fig. 2, for the structure chart of terminal unit in embodiments of the invention, from figure, terminal sets For including:
Detection module 21, for detecting whether the laying state of described terminal unit is in abnormal laying state;
Data protection module 22, is used for when the laying state of described terminal unit is in abnormal laying state, Data in described terminal unit are protected.
In an embodiment of the present invention, described terminal unit also includes:
Time delay module 23, is connected with described detection module 21 and described data protection module 22 respectively, uses In judging that described terminal unit is in whether persistent period of abnormal laying state meets prefixed time interval Requirement, when meeting, directly triggers described data protection module 22;When being unsatisfactory for, postpone to trigger institute State data protection module 22.
In the present embodiment, detection module 21, it is further used for poll predefined GPIO level, institute The height stating GPIO level reflects the laying state of described terminal unit, when described GPIO level is higher than pre- If during level, described terminal unit is in normal laying state;When described GPIO level is preset less than described During level, described terminal unit is in abnormal laying state.
Introduce as a example by integrated computer below, how to carry out data protection.See Fig. 3, for the present invention Embodiment in the understructure figure of integrated computer.
A hardware snap switch 31, when normally using and place, spring is increased at AIO system base 32 Switch 31 is off state, and now GPIO level is high level.When AIO system side is fallen, base 32 leave desktop 33, and due to the effect of spring, snap switch 31 closes, and now GPIO level is low electricity Flat, GPIO level there occurs change, can trigger and protect the data in AIO system.
GPIO level can leave unused GPIO from ICH (i/o controller center) or SuperIO Middle introducing (height of concrete GPIO level and effectively definition, can be in conjunction with concrete motherboard circuit design coupling), Coordinate base 32 and the snap switch 31 of AIO system, it is achieved the change of GPIO level height.Thus, The laying state of AIO system is identified according to the change of GPIO level.Particularly long-time when AIO system It is in abnormal laying state (time delay length controls, and can be previously set as required), triggers AIO system and enter Row data protection.
GPIO level logic is as shown in the table:
Certainly, this terminal unit is also not necessarily limited to integrated computer, and those skilled in the art also can be by said structure Apply in PC, thus realize in PC, user data being protected.
As shown from the above technical solution, embodiments of the invention have the advantages that and first obtain terminal The laying state of equipment, then judges whether the laying state of terminal unit is in abnormal laying state, when sending out When the laying state of existing terminal unit is in abnormal laying state, can automatically carry out user data protection, it is possible to Preferably protect user data, prevent user data from surprisingly losing.
The above is only the preferred embodiment of the present invention, it is noted that common for the art For technical staff, under the premise without departing from the principles of the invention, it is also possible to make some improvements and modifications, These improvements and modifications also should be regarded as protection scope of the present invention.

Claims (8)

1. the method for a data protection, it is characterised in that described method includes:
Judging whether the laying state of terminal unit is in abnormal laying state, the base of terminal unit includes bullet Spring switchs, and when normally using and place, snap switch is off state, and now GPIO level is high electricity Flat, when terminal equipment side is fallen, snap switch closes, and now GPIO level is low level;
When the laying state of described terminal unit is in abnormal laying state, to the number in described terminal unit According to protecting;
The described laying state judging terminal unit whether be in abnormal laying state step particularly as follows:
Poll predefined GPIO universal input/output level, the height of described GPIO level reflects institute State the laying state of terminal unit, when described GPIO level is more than predetermined level, at described terminal unit In normal laying state;When described GPIO level is less than or equal to described predetermined level, described terminal sets For being in abnormal laying state.
Method the most according to claim 1, it is characterised in that described abnormal laying state is that side is fallen State.
Method the most according to claim 1, it is characterised in that described in described terminal unit Data carry out the step protected before, described method also includes:
Judge that described terminal unit is in whether persistent period of abnormal laying state meets prefixed time interval Requirement;
When meeting, directly the data in described terminal unit are protected;
When being unsatisfactory for, postpone the data in described terminal unit are protected.
Method the most according to claim 2, it is characterised in that described in described terminal unit Data carry out the step protected particularly as follows:
Control the power-off of described terminal unit, but being used in described terminal unit preserves the storage of data Module is the most charged and can be waken up.
Method the most according to claim 2, it is characterised in that described in described terminal unit Data carry out the step protected particularly as follows:
Control described terminal unit to connect power supply at interior all hardware module Close All.
6. a terminal unit, it is characterised in that the base of terminal unit includes snap switch, normally makes With with when placing, snap switch is off state, and now GPIO level is high level, works as terminal unit When side is fallen, snap switch closes, and now GPIO level is low level, and described terminal unit also includes:
Detection module, for detecting whether the laying state of described terminal unit is in abnormal laying state;
Data protection module, for when the laying state of described terminal unit is in abnormal laying state, right Data in described terminal unit are protected;
Described detection module, is further used for poll predefined GPIO universal input/output level, The height of described GPIO level reflects the laying state of described terminal unit, when described GPIO level is higher than During predetermined level, described terminal unit is in normal laying state;When described GPIO level is less than described pre- If during level, described terminal unit is in abnormal laying state.
Terminal unit the most according to claim 6, it is characterised in that described terminal unit also includes:
Time delay module, is connected with described detection module and described data protection module respectively, is used for judging described Terminal unit is in whether persistent period of abnormal laying state meets the requirement of prefixed time interval, when meeting Time, directly trigger described data protection module;When being unsatisfactory for, postpone to trigger described data protection module.
Terminal unit the most according to claim 6, it is characterised in that described terminal unit is integrated Dynamo-electric brain or PC.
CN201110020424.0A 2011-01-18 2011-01-18 The method of data protection and terminal unit Active CN102591805B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110020424.0A CN102591805B (en) 2011-01-18 2011-01-18 The method of data protection and terminal unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110020424.0A CN102591805B (en) 2011-01-18 2011-01-18 The method of data protection and terminal unit

Publications (2)

Publication Number Publication Date
CN102591805A CN102591805A (en) 2012-07-18
CN102591805B true CN102591805B (en) 2016-07-06

Family

ID=46480491

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110020424.0A Active CN102591805B (en) 2011-01-18 2011-01-18 The method of data protection and terminal unit

Country Status (1)

Country Link
CN (1) CN102591805B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104464802A (en) * 2013-09-18 2015-03-25 联想(北京)有限公司 Storage device and data protection method
CN104915603A (en) * 2015-04-30 2015-09-16 努比亚技术有限公司 Terminal equipment data storage method and terminal equipment
CN106203163A (en) * 2016-06-30 2016-12-07 珠海市魅族科技有限公司 A kind of abnormality eliminating method, device and terminal unit

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101464828A (en) * 2007-12-19 2009-06-24 英业达股份有限公司 Evaluation method for main unit and its status
CN101593141A (en) * 2008-05-26 2009-12-02 和硕联合科技股份有限公司 Data protection method of nonvolatile memory device and computer installation thereof
CN101783504A (en) * 2009-01-16 2010-07-21 凹凸电子(武汉)有限公司 Protection circuit, battery system and protection method
CN101866203A (en) * 2009-04-14 2010-10-20 纬创资通股份有限公司 Electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101464828A (en) * 2007-12-19 2009-06-24 英业达股份有限公司 Evaluation method for main unit and its status
CN101593141A (en) * 2008-05-26 2009-12-02 和硕联合科技股份有限公司 Data protection method of nonvolatile memory device and computer installation thereof
CN101783504A (en) * 2009-01-16 2010-07-21 凹凸电子(武汉)有限公司 Protection circuit, battery system and protection method
CN101866203A (en) * 2009-04-14 2010-10-20 纬创资通股份有限公司 Electronic device

Also Published As

Publication number Publication date
CN102591805A (en) 2012-07-18

Similar Documents

Publication Publication Date Title
US9727248B2 (en) Dynamic IO operation timeout assignment for a solid state drive
CN109683696A (en) Fault of server power supply detection system, method, apparatus, equipment and medium
US8856534B2 (en) Method and apparatus for secure scan of data storage device from remote server
EP2270625B1 (en) System and method for processor utilization adjustment to improve deep c-state use
EP3036600B1 (en) Method and controller for power throttling system on portable device, corresponding portable device, and corresponding computer program product
US20110231676A1 (en) Power bus current bounding using local current-limiting soft-switches and device requirements information
CN106557145A (en) Circuit breaking protective system and its method
US9748787B2 (en) Information handling system battery charge management to support variable increased current use functions
US9396059B2 (en) Exchange error information from platform firmware to operating system
EP2765483A1 (en) Method and device for controlling shutdown of terminal
US8195874B2 (en) Storage apparatus and method for shredding storage medium
US20190042418A1 (en) Power button override for persistent memory enabled platforms
CN102591805B (en) The method of data protection and terminal unit
EP2798428B1 (en) Apparatus and method for managing operation of a mobile device
CN104765466A (en) Key control method and device for mobile terminal
EP2972826B1 (en) Multi-core binary translation task processing
AU2011385109B2 (en) Adaptive thermal throttling with user configuration capability
CN113204466A (en) Over-temperature protection method and electronic equipment
CN105354164A (en) Method and system for hot swapping of Multi-Host module of server
CN103500138A (en) Power management method and system and mobile terminal
EP2939081B1 (en) Periodic activity alignment
CN103455448A (en) Shake resisting method and system for server
CN102594575A (en) System and method of controlling sleep and awakening of server
US8356198B2 (en) Performing power management based on information regarding zones of devices in a system
CN112667588B (en) Intelligent terminal device and method for writing file system data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant