CN110032473A - Data guard method, device, electronic equipment and system - Google Patents
Data guard method, device, electronic equipment and system Download PDFInfo
- Publication number
- CN110032473A CN110032473A CN201910291636.9A CN201910291636A CN110032473A CN 110032473 A CN110032473 A CN 110032473A CN 201910291636 A CN201910291636 A CN 201910291636A CN 110032473 A CN110032473 A CN 110032473A
- Authority
- CN
- China
- Prior art keywords
- data
- power down
- electronic equipment
- volatile memory
- magnetic field
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
Abstract
The embodiment of the present application discloses method, apparatus, electronic equipment and the storage medium of a kind of data protection, and wherein method includes: to detect the magnetic field strength of electronic equipment current environment;Judge whether the magnetic field strength of current environment is greater than preset value;If so, interrupting the data of electronic equipment current transmission and saving the data in power down volatile memory into power down nonvolatile memory.When electronic equipment is in the higher environment of magnetic field strength, electronic equipment is it is possible that operation irregularity phenomenon, lead to the loss of vital data of user, pass through the data of interruption electronic equipment current transmission at this time, and save the data in power down volatile memory into power down nonvolatile memory, prevent the loss of vital data of user.It can be improved the Information Security of electronic equipment.
Description
Technical field
This application involves fields of communication technology, and in particular to a kind of data guard method, device, electronic equipment and storage are situated between
Matter.
Background technique
With the development of science and technology, more and more electronic equipments are manufactured, and each scene in life is all
There is magnetic fields can be higher in certain place magnetic field strengths due to the influence of some environmental factors, and electronic equipment will receive environment
In magnetic interference, especially will lead to mobile terminal operation irregularity when the magnetic field in environment is higher than threshold value, or even crash, use
Therefore the ongoing work in family interrupts, or even make loss of vital data, and imponderable loss can be caused to user.
Therefore, the prior art is defective, has much room for improvement and develops.
Summary of the invention
The embodiment of the present application provides a kind of data guard method, device, electronic equipment and storage medium, passes through detection electronics
It is current then to interrupt electronic equipment when judging that the magnetic field strength of current environment is greater than preset value for the magnetic field strength of equipment current environment
The data of transmission simultaneously save the data in power down volatile memory into power down nonvolatile memory.Prevent electronic equipment due to
Magnetic field strength is excessively high and operation irregularity, makes the loss of vital data of user.Improve the Information Security of electronic equipment.
In order to solve the above technical problems, present applicant proposes following technical schemes:
In a first aspect, the embodiment of the present application provides a kind of data guard method, including:
Detect the magnetic field strength of the electronic equipment current environment;
Judge whether the magnetic field strength of the current environment is greater than preset value;
If so, interrupt the data of the electronic equipment current transmission and by the data in power down volatile memory save to
In power down nonvolatile memory.
Second aspect, the embodiment of the present application provide a kind of data protecting device, including:
Detection module, for detecting the magnetic field strength of the electronic equipment current environment;
Judgment module, for judging whether the magnetic field strength of the current environment is greater than preset value;
Preserving module, for interrupting the electronics and setting when the magnetic field strength for judging the current environment is greater than preset value
The data of standby current transmission simultaneously save the data in power down volatile memory into power down nonvolatile memory.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, including memory, processor and are stored in storage
On device and the computer program that can run on a processor, the processor realize above-mentioned data protection side when executing described program
The step of method.
Fourth aspect, the embodiment of the present application provide a kind of storage medium, are stored thereon with computer program, the calculating
The step of machine program realizes above-mentioned data guard method when being executed by processor.
Then the embodiment of the present application judges the magnetic field of current environment by the magnetic field strength of detection electronic equipment current environment
Whether intensity is greater than preset value, if so, interrupting the data of electronic equipment current transmission and by the number in power down volatile memory
According to saving into power down nonvolatile memory, prevents electronic equipment from operation irregularity phenomenon occur, the significant data of user is caused to be lost
It loses, improves the safety of data in electronic equipment.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for
For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is the first pass schematic diagram of data guard method provided by the embodiments of the present application.
Fig. 2 is the second procedure schematic diagram of data guard method provided by the embodiments of the present application.
Fig. 3 is the first structure diagram of data protecting device provided by the embodiments of the present application.
Fig. 4 is the second structural schematic diagram of data protecting device provided by the embodiments of the present application.
Fig. 5 is the structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Specific embodiment
Schema is please referred to, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described
Embodiment be merely a part but not all of the embodiments of the present application.Based on the embodiment in the application, ability
Field technique personnel every other embodiment obtained without creative efforts belongs to the application protection
Range.
In the following description, the specific embodiment of the application will refer to the step as performed by one or multi-section computer
And symbol illustrates, unless otherwise stating clearly.Therefore, these steps and operation will have to mention for several times is executed by computer, this paper institute
The computer execution of finger includes by representing with the computer processing unit of the electronic signal of the data in a structuring pattern
Operation.This operation is converted at the data or the position being maintained in the memory system of the computer, reconfigurable
Or in addition change the running of the computer in mode known to the tester of this field.The maintained data structure of the data
For the provider location of the memory, there is the specific feature as defined in the data format.But the application principle is with above-mentioned text
Word illustrates that be not represented as a kind of limitation, this field tester will appreciate that plurality of step and behaviour as described below
Also it may be implemented in hardware.
Term " first ", " second " and " third " in the application etc. are for distinguishing different objects, rather than for retouching
State particular order.In addition, term " includes " and " having " and their any deformations, it is intended that cover and non-exclusive include.
Such as contain series of steps or module process, method, system, product or equipment be not limited to listed step or
Module, but some embodiments further include the steps that not listing or module or some embodiments further include for these processes,
Method, product or equipment intrinsic other steps or module.
The embodiment of the present application provides a kind of data guard method, device, electronic equipment and storage medium.It carries out individually below
It is described in detail.
Referring to Fig. 1, Fig. 1 is the flow diagram of data guard method provided by the embodiments of the present application.This method application
In electronic equipments such as smart phone, intelligent wearable device, tablet computer, smart televisions.Wherein this method step includes:
In step s101, the magnetic field strength of current environment is detected.
There is magnetic field in environment everywhere, but the magnetic field of different places is different, have by force have it is weak, if electronic equipment exists
Under one stronger magnetic field environment, it will lead to electronic equipment and the adverse effects such as communication is not normal, crashes, even explodes occur.
In the embodiment of the present application, by the detection to magnetic field environment, the intensity in magnetic field is obtained, wherein the mode of detection
It can be detected by the sensor carried in electronic equipment, such as Hall sensor, the external of electronic equipment can also be passed through
Equipment detects the magnetic field strength under current environment.
In step s 102, judge whether the magnetic field strength of the current environment is greater than preset value.
The maximum magnetic field strength that different electronic equipments can bear is different, and can bear in electronic equipment
One preset value is set within the scope of magnetic field strength, it is believed that in this preset value magnetic field strength below, electronic equipment can
It works normally, more than this preset value, it is believed that electronic equipment is under the higher environment of magnetic field strength, will lead to electronics
Equipment operation irregularity.
If detecting in the normal situation of the current magnetic field environment of electronic equipment, continue to test, to guarantee electronic equipment
Data safety.
In step s 103, if so, interrupting the data of the electronic equipment current transmission.
When the environmental magnetic field intensity for detecting that electronic equipment is presently in is more than preset value, electronic equipment can stop at this time
Data transmission, for example, stopping foradownloaded video, music etc..Alternatively, electronic equipment can stop a few thing, so as to subsequent preservation
Step.
In step S104, the data in power down volatile memory are saved into power down nonvolatile memory.
Power down volatile memory is the memory that data are easily lost in the case where electronics power down, for example, arbitrary access
Memory (random access memory, RAM).Power down nonvolatile memory be in the case where electronic equipment power down still
The memory of data can be saved, for example, read-only memory (Read-Only Memory, ROM), the read-only storage of disposable programmable
Device (Programmable Red-Only Memory, PROM), flash memory (Flash memory) etc..
In electronic equipment power down, the data stored in power down volatile memory can be removed all, for example, user is
Editing short message, in the case where electronic equipment power down, the text information edited can all be lost;User is using electronic equipment
When carrying out picture editor, the content edited can all lose.
When detecting environmental magnetic field intensity beyond threshold value, illustrate that electronic equipment may cause because of magnetic field strength is higher
Electronic device works are abnormal, before electronic equipment power-off, the data in power down volatile memory needed to be stored in power down not
In volatile memory.In order to avoid electronic equipment makes user data loss because magnetic field strength is excessively high so as to cause power-off.
In conclusion the present embodiment judges that the magnetic field of the current environment is strong by the magnetic field strength of detection current environment
Whether degree is greater than preset value, if so, interrupting the data of the electronic equipment current transmission and will be in power down volatile memory
Data are saved into power down nonvolatile memory.In order to avoid electronic equipment is because magnetic field strength is excessively high, so as to cause electronic equipment work
Make the abnormal loss of vital data for making user, improves the safety of data in electronic equipment.
Referring to Fig. 2, Fig. 2 is the second procedure schematic diagram of data guard method provided by the embodiments of the present application, wherein counting
Include: according to the specific steps of guard method
In step s 201, the magnetic field strength under electronic equipment current environment is detected.This step is identical as step S101,
This is not repeated.
In step S202, judge whether the magnetic field strength of the current environment is greater than preset value.This step and step
S102 is identical, and therefore not to repeat here.
In step S203, if so, interrupting the data of the electronic equipment current transmission.
It should be noted that electronics is set at this time after the magnetic field strength for judging electronic equipment current environment is greater than preset value
The standby transmission that can interrupt data, for example, user is using browser foradownloaded video, when download progress is 50%, at this time
Electronic equipment detects that current environment magnetic field strength is abnormal, then interrupts downloading task, prevent electronic equipment from crashing suddenly, cause to regard
The nodal information of frequency downloading is lost.
In step S204, judge whether the data in power down volatile memory are preset data.
It is understood that the data in power down volatile memory have it is important, have it is unessential, for example, important
Information can be the short message word content that the picture material of mapping program editor is used in user or user is editing,
The program code etc. write is used in user.Unessential information can be the historical information of application program operation, once
Historical information of code executed etc..
These data can be carried out with default processing, just include significant data only in preset data.Judging that power down is easy
It is available to there is significant data to need to save after losing the preset data in memory.
In step S205, if judging that the data in power down volatile memory are not preset datas in step S204,
Then without being saved to the data in power down volatile memory.
In step S206, if judging that the data in power down volatile memory are preset datas in step S204,
Priority is arranged to the preset data in power down volatile memory.
For example, the text information edited in power down volatile memory, can be classified as text information classification;
The code or program edited in power down volatile memory, can be classified as programming information classification;Power down is volatile to deposit
The music or game progress downloaded in reservoir, can be classified as entertainment information classification.It can be in each classification
Application program be arranged priority, or to each classification be arranged priority, priority is higher, then explanation need data to be saved
It is more important.
Priority, important application program, such as " QQ ", " wechat ", " short message " directly can also be arranged to application program
Etc. important communication applications, higher priority can be set, some unessential application programs can be set lower
Priority.
It, can be when data save, more after to the preset data in power down volatile memory, priority is set
Add and be accurately saved in important data, in addition, during data are restored more rapidly, simplifying Data Recovery Process.
In step S207, by priority be higher than pre-set priority power down volatile memory in preset data save to
In power down nonvolatile memory.
A priority can be preset, in pre-set priority data below, then it is assumed that it is unessential data,
Data more than priority are just important data, at this point, priority in power down volatile memory is higher than pre-set priority
Preset data is saved into power down nonvolatile memory.
In step S208, safety instruction information is shown.
It saves by the significant data in power down volatile memory to power down nonvolatile memory, electronic equipment can be shown
One safety instruction information is shown, to illustrate that electronic equipment is currently being in the excessively high environment of magnetic field strength, prompts user
This environment is left, or user is allowed to save the important information in electronic equipment, is then shut down.
In step S209, power-off operation is executed according to feedback result of the user to safety instruction information.
Electronic equipment, can be to peace in the case where user sees safety instruction information after showing safety instruction information
Full enlightening information makes a choice, for example, shutting down or shutting down immediately later, at this point, executing pass according to the feedback result of user
Machine operation.
In step S210, in preset time range, user does not feed back safety instruction information, then defaults execution
Power-off operation.
For electronic equipment after showing safety instruction information, user is different surely to view safety instruction information, can be with
One time range is set, for example, automatic shutdown after 1 minute, if user is within one minute not to safety instruction information
Feedback is made, security consideration is in, electronic equipment can automatic shutdown after 1 minute.Further enhance electronic equipment number
According to safety.
In conclusion the embodiment of the present application judges current magnetic by the magnetic field strength of detection electronic equipment current environment
Whether field intensity is greater than preset value, if so, interrupting the data of electronic equipment current transmission, then judges power down volatile memory
In data whether be preset data, then will be preferential if so, priority is arranged to the preset data in power down volatile memory
The preset data that grade is higher than in the power down volatile memory of pre-set priority is saved into power down nonvolatile memory, then electronics
Equipment can show a safety instruction information, and user can feed back safety instruction information, according to the feedback result of user,
Electronic equipment executes corresponding power-off operation, if user does not feed back safety instruction information, for electronic device data
Security consideration, in preset time range, user does not feed back safety instruction information, then default execution shutdown behaviour
Make.The data guard method recorded in the present embodiment can be improved the safety of electronic device data, higher in magnetic field strength
Under environment, it rapid saving important content and can shut down, ensure the data safety of electronic equipment.
Referring to Fig. 3, Fig. 3 is the first structure diagram of data protecting device provided by the embodiments of the present application.Wherein, number
According to include: in protective device 300 detection module 310, judgment module 320, preserving module 330, cue module 340 and shutdown module
350。
Wherein, detection module 310, for detecting the magnetic field strength of the electronic equipment current environment.
It is understood that in each environment in life, all there is magnetic fields, but the magnetic field of different places is not
With, have by force have it is weak, if electronic equipment under a stronger magnetic field environment, will lead to the situation of electronic device works exception
Occur.
Detection module 310 can be the detection module built in electronic equipment, be also possible to external detection module, detect mould
Block 310 is specifically as follows the detecting instruments such as torque magnetometer, Hall effect magnetometer, nucleus-magnetism-resonance magnetometer.
Judgment module 320, for judging whether the magnetic field strength of current environment is greater than preset value.
After module 310 detects the magnetic field strength of current environment after testing, judgment module 320 can be to current magnetic field
Intensity is judged that the maximum magnetic field strength that different electronic equipments can bear is different, can be in electronic equipment institute energy
One preset value is set within the scope of the magnetic field strength of receiving, it is believed that in this preset value magnetic field strength below, electronics is set
It is standby to work normally, more than this preset value, it is believed that electronic equipment is under the higher environment of magnetic field strength, can be led
Cause electronic equipment operation irregularity.
Preserving module 330, for interrupting the electronics when the magnetic field strength for judging the current environment is greater than preset value
The data of equipment current transmission simultaneously save the data in power down volatile memory into power down nonvolatile memory.
After judgment module 320 obtains judging result, if it is decided that the magnetic field strength of current environment is greater than preset value, then electric
Sub- equipment can stop data transmission, for example, stopping foradownloaded video, music etc..Alternatively, electronic equipment can stop a few thing.So
Afterwards, preserving module 330 can be saved in the significant data in power down volatile memory in power down nonvolatile memory, prevent electronics
Equipment leads to its operation irregularity because environmental magnetic field intensity is excessively high, makes the loss of vital data of user.
Specifically, preserving module 330 further include: judging submodule 331 and priority submodule 332.Referring to Fig. 4, Fig. 4
It is the second structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Wherein judging submodule 331, for judging whether the data in power down volatile memory are preset data, if so,
Priority then is arranged to the preset data in power down volatile memory.
It is understood that the data in power down volatile memory have it is important, have it is unessential, for example, important
Information can be the short message word content that the picture material of mapping program editor is used in user or user is editing,
The program code etc. write is used in user.Unessential information can be the historical information of application program operation, once
Historical information of code executed etc..Judgment module 331 can carry out default processing to these data at this time, only default
It just include significant data in data.It is available to have significant data after judging the preset data in power down volatile memory
It needs to save.
Priority submodule 332 will be preferential for priority to be arranged to the preset data in the power down volatile memory
The preset data that grade is higher than in the power down volatile memory of pre-set priority is saved into power down nonvolatile memory.
For example, the text information edited in power down volatile memory, can be classified as text information classification;
The code or program edited in power down volatile memory, can be classified as programming information classification;Power down is volatile to deposit
The music or game progress downloaded in reservoir, can be classified as entertainment information classification.
After priority is arranged to these preset datas in priority submodule 332, priority is higher than the pre- of pre-set priority
It, can be more quasi- when data save if data are saved from power down volatile memory into power down nonvolatile memory
True is saved in corresponding data category, in addition, during data are restored more rapidly, simplifying Data Recovery Process.
Cue module 340, for showing safety instruction information.
It saves by the significant data in power down volatile memory to power down nonvolatile memory, cue module 340
It can show a safety instruction information, to illustrate that electronic equipment is currently being in the excessively high environment of magnetic field strength, prompt
User leaves this environment, or user is allowed to save the important information in electronic equipment, then shuts down.
Shutdown module 350, for executing power-off operation according to feedback result of the user to the safety instruction information.
Electronic equipment, can be to peace in the case where user sees safety instruction information after showing safety instruction information
Full enlightening information makes a choice, and module 350 of shutting down at this time can provide shutdown selection option, for example, shutting down or closing immediately later
Machine, at this point, executing power-off operation according to the feedback result of user.
Wherein shutdown module 350 further include: shutdown submodule 351, in preset time range, user not to be to described
Safety instruction information is fed back, then defaults execution power-off operation.It is provided by the embodiments of the present application referring specifically to Fig. 4, Fig. 4
Second structural schematic diagram of electronic equipment.
For electronic equipment after showing safety instruction information, user is different surely to view safety instruction information, shutdown
A time range can be set in submodule 351, for example, automatic shutdown after 1 minute, if user is not right within one minute
Safety instruction information makes feedback, is in security consideration, and electronic equipment can automatic shutdown after 1 minute.
In conclusion the embodiment of the present application judges current magnetic by the magnetic field strength of detection electronic equipment current environment
Whether field intensity is greater than preset value, if so, interrupting the data of electronic equipment current transmission, then judges power down volatile memory
In data whether be preset data, then will be preferential if so, priority is arranged to the preset data in power down volatile memory
The preset data that grade is higher than in the power down volatile memory of pre-set priority is saved into power down nonvolatile memory, then electronics
Equipment can show a safety instruction information, and user can feed back safety instruction information, according to the feedback result of user,
Electronic equipment executes corresponding power-off operation, if user does not feed back safety instruction information, for electronic device data
Security consideration, in preset time range, user does not feed back safety instruction information, then default execution shutdown behaviour
Make.The data guard method recorded in the present embodiment can be improved the safety of electronic device data, higher in magnetic field strength
Under environment, it rapid saving important content and can shut down, ensure the data safety of electronic equipment.
Referring to Fig. 5, Fig. 5 is the structural schematic diagram of electronic equipment provided by the embodiments of the present application.
The electronic equipment includes: display unit 501, input unit 502, memory 503, central processing unit 504, power supply
The components such as 505 and sensor 506.It will be understood by those skilled in the art that the not structure paired terminal of terminal structure shown in Fig. 5
Restriction, may include perhaps combining certain components or different component layouts than illustrating more or fewer components.Its
In:
Display unit 501 can be used for showing information input by user or be supplied to user information and terminal it is various
Graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof.Display
Unit 501 may include display panel, optionally, can using liquid crystal display (LCD, Liquid Crystal Display),
The forms such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) configure display panel.Further
, touch sensitive surface can cover display panel, after touch sensitive surface detects touch operation on it or nearby, send center to
Processor 504 to determine the type of touch event, subsequent central processing unit 504 according to the type of touch event on a display panel
Corresponding visual output is provided.Although touch sensitive surface is defeated to realize as two independent components with display panel in Fig. 5
Enter and input function, but in some embodiments it is possible to it is touch sensitive surface is integrated with display panel and realize and output and input
Function.
Input unit 502 can be used for receiving the number or character information of input, and generate and user setting and function
Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, in a specific embodiment
In, input unit 502 may include touch sensitive surface and other input equipments.Touch sensitive surface, also referred to as touch display screen or touching
Control plate, collect user on it or nearby touch operation (such as user using any suitable object such as finger, stylus or
Operation of the attachment on touch sensitive surface or near touch sensitive surface), and corresponding connection dress is driven according to preset formula
It sets.Optionally, touch sensitive surface may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus is examined
The touch orientation of user is surveyed, and detects touch operation bring signal, transmits a signal to touch controller;Touch controller from
Touch information is received on touch detecting apparatus, and is converted into contact coordinate, then gives central processing unit 504, and can be received
Order that central processing unit 504 is sent simultaneously is executed.Furthermore, it is possible to using resistance-type, condenser type, infrared ray and surface sound
The multiple types such as wave realize touch sensitive surface.In addition to touch sensitive surface, input unit 502 can also include other input equipments.Specifically
Ground, other input equipments can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.),
One of trace ball, mouse, operating stick etc. are a variety of.
Memory 503 can be used for storing software program and module, and processor 504 is stored in memory 503 by operation
Software program and module, thereby executing various function application and data processing.Memory 504 can mainly include storage journey
Sequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one function
Such as sound-playing function, image player function) etc.;Storage data area, which can be stored, uses created data according to terminal
(such as audio data, phone directory etc.) etc..In addition, memory 503 may include high-speed random access memory, can also include
Nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Phase
Ying Di, memory 503 can also include Memory Controller, to provide processor 504 and input unit 502 to memory 503
Access.
Terminal further includes the power supply 505 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply pipe
Reason system and central processing unit 504 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system
The functions such as management.Power supply 505 can also include one or more direct current or AC power source, recharging system, power supply event
Hinder the random components such as detection circuit, power adapter or inverter, power supply status indicator.
Terminal may also include at least one sensor 506, for example, optical sensor, Magnetic Sensor, motion sensor and its
His sensor.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can root
The brightness of display panel is adjusted according to the light and shade of ambient light, proximity sensor can close display when terminal is moved in one's ear
Panel and/or backlight.As a kind of motion sensor, gravity accelerometer can detect (generally three in all directions
Axis) acceleration size, can detect that size and the direction of gravity when static, can be used to identify mobile phone posture application (such as
Horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;As for
The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor that terminal can also configure, it is no longer superfluous herein
It states.
Although being not shown, terminal can also include camera, bluetooth module etc., and details are not described herein.Specifically in this implementation
In example, the central processing unit 504 in terminal can be according to following instruction, by the process pair of one or more application program
The executable file answered is loaded into memory 503, and is run by central processing unit 504 and be stored in answering in memory 503
With program, to realize various functions:
Detect the magnetic field strength of the electronic equipment current environment;
Judge whether the magnetic field strength of the current environment is greater than preset value;
If so, interrupt the data of the electronic equipment current transmission and by the data in power down volatile memory save to
In power down nonvolatile memory.
It will appreciated by the skilled person that all or part of the steps in the various methods of above-described embodiment can be with
It is completed by instructing, or relevant hardware is controlled by instruction to complete, which can store computer-readable deposits in one
In storage media, and is loaded and executed by processor.
For this purpose, the embodiment of the present application provides a kind of storage medium, wherein being stored with a plurality of instruction, which can be processed
Device is loaded, to execute the step in any data guard method provided by the embodiment of the present application.For example, the instruction can
To execute following steps:
Detect the magnetic field strength of the electronic equipment current environment;
Judge whether the magnetic field strength of the current environment is greater than preset value;
If so, interrupt the data of the electronic equipment current transmission and by the data in power down volatile memory save to
In power down nonvolatile memory.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
Wherein, which may include: read-only memory (ROM, Read Only Memory), random access memory
Body (RAM, Random Access Memory), disk or CD etc..
By the instruction stored in the storage medium, any data provided by the embodiment of the present application can be executed and protected
Step in maintaining method, it is thereby achieved that achieved by any data guard method provided by the embodiment of the present application
Beneficial effect is detailed in the embodiment of front, and details are not described herein.
Above to a kind of data guard method, device, electronic equipment and storage medium provided by the embodiment of the present application into
It has gone and has been discussed in detail, specific examples are used herein to illustrate the principle and implementation manner of the present application, the above implementation
The explanation of example is merely used to help understand the present processes and its core concept;Meanwhile for those skilled in the art, according to
According to the thought of the application, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification
It should not be construed as the limitation to the application.
Claims (11)
1. a kind of data guard method is applied to electronic equipment, which is characterized in that the described method includes:
Detect the magnetic field strength of the electronic equipment current environment;
Judge whether the magnetic field strength of the current environment is greater than preset value;
If so, interrupting the data of the electronic equipment current transmission and saving the data in power down volatile memory to power down
In nonvolatile memory.
2. data guard method according to claim 1, which is characterized in that protected by the data in power down volatile memory
It deposits to power down nonvolatile memory, the method also includes:
Show safety instruction information;
Power-off operation is executed according to feedback result of the user to the safety instruction information.
3. data guard method according to claim 2, which is characterized in that described according to the anti-of the safety instruction information
Feedback result executes power-off operation
In preset time range, user does not feed back the safety instruction information, then defaults execution power-off operation.
4. data guard method according to claim 1, which is characterized in that the data by power down volatile memory
It saves into power down nonvolatile memory, comprising:
Judge whether the data in the power down volatile memory are preset data;
If so, saving the preset data in the power down volatile memory.
5. data guard method according to claim 4, which is characterized in that described to save in the power down volatile memory
Preset data, comprising:
Priority is arranged to the preset data in the power down volatile memory;
Priority is saved higher than the preset data in the power down volatile memory of pre-set priority to the power down and is not easy
It loses in memory.
6. a kind of data protecting device, it is applied to electronic equipment, which is characterized in that described device includes:
Detection module, for detecting the magnetic field strength of the electronic equipment current environment;
Judgment module, for judging whether the magnetic field strength of the current environment is greater than preset value;
Preserving module, for interrupting the electronic equipment and working as when the magnetic field strength for judging the current environment is greater than preset value
The data of preceding transmission simultaneously save the data in power down volatile memory into power down nonvolatile memory.
7. data protecting device according to claim 6, which is characterized in that described device further include:
Cue module, for showing safety instruction information;
Shutdown module, for executing power-off operation according to feedback result of the user to the safety instruction information.
8. according to data protecting device described in right 7, which is characterized in that the shutdown module includes:
Shut down submodule, is used in preset time range, and user does not feed back the safety instruction information, then default is held
Row power-off operation.
9. data protecting device according to claim 6, which is characterized in that the preserving module includes:
Judging submodule, whether the data for judging in the power down volatile memory are preset data, if so, saving institute
State the preset data in power down volatile memory;
Priority is arranged to the preset data in the power down volatile memory in priority submodule, priority is higher than default
Preset data in the power down volatile memory of priority is saved into the power down nonvolatile memory.
10. a kind of electronic equipment characterized by comprising
The memory for being stored with executable program code, the processor coupled with the memory;
The processor calls the executable program code stored in the memory, executes as claim 1 to 5 is any
The step in data guard method described in.
11. a kind of storage medium, which is characterized in that the storage medium is stored with a plurality of instruction, and described instruction is suitable for processor
It is loaded, the step in 1 to 5 described in any item data guard methods is required with perform claim.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910291636.9A CN110032473A (en) | 2019-04-12 | 2019-04-12 | Data guard method, device, electronic equipment and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910291636.9A CN110032473A (en) | 2019-04-12 | 2019-04-12 | Data guard method, device, electronic equipment and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110032473A true CN110032473A (en) | 2019-07-19 |
Family
ID=67238086
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910291636.9A Pending CN110032473A (en) | 2019-04-12 | 2019-04-12 | Data guard method, device, electronic equipment and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110032473A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111650920A (en) * | 2020-05-19 | 2020-09-11 | 海信(山东)空调有限公司 | Household appliance fault storage and query method and household appliance |
CN112581995A (en) * | 2020-12-17 | 2021-03-30 | 北京智芯微电子科技有限公司 | Data processing method, system and device for magnetic storage medium |
CN112817531A (en) * | 2021-01-25 | 2021-05-18 | 惠州Tcl移动通信有限公司 | Magnetic field anti-interference method, terminal and computer readable storage medium |
CN113274517A (en) * | 2021-05-19 | 2021-08-20 | 深圳瑞格泰科医疗科技有限公司 | Self-adaptive magnetic field intensity non-magnetic ultraviolet disinfection system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102638615A (en) * | 2012-03-28 | 2012-08-15 | 惠州Tcl移动通信有限公司 | Cellphone and control method thereof |
CN103260182A (en) * | 2013-04-27 | 2013-08-21 | 苏州洁祥电子有限公司 | Car networking system and data backup method thereof |
CN104914975A (en) * | 2014-03-10 | 2015-09-16 | 鸿富锦精密工业(武汉)有限公司 | Computer energy saving system and method |
CN105893173A (en) * | 2015-12-10 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Caching data processing method and device |
CN107077411A (en) * | 2016-09-23 | 2017-08-18 | 深圳市大疆创新科技有限公司 | Information cuing method and remote control applied to remote control |
CN107329700A (en) * | 2017-06-29 | 2017-11-07 | 郑州云海信息技术有限公司 | A kind of distributed type assemblies date storage method and system |
CN108804290A (en) * | 2018-06-13 | 2018-11-13 | 姜锋 | A kind of method and system for movable storage device information transmission security |
-
2019
- 2019-04-12 CN CN201910291636.9A patent/CN110032473A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102638615A (en) * | 2012-03-28 | 2012-08-15 | 惠州Tcl移动通信有限公司 | Cellphone and control method thereof |
CN103260182A (en) * | 2013-04-27 | 2013-08-21 | 苏州洁祥电子有限公司 | Car networking system and data backup method thereof |
CN104914975A (en) * | 2014-03-10 | 2015-09-16 | 鸿富锦精密工业(武汉)有限公司 | Computer energy saving system and method |
CN105893173A (en) * | 2015-12-10 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Caching data processing method and device |
CN107077411A (en) * | 2016-09-23 | 2017-08-18 | 深圳市大疆创新科技有限公司 | Information cuing method and remote control applied to remote control |
CN107329700A (en) * | 2017-06-29 | 2017-11-07 | 郑州云海信息技术有限公司 | A kind of distributed type assemblies date storage method and system |
CN108804290A (en) * | 2018-06-13 | 2018-11-13 | 姜锋 | A kind of method and system for movable storage device information transmission security |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111650920A (en) * | 2020-05-19 | 2020-09-11 | 海信(山东)空调有限公司 | Household appliance fault storage and query method and household appliance |
CN111650920B (en) * | 2020-05-19 | 2021-12-10 | 海信(山东)空调有限公司 | Household appliance fault storage and query method and household appliance |
CN112581995A (en) * | 2020-12-17 | 2021-03-30 | 北京智芯微电子科技有限公司 | Data processing method, system and device for magnetic storage medium |
CN112817531A (en) * | 2021-01-25 | 2021-05-18 | 惠州Tcl移动通信有限公司 | Magnetic field anti-interference method, terminal and computer readable storage medium |
CN113274517A (en) * | 2021-05-19 | 2021-08-20 | 深圳瑞格泰科医疗科技有限公司 | Self-adaptive magnetic field intensity non-magnetic ultraviolet disinfection system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110032473A (en) | Data guard method, device, electronic equipment and system | |
CN104090708B (en) | The control method of portable intelligent terminal and device | |
CN108574775A (en) | Detect the method for the expansion of battery and the electronic equipment using this method | |
CN107181559B (en) | Processing method, device, storage medium and the terminal of radio frequency interference | |
CN108595237A (en) | A kind of method and terminal of display content | |
CN103530040A (en) | Method, device and electronic equipment for moving target element | |
CN104077184B (en) | A kind of course control method and computer system of application program | |
CN106454456A (en) | Video playing control method and mobile terminal | |
CN108647160A (en) | USB force downloads circuit, mobile terminal, method for down loading and data line | |
CN104267903A (en) | Method and device for displaying multimedia lyric information | |
CN110134652A (en) | Recovery method, device, electronic equipment and the storage medium of cache file | |
CN106791175A (en) | The reminding method and mobile terminal of a kind of event | |
CN109871246A (en) | A kind of message display method and terminal device | |
CN104965667A (en) | Method and mobile terminal for controlling screen-on of mobile terminal | |
US20200202813A1 (en) | Method for adjusting brightness of display screen and electronic device employing the method | |
CN108763317A (en) | A kind of auxiliary chooses the method and terminal device of picture | |
CN107390922A (en) | virtual touch control method, device, storage medium and terminal | |
CN105302693A (en) | Time management method and system and electronic device | |
CN104516474A (en) | Information processing method and electronic device | |
CN108932086A (en) | Display methods, device and the storage medium of application interface | |
US9884257B2 (en) | Method for preventing misoperations of intelligent terminal, and intelligent terminal | |
CN109189298A (en) | A kind of language switching method and terminal | |
CN110471870A (en) | Method, apparatus, electronic equipment and the storage medium of multisystem operation | |
CN110162234A (en) | A kind of application control method and terminal device | |
CN107066860B (en) | A kind of fingerprint identification method and mobile terminal |
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: 20190719 |