CN106339168B - Screen control method and device - Google Patents

Screen control method and device Download PDF

Info

Publication number
CN106339168B
CN106339168B CN201610702692.3A CN201610702692A CN106339168B CN 106339168 B CN106339168 B CN 106339168B CN 201610702692 A CN201610702692 A CN 201610702692A CN 106339168 B CN106339168 B CN 106339168B
Authority
CN
China
Prior art keywords
magnetic field
screen
electronic equipment
event
field strength
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610702692.3A
Other languages
Chinese (zh)
Other versions
CN106339168A (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

Images

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 disclosure relates to a screen control method and device, the method comprises the following steps: when the Hall potential change is detected through a Hall sensor on the electronic equipment, whether the environment where the electronic equipment is located is interfered by an interference magnetic field is judged; when the environment where the electronic equipment is located is determined to be interfered by an interference magnetic field, detecting the distance of a protective sleeve worn by the electronic equipment relative to a screen of the electronic equipment through a distance sensor; and judging whether to trigger a screen-on event or a screen-off event according to the detected distance, wherein the screen-on event is an event for lighting up the screen of the electronic equipment, and the screen-off event is an event for turning off the screen of the electronic equipment. Through combining hall sensor and distance sensor to can avoid only judging the erroneous judgement that leads to through hall sensor's output result when receiving interference magnetic field interference, and then avoid the erroneous judgement to bring not good user experience for the user.

Description

Screen control method and device
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a screen control method and apparatus.
Background
With the development of science and technology, electronic devices such as mobile phones and tablet computers are increasingly popular with users, and occasions where the users use the electronic devices are also increasing. To protect the electronic device from damage, the electronic device may be provided with a protective cover. The Hall sensor is installed on the electronic equipment mainboard, and the magnet is installed on the protective sleeve, so that the electronic equipment is combined with the protective sleeve to control the screen of the electronic equipment to be lightened or extinguished. For example, when the protective sleeve is closed, the magnet on the protective sleeve causes the potential inside the hall sensor to change, and triggers a screen-off event, so that the screen is turned off, and when the protective sleeve is opened, triggers a screen-on event, so that the screen is turned on.
However, when there is an interfering magnetic field near the electronic device, the screen is controlled to be turned on or off according to the detection result of the hall sensor, and the situation of inaccurate control may occur.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a screen control method and apparatus.
According to a first aspect of embodiments of the present disclosure, there is provided a screen control method, the method including:
when the Hall potential change is detected through a Hall sensor on the electronic equipment, whether the environment where the electronic equipment is located is interfered by an interference magnetic field is judged;
when the environment where the electronic equipment is located is determined to be interfered by an interference magnetic field, detecting the distance of a protective sleeve worn by the electronic equipment relative to a screen of the electronic equipment through a distance sensor;
and judging whether a screen-on event or a screen-off event is triggered according to the detected distance, wherein the screen-on event is an event for lighting up the screen of the electronic equipment, and the screen-off event is an event for turning off the screen of the electronic equipment.
In one example, the determining whether the environment in which the electronic device is located is interfered by an interference magnetic field includes:
according to the magnetic field intensity detected by the magnetic field sensor arranged on the protective sleeve, whether the environment where the electronic equipment is located is interfered by an interference magnetic field or not is judged, wherein in the closing or opening process of the protective sleeve, the relative position of the magnetic field sensor and the magnet on the protective sleeve is fixed.
In one example, the determining whether the environment in which the electronic device is located is interfered by an interference magnetic field includes:
acquiring a magnetic field strength value and/or a magnetic field strength direction from a magnetic field sensor arranged on the electronic equipment;
and judging whether the environment where the electronic equipment is located is interfered by an interference magnetic field according to the acquired magnetic field strength value and/or the magnetic field strength direction.
In one example, the determining whether the environment where the electronic device is located is interfered by an interfering magnetic field according to the obtained magnetic field strength value and/or magnetic field strength direction includes at least one of the following manners:
when the obtained magnetic field strength value is larger than a preset magnetic field strength threshold value, judging that the environment where the electronic equipment is located is interfered by an interference magnetic field;
when the obtained magnetic field intensity direction is different from the preset magnetic field intensity direction, the situation that the environment where the electronic equipment is located is interfered by the interference magnetic field is judged, and the preset magnetic field intensity direction is the magnetic field direction detected by the magnetic field sensor under the influence of the interference magnetic field.
In one example, the predetermined threshold magnetic field strength value is determined from a maximum magnetic field strength value that is a magnetic field strength value that the magnetic field sensor detects when the magnetic field sensor is in the closed state of the protective casing when not under the influence of an interfering magnetic field;
or, the preset magnetic field strength threshold is determined according to a sum of a maximum magnetic field strength value and a first magnetic field strength critical value, the maximum magnetic field strength value is a magnetic field strength value detected by the magnetic field sensor in the closed state of the protective sleeve under the influence of an interference magnetic field, and the first magnetic field strength critical value is a magnetic field strength value detected by the magnetic field sensor when the hall sensor triggers a screen-on event under the influence of the interference magnetic field;
or the preset magnetic field strength threshold is determined according to a second magnetic field strength critical value, the direction of the preset magnetic field strength is opposite to that of the second magnetic field strength critical value, and the second magnetic field strength critical value is a magnetic field strength value detected by the magnetic field sensor when the hall sensor triggers a screen-off event under the influence of an interference magnetic field.
In one example, the method further comprises:
when the environment where the electronic equipment is located is determined not to be interfered by an interference magnetic field, whether a screen-on event or a screen-off event is triggered or not is judged according to an output result of the Hall sensor;
or when the environment where the electronic equipment is located is determined not to be interfered by an interference magnetic field, whether a screen-on event or a screen-off event is triggered or not is judged simultaneously according to the output result of the Hall sensor and the detected distance.
According to a second aspect of the embodiments of the present disclosure, there is provided a screen control device, the device including:
the interference magnetic field judging module is configured to judge whether the environment where the electronic equipment is located is interfered by an interference magnetic field when Hall potential change is detected through a Hall sensor on the electronic equipment;
the distance acquisition module is configured to detect the distance of a protective sleeve worn by the electronic equipment relative to a screen of the electronic equipment through a distance sensor when the environment where the electronic equipment is located is determined to be interfered by an interference magnetic field;
and the event triggering module is configured to judge whether a screen-on event or a screen-off event is triggered according to the detected distance, wherein the screen-on event is an event for lighting up a screen of the electronic equipment, and the screen-off event is an event for turning off the screen of the electronic equipment.
In one example, the disturbing magnetic field determining module includes:
the first judgment submodule is configured to judge whether the environment where the electronic equipment is located is interfered by an interference magnetic field according to the magnetic field intensity detected by a magnetic field sensor arranged on the protective sleeve, wherein the relative position of the magnetic field sensor and a magnet on the protective sleeve is fixed in the process of closing or opening the protective sleeve.
In one example, the disturbing magnetic field determining module includes:
the parameter acquisition sub-module is configured to acquire a magnetic field strength value and/or a magnetic field strength direction from a magnetic field sensor arranged on the electronic equipment;
and the second judging submodule is configured to judge whether the environment where the electronic equipment is located is interfered by the interference magnetic field according to the acquired magnetic field strength value and/or the magnetic field strength direction.
In one example, the second determination submodule includes at least one of the following submodules:
the strength value judgment submodule is configured to judge that the environment where the electronic equipment is located is interfered by an interference magnetic field when the acquired magnetic field strength value is larger than a preset magnetic field strength threshold value;
and the direction judgment submodule is configured to judge that the environment where the electronic equipment is located is interfered by an interference magnetic field when the acquired magnetic field strength direction is different from a preset magnetic field strength direction, wherein the preset magnetic field strength direction is the magnetic field direction detected by the magnetic field sensor under the influence of the interference magnetic field.
In one example, the predetermined threshold magnetic field strength value is determined from a maximum magnetic field strength value that is a magnetic field strength value that the magnetic field sensor detects when the magnetic field sensor is in the closed state of the protective casing when not under the influence of an interfering magnetic field;
or, the preset magnetic field strength threshold is determined according to a sum of a maximum magnetic field strength value and a first magnetic field strength critical value, the maximum magnetic field strength value is a magnetic field strength value detected by the magnetic field sensor in the closed state of the protective sleeve under the influence of an interference magnetic field, and the first magnetic field strength critical value is a magnetic field strength value detected by the magnetic field sensor when the hall sensor triggers a screen-on event under the influence of the interference magnetic field;
or the preset magnetic field strength threshold is determined according to a second magnetic field strength critical value, the direction of the preset magnetic field strength is opposite to that of the second magnetic field strength critical value, and the second magnetic field strength critical value is a magnetic field strength value detected by the magnetic field sensor when the hall sensor triggers a screen-off event under the influence of an interference magnetic field.
In one example, the event triggering module is further configured to:
when the environment where the electronic equipment is located is determined not to be interfered by an interference magnetic field, whether a screen-on event or a screen-off event is triggered or not is judged according to an output result of the Hall sensor;
or when the environment where the electronic equipment is located is determined not to be interfered by an interference magnetic field, whether a screen-on event or a screen-off event is triggered or not is judged simultaneously according to the output result of the Hall sensor and the detected distance.
According to a third aspect of the embodiments of the present disclosure, there is provided a screen control device including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when the Hall potential change is detected through a Hall sensor on the electronic equipment, whether the environment where the electronic equipment is located is interfered by an interference magnetic field is judged;
when the environment where the electronic equipment is located is determined to be interfered by an interference magnetic field, detecting the distance of a protective sleeve worn by the electronic equipment relative to a screen of the electronic equipment through a distance sensor;
and judging whether a screen-on event or a screen-off event is triggered according to the detected distance, wherein the screen-on event is an event for lighting up the screen of the electronic equipment, and the screen-off event is an event for turning off the screen of the electronic equipment.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
this is disclosed when detecting hall potential change through hall sensor on the electronic equipment, judges whether the environment that electronic equipment is located receives interference magnetic field interference, when confirming that the environment that electronic equipment is located receives interference magnetic field interference, detects the distance of the protective sheath that electronic equipment dressed for electronic equipment's screen through distance sensor, judges whether to trigger bright screen event or go out the screen event according to the detected distance. Through combining hall sensor and distance sensor to can avoid just judging the erroneous judgement and the miscontrol that leads to through hall sensor's output result when receiving interference magnetic field interference, and then avoid the erroneous judgement to bring not good user experience for the user.
This openly can obtain magnetic field intensity from the magnetic field sensor who sets up on the protective sheath, judge whether electronic equipment is located the environment and receive the interference magnetic field interference through the magnetic field intensity that obtains to whether realize automatic judgement and receive the interference magnetic field interference at present, need not artifical the participation.
This openly can judge whether the environment that electronic equipment is located receives interference magnetic field interference through magnetic field intensity value and/or the magnetic field intensity direction that magnetic field sensor detected to realize automatic judgement, need not artifical the participation, practice thrift the cost, avoid the missing judgement that artifical judgement leads to.
When the obtained magnetic field strength value is larger than the preset magnetic field strength threshold value, the method can judge that the environment where the electronic equipment is located is interfered by the interference magnetic field, so that whether the environment where the electronic equipment is located is interfered by the interference magnetic field or not is judged according to the magnetic field strength value; the method and the device can also judge that the environment where the electronic equipment is located is interfered by the interference magnetic field when the acquired magnetic field intensity direction is different from the preset magnetic field intensity direction, so that whether the environment where the electronic equipment is located is interfered by the interference magnetic field or not is judged according to the magnetic field intensity direction, and the method and the device are easy to realize.
The preset magnetic field strength threshold value can be determined according to the maximum magnetic field strength value, so that the situation that the current interference is interfered by an interference magnetic field is considered as long as the obtained magnetic field strength value is larger than the preset magnetic field strength threshold value, and the event triggering is not carried out according to the output result of the Hall sensor any more.
The preset magnetic field intensity threshold value can be determined according to the sum of the maximum magnetic field intensity value and the first magnetic field intensity critical value, so that the abnormal condition that the screen is not lightened when the protective sleeve is opened can be avoided.
This disclosed predetermine magnetic field intensity threshold value can be confirmed according to second magnetic field intensity critical value, predetermine the magnetic field intensity direction and can be for the opposite direction of second magnetic field intensity critical value to can avoid closed protective sheath but not extinguish the abnormal conditions of screen, and then avoid the electric quantity waste that the bright screen leads to.
According to the method and the device, when the environment where the electronic equipment is located is determined not to be interfered by the interference magnetic field, whether a screen-on event or a screen-off event is triggered or not can be judged according to the output result of the Hall sensor, the method and the device are easy to realize, and misjudgment caused by judgment only by the distance sensor in any situation can be avoided.
According to the method and the device, when the situation that the environment where the electronic equipment is located is not interfered by the interference magnetic field is determined, whether the screen-on event or the screen-off event is triggered or not can be judged simultaneously through the output result and the detected distance of the Hall sensor, so that the judgment accuracy is improved, the user experience is improved, and the trouble brought to the user by misjudgment is avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a screen control method according to an exemplary embodiment of the present disclosure.
FIG. 2 is a flow chart illustrating another screen control method according to an exemplary embodiment of the present disclosure.
Fig. 3 is a block diagram of a screen control device shown in accordance with an exemplary embodiment of the present disclosure.
Fig. 4 is a block diagram of another screen control device shown in accordance with an exemplary embodiment of the present disclosure.
Fig. 5 is a block diagram of another screen control device shown in accordance with an exemplary embodiment of the present disclosure.
Fig. 6 is a block diagram of another screen control device shown in accordance with an exemplary embodiment of the present disclosure.
FIG. 7 is a block diagram illustrating a screen control device according to an exemplary embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
As shown in fig. 1, fig. 1 is a flowchart illustrating a screen control method according to an exemplary embodiment, which may be used in an electronic device, and includes the following steps 101 to 103:
in step 101, when a hall potential change is detected by a hall sensor on an electronic device, it is determined whether the environment in which the electronic device is located is interfered by an interference magnetic field.
In step 102, when it is determined that the environment where the electronic device is located is interfered by an interference magnetic field, detecting a distance of a protective case worn by the electronic device relative to a screen of the electronic device through a distance sensor.
In step 103, it is determined whether to trigger a screen-on event or a screen-off event according to the detected distance, where the screen-on event is an event of lighting up a screen of the electronic device, and the screen-off event is an event of turning off the screen of the electronic device.
In the embodiment of the present disclosure, the electronic device may be an electronic product provided with a hall sensor, such as a smart phone, a tablet computer, a PDA (Personal digital assistant), an e-book reader, and a multimedia player. To protect the electronic device from damage, the electronic device may be provided with a protective case. The protective sleeve may include a movable component and a stationary component. The movable component, which may also be referred to as a protective cover, is a movably operable component. A magnet may be mounted on the movable component of the protective cover to cause a change in hall potential in the hall sensor during opening or closing of the protective cover.
The Hall sensor can be arranged on a mainboard of the electronic equipment, when the movable assembly on the protective sleeve is opened or closed, the Hall sensor can detect that Hall potential changes, and the electronic equipment can judge whether the protective sleeve is opened or closed according to the output result of the Hall sensor.
The distance sensor is used for detecting the distance between the movable component on the protective sleeve and the screen of the electronic equipment. The distance sensor may be a distance sensor that detects a distance by infrared emission, a distance sensor that detects a distance by ultrasonic waves, or the like. The distance sensor may be provided on the electronic device or on a fixed part of the protective cover. When the distance sensor is arranged on the electronic equipment, the arranged position is the position capable of detecting the distance between the movable assembly on the protective sleeve and the screen of the electronic equipment, and the movable assembly of the protective sleeve can be judged to be in a state of being far away from the screen or a state of being close to the screen according to the distance between the movable assembly and the screen of the electronic equipment. If the distance sensor is arranged on the fixing part of the protective sleeve, the distance sensor is connected with the electronic equipment in a wired or wireless mode, so that the electronic equipment can acquire the distance detected by the distance sensor, and can judge whether the movable assembly of the protective sleeve is in a state of being far away from the screen or a state of being close to the screen according to the acquired distance.
Because when the protective sheath that electronic equipment dressed is opened or closed, or receive external interference magnetic field interference, hall sensor on the electronic equipment all can detect hall electric potential and change, consequently only confirm whether trigger the bright screen event or go out the screen event through the data of hall sensor output, can lead to the erroneous judgement. Therefore, the Hall sensor and the distance sensor are combined for judgment, misjudgment can be avoided, and then a screen-on event or a screen-off event is prevented from being triggered by mistake.
The interference magnetic field is a magnetic field except a normal magnetic field such as a geomagnetic field and a magnetic field generated by a magnet on a protective sleeve worn by the electronic equipment, and whether the protective sleeve is opened or closed cannot be correctly judged only according to data output by the Hall sensor under the interference of the interference magnetic field. Therefore, when the Hall sensor on the electronic equipment detects the change of the Hall potential, whether the environment where the electronic equipment is located is interfered by an interference magnetic field or not is judged, and when the environment where the electronic equipment is located is determined to be interfered by the interference magnetic field, the distance of the protective sleeve worn by the electronic equipment relative to the screen of the electronic equipment is detected through the distance sensor. The distance of the protective case relative to the screen of the electronic device is the distance of the movable component of the protective case relative to the screen of the electronic device. By acquiring the distance, whether the movable assembly of the protective sleeve is in a state far away from the screen or in a state close to the screen can be judged, so that whether a screen-on event or a screen-off event is triggered or not is determined. Specifically, if the movable assembly of the protective sleeve is determined to be in a state far away from the screen according to the detected distance, a screen-on event is triggered, and if the movable assembly of the protective sleeve is determined to be in a state close to the screen according to the detected distance, a screen-off event is triggered.
In an optional implementation manner, when it is determined that the environment where the electronic device is located is not interfered by the interference magnetic field, whether a screen-on event or a screen-off event is triggered can be judged according to the output result of the hall sensor.
Therefore, when it is determined that the environment where the electronic device is located is not interfered by the interference magnetic field, the output result of the hall sensor can be used for judging whether to trigger a screen-on event or a screen-off event, so that the method is easy to implement, and can avoid misjudgment caused by judging only by the distance sensor under any condition.
In another alternative implementation manner, when it is determined that the environment where the electronic device is located is not interfered by the interference magnetic field, whether a screen-on event or a screen-off event is triggered is determined simultaneously according to the output result of the hall sensor and the detected distance.
According to the embodiment, whether the screen-on event or the screen-off event is triggered or not can be judged simultaneously through the output result and the detected distance of the Hall sensor, the event is triggered when the same event is judged to be triggered according to the output result and the detected distance, and otherwise, the event is not processed.
Therefore, when it is determined that the environment where the electronic device is located is not interfered by the interference magnetic field, whether the screen-on event or the screen-off event is triggered or not can be judged simultaneously through the output result of the hall sensor and the detected distance, so that the judgment accuracy is improved, the user experience is improved, and the trouble brought to the user by misjudgment is avoided.
It can be seen from the above embodiments that, according to the present disclosure, when detecting a change in hall potential through a hall sensor on an electronic device, it is determined whether an environment in which the electronic device is located is interfered by an interference magnetic field, when it is determined that the environment in which the electronic device is located is interfered by the interference magnetic field, a distance of a protective cover worn by the electronic device with respect to a screen of the electronic device is detected through a distance sensor, and whether a screen-on event or a screen-off event is triggered is determined according to the detected distance. Through combining hall sensor and distance sensor to can avoid only judging the erroneous judgement that leads to through hall sensor's output result when receiving interference magnetic field interference, and then avoid the erroneous judgement to bring not good user experience for the user.
There are many ways to determine whether the environment of the electronic device is interfered by the interference magnetic field, and several ways are listed below for description.
In an optional implementation manner, when the interference instruction is received, whether the environment where the electronic equipment is located is interfered by an interference magnetic field or not is judged. The interference instruction may be an instruction generated by triggering by the user through a triggering key or a button, and the interference instruction indicates that the current environment is interfered by the interference magnetic field.
Therefore, the judgment of the interference magnetic field is realized in an interference instruction mode, and the judgment is easy to realize.
In another optional implementation manner, whether the environment where the electronic device is located is interfered by an interference magnetic field is determined according to the magnetic field intensity detected by a magnetic field sensor arranged on the protective sleeve, wherein the relative position of the magnetic field sensor and a magnet on the protective sleeve is fixed in the process of closing or opening the protective sleeve.
In this embodiment, the magnetic field sensor may be disposed on the protective cover, and the relative position between the magnetic field sensor and the magnet on the protective cover is fixed, so that the magnetic field strength detected by the magnetic field sensor is not affected by the closing process and the opening process of the protective cover, i.e. the magnetic field strength detected by the magnetic field sensor during the closing process and the opening process of the protective cover is the same or within a range of magnetic field strengths with little difference.
In one example, a threshold range of magnetic field strength can be set based on the strength of the magnetic field detected by the magnetic field sensor during closure and opening of the protective sleeve. If the magnetic field intensity detected by the magnetic field sensor is within the magnetic field intensity threshold range, determining that the environment where the electronic equipment is located is not interfered by an interference magnetic field; and if the magnetic field intensity detected by the magnetic field sensor is not within the range of the magnetic field intensity threshold value, determining that the environment where the electronic equipment is located is interfered by the interference magnetic field.
In addition, since the magnetic field sensor is disposed on the protective cover, in order to obtain the magnetic field intensity from the magnetic field sensor disposed on the protective cover, the electronic device may be connected to the magnetic field sensor in a wired or wireless manner so as to obtain the magnetic field intensity detected by the magnetic field sensor.
Therefore, in the embodiment, the magnetic field intensity can be acquired from the magnetic field sensor arranged on the protective sleeve, and whether the environment where the electronic equipment is located is interfered by the interference magnetic field is judged through the acquired magnetic field intensity, so that whether the electronic equipment is interfered by the interference magnetic field is automatically judged, and manual participation is not needed.
In another alternative implementation manner, a magnetic field strength value and/or a magnetic field strength direction may be obtained from a magnetic field sensor disposed on the electronic device, and whether the environment where the electronic device is located is interfered by the disturbing magnetic field may be determined according to the obtained magnetic field strength value and/or magnetic field strength direction. As shown in fig. 2, fig. 2 is a flowchart illustrating another screen control method according to an exemplary embodiment of the present disclosure, which may be used in an electronic device, and the method includes the following steps 201 to 204:
in step 201, when a hall potential change is detected by a hall sensor on the electronic device, a magnetic field strength value and/or a magnetic field strength direction is obtained from a magnetic field sensor provided on the electronic device.
In step 202, it is determined whether the environment where the electronic device is located is interfered by an interfering magnetic field according to the obtained magnetic field strength value and/or magnetic field strength direction.
In step 203, when it is determined that the environment where the electronic device is located is interfered by an interference magnetic field, detecting a distance of a protective case worn by the electronic device relative to a screen of the electronic device through a distance sensor.
In step 204, it is determined whether to trigger a screen-on event or a screen-off event according to the detected distance, where the screen-on event is an event of lighting up a screen of the electronic device, and the screen-off event is an event of turning off the screen of the electronic device.
In this embodiment, since the magnetic field sensor is provided on the electronic device, the magnetic field strength detected by the magnetic field sensor is affected by the opening and closing processes of the protective cover. When the hall potential change is detected by the hall sensor on the electronic device, the magnetic field strength value and/or the magnetic field strength direction detected by the magnetic field sensor provided on the electronic device can be acquired.
Aiming at the magnetic field intensity direction, the magnetic field intensity directions in the opening process and the closing process of the protective sleeve can be collected under the condition that an interference magnetic field does not exist, and a preset magnetic field intensity direction is obtained. If the obtained magnetic field intensity direction is different from the preset magnetic field intensity direction in the process that the Hall sensor detects that the Hall potential changes, it is judged that the environment where the electronic equipment is located is interfered by the interference magnetic field, and the preset magnetic field intensity direction is the magnetic field direction detected by the magnetic field sensor under the influence of the interference magnetic field. The magnetic field sensor can detect the directions of the three-axis magnetic field, and if one of the detected directions of the three-axis magnetic field is different from the preset magnetic field strength direction, the electronic equipment can be judged to be interfered by an interference magnetic field in the environment.
Therefore, whether the environment where the electronic equipment is located is interfered by the interference magnetic field or not is judged according to the magnetic field intensity direction, and the method is easy to realize.
And when the acquired magnetic field strength value is larger than a preset magnetic field strength threshold value according to the magnetic field strength value, judging that the environment where the electronic equipment is located is interfered by an interference magnetic field.
In this embodiment, a threshold magnetic field strength value may be preset, where the threshold magnetic field strength value is greater than the magnetic field strength value detected by the magnetic field sensor under the influence of the interference magnetic field. Therefore, when the obtained magnetic field strength value is larger than the preset magnetic field strength threshold value, the environment where the electronic equipment is located can be judged to be interfered by the interference magnetic field.
In one example, the predetermined threshold magnetic field strength value is determined from a maximum magnetic field strength value that is a magnetic field strength value that the magnetic field sensor detects when the protective casing is in the closed state when not under the influence of an interfering magnetic field.
When the protective cover is closed without being affected by the disturbing magnetic field, the magnetic field intensity detected by the magnetic field sensor is maximum, and this intensity value can be determined as the maximum magnetic field intensity value.
In one aspect, the preset magnetic field strength threshold may be the same as the maximum magnetic field strength value. And at the moment, when the acquired magnetic field strength value is greater than the maximum magnetic field strength value, judging that the environment where the electronic equipment is located is interfered by the interference magnetic field.
On the other hand, the preset magnetic field strength threshold value may be a value slightly larger or smaller than the maximum magnetic field strength value in order to avoid an influence caused by a detection error. Since the preset magnetic field intensity threshold is slightly larger or smaller than the maximum magnetic field intensity value, erroneous judgment caused by detection errors can be avoided.
In another example, in some cases, although the interference magnetic field is interfered, if the interference magnetic field is not large enough to affect the output result of the hall sensor, the output result of the hall sensor may still be used to determine whether to trigger the screen-on event, based on which the preset threshold of the magnetic field strength is determined according to the threshold of the magnetic field strength, which is the strength of the magnetic field strength detected by the magnetic field sensor when the hall sensor triggers the screen-on event/the screen-off event without being influenced by the interference magnetic field.
Because the Hall sensor outputs the output result which can trigger the screen-on event/screen-off event when detecting that the Hall potential changes to the critical value, the magnetic field intensity critical value detected by the magnetic field sensor is obtained when the Hall potential reaches the critical value. For example, the hall sensor outputs 1 when detecting that the hall potential changes to the first critical value, and 1 may indicate that a screen-lighting event is triggered, and a first magnetic field strength critical value detected by the magnetic field sensor when the hall potential changes to the first critical value is obtained; the Hall sensor outputs 0 when detecting that the Hall electric potential changes to a second critical value, wherein 0 can indicate that a screen-off event is triggered, and the second magnetic field intensity critical value detected by the magnetic field sensor when the Hall electric potential changes to the second critical value is obtained. The first critical value and the second critical value may be the same or different, and are specifically set according to requirements.
In an optional implementation manner, the preset magnetic field strength threshold is determined according to a sum of a maximum magnetic field strength value and a first magnetic field strength critical value, where the maximum magnetic field strength value is a magnetic field strength value detected by the magnetic field sensor in the closed state of the protective sleeve under the influence of an interference magnetic field, and the first magnetic field strength critical value is a magnetic field strength value detected by the magnetic field sensor when the hall sensor triggers a screen-on event under the influence of the interference magnetic field.
As one of the abnormal conditions, the screen is not lighted when the protective cover is opened, which may be because the hall potential cannot reach the first threshold value, there may be a magnetic field strength which is in the same direction as the first magnetic field strength threshold value and is greater than or equal to the first magnetic field strength threshold value. Therefore, the preset magnetic field strength threshold value may be a value greater than or equal to the sum value or a value slightly smaller than the sum value. The sum is the sum of a maximum magnetic field strength value and a first magnetic field strength critical value, the maximum magnetic field strength value is the magnetic field strength value detected by the magnetic field sensor when the protective sleeve is in the closed state under the influence of an interference magnetic field, and the first magnetic field strength critical value is the magnetic field strength value detected by the magnetic field sensor when the Hall sensor triggers a screen-lighting event under the influence of the interference magnetic field.
Based on the method, the maximum value monitored by the magnetic field sensor in the opening process can be obtained from the magnetic field sensor arranged on the electronic equipment, and when the obtained maximum value is larger than the preset magnetic field intensity threshold value, the environment where the electronic equipment is located is judged to be interfered by the interference magnetic field. This embodiment can avoid an abnormal situation where the protective cover is opened without lighting the screen.
In another optional implementation manner, the preset magnetic field strength threshold is determined according to a second magnetic field strength critical value, the direction of the preset magnetic field strength is opposite to that of the second magnetic field strength critical value, and the second magnetic field strength critical value is a magnetic field strength value detected by the magnetic field sensor when the hall sensor triggers a screen-out event under the influence of an undisturbed magnetic field.
As one of the abnormal conditions, the protective cover is closed without shielding, which may be because the hall potential cannot reach the second threshold, and there may be a magnetic field strength opposite to the second threshold and greater than or equal to the second threshold. Thus, the preset magnetic field strength threshold value may be a value greater than or equal to the second magnetic field strength threshold value, or a value slightly less than the second magnetic field strength threshold value.
Based on the method, a magnetic field strength value and a magnetic field strength direction are obtained from a magnetic field sensor arranged on the electronic equipment, and when the obtained magnetic field strength is larger than or equal to a preset magnetic field strength threshold value and the obtained magnetic field strength direction is opposite to the direction of a second magnetic field strength critical value, the environment where the electronic equipment is located is judged to be interfered by an interference magnetic field. This embodiment can avoid closed protective sheath but not extinguish the abnormal conditions of screen, and then avoids the electric quantity waste that the bright screen leads to.
Therefore, whether the environment where the electronic equipment is located is interfered by the interference magnetic field can be judged alone according to the magnetic field strength value or the magnetic field strength direction, and whether the environment where the electronic equipment is located is interfered by the interference magnetic field can also be judged by combining the magnetic field strength value and the magnetic field strength direction.
In addition, the synchronization steps 102 and 103 in steps 203 and 204 are the same as those in the related art, and are not described in detail here.
It can be seen from the above embodiments that, in this embodiment, when detecting a change in hall potential through a hall sensor on an electronic device, a magnetic field intensity value and/or a magnetic field intensity direction are obtained from the magnetic field sensor provided on the electronic device, whether the environment where the electronic device is located is interfered by an interference magnetic field is determined according to the obtained magnetic field intensity value and/or magnetic field intensity direction, when it is determined that the environment where the electronic device is located is interfered by the interference magnetic field, a distance of a protective cover worn by the electronic device with respect to a screen of the electronic device is detected through a distance sensor, and whether a screen-on event or a screen-off event is triggered is determined according to the. Whether the environment where the electronic equipment is located is interfered by the interference magnetic field or not is judged through the magnetic field strength value and/or the magnetic field strength direction detected by the magnetic field sensor, so that automatic judgment is realized, manual participation is not needed, the cost is saved, and the missing judgment caused by manual judgment is avoided.
It should be understood that, the above description only lists several methods for determining whether the environment of the electronic device is interfered by the interfering magnetic field, and may also include other methods, which are not described in detail herein.
The various technical features in the above embodiments can be arbitrarily combined, so long as there is no conflict or contradiction between the combinations of the features, but the combination is limited by the space and is not described one by one, and therefore, any combination of the various technical features in the above embodiments also belongs to the scope disclosed in the present specification.
Corresponding to the embodiment of the screen control method, the disclosure also provides an embodiment of the screen control device and the electronic equipment applied by the screen control device.
As shown in fig. 3, fig. 3 is a block diagram of a screen control device according to an exemplary embodiment, which includes a disturbing magnetic field determining module 310, a distance acquiring module 320, and an event triggering module 330.
The disturbing magnetic field judging module 310 is configured to judge whether the environment where the electronic device is located is disturbed by the disturbing magnetic field when the hall sensor on the electronic device detects the change of the hall potential.
The distance acquisition module 320 is configured to detect, by a distance sensor, a distance of a protective case worn by the electronic device relative to a screen of the electronic device when it is determined that the environment where the electronic device is located is interfered by an interference magnetic field.
The event triggering module 330 is configured to determine whether to trigger a screen-on event or a screen-off event according to the detected distance, where the screen-on event is an event that lights up a screen of the electronic device, and the screen-off event is an event that screens off the screen of the electronic device.
According to the embodiment, when the Hall sensor on the electronic equipment detects the change of the Hall potential, whether the environment where the electronic equipment is located is interfered by an interference magnetic field or not is judged, when the environment where the electronic equipment is located is determined to be interfered by the interference magnetic field, the distance between the protective sleeve worn by the electronic equipment and the screen of the electronic equipment is detected through the distance sensor, and whether a screen-on event or a screen-off event is triggered or not is judged according to the detected distance. Through combining hall sensor and distance sensor to can avoid only judging the erroneous judgement that leads to through hall sensor's output result when receiving interference magnetic field interference, and then avoid the erroneous judgement to bring not good user experience for the user.
As shown in fig. 4, fig. 4 is a block diagram of another screen control device shown in the present disclosure according to an exemplary embodiment, which is based on the foregoing embodiment shown in fig. 3, and the disturbing magnetic field determining module 310 includes a first determining sub-module 311.
The first determining submodule 311 is configured to determine whether the environment where the electronic device is located is interfered by an interference magnetic field according to a magnetic field intensity detected by a magnetic field sensor disposed on the protective sleeve, where a relative position of the magnetic field sensor and a magnet on the protective sleeve is fixed in a process of closing or opening the protective sleeve.
According to the embodiment, the magnetic field intensity can be acquired from the magnetic field sensor arranged on the protective sleeve, and whether the environment where the electronic equipment is located is interfered by the interference magnetic field or not is judged through the acquired magnetic field intensity, so that whether the electronic equipment is interfered by the interference magnetic field or not is automatically judged, and manual participation is not needed.
As shown in fig. 5, fig. 5 is a block diagram of another screen control device shown in the present disclosure according to an exemplary embodiment, on the basis of the foregoing embodiment shown in fig. 3, the disturbing magnetic field determining module 310 includes: a parameter acquisition submodule 312 and a second decision submodule 313.
Wherein, the parameter obtaining sub-module 312 is configured to obtain the magnetic field strength value and/or the magnetic field strength direction from a magnetic field sensor disposed on the electronic device.
And the second judging submodule 313 is configured to judge whether the environment where the electronic device is located is interfered by the interference magnetic field according to the acquired magnetic field strength value and/or magnetic field strength direction.
According to the embodiment, whether the environment where the electronic equipment is located is interfered by the interference magnetic field or not can be judged through the magnetic field strength value and/or the magnetic field strength direction detected by the magnetic field sensor, so that automatic judgment is realized, manual participation is not needed, the cost is saved, and the missing judgment caused by manual judgment is avoided.
As shown in fig. 6, fig. 6 is a block diagram of another screen control device shown in the present disclosure according to an exemplary embodiment, based on the foregoing embodiment shown in fig. 5, the second judgment sub-module 313 may include at least one of the following sub-modules, and for clarity of illustration, fig. 5 shows all the sub-modules that the second judgment sub-module 313 may include: an intensity value determination sub-module 3131 and a direction determination sub-module 3132.
The intensity value determining submodule 3131 is configured to determine that the environment where the electronic device is located is interfered by an interfering magnetic field when the obtained magnetic field intensity value is greater than a preset magnetic field intensity threshold.
A direction determination sub-module 3132 configured to determine that the environment in which the electronic device is located is interfered by the interfering magnetic field when the acquired magnetic field strength direction is different from a preset magnetic field strength direction, where the preset magnetic field strength direction is a magnetic field direction detected by the magnetic field sensor without being affected by the interfering magnetic field.
According to the embodiment, when the acquired magnetic field strength value is larger than the preset magnetic field strength threshold value, the environment where the electronic equipment is located can be judged to be interfered by the interference magnetic field, so that whether the environment where the electronic equipment is located is interfered by the interference magnetic field or not can be judged through the magnetic field strength value; the method can also judge that the environment where the electronic equipment is located is interfered by the interference magnetic field when the acquired magnetic field intensity direction is different from the preset magnetic field intensity direction, so that whether the environment where the electronic equipment is located is interfered by the interference magnetic field or not can be judged according to the magnetic field intensity direction, and the method is easy to realize; the obtained magnetic field strength value and the obtained magnetic field strength direction can also be simultaneously judged.
In an alternative implementation, the preset magnetic field strength threshold is determined according to a maximum magnetic field strength value, which is a magnetic field strength value detected by the magnetic field sensor in the closed state of the protective casing without being affected by an interfering magnetic field.
In an alternative implementation manner, the preset magnetic field strength threshold is determined according to a sum of a maximum magnetic field strength value and a first magnetic field strength critical value, where the maximum magnetic field strength value is a magnetic field strength value detected by the magnetic field sensor in the closed state of the protective sleeve under the influence of an interference magnetic field, and the first magnetic field strength critical value is a magnetic field strength value detected by the magnetic field sensor when the hall sensor triggers a screen-on event under the influence of the interference magnetic field;
in an optional implementation manner, the preset magnetic field strength threshold is determined according to a second magnetic field strength critical value, the direction of the preset magnetic field strength is opposite to that of the second magnetic field strength critical value, and the second magnetic field strength critical value is a magnetic field strength value detected by the magnetic field sensor when the hall sensor triggers a screen-out event under the influence of an interference magnetic field.
In an optional implementation, the event triggering module is further configured to:
and when the environment where the electronic equipment is located is determined not to be interfered by an interference magnetic field, judging whether to trigger a screen-on event or a screen-off event according to the output result of the Hall sensor.
According to the embodiment, when the environment where the electronic equipment is located is determined not to be interfered by the interference magnetic field, whether the screen-on event or the screen-off event is triggered or not can be judged according to the output result of the Hall sensor, the method is easy to realize, and misjudgment caused by judgment only by the distance sensor in any situation can be avoided.
In an optional implementation, the event triggering module is further configured to:
and when the environment where the electronic equipment is located is determined not to be interfered by an interference magnetic field, judging whether to trigger a screen-on event or a screen-off event simultaneously according to the output result of the Hall sensor and the detected distance.
According to the embodiment, when the environment where the electronic equipment is located is determined not to be interfered by the interference magnetic field, whether the screen-on event or the screen-off event is triggered or not can be judged simultaneously through the output result of the Hall sensor and the detected distance, so that the judgment accuracy is improved, the user experience is improved, and the trouble brought to the user by misjudgment is avoided.
Correspondingly, the present disclosure also provides a screen control device, which includes a processor; a memory for storing processor-executable instructions; wherein the processor is configured to:
when the Hall potential change is detected through a Hall sensor on the electronic equipment, whether the environment where the electronic equipment is located is interfered by an interference magnetic field or not is judged.
When the environment where the electronic equipment is located is determined to be interfered by an interference magnetic field, the distance of a protective sleeve worn by the electronic equipment relative to a screen of the electronic equipment is detected through a distance sensor.
And judging whether a screen-on event or a screen-off event is triggered according to the detected distance, wherein the screen-on event is an event for lighting up the screen of the electronic equipment, and the screen-off event is an event for turning off the screen of the electronic equipment.
The specific details of the implementation process of the functions and actions of each module in the device are referred to the implementation process of the corresponding step in the method, and are not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. One of ordinary skill in the art can understand and implement it without inventive effort.
As shown in fig. 7, fig. 7 is a block diagram illustrating a screen control device 700 according to an exemplary embodiment of the present disclosure. The apparatus 700 may be an electronic device such as a mobile phone, a computer, a digital broadcast terminal, a game console, a tablet device, a personal digital assistant, etc. having a routing function.
Referring to fig. 7, apparatus 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
The processing component 702 generally controls overall operation of the device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 702 may include one or more processors 720 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 702 may include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
The memory 704 is configured to store various types of data to support operations at the apparatus 700. Examples of such data include instructions for any application or method operating on device 700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 704 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 706 provides power to the various components of the device 700. The power components 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 700.
The multimedia component 708 includes a screen that provides an output interface between the device 700 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 700 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 710 is configured to output and/or input audio signals. For example, audio component 710 includes a Microphone (MIC) configured to receive external audio signals when apparatus 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 704 or transmitted via the communication component 716. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 714 includes one or more sensors for providing status assessment of various aspects of the apparatus 700. For example, sensor assembly 714 may detect an open/closed state of device 700, the relative positioning of components, such as a display and keypad of device 700, the change in position of device 700 or one of the components of device 700, the presence or absence of user contact with device 700, the orientation or acceleration/deceleration of device 700, and the change in temperature of device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a distance sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate wired or wireless communication between the apparatus 700 and other devices. The apparatus 700 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 704 comprising instructions, executable by the processor 720 of the device 700 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Wherein the instructions in the storage medium, when executed by the processor, enable the apparatus 700 to perform a screen control method comprising:
when the Hall potential change is detected through a Hall sensor on the electronic equipment, whether the environment where the electronic equipment is located is interfered by an interference magnetic field or not is judged.
When the environment where the electronic equipment is located is determined to be interfered by an interference magnetic field, the distance of a protective sleeve worn by the electronic equipment relative to a screen of the electronic equipment is detected through a distance sensor.
And judging whether a screen-on event or a screen-off event is triggered according to the detected distance, wherein the screen-on event is an event for lighting up the screen of the electronic equipment, and the screen-off event is an event for turning off the screen of the electronic equipment.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
The above description is only exemplary of the present disclosure and should not be taken as limiting the disclosure, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (13)

1. A screen control method, characterized in that the method comprises:
when the Hall potential change is detected by a Hall sensor on the electronic equipment, whether the environment where the electronic equipment is located is interfered by an interference magnetic field is judged according to the magnetic field intensity detected by the set magnetic field sensor; the interference magnetic field does not comprise a geomagnetic field and a magnetic field generated by a magnet on a protective sleeve worn by the electronic equipment;
when the environment where the electronic equipment is located is determined to be interfered by an interference magnetic field, detecting the distance of a protective sleeve worn by the electronic equipment relative to a screen of the electronic equipment through a distance sensor;
and judging whether a screen-on event or a screen-off event is triggered according to the detected distance, wherein the screen-on event is an event for lighting up the screen of the electronic equipment, and the screen-off event is an event for turning off the screen of the electronic equipment.
2. The method according to claim 1, wherein the determining whether the environment where the electronic device is located is interfered by an interference magnetic field according to the magnetic field intensity detected by the arranged magnetic field sensor comprises:
according to the magnetic field intensity detected by the magnetic field sensor arranged on the protective sleeve, whether the environment where the electronic equipment is located is interfered by an interference magnetic field or not is judged, wherein in the closing or opening process of the protective sleeve, the relative position of the magnetic field sensor and the magnet on the protective sleeve is fixed.
3. The method according to claim 1, wherein the determining whether the environment where the electronic device is located is interfered by an interference magnetic field according to the magnetic field intensity detected by the arranged magnetic field sensor comprises:
acquiring a magnetic field strength value and/or a magnetic field strength direction from a magnetic field sensor arranged on the electronic equipment;
and judging whether the environment where the electronic equipment is located is interfered by an interference magnetic field according to the acquired magnetic field strength value and/or the magnetic field strength direction.
4. The method according to claim 3, wherein the determining whether the environment where the electronic device is located is interfered by the disturbing magnetic field according to the obtained magnetic field strength value and/or magnetic field strength direction at least comprises one of the following manners:
when the obtained magnetic field strength value is larger than a preset magnetic field strength threshold value, judging that the environment where the electronic equipment is located is interfered by an interference magnetic field;
when the obtained magnetic field intensity direction is different from the preset magnetic field intensity direction, the situation that the environment where the electronic equipment is located is interfered by the interference magnetic field is judged, and the preset magnetic field intensity direction is the magnetic field direction detected by the magnetic field sensor under the influence of the interference magnetic field.
5. The method of claim 4,
the preset magnetic field strength threshold is determined according to a maximum magnetic field strength value, wherein the maximum magnetic field strength value is a magnetic field strength value detected by the magnetic field sensor in the closed state of the protective sleeve under the influence of an interference magnetic field;
or, the preset magnetic field strength threshold is determined according to a sum of a maximum magnetic field strength value and a first magnetic field strength critical value, the maximum magnetic field strength value is a magnetic field strength value detected by the magnetic field sensor in the closed state of the protective sleeve under the influence of an interference magnetic field, and the first magnetic field strength critical value is a magnetic field strength value detected by the magnetic field sensor when the hall sensor triggers a screen-on event under the influence of the interference magnetic field;
or the preset magnetic field strength threshold is determined according to a second magnetic field strength critical value, the direction of the preset magnetic field strength is opposite to that of the second magnetic field strength critical value, and the second magnetic field strength critical value is a magnetic field strength value detected by the magnetic field sensor when the hall sensor triggers a screen-off event under the influence of an interference magnetic field.
6. The method of any of claims 1 to 5, further comprising:
when the environment where the electronic equipment is located is determined not to be interfered by an interference magnetic field, whether a screen-on event or a screen-off event is triggered or not is judged according to an output result of the Hall sensor;
or when the environment where the electronic equipment is located is determined not to be interfered by an interference magnetic field, whether a screen-on event or a screen-off event is triggered or not is judged simultaneously according to the output result of the Hall sensor and the detected distance.
7. A screen control apparatus, characterized in that the apparatus comprises:
the interference magnetic field judging module is configured to judge whether the environment where the electronic equipment is located is interfered by an interference magnetic field through the magnetic field intensity detected by the set magnetic field sensor when the Hall potential change is detected by the Hall sensor on the electronic equipment; the interference magnetic field does not comprise a geomagnetic field and a magnetic field generated by a magnet on a protective sleeve worn by the electronic equipment;
the distance acquisition module is configured to detect the distance of a protective sleeve worn by the electronic equipment relative to a screen of the electronic equipment through a distance sensor when the environment where the electronic equipment is located is determined to be interfered by an interference magnetic field;
and the event triggering module is configured to judge whether a screen-on event or a screen-off event is triggered according to the detected distance, wherein the screen-on event is an event for lighting up a screen of the electronic equipment, and the screen-off event is an event for turning off the screen of the electronic equipment.
8. The apparatus of claim 7, wherein the disturbing magnetic field determining module comprises:
the first judgment submodule is configured to judge whether the environment where the electronic equipment is located is interfered by an interference magnetic field according to the magnetic field intensity detected by a magnetic field sensor arranged on the protective sleeve, wherein the relative position of the magnetic field sensor and a magnet on the protective sleeve is fixed in the process of closing or opening the protective sleeve.
9. The apparatus of claim 7, wherein the disturbing magnetic field determining module comprises:
the parameter acquisition sub-module is configured to acquire a magnetic field strength value and/or a magnetic field strength direction from a magnetic field sensor arranged on the electronic equipment;
and the second judging submodule is configured to judge whether the environment where the electronic equipment is located is interfered by the interference magnetic field according to the acquired magnetic field strength value and/or the magnetic field strength direction.
10. The apparatus of claim 9, wherein the second determination submodule comprises at least one of the following submodules:
the strength value judgment submodule is configured to judge that the environment where the electronic equipment is located is interfered by an interference magnetic field when the acquired magnetic field strength value is larger than a preset magnetic field strength threshold value;
and the direction judgment submodule is configured to judge that the environment where the electronic equipment is located is interfered by an interference magnetic field when the acquired magnetic field strength direction is different from a preset magnetic field strength direction, wherein the preset magnetic field strength direction is the magnetic field direction detected by the magnetic field sensor under the influence of the interference magnetic field.
11. The apparatus of claim 10,
the preset magnetic field strength threshold is determined according to a maximum magnetic field strength value, wherein the maximum magnetic field strength value is a magnetic field strength value detected by the magnetic field sensor in the closed state of the protective sleeve under the influence of an interference magnetic field;
or, the preset magnetic field strength threshold is determined according to a sum of a maximum magnetic field strength value and a first magnetic field strength critical value, the maximum magnetic field strength value is a magnetic field strength value detected by the magnetic field sensor in the closed state of the protective sleeve under the influence of an interference magnetic field, and the first magnetic field strength critical value is a magnetic field strength value detected by the magnetic field sensor when the hall sensor triggers a screen-on event under the influence of the interference magnetic field;
or the preset magnetic field strength threshold is determined according to a second magnetic field strength critical value, the direction of the preset magnetic field strength is opposite to that of the second magnetic field strength critical value, and the second magnetic field strength critical value is a magnetic field strength value detected by the magnetic field sensor when the hall sensor triggers a screen-off event under the influence of an interference magnetic field.
12. The apparatus of any of claims 7 to 11, wherein the event triggering module is further configured to:
when the environment where the electronic equipment is located is determined not to be interfered by an interference magnetic field, whether a screen-on event or a screen-off event is triggered or not is judged according to an output result of the Hall sensor;
or when the environment where the electronic equipment is located is determined not to be interfered by an interference magnetic field, whether a screen-on event or a screen-off event is triggered or not is judged simultaneously according to the output result of the Hall sensor and the detected distance.
13. A screen control apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when the Hall potential change is detected by a Hall sensor on the electronic equipment, whether the environment where the electronic equipment is located is interfered by an interference magnetic field is judged according to the magnetic field intensity detected by the set magnetic field sensor; the interference magnetic field does not comprise a geomagnetic field and a magnetic field generated by a magnet on a protective sleeve worn by the electronic equipment;
when the environment where the electronic equipment is located is determined to be interfered by an interference magnetic field, detecting the distance of a protective sleeve worn by the electronic equipment relative to a screen of the electronic equipment through a distance sensor;
and judging whether a screen-on event or a screen-off event is triggered according to the detected distance, wherein the screen-on event is an event for lighting up the screen of the electronic equipment, and the screen-off event is an event for turning off the screen of the 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 CN106339168A (en) 2017-01-18
CN106339168B true 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)

Families Citing this family (13)

* 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
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
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
CN111432068B (en) * 2020-03-10 2022-04-08 北京小米移动软件有限公司 Display state control method and device, electronic equipment and storage medium
CN113495652A (en) * 2020-03-20 2021-10-12 北京小米移动软件有限公司 Screen state switching method and device and storage medium
CN113865632B (en) * 2020-06-30 2024-05-07 北京小米移动软件有限公司 Method, device, system and medium for calibrating internal magnetic field of electronic equipment
CN112286599B (en) * 2020-08-20 2024-09-10 北京小米移动软件有限公司 Control method of terminal equipment and terminal equipment
CN112945218A (en) * 2021-01-26 2021-06-11 北京小米移动软件有限公司 Method and device for determining direction of electronic equipment, electronic equipment and storage medium
CN113804237B (en) * 2021-09-26 2024-08-30 东莞华贝电子科技有限公司 Detection distance testing method and device for electronic equipment
CN117395979B (en) * 2023-12-13 2024-03-15 深圳市海罗光电有限公司 Method, device, equipment and storage medium for preventing electromagnetic interference of display

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683560A (en) * 2013-12-03 2015-06-03 宏达国际电子股份有限公司 Accessory, electronic assembly, control method, and method for forming an accessory

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI460650B (en) * 2011-10-25 2014-11-11 Kye Systems Corp Input device and object zooming control method for thereof
US9651353B2 (en) * 2012-07-24 2017-05-16 International Business Machines Corporation Calibration free distance sensor
KR20150007910A (en) * 2013-07-11 2015-01-21 삼성전자주식회사 user termincal device for supporting user interaxion and methods thereof
CN103516902B (en) * 2013-09-18 2015-09-16 广东欧珀移动通信有限公司 Method and the device of the screen state of electronic equipment is controlled by protective sleeve
CN103618821B (en) * 2013-10-30 2015-09-23 广东欧珀移动通信有限公司 The control method of electronic equipment screen state and device
CN103793243B (en) * 2013-11-22 2017-02-08 广州视源电子科技股份有限公司 screen locking/unlocking method of mobile device, mobile device and protective shell
CN103970575B (en) * 2014-05-22 2017-11-14 广东欧珀移动通信有限公司 A kind of quick method and device for starting the application program in mobile terminal
CN104601761A (en) * 2015-02-12 2015-05-06 广东欧珀移动通信有限公司 Mobile terminal protective case, mobile terminal and mobile terminal control method
CN104640184B (en) * 2015-02-15 2018-09-04 广东欧珀移动通信有限公司 A kind of screen awakening method and device
CN104731490B (en) * 2015-04-20 2017-07-21 广东欧珀移动通信有限公司 screen control method and device
CN105141836B (en) * 2015-08-05 2018-05-29 广东欧珀移动通信有限公司 A kind of method and device for reducing terminal rotating camera false triggering
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

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683560A (en) * 2013-12-03 2015-06-03 宏达国际电子股份有限公司 Accessory, electronic assembly, control method, and method for forming an accessory

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Indirect Measurement of a Bar Magnet Position Using a Hall Sensor Array;Uwe Marschner;《IEEE Transactions on Magnetics》;20070521;全文 *
传感器技术及在智能手机中的应用;李宏年;《中国新通信》;20151220;第82-83页 *

Also Published As

Publication number Publication date
CN106339168A (en) 2017-01-18

Similar Documents

Publication Publication Date Title
CN106339168B (en) Screen control method and device
US9860844B2 (en) Method and apparatus of temperature control
CN104968007B (en) Testing method and device for intelligent equipment
CN109557999B (en) Bright screen control method and device and storage medium
EP3151117A1 (en) Method and device for delaying information broadcasting
CN106484282B (en) Equipment control method and device
CN107132949B (en) Anti-interference method, device, terminal and storage medium
EP3322227B1 (en) Methods and apparatuses for controlling wireless connection, computer program and recording medium
CN105446616A (en) Screen display control method, apparatus and device
CN105260247A (en) Method and device for controlling terminal application
CN107132769B (en) Intelligent equipment control method and device
CN105979066A (en) Screen lighting-up method and screen lighting-up device
CN110059548B (en) Target detection method and device
CN109905543B (en) Method and device for preventing misoperation of terminal
CN107656616B (en) Input interface display method and device and electronic equipment
CN109769191B (en) Audio output detection method and device and electronic equipment
CN104469683A (en) Communication mode switching method and device
CN106791145A (en) Short message management method and device
CN107682101B (en) Noise detection method and device and electronic equipment
CN106446827B (en) Iris recognition function detection method and device
CN105303647B (en) Drive recorder and its progress control method, device
US20170180968A1 (en) Method, apparatus and computer-readable medium for cellular data monitoring
CN111722919B (en) Method and device for running background application program, storage medium and electronic equipment
CN107621990B (en) Control method and device of terminal key and terminal
CN114115768A (en) Control method and 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