CN106339168A - Screen control method and device - Google Patents
Screen control method and device Download PDFInfo
- Publication number
- CN106339168A CN106339168A CN201610702692.3A CN201610702692A CN106339168A CN 106339168 A CN106339168 A CN 106339168A CN 201610702692 A CN201610702692 A CN 201610702692A CN 106339168 A CN106339168 A CN 106339168A
- Authority
- CN
- China
- Prior art keywords
- magnetic field
- field strength
- electronic device
- screen
- event
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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 present disclosure relates to a screen control method and device, and the method includes: when the Hall sensor on the electronic device detects a change in the Hall potential, judging whether the environment where the electronic device is located is disturbed by an interfering magnetic field; When the environment is disturbed by an interfering magnetic field, the distance sensor detects the distance of the protective cover worn by the electronic device relative to the screen of the electronic device; judges whether to trigger a bright screen event or an off screen event according to the detected distance, and the bright screen The event is an event for turning on the screen of the electronic device, and the event for turning off the screen is an event for turning off the screen of the electronic device. By combining the Hall sensor with the distance sensor, it is possible to avoid misjudgment caused by judging only based on the output result of the Hall sensor when being interfered by an interfering magnetic field, thereby avoiding bad user experience caused by misjudgment.
Description
技术领域technical field
本申请涉及电子技术领域,尤其涉及屏幕控制方法及装置。The present application relates to the field of electronic technology, in particular to a screen control method and device.
背景技术Background technique
随着科技的发展,手机、平板电脑等电子设备越来越受到用户欢迎,用户使用电子设备的场合也越来越多。为了保护电子设备不被损坏,电子设备可以配置有保护套。通过在电子设备主板上安装霍尔传感器以及在保护套上安装磁铁,以实现电子设备结合保护套控制电子设备的屏幕点亮或熄灭。例如,当保护套闭合时,保护套上的磁铁引起霍尔传感器内部发生电势变化,触发灭屏事件,从而使屏幕熄灭,当打开保护套时,触发亮屏事件,从而使屏幕点亮。With the development of science and technology, electronic devices such as mobile phones and tablet computers are becoming more and more popular among users, and there are more and more occasions for users to use electronic devices. In order to protect the electronic equipment from being damaged, the electronic equipment may be equipped with a protective case. By installing Hall sensors on the motherboard of the electronic device and installing magnets on the protective cover, the electronic device can be combined with the protective cover to control the screen of the electronic device to turn on or off. For example, when the protective cover is closed, the magnet on the protective cover causes a potential change inside the Hall sensor, which triggers a screen-off event, thereby turning off the screen, and when the protective cover is opened, triggers a screen-on event, thereby turning on the screen.
然而当电子设备附近有干扰磁场时,通过霍尔传感器的检测结果控制屏幕点亮或灭屏,会出现控制不准确的情况。However, when there is an interfering magnetic field near the electronic device, the detection result of the Hall sensor is used to control the screen to be on or off, and the control will be inaccurate.
发明内容Contents of the invention
为克服相关技术中存在的问题,本公开提供了屏幕控制方法及装置。In order to overcome the problems existing in the related technologies, the present disclosure provides a screen control method and device.
根据本公开实施例的第一方面,提供一种屏幕控制方法,所述方法包括:According to a first aspect of an embodiment of the present disclosure, there is provided a screen control method, the method comprising:
在通过电子设备上的霍尔传感器检测到霍尔电势变化时,判断所述电子设备所处环境是否受到干扰磁场干扰;When the Hall sensor on the electronic device detects a change in the Hall potential, it is judged whether the environment where the electronic device is located is disturbed by an interfering magnetic field;
在确定所述电子设备所处环境受到干扰磁场干扰时,通过距离传感器检测所述电子设备所穿戴的保护套相对于所述电子设备的屏幕的距离;When it is determined that the environment in which the electronic device is located is disturbed by an interfering magnetic field, a distance sensor is used to detect the distance of the protective cover worn by the electronic device relative to the screen of the electronic device;
根据所检测距离判断是否触发亮屏事件或灭屏事件,所述亮屏事件是将所述电子设备的屏幕点亮的事件,所述灭屏事件是将所述电子设备的屏幕息屏的事件。Determine whether to trigger a screen-on event or a screen-off event according to the detected distance, the screen-on event is an event that lights up the screen of the electronic device, and the screen-off event is an event that turns off the screen of the electronic device .
在一个例子中,所述判断电子设备所处环境是否受到干扰磁场干扰,包括:In an example, the judging whether the environment where the electronic device is located is disturbed by a disturbing magnetic field includes:
根据设置在所述保护套上的磁场传感器所检测的磁场强度判断电子设备所处环境是否受到干扰磁场干扰,其中,在所述保护套闭合或打开过程中,所述磁场传感器与所述保护套上磁铁的相对位置固定。According to the magnetic field strength detected by the magnetic field sensor arranged on the protective cover, it is judged whether the environment where the electronic device is located is disturbed by a disturbing magnetic field, wherein, during the closing or opening process of the protective cover, the magnetic field sensor and the protective cover The relative position of the upper magnet is fixed.
在一个例子中,所述判断电子设备所处环境是否受到干扰磁场干扰,包括:In an example, the judging whether the environment where the electronic device is located is disturbed by a disturbing magnetic field includes:
从设置在电子设备上的磁场传感器中获取磁场强度值和/或磁场强度方向;Obtaining the magnetic field strength value and/or the magnetic field strength direction from a magnetic field sensor disposed on the electronic device;
根据所获取的磁场强度值和/或磁场强度方向判断电子设备所处环境是否受到干扰磁场干扰。According to the acquired magnetic field strength value and/or magnetic field strength direction, it is judged whether the environment where the electronic device is located is disturbed by a disturbing magnetic field.
在一个例子中,所述根据所获取的磁场强度值和/或磁场强度方向判断电子设备所处环境是否受到干扰磁场干扰,至少包括下述一种方式:In an example, the judging whether the environment where the electronic device is located is disturbed by a disturbing magnetic field according to the obtained magnetic field strength value and/or magnetic field strength direction includes at least one of the following methods:
所获取的磁场强度值大于预设磁场强度阈值时,判定电子设备所处环境受到干扰磁场干扰;When the obtained magnetic field strength value is greater than the preset magnetic field strength threshold, it is determined that the environment where the electronic device is located is disturbed by a disturbing magnetic field;
所获取的磁场强度方向与预设磁场强度方向不同时,判定电子设备所处环境受到干扰磁场干扰,所述预设磁场强度方向是不受干扰磁场影响下所述磁场传感器检测到的磁场方向。When the acquired magnetic field strength direction is different from the preset magnetic field strength direction, it is determined that the environment where the electronic device is located is disturbed by a disturbing magnetic field, and the preset magnetic field strength direction is a magnetic field direction detected by the magnetic field sensor without being affected by the disturbing magnetic field.
在一个例子中,所述预设磁场强度阈值根据最大磁场强度值确定,所述最大磁场强度值是不受干扰磁场影响下所述磁场传感器在所述保护套闭合状态时检测到的磁场强度值;In one example, the preset magnetic field strength threshold is determined according to the maximum magnetic field strength value, and the maximum magnetic field strength value is the magnetic field strength value detected by the magnetic field sensor in the closed state of the protective cover without being affected by a disturbing magnetic field ;
或,所述预设磁场强度阈值根据最大磁场强度值与第一磁场强度临界值的和值确定,所述最大磁场强度值是不受干扰磁场影响下所述磁场传感器在所述保护套闭合状态时检测到的磁场强度值,所述第一磁场强度临界值是不受干扰磁场影响下霍尔传感器触发亮屏事件时所述磁场传感器检测到的磁场强度值;Or, the preset magnetic field strength threshold is determined according to the sum of the maximum magnetic field strength value and the first magnetic field strength critical value, and the maximum magnetic field strength value is when the magnetic field sensor is in the closed state of the protective cover without being affected by a disturbing magnetic field The magnetic field strength value detected at the time, 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 bright screen event without being affected by an interfering magnetic field;
或,所述预设磁场强度阈值根据第二磁场强度临界值确定,所述预设磁场强度方向与第二磁场强度临界值的方向相反,所述第二磁场强度临界值是不受干扰磁场影响下霍尔传感器触发灭屏事件时所述磁场传感器检测到的磁场强度值。Or, the preset magnetic field strength threshold is determined according to the second magnetic field strength critical value, the direction of the preset magnetic field strength is opposite to the direction of the second magnetic field strength critical value, and the second magnetic field strength critical value is not affected by the disturbance magnetic field The magnetic field strength value detected by the magnetic field sensor when the lower Hall sensor triggers the screen-off event.
在一个例子中,所述方法还包括:In one example, the method further includes:
在确定电子设备所处环境没有受到干扰磁场干扰时,通过所述霍尔传感器的输出结果判断是否触发亮屏事件或灭屏事件;When it is determined that the environment in which the electronic device is located is not disturbed by the interfering magnetic field, it is judged by the output result of the Hall sensor whether to trigger a screen-on event or a screen-off event;
或,在确定电子设备所处环境没有受到干扰磁场干扰时,通过所述霍尔传感器的输出结果和所检测距离同时判断是否触发亮屏事件或灭屏事件。Or, when it is determined that the environment where the electronic device is located is not disturbed by the interfering magnetic field, simultaneously judge whether to trigger a screen-on event or a screen-off event based on the output result of the Hall sensor and the detected distance.
根据本公开实施例的第二方面,提供一种屏幕控制装置,所述装置包括:According to a second aspect of an embodiment of the present disclosure, there is provided a screen control device, the device comprising:
干扰磁场判断模块,被配置为在通过电子设备上的霍尔传感器检测到霍尔电势变化时,判断所述电子设备所处环境是否受到干扰磁场干扰;The interference magnetic field judging module is configured to judge whether the environment where the electronic device is located is disturbed by the interference magnetic field when the Hall sensor on the electronic device detects a change in the Hall potential;
距离获取模块,被配置为在确定所述电子设备所处环境受到干扰磁场干扰时,通过距离传感器检测所述电子设备所穿戴的保护套相对于所述电子设备的屏幕的距离;The distance acquisition module is configured to detect the distance of the protective cover worn by the electronic device relative to the screen of the electronic device through a distance sensor when it is determined that the environment where the electronic device is located is disturbed by an interfering magnetic field;
事件触发模块,被配置为根据所检测距离判断是否触发亮屏事件或灭屏事件,所述亮屏事件是将所述电子设备的屏幕点亮的事件,所述灭屏事件是将所述电子设备的屏幕息屏的事件。The event trigger module is configured to judge whether to trigger a screen-on event or a screen-off event according to the detected distance, the screen-on event is an event that lights up the screen of the electronic device, and the screen-off event is an event that turns the electronic device The event that the screen of the device turns off.
在一个例子中,所述干扰磁场判断模块包括:In one example, the interference magnetic field judging module includes:
第一判断子模块,被配置为根据设置在所述保护套上的磁场传感器所检测的磁场强度判断电子设备所处环境是否受到干扰磁场干扰,其中,在所述保护套闭合或打开过程中,所述磁场传感器与所述保护套上磁铁的相对位置固定。The first judging submodule is configured to judge whether the environment where the electronic device is located is disturbed by a disturbing magnetic field according to the magnetic field strength detected by the magnetic field sensor arranged on the protective cover, wherein, during the closing or opening process of the protective cover, The relative position of the magnetic field sensor and the magnet on the protective cover is fixed.
在一个例子中,所述干扰磁场判断模块包括:In one example, the interference magnetic field judging module includes:
参数获取子模块,被配置为从设置在电子设备上的磁场传感器中获取磁场强度值和/或磁场强度方向;The parameter acquisition submodule is configured to acquire the magnetic field strength value and/or the magnetic field strength direction from the magnetic field sensor provided on the electronic device;
第二判断子模块,被配置为根据所获取的磁场强度值和/或磁场强度方向判断电子设备所处环境是否受到干扰磁场干扰。The second judging submodule is configured to judge whether the environment where the electronic device is located is disturbed by a disturbing magnetic field according to the acquired magnetic field strength value and/or magnetic field strength direction.
在一个例子中,所述第二判断子模块至少包括下述一种子模块:In one example, the second judging submodule includes at least one of the following submodules:
强度值判断子模块,被配置为所获取的磁场强度值大于预设磁场强度阈值时,判定电子设备所处环境受到干扰磁场干扰;The strength value judging sub-module is configured to determine that the environment where the electronic device is located is disturbed by a disturbing magnetic field when the obtained magnetic field strength value is greater than a preset magnetic field strength threshold;
方向判断子模块,被配置为所获取的磁场强度方向与预设磁场强度方向不同时,判定电子设备所处环境受到干扰磁场干扰,所述预设磁场强度方向是不受干扰磁场影响下所述磁场传感器检测到的磁场方向。The direction judging submodule is configured to determine that the environment where the electronic device is located is disturbed by a disturbing magnetic field when the acquired magnetic field strength direction is different from the preset magnetic field strength direction, and the preset magnetic field strength direction is not affected by the disturbing magnetic field as described below The direction of the magnetic field detected by the magnetic field sensor.
在一个例子中,所述预设磁场强度阈值根据最大磁场强度值确定,所述最大磁场强度值是不受干扰磁场影响下所述磁场传感器在所述保护套闭合状态时检测到的磁场强度值;In one example, the preset magnetic field strength threshold is determined according to the maximum magnetic field strength value, and the maximum magnetic field strength value is the magnetic field strength value detected by the magnetic field sensor in the closed state of the protective cover without being affected by a disturbing magnetic field ;
或,所述预设磁场强度阈值根据最大磁场强度值与第一磁场强度临界值的和值确定,所述最大磁场强度值是不受干扰磁场影响下所述磁场传感器在所述保护套闭合状态时检测到的磁场强度值,所述第一磁场强度临界值是不受干扰磁场影响下霍尔传感器触发亮屏事件时所述磁场传感器检测到的磁场强度值;Or, the preset magnetic field strength threshold is determined according to the sum of the maximum magnetic field strength value and the first magnetic field strength critical value, and the maximum magnetic field strength value is when the magnetic field sensor is in the closed state of the protective cover without being affected by a disturbing magnetic field The magnetic field strength value detected at the time, 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 bright screen event without being affected by an interfering magnetic field;
或,所述预设磁场强度阈值根据第二磁场强度临界值确定,所述预设磁场强度方向与第二磁场强度临界值的方向相反,所述第二磁场强度临界值是不受干扰磁场影响下霍尔传感器触发灭屏事件时所述磁场传感器检测到的磁场强度值。Or, the preset magnetic field strength threshold is determined according to the second magnetic field strength critical value, the direction of the preset magnetic field strength is opposite to the direction of the second magnetic field strength critical value, and the second magnetic field strength critical value is not affected by the disturbance magnetic field The magnetic field strength value detected by the magnetic field sensor when the lower Hall sensor triggers the screen-off event.
在一个例子中,所述事件触发模块还被配置为:In one example, the event trigger module is further configured to:
在确定电子设备所处环境没有受到干扰磁场干扰时,通过所述霍尔传感器的输出结果判断是否触发亮屏事件或灭屏事件;When it is determined that the environment in which the electronic device is located is not disturbed by the interfering magnetic field, it is judged by the output result of the Hall sensor whether to trigger a screen-on event or a screen-off event;
或,在确定电子设备所处环境没有受到干扰磁场干扰时,通过所述霍尔传感器的输出结果和所检测距离同时判断是否触发亮屏事件或灭屏事件。Or, when it is determined that the environment where the electronic device is located is not disturbed by the interfering magnetic field, simultaneously judge whether to trigger a screen-on event or a screen-off event based on 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:
处理器;processor;
用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
其中,所述处理器被配置为:Wherein, the processor is configured as:
在通过电子设备上的霍尔传感器检测到霍尔电势变化时,判断所述电子设备所处环境是否受到干扰磁场干扰;When the Hall sensor on the electronic device detects a change in the Hall potential, it is judged whether the environment where the electronic device is located is disturbed by an interfering magnetic field;
在确定所述电子设备所处环境受到干扰磁场干扰时,通过距离传感器检测所述电子设备所穿戴的保护套相对于所述电子设备的屏幕的距离;When it is determined that the environment in which the electronic device is located is disturbed by an interfering magnetic field, a distance sensor is used to detect the distance of the protective cover worn by the electronic device relative to the screen of the electronic device;
根据所检测距离判断是否触发亮屏事件或灭屏事件,所述亮屏事件是将所述电子设备的屏幕点亮的事件,所述灭屏事件是将所述电子设备的屏幕息屏的事件。Determine whether to trigger a screen-on event or a screen-off event according to the detected distance, the screen-on event is an event that lights up the screen of the electronic device, and the screen-off event is an event that turns off the screen of the electronic device .
本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
本公开在通过电子设备上的霍尔传感器检测到霍尔电势变化时,判断电子设备所处环境是否受到干扰磁场干扰,在确定电子设备所处环境受到干扰磁场干扰时,通过距离传感器检测电子设备所穿戴的保护套相对于电子设备的屏幕的距离,根据所检测距离判断是否触发亮屏事件或灭屏事件。通过将霍尔传感器与距离传感器进行结合,从而可以避免在受到干扰磁场干扰时仅通过霍尔传感器的输出结果进行判断导致的误判和误控制,进而避免误判给用户带来不好的用户体验。In the present disclosure, when the Hall sensor on the electronic device detects the change of the Hall potential, it is judged whether the environment where the electronic device is located is disturbed by the interference magnetic field, and when it is determined that the environment where the electronic device is located is interfered by the interference magnetic field, the distance sensor is used to detect the electronic device The distance between the worn protective case and the screen of the electronic device is determined according to the detected distance whether to trigger a screen-on event or a screen-off event. By combining the Hall sensor with the distance sensor, it is possible to avoid misjudgment and miscontrol caused by judging only by the output result of the Hall sensor when it is interfered by an interfering magnetic field, thereby avoiding misjudgment and bringing bad results to users. experience.
本公开可以从设置在保护套上的磁场传感器中获取磁场强度,通过所获取磁场强度判断电子设备所处环境是否受到干扰磁场干扰,从而实现自动判断当前是否受到干扰磁场干扰,无需人工参与。The present disclosure can obtain the magnetic field strength from the magnetic field sensor provided on the protective cover, and judge whether the environment where the electronic device is located is disturbed by the disturbing magnetic field through the obtained magnetic field strength, so as to automatically judge whether it is currently disturbed by the disturbing magnetic field without manual participation.
本公开可以通过磁场传感器检测的磁场强度值和/或磁场强度方向判断电子设备所处环境是否受到干扰磁场干扰,从而实现自动判断,无需人工参与,节约成本,避免人工判断导致的漏判。In the present disclosure, it is possible to judge whether the environment where the electronic device is located is disturbed by the interference magnetic field through the magnetic field strength value and/or the magnetic field strength direction detected by the magnetic field sensor, so as to realize automatic judgment without manual participation, save costs, and avoid missed judgments caused by manual judgment.
本公开在所获取的磁场强度值大于预设磁场强度阈值时,可以判定电子设备所处环境受到干扰磁场干扰,从而实现通过磁场强度值判断电子设备所处环境是否受到干扰磁场干扰;本公开也可以在所获取的磁场强度方向与预设磁场强度方向不同时,判定电子设备所处环境受到干扰磁场干扰,从而实现通过磁场强度方向判断电子设备所处环境是否受到干扰磁场干扰,容易实现。In the present disclosure, when the obtained magnetic field strength value is greater than the preset magnetic field strength threshold, it can be determined that the environment where the electronic device is located is disturbed by a disturbing magnetic field, so as to realize whether the environment where the electronic device is located is disturbed by a disturbing magnetic field through the magnetic field strength value; the present disclosure also When the acquired magnetic field strength direction is different from the preset magnetic field strength direction, it can be determined that the environment where the electronic device is located is disturbed by the disturbing magnetic field, so as to realize whether the environment where the electronic device is located is judged by the magnetic field strength direction is disturbed by the disturbing magnetic field, which is easy to implement.
本公开的预设磁场强度阈值可以根据最大磁场强度值确定,从而实现只要所获取的磁场强度值大于预设磁场强度阈值,都认为当前受到干扰磁场干扰,则不再根据霍尔传感器的输出结果进行事件触发。The preset magnetic field strength threshold of the present disclosure can be determined according to the maximum magnetic field strength value, so that as long as the obtained magnetic field strength value is greater than the preset magnetic field strength threshold, it is considered that the current interference magnetic field is disturbed, and it is no longer based on the output result of the Hall sensor Trigger events.
本公开的预设磁场强度阈值可以根据最大磁场强度值与第一磁场强度临界值的和值确定,从而可以避免打开保护套却没有点亮屏幕的异常情况。The preset magnetic field strength threshold of the present disclosure can be determined according to the sum of the maximum magnetic field strength value and the first magnetic field strength critical value, so as to avoid the abnormal situation that the screen is not turned on when the protective case is opened.
本公开的预设磁场强度阈值可以根据第二磁场强度临界值确定,所述预设磁场强度方向可以为第二磁场强度临界值的反方向,从而可以避免闭合保护套却没有熄灭屏幕的异常情况,进而避免亮屏导致的电量浪费。The preset magnetic field strength threshold value of the present disclosure can be determined according to the second magnetic field strength critical value, and the preset magnetic field strength direction can be the opposite direction of the second magnetic field strength critical value, so as to avoid the abnormal situation that the protective cover is closed but the screen is not turned off , so as to avoid the waste of power caused by bright screen.
本公开在确定电子设备所处环境没有受到干扰磁场干扰时,可以采用霍尔传感器的输出结果判断是否触发亮屏事件或灭屏事件,容易实现,并且可以避免在任何情况只用距离传感器进行判断导致的误判。In this disclosure, when it is determined that the environment where the electronic device is located is not disturbed by the interference magnetic field, the output result of the Hall sensor can be used to judge whether to trigger a screen-on event or a screen-off event, which is easy to implement, and can avoid judging only by the distance sensor in any case lead to misjudgment.
本公开在确定电子设备所处环境没有受到干扰磁场干扰时,可以通过霍尔传感器的输出结果和所检测距离同时判断是否触发亮屏事件或灭屏事件,从而实现提高判断的准确率,并提高用户体验,避免误判给用户带来的烦恼。In the present disclosure, when it is determined that the environment where the electronic device is located is not disturbed by the interfering magnetic field, the output result of the Hall sensor and the detected distance can be used to simultaneously judge whether to trigger a screen-on event or a screen-off event, thereby improving the accuracy of judgment and improving User experience, to avoid the annoyance caused by misjudgment to users.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。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 present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.
图1是本公开根据一示例性实施例示出的一种屏幕控制方法的流程图。Fig. 1 is a flowchart of a screen control method according to an exemplary embodiment of the present disclosure.
图2是本公开根据一示例性实施例示出的另一种屏幕控制方法的流程图。Fig. 2 is a flowchart of another screen control method according to an exemplary embodiment of the present disclosure.
图3是本公开根据一示例性实施例示出的一种屏幕控制装置的框图。Fig. 3 is a block diagram of a screen control device according to an exemplary embodiment of the present disclosure.
图4是本公开根据一示例性实施例示出的另一种屏幕控制装置的框图。Fig. 4 is a block diagram of another screen control device according to an exemplary embodiment of the present disclosure.
图5是本公开根据一示例性实施例示出的另一种屏幕控制装置的框图。Fig. 5 is a block diagram of another screen control device according to an exemplary embodiment of the present disclosure.
图6是本公开根据一示例性实施例示出的另一种屏幕控制装置的框图。Fig. 6 is a block diagram of another screen control device according to an exemplary embodiment of the present disclosure.
图7是本公开根据一示例性实施例示出的一种用于屏幕控制装置的框图。Fig. 7 is a block diagram of 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, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited 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 limit the present disclosure. As used in this disclosure and the appended claims, the singular forms "a", "the", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
应当理解,尽管在本公开可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本公开范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of the present disclosure, first information may also be called second information, and similarly, second information may also be called first information. Depending on the context, the word "if" as used herein may be interpreted as "at" or "when" or "in response to a determination."
如图1所示,图1是本公开根据一示例性实施例示出的一种屏幕控制方法的流程图,该方法可以用于电子设备中,包括以下步骤101至步骤103:As shown in FIG. 1, FIG. 1 is a flowchart of a screen control method according to an exemplary embodiment of the present disclosure. The method can be used in an electronic device, and includes the following steps 101 to 103:
在步骤101中,在通过电子设备上的霍尔传感器检测到霍尔电势变化时,判断电子设备所处环境是否受到干扰磁场干扰。In step 101, when a Hall potential change is detected by a Hall sensor on the electronic device, it is determined whether the environment where the electronic device is located is disturbed by a disturbing magnetic field.
在步骤102中,在确定所述电子设备所处环境受到干扰磁场干扰时,通过距离传感器检测所述电子设备所穿戴的保护套相对于电子设备的屏幕的距离。In step 102, when it is determined that the environment where the electronic device is located is disturbed by an interfering magnetic field, a distance sensor is used to detect the distance of the protective cover worn by the electronic device relative to the screen of the electronic device.
在步骤103中,根据所检测距离判断是否触发亮屏事件或灭屏事件,所述亮屏事件是将电子设备的屏幕点亮的事件,所述灭屏事件是将电子设备的屏幕息屏的事件。In step 103, it is judged according to the detected distance whether to trigger a screen-on event or a screen-off event. event.
本公开实施例中,电子设备可以是智能手机、平板电脑、PDA(Personal DigitalAssistant,个人数字助理)、电子书阅读器、多媒体播放器等设置有霍尔传感器的电子产品。为了保护电子设备不被损坏,可以为电子设备配置保护套。保护套可以包括活动组件和固定组件。活动组件又可以称为保护盖,是可以活动操作的部件。保护套的活动组件上可以安装有磁铁,以便在保护套打开或关闭过程中引起霍尔传感器中霍尔电势变化。In the embodiment of the present disclosure, the electronic device may be a smart phone, a tablet computer, a PDA (Personal Digital Assistant, personal digital assistant), an e-book reader, a multimedia player, and other electronic products provided with Hall sensors. In order to protect the electronic equipment from being damaged, a protective cover can be configured for the electronic equipment. The protective case can include movable components and fixed components. The movable component can also be called the protective cover, which is a part that can be operated freely. A magnet may be installed on the movable component of the protective cover, so as to cause the Hall potential change in the Hall sensor when the protective cover is opened or closed.
霍尔传感器可以设置在电子设备的主板上,在打开或关闭保护套上的活动组件时,霍尔传感器会检测到霍尔电势发生变化,电子设备可以根据霍尔传感器的输出结果判断保护套是否打开或闭合。The Hall sensor can be set on the motherboard of the electronic device. When the active components on the protective cover are turned on or off, the Hall sensor will detect the change of the Hall potential. The electronic device can judge whether the protective cover is protected according to the output result of the Hall sensor. open or closed.
距离传感器用于检测保护套上的活动组件相对于电子设备的屏幕的距离。距离传感器可以是通过红外发射检测距离的距离传感器,也可以是通过超声波检测距离的距离传感器等。距离传感器可以设置在电子设备上,也可以设置在保护套的固定部件上。当距离传感器设置在电子设备上时,所设置的位置是能检测保护套上活动组件与电子设备屏幕距离的位置,根据活动组件与电子设备屏幕距离可以判断保护套的活动组件是处于远离屏幕的状态,还是接近屏幕的状态。如果距离传感器设置在保护套的固定部件上,则距离传感器与电子设备通过有线或无线的方式进行连接,以使电子设备可以获取到距离传感器检测到的距离,并根据所获取距离可以判断保护套的活动组件是处于远离屏幕的状态,还是接近屏幕的状态。The distance sensor is used to detect the distance of the active components on the protective case relative to the screen of the electronic device. The distance sensor may be a distance sensor that detects distance through infrared emission, or a distance sensor that detects distance through ultrasonic waves, or the like. The distance sensor can be arranged on the electronic device, or on the fixed part of the protective case. When the distance sensor is set on the electronic device, the set position is the position that can detect the distance between the movable component on the protective cover and the screen of the electronic device. According to the distance between the movable component and the screen of the electronic device, it can be judged that the movable component of the protective cover is far away from the screen. The state is still close to the state of the screen. If the distance sensor is set on the fixed part of the protective cover, the distance sensor and the electronic device are connected in a wired or wireless manner, so that the electronic device can obtain the distance detected by the distance sensor, and the protective cover can be judged according to the obtained distance Whether the active component is in a state away from the screen, or in a state close to the screen.
由于当电子设备所穿戴的保护套打开或闭合时,或者受到外界干扰磁场干扰时,电子设备上的霍尔传感器均会检测到霍尔电势发生变化,因此仅通过霍尔传感器输出的数据确定是否触发亮屏事件或灭屏事件,会导致误判。因此,本公开结合霍尔传感器和距离传感器进行判断,可以避免误判,进而避免误触发亮屏事件或灭屏事件。When the protective cover worn by the electronic device is opened or closed, or when it is disturbed by an external magnetic field, the Hall sensor on the electronic device will detect the change of the Hall potential, so only the data output by the Hall sensor can be used to determine whether the Triggering a screen-on event or a screen-off event will lead to misjudgment. Therefore, the present disclosure combines the Hall sensor and the distance sensor for judgment, which can avoid misjudgment, and further avoid triggering a screen-on event or a screen-off event by mistake.
其中,干扰磁场是除地磁场、电子设备所穿戴保护套上磁铁产生的磁场等正常磁场以外的磁场,在干扰磁场的干扰下,仅根据霍尔传感器输出的数据无法正确判断是否发生了保护套打开操作或关闭操作。因此,在通过电子设备上的霍尔传感器检测到霍尔电势变化时,先判断电子设备所处环境是否受到干扰磁场干扰,在确定电子设备所处环境受到干扰磁场干扰时,通过距离传感器检测电子设备所穿戴的保护套相对于电子设备的屏幕的距离。保护套相对于电子设备的屏幕的距离,是保护套的活动组件相对于电子设备的屏幕的距离。通过获取该距离可以判断保护套的活动组件是处于远离屏幕的状态,还是接近屏幕的状态,从而确定是否触发亮屏事件或者灭屏事件。具体的,如果根据所检测距离确定保护套的活动组件处于远离屏幕的状态,则触发亮屏事件,如果根据所检测距离确定保护套的活动组件处于接近屏幕的状态,则触发灭屏事件。Among them, the interference magnetic field is a magnetic field other than the normal magnetic field such as the earth's magnetic field and the magnetic field generated by the magnet on the protective cover worn by the electronic device. Under the interference of the interference magnetic field, it is impossible to correctly judge whether a protective cover has Open action or Close action. Therefore, when the Hall sensor on the electronic device detects the change of the Hall potential, first judge whether the environment where the electronic device is located is disturbed by the interference magnetic field, and when it is determined that the environment where the electronic device is located is interfered by the interference magnetic field, the electronic The distance of the protective case worn by the device relative to the screen of the electronic device. The distance of the protective case relative to the screen of the electronic device is the distance of the movable components of the protective case relative to the screen of the electronic device. By obtaining the distance, it can be judged whether the active component of the protective cover is in a state away from the screen or close to the screen, so as to determine whether to trigger a screen-on event or a screen-off event. Specifically, if it is determined according to the detected distance that the movable component of the protective case is far away from the screen, a screen-on event is triggered; if it is determined according to the detected distance that the movable component of the protective case is in a state close to the screen, 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 disturbed by the interfering magnetic field, it may be determined whether a screen-on event or a screen-off event is triggered based on the output result of the Hall sensor.
可见,本实施例在确定电子设备所处环境没有受到干扰磁场干扰时,可以采用霍尔传感器的输出结果判断是否触发亮屏事件或灭屏事件,容易实现,并且可以避免在任何情况只用距离传感器进行判断导致的误判。It can be seen that in this embodiment, when it is determined that the environment where the electronic device is located is not disturbed by the interfering magnetic field, the output result of the Hall sensor can be used to judge whether to trigger the screen-on event or the screen-off event, which is easy to implement, and can avoid using only the distance Misjudgment caused by sensor judgment.
在另一个可选的实现方式中,在确定电子设备所处环境没有受到干扰磁场干扰时,通过所述霍尔传感器的输出结果和所检测距离同时判断是否触发亮屏事件或灭屏事件。In another optional implementation manner, when it is determined that the environment where the electronic device is located is not disturbed by the interfering magnetic field, it is simultaneously judged whether to trigger a screen-on event or a screen-off event based on the output result of the Hall sensor and the detected distance.
该实施例可以通过霍尔传感器的输出结果和所检测距离同时判断是否触发亮屏事件或灭屏事件,在根据输出结果和所检测距离判断触发相同事件时才触发该事件,否则不做处理。In this embodiment, the output result of the Hall sensor and the detected distance can simultaneously determine whether to trigger a screen-on event or a screen-off event, and the event is triggered only when the same event is triggered according to the output result and the detected distance, otherwise, no processing is performed.
可见,本实施例在确定电子设备所处环境没有受到干扰磁场干扰时,可以通过霍尔传感器的输出结果和所检测距离同时判断是否触发亮屏事件或灭屏事件,从而实现提高判断的准确率,并提高用户体验,避免误判给用户带来的烦恼。It can be seen that in this embodiment, when it is determined that the environment where the electronic device is located is not disturbed by the interfering magnetic field, it is possible to simultaneously judge whether to trigger a screen-on event or a screen-off event based on the output result of the Hall sensor and the detected distance, so as to improve the accuracy of judgment , and improve the user experience, avoid misjudgment to the user's annoyance.
由上述实施例可见,本公开在通过电子设备上的霍尔传感器检测到霍尔电势变化时,判断电子设备所处环境是否受到干扰磁场干扰,在确定电子设备所处环境受到干扰磁场干扰时,通过距离传感器检测电子设备所穿戴的保护套相对于电子设备的屏幕的距离,根据所检测距离判断是否触发亮屏事件或灭屏事件。通过将霍尔传感器与距离传感器进行结合,从而可以避免在受到干扰磁场干扰时仅通过霍尔传感器的输出结果进行判断导致的误判,进而避免误判给用户带来不好的用户体验。It can be seen from the above-mentioned embodiments that when the Hall sensor on the electronic device detects the change of the Hall potential, it is determined whether the environment where the electronic device is located is disturbed by a disturbing magnetic field, and when it is determined that the environment where the electronic device is located is disturbed by a disturbing magnetic field, The distance sensor detects the distance of the protective cover worn by the electronic device relative to the screen of the electronic device, and judges whether to trigger a screen-on event or a screen-off event according to the detected distance. By combining the Hall sensor with the distance sensor, it is possible to avoid misjudgment caused by judging only based on the output result of the Hall sensor when being interfered by an interfering magnetic field, thereby avoiding bad user experience caused by misjudgment.
判断电子设备所处环境是否受到干扰磁场干扰的方式有很多种,以下列举其中几种方式进行说明。There are many ways to judge whether the environment where the electronic equipment is located is disturbed by the interfering magnetic field, some of which are listed below for illustration.
在一个可选的实现方式中,在接收到干扰指令时,判定电子设备所处环境是否受到干扰磁场干扰。干扰指令可以是用户通过触发按键或按钮的方式触发生成的指令,该干扰指令表示当前环境受到干扰磁场干扰。In an optional implementation manner, when receiving the disturbance instruction, it is determined whether the environment where the electronic device is located is disturbed by the disturbance magnetic field. The interference instruction may be an instruction generated by the user by triggering a key or a button, and the interference instruction indicates that the current environment is disturbed by an interference magnetic field.
可见,通过干扰指令的方式实现干扰磁场的判断,容易实现。It can be seen that it is easy to realize the judgment of the interference magnetic field by means of the interference command.
在另一个可选的实现方式中,根据设置在所述保护套上的磁场传感器所检测的磁场强度判断电子设备所处环境是否受到干扰磁场干扰,其中,在所述保护套闭合或打开过程中,所述磁场传感器与所述保护套上磁铁的相对位置固定。In another optional implementation manner, it is determined whether the environment where the electronic device is located is disturbed by a disturbing magnetic field according to the magnetic field strength detected by the magnetic field sensor arranged on the protective cover, wherein, during the closing or opening process of the protective cover , the relative position of the magnetic field sensor and the magnet on the protective cover is fixed.
在该实施例中,可以将磁场传感器设置在保护套上,且磁场传感器与保护套上磁铁的相对位置固定,以使磁场传感器所检测磁场强度不受保护套闭合过程和开启过程的影响,即在保护套闭合过程和开启过程中磁场传感器检测到的磁场强度相同或在一个相差不大的磁场强度范围内。In this embodiment, the magnetic field sensor can be arranged on the protective cover, and the relative position of 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, that is 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 an example, a magnetic field strength threshold range may be set according to the magnetic field strengths detected by the magnetic field sensor during the closing process and the opening process of the protective cover. If the magnetic field strength detected by the magnetic field sensor is within the magnetic field strength threshold range, it is determined that the environment in which the electronic device is located is not disturbed by a disturbing magnetic field; Interference by interfering magnetic fields.
另外,由于磁场传感器设置在保护套上,为了可以从设置在保护套上的磁场传感器中获取磁场强度,电子设备可以通过有线或无线的方式与磁场传感器连接,以便获取到磁场传感器检测到的磁场强度。In addition, since the magnetic field sensor is set on the protective cover, in order to obtain the magnetic field strength from the magnetic field sensor set on the protective cover, the electronic device can be connected to the magnetic field sensor in a wired or wireless manner, so as to obtain the magnetic field detected by the magnetic field sensor strength.
可见,在该实施例中,可以从设置在保护套上的磁场传感器中获取磁场强度,通过所获取磁场强度判断电子设备所处环境是否受到干扰磁场干扰,从而实现自动判断当前是否受到干扰磁场干扰,无需人工参与。It can be seen that in this embodiment, the magnetic field strength can be obtained from the magnetic field sensor provided on the protective cover, and judge whether the environment where the electronic device is located is disturbed by the disturbing magnetic field according to the obtained magnetic field strength, so as to automatically judge whether it is currently disturbed by the disturbing magnetic field , without human intervention.
在另一个可选的实现方式中,可以从设置在电子设备上的磁场传感器中获取磁场强度值和/或磁场强度方向,根据所获取的磁场强度值和/或磁场强度方向判断电子设备所处环境是否受到干扰磁场干扰。如图2所示,图2是本公开根据一示例性实施例示出的另一种屏幕控制方法的流程图,该方法可以用于电子设备中,该方法包括以下步骤201至步骤204:In another optional implementation, the magnetic field strength value and/or the direction of the magnetic field strength can be obtained from the magnetic field sensor provided on the electronic device, and the location of the electronic device can be judged according to the obtained magnetic field strength value and/or the direction of the magnetic field strength. Whether the environment is disturbed by interfering magnetic fields. As shown in FIG. 2, FIG. 2 is a flowchart of another screen control method according to an exemplary embodiment of the present disclosure. The method can be used in an electronic device, and the method includes the following steps 201 to 204:
在步骤201中,在通过电子设备上的霍尔传感器检测到霍尔电势变化时,从设置在电子设备上的磁场传感器中获取磁场强度值和/或磁场强度方向。In step 201, when a Hall potential change is detected by the Hall sensor on the electronic device, a magnetic field intensity value and/or a magnetic field intensity direction is obtained from a magnetic field sensor disposed on the electronic device.
在步骤202中,根据所获取的磁场强度值和/或磁场强度方向判断电子设备所处环境是否受到干扰磁场干扰。In step 202, it is judged according to the acquired magnetic field strength value and/or magnetic field strength direction whether the environment where the electronic device is located is disturbed by a disturbing magnetic field.
在步骤203中,在确定所述电子设备所处环境受到干扰磁场干扰时,通过距离传感器检测所述电子设备所穿戴的保护套相对于电子设备的屏幕的距离。In step 203, when it is determined that the environment where the electronic device is located is disturbed by a disturbing magnetic field, a distance sensor is used to detect the distance of the protective cover worn by the electronic device relative to the screen of the electronic device.
在步骤204中,根据所检测距离判断是否触发亮屏事件或灭屏事件,所述亮屏事件是将电子设备屏幕点亮的事件,所述灭屏事件是将电子设备屏幕息屏的事件。In step 204, it is judged according to the detected distance whether to trigger a screen-on event or a screen-off event, the screen-on event is an event that lights up the screen of the electronic device, and the screen-off event is an event that turns off the screen of the electronic device.
在该实施例中,由于磁场传感器设置在电子设备上,因此,磁场传感器所检测的磁场强度会受到保护套打开过程和闭合过程的影响。在通过电子设备上的霍尔传感器检测到霍尔电势变化时,可以获取设置在电子设备上的磁场传感器检测到的磁场强度值和/或磁场强度方向。In this embodiment, since the magnetic field sensor is arranged on the electronic device, the magnetic field strength detected by the magnetic field sensor will be affected by the opening process and the closing process of the protective case. 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 disposed on the electronic device can be acquired.
针对磁场强度方向,可以在不存在干扰磁场的情况下,采集保护套打开过程和闭合过程中的磁场强度方向,获得一个预设磁场强度方向。如果霍尔传感器检测到霍尔电势发生变化的过程中,所获取的磁场强度方向与预设磁场强度方向不同时,判定电子设备所处环境受到干扰磁场干扰,所述预设磁场强度方向是不受干扰磁场影响下所述磁场传感器检测到的磁场方向。磁场传感器可以检测三轴磁场方向,如果所检测的三轴磁场方向其中一轴与预设磁场强度方向不同,则可以判定电子设备所处环境受到干扰磁场干扰。Regarding the direction of the magnetic field strength, the direction of the magnetic field strength during the opening and closing process of the protective cover can be collected in the absence of an interfering magnetic field, and a preset magnetic field strength direction can be obtained. If the Hall sensor detects that the Hall potential is changing, and the obtained magnetic field strength direction is different from the preset magnetic field strength direction, it is determined that the environment where the electronic device is located is disturbed by a disturbing magnetic field, and the preset magnetic field strength direction is not correct. The direction of the magnetic field detected by the magnetic field sensor under the influence of an interfering magnetic field. The magnetic field sensor can detect three-axis magnetic field directions, and if one of the detected three-axis magnetic field directions is different from the preset magnetic field strength direction, it can be determined that the environment where the electronic device is located is disturbed by a disturbing magnetic field.
可见,通过磁场强度方向判断电子设备所处环境是否受到干扰磁场干扰,容易实现。It can be seen that it is easy to judge whether the environment where the electronic device is located is disturbed by the disturbing magnetic field according to the direction of the magnetic field strength.
针对磁场强度值,所获取的磁场强度值大于预设磁场强度阈值时,判定电子设备所处环境受到干扰磁场干扰。Regarding the magnetic field strength value, when the obtained magnetic field strength value is greater than the preset magnetic field strength threshold, it is determined that the environment where the electronic device is located is disturbed by a disturbing magnetic field.
在该实施例中,可以预先设置一个磁场强度阈值,所述预设磁场强度阈值大于不受干扰磁场影响下磁场传感器检测到的磁场强度值。因此,在所获取的磁场强度值大于预设磁场强度阈值时,可以判定电子设备所处环境受到干扰磁场干扰。In this embodiment, a magnetic field strength threshold can be preset, and the preset magnetic field strength threshold is greater than the magnetic field strength value detected by the magnetic field sensor without the influence of the disturbing magnetic field. Therefore, when the acquired magnetic field strength value is greater than the preset magnetic field strength threshold, it can be determined that the environment where the electronic device is located is disturbed by a disturbing magnetic field.
在一个例子中,所述预设磁场强度阈值根据最大磁场强度值确定,所述最大磁场强度值是不受干扰磁场影响下所述磁场传感器在所述保护套闭合状态时检测到的磁场强度值。In one example, the preset magnetic field strength threshold is determined according to the maximum magnetic field strength value, and the maximum magnetic field strength value is the magnetic field strength value detected by the magnetic field sensor in the closed state of the protective cover without being affected by a disturbing magnetic field .
在不受干扰磁场影响、且保护套闭合的情况下,磁场传感器检测到的磁场强度最大,可以将该强度值确定为最大磁场强度值。Under the condition that the magnetic field sensor is not affected by the interference magnetic field and the protective cover is closed, the magnetic field intensity detected by the magnetic field sensor is the largest, and this intensity value can be determined as the maximum magnetic field intensity value.
一方面,预设磁场强度阈值可以与最大磁场强度值相同。此时,所获取的磁场强度值大于最大磁场强度值时,则判定电子设备所处环境受到干扰磁场干扰。On the one hand, the preset magnetic field strength threshold may be the same as the maximum magnetic field strength value. At this time, when the acquired magnetic field strength value is greater than the maximum magnetic field strength value, it is determined that the environment where the electronic device is located is disturbed by a disturbing magnetic field.
另一方面,为了避免检测误差导致的影响,预设磁场强度阈值可以是比最大磁场强度值稍大或稍小的值。由于预设磁场强度阈值比最大磁场强度值稍大或稍小,因此可以避免由于检测误差导致的误判。On the other hand, in order to avoid the influence caused by the detection error, the preset magnetic field strength threshold may be a value slightly larger or smaller than the maximum magnetic field strength value. Since the preset magnetic field strength threshold is slightly larger or smaller than the maximum magnetic field strength value, misjudgment due to detection errors can be avoided.
在另一个例子中,在某些情况下虽然受到干扰磁场干扰,但如果干扰磁场不够大,不足以影响霍尔传感器的输出结果,则仍可以采用霍尔传感器的输出结果判断是否触发亮屏事件,基于此,所述预设磁场强度阈值根据磁场强度临界值确定,所述磁场强度临界值是不受干扰磁场影响下霍尔传感器触发亮屏事件/灭屏事件时所述磁场传感器检测到的磁场强度值。In another example, in some cases, although it is disturbed by the interference magnetic field, 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 can still be used to determine whether to trigger the bright screen event , based on this, the preset magnetic field strength threshold is determined according to the magnetic field strength critical value, which is detected by the magnetic field sensor when the Hall sensor triggers a screen-on event/screen-off event without being affected by an interfering magnetic field Magnetic field strength value.
由于霍尔传感器在检测到霍尔电势变化到临界值时才会输出可以触发亮屏事件/灭屏事件的输出结果,因此在霍尔电势达到临界值时,获取磁场传感器检测到的磁场强度临界值。例如,霍尔传感器在检测到霍尔电势变化到第一临界值时输出1,1可以表示触发亮屏事件,获取霍尔电势变化到第一临界值时磁场传感器检测到的第一磁场强度临界值;霍尔传感器在检测到霍尔电势变化到第二临界值时输出0,0可以表示触发灭屏事件,获取霍尔电势变化到第二临界值时磁场传感器检测到的第二磁场强度临界值。其中,第一临界值和第二临界值可以相同,也可以不相同,具体根据需求设定。Since the Hall sensor will output the output result that can trigger the on-screen event/screen-off event when it detects that the Hall potential changes to a critical value, when the Hall potential reaches a critical value, the magnetic field strength detected by the magnetic field sensor is obtained. value. For example, the Hall sensor outputs 1 when it detects that the Hall potential changes to the first critical value, and 1 can indicate that a screen-on event is triggered, and the first magnetic field intensity detected by the magnetic field sensor when the Hall potential changes to the first critical value is obtained. value; the Hall sensor outputs 0 when it detects that the Hall potential changes to the second critical value, and 0 can indicate that the off-screen event is triggered, and the second magnetic field intensity detected by the magnetic field sensor when the Hall potential changes to the second critical value is obtained. value. Wherein, 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, the preset magnetic field strength threshold is determined according to the sum of the maximum magnetic field strength value and the first magnetic field strength critical value, and the maximum magnetic field strength value is the The magnetic field strength value detected when the protective cover is in a closed state, 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-on event without being affected by an interfering magnetic field.
作为其中一种异常情况,打开保护套却没有点亮屏幕,该情况可能是因为无法使霍尔电势达到第一临界值,则可能存在一个与第一磁场强度临界值方向相同、且大于或等于第一磁场强度临界值的磁场强度。因此,预设磁场强度阈值可以为大于或等于和值的值,也可以为比和值稍小的值。所述和值是最大磁场强度值与第一磁场强度临界值的和值,所述最大磁场强度值是不受干扰磁场影响下所述磁场传感器在所述保护套闭合状态时检测到的磁场强度值,所述第一磁场强度临界值是不受干扰磁场影响下霍尔传感器触发亮屏事件时所述磁场传感器检测到的磁场强度值。As one of the abnormal situations, if the protective case is opened but the screen is not turned on, this may be because the Hall potential cannot reach the first critical value, then there may be a field in the same direction as the first magnetic field strength critical value and greater than or equal to The magnetic field strength of the first magnetic field strength threshold. Therefore, the preset magnetic field strength threshold may be a value greater than or equal to the sum value, or may be a value slightly smaller than the sum value. The sum value is the sum value of the maximum magnetic field strength value and the first magnetic field strength critical value, and the maximum magnetic field strength value is the magnetic field strength detected by the magnetic field sensor in the closed state of the protective cover without being affected by an interfering magnetic field value, the first critical value of magnetic field strength is the magnetic field strength value detected by the magnetic field sensor when the Hall sensor triggers a screen brightening event without being affected by an interfering magnetic field.
基于此,可以从设置在电子设备上的磁场传感器中获取打开过程中磁场传感器监测到的最大值,当所获取的最大值大于预设磁场强度阈值时,判定电子设备所处环境受到干扰磁场干扰。该实施例可以避免打开保护套却没有点亮屏幕的异常情况。Based on this, the maximum value monitored by the magnetic field sensor during the opening process can be obtained from the magnetic field sensor provided on the electronic device, and when the obtained maximum value is greater than the preset magnetic field strength threshold, it is determined that the environment where the electronic device is located is disturbed by a disturbing magnetic field. This embodiment can avoid the abnormal situation that the screen is not turned on when the protective cover is opened.
在另一个可选的实现方式中,所述预设磁场强度阈值根据第二磁场强度临界值确定,所述预设磁场强度方向与第二磁场强度临界值的方向相反,所述第二磁场强度临界值是不受干扰磁场影响下霍尔传感器触发灭屏事件时所述磁场传感器检测到的磁场强度值。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 the direction of the second magnetic field strength critical value, and the second magnetic field strength The critical value is the magnetic field strength value detected by the magnetic field sensor when the Hall sensor triggers a screen-off event without being affected by an interfering magnetic field.
作为其中一种异常情况,关闭保护套却没有息屏,该情况可能是因为无法使霍尔电势达到第二临界值,则可能存在一个与第二磁场强度临界值方向相反、且大于或等于第二磁场强度临界值的磁场强度。因此,预设磁场强度阈值可以为大于或等于第二磁场强度临界值的值,或为比第二磁场强度临界值稍小的值。As one of the abnormal situations, if the protective cover is closed but the screen does not shut off, this situation may be because the Hall potential cannot reach the second critical value, and there may be a field that is opposite to the second magnetic field strength critical value and greater than or equal to the second critical value. Second, the magnetic field strength of the critical value of the magnetic field strength. Therefore, the preset magnetic field strength threshold may be a value greater than or equal to the second magnetic field strength critical value, or a value slightly smaller than the second magnetic field strength critical value.
基于此,从设置在电子设备上的磁场传感器中获取磁场强度值和磁场强度方向,当所获取的磁场强度大于或等于预设磁场强度阈值,所获取的磁场强度方向与第二磁场强度临界值的方向相反时,判定电子设备所处环境受到干扰磁场干扰。该实施例可以避免闭合保护套却没有熄灭屏幕的异常情况,进而避免亮屏导致的电量浪费。Based on this, the magnetic field strength value and the magnetic field strength direction are obtained from the magnetic field sensor arranged on the electronic device. When the obtained magnetic field strength is greater than or equal to the preset magnetic field strength threshold value, the obtained magnetic field strength direction and the second magnetic field strength threshold When the direction is opposite, it is determined that the environment where the electronic device is located is disturbed by a disturbing magnetic field. This embodiment can avoid the abnormal situation that the screen is not turned off when the protective case is closed, thereby avoiding power waste caused by turning on the screen.
可见,可以根据磁场强度值或磁场强度方向单独判断电子设备所处环境是否受到干扰磁场干扰,也可以将磁场强度值和磁场强度方向进行组合判断电子设备所处环境是否受到干扰磁场干扰。It can be seen that it is possible to judge whether the environment where the electronic device is located is disturbed by the interfering magnetic field according to the magnetic field strength value or the magnetic field strength direction alone, or it is possible to combine the magnetic field strength value and the magnetic field strength direction to judge whether the environment where the electronic device is located is disturbed by the disturbing magnetic field.
另外,步骤203和204同步骤102和103相关技术相同,在此不再一一赘述。In addition, steps 203 and 204 are the same as steps 102 and 103 in related technologies, and will not be repeated here.
由上述实施例可见,本实施例在通过电子设备上的霍尔传感器检测到霍尔电势变化时,从设置在电子设备上的磁场传感器中获取磁场强度值和/或磁场强度方向,根据所获取的磁场强度值和/或磁场强度方向判断电子设备所处环境是否受到干扰磁场干扰,在确定电子设备所处环境受到干扰磁场干扰时,通过距离传感器检测电子设备所穿戴的保护套相对于电子设备的屏幕的距离,根据所检测距离判断是否触发亮屏事件或灭屏事件。本实施例通过磁场传感器检测的磁场强度值和/或磁场强度方向判断电子设备所处环境是否受到干扰磁场干扰,从而实现自动判断,无需人工参与,节约成本,避免人工判断导致的漏判。It can be seen from the above-mentioned embodiments that in this embodiment, 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 are obtained from the magnetic field sensor arranged on the electronic device, and according to the acquired The magnetic field strength value and/or the direction of the magnetic field strength can be used to judge whether the environment in which the electronic device is located is disturbed by a disturbing magnetic field. According to the distance of the screen, judge whether to trigger a screen on event or an off screen event based on the detected distance. In this embodiment, the magnetic field strength value and/or the magnetic field strength direction detected by the magnetic field sensor is used to judge whether the environment where the electronic device is located is disturbed by the interference magnetic field, thereby realizing automatic judgment without manual participation, saving costs, and avoiding missed judgments caused by manual judgment.
可以理解的是,上述仅列举了其中几种判断电子设备所处环境是否受到干扰磁场干扰的方法,还可以包括其他方式,在此不再一一赘述。It can be understood that, the above only enumerates several methods for judging whether the environment where the electronic device is located is disturbed by a disturbing magnetic field, and other methods may also be included, which will not be repeated here.
以上实施方式中的各种技术特征可以任意进行组合,只要特征之间的组合不存在冲突或矛盾,但是限于篇幅,未进行一一描述,因此上述实施方式中的各种技术特征的任意进行组合也属于本说明书公开的范围。The various technical features in the above embodiments can be combined arbitrarily, as long as there is no conflict or contradiction between the combinations of features, but due to space limitations, they are not described one by one, so the various technical features in the above embodiments can be combined arbitrarily It also belongs to the scope disclosed in this specification.
与前述屏幕控制方法的实施例相对应,本公开还提供了屏幕控制装置及其所应用的电子设备的实施例。Corresponding to the foregoing embodiments of the screen control method, the present disclosure also provides embodiments of a screen control device and an electronic device to which it is applied.
如图3所示,图3是本公开根据一示例性实施例示出的一种屏幕控制装置的框图,所述装置包括干扰磁场判断模块310、距离获取模块320和事件触发模块330。As shown in FIG. 3 , FIG. 3 is a block diagram of a screen control device according to an exemplary embodiment of the present disclosure. The device includes an interference magnetic field judgment module 310 , a distance acquisition module 320 and an event trigger module 330 .
其中,干扰磁场判断模块310,被配置为在通过电子设备上的霍尔传感器检测到霍尔电势变化时,判断电子设备所处环境是否受到干扰磁场干扰。Wherein, the interference magnetic field determination module 310 is configured to determine whether the environment where the electronic device is located is disturbed by the interference magnetic field when the Hall sensor on the electronic device detects a change in the Hall potential.
距离获取模块320,被配置为在确定所述电子设备所处环境受到干扰磁场干扰时,通过距离传感器检测所述电子设备所穿戴的保护套相对于电子设备的屏幕的距离。The distance acquisition module 320 is configured to detect the distance of the protective case worn by the electronic device relative to the screen of the electronic device through a distance sensor when it is determined that the environment where the electronic device is located is disturbed by an interfering magnetic field.
事件触发模块330,被配置为根据所检测距离判断是否触发亮屏事件或灭屏事件,所述亮屏事件是将电子设备的屏幕点亮的事件,所述灭屏事件是将电子设备的屏幕息屏的事件。The event trigger module 330 is configured to judge whether to trigger a screen-on event or a screen-off event according to the detected distance. off-screen events.
由上述实施例可见,在通过电子设备上的霍尔传感器检测到霍尔电势变化时,判断电子设备所处环境是否受到干扰磁场干扰,在确定电子设备所处环境受到干扰磁场干扰时,通过距离传感器检测电子设备所穿戴的保护套相对于电子设备的屏幕的距离,根据所检测距离判断是否触发亮屏事件或灭屏事件。通过将霍尔传感器与距离传感器进行结合,从而可以避免在受到干扰磁场干扰时仅通过霍尔传感器的输出结果进行判断导致的误判,进而避免误判给用户带来不好的用户体验。It can be seen from the above embodiments that when the Hall sensor on the electronic device detects a change in the Hall potential, it is judged whether the environment where the electronic device is located is disturbed by a disturbance magnetic field, and when it is determined that the environment where the electronic device is located is disturbed by a disturbance magnetic field, the distance The sensor detects the distance between the protective case worn by the electronic device and the screen of the electronic device, and judges whether to trigger a screen-on event or a screen-off event according to the detected distance. By combining the Hall sensor with the distance sensor, it is possible to avoid misjudgment caused by judging only based on the output result of the Hall sensor when being interfered by an interfering magnetic field, thereby avoiding bad user experience caused by misjudgment.
如图4所示,图4是本公开根据一示例性实施例示出的另一种屏幕控制装置的框图,该实施例在前述图3所示实施例的基础上,所述干扰磁场判断模块310包括第一判断子模块311。As shown in FIG. 4, FIG. 4 is a block diagram of another screen control device according to an exemplary embodiment of the present disclosure. On the basis of the embodiment shown in FIG. 3, the interference magnetic field judging module 310 A first judging sub-module 311 is included.
其中,第一判断子模块311,被配置为根据设置在所述保护套上的磁场传感器所检测的磁场强度判断电子设备所处环境是否受到干扰磁场干扰,其中,在所述保护套闭合或打开过程中,所述磁场传感器与所述保护套上磁铁的相对位置固定。Wherein, the first judging sub-module 311 is configured to judge whether the environment where the electronic device is located is disturbed by a disturbing magnetic field according to the magnetic field strength detected by the magnetic field sensor arranged on the protective case, wherein, when the protective case is closed or opened During the process, the relative position of the magnetic field sensor and the magnet on the protective cover is fixed.
由上述实施例可见,可以从设置在保护套上的磁场传感器中获取磁场强度,通过所获取磁场强度判断电子设备所处环境是否受到干扰磁场干扰,从而实现自动判断当前是否受到干扰磁场干扰,无需人工参与。It can be seen from the above embodiments that the magnetic field strength can be obtained from the magnetic field sensor provided on the protective cover, and judge whether the environment where the electronic device is located is disturbed by the disturbing magnetic field according to the obtained magnetic field strength, so as to automatically judge whether it is currently disturbed by the disturbing magnetic field, without Human involvement.
如图5所示,图5是本公开根据一示例性实施例示出的另一种屏幕控制装置的框图,该实施例在前述图3所示实施例的基础上,所述干扰磁场判断模块310包括:参数获取子模块312和第二判断子模块313。As shown in FIG. 5, FIG. 5 is a block diagram of another screen control device according to an exemplary embodiment of the present disclosure. On the basis of the embodiment shown in FIG. 3, the interference magnetic field judging module 310 It includes: a parameter acquisition submodule 312 and a second judgment submodule 313 .
其中,参数获取子模块312,被配置为从设置在电子设备上的磁场传感器中获取磁场强度值和/或磁场强度方向。Wherein, the parameter acquisition sub-module 312 is configured to acquire the magnetic field intensity value and/or the magnetic field intensity direction from the magnetic field sensor provided on the electronic device.
第二判断子模块313,被配置为根据所获取的磁场强度值和/或磁场强度方向判断电子设备所处环境是否受到干扰磁场干扰。The second judging sub-module 313 is configured to judge whether the environment where the electronic device is located is disturbed by a disturbing magnetic field according to the acquired magnetic field strength value and/or magnetic field strength direction.
由上述实施例可见,可以通过磁场传感器检测的磁场强度值和/或磁场强度方向判断电子设备所处环境是否受到干扰磁场干扰,从而实现自动判断,无需人工参与,节约成本,避免人工判断导致的漏判。It can be seen from the above embodiments that it is possible to determine whether the environment in which the electronic device is located is disturbed by the interfering magnetic field based on the magnetic field strength value and/or the direction of the magnetic field strength detected by the magnetic field sensor, thereby realizing automatic judgment without manual participation, saving costs, and avoiding errors caused by manual judgment. missed judgment.
如图6所示,图6是本公开根据一示例性实施例示出的另一种屏幕控制装置的框图,该实施例在前述图5所示实施例的基础上,所述第二判断子模块313可以包括至少一个下述子模块,为了示例清楚,图5中示出了该第二判断子模块313可以包括的所有子模块:强度值判断子模块3131和方向判断子模块3132。As shown in FIG. 6, FIG. 6 is a block diagram of another screen control device according to an exemplary embodiment of the present disclosure. On the basis of the embodiment shown in FIG. 5, the second judging submodule 313 may include at least one of the following submodules. For clarity of example, all submodules that may be included in the second judging submodule 313 are shown in FIG. 5 : an intensity value judging submodule 3131 and a direction judging submodule 3132 .
其中,强度值判断子模块3131,被配置为所获取的磁场强度值大于预设磁场强度阈值时,判定电子设备所处环境受到干扰磁场干扰。Wherein, the strength value judging sub-module 3131 is configured to determine that the environment where the electronic device is located is disturbed by a disturbing magnetic field when the acquired magnetic field strength value is greater than a preset magnetic field strength threshold.
方向判断子模块3132,被配置为所获取的磁场强度方向与预设磁场强度方向不同时,判定电子设备所处环境受到干扰磁场干扰,所述预设磁场强度方向是不受干扰磁场影响下所述磁场传感器检测到的磁场方向。The direction judging sub-module 3132 is configured to determine that the environment where the electronic device is located is disturbed by a disturbing magnetic field when the acquired magnetic field strength direction is different from the preset magnetic field strength direction, and the preset magnetic field strength direction is not affected by the disturbing magnetic field. The direction of the magnetic field detected by the magnetic field sensor.
由上述实施例可见,在所获取的磁场强度值大于预设磁场强度阈值时,可以判定电子设备所处环境受到干扰磁场干扰,从而实现通过磁场强度值判断电子设备所处环境是否受到干扰磁场干扰;本公开也可以在所获取的磁场强度方向与预设磁场强度方向不同时,判定电子设备所处环境受到干扰磁场干扰,从而实现通过磁场强度方向判断电子设备所处环境是否受到干扰磁场干扰,容易实现;还可以将所获取的磁场强度值和所获取的磁场强度方向同时进行判断。It can be seen from the above embodiments that when the obtained magnetic field strength value is greater than the preset magnetic field strength threshold, it can be determined that the environment where the electronic device is located is disturbed by a disturbing magnetic field, so as to realize whether the environment where the electronic device is located is disturbed by a disturbing magnetic field based on the magnetic field strength value ; This disclosure can also determine whether the environment where the electronic device is located is disturbed by the interference magnetic field when the acquired magnetic field strength direction is different from the preset magnetic field strength direction, so as to realize whether the environment where the electronic device is located is interfered by the interference magnetic field through the direction of the magnetic field strength. It is easy to realize; the obtained magnetic field strength value and the obtained magnetic field strength direction can also be judged at the same time.
在一个可选的实现方式中,所述预设磁场强度阈值根据最大磁场强度值确定,所述最大磁场强度值是不受干扰磁场影响下所述磁场传感器在所述保护套闭合状态时检测到的磁场强度值。In an optional implementation manner, the preset magnetic field strength threshold is determined according to a maximum magnetic field strength value, and the maximum magnetic field strength value is detected by the magnetic field sensor when the protective cover is closed without being affected by a disturbing magnetic field The value of the magnetic field strength.
在一个可选的实现方式中,所述预设磁场强度阈值根据最大磁场强度值与第一磁场强度临界值的和值确定,所述最大磁场强度值是不受干扰磁场影响下所述磁场传感器在所述保护套闭合状态时检测到的磁场强度值,所述第一磁场强度临界值是不受干扰磁场影响下霍尔传感器触发亮屏事件时所述磁场传感器检测到的磁场强度值;In an optional implementation, the preset magnetic field strength threshold is determined according to the sum of the maximum magnetic field strength value and the first magnetic field strength critical value, and the maximum magnetic field strength value is the The magnetic field strength value detected when the protective cover is in a closed state, 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 bright screen event without being affected by an interfering 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 the direction of the second magnetic field strength critical value, and the second magnetic field strength threshold is The value is the magnetic field strength value detected by the magnetic field sensor when the Hall sensor triggers a screen-off event without being affected by an interfering magnetic field.
在一个可选的实现方式中,所述事件触发模块还被配置为:In an optional implementation, the event trigger module is also configured to:
在确定电子设备所处环境没有受到干扰磁场干扰时,通过所述霍尔传感器的输出结果判断是否触发亮屏事件或灭屏事件。When it is determined that the environment where the electronic device is located is not disturbed by the interfering magnetic field, it is determined whether to trigger a screen-on event or a screen-off event based on the output result of the Hall sensor.
由上述实施例可见,在确定电子设备所处环境没有受到干扰磁场干扰时,可以采用霍尔传感器的输出结果判断是否触发亮屏事件或灭屏事件,容易实现,并且可以避免在任何情况只用距离传感器进行判断导致的误判。It can be seen from the above embodiments that when it is determined that the environment where the electronic device is located is not disturbed by the interfering magnetic field, the output result of the Hall sensor can be used to judge whether to trigger a screen-on event or a screen-off event, which is easy to implement and can avoid using only Misjudgment caused by the distance sensor.
在一个可选的实现方式中,所述事件触发模块还被配置为:In an optional implementation, the event trigger module is also configured to:
在确定电子设备所处环境没有受到干扰磁场干扰时,通过所述霍尔传感器的输出结果和所检测距离同时判断是否触发亮屏事件或灭屏事件。When it is determined that the environment where the electronic device is located is not disturbed by the interfering magnetic field, it is simultaneously judged whether to trigger a screen-on event or a screen-off event based on the output result of the Hall sensor and the detected distance.
由上述实施例可见,在确定电子设备所处环境没有受到干扰磁场干扰时,可以通过霍尔传感器的输出结果和所检测距离同时判断是否触发亮屏事件或灭屏事件,从而实现提高判断的准确率,并提高用户体验,避免误判给用户带来的烦恼。It can be seen from the above embodiments that when it is determined that the environment in which the electronic device is located is not disturbed by the interfering magnetic field, it is possible to simultaneously judge whether to trigger a screen-on event or a screen-off event based on the output result of the Hall sensor and the detected distance, thereby improving the accuracy of judgment rate, improve user experience, and avoid troubles caused by misjudgments to users.
相应的,本公开还提供一种屏幕控制装置,所述装置包括有处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为:Correspondingly, the present disclosure also provides a screen control device, the device includes a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to:
在通过电子设备上的霍尔传感器检测到霍尔电势变化时,判断所述电子设备所处环境是否受到干扰磁场干扰。When the Hall sensor on the electronic device detects the change of the Hall potential, it is judged whether the environment where the electronic device is located is disturbed by a disturbing magnetic field.
在确定所述电子设备所处环境受到干扰磁场干扰时,通过距离传感器检测所述电子设备所穿戴的保护套相对于所述电子设备的屏幕的距离。When it is determined that the environment where the electronic device is located is disturbed by a disturbing magnetic field, a distance sensor is used to detect the distance of the protective cover worn by the electronic device relative to the screen of the electronic device.
根据所检测距离判断是否触发亮屏事件或灭屏事件,所述亮屏事件是将所述电子设备的屏幕点亮的事件,所述灭屏事件是将所述电子设备的屏幕息屏的事件。Determine whether to trigger a screen-on event or a screen-off event according to the detected distance, the screen-on event is an event that lights up the screen of the electronic device, and the screen-off event is an event that turns off the screen of the electronic device .
上述装置中各个模块的功能和作用的实现过程具体详情见上述方法中对应步骤的实现过程,在此不再赘述。For details about the implementation process of the functions and effects of each module in the above device, refer to the implementation process of the corresponding steps in the above method, which will not be repeated here.
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本公开方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。As for the device embodiment, since it basically corresponds to the method embodiment, for related parts, please refer to the part description of the method embodiment. The device embodiments described above are only illustrative, and the modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in One place, or it can be distributed to multiple network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. It can be understood and implemented by those skilled in the art without creative effort.
如图7所示,图7是本公开根据一示例性实施例示出的一种用于屏幕控制装置700的框图。该装置700可以是具有路由功能的移动电话,计算机,数字广播终端,游戏控制台,平板设备,个人数字助理等电子设备。As shown in FIG. 7 , FIG. 7 is a block diagram of an apparatus 700 for screen control according to an exemplary embodiment of the present disclosure. The device 700 may be a mobile phone, a computer, a digital broadcast terminal, a game console, a tablet device, a personal digital assistant and other electronic devices with a routing function.
参照图7,装置700可以包括以下一个或多个组件:处理组件702,存储器704,电源组件706,多媒体组件708,音频组件710,输入/输出(I/O)的接口712,传感器组件714,以及通信组件716。7, device 700 may include one or more of the following components: processing component 702, memory 704, power supply component 706, multimedia component 708, audio component 710, input/output (I/O) interface 712, sensor component 714, and communication component 716 .
处理组件702通常控制装置700的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件702可以包括一个或多个处理器720来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件702可以包括一个或多个模块,便于处理组件702和其他组件之间的交互。例如,处理组件702可以包括多媒体模块,以方便多媒体组件708和处理组件702之间的交互。The processing component 702 generally controls the overall operations of the device 700, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 702 may include one or more modules that facilitate interaction between processing component 702 and other components. For example, processing component 702 may include a multimedia module to facilitate interaction between multimedia component 708 and processing component 702 .
存储器704被配置为存储各种类型的数据以支持在装置700的操作。这些数据的示例包括用于在装置700上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器704可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 704 is configured to store various types of data to support operations at the device 700 . Examples of such data include instructions for any application or method operating on device 700, contact data, phonebook data, messages, pictures, videos, and the like. The memory 704 can be realized by any type of volatile or non-volatile storage device or their combination, 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 Disk.
电源组件706为装置700的各种组件提供电力。电源组件706可以包括电源管理系统,一个或多个电源,及其他与为装置700生成、管理和分配电力相关联的组件。The power supply component 706 provides power to various components of the device 700 . 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 device 700 .
多媒体组件708包括在所述装置700和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件708包括一个前置摄像头和/或后置摄像头。当装置700处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 708 includes a screen that provides an output interface between the device 700 and the 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 input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 708 includes a front camera and/or a rear camera. When the device 700 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.
音频组件710被配置为输出和/或输入音频信号。例如,音频组件710包括一个麦克风(MIC),当装置700处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器704或经由通信组件716发送。在一些实施例中,音频组件710还包括一个扬声器,用于输出音频信号。The audio component 710 is configured to output and/or input audio signals. For example, the audio component 710 includes a microphone (MIC), which is configured to receive external audio signals when the device 700 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 704 or sent via communication component 716 . In some embodiments, the audio component 710 also includes a speaker for outputting audio signals.
I/O接口712为处理组件702和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 712 provides an interface between the processing component 702 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.
传感器组件714包括一个或多个传感器,用于为装置700提供各个方面的状态评估。例如,传感器组件714可以检测到装置700的打开/关闭状态,组件的相对定位,例如所述组件为装置700的显示器和小键盘,传感器组件714还可以检测装置700或装置700中一个组件的位置改变,用户与装置700接触的存在或不存在,装置700方位或加速/减速和装置700的温度变化。传感器组件714可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件714还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件714还可以包括加速度传感器,陀螺仪传感器,磁传感器,距离传感器,压力传感器或温度传感器。Sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for device 700 . For example, the sensor component 714 can detect the open/closed state of the device 700, the relative positioning of components such as the display and keypad of the device 700, the sensor component 714 can also detect the position of the device 700 or a component in the device 700 Changes, presence or absence of user contact with device 700, device 700 orientation or acceleration/deceleration and temperature changes of device 700. Sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 714 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a distance sensor, a pressure sensor or a temperature sensor.
通信组件716被配置为便于装置700和其他设备之间有线或无线方式的通信。装置700可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件716经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件716还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 716 is configured to facilitate wired or wireless communication between the apparatus 700 and other devices. The device 700 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 716 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,装置700可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 700 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器704,上述指令可由装置700的处理器720执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 704 including instructions, which can be executed by the processor 720 of the device 700 to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
其中,当所述存储介质中的指令由所述处理器执行时,使得装置700能够执行一种屏幕控制方法,包括:Wherein, when the instructions in the storage medium are executed by the processor, the device 700 is enabled to execute a screen control method, including:
在通过电子设备上的霍尔传感器检测到霍尔电势变化时,判断所述电子设备所处环境是否受到干扰磁场干扰。When the Hall sensor on the electronic device detects the change of the Hall potential, it is judged whether the environment where the electronic device is located is disturbed by a disturbing magnetic field.
在确定所述电子设备所处环境受到干扰磁场干扰时,通过距离传感器检测所述电子设备所穿戴的保护套相对于所述电子设备的屏幕的距离。When it is determined that the environment where the electronic device is located is disturbed by a disturbing magnetic field, a distance sensor is used to detect the distance of the protective cover worn by the electronic device relative to the screen of the electronic device.
根据所检测距离判断是否触发亮屏事件或灭屏事件,所述亮屏事件是将所述电子设备的屏幕点亮的事件,所述灭屏事件是将所述电子设备的屏幕息屏的事件。Determine whether to trigger a screen-on event or a screen-off event according to the detected distance, the screen-on event is an event that lights up the screen of the electronic device, and the screen-off event is an event that turns off the screen of the electronic device .
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. The present disclosure is intended to cover any modification, use or adaptation of the present disclosure. These modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure. . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and 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 descriptions are only preferred embodiments of the present disclosure, and are not intended to limit the present disclosure. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the present disclosure within the scope of protection.
Claims (13)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610702692.3A CN106339168B (en) | 2016-08-22 | 2016-08-22 | Screen control method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610702692.3A CN106339168B (en) | 2016-08-22 | 2016-08-22 | Screen control method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106339168A true CN106339168A (en) | 2017-01-18 |
| CN106339168B CN106339168B (en) | 2020-10-16 |
Family
ID=57824653
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610702692.3A Active CN106339168B (en) | 2016-08-22 | 2016-08-22 | Screen control method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106339168B (en) |
Cited By (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107295190A (en) * | 2017-07-10 | 2017-10-24 | 北京小米移动软件有限公司 | Working mode switching method, device and protective case |
| CN108205360A (en) * | 2017-12-18 | 2018-06-26 | 中兴通讯股份有限公司 | Method, 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 |
| CN111147667A (en) * | 2019-12-25 | 2020-05-12 | 华为技术有限公司 | Screen-off control method and electronic equipment |
| CN111273774A (en) * | 2020-01-19 | 2020-06-12 | 惠州Tcl移动通信有限公司 | Terminal device display screen control method and system, storage medium and terminal device |
| CN111432068A (en) * | 2020-03-10 | 2020-07-17 | 北京小米移动软件有限公司 | Display state control method and device, electronic device, storage medium |
| CN111752788A (en) * | 2019-03-28 | 2020-10-09 | 北京小米移动软件有限公司 | Device, detection method and device for detecting slide terminal |
| CN112286599A (en) * | 2020-08-20 | 2021-01-29 | 北京小米移动软件有限公司 | Terminal device control method and terminal device |
| CN112945218A (en) * | 2021-01-26 | 2021-06-11 | 北京小米移动软件有限公司 | Method and device for determining direction of electronic equipment, electronic equipment and storage medium |
| CN113495652A (en) * | 2020-03-20 | 2021-10-12 | 北京小米移动软件有限公司 | Screen state switching method and device and storage medium |
| CN113804237A (en) * | 2021-09-26 | 2021-12-17 | 东莞华贝电子科技有限公司 | Detection distance testing method and device of electronic equipment |
| CN113865632A (en) * | 2020-06-30 | 2021-12-31 | 北京小米移动软件有限公司 | Method, device, system and medium for calibrating internal magnetic field of electronic equipment |
| CN115040724A (en) * | 2021-03-08 | 2022-09-13 | 捷普科技(上海)有限公司 | injection equipment |
| CN117395979A (en) * | 2023-12-13 | 2024-01-12 | 深圳市海罗光电有限公司 | Method, device, equipment and storage medium for preventing electromagnetic interference of display |
Citations (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130100169A1 (en) * | 2011-10-25 | 2013-04-25 | Kye Systems Corp. | Input device and method for zooming an object using the input device |
| CN103516902A (en) * | 2013-09-18 | 2014-01-15 | 广东欧珀移动通信有限公司 | Method and device for controlling screen state of electronic equipment through protection cover |
| US20140032163A1 (en) * | 2012-07-24 | 2014-01-30 | International Business Machines Corporation | Calibration free distance sensor |
| CN103618821A (en) * | 2013-10-30 | 2014-03-05 | 广东欧珀移动通信有限公司 | A method and an apparatus for controlling the screen status of an electronic device |
| CN103793243A (en) * | 2013-11-22 | 2014-05-14 | 广州视源电子科技股份有限公司 | Screen locking/unlocking method of mobile device, mobile device and protective shell |
| CN103970575A (en) * | 2014-05-22 | 2014-08-06 | 广东欧珀移动通信有限公司 | Method and device for quickly starting application program in mobile terminal |
| US20150015511A1 (en) * | 2013-07-11 | 2015-01-15 | Samsung Electronics Co., Ltd. | User terminal device for displaying contents and methods thereof |
| CN104601761A (en) * | 2015-02-12 | 2015-05-06 | 广东欧珀移动通信有限公司 | Mobile terminal protective case, mobile terminal and control method for the mobile terminal |
| CN104640184A (en) * | 2015-02-15 | 2015-05-20 | 广东欧珀移动通信有限公司 | A screen wake-up method and device |
| CN104683560A (en) * | 2013-12-03 | 2015-06-03 | 宏达国际电子股份有限公司 | Fitting, electronic assembly, control method, and method for forming the fitting |
| CN104731490A (en) * | 2015-04-20 | 2015-06-24 | 深圳市欧珀通信软件有限公司 | Screen control method and screen control device |
| CN105120025A (en) * | 2015-09-06 | 2015-12-02 | 深圳一微克科技有限公司 | Mobile phone protection system and protection method therefor |
| CN105141836A (en) * | 2015-08-05 | 2015-12-09 | 广东欧珀移动通信有限公司 | Method and device for reducing false triggering of rotating camera of terminal |
| CN205029701U (en) * | 2015-08-21 | 2016-02-10 | 深圳一微克科技有限公司 | Cell -phone intelligence protective housing |
| CN105407233A (en) * | 2015-12-10 | 2016-03-16 | 深圳一微克科技有限公司 | Control recognition method and device based on mobile phone protection case |
-
2016
- 2016-08-22 CN CN201610702692.3A patent/CN106339168B/en active Active
Patent Citations (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130100169A1 (en) * | 2011-10-25 | 2013-04-25 | Kye Systems Corp. | Input device and method for zooming an object using the input device |
| US20140032163A1 (en) * | 2012-07-24 | 2014-01-30 | International Business Machines Corporation | Calibration free distance sensor |
| US20150015511A1 (en) * | 2013-07-11 | 2015-01-15 | Samsung Electronics Co., Ltd. | User terminal device for displaying contents and methods thereof |
| CN103516902A (en) * | 2013-09-18 | 2014-01-15 | 广东欧珀移动通信有限公司 | Method and device for controlling screen state of electronic equipment through protection cover |
| CN103618821A (en) * | 2013-10-30 | 2014-03-05 | 广东欧珀移动通信有限公司 | A method and an apparatus for controlling the screen status of an electronic device |
| CN103793243A (en) * | 2013-11-22 | 2014-05-14 | 广州视源电子科技股份有限公司 | Screen locking/unlocking method of mobile device, mobile device and protective shell |
| CN104683560A (en) * | 2013-12-03 | 2015-06-03 | 宏达国际电子股份有限公司 | Fitting, electronic assembly, control method, and method for forming the fitting |
| CN103970575A (en) * | 2014-05-22 | 2014-08-06 | 广东欧珀移动通信有限公司 | Method and device for quickly starting application program in mobile terminal |
| CN104601761A (en) * | 2015-02-12 | 2015-05-06 | 广东欧珀移动通信有限公司 | Mobile terminal protective case, mobile terminal and control method for the mobile terminal |
| CN104640184A (en) * | 2015-02-15 | 2015-05-20 | 广东欧珀移动通信有限公司 | A screen wake-up method and device |
| CN104731490A (en) * | 2015-04-20 | 2015-06-24 | 深圳市欧珀通信软件有限公司 | Screen control method and screen control device |
| CN105141836A (en) * | 2015-08-05 | 2015-12-09 | 广东欧珀移动通信有限公司 | Method and device for reducing false triggering of rotating camera of terminal |
| CN205029701U (en) * | 2015-08-21 | 2016-02-10 | 深圳一微克科技有限公司 | Cell -phone intelligence protective housing |
| CN105120025A (en) * | 2015-09-06 | 2015-12-02 | 深圳一微克科技有限公司 | Mobile phone protection system and protection method therefor |
| CN105407233A (en) * | 2015-12-10 | 2016-03-16 | 深圳一微克科技有限公司 | Control recognition method and device based on mobile phone protection case |
Non-Patent Citations (2)
| Title |
|---|
| UWE MARSCHNER: "Indirect Measurement of a Bar Magnet Position Using a Hall Sensor Array", 《IEEE TRANSACTIONS ON MAGNETICS》 * |
| 李宏年: "传感器技术及在智能手机中的应用", 《中国新通信》 * |
Cited By (20)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107295190A (en) * | 2017-07-10 | 2017-10-24 | 北京小米移动软件有限公司 | Working mode switching method, device and protective case |
| CN108205360A (en) * | 2017-12-18 | 2018-06-26 | 中兴通讯股份有限公司 | Method, device, terminal and storage medium for controlling terminal screen |
| CN108205360B (en) * | 2017-12-18 | 2023-08-15 | 中兴通讯股份有限公司 | Method, device, terminal and storage medium for controlling terminal screen |
| CN109862608A (en) * | 2018-11-21 | 2019-06-07 | Tcl移动通信科技(宁波)有限公司 | A kind of mobile terminal protective case detection control method, mobile terminal and storage medium |
| CN111752788A (en) * | 2019-03-28 | 2020-10-09 | 北京小米移动软件有限公司 | Device, detection method and device for detecting slide terminal |
| CN111752788B (en) * | 2019-03-28 | 2023-11-14 | 北京小米移动软件有限公司 | Device, method and device for detecting sliding closure type terminal |
| CN111147667A (en) * | 2019-12-25 | 2020-05-12 | 华为技术有限公司 | Screen-off control method and electronic equipment |
| CN111273774A (en) * | 2020-01-19 | 2020-06-12 | 惠州Tcl移动通信有限公司 | Terminal device display screen control method and system, storage medium and terminal device |
| CN111432068A (en) * | 2020-03-10 | 2020-07-17 | 北京小米移动软件有限公司 | Display state control method and device, electronic device, 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 magnetic field inside electronic equipment |
| CN113865632A (en) * | 2020-06-30 | 2021-12-31 | 北京小米移动软件有限公司 | Method, device, system and medium for calibrating internal magnetic field of electronic equipment |
| CN112286599A (en) * | 2020-08-20 | 2021-01-29 | 北京小米移动软件有限公司 | Terminal device control method and terminal device |
| CN112945218A (en) * | 2021-01-26 | 2021-06-11 | 北京小米移动软件有限公司 | Method and device for determining direction of electronic equipment, electronic equipment and storage medium |
| CN115040724A (en) * | 2021-03-08 | 2022-09-13 | 捷普科技(上海)有限公司 | injection equipment |
| CN115040724B (en) * | 2021-03-08 | 2025-07-22 | 捷普科技(上海)有限公司 | Injection device |
| CN113804237A (en) * | 2021-09-26 | 2021-12-17 | 东莞华贝电子科技有限公司 | Detection distance testing method and device of electronic equipment |
| 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 |
| CN117395979A (en) * | 2023-12-13 | 2024-01-12 | 深圳市海罗光电有限公司 | Method, device, equipment and storage medium for preventing electromagnetic interference of display |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106339168B (en) | 2020-10-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106339168B (en) | Screen control method and device | |
| US9860844B2 (en) | Method and apparatus of temperature control | |
| US10610152B2 (en) | Sleep state detection method, apparatus and system | |
| CN107426428A (en) | Electronic equipment and display lightness regulating method | |
| WO2018076323A1 (en) | Screen control method and apparatus | |
| CN106055144B (en) | Control method and device, the electronic equipment of touch screen state | |
| CN106550522A (en) | Illumination control method and device | |
| CN105868709B (en) | Method and device for closing fingerprint identification function | |
| CN106547663A (en) | Button management method and device | |
| CN110875769B (en) | Wireless communication device and antenna switching method | |
| CN106210336B (en) | Control the method and device of mobile terminal state switching | |
| CN107295190A (en) | Working mode switching method, device and protective case | |
| CN105720644A (en) | Charging control method and device and terminal device | |
| CN106484282A (en) | Apparatus control method and device | |
| CN105554255A (en) | Operation control method and device for terminal equipment | |
| WO2017088588A1 (en) | Method and device for processing point reporting of touchscreen | |
| CN107465819A (en) | Terminal false-touch prevention method and device | |
| CN107306299A (en) | Terminal device, antenna determine method and device | |
| CN106445499A (en) | Shortcut key prompting method and device | |
| CN107133059A (en) | Camera control method, device and mobile terminal | |
| CN107656616A (en) | Input interface displaying method, device, electronic equipment | |
| CN114724196A (en) | Accidental touch prevention method and device, electronic equipment, storage medium | |
| CN107256088A (en) | Operating method, device and the computer-readable recording medium of terminal | |
| CN108206881A (en) | Mobile terminal reminding method, device and mobile terminal | |
| CN106058470A (en) | GPS (Global Positioning System) antenna device and control method |
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 |