CN106339168A - Screen control method and device - Google Patents

Screen control method and device Download PDF

Info

Publication number
CN106339168A
CN106339168A CN201610702692.3A CN201610702692A CN106339168A CN 106339168 A CN106339168 A CN 106339168A CN 201610702692 A CN201610702692 A CN 201610702692A CN 106339168 A CN106339168 A CN 106339168A
Authority
CN
China
Prior art keywords
magnetic field
electronic equipment
interference
screen
event
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610702692.3A
Other languages
Chinese (zh)
Other versions
CN106339168B (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610702692.3A priority Critical patent/CN106339168B/en
Publication of CN106339168A publication Critical patent/CN106339168A/en
Application granted granted Critical
Publication of CN106339168B publication Critical patent/CN106339168B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a screen control method and a screen control device. The screen control method comprises the following steps: when Hall potential change is detected on electronic equipment by using a Hall sensor, judging whether an environment of the electronic equipment is disturbed by a disturbing magnetic field or not; when confirming that the environment of the electronic equipment is disturbed by the disturbing magnetic field, detecting the distance between a protecting sleeve of the electronic equipment and the screen of the electronic equipment by using a distance sensor; judging whether a screen lightening event or screen off event is triggered or not according to the distance, wherein the screen lightening event is an event that the screen of the electronic equipment is lightened, and the screen off event is an event that the screen of the electronic equipment is powered off. With the combination of the Hall sensor and the distance sensor, mal-judgment caused by the situation that disturbance of the disturbing magnetic field is only judged according to the output result of the Hall sensor can be avoided, and thus poor use experience caused by the mal-judgment can be avoided for users.

Description

Screen control method and device
Technical field
The application is related to electronic technology field, more particularly, to screen control method and device.
Background technology
With scientific and technological development, the electronic equipment such as mobile phone, panel computer is increasingly welcome by user, and user uses electronics The occasion of equipment also gets more and more.In order to protect electronic equipment to be not damaged by, electronic equipment can be configured with protective case.By Hall element is installed on electronic equipment mainboard and Magnet is installed on the protective sleeve, to realize the set control of electronic equipment join protection The screen of electronic equipment processed is lighted or is extinguished.For example, when protective case closes, the Magnet on protective case causes in Hall element There is potential change in portion, trigger screen event of going out, so that screen extinguishes, when opening protective case, triggers bright screen event, so that Screen is lighted.
But have near electronic equipment interference magnetic field when, lighted by the testing result control screen of Hall element or Go out screen it may appear that controlling inaccurate situation.
Content of the invention
For overcoming problem present in correlation technique, present disclose provides screen control method and device.
According to the embodiment of the present disclosure in a first aspect, providing a kind of screen control method, methods described includes:
When Hall voltage change is detected by the Hall element on electronic equipment, judge residing for described electronic equipment Whether environment is interfered magnetic interference;
When the described electronic equipment local environment of determination is interfered magnetic interference, described electricity is detected by range sensor The distance of the screen with respect to described electronic equipment for the protective case that sub- equipment is dressed;
Judge whether to trigger bright screen event or screen event of going out according to institute's detecting distance, described bright screen event is by described electronics The event that the screen of equipment is lighted, described screen event of going out is by the event of the screen breath screen of described electronic equipment.
In one example, described judge whether electronic equipment local environment is interfered magnetic interference, comprising:
The magnetic field intensity that magnetic field sensor according to being arranged on described protective case is detected judges ring residing for electronic equipment Whether border is interfered magnetic interference, wherein, in described protective case closure or opening procedure, described magnetic field sensor with described The relative position of protective case upper magnet is fixed.
In one example, described judge whether electronic equipment local environment is interfered magnetic interference, comprising:
Obtain field strength values and/or magnetization direction from setting magnetic field sensor on an electronic device;
Judge whether electronic equipment local environment is subject to according to acquired field strength values and/or magnetization direction dry Disturb magnetic interference.
In one example, the field strength values acquired in described basis and/or magnetization direction judge electronic equipment Whether local environment is interfered magnetic interference, at least includes a kind of following modes:
When acquired field strength values are more than default magnetic field intensity threshold value, judge that electronic equipment local environment is interfered Magnetic interference;
When acquired magnetization direction is different from default magnetization direction, judge that electronic equipment local environment is subject to Interference magnetic interference, described default magnetization direction is the magnetic that described magnetic field sensor detects under the influence of interference-free magnetic field Field direction.
In one example, described default magnetic field intensity threshold value determines according to maximum magnetic field strength value, described maximum field Intensity level is that the magnetic field that described magnetic field sensor detects in described protective case closure state under the influence of interference-free magnetic field is strong Angle value;
Or, described default magnetic field intensity threshold value is true with the value preset of the first critical magnetic field strength according to maximum magnetic field strength value Fixed, described maximum magnetic field strength value be under the influence of interference-free magnetic field described magnetic field sensor in described protective case closure state The field strength values detecting, described first critical magnetic field strength is that Hall element triggering is bright under the influence of interference-free magnetic field The field strength values that during screen event, described magnetic field sensor detects;
Or, described default magnetic field intensity threshold value determines according to the second critical magnetic field strength, described default magnetic field intensity side To in opposite direction with the second critical magnetic field strength, described second critical magnetic field strength be under the influence of interference-free magnetic field suddenly Your sensor-triggered go out screen event when the field strength values that detect of described magnetic field sensor.
In one example, methods described also includes:
When determination electronic equipment local environment is not interfered magnetic interference, by the output of described Hall element Result judges whether to trigger bright screen event or screen event of going out;
Or, when determination electronic equipment local environment is not interfered magnetic interference, by described Hall element Output result and institute's detecting distance judge whether to trigger bright screen event or screen event of going out simultaneously.
According to the second aspect of the embodiment of the present disclosure, provide a kind of screen control device, described device includes:
Interference magnetic field judge module, is configured to Hall voltage change is being detected by the Hall element on electronic equipment During change, judge whether described electronic equipment local environment is interfered magnetic interference;
Apart from acquisition module, it is configured to, when the described electronic equipment local environment of determination is interfered magnetic interference, lead to Cross the distance that range sensor detects the screen that the protective case dressed of described electronic equipment is with respect to described electronic equipment;
Event trigger module, is configured to judge whether to trigger bright screen event or screen event of going out, institute according to institute's detecting distance Stating bright screen event is the event lighting the screen of described electronic equipment, and described screen event of going out is by the screen of described electronic equipment The event of breath screen.
In one example, described interference magnetic field judge module includes:
First judging submodule, is configured to the magnetic field detected according to the magnetic field sensor being arranged on described protective case Intensity judges whether electronic equipment local environment is interfered magnetic interference, wherein, in described protective case closure or opening procedure In, the relative position of described magnetic field sensor and described protective case upper magnet is fixed.
In one example, described interference magnetic field judge module includes:
Parameter acquiring submodule, is configured to obtain field strength values from setting magnetic field sensor on an electronic device And/or magnetization direction;
Second judging submodule, is configured to judge electricity according to acquired field strength values and/or magnetization direction Whether sub- equipment local environment is interfered magnetic interference.
In one example, described second judging submodule at least includes following seed module:
Intensity level judging submodule, when being configured to acquired field strength values more than default magnetic field intensity threshold value, sentences Determine electronic equipment local environment to be interfered magnetic interference;
Walking direction submodule, be configured to acquired magnetization direction different from default magnetization direction when, Judge that electronic equipment local environment is interfered magnetic interference, under the influence of described default magnetization direction is interference-free magnetic field The magnetic direction that described magnetic field sensor detects.
In one example, described default magnetic field intensity threshold value determines according to maximum magnetic field strength value, described maximum field Intensity level is that the magnetic field that described magnetic field sensor detects in described protective case closure state under the influence of interference-free magnetic field is strong Angle value;
Or, described default magnetic field intensity threshold value is true with the value preset of the first critical magnetic field strength according to maximum magnetic field strength value Fixed, described maximum magnetic field strength value be under the influence of interference-free magnetic field described magnetic field sensor in described protective case closure state The field strength values detecting, described first critical magnetic field strength is that Hall element triggering is bright under the influence of interference-free magnetic field The field strength values that during screen event, described magnetic field sensor detects;
Or, described default magnetic field intensity threshold value determines according to the second critical magnetic field strength, described default magnetic field intensity side To in opposite direction with the second critical magnetic field strength, described second critical magnetic field strength be under the influence of interference-free magnetic field suddenly Your sensor-triggered go out screen event when the field strength values that detect of described magnetic field sensor.
In one example, described event trigger module is also configured to
When determination electronic equipment local environment is not interfered magnetic interference, by the output of described Hall element Result judges whether to trigger bright screen event or screen event of going out;
Or, when determination electronic equipment local environment is not interfered magnetic interference, by described Hall element Output result and institute's detecting distance judge whether to trigger bright screen event or screen event of going out simultaneously.
According to the third aspect of the embodiment of the present disclosure, provide a kind of screen control device, comprising:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
When Hall voltage change is detected by the Hall element on electronic equipment, judge residing for described electronic equipment Whether environment is interfered magnetic interference;
When the described electronic equipment local environment of determination is interfered magnetic interference, described electricity is detected by range sensor The distance of the screen with respect to described electronic equipment for the protective case that sub- equipment is dressed;
Judge whether to trigger bright screen event or screen event of going out according to institute's detecting distance, described bright screen event is by described electronics The event that the screen of equipment is lighted, described screen event of going out is by the event of the screen breath screen of described electronic equipment.
The technical scheme that embodiment of the disclosure provides can include following beneficial effect:
The disclosure, when Hall voltage change is detected by the Hall element on electronic equipment, judges electronic equipment institute Whether place's environment is interfered magnetic interference, determine electronic equipment local environment be interfered magnetic interference when, by distance The protective case that sensor detection electronic equipment is dressed, with respect to the distance of the screen of electronic equipment, judges according to institute's detecting distance Whether trigger bright screen event or screen event of going out.By being combined Hall element with range sensor, such that it is able to avoid Only carry out judging the erroneous judgement leading to by the output result of Hall element when being interfered magnetic interference and control by mistake, and then Erroneous judgement is avoided to bring bad Consumer's Experience to user.
The disclosure can obtain magnetic field intensity from setting magnetic field sensor on the protective sleeve, strong by acquired magnetic field Whether degree judges whether electronic equipment local environment is interfered magnetic interference, thus realize automatic decision being currently interfered magnetic Field interference, need not manually participate in.
The disclosure field strength values detecting and/or magnetization direction can judge electronic equipment by magnetic field sensor Whether local environment is interfered magnetic interference, thus realizing automatic decision, need not manually participate in, cost-effective, it is to avoid artificial Judge that lead to fails to judge.
The disclosure is when acquired field strength values are more than default magnetic field intensity threshold value it is possible to determine that residing for electronic equipment Environment is interfered magnetic interference, thus realizing judging whether electronic equipment local environment is interfered magnetic by field strength values Field interference;When acquired magnetization direction is different from default magnetization direction, the disclosure can also judge that electronics sets Standby local environment is interfered magnetic interference, thus realizing judging whether electronic equipment local environment is subject to by magnetization direction To interference magnetic interference, easily realize.
The default magnetic field intensity threshold value of the disclosure can determine according to maximum magnetic field strength value, as long as thus realizing acquired Field strength values be more than default magnetic field intensity threshold value, all think the magnetic interference that is currently interfered, then do not pass further according to Hall The output result of sensor carries out event triggering.
The default magnetic field intensity threshold value of the disclosure can be according to maximum magnetic field strength value and the first critical magnetic field strength Value preset determines, such that it is able to avoid opening the abnormal conditions that protective case does not but light screen.
The default magnetic field intensity threshold value of the disclosure can determine according to the second critical magnetic field strength, described default magnetic field is strong Degree direction can be the opposite direction of the second critical magnetic field strength, such that it is able to avoid closure protective case but not extinguish screen Abnormal conditions, and then avoid the electricity that bright screen leads to waste.
The disclosure, when determination electronic equipment local environment is not interfered magnetic interference, can adopt Hall element Output result judge whether to trigger bright screen event or screen event of going out, easily realize, and can avoid only using in any situation Range sensor carries out the erroneous judgement judging to lead to.
The disclosure, when determination electronic equipment local environment is not interfered magnetic interference, can pass through Hall element Output result and institute's detecting distance judge whether to trigger bright screen event or screen event of going out, thus realizing improving the standard judging simultaneously Really rate, and improve Consumer's Experience, it is to avoid judge the worry brought to user by accident.
It should be appreciated that above general description and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.
Brief description
Accompanying drawing herein is merged in description and constitutes the part of this specification, shows the enforcement meeting the disclosure Example, and be used for explaining the principle of the disclosure together with description.
Fig. 1 is a kind of flow chart of screen control method according to an exemplary embodiment for the disclosure.
Fig. 2 is the flow chart of another kind of screen control method according to an exemplary embodiment for the disclosure.
Fig. 3 is a kind of block diagram of screen control device according to an exemplary embodiment for the disclosure.
Fig. 4 is the block diagram of another kind of screen control device according to an exemplary embodiment for the disclosure.
Fig. 5 is the block diagram of another kind of screen control device according to an exemplary embodiment for the disclosure.
Fig. 6 is the block diagram of another kind of screen control device according to an exemplary embodiment for the disclosure.
Fig. 7 is a kind of block diagram for screen control device according to an exemplary embodiment for the disclosure.
Specific embodiment
Here will in detail exemplary embodiment be illustrated, its example is illustrated in the accompanying drawings.Explained below is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with such as appended The example of the consistent apparatus and method of some aspects being described in detail in claims, the disclosure.
The term using in the disclosure is the purpose only merely for description specific embodiment, and is not intended to be limiting the disclosure. " a kind of ", " described " and " being somebody's turn to do " of singulative used in disclosure and the accompanying claims book is also intended to including most Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wraps Containing one or more associated any or all possible combination listing project.
It will be appreciated that though various information may be described using term first, second, third, etc. in the disclosure, but this A little information should not necessarily be limited by these terms.These terms are only used for same type of information is distinguished from each other out.For example, without departing from In the case of disclosure scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determining ".
As shown in figure 1, Fig. 1 is a kind of flow process of screen control method according to an exemplary embodiment for the disclosure Figure, the method can be used in electronic equipment, comprises the following steps 101 to step 103:
In a step 101, when Hall voltage change is detected by the Hall element on electronic equipment, judge electronics Whether equipment local environment is interfered magnetic interference.
In a step 102, when the described electronic equipment local environment of determination is interfered magnetic interference, by Distance-sensing The protective case that the device described electronic equipment of detection is dressed is with respect to the distance of the screen of electronic equipment.
In step 103, judge whether to trigger bright screen event or screen event of going out, described bright screen event according to institute's detecting distance It is the event that the screen of electronic equipment is lighted, described screen event of going out is by the event of the screen breath screen of electronic equipment.
In the embodiment of the present disclosure, electronic equipment can be smart mobile phone, panel computer, pda (personal digital Assistant, personal digital assistant), E-book reader, multimedia player etc. be provided with the electronics of Hall element and produce Product.In order to protect electronic equipment to be not damaged by, it can be electronic equipment protective case.Protective case can include moving component and Fixation kit.Moving component is properly termed as protection cap again, is can be with the part of activity operations.Permissible on the moving component of protective case Magnet is installed, to cause Hall voltage change in Hall element during protective case opens or closes.
Hall element can be arranged on the mainboard of electronic equipment, the moving component on opening or closing protective case When, Hall element can detect Hall voltage and change, and electronic equipment can be sentenced according to the output result of Hall element Whether disconnected protective case is opened or is closed.
Range sensor is used for detecting the distance that the moving component on protective case is with respect to the screen of electronic equipment.Distance passes Sensor can be the range sensor or the distance biography passing through ultrasound examination distance by infrared emission detecting distance Sensor etc..Range sensor can be arranged on an electronic device it is also possible to be arranged in the fixed component of protective case.When distance passes When sensor is arranged on an electronic device, set position is to detect moving component and electronic equipment screen distance on protective case Position, may determine that the moving component of protective case is in away from screen according to moving component and electronic equipment screen distance State, or the state close to screen.If range sensor is arranged in the fixed component of protective case, range sensor with Electronic equipment is attached by way of wired or wireless, so that electronic equipment can get what range sensor detected Distance, and the state away from screen is according to the moving component that acquired distance may determine that protective case, or close to screen The state of curtain.
By when the protective case that electronic equipment is dressed is opened or is closed, or when being subject to external interference magnetic interference, Hall element on electronic equipment all can detect Hall voltage and change, the number therefore only being exported by Hall element According to determining whether to trigger bright screen event or screen event of going out, can lead to judge by accident.Therefore, the disclosure combines Hall element and distance passes Sensor is judged, can avoid judging by accident, and then avoid false triggering bright screen event or screen event of going out.
Wherein, interference magnetic field is except normal magnetic fluxs such as earth's magnetic field, the magnetic fields of electronic equipment dressed protective case upper magnet generation Magnetic field beyond, under the interference in interference magnetic field, the data according only to Hall element output cannot correctly judge whether to send out Protective case opening operation or shutoff operation are given birth to.Therefore, Hall voltage is being detected by the Hall element on electronic equipment During change, first judge whether electronic equipment local environment is interfered magnetic interference, determining that electronic equipment local environment is subject to During interference magnetic interference, the protective case dressed by range sensor detection electronic equipment is with respect to the screen of electronic equipment Distance.Protective case, with respect to the distance of the screen of electronic equipment, is the screen with respect to electronic equipment for the moving component of protective case Distance.May determine that by obtaining this distance the moving component of protective case is in the state away from screen, or close to screen The state of curtain, determines whether to trigger bright screen event or screen event of going out.Specifically, protect if determined according to institute's detecting distance The moving component of sheath is in the state away from screen, then trigger bright screen event, if determining protective case according to institute's detecting distance Moving component be in state close to screen, then triggering is gone out screen event.
In an optional implementation, when determination electronic equipment local environment is not interfered magnetic interference, Can judge whether to trigger bright screen event or screen event of going out by the output result of described Hall element.
It can be seen that, the present embodiment, can be using suddenly when determination electronic equipment local environment is not interfered magnetic interference The output result of your sensor judges whether to trigger bright screen event or screen event of going out, and easily realizes, and can avoid any Situation only carries out the erroneous judgement judging to lead to range sensor.
In another optional implementation, determining that electronic equipment local environment is not interfered magnetic interference When, judge whether to trigger bright screen event or screen thing of going out by the output result and institute's detecting distance of described Hall element simultaneously Part.
This embodiment can pass through the output result of Hall element and institute's detecting distance judges whether to trigger bright screen simultaneously Event or screen event of going out, just trigger this event when judging triggering similar events according to output result and institute's detecting distance, otherwise Do not process.
It can be seen that, the present embodiment, can be by suddenly when determination electronic equipment local environment is not interfered magnetic interference The output result of your sensor and institute's detecting distance judge whether to trigger bright screen event or screen event of going out simultaneously, thus realizing improving The accuracy rate judging, and improve Consumer's Experience, it is to avoid judge the worry brought to user by accident.
As seen from the above-described embodiment, the disclosure is detecting Hall voltage change by the Hall element on electronic equipment When, judge whether electronic equipment local environment is interfered magnetic interference, determining that electronic equipment local environment is interfered magnetic During interference, the distance that the protective case dressed of electronic equipment is with respect to the screen of electronic equipment is detected by range sensor, Judge whether to trigger bright screen event or screen event of going out according to institute's detecting distance.By Hall element is carried out with range sensor In conjunction with such that it is able to avoid when being interfered magnetic interference only carrying out judging leading to by the output result of Hall element Erroneous judgement, and then avoid erroneous judgement to bring bad Consumer's Experience to user.
Judge that whether the be interfered mode of magnetic interference of electronic equipment local environment has many kinds, be exemplified below wherein several The mode of kind illustrates.
In an optional implementation, when receiving interference instruction, judge whether electronic equipment local environment is subject to To interference magnetic interference.Interference instruction can be the instruction that user triggers generation by way of triggering keys or buttons, and this is done Disturb instruction and represent that current environment is interfered magnetic interference.
It can be seen that, realize disturbing the judgement in magnetic field by way of interference instructs, easily realize.
In another optional implementation, the magnetic that the magnetic field sensor according to being arranged on described protective case is detected Field intensity judges whether electronic equipment local environment is interfered magnetic interference, wherein, in described protective case closure or opened Cheng Zhong, the relative position of described magnetic field sensor and described protective case upper magnet is fixed.
In this embodiment it is possible to magnetic field sensor is arranged on the protective sleeve, and magnetic field sensor and magnetic on protective case The relative position of ferrum is fixed, so that the shadow of the detected magnetic field intensity of magnetic field sensor unprotected set closing course and opening process Ring, the magnetic field intensity that is, magnetic field sensor detects in protective case closing course with opening process is identical or differs not at one In the range of big magnetic field intensity.
In one example, the magnetic field that can be detected according to magnetic field sensor in protective case closing course and opening process Intensity arranges a magnetic field intensity threshold range.If the magnetic field intensity that magnetic field sensor detects is in magnetic field intensity threshold range Interior, then judge that electronic equipment local environment is not interfered magnetic interference;If the magnetic field intensity that magnetic field sensor detects Not in magnetic field intensity threshold range, then judge that electronic equipment local environment is interfered magnetic interference.
Further, since magnetic field sensor arranges on the protective sleeve, for magnetic field sensing that can be from setting on the protective sleeve Magnetic field intensity is obtained, electronic equipment can be connected with magnetic field sensor by way of wired or wireless, to get in device The magnetic field intensity that magnetic field sensor detects.
It can be seen that, in this embodiment it is possible to obtain magnetic field intensity from setting magnetic field sensor on the protective sleeve, pass through Acquired magnetic field intensity judges whether electronic equipment local environment is interfered magnetic interference, thus realize automatic decision being currently The no magnetic interference that is interfered, need not manually participate in.
In another optional implementation, magnetic field can be obtained from setting magnetic field sensor on an electronic device Intensity level and/or magnetization direction, judge electronic equipment institute according to acquired field strength values and/or magnetization direction Whether place's environment is interfered magnetic interference.As shown in Fig. 2 Fig. 2 to be the disclosure another according to an exemplary embodiment The flow chart planting screen control method, the method can be used in electronic equipment, and the method comprises the following steps 201 to step 204:
In step 201, when Hall voltage change is detected by the Hall element on electronic equipment, from being arranged on Field strength values and/or magnetization direction is obtained in magnetic field sensor on electronic equipment.
In step 202., judge ring residing for electronic equipment according to acquired field strength values and/or magnetization direction Whether border is interfered magnetic interference.
In step 203, when the described electronic equipment local environment of determination is interfered magnetic interference, by Distance-sensing The protective case that the device described electronic equipment of detection is dressed is with respect to the distance of the screen of electronic equipment.
In step 204, judge whether to trigger bright screen event or screen event of going out, described bright screen event according to institute's detecting distance It is the event that electronic equipment screen is lighted, described screen event of going out is by the event of electronic equipment screen breath screen.
In this embodiment, because magnetic field sensor arranges on an electronic device, therefore, the magnetic that magnetic field sensor is detected Field intensity can be protected covering the impact of opening procedure and closing course.Detected by the Hall element on electronic equipment During Hall voltage change, field strength values and/or the magnetic that setting magnetic field sensor on an electronic device detects can be obtained Field intensity direction.
For magnetization direction, protective case opening procedure can be gathered and closes in the case of there is not interference magnetic field Magnetization direction during conjunction, obtains a default magnetization direction.If Hall element detects Hall voltage During changing, when acquired magnetization direction is different from default magnetization direction, judge electronic equipment institute Place's environment is interfered magnetic interference, and described default magnetization direction is described magnetic field sensor under the influence of interference-free magnetic field The magnetic direction detecting.Magnetic field sensor can detect three-axle magnetic field direction, if the three-axle magnetic field direction detected is wherein One axle is different from default magnetization direction, then can be determined that electronic equipment local environment is interfered magnetic interference.
It can be seen that, judge whether electronic equipment local environment is interfered magnetic interference by magnetization direction, easily real Existing.
For field strength values, when acquired field strength values are more than default magnetic field intensity threshold value, judge electronic equipment Local environment is interfered magnetic interference.
In this embodiment it is possible to pre-set a magnetic field intensity threshold value, described default magnetic field intensity threshold value is more than not It is disturbed the field strength values that magnetic field sensor under the influence of magnetic field detects.Therefore, it is more than in advance in acquired field strength values If during magnetic field intensity threshold value it is possible to determine that electronic equipment local environment is interfered magnetic interference.
In one example, described default magnetic field intensity threshold value determines according to maximum magnetic field strength value, described maximum field Intensity level is that the magnetic field that described magnetic field sensor detects in described protective case closure state under the influence of interference-free magnetic field is strong Angle value.
In the impact of interference-free magnetic field and in the case of protective case closure, the magnetic field intensity that magnetic field sensor detects is Greatly, this intensity level can be defined as maximum magnetic field strength value.
On the one hand, default magnetic field intensity threshold value can be identical with maximum magnetic field strength value.Now, acquired magnetic field intensity When value is more than maximum magnetic field strength value, then judge that electronic equipment local environment is interfered magnetic interference.
On the other hand, the impact leading in order to avoid detection error, default magnetic field intensity threshold value can be to compare maximum field The slightly larger or smaller value of intensity level.Because default magnetic field intensity threshold value is more slightly larger or smaller than maximum magnetic field strength value, therefore permissible Avoid the erroneous judgement leading to due to detection error.
In another example, although the magnetic interference that is interfered in some cases, but if interference magnetic field is not big, Be not enough to affect the output result of Hall element, then still can adopt the output result of Hall element judge whether to trigger bright Screen event, based on this, described default magnetic field intensity threshold value determines according to critical magnetic field strength, and described critical magnetic field strength is The magnetic field that when Hall element triggers bright screen event/screen event of going out under the influence of interference-free magnetic field, described magnetic field sensor detects Intensity level.
Due to Hall element detect the bright screen event that can trigger that just can export when Hall voltage changes to marginal value/ The output result of screen event of going out, therefore when Hall voltage reaches marginal value, obtains the magnetic field intensity that magnetic field sensor detects Marginal value.For example, Hall element can represent that triggering is bright output 1,1 is detected when Hall voltage changes to the first marginal value Screen event, obtains Hall voltage and changes to the first critical magnetic field strength that magnetic field sensor during the first marginal value detects;Suddenly Your sensor can represent that triggering is gone out screen event, obtains suddenly output 0,0 when Hall voltage changes to the second marginal value is detected The second critical magnetic field strength that your potential change detects to magnetic field sensor during the second marginal value.Wherein, the first marginal value With the second marginal value can identical it is also possible to differ, with specific reference to demand set.
In an optional implementation, described default magnetic field intensity threshold value is according to maximum magnetic field strength value and the first magnetic The value preset of field intensity marginal value determines, described maximum magnetic field strength value is that described magnetic field sensor exists under the influence of interference-free magnetic field The field strength values detecting during described protective case closure state, described first critical magnetic field strength is interference-free magnetic field shadow Ring the field strength values that when lower Hall element triggers bright screen event, described magnetic field sensor detects.
As one of which abnormal conditions, open protective case and but do not light screen, should be it may be the case that because cannot make Hall voltage reaches the first marginal value, then there may be one identical with the first critical magnetic field strength direction and more than or wait Magnetic field intensity in the first critical magnetic field strength.Therefore, default magnetic field intensity threshold value can be the value more than or equal to value preset, Can also be the value more slightly smaller than value preset.Described value preset is the value preset of maximum magnetic field strength value and the first critical magnetic field strength, institute Stating maximum magnetic field strength value is that described magnetic field sensor detects in described protective case closure state under the influence of interference-free magnetic field The field strength values arriving, described first critical magnetic field strength is Hall element triggering bright screen thing under the influence of interference-free magnetic field The field strength values that during part, described magnetic field sensor detects.
Based on this, magnetic field sensor prison in opening procedure can be obtained from setting magnetic field sensor on an electronic device The maximum measuring, when acquired maximum is more than default magnetic field intensity threshold value, judges that electronic equipment local environment is subject to Interference magnetic interference.This embodiment can avoid opening the abnormal conditions that protective case does not but light screen.
In another optional implementation, described default magnetic field intensity threshold value is true according to the second critical magnetic field strength Fixed, described default magnetization direction is in opposite direction with the second critical magnetic field strength, described second critical magnetic field strength Be under the influence of interference-free magnetic field Hall element triggering go out screen event when the field strength values that detect of described magnetic field sensor.
As one of which abnormal conditions, close protective case and but do not cease screen, should be it may be the case that because Hall cannot be made Potential reaches the second marginal value, then there may be one in opposite direction with the second critical magnetic field strength and more than or equal to the The magnetic field intensity of two critical magnetic field strength.Therefore, default magnetic field intensity threshold value can be more than or equal to the second magnetic field intensity The value of marginal value, or be the value more slightly smaller than the second critical magnetic field strength.
Based on this, from setting magnetic field sensor on an electronic device, obtain field strength values and magnetization direction, When acquired magnetic field intensity is more than or equal to default magnetic field intensity threshold value, acquired magnetization direction is strong with the second magnetic field Degree marginal value in opposite direction when, judge that electronic equipment local environment is interfered magnetic interference.This embodiment can avoid closing Close the abnormal conditions that protective case does not but extinguish screen, and then avoid the electricity that bright screen leads to waste.
It can be seen that, can individually judge whether electronic equipment local environment is subject to according to field strength values or magnetization direction Interference magnetic interference is it is also possible to be combined whether judging electronic equipment local environment by field strength values and magnetization direction Be interfered magnetic interference.
In addition, step 203 is identical with 103 correlation techniques with step 102 with 204, this is no longer going to repeat them.
As seen from the above-described embodiment, the present embodiment is detecting Hall voltage change by the Hall element on electronic equipment During change, from setting magnetic field sensor on an electronic device, obtain field strength values and/or magnetization direction, according to being obtained The field strength values taking and/or magnetization direction judge whether electronic equipment local environment is interfered magnetic interference, true Determine electronic equipment local environment be interfered magnetic interference when, the protective case dressed of electronic equipment is detected by range sensor With respect to the distance of the screen of electronic equipment, judge whether to trigger bright screen event or screen event of going out according to institute's detecting distance.This reality Apply the field strength values that example detected by magnetic field sensor and/or magnetization direction judges whether electronic equipment local environment is subject to To interference magnetic interference, thus realizing automatic decision, need not manually participate in, cost-effective, it is to avoid what artificial judgment led to fails to judge.
It is understood that above-mentioned only listing wherein several judges whether electronic equipment local environment is interfered magnetic field The method of interference, can also include other modes, this is no longer going to repeat them.
Various technical characteristics in embodiment of above can arbitrarily be combined, as long as the combination between feature does not exist Conflict or contradiction, but as space is limited, described one by one, the various technical characteristics in therefore above-mentioned embodiment any It is combined falling within the scope of this disclosure.
Corresponding with the embodiment of said display control method, the disclosure additionally provides screen control device and its is applied Electronic equipment embodiment.
As shown in figure 3, Fig. 3 is a kind of block diagram of screen control device according to an exemplary embodiment for the disclosure, Described device includes disturbing magnetic field judge module 310, apart from acquisition module 320 and event trigger module 330.
Wherein, interference magnetic field judge module 310, is configured to detecting suddenly by the Hall element on electronic equipment During your potential change, judge whether electronic equipment local environment is interfered magnetic interference.
Apart from acquisition module 320, it is configured to when the described electronic equipment local environment of determination is interfered magnetic interference, The distance that protective case that described electronic equipment dressed is with respect to the screen of electronic equipment is detected by range sensor.
Event trigger module 330, is configured to judge whether to trigger bright screen event or screen event of going out according to institute's detecting distance, Described bright screen event is the event lighting the screen of electronic equipment, and described screen event of going out is by the screen breath screen of electronic equipment Event.
As seen from the above-described embodiment, when Hall voltage change is detected by the Hall element on electronic equipment, sentence Whether disconnected electronic equipment local environment is interfered magnetic interference, is determining that electronic equipment local environment is interfered magnetic interference When, the distance that the protective case dressed of electronic equipment is with respect to the screen of electronic equipment is detected by range sensor, according to institute Detecting distance judges whether to trigger bright screen event or screen event of going out.By Hall element is combined with range sensor, Such that it is able to avoid when being interfered magnetic interference only carrying out, by the output result of Hall element, the erroneous judgement that judges to lead to, And then avoid erroneous judgement to bring bad Consumer's Experience to user.
As shown in figure 4, Fig. 4 is the frame of another kind of screen control device according to an exemplary embodiment for the disclosure Figure, on the basis of aforementioned embodiment illustrated in fig. 3, described interference magnetic field judge module 310 includes the first judgement to this embodiment Module 311.
Wherein, the first judging submodule 311, is configured to the magnetic field sensor according to being arranged on described protective case and is examined The magnetic field intensity surveyed judges whether electronic equipment local environment is interfered magnetic interference, wherein, close in described protective case or In opening procedure, the relative position of described magnetic field sensor and described protective case upper magnet is fixed.
As seen from the above-described embodiment, magnetic field intensity can be obtained from setting magnetic field sensor on the protective sleeve, pass through Acquired magnetic field intensity judges whether electronic equipment local environment is interfered magnetic interference, thus realize automatic decision being currently The no magnetic interference that is interfered, need not manually participate in.
As shown in figure 5, Fig. 5 is the frame of another kind of screen control device according to an exemplary embodiment for the disclosure Figure, on the basis of aforementioned embodiment illustrated in fig. 3, described interference magnetic field judge module 310 includes this embodiment: parameter acquiring Module 312 and the second judging submodule 313.
Wherein, parameter acquiring submodule 312, is configured to obtain magnetic from setting magnetic field sensor on an electronic device Field intensity value and/or magnetization direction.
Second judging submodule 313, is configured to be judged according to acquired field strength values and/or magnetization direction Whether electronic equipment local environment is interfered magnetic interference.
As seen from the above-described embodiment, the field strength values that can be detected by magnetic field sensor and/or magnetization direction Judge that whether electronic equipment local environment is interfered magnetic interference, thus realizing automatic decision, need not manually participate in, saving into This, it is to avoid what artificial judgment led to fails to judge.
As shown in fig. 6, Fig. 6 is the frame of another kind of screen control device according to an exemplary embodiment for the disclosure Figure, on the basis of aforementioned embodiment illustrated in fig. 5, described second judging submodule 313 can include at least one to this embodiment Following submodules, in order to example understands, show all submodules that this second judging submodule 313 can include in Fig. 5: strong Angle value judging submodule 3131 and walking direction submodule 3132.
Wherein, intensity level judging submodule 3131, is configured to acquired field strength values and is more than default magnetic field intensity During threshold value, judge that electronic equipment local environment is interfered magnetic interference.
Walking direction submodule 3132, is configured to acquired magnetization direction different from default magnetization direction When, judge that electronic equipment local environment is interfered magnetic interference, described default magnetization direction is interference-free magnetic field shadow The magnetic direction that under sound, described magnetic field sensor detects.
As seen from the above-described embodiment, when acquired field strength values are more than default magnetic field intensity threshold value it is possible to determine that Electronic equipment local environment is interfered magnetic interference, thus realizing judging that electronic equipment local environment is by field strength values The no magnetic interference that is interfered;The disclosure can also be different from default magnetization direction in acquired magnetization direction When, judge that electronic equipment local environment is interfered magnetic interference, thus realizing judging electronic equipment by magnetization direction Whether local environment is interfered magnetic interference, easily realizes;It is also possible that the field strength values obtaining and acquired magnetic Field intensity direction is judged simultaneously.
In an optional implementation, described default magnetic field intensity threshold value determines according to maximum magnetic field strength value, institute Stating maximum magnetic field strength value is that described magnetic field sensor detects in described protective case closure state under the influence of interference-free magnetic field The field strength values arriving.
In an optional implementation, described default magnetic field intensity threshold value is according to maximum magnetic field strength value and the first magnetic The value preset of field intensity marginal value determines, described maximum magnetic field strength value is that described magnetic field sensor exists under the influence of interference-free magnetic field The field strength values detecting during described protective case closure state, described first critical magnetic field strength is interference-free magnetic field shadow Ring the field strength values that when lower Hall element triggers bright screen event, described magnetic field sensor detects;
In an optional implementation, described default magnetic field intensity threshold value is true according to the second critical magnetic field strength Fixed, described default magnetization direction is in opposite direction with the second critical magnetic field strength, described second critical magnetic field strength Be under the influence of interference-free magnetic field Hall element triggering go out screen event when the field strength values that detect of described magnetic field sensor.
In an optional implementation, described event trigger module is also configured to
When determination electronic equipment local environment is not interfered magnetic interference, by the output of described Hall element Result judges whether to trigger bright screen event or screen event of going out.
As seen from the above-described embodiment, when determination electronic equipment local environment is not interfered magnetic interference, can adopt Judge whether to trigger bright screen event or screen event of going out with the output result of Hall element, easily realize, and can avoid Any situation only carries out the erroneous judgement judging to lead to range sensor.
In an optional implementation, described event trigger module is also configured to
When determination electronic equipment local environment is not interfered magnetic interference, by the output of described Hall element Result and institute's detecting distance judge whether to trigger bright screen event or screen event of going out simultaneously.
As seen from the above-described embodiment, when determination electronic equipment local environment is not interfered magnetic interference, Ke Yitong Cross the output result of Hall element and institute's detecting distance judges whether to trigger bright screen event or screen event of going out, thus realizing simultaneously Improve the accuracy rate judging, and improve Consumer's Experience, it is to avoid judge the worry brought to user by accident.
Accordingly, the disclosure also provides a kind of screen control device, and described device includes processor;Process for storage The memorizer of device executable instruction;Wherein, described processor is configured to:
When Hall voltage change is detected by the Hall element on electronic equipment, judge residing for described electronic equipment Whether environment is interfered magnetic interference.
When the described electronic equipment local environment of determination is interfered magnetic interference, described electricity is detected by range sensor The distance of the screen with respect to described electronic equipment for the protective case that sub- equipment is dressed.
Judge whether to trigger bright screen event or screen event of going out according to institute's detecting distance, described bright screen event is by described electronics The event that the screen of equipment is lighted, described screen event of going out is by the event of the screen breath screen of described electronic equipment.
In said apparatus, the concrete details of process of realizing of the function of modules and effect are shown in corresponding step in said method Realize process, will not be described here.
For device embodiment, because it corresponds essentially to embodiment of the method, thus real referring to method in place of correlation The part applying example illustrates.Device embodiment described above is only schematically, wherein said as separating component The module illustrating can be or may not be physically separate, as the part that module shows can be or can also It is not physical module, you can with positioned at a place, or can also be distributed on multiple mixed-media network modules mixed-medias.Can be according to actual Need to select the purpose to realize disclosure scheme for some or all of module therein.Those of ordinary skill in the art are not paying In the case of going out creative work, you can to understand and to implement.
As shown in fig. 7, Fig. 7 is disclosure one kind according to an exemplary embodiment is used for screen control device 700 Block diagram.This device 700 can be the mobile phone with routing function, computer, digital broadcast terminal, game console, Tablet device, the electronic equipment such as personal digital assistant.
With reference to Fig. 7, device 700 can include following one or more assemblies: process assembly 702, memorizer 704, power supply Assembly 706, multimedia groupware 708, audio-frequency assembly 710, the interface 712 of input/output (i/o), sensor cluster 714, and Communication component 716.
The integrated operation of the usual control device 700 of process assembly 702, such as with display, call, data communication, phase Machine operation and record operate associated operation.Process assembly 702 can include one or more processors 720 and refer to execute Order, to complete all or part of step of above-mentioned method.Additionally, process assembly 702 can include one or more modules, just Interaction between process assembly 702 and other assemblies.For example, process assembly 702 can include multi-media module, many to facilitate Interaction between media component 708 and process assembly 702.
Memorizer 704 is configured to store various types of data to support the operation in device 700.The showing of these data Example includes the instruction for any application program of operation or method on device 700, contact data, telephone book data, disappears Breath, picture, video etc..Memorizer 704 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, such as static RAM (sram), Electrically Erasable Read Only Memory (eeprom), erasable compile Journey read only memory (eprom), programmable read only memory (prom), read only memory (rom), magnetic memory, flash Device, disk or CD.
Power supply module 706 provides electric power for the various assemblies of device 700.Power supply module 706 can include power management system System, one or more power supplys, and other generate, manage and distribute, with for device 700, the assembly that electric power is associated.
Multimedia groupware 708 includes the screen of one output interface of offer between described device 700 and user.One In a little embodiments, screen can include liquid crystal display (lcd) and touch panel (tp).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.Described touch sensor can not only sensing touch or sliding action Border, but also detection and described touch or slide related persistent period and pressure.In certain embodiments, many matchmakers Body assembly 708 includes a front-facing camera and/or post-positioned pick-up head.When device 700 is in operator scheme, such as screening-mode or During video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and Post-positioned pick-up head can be the optical lens system of a fixation or have focusing and optical zoom capabilities.
Audio-frequency assembly 710 is configured to output and/or input audio signal.For example, audio-frequency assembly 710 includes a Mike Wind (mic), when device 700 is in operator scheme, during as call model, logging mode and speech recognition mode, mike is joined It is set to reception external audio signal.The audio signal being received can be further stored in memorizer 704 or via communication set Part 716 sends.In certain embodiments, audio-frequency assembly 710 also includes a speaker, for exports audio signal.
, for providing interface between process assembly 702 and peripheral interface module, above-mentioned peripheral interface module can for i/o interface 712 To be keyboard, click wheel, button etc..These buttons may include but be not limited to: home button, volume button, start button and lock Determine button.
Sensor cluster 714 includes one or more sensors, for providing the state of various aspects to comment for device 700 Estimate.For example, sensor cluster 714 can detect/the closed mode of opening of device 700, and the relative localization of assembly is for example described Assembly is display and the keypad of device 700, and sensor cluster 714 can be with a group in detection means 700 or device 700 The position change of part, user is presence or absence of with what device 700 contacted, device 700 orientation or acceleration/deceleration and device 700 Temperature change.Sensor cluster 714 can include proximity transducer, is configured to the inspection when not having any physical contact Survey the presence of object nearby.Sensor cluster 714 can also include optical sensor, such as cmos or ccd imageing sensor, for Use in imaging applications.In certain embodiments, this sensor cluster 714 can also include acceleration transducer, and gyroscope passes Sensor, Magnetic Sensor, range sensor, pressure transducer or temperature sensor.
Communication component 716 is configured to facilitate the communication of wired or wireless way between device 700 and other equipment.Device 700 can access the wireless network based on communication standard, such as wifi, 2g or 3g, or combinations thereof.In an exemplary enforcement In example, communication component 716 receives broadcast singal or the broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, described communication component 716 also includes near-field communication (nfc) module, to promote junction service.Example As, RF identification (rfid) technology can be based in nfc module, Infrared Data Association (irda) technology, ultra broadband (uwb) technology, Bluetooth (bt) technology and other technologies are realizing.
In the exemplary embodiment, device 700 can be by one or more application specific integrated circuits (asic), numeral letter Number processor (dsp), digital signal processing appts (dspd), PLD (pld), field programmable gate array (fpga), controller, microcontroller, microprocessor or other electronic components are realized, for executing said method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided As included the memorizer 704 instructing, above-mentioned instruction can be executed by the processor 720 of device 700 to complete said method.For example, Described non-transitorycomputer readable storage medium can be rom, random access memory (ram), cd-rom, tape, floppy disk With optical data storage devices etc..
Wherein, when the instruction in described storage medium is by described computing device so that device 700 is able to carry out one kind Screen control method, comprising:
When Hall voltage change is detected by the Hall element on electronic equipment, judge residing for described electronic equipment Whether environment is interfered magnetic interference.
When the described electronic equipment local environment of determination is interfered magnetic interference, described electricity is detected by range sensor The distance of the screen with respect to described electronic equipment for the protective case that sub- equipment is dressed.
Judge whether to trigger bright screen event or screen event of going out according to institute's detecting distance, described bright screen event is by described electronics The event that the screen of equipment is lighted, described screen event of going out is by the event of the screen breath screen of described electronic equipment.
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to its of the disclosure Its embodiment.The disclosure is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations are followed the general principle of the disclosure and are included the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments be considered only as exemplary, the true scope of the disclosure and spirit by following Claim is pointed out.
It should be appreciated that the disclosure is not limited to be described above and precision architecture illustrated in the accompanying drawings, and And various modifications and changes can carried out without departing from the scope.The scope of the present disclosure only to be limited by appended claim.
The foregoing is only the preferred embodiment of the disclosure, not in order to limit the disclosure, all essences in the disclosure Within god and principle, any modification, equivalent substitution and improvement done etc., should be included within the scope of disclosure protection.

Claims (13)

1. a kind of screen control method is it is characterised in that methods described includes:
When Hall voltage change is detected by the Hall element on electronic equipment, judge described electronic equipment local environment Whether be interfered magnetic interference;
When the described electronic equipment local environment of determination is interfered magnetic interference, detect that described electronics sets by range sensor The distance of the screen with respect to described electronic equipment for the standby protective case dressed;
Judge whether to trigger bright screen event or screen event of going out according to institute's detecting distance, described bright screen event is by described electronic equipment The event lighted of screen, described screen event of going out is by the event of the screen breath screen of described electronic equipment.
2. method according to claim 1 is it is characterised in that described judge whether described electronic equipment local environment is subject to Interference magnetic interference, comprising:
The magnetic field intensity that magnetic field sensor according to being arranged on described protective case is detected judges that electronic equipment local environment is The no magnetic interference that is interfered, wherein, in described protective case closure or opening procedure, described magnetic field sensor and described protection The relative position of set upper magnet is fixed.
3. method according to claim 1 is it is characterised in that described judge whether described electronic equipment local environment is subject to Interference magnetic interference, comprising:
Obtain field strength values and/or magnetization direction from setting magnetic field sensor on an electronic device;
Judge whether electronic equipment local environment is interfered magnetic according to acquired field strength values and/or magnetization direction Field interference.
4. method according to claim 3 is it is characterised in that the field strength values acquired in described basis and/or magnetic field Whether intensity walking direction electronic equipment local environment is interfered magnetic interference, at least includes a kind of following modes:
When acquired field strength values are more than default magnetic field intensity threshold value, judge that electronic equipment local environment is interfered magnetic field Interference;
When acquired magnetization direction is different from default magnetization direction, judge that electronic equipment local environment is interfered Magnetic interference, described default magnetization direction is the magnetic field side that described magnetic field sensor detects under the influence of interference-free magnetic field To.
5. method according to claim 4 it is characterised in that
Described default magnetic field intensity threshold value determines, described maximum magnetic field strength value is interference-free magnetic according to maximum magnetic field strength value The field strength values that under the influence of, described magnetic field sensor detects in described protective case closure state;
Or, described default magnetic field intensity threshold value determines according to the value preset of maximum magnetic field strength value and the first critical magnetic field strength, Described maximum magnetic field strength value is that described magnetic field sensor is examined in described protective case closure state under the influence of interference-free magnetic field The field strength values measuring, described first critical magnetic field strength is Hall element triggering bright screen under the influence of interference-free magnetic field The field strength values that during event, described magnetic field sensor detects;
Or, described default magnetic field intensity threshold value determines according to the second critical magnetic field strength, described default magnetization direction with Second critical magnetic field strength in opposite direction, described second critical magnetic field strength is that Hall passes under the influence of interference-free magnetic field Sensor triggers the field strength values that when going out screen event, described magnetic field sensor detects.
6. according to the arbitrary described method of claim 1 to 5 it is characterised in that methods described also includes:
When determination electronic equipment local environment is not interfered magnetic interference, by the output result of described Hall element Judge whether to trigger bright screen event or screen event of going out;
Or, when determination electronic equipment local environment is not interfered magnetic interference, by the output of described Hall element Result and institute's detecting distance judge whether to trigger bright screen event or screen event of going out simultaneously.
7. a kind of screen control device is it is characterised in that described device includes:
Interference magnetic field judge module, is configured to Hall voltage change is being detected by the Hall element on electronic equipment When, judge whether described electronic equipment local environment is interfered magnetic interference;
Apart from acquisition module, be configured to determine described electronic equipment local environment be interfered magnetic interference when, by away from With a distance from the screen with respect to described electronic equipment for the protective case that the sensor described electronic equipment of detection is dressed;
Event trigger module, is configured to judge whether to trigger bright screen event or screen event of going out according to institute's detecting distance, described bright Screen event is the event lighting the screen of described electronic equipment, and described screen event of going out is by the screen breath screen of described electronic equipment Event.
8. device according to claim 7 is it is characterised in that described interference magnetic field judge module includes:
First judging submodule, is configured to the magnetic field intensity being detected according to the magnetic field sensor being arranged on described protective case Judge whether electronic equipment local environment is interfered magnetic interference, wherein, in described protective case closure or opening procedure, institute The relative position stating magnetic field sensor with described protective case upper magnet is fixed.
9. device according to claim 7 is it is characterised in that described interference magnetic field judge module includes:
Parameter acquiring submodule, be configured to obtain from setting magnetic field sensor on an electronic device field strength values and/ Or magnetization direction;
Second judging submodule, is configured to judge that electronics sets according to acquired field strength values and/or magnetization direction Whether standby local environment is interfered magnetic interference.
10. device according to claim 9 is it is characterised in that described second judging submodule at least includes following one kind Submodule:
Intensity level judging submodule, when being configured to acquired field strength values more than default magnetic field intensity threshold value, judges electricity Sub- equipment local environment is interfered magnetic interference;
Walking direction submodule, be configured to acquired magnetization direction different from default magnetization direction when, judgement Electronic equipment local environment is interfered magnetic interference, and described default magnetization direction is described under the influence of interference-free magnetic field The magnetic direction that magnetic field sensor detects.
11. devices according to claim 10 it is characterised in that
Described default magnetic field intensity threshold value determines, described maximum magnetic field strength value is interference-free magnetic according to maximum magnetic field strength value The field strength values that under the influence of, described magnetic field sensor detects in described protective case closure state;
Or, described default magnetic field intensity threshold value determines according to the value preset of maximum magnetic field strength value and the first critical magnetic field strength, Described maximum magnetic field strength value is that described magnetic field sensor is examined in described protective case closure state under the influence of interference-free magnetic field The field strength values measuring, described first critical magnetic field strength is Hall element triggering bright screen under the influence of interference-free magnetic field The field strength values that during event, described magnetic field sensor detects;
Or, described default magnetic field intensity threshold value determines according to the second critical magnetic field strength, described default magnetization direction with Second critical magnetic field strength in opposite direction, described second critical magnetic field strength is that Hall passes under the influence of interference-free magnetic field Sensor triggers the field strength values that when going out screen event, described magnetic field sensor detects.
12. according to the arbitrary described device of claim 7 to 11 it is characterised in that described event trigger module is also configured to
When determination electronic equipment local environment is not interfered magnetic interference, by the output result of described Hall element Judge whether to trigger bright screen event or screen event of going out;
Or, when determination electronic equipment local environment is not interfered magnetic interference, by the output of described Hall element Result and institute's detecting distance judge whether to trigger bright screen event or screen event of going out simultaneously.
A kind of 13. screen control devices are it is characterised in that include:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
When Hall voltage change is detected by the Hall element on electronic equipment, judge described electronic equipment local environment Whether be interfered magnetic interference;
When the described electronic equipment local environment of determination is interfered magnetic interference, detect that described electronics sets by range sensor The distance of the screen with respect to described electronic equipment for the standby protective case dressed;
Judge whether to trigger bright screen event or screen event of going out according to institute's detecting distance, described bright screen event is by described electronic equipment The event lighted of screen, described screen event of going out is by the event of the screen breath screen of described electronic equipment.
CN201610702692.3A 2016-08-22 2016-08-22 Screen control method and device Active CN106339168B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610702692.3A CN106339168B (en) 2016-08-22 2016-08-22 Screen control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610702692.3A CN106339168B (en) 2016-08-22 2016-08-22 Screen control method and device

Publications (2)

Publication Number Publication Date
CN106339168A true CN106339168A (en) 2017-01-18
CN106339168B CN106339168B (en) 2020-10-16

Family

ID=57824653

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610702692.3A Active CN106339168B (en) 2016-08-22 2016-08-22 Screen control method and device

Country Status (1)

Country Link
CN (1) CN106339168B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107295190A (en) * 2017-07-10 2017-10-24 北京小米移动软件有限公司 Working mode switching method, device and protective case
CN108205360A (en) * 2017-12-18 2018-06-26 中兴通讯股份有限公司 Method, apparatus, terminal and the storage medium of control terminal screen
CN109862608A (en) * 2018-11-21 2019-06-07 Tcl移动通信科技(宁波)有限公司 A kind of mobile terminal protective case detection control method, mobile terminal and storage medium
CN111147667A (en) * 2019-12-25 2020-05-12 华为技术有限公司 Screen-off control method and electronic equipment
CN111273774A (en) * 2020-01-19 2020-06-12 惠州Tcl移动通信有限公司 Terminal device display screen control method and system, storage medium and terminal device
CN111432068A (en) * 2020-03-10 2020-07-17 北京小米移动软件有限公司 Display state control method and device, electronic equipment and storage medium
CN111752788A (en) * 2019-03-28 2020-10-09 北京小米移动软件有限公司 Device, method and device for detecting sliding type terminal
CN112945218A (en) * 2021-01-26 2021-06-11 北京小米移动软件有限公司 Method and device for determining direction of electronic equipment, electronic equipment and storage medium
CN113804237A (en) * 2021-09-26 2021-12-17 东莞华贝电子科技有限公司 Detection distance testing method and device of electronic equipment
CN113865632A (en) * 2020-06-30 2021-12-31 北京小米移动软件有限公司 Method, device, system and medium for calibrating internal magnetic field of electronic equipment
CN117395979A (en) * 2023-12-13 2024-01-12 深圳市海罗光电有限公司 Method, device, equipment and storage medium for preventing electromagnetic interference of display

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130100169A1 (en) * 2011-10-25 2013-04-25 Kye Systems Corp. Input device and method for zooming an object using the input device
CN103516902A (en) * 2013-09-18 2014-01-15 广东欧珀移动通信有限公司 Method and device for controlling screen state of electronic equipment through protection cover
US20140032163A1 (en) * 2012-07-24 2014-01-30 International Business Machines Corporation Calibration free distance sensor
CN103618821A (en) * 2013-10-30 2014-03-05 广东欧珀移动通信有限公司 A method and an apparatus for controlling the screen status of an electronic device
CN103793243A (en) * 2013-11-22 2014-05-14 广州视源电子科技股份有限公司 Mobile equipment, screen locking/unlocking method of mobile equipment and protective shell
CN103970575A (en) * 2014-05-22 2014-08-06 广东欧珀移动通信有限公司 Method and device for quickly starting application program in mobile terminal
US20150015511A1 (en) * 2013-07-11 2015-01-15 Samsung Electronics Co., Ltd. User terminal device for displaying contents and methods thereof
CN104601761A (en) * 2015-02-12 2015-05-06 广东欧珀移动通信有限公司 Mobile terminal protective case, mobile terminal and mobile terminal control method
CN104640184A (en) * 2015-02-15 2015-05-20 广东欧珀移动通信有限公司 Screen wake-up method and device
CN104683560A (en) * 2013-12-03 2015-06-03 宏达国际电子股份有限公司 Accessory, electronic assembly, control method, and method for forming an accessory
CN104731490A (en) * 2015-04-20 2015-06-24 深圳市欧珀通信软件有限公司 Screen control method and screen control device
CN105120025A (en) * 2015-09-06 2015-12-02 深圳一微克科技有限公司 Mobile phone protection system and protection method therefor
CN105141836A (en) * 2015-08-05 2015-12-09 广东欧珀移动通信有限公司 Method and device for reducing false triggering of rotating camera of terminal
CN205029701U (en) * 2015-08-21 2016-02-10 深圳一微克科技有限公司 Cell -phone intelligence protective housing
CN105407233A (en) * 2015-12-10 2016-03-16 深圳一微克科技有限公司 Control recognition method and device based on mobile phone protection case

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130100169A1 (en) * 2011-10-25 2013-04-25 Kye Systems Corp. Input device and method for zooming an object using the input device
US20140032163A1 (en) * 2012-07-24 2014-01-30 International Business Machines Corporation Calibration free distance sensor
US20150015511A1 (en) * 2013-07-11 2015-01-15 Samsung Electronics Co., Ltd. User terminal device for displaying contents and methods thereof
CN103516902A (en) * 2013-09-18 2014-01-15 广东欧珀移动通信有限公司 Method and device for controlling screen state of electronic equipment through protection cover
CN103618821A (en) * 2013-10-30 2014-03-05 广东欧珀移动通信有限公司 A method and an apparatus for controlling the screen status of an electronic device
CN103793243A (en) * 2013-11-22 2014-05-14 广州视源电子科技股份有限公司 Mobile equipment, screen locking/unlocking method of mobile equipment and protective shell
CN104683560A (en) * 2013-12-03 2015-06-03 宏达国际电子股份有限公司 Accessory, electronic assembly, control method, and method for forming an accessory
CN103970575A (en) * 2014-05-22 2014-08-06 广东欧珀移动通信有限公司 Method and device for quickly starting application program in mobile terminal
CN104601761A (en) * 2015-02-12 2015-05-06 广东欧珀移动通信有限公司 Mobile terminal protective case, mobile terminal and mobile terminal control method
CN104640184A (en) * 2015-02-15 2015-05-20 广东欧珀移动通信有限公司 Screen wake-up method and device
CN104731490A (en) * 2015-04-20 2015-06-24 深圳市欧珀通信软件有限公司 Screen control method and screen control device
CN105141836A (en) * 2015-08-05 2015-12-09 广东欧珀移动通信有限公司 Method and device for reducing false triggering of rotating camera of terminal
CN205029701U (en) * 2015-08-21 2016-02-10 深圳一微克科技有限公司 Cell -phone intelligence protective housing
CN105120025A (en) * 2015-09-06 2015-12-02 深圳一微克科技有限公司 Mobile phone protection system and protection method therefor
CN105407233A (en) * 2015-12-10 2016-03-16 深圳一微克科技有限公司 Control recognition method and device based on mobile phone protection case

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
UWE MARSCHNER: "Indirect Measurement of a Bar Magnet Position Using a Hall Sensor Array", 《IEEE TRANSACTIONS ON MAGNETICS》 *
李宏年: "传感器技术及在智能手机中的应用", 《中国新通信》 *

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107295190A (en) * 2017-07-10 2017-10-24 北京小米移动软件有限公司 Working mode switching method, device and protective case
CN108205360A (en) * 2017-12-18 2018-06-26 中兴通讯股份有限公司 Method, apparatus, terminal and the storage medium of control terminal screen
CN108205360B (en) * 2017-12-18 2023-08-15 中兴通讯股份有限公司 Method, device, terminal and storage medium for controlling terminal screen
CN109862608A (en) * 2018-11-21 2019-06-07 Tcl移动通信科技(宁波)有限公司 A kind of mobile terminal protective case detection control method, mobile terminal and storage medium
CN111752788A (en) * 2019-03-28 2020-10-09 北京小米移动软件有限公司 Device, method and device for detecting sliding type terminal
CN111752788B (en) * 2019-03-28 2023-11-14 北京小米移动软件有限公司 Device, method and device for detecting sliding closure type terminal
CN111147667A (en) * 2019-12-25 2020-05-12 华为技术有限公司 Screen-off control method and electronic equipment
CN111273774A (en) * 2020-01-19 2020-06-12 惠州Tcl移动通信有限公司 Terminal device display screen control method and system, storage medium and terminal device
CN111432068A (en) * 2020-03-10 2020-07-17 北京小米移动软件有限公司 Display state control method and device, electronic equipment and storage medium
CN113865632A (en) * 2020-06-30 2021-12-31 北京小米移动软件有限公司 Method, device, system and medium for calibrating internal magnetic field of electronic equipment
CN113865632B (en) * 2020-06-30 2024-05-07 北京小米移动软件有限公司 Method, device, system and medium for calibrating internal magnetic field of electronic equipment
CN112945218A (en) * 2021-01-26 2021-06-11 北京小米移动软件有限公司 Method and device for determining direction of electronic equipment, electronic equipment and storage medium
CN113804237A (en) * 2021-09-26 2021-12-17 东莞华贝电子科技有限公司 Detection distance testing method and device of electronic equipment
CN117395979A (en) * 2023-12-13 2024-01-12 深圳市海罗光电有限公司 Method, device, equipment and storage medium for preventing electromagnetic interference of display
CN117395979B (en) * 2023-12-13 2024-03-15 深圳市海罗光电有限公司 Method, device, equipment and storage medium for preventing electromagnetic interference of display

Also Published As

Publication number Publication date
CN106339168B (en) 2020-10-16

Similar Documents

Publication Publication Date Title
CN106339168A (en) Screen control method and device
CN106022072A (en) Method and device for achieving fingerprint unlocking and electronic equipment
CN104615240B (en) The unlocking method and a device of terminal
CN105807873A (en) Temperature control method and device
CN104832446A (en) Method and device for controlling fan
CN106445238A (en) Edge touch inhibiting method and device
CN106528131A (en) Application function display method and apparatus, and terminal device
CN106446803A (en) Live content recognition processing method, device and equipment
CN106791087A (en) The storage method of information, device and equipment
CN104331166A (en) Set operation revocation method, set operation revocation device and electronic equipment
CN105516483A (en) Equipment control method, device and terminal
CN106484282A (en) Apparatus control method and device
CN107132949A (en) anti-interference method, device, terminal and storage medium
CN107295190A (en) Working mode switching method, device and protective case
CN106485660A (en) The Zoom method of electronic chart and device
CN106201108A (en) Glove control mode touch mode control method and device and electronic equipment
CN104035764B (en) Object control method and relevant apparatus
CN106339137A (en) Terminal touch recognition method and device
CN106201628A (en) Application program installation method and device
CN107094203A (en) Message treatment method, device and computer-readable recording medium
CN108241842A (en) Fingerprint identification method and device
CN104298903B (en) Access the method and device of mobile terminal
CN106502406A (en) Application program deployment method, device and terminal unit
CN106778125A (en) unlocking method, device and equipment
CN107197107A (en) Enabled instruction processing method and processing device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant