CN109068000B - Sensor control method, mobile terminal, and computer-readable storage medium - Google Patents

Sensor control method, mobile terminal, and computer-readable storage medium Download PDF

Info

Publication number
CN109068000B
CN109068000B CN201811109800.1A CN201811109800A CN109068000B CN 109068000 B CN109068000 B CN 109068000B CN 201811109800 A CN201811109800 A CN 201811109800A CN 109068000 B CN109068000 B CN 109068000B
Authority
CN
China
Prior art keywords
screen
target application
priority
infrared sensor
sensor under
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
CN201811109800.1A
Other languages
Chinese (zh)
Other versions
CN109068000A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811109800.1A priority Critical patent/CN109068000B/en
Publication of CN109068000A publication Critical patent/CN109068000A/en
Application granted granted Critical
Publication of CN109068000B publication Critical patent/CN109068000B/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
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/02Systems using the reflection of electromagnetic waves other than radio waves
    • G01S17/06Systems determining position data of a target
    • G01S17/08Systems determining position data of a target for measuring distance only
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Abstract

The embodiment of the application discloses a sensor control method, a mobile terminal and a computer readable storage medium, wherein the method comprises the following steps: turning off the infrared sensor under the screen in the screen-off display AOD mode; when a calling request of a target application to an infrared sensor under a screen is received, acquiring the priority of the target application; and if the priority of the target application is less than the preset priority, reporting the preset measurement result to the target application. The embodiment of the application can avoid the screen burning phenomenon.

Description

Sensor control method, mobile terminal, and computer-readable storage medium
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a sensor control method, a mobile terminal and a computer readable storage medium.
Background
With the increasing popularity of mobile terminals such as mobile phones, the appearance of the mobile phones has also changed significantly. Full screen handsets have become the focus of current research. In the case of a full screen, the location of many sensors (e.g., infrared sensors) on the handset may need to be rearranged. Currently, infrared sensors are typically placed under the screen. However, in the bright screen state or the off screen display (AOD) mode, if the infrared sensor operates, a screen burn-in phenomenon occurs.
Disclosure of Invention
The embodiment of the application provides a sensor control method, a mobile terminal and a computer readable storage medium, which can avoid the phenomenon of screen burning.
A first aspect of an embodiment of the present application provides a sensor control method, including:
turning off the infrared sensor under the screen in the screen-off display AOD mode;
when a calling request of a target application to the infrared sensor under the screen is received, acquiring the priority of the target application;
and if the priority of the target application is less than the preset priority, reporting the preset measurement result to the target application.
A second aspect of the present embodiment provides a sensor control apparatus, including a processing unit, an obtaining unit, and a reporting unit, where:
the processing unit is used for turning off the infrared sensor under the screen in the screen-off display AOD mode;
the acquiring unit is used for acquiring the priority of a target application when a calling request of the target application to the infrared sensor under the screen is received;
and the reporting unit is used for reporting the preset measurement result to the target application under the condition that the priority of the target application is smaller than the preset priority.
A third aspect of embodiments of the present application provides a mobile terminal, including a processor and a memory, where the memory is configured to store one or more programs configured to be executed by the processor, and where the program includes instructions for performing some or all of the steps described in any of the methods of the first aspect of embodiments of the present application.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium for storing a computer program for electronic data exchange, wherein the computer program causes a computer to perform some or all of the steps as described in any one of the methods of the first aspect of embodiments of the present application.
A fifth aspect of embodiments of the present application provides a computer program product comprising a non-transitory computer readable storage medium having a computer program stored thereon, the computer program being operable to cause a computer to perform some or all of the steps of a method as described in any one of the first aspects of embodiments of the present application.
In the embodiment of the application, the infrared sensor under the screen is turned off in the screen-off display AOD mode; when a calling request of a target application to an infrared sensor under a screen is received, acquiring the priority of the target application; and if the priority of the target application is less than the preset priority, reporting the preset measurement result to the target application. Therefore, the infrared sensor under the screen is closed in the AOD mode, the screen burning phenomenon is avoided, the infrared sensor under the screen is still closed when the target application with lower priority calls the infrared sensor under the screen, the calling requirement of the target application is met, and the problem that the sensor is called mistakenly in the AOD mode is solved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart diagram of a sensor control method disclosed in an embodiment of the present application;
fig. 2 is a schematic display diagram of a mobile terminal in AOD mode according to an embodiment of the present application;
FIG. 3 is a schematic flow chart diagram of another sensor control method disclosed in embodiments of the present application;
FIG. 4 is a schematic structural diagram of a sensor control device disclosed in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a mobile terminal disclosed in an embodiment of the present application;
fig. 6 is a schematic structural diagram of another mobile terminal disclosed in the embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present invention better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and the like in the description and claims of the present invention and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The Mobile terminal according to the embodiment of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like. For convenience of description, the above-mentioned devices are collectively referred to as a mobile terminal.
The following describes embodiments of the present application in detail.
Referring to fig. 1, fig. 1 is a schematic flow chart of a sensor control method according to an embodiment of the present disclosure, and as shown in fig. 1, the sensor control method includes the following steps.
101, in the screen-off display AOD mode, the mobile terminal closes the infrared sensor under the screen.
In the embodiment of the present application, an off-screen display (AOD) mode may also be referred to as a normal display mode, which is a display mode in which a partial area of a display screen of a mobile terminal (e.g., a mobile phone) is kept normally bright in a screen-locked state. In the AOD mode, information such as time, notification, and the like may be displayed in a partial area of the display screen.
Referring to fig. 2, fig. 2 is a schematic display diagram of a mobile terminal in an AOD mode according to an embodiment of the present application. As shown in fig. 2, the display area of the display screen of the mobile terminal occupies a very small area of the entire display screen, the display area is used for displaying information such as time and date notification messages, and other areas of the display screen except the display area are not displayed and are in a black screen state. Because only partial area of the display screen is lighted, the power consumption of the AOD mode can be very low, and for a user who is used to look up a mobile terminal (such as a mobile phone), the mobile phone screen does not need to be frequently lighted and the mobile phone does not need to be unlocked, so that the display screen is very convenient and fast.
The user may manually turn on or turn off the AOD mode, for example, in a setting option of the mobile terminal, an AOD mode selection button may be set, and the user may manually click the AOD mode turn-on or turn-off button to turn on the AOD mode or turn off the AOD mode.
The AOD mode can also be turned on within a preset time period in the embodiment of the present application, for example, the AOD mode can be turned on at 17 o 'clock to 21 o' clock every day.
The under-screen infrared sensor is an infrared sensor arranged below a display screen of the mobile terminal, and is generally applied to a full-screen mobile terminal. An infrared sensor is one type of proximity sensor. The proximity sensor may also be referred to as a distance sensor for detecting a distance between the mobile terminal and an object to be measured. The proximity sensor can emit and emit infrared light pulses, and the distance between the mobile terminal and the measured object is calculated according to the time difference between the received and emitted infrared light pulses and the propagation speed of the infrared light pulses. The object to be measured may be any object capable of shielding infrared rays, such as human body organs, leather, fabric, paper, table tops, and the like. When the proximity sensor detects that the distance between the mobile terminal and the object to be measured is smaller than a preset distance threshold value, the mobile terminal is considered to have the object approaching.
The preset distance threshold may be set in advance and stored in a non-volatile memory of the mobile terminal. For example, the preset distance threshold may be set to 5 cm.
In the AOD mode, if an infra-screen infrared sensor is used, an infrared burn-in phenomenon occurs. The principle of infrared screen burning is as follows: when the infrared sensor under the screen works, the pixel point of the infrared sensor under the screen corresponding to the display screen can continuously emit light. Under the AOD mode, the display screen can be switched on, and after the display screen circular telegram, all pixel points on the display screen can all form closed loop, and all pixel points on the display screen have the electric current to pass through, and the light that infrared sensor corresponds the pixel point of display screen under the screen sends can produce the electric charge because of having the photoelectric effect, and this electric charge can get into closed loop, can lead to the display screen to be burnt out.
In order to avoid appearing infrared burn-in phenomenon under the AOD mode, infrared sensor under this application embodiment closed the screen under the AOD mode, avoids appearing burning-in phenomenon.
Optionally, in step 101, the method for turning off the off-screen infrared sensor by the mobile terminal specifically includes:
and the mobile terminal cuts off the connection between the infrared sensor and the power supply under the screen.
In the embodiment of the application, through the end cut-off screen under infrared sensor and power supply between be connected, guarantee from hardware design that infrared sensor is out of work under the AOD mode under the screen, prevent to appear because leak (bug) appear in software control leads to the condition that infrared sensor opened by mistake under the AOD mode, and then avoid appearing the infrared phenomenon of burning the screen.
102, when a calling request of a target application to the off-screen infrared sensor is received, the mobile terminal obtains the priority of the target application.
And 103, if the priority of the target application is less than the preset priority, the mobile terminal reports the preset measurement result to the target application.
In the embodiment of the application, the target application is an application program (APP for short) having a permission to call the infrared sensor under the screen. Because under the AOD mode, infrared sensor under the screen is closed, if the infrared sensor under the screen is directly called by the target application, an error can be reported, and a display screen can display a prompt message that the sensor is called by mistake, so that the use experience of a user can be influenced.
The priority of the application installed in the mobile terminal can be set. For example, the priority of an application having a voice call function may be set to exceed a preset priority; the priority of the application having the infrared transmission function and not having the voice call function may be set to be lower than a preset priority; the priority of the application having the distance measurement function but not having the voice call function may be set lower than a preset priority.
The priority may be a numerical value or only a level size, and the embodiment of the present application is not limited.
The preset measurement may be a measurement greater than the preset distance threshold or a measurement of the object's distance. The preset measurement result may be preset and stored in a non-volatile memory of the mobile terminal. Because a general user places the mobile terminal beside the AOD mode, only the user needs to check the time and check whether a message is received, and generally no object is close to the mobile terminal, the preset measurement result (for example, the measurement result of the object far away) is directly reported in the AOD mode, so that the reported measurement result is as accurate as possible when the infrared sensor under the screen is turned off.
According to the method and the device, for the target application with the lower priority, the infrared sensor under the screen is still closed, the preset measurement result is reported to the target application, the calling requirement of the target application is met, and the problem that the sensor calling is wrong in the AOD mode is solved.
Optionally, in step 102, the manner of obtaining the priority of the target application by the mobile terminal is specifically as follows:
and acquiring the type of the target application, and determining the priority corresponding to the type of the target application according to the corresponding relation between the application type and the priority.
In the embodiment of the present application, the correspondence between the application type and the priority may be stored in advance. The priority levels corresponding to different application types are different.
For example, the priority corresponding to the voice call application is a first priority; the priority corresponding to the application with the infrared transmission function and without the voice communication function is a second priority; the priority level corresponding to the application having the distance measurement function but not having the voice call function is the third priority level. The first priority is greater than the preset priority, the second priority is less than the preset priority, and the third priority is less than the preset priority.
According to the method and the device, the corresponding priority can be determined according to the type of the target application, and the priority of the target application can be determined quickly and accurately.
And 104, if the priority of the target application is greater than or equal to the preset priority, the mobile terminal exits the AOD mode, enters a screen-off mode, responds to the calling request, starts the infrared sensor under the screen to work and reports the current measurement result to the target application.
In the embodiment of the application, the screen-off mode refers to a state that a display screen of the mobile terminal is turned off. In the screen-off mode, the display screen is not electrified, and all pixel points on the display screen do not have current to pass through. Therefore, the infrared sensor under the screen can not be burnt by infrared rays when the screen is in the screen extinguishing mode.
And if the priority of the target application is greater than or equal to the preset priority, the AOD mode can be exited, the screen-off mode is entered, the infrared sensor is started to work in response to the calling request in the screen-off mode, and the current measurement result is reported to the target application.
According to the method and the device, for the target application with the higher priority, the AOD mode can be quitted, the screen-off mode is entered, the infrared sensor is started to work in the screen-off mode, the current measurement result is reported to the target application, and the calling requirement of the target application with the higher priority on the infrared sensor under the screen is met.
Optionally, the method shown in fig. 1 may further include the following steps:
(11) and in the bright screen mode, the mobile terminal closes the infrared sensor under the screen.
(12) When a calling request of a target application to the infrared sensor under the screen is received, the mobile terminal starts the touch screen sensor to work and reports a measurement result of the touch screen sensor to the target application.
In the embodiment of the application, the infrared sensor under the screen is closed in the bright screen mode, and the infrared sensor under the screen can be prevented from working in the bright screen state, so that the infrared screen burning phenomenon is avoided.
If the infrared sensor under the screen needs to be called to measure in the bright screen mode, the touch screen sensor can be used for replacing the infrared sensor. Touch Panel (TP) sensors, also known as TP sensors. The TP sensor and the infrared sensor under the screen can be used for proximity detection and used for detecting the distance between the touch display screen and an external object.
The TP sensor may include a plurality of detection units, the plurality of detection units are distributed on each pixel point of the display screen, and when the capacitance of one or more pixel points changes, it may be determined that an object is close to or far away from the one or more pixel points.
Optionally, the method shown in fig. 1 may further include the following steps:
in the screen off mode, when a calling request of a target application to the off-screen infrared sensor is received, the mobile terminal starts the off-screen infrared sensor.
In the embodiment of the application, in the screen-off mode, the display screen is not powered on, the infrared screen burning phenomenon cannot occur, and the infrared sensor under the screen can respond to the calling request of the target application to measure in the screen-off mode.
Referring to fig. 3, fig. 3 is a schematic flow chart of another sensor control method disclosed in an embodiment of the present application, and fig. 3 is further optimized based on fig. 1, and as shown in fig. 3, the sensor control method includes the following steps.
301, in the screen-off display AOD mode, the mobile terminal turns off the infrared sensor under the screen.
302, when receiving a call request of a target application to the off-screen infrared sensor, the mobile terminal acquires the priority of the target application.
303, if the priority of the target application is less than the preset priority, the mobile terminal reports the preset measurement result to the target application.
304, if the priority of the target application is greater than or equal to the preset priority, the mobile terminal exits the AOD mode, enters a screen-off mode, responds to the calling request to start the infrared sensor under the screen to work and reports the current measurement result to the target application.
The specific implementation of steps 301 to 304 in the embodiment of the present application may refer to steps 101 to 104 shown in fig. 1, which are not described herein again.
And 305, if the operation instruction corresponding to the current measurement result is a screen lightening instruction, closing the infrared sensor under the screen by the mobile terminal, and lightening the display screen in response to the screen lightening instruction.
In the embodiment of the application, after receiving the current measurement result reported by the off-screen infrared sensor, the target application generates the operation instruction according to the measurement result. Such as a screen-up command, a screen-down command, etc.
For example, if the target application is a voice call application, when a voice call is received, if the current measurement result reported by the off-screen infrared sensor is the result of object moving away, the operation instruction corresponding to the measurement result is a screen-on instruction; and if the current measurement result reported by the infrared sensor under the screen is the result of the approaching of the object, the operation instruction corresponding to the measurement result is a screen-off instruction.
In the embodiment of the application, because the screen can be lighted to the bright screen instruction, before the screen is lighted, close infrared sensor under the screen earlier, avoid infrared sensor under the screen to work under the bright screen state to avoid appearing infrared burning screen phenomenon.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the mobile terminal includes hardware structures and/or software modules for performing the respective functions in order to implement the above-described functions. Those of skill in the art will readily appreciate that the present invention can be implemented in hardware or a combination of hardware and computer software, with the exemplary elements and algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiment of the present application, the mobile terminal may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a sensor control device according to an embodiment of the present disclosure. As shown in fig. 4, the sensor control apparatus 400 includes a processing unit 401, an acquiring unit 402, and a reporting unit 403, where:
and the processing unit 401 is configured to turn off the infrared sensor under the screen in the screen-off display AOD mode.
An obtaining unit 402, configured to obtain a priority of a target application when a call request of the target application to the off-screen infrared sensor is received.
A reporting unit 403, configured to report a preset measurement result to the target application when the priority of the target application is smaller than a preset priority.
Optionally, the processing unit 401 is further configured to exit the AOD mode and enter a screen-off mode when the priority of the target application is greater than or equal to the preset priority.
The reporting unit 403 is further configured to start the off-screen infrared sensor to work in response to the call request and report the current measurement result to the target application.
Optionally, the processing unit 401 is further configured to, when the operation instruction corresponding to the current measurement result is a screen-lighting instruction, close the infrared sensor under the screen, and light up the display screen in response to the screen-lighting instruction.
Optionally, the processing unit 401 is further configured to turn off the infrared sensor under the screen in a bright screen mode;
the processing unit 401 is further configured to start the touch screen sensor to work and report a measurement result of the touch screen sensor to the target application when receiving a call request of the target application to the infrared sensor under the screen.
Optionally, the processing unit 401 is further configured to, in the screen-off mode, start the infrared sensor under the screen when receiving a call request of the target application to the infrared sensor under the screen.
Optionally, the processing unit 401 turns off the infrared sensor under the screen, specifically:
the processing unit 401 cuts off the connection between the infra-red sensor and the power supply.
Optionally, the obtaining unit 402 obtains the priority of the target application, specifically:
the obtaining unit 402 obtains the type of the target application, and determines the priority corresponding to the type of the target application according to the corresponding relationship between the application type and the priority.
Implementing the sensor control device shown in fig. 4, closing the infrared sensor under the screen in the AOD mode, avoiding the phenomenon of screen burning, and still closing the infrared sensor under the screen when the target application with lower priority calls the infrared sensor under the screen, and satisfying the calling demand of the target application, preventing the problem of sensor calling error in the AOD mode.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure. As shown in fig. 5, the mobile terminal 500 includes a processor 501 and a memory 502, wherein the mobile terminal 500 may further include a bus 503, the processor 501 and the memory 502 may be connected to each other through the bus 503, and the bus 503 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus 503 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus. The mobile terminal 500 may also include input and output devices 504, where the input and output devices 504 may include a display screen, such as a liquid crystal display screen. Memory 502 is used to store one or more programs containing instructions; processor 501 is configured to call instructions stored in memory 502 to perform some or all of the method steps described above with respect to fig. 1-3.
Implementing the mobile terminal shown in fig. 5, turning off the infrared sensor under the screen in the AOD mode, avoiding the phenomenon of screen burning, and when the target application with lower priority calls the infrared sensor under the screen, still turning off the infrared sensor under the screen, and satisfying the calling requirement of the target application, preventing the problem of sensor calling error in the AOD mode.
As shown in fig. 6, for convenience of description, only the parts related to the embodiments of the present application are shown, and details of the specific technology are not disclosed, please refer to the method part of the embodiments of the present application. The mobile terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, and the like, taking the mobile terminal as the mobile phone as an example:
fig. 6 is a block diagram illustrating a partial structure of a mobile phone related to a mobile terminal according to an embodiment of the present disclosure. Referring to fig. 6, the handset includes: a Radio Frequency (RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a Wireless Fidelity (WiFi) module 970, a processor 980, and a power supply 990. Those skilled in the art will appreciate that the handset configuration shown in fig. 6 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 6:
RF circuitry 910 may be used for the reception and transmission of information. In general, the RF circuit 910 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 910 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 920 may be used to store software programs and modules, and the processor 980 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 920. The memory 920 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the mobile phone, and the like. Further, the memory 920 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 930 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 930 may include a fingerprint recognition module 931 and other input devices 932. Fingerprint identification module 931, can gather the fingerprint data of user above it. The input unit 930 may include other input devices 932 in addition to the fingerprint recognition module 931. In particular, other input devices 932 may include, but are not limited to, one or more of a touch screen, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 940 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The Display unit 940 may include a Display screen 941, and optionally, the Display screen 941 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The handset may also include at least one sensor 950, such as a light sensor, motion sensor, pressure sensor, temperature sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor (also referred to as a light sensor) that can adjust the backlight brightness of the mobile phone according to the brightness of ambient light, and thus adjust the brightness of the display screen 941, and a proximity sensor that can turn off the display screen 941 and/or the backlight when the mobile phone is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications (such as horizontal and vertical screen switching, magnetometer attitude calibration), vibration recognition related functions (such as pedometer and tapping) and the like for recognizing the attitude of a mobile phone; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 960, speaker 961, microphone 962 may provide an audio interface between a user and a cell phone. The audio circuit 960 may transmit the electrical signal converted from the received audio data to the speaker 961, and the audio signal is converted by the speaker 961 to be played; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, converts the electrical signal into audio data after being received by the audio circuit 960, and then processes the audio data by the audio data playing processor 980, and then sends the audio data to, for example, another mobile phone through the RF circuit 910, or plays the audio data to the memory 920 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 970, and provides wireless broadband Internet access for the user. Although fig. 6 shows the WiFi module 970, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 980 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920, thereby integrally monitoring the mobile phone. Alternatively, processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 980.
The handset also includes a power supply 990 (e.g., a battery) for supplying power to the various components, which may preferably be logically connected to the processor 980 via a power management system, thereby providing management of charging, discharging, and power consumption via the power management system.
The mobile phone may further include a camera 9100, and the camera 9100 is used for shooting images and videos and transmitting the shot images and videos to the processor 980 for processing.
The mobile phone can also be provided with a Bluetooth module and the like, which are not described herein again.
In the embodiments shown in fig. 1 to fig. 3, the method flows of the steps may be implemented based on the structure of the mobile phone.
Embodiments of the present application also provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the sensor control methods as described in the above method embodiments.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any one of the sensor control methods as set forth in the above method embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a memory and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing embodiments of the present invention have been described in detail, and the principles and embodiments of the present invention are explained herein by using specific examples, which are only used to help understand the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A sensor control method, characterized by comprising:
turning off the infrared sensor under the screen in the screen-off display AOD mode;
when a calling request of a target application to the infrared sensor under the screen is received, acquiring the priority of the target application;
and if the priority of the target application is less than the preset priority, reporting the preset measurement result to the target application.
2. The method of claim 1, further comprising:
and if the priority of the target application is greater than or equal to the preset priority, exiting the AOD mode, entering a screen-off mode, responding to the calling request, starting the infrared sensor under the screen to work, and reporting the current measurement result to the target application.
3. The method of claim 2, wherein after initiating operation of the off-screen infrared sensor in response to the invocation request and reporting a current measurement result to the target application, the method further comprises:
and if the operation instruction corresponding to the current measurement result is a screen lightening instruction, closing the infrared sensor under the screen, and responding to the screen lightening instruction to lighten the display screen.
4. The method according to any one of claims 1 to 3, further comprising:
in a bright screen mode, turning off the infrared sensor under the screen;
and when a calling request of the target application to the infrared sensor under the screen is received, starting a touch screen sensor to work and reporting a measurement result of the touch screen sensor to the target application.
5. The method according to any one of claims 1 to 3, further comprising:
and in the screen extinguishing mode, when a calling request of the target application to the infrared sensor under the screen is received, starting the infrared sensor under the screen.
6. A sensor control method, characterized in that it comprises all the features of the method of any one of claims 1 to 5, and in that said switching off of the infra-red sensor comprises:
and cutting off the connection between the infrared sensor under the screen and the power supply.
7. A sensor control method, characterized in that it comprises all the features of the method of any one of claims 1 to 6, and in that said obtaining the priority of said target application comprises:
and acquiring the type of the target application, and determining the priority corresponding to the type of the target application according to the corresponding relation between the application type and the priority.
8. A sensor control device is characterized by comprising a processing unit, an acquisition unit and a reporting unit, wherein:
the processing unit is used for turning off the infrared sensor under the screen in the screen-off display AOD mode;
the acquiring unit is used for acquiring the priority of a target application when a calling request of the target application to the infrared sensor under the screen is received;
and the reporting unit is used for reporting the preset measurement result to the target application under the condition that the priority of the target application is smaller than the preset priority.
9. A mobile terminal comprising a processor and a memory for storing one or more programs configured for execution by the processor, the programs comprising instructions for performing the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the method according to any one of claims 1-7.
CN201811109800.1A 2018-09-21 2018-09-21 Sensor control method, mobile terminal, and computer-readable storage medium Active CN109068000B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811109800.1A CN109068000B (en) 2018-09-21 2018-09-21 Sensor control method, mobile terminal, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811109800.1A CN109068000B (en) 2018-09-21 2018-09-21 Sensor control method, mobile terminal, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN109068000A CN109068000A (en) 2018-12-21
CN109068000B true CN109068000B (en) 2020-12-22

Family

ID=64762430

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811109800.1A Active CN109068000B (en) 2018-09-21 2018-09-21 Sensor control method, mobile terminal, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN109068000B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109710109B (en) * 2018-12-28 2023-06-09 Oppo广东移动通信有限公司 Control method, control device, electronic device, and storage medium
CN110223635B (en) * 2019-06-14 2021-10-01 京东方科技集团股份有限公司 Power supply control circuit, power supply control method and display device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107659986A (en) * 2017-09-18 2018-02-02 维沃移动通信有限公司 One kind puts out screen clock control method and mobile terminal
CN107710724A (en) * 2016-02-19 2018-02-16 三星电子株式会社 Use the method and its electronic equipment of sensing data control display
CN108319914A (en) * 2018-01-31 2018-07-24 北京小米移动软件有限公司 Terminal and display control method, storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7103074B2 (en) * 2003-06-03 2006-09-05 Corporation For Laser Optics Research Laser video projection system and method with anti-piracy feature
US10534900B2 (en) * 2014-02-21 2020-01-14 Samsung Electronics Co., Ltd. Electronic device
US9891811B2 (en) * 2015-06-07 2018-02-13 Apple Inc. Devices and methods for navigating between user interfaces
CN106469011B (en) * 2016-08-31 2019-03-01 维沃移动通信有限公司 A kind of information display method and mobile terminal
CN106527763B (en) * 2016-10-31 2020-02-04 维沃移动通信有限公司 Method for adjusting position of display object and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107710724A (en) * 2016-02-19 2018-02-16 三星电子株式会社 Use the method and its electronic equipment of sensing data control display
CN107659986A (en) * 2017-09-18 2018-02-02 维沃移动通信有限公司 One kind puts out screen clock control method and mobile terminal
CN108319914A (en) * 2018-01-31 2018-07-24 北京小米移动软件有限公司 Terminal and display control method, storage medium

Also Published As

Publication number Publication date
CN109068000A (en) 2018-12-21

Similar Documents

Publication Publication Date Title
CN108111675B (en) Notification message processing method and device and mobile terminal
CN108574778B (en) Screen projection brightness adjusting method and related product
CN108646973B (en) Off-screen display method, mobile terminal and computer-readable storage medium
CN106506321B (en) Group message processing method and terminal device
CN107193664B (en) Message display method and device and mobile terminal
CN110245601B (en) Eyeball tracking method and related product
CN110209245B (en) Face recognition method and related product
CN106445596B (en) Method and device for managing setting items
CN106911848B (en) Method for outputting prompt message and terminal equipment
EP3242447A1 (en) Information recommendation management method, device and system
CN106991034A (en) A kind of method and apparatus and mobile terminal for monitoring interim card
CN108762814B (en) Screen lightening method and related equipment
CN107317918B (en) Parameter setting method and related product
CN107528958B (en) Method for controlling mobile terminal, device, readable storage medium storing program for executing and mobile terminal
CN110798511B (en) Method for predicting number of daily active users of target APP and computer equipment
CN107272985B (en) Notification message processing method and related product
CN109068000B (en) Sensor control method, mobile terminal, and computer-readable storage medium
CN106339391B (en) Webpage display method and terminal equipment
CN107040658B (en) Mobile terminal and method and device for controlling screen thereof
CN107657160B (en) Face information acquisition method and related product
CN109656431A (en) Information display method, device and storage medium
CN109189538A (en) A kind of method and apparatus sending orientation red packet
CN106909295B (en) Application processing method and terminal
CN108769347B (en) Information prompting method based on backlight brightness and related product
CN108304709B (en) Face unlocking method and related product

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