CN111432068B - Display state control method and device, electronic equipment and storage medium - Google Patents

Display state control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111432068B
CN111432068B CN202010161777.1A CN202010161777A CN111432068B CN 111432068 B CN111432068 B CN 111432068B CN 202010161777 A CN202010161777 A CN 202010161777A CN 111432068 B CN111432068 B CN 111432068B
Authority
CN
China
Prior art keywords
magnetic induction
preset
data
threshold
display state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010161777.1A
Other languages
Chinese (zh)
Other versions
CN111432068A (en
Inventor
彭聪
高文俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202010161777.1A priority Critical patent/CN111432068B/en
Publication of CN111432068A publication Critical patent/CN111432068A/en
Application granted granted Critical
Publication of CN111432068B publication Critical patent/CN111432068B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • H04W52/0254Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity detecting a user operation or a tactile contact or a motion of the device
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The disclosure relates to a display state control method and device, an electronic device and a storage medium. A display state control method is applied to electronic equipment provided with a display screen, and comprises the following steps: acquiring magnetic induction data acquired by a Hall sensor; responding to the fact that the magnetic induction data exceed a preset magnetic induction threshold value, and acquiring sensing data acquired by a preset sensor; and controlling the display state of a display screen in the electronic equipment based on the sensing data. In this embodiment, the sensing data through predetermineeing the sensor comes the supplementary display state who judges hall sensor control display screen, makes the closed condition and the bright screen state of display screen can with use the scene phase-match, can improve the degree of accuracy of control, is favorable to promoting to use and experiences.

Description

Display state control method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of detection technologies, and in particular, to a display state control method and apparatus, an electronic device, and a storage medium.
Background
Currently, a leather sheath is installed outside the mobile phone by some users to prevent the mobile phone from being broken or scratched. The leather sheath includes a folding upper cover, sets up a magnet in this upper cover, installs the metal at the appointed position on the leather sheath through the absorption, reaches the effect of closed upper cover and cover cell-phone display screen. When the upper cover is closed, the Hall sensor arranged in the mobile phone can sense the magnetic field of the magnet, namely, the magnetic flux is detected to be increased, at the moment, the mobile phone determines that the upper cover of the leather sheath is closed, and the display screen can be closed so as to save the power consumption.
However, in practical application, the mobile phone may be in a strong magnetic field environment, which causes the hall sensor to detect the increase of magnetic flux and mistakenly close the display screen, thereby affecting the use of the user; or the magnet in the upper cover is demagnetized, so that the Hall sensor cannot detect enough magnetic flux to keep the screen bright, and further electric energy is wasted.
Disclosure of Invention
The present disclosure provides a display state control method and apparatus, an electronic device, and a storage medium to solve the disadvantages of the related art.
According to a first aspect of the embodiments of the present disclosure, there is provided a display state control method applied to an electronic device provided with a display screen, including:
acquiring magnetic induction data acquired by a Hall sensor;
responding to the fact that the magnetic induction data exceed a preset magnetic induction threshold value, and acquiring sensing data acquired by a preset sensor;
and controlling the display state of a display screen in the electronic equipment based on the sensing data.
Optionally, controlling a display state of a display screen in the electronic device based on the sensing data includes:
determining whether the sensing data meet a first preset condition or not to obtain a determination result;
when the determination result represents that the sensing data meet the first preset condition, controlling a display screen of the electronic equipment to be switched to a closed state; and when the determined result represents that the sensing data does not meet the first preset condition, controlling the display screen to keep a display state.
Optionally, the preset sensor comprises at least one of: distance sensor, light sensor.
Optionally, the first preset condition includes at least one of: the distance value is smaller than or equal to a preset distance value, and the current light sensitivity value is smaller than or equal to a preset light sensitivity value.
Optionally, after the determination result indicates that the sensing data does not satisfy the first preset condition, the method further includes:
and generating reminding information, wherein the reminding information is used for reminding the electronic equipment of being in a high-intensity magnetic field environment.
Optionally, the method further includes a step of adjusting a magnetic induction threshold of the hall sensor, specifically including:
acquiring current magnetic induction data acquired by the Hall sensor;
and when the current magnetic induction data meet a second preset condition, adjusting the magnetic induction threshold value of the Hall sensor to be a first magnetic induction threshold value.
Optionally, the second preset condition includes at least one of: the current magnetic induction data is the maximum value of the magnetic induction data collected by the Hall sensor, the current magnetic induction data is smaller than a preset magnetic induction threshold value, and the magnetic induction data in a preset time period before the current magnetic induction data are smaller than the preset magnetic induction threshold value.
Optionally, adjusting the magnetic induction threshold of the hall sensor to a first magnetic induction threshold includes:
acquiring the service life of the Hall sensor;
determining first magnetic induction data corresponding to the use duration based on a preset corresponding relation table of the duration and the magnetic induction data, and taking the first magnetic induction data as the first threshold;
and adjusting the magnetic induction threshold value of the Hall sensor to be the first magnetic induction threshold value.
Optionally, adjusting the magnetic induction threshold of the hall sensor to a first magnetic induction threshold includes:
acquiring an average value of the magnetic induction data in a preset time period before the current magnetic induction data, and taking the average value as a first magnetic induction threshold;
and adjusting the magnetic induction threshold value of the Hall sensor to be the first magnetic induction threshold value.
According to a second aspect of the embodiments of the present disclosure, there is provided a display state control device applied to an electronic apparatus provided with a display screen, including:
the magnetic induction data acquisition module is used for acquiring magnetic induction data acquired by the Hall sensor;
the sensing data acquisition module is used for responding to the fact that the magnetic induction data exceed a preset magnetic induction threshold value and acquiring sensing data acquired by a preset sensor;
and the display state control module is used for controlling the display state of a display screen in the electronic equipment based on the sensing data.
Optionally, the display state control module includes:
the determination result acquisition unit is used for determining whether the sensing data meet a first preset condition or not to obtain a determination result;
the display state control unit is used for controlling a display screen of the electronic equipment to be switched to a closed state when the determination result represents that the sensing data meet the first preset condition; and when the determined result represents that the sensing data does not meet the first preset condition, controlling the display screen to keep a display state.
Optionally, the preset sensor comprises at least one of: distance sensor, light sensor.
Optionally, the first preset condition includes at least one of: the distance value is smaller than or equal to a preset distance value, and the current light sensitivity value is smaller than or equal to a preset light sensitivity value.
The display state control module includes:
and the reminding information generating unit is used for generating reminding information, and the reminding information is used for reminding the electronic equipment of being in a high-intensity magnetic field environment.
Optionally, the apparatus further comprises a magnetic induction threshold adjustment module; the magnetic induction threshold value adjusting module comprises:
the current value acquisition unit is used for acquiring current magnetic induction data acquired by the Hall sensor;
and the threshold adjusting unit is used for adjusting the magnetic induction threshold of the Hall sensor to be a first magnetic induction threshold when the current magnetic induction data meet a second preset condition.
Optionally, the second preset condition includes at least one of: the current magnetic induction data is the maximum value of the magnetic induction data collected by the Hall sensor, the current magnetic induction data is smaller than a preset magnetic induction threshold value, and the magnetic induction data in a preset time period before the current magnetic induction data are smaller than the preset magnetic induction threshold value.
Optionally, the threshold adjusting unit includes:
the service time obtaining subunit is used for obtaining the service time of the Hall sensor;
a first threshold determining subunit, configured to determine, based on a preset correspondence table between a duration and magnetic induction data, first magnetic induction data corresponding to the duration of use, and use the first magnetic induction data as the first threshold;
and the threshold adjusting subunit is used for adjusting the magnetic induction threshold of the hall sensor to the first magnetic induction threshold.
Optionally, the threshold adjusting unit includes:
an average value obtaining subunit, configured to obtain an average value of the magnetic induction data in a preset time period before the current magnetic induction data, and use the average value as the first threshold;
and the threshold adjusting subunit is used for adjusting the magnetic induction threshold of the hall sensor to the first magnetic induction threshold.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a Hall sensor and a preset sensor; the preset sensor comprises at least one of the following: distance sensors, light sensors;
a processor;
a memory for storing a computer program executable by the processor;
the processor is configured to execute the computer program in the memory to implement the steps of any of the methods described above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a readable storage medium having stored thereon an executable computer program which, when executed, performs the steps of the method described above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
as can be seen from the above embodiments, in the embodiment of the present disclosure, the sensing data acquired by the preset sensor is acquired by acquiring the magnetic induction data acquired by the hall sensor and responding to the magnetic induction data exceeding the preset magnetic induction threshold; and controlling the display state of a display screen in the electronic equipment based on the sensing data. In this embodiment, the sensing data through predetermineeing the sensor comes the supplementary display state who judges hall sensor control display screen, makes the closed condition and the bright screen state of display screen can with use the scene phase-match, can improve the degree of accuracy of control, is favorable to promoting to use and experiences.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a display state control method according to an exemplary embodiment.
FIG. 2 is a flow diagram illustrating a method for controlling display states according to an exemplary embodiment.
FIG. 3 is a flow chart illustrating an adjustment of a magnetic induction threshold in accordance with an exemplary embodiment.
FIG. 4 is a flow chart illustrating another adjustment of a magnetic induction threshold in accordance with an exemplary embodiment.
FIG. 5 is a flow chart illustrating yet another adjustment of a magnetic induction threshold in accordance with an exemplary embodiment.
Fig. 6 to 10 are block diagrams illustrating a display state control apparatus according to an exemplary embodiment.
FIG. 11 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The following exemplary described embodiments do not represent all embodiments consistent with the present disclosure. Rather, they are merely examples of devices consistent with certain aspects of the present disclosure as recited in the claims below.
Considering that a user can install a leather sheath outside the mobile phone, a Hall sensor in the mobile phone can detect magnetic induction data, and then whether to close the display screen is judged according to the magnetic induction data. However, when the mobile phone is in a strong magnetic field environment, the Hall sensor detects that the magnetic flux is increased, and the display screen can be closed by mistake, so that the use of a user is influenced; or the magnet in the upper cover is demagnetized, so that the Hall sensor cannot detect enough magnetic flux to keep the screen bright, and further electric energy is wasted.
In order to solve the foregoing technical problem, an embodiment of the present disclosure provides a display state control method, which may be applied to an electronic device provided with a preset sensor of a hall sensor, where the preset sensor may include at least one of the following: a distance sensor and a light sensor. Of course, the technician may select other sensors according to specific situations, and when the proximity or the closing of the holster can be detected, the corresponding scheme falls into the protection scope of the present disclosure.
Fig. 1 is a flowchart illustrating a display state control method according to an exemplary embodiment, and referring to fig. 1, a display state control method includes steps 11 to 13, in which:
in step 11, magnetic induction data collected by the hall sensor is acquired.
In this embodiment, the hall sensor in the electronic device may detect the magnetic flux within a preset range according to a set period or in real time, and generate magnetic induction data according to the magnetic flux. The magnetic induction data may be a magnetic induction voltage. It can be understood that the larger the magnetic flux sensed by the hall sensor, the larger the output magnetic induction voltage, that is, the magnitude of the magnetic flux sensed by the hall sensor can be reflected by the magnetic induction voltage. The specific structure and operation principle of the hall sensor can refer to the related art, and are not described in detail herein.
In this embodiment, the processor in the electronic device may establish a communication link with the hall sensor, and may acquire the magnetic induction data output by the hall sensor through the communication link.
In step 12, in response to that the magnetic induction data exceeds a preset magnetic induction threshold, acquiring sensing data acquired by a preset sensor.
In this embodiment, a magnetic induction threshold may be pre-stored in the electronic device. The magnetic induction threshold value can be the minimum value of the magnetic induction data which can be sensed by the Hall sensor after the upper cover of the leather sheath is closed, or the average value of the magnetic induction data after multiple measurements, or the product of the maximum value of the magnetic induction data and a preset proportion (such as a numerical value between 90% and 98%). The size of the magnetic induction threshold value can be determined by a skilled person according to a specific scene, and the corresponding scheme falls into the protection scope of the present disclosure.
In this embodiment, after the processor acquires the magnetic induction data, the magnetic induction data and the magnetic induction threshold value may be compared to obtain a comparison result. When the comparison result shows that the magnetic induction data is smaller than the magnetic induction threshold, it indicates that the upper cover of the leather sheath is not closed in place, and at the moment, the processor does not need to perform subsequent actions and returns to the step 11; when the comparison result indicates that the magnetic induction data exceeds (is greater than or equal to) the magnetic induction threshold, the processor may acquire the sensing data acquired by the preset sensor in response to that the magnetic induction data exceeds the preset magnetic induction threshold.
In one embodiment, the default sensor may be in an off state, and the processor may send an activation control command to the default sensor to turn on the default sensor. After the preset sensor is started, the corresponding parameters can be detected according to a set period or in real time to obtain sensing data. At this time, the processor may actively acquire the sensing data, or receive the sensing data sent by a preset sensor. Of course, after the sensing data is acquired, the processor may also send a closing control instruction to the preset sensor, so that the preset sensor returns to the closed state.
In one embodiment, when the predetermined sensor is a distance sensor, the sensing data may be a distance value indicating a distance from the distance sensor to the upper cover of the holster, such as 0 after the upper cover is closed, 1cm when the upper cover is closed (an angle between the upper cover and the display screen is 5-10 degrees), and so on. When the preset sensor is a light sensor, the sensing data may be a light sensation value, which indicates the current light sensation data of the light sensor in the environment where the light sensor is located, and the light sensation value is 0 if the upper cover is closed.
In step 13, the display state of the display screen in the electronic device is controlled based on the sensing data.
In this embodiment, the processor may control the display state of the display screen in the electronic device based on the sensing data. A first preset condition may be pre-stored in the electronic device, and the first preset condition may include at least one of the following: the distance value is smaller than or equal to a preset distance value, and the current light sensitivity value is smaller than or equal to a preset light sensitivity value. In practical applications, the first preset condition may be adjusted according to the type and number of the preset sensors, which is not limited herein.
Referring to fig. 2, in step 21, the processor may obtain a first preset condition and determine whether the sensing data satisfies the first preset condition, resulting in a determination result. Taking the distance sensor as an example, the sensing data is a distance value, if the distance value is smaller than or equal to the preset distance value, the processor may determine that the distance value satisfies the first preset condition, otherwise, the processor may determine that the distance value does not satisfy the first preset condition. Taking the light sensor as an example, the sensing data is the current light sensation value, if the current light sensation value is less than or equal to the preset light sensation value, the processor may determine that the light sensation value satisfies the first preset condition, otherwise, the processor may determine that the distance value does not satisfy the first preset condition. Taking the case of simultaneously using the light sensor and the distance sensor as an example, the sensing data includes a distance value and a current light sensitivity value, wherein the distance value is compared with a preset distance value and the current light sensitivity value is compared with the preset light sensitivity value. The distance result at this time may include the following cases: firstly, the distance value is smaller than or equal to a preset distance value, and the current light sensation value is smaller than or equal to a preset light sensation value, at this moment, the sensing data meets a first preset condition. Secondly, the distance value is larger than the preset distance value, the current light sensation value is larger than the preset light sensation value, and at the moment, the sensing data do not meet the first preset condition. Thirdly, the distance value is smaller than or equal to the preset distance value, and the current light sensation value is larger than the preset light sensation value, at the moment, the sensing data does not meet the first preset condition. Fourthly, the distance value is larger than the preset distance value, the current light sensation value is smaller than or equal to the preset light sensation value, and at the moment, the sensing data meet the first preset condition. For the third and fourth cases, considering that the light sensor may be affected by external ambient light (e.g., night, light), the detection accuracy rate may be slightly lower than that of the distance sensor, and therefore, the third and fourth solutions are provided. In practical application, it may be determined that the sensing data does not satisfy the first preset condition when one of the distance value and the current light sensitivity value does not satisfy the first preset condition.
In step 22, when the determination result represents that the sensing data meets the first preset condition, controlling a display screen of the electronic device to be switched to a closed state; and when the determined result represents that the sensing data does not meet the first preset condition, controlling the display screen to keep the display state.
In one embodiment, the processor may determine that the electronic device is in a high magnetic field environment, considering that the hall sensor detects the magnetic sensing data and the sensing data collected by the preset sensor does not satisfy the first preset condition. Therefore, when the determination result indicates that the sensing data does not satisfy the first preset condition, the processor may generate a reminding message, where the reminding message is used to remind the electronic device of being in the high-intensity magnetic field environment, for example, the reminding message may be "currently being in the high-intensity magnetic field environment may affect the use of the electronic device, please note". In the embodiment, the user can know the use environment through interaction, and the use experience is improved.
In the above embodiments, the magnetic induction threshold may be a fixed value or a dynamic value. Taking the dynamic value as an example, the processor may adjust the magnetic induction threshold before executing the method of the present disclosure, wherein a second preset condition may be stored in the electronic device in advance, and the second preset condition includes at least one of the following: the current magnetic induction data is the maximum value of the magnetic induction data collected by the Hall sensor, the current magnetic induction data is smaller than a preset magnetic induction threshold value, and the magnetic induction data in a preset time period before the current magnetic induction data are smaller than the preset magnetic induction threshold value.
It should be noted that, regarding the determination that "the current magnetic induction data is the maximum value of the magnetic induction data acquired by the hall sensor and the current magnetic induction data is smaller than the maximum value in the preset magnetic induction thresholds", after the processor acquires the current magnetic induction data, the processor may acquire a history value of a certain period of time before the current magnetic induction data, and when the magnetic induction data of the history value of the certain period of time is smaller than or equal to the current magnetic induction data, it indicates that the current magnetic induction data is the maximum value. This is because, during the use of the electronic device by the user, the opening and closing of the upper cover must be performed for a certain period of time, and when the upper cover is closed, the hall sensor can sense the maximum magnetic flux and can output the maximum magnetic induction data. And the maximum value is smaller than the magnetic induction threshold value, which indicates that the magnet in the upper cover is demagnetized.
In addition, the phrase "the magnetic induction data in the preset time period before the current magnetic induction data are all smaller than the preset magnetic induction threshold" means that each magnetic induction data in the preset time period before the current magnetic induction data are acquired by the hall sensor is smaller than the magnetic induction threshold, which indicates that the electronic device is in a high-intensity magnetic field environment or the magnet in the upper cover is demagnetized.
Referring to fig. 3, in step 31, the processor may acquire current magnetic induction data collected by the hall sensor. In step 32, the processor may determine whether the current magnetic induction data satisfies the second preset condition, for example, if the current magnetic induction data (which is a magnetic induction voltage) is equal to 4V and is the maximum value of the magnetic induction data that can be collected by the hall sensor, and the magnetic induction threshold is 5V, it is determined that the current magnetic induction data satisfies the second preset condition. When the second preset condition is met, the processor can adjust the magnetic induction threshold of the hall sensor to the first threshold.
In this embodiment, step 32 may include:
in one example, the electronic device may store a preset correspondence table between the duration and the magnetic induction data, where the correspondence table indicates that the magnetic field of the magnet in the upper cover is slowly attenuated as the duration of the magnet increases, and accordingly, the magnetic induction data output by the hall sensor is also synchronously decreased, and accordingly, the magnetic induction threshold thereof is also slowly decreased. Therefore, the correspondence table of the time length and the magnetic induction data can be established based on the use time length and the magnetic induction threshold value. Referring to fig. 4, in step 41, the processor may obtain a usage time period of the hall sensor. In step 42, based on the preset correspondence table between the duration and the magnetic induction data, the processor may determine first magnetic induction data corresponding to the duration of use. In step 43, the processor may adjust the magnetic induction threshold of the hall sensor to the first magnetic induction threshold.
In another example, referring to fig. 5, in step 51, after acquiring the current magnetic induction data, the processor may acquire the magnetic induction data within a preset time period before the current magnetic induction data, and calculate an average value of the magnetic induction data, and use the average value as the first magnetic induction threshold. In step 52, the processor may adjust the magnetic induction threshold of the hall sensor to a first magnetic induction threshold.
In this embodiment, by adjusting the magnetic induction threshold, the problem that the display state control method of the present disclosure cannot be executed due to demagnetization of the magnet in the upper cover can be avoided, which is beneficial to ensuring accuracy of the control state.
In the embodiment of the present disclosure, the magnetic induction data acquired by the hall sensor is acquired, and the sensing data acquired by the preset sensor is acquired in response to the magnetic induction data exceeding the preset magnetic induction threshold; and controlling the display state of a display screen in the electronic equipment based on the sensing data. In this embodiment, the sensing data through predetermineeing the sensor comes the supplementary display state who judges hall sensor control display screen, makes the closed condition and the bright screen state of display screen can with use the scene phase-match, can improve the degree of accuracy of control, is favorable to promoting to use and experiences.
Fig. 6 is a block diagram illustrating a display state control apparatus according to an exemplary embodiment, applied to an electronic device provided with a display screen, referring to fig. 6, the display state control apparatus including:
the magnetic induction data acquisition module 61 is used for acquiring magnetic induction data acquired by the hall sensor;
the sensing data acquisition module 62 is configured to respond to that the magnetic induction data exceeds a preset magnetic induction threshold, and acquire sensing data acquired by a preset sensor;
and the display state control module 63 is configured to control the display state of the display screen in the electronic device based on the sensing data.
In one embodiment, referring to fig. 7, the display state control module 63 includes:
a determination result obtaining unit 71, configured to determine whether the sensing data meets a first preset condition, so as to obtain a determination result;
the display state control unit 72 is configured to control a display screen of the electronic device to switch to an off state when the determination result represents that the sensing data meets the first preset condition; and when the determined result represents that the sensing data does not meet the first preset condition, controlling the display screen to keep a display state.
In one embodiment, the preset sensor comprises at least one of: distance sensor, light sensor.
In an embodiment, the first preset condition includes at least one of: the distance value is smaller than or equal to a preset distance value, and the current light sensitivity value is smaller than or equal to a preset light sensitivity value.
In one embodiment, the display state control module 63 includes:
and the reminding information generating unit is used for generating reminding information, and the reminding information is used for reminding the electronic equipment of being in a high-intensity magnetic field environment.
In an embodiment, referring to fig. 8, the apparatus further comprises a magnetic induction threshold adjustment module; the magnetic induction threshold value adjusting module comprises:
a current value obtaining unit 81, configured to obtain current magnetic induction data collected by the hall sensor;
and the threshold adjusting unit 82 is configured to adjust the magnetic induction threshold of the hall sensor to be a first magnetic induction threshold when the current magnetic induction data meets a second preset condition.
In an embodiment, the second preset condition includes at least one of: the current magnetic induction data is the maximum value of the magnetic induction data collected by the Hall sensor, the current magnetic induction data is smaller than a preset magnetic induction threshold value, and the magnetic induction data in a preset time period before the current magnetic induction data are smaller than the preset magnetic induction threshold value.
In one embodiment, referring to fig. 9, the threshold adjusting unit 82 includes:
a service time length obtaining subunit 91, configured to obtain a service time length of the hall sensor;
a first threshold determining subunit 92, configured to determine, based on a preset correspondence table between duration and magnetic induction data, first magnetic induction data corresponding to the duration of use, and use the first magnetic induction data as the first threshold;
and a threshold adjusting subunit 93, configured to adjust the magnetic induction threshold of the hall sensor to the first magnetic induction threshold.
In one embodiment, referring to fig. 10, the threshold adjusting unit 82 includes:
an average value obtaining subunit 101, configured to obtain an average value of the magnetic induction data in a preset time period before the current magnetic induction data, and use the average value as the first threshold value 8596;
a threshold adjusting subunit 102, configured to adjust a magnetic induction threshold of the hall sensor to the first magnetic induction threshold.
It can be understood that the apparatus provided in the embodiments of the present disclosure corresponds to the method described above, and specific contents may refer to the contents of each embodiment of the method, which are not described herein again.
FIG. 11 is a block diagram illustrating an electronic device in accordance with an example embodiment. For example, the electronic device 1100 may be a smartphone, a computer, a digital broadcast terminal, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
Referring to fig. 11, electronic device 1100 may include one or more of the following components: processing component 1102, memory 1104, power component 1106, multimedia component 1108, audio component 1110, input/output (I/O) interface 1112, sensor component 1114, communication component 1116, and image capture component 1118.
The processing component 1102 generally provides for overall operation of the electronic device 1100, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1102 may include one or more processors 1120 to execute computer programs. Further, the processing component 1102 may include one or more modules that facilitate interaction between the processing component 1102 and other components. For example, the processing component 1102 may include a multimedia module to facilitate interaction between the multimedia component 1108 and the processing component 1102.
The memory 1104 is configured to store various types of data to support operations at the electronic device 1100. Examples of such data include computer programs for any application or method operating on the electronic device 1100, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1104 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 1106 provides power to the various components of the electronic device 1100. The power components 1106 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 1100.
The multimedia component 1108 includes a screen that provides an output interface between the electronic device 1100 and the target object. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a target object. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
The audio component 1110 is configured to output and/or input audio signals. For example, the audio component 1110 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 1100 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1104 or transmitted via the communication component 1116. In some embodiments, the audio assembly 1110 further includes a speaker for outputting audio signals.
The I/O interface 1112 provides an interface between the processing component 1102 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc.
The sensor assembly 1114 includes one or more sensors for providing various aspects of state assessment for the electronic device 1100. For example, the sensor component 1114 may detect an open/closed state of the electronic device 1100, the relative positioning of components, such as a display and keypad of the electronic device 1100, the sensor component 1114 may also detect a change in the position of the electronic device 1100 or a component, the presence or absence of a target object in contact with the electronic device 1100, orientation or acceleration/deceleration of the electronic device 1100, and a change in the temperature of the electronic device 1100. The sensor assembly 1114 may include a distance sensor and/or a light sensor for acquiring sensor data to enable the processor to implement the steps of the methods of fig. 1-5 based on the sensor.
The communication component 1116 is configured to facilitate wired or wireless communication between the electronic device 1100 and other devices. The electronic device 1100 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1116 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1116 also includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 1100 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components.
In an exemplary embodiment, a non-transitory readable storage medium is also provided that includes an executable computer program, such as the memory 1104 that includes instructions, that are executable by the processor. The readable storage medium may be, among others, ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (16)

1. A display state control method is applied to an electronic device provided with a display screen, and comprises the following steps:
acquiring magnetic induction data acquired by a Hall sensor, and adjusting a preset magnetic induction threshold value of the Hall sensor according to the magnetic induction data;
responding to the fact that the magnetic induction data exceed a preset magnetic induction threshold value, and acquiring sensing data acquired by a preset sensor;
controlling the display state of a display screen in the electronic equipment based on the sensing data;
the method further comprises the step of adjusting the magnetic induction threshold of the hall sensor, and specifically comprises the following steps:
acquiring current magnetic induction data acquired by the Hall sensor; when the current magnetic induction data meet a second preset condition, adjusting the magnetic induction threshold value of the Hall sensor to be a first magnetic induction threshold value;
the second preset condition comprises at least one of the following: the current magnetic induction data is the maximum value of the magnetic induction data acquired by the Hall sensor and is smaller than a preset magnetic induction threshold, and the magnetic induction data in a preset time period before the current magnetic induction data are all smaller than the preset magnetic induction threshold; the maximum value of the magnetic induction data refers to that historical magnetic induction data in a preset time period before the current magnetic induction data are all smaller than or equal to the current magnetic induction data.
2. The display state control method according to claim 1, wherein controlling the display state of a display screen in the electronic device based on the sensing data comprises:
determining whether the sensing data meet a first preset condition or not to obtain a determination result;
when the determination result represents that the sensing data meet the first preset condition, controlling a display screen of the electronic equipment to be switched to a closed state; and when the determined result represents that the sensing data does not meet the first preset condition, controlling the display screen to keep a display state.
3. The display state control method according to claim 2, wherein the preset sensor includes at least one of: distance sensor, light sensor.
4. The display state control method according to claim 3, wherein the first preset condition includes at least one of: the distance value is smaller than or equal to a preset distance value, and the current light sensitivity value is smaller than or equal to a preset light sensitivity value.
5. The display state control method according to claim 2, wherein after the determination result indicates that the sensing data does not satisfy the first preset condition, the method further comprises:
and generating reminding information, wherein the reminding information is used for reminding the electronic equipment of being in a high-intensity magnetic field environment.
6. The display state control method according to claim 1, wherein adjusting the magnetic induction threshold of the hall sensor to a first magnetic induction threshold comprises:
acquiring the service life of the Hall sensor;
determining first magnetic induction data corresponding to the use duration based on a preset corresponding relation table of the duration and the magnetic induction data;
and adjusting the magnetic induction threshold value of the Hall sensor to be the first magnetic induction threshold value.
7. The display state control method according to claim 1, wherein adjusting the magnetic induction threshold of the hall sensor to a first magnetic induction threshold comprises:
acquiring an average value of the magnetic induction data in a preset time period before the current magnetic induction data, and taking the average value as a first magnetic induction threshold;
and adjusting the magnetic induction threshold value of the Hall sensor to be the first magnetic induction threshold value.
8. The utility model provides a display state controlling means which characterized in that is applied to the electronic equipment who is provided with the display screen, includes:
the magnetic induction data acquisition module is used for acquiring magnetic induction data acquired by the Hall sensor;
the magnetic induction threshold adjusting module is used for adjusting a preset magnetic induction threshold of the Hall sensor according to the magnetic induction data;
the sensing data acquisition module is used for responding to the fact that the magnetic induction data exceed a preset magnetic induction threshold value and acquiring sensing data acquired by a preset sensor;
the display state control module is used for controlling the display state of a display screen in the electronic equipment based on the sensing data;
the magnetic induction threshold value adjusting module comprises:
the current value acquisition unit is used for acquiring current magnetic induction data acquired by the Hall sensor;
the threshold adjusting unit is used for adjusting the magnetic induction threshold of the Hall sensor to be a first magnetic induction threshold when the current magnetic induction data meet a second preset condition;
the second preset condition comprises at least one of the following: the current magnetic induction data is the maximum value of the magnetic induction data acquired by the Hall sensor and is smaller than a preset magnetic induction threshold, and the magnetic induction data in a preset time period before the current magnetic induction data are all smaller than the preset magnetic induction threshold; the maximum value of the magnetic induction data refers to that historical magnetic induction data in a preset time period before the current magnetic induction data are all smaller than or equal to the current magnetic induction data.
9. The display state control apparatus according to claim 8, wherein the display state control module comprises:
the determination result acquisition unit is used for determining whether the sensing data meet a first preset condition or not to obtain a determination result;
the display state control unit is used for controlling a display screen of the electronic equipment to be switched to a closed state when the determination result represents that the sensing data meet the first preset condition; and when the determined result represents that the sensing data does not meet the first preset condition, controlling the display screen to keep a display state.
10. The display state control apparatus of claim 9, wherein the preset sensor comprises at least one of: distance sensor, light sensor.
11. The display state control apparatus according to claim 10, wherein the first preset condition includes at least one of: the distance value is smaller than or equal to a preset distance value, and the current light sensitivity value is smaller than or equal to a preset light sensitivity value.
12. The display state control apparatus according to claim 9, wherein the display state control module comprises:
and the reminding information generating unit is used for generating reminding information, and the reminding information is used for reminding the electronic equipment of being in a high-intensity magnetic field environment.
13. The display state control device according to claim 8, wherein the threshold value adjusting unit includes:
the service time obtaining subunit is used for obtaining the service time of the Hall sensor;
a first threshold determining subunit, configured to determine, based on a preset correspondence table between a duration and magnetic induction data, first magnetic induction data corresponding to the duration of use, and use the first magnetic induction data as the first threshold;
and the threshold adjusting subunit is used for adjusting the magnetic induction threshold of the hall sensor to the first magnetic induction threshold.
14. The display state control device according to claim 13, wherein the threshold value adjusting unit includes:
an average value obtaining subunit, configured to obtain an average value of the magnetic induction data in a preset time period before the current magnetic induction data, and use the average value as the first threshold;
and the threshold adjusting subunit is used for adjusting the magnetic induction threshold of the hall sensor to the first magnetic induction threshold.
15. An electronic device, comprising:
a Hall sensor and a preset sensor; the preset sensor comprises at least one of the following: distance sensors, light sensors;
a processor;
a memory for storing a computer program executable by the processor;
the processor is configured to execute the computer program in the memory to implement the steps of the method of any one of claims 1 to 7.
16. A readable storage medium having stored thereon an executable computer program, wherein the computer program when executed implements the steps of the method of any one of claims 1 to 7.
CN202010161777.1A 2020-03-10 2020-03-10 Display state control method and device, electronic equipment and storage medium Active CN111432068B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010161777.1A CN111432068B (en) 2020-03-10 2020-03-10 Display state control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010161777.1A CN111432068B (en) 2020-03-10 2020-03-10 Display state control method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111432068A CN111432068A (en) 2020-07-17
CN111432068B true CN111432068B (en) 2022-04-08

Family

ID=71546247

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010161777.1A Active CN111432068B (en) 2020-03-10 2020-03-10 Display state control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111432068B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114489534B (en) * 2021-07-23 2023-07-14 荣耀终端有限公司 Display switching method of foldable electronic equipment, electronic equipment and medium
CN116701099A (en) * 2022-11-08 2023-09-05 荣耀终端有限公司 Electronic equipment and method for controlling working state of electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104640184A (en) * 2015-02-15 2015-05-20 广东欧珀移动通信有限公司 Screen wake-up method and device
CN104834497A (en) * 2015-05-15 2015-08-12 北京智膜科技有限公司 On screen display control method and controller
CN106210336A (en) * 2016-07-22 2016-12-07 北京小米移动软件有限公司 Control the method and device of mobile terminal state switching
WO2019061177A1 (en) * 2017-09-28 2019-04-04 华为技术有限公司 Prompt method and portable device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5634041B2 (en) * 2009-02-17 2014-12-03 ローム株式会社 Magnetic sensor and electronic device equipped with the same
CN107197076A (en) * 2016-03-14 2017-09-22 中兴通讯股份有限公司 A kind of control method of terminal device, mobile terminal and system
CN106339168B (en) * 2016-08-22 2020-10-16 北京小米移动软件有限公司 Screen control method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104640184A (en) * 2015-02-15 2015-05-20 广东欧珀移动通信有限公司 Screen wake-up method and device
CN104834497A (en) * 2015-05-15 2015-08-12 北京智膜科技有限公司 On screen display control method and controller
CN106210336A (en) * 2016-07-22 2016-12-07 北京小米移动软件有限公司 Control the method and device of mobile terminal state switching
WO2019061177A1 (en) * 2017-09-28 2019-04-04 华为技术有限公司 Prompt method and portable device

Also Published As

Publication number Publication date
CN111432068A (en) 2020-07-17

Similar Documents

Publication Publication Date Title
US9860844B2 (en) Method and apparatus of temperature control
EP3093569B1 (en) Method and device for turning on air conditioner
CN107134823B (en) Charging prompting method and device
CN110796988B (en) Backlight adjusting method and device
EP3026875A1 (en) Method and apparatus for adjusting operational status of smart home device
EP3151526B1 (en) Reminding method and device thereof
CN107872576B (en) Alarm clock reminding method and device and computer readable storage medium
EP2991067B1 (en) Backlight brightness control method and device
CN106843706B (en) Shutdown control method and device and terminal equipment
EP3361369B1 (en) Method and device for displaying time on mobile device
CN111432068B (en) Display state control method and device, electronic equipment and storage medium
CN107331910B (en) Charging method and device
EP3249505A1 (en) Method and device for controlling state of touch screen, electronic device
US11011124B2 (en) Method and device for adjusting current of backlight, and storage medium
CN109862169B (en) Electronic equipment control method, device and storage medium
CN107656694B (en) Display control method and device of user interface
CN111243554B (en) Screen brightness adjusting method, screen brightness adjusting device and storage medium
CN111880681A (en) Touch screen sampling rate adjusting method and device and computer storage medium
CN108267972B (en) Electronic equipment control method and device
CN107734303B (en) Video identification method and device
CN108597456B (en) Backlight brightness adjusting method and device
CN112748817A (en) Information control method and device, terminal and storage medium
CN107528098B (en) Charging method and device
CN106775246B (en) Screen brightness adjusting method and device
CN109004359B (en) Electronic equipment, antenna structure thereof, and method and device for adjusting antenna voltage

Legal Events

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