WO2021057712A1 - Proximity detection method and terminal device - Google Patents
Proximity detection method and terminal device Download PDFInfo
- Publication number
- WO2021057712A1 WO2021057712A1 PCT/CN2020/116783 CN2020116783W WO2021057712A1 WO 2021057712 A1 WO2021057712 A1 WO 2021057712A1 CN 2020116783 W CN2020116783 W CN 2020116783W WO 2021057712 A1 WO2021057712 A1 WO 2021057712A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- terminal device
- screen
- state
- information
- determined
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
- H04W52/0267—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by controlling user interface components
- H04W52/027—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by controlling user interface components by controlling a display operation or backlight unit
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/12—Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Definitions
- the embodiments of the present application relate to the field of communication technologies, and in particular, to a proximity detection method and terminal equipment.
- the surface where the screen of the terminal device is located must be reduced in openings. Therefore, it is impossible to adopt the solution of traditional infrared proximity sensors that require openings on the surface of the screen. Subsequently, a non-opening ultrasonic detection scheme appeared.
- the specific detection process is: the receiver sends out an ultrasonic signal, and the microphone determines whether the terminal device is blocked or not based on the received ultrasonic signal.
- the accuracy of the ultrasonic detection solution for detecting that the screen of the terminal device is blocked is low.
- the embodiments of the present application provide a proximity detection method and terminal device to solve the problem of low accuracy of detecting that the screen of the terminal device is blocked by the traditional ultrasonic detection solution.
- an embodiment of the present application provides a proximity detection method, which is applied to a terminal device, and the method includes: determining, according to an ultrasonic sensor of the terminal device, a situation in which a first object obstructs the terminal device within a first preset distance Under the following, the state information of the terminal device is obtained, and the state information is used to determine whether the first screen of the terminal device is blocked by the first object; in the case where the first screen is determined to be blocked by the first object, the first screen is controlled Switch from the on-screen state to the off-screen state.
- an embodiment of the present application provides a terminal device.
- the terminal device includes: an acquisition module and a control module; the acquisition module is configured to determine that there is a first preset distance within a first preset distance according to the ultrasonic sensor of the terminal device.
- the state information of the terminal device is obtained, and the state information is used to determine whether the first screen of the terminal device is blocked by the first object; the control module is used to determine whether the first object blocks the first screen of the terminal device.
- control the first screen controls the first screen to switch from the on-screen state to the off-screen state.
- the embodiments of the present application provide a terminal device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor.
- the computer program is executed by the processor, the following On the one hand, the steps of the approach detection method.
- an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored.
- the computer program is executed by a processor, the steps of the proximity detection method in the first aspect are implemented.
- the terminal device may obtain the state information of the terminal device when it is determined according to the ultrasonic sensor of the terminal device that there is a first object in the first preset distance to block the terminal device, and the state information is used To determine whether the first screen is blocked by the first object is the first screen of the terminal device; when it is determined that the first screen is blocked by the first object, the first screen is controlled to switch from the on-screen state to the off-screen state.
- the terminal device when the terminal device determines that the first object is blocked by the ultrasonic sensor, it can determine whether the first object is blocking the first screen based on the state information of the terminal device; when it is determined that the first object is blocking the first screen In the case of, the terminal device can control the first screen to switch from the on-screen state to the off-screen state, so that when a foreign object obstructs the first screen of the terminal device in the on-screen state, accidental touches can be avoided, and this solution combines Ultrasonic detection and state detection of terminal equipment can accurately determine that the first screen of the terminal device in the bright screen state is blocked, which improves the accuracy of the ultrasonic detection solution for detecting that the screen of the terminal device is blocked.
- FIG. 1 is a schematic structural diagram of a possible Android operating system provided by an embodiment of the application
- FIG. 2 is one of the flowcharts of the proximity detection method provided by an embodiment of the application
- FIG. 3 is the second flowchart of the proximity detection method provided by an embodiment of the application.
- FIG. 4 is the third flow chart of the proximity detection method provided by an embodiment of the application.
- FIG. 5 is the fourth flow chart of the proximity detection method provided by an embodiment of the application.
- FIG. 6 is a schematic structural diagram of a terminal device provided by an embodiment of the application.
- FIG. 7 is a schematic diagram of hardware of a terminal device provided by an embodiment of the application.
- first”, “second”, “third”, and “fourth” in the specification and claims of this application are used to distinguish different objects, rather than describing a specific order of objects.
- first input, the second input, the third input, and the fourth input are used to distinguish different inputs, rather than to describe the specific order of the inputs.
- words such as “exemplary” or “for example” are used as examples, illustrations, or illustrations. Any embodiment or design solution described as “exemplary” or “for example” in the embodiments of the present application should not be construed as being more preferable or advantageous than other embodiments or design solutions. To be precise, words such as “exemplary” or “for example” are used to present related concepts in a specific manner.
- multiple refers to two or more than two, for example, multiple processing units refers to two or more processing units; multiple elements Refers to two or more elements, etc.
- a terminal device can obtain state information of the terminal device when it is determined according to the ultrasonic sensor of the terminal device that a first object within a first preset distance obstructs the terminal device.
- the status information is used to determine whether the first screen of the terminal device is blocked by the first object; when it is determined that the first screen is blocked by the first object, the first screen is controlled to switch from the on-screen state to the off-screen state.
- the terminal device when the terminal device determines that the first object is blocked by the ultrasonic sensor, it can determine whether the first object is blocking the first screen based on the state information of the terminal device; when it is determined that the first object is blocking the first screen In the case of, the terminal device can control the first screen to switch from the on-screen state to the off-screen state, so that when a foreign object obstructs the first screen of the terminal device in the on-screen state, accidental touches can be avoided, and this solution combines Ultrasonic detection and state detection of terminal equipment can accurately determine that the first screen of the terminal device in the bright screen state is blocked, which improves the accuracy of the ultrasonic detection solution for detecting that the screen of the terminal device is blocked.
- the following takes the Android operating system as an example to introduce the software environment to which the proximity detection method provided in the embodiments of the present application is applied.
- FIG. 1 it is a schematic structural diagram of a possible Android operating system provided by an embodiment of this application.
- the architecture of the Android operating system includes 4 layers, namely: application layer, application framework layer, system runtime library layer, and kernel layer (specifically, it may be the Linux kernel layer).
- the application layer includes various applications (including system applications and third-party applications) in the Android operating system.
- the application framework layer is the framework of the application. Developers can develop some applications based on the application framework layer while complying with the development principles of the application framework.
- the system runtime library layer includes a library (also called a system library) and an Android operating system runtime environment.
- the library mainly provides various resources needed by the Android operating system.
- the Android operating system operating environment is used to provide a software environment for the Android operating system.
- the kernel layer is the operating system layer of the Android operating system and belongs to the lowest level of the Android operating system software.
- the kernel layer is based on the Linux kernel to provide core system services and hardware-related drivers for the Android operating system.
- a developer can develop a software program that implements the proximity detection method provided by the embodiment of the application based on the system architecture of the Android operating system as shown in FIG.
- the detection method can be run based on the Android operating system as shown in FIG. 1. That is, the processor or the terminal device can implement the proximity detection method provided in the embodiment of the present application by running the software program in the Android operating system.
- the terminal device in the embodiment of the present application may be a mobile terminal device or a non-mobile terminal device.
- the mobile terminal device can be a mobile phone, tablet computer, notebook computer, handheld computer, car terminal, wearable device, ultra-mobile personal computer (UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc.
- the non-mobile terminal device may be a personal computer (PC), a television (television, TV), a teller machine, or a self-service machine, etc.; the embodiment of the application does not specifically limit it.
- the execution subject of the proximity detection method provided in the embodiments of the present application may be the aforementioned terminal device (including mobile terminal devices and non-mobile terminal devices), or may be a functional module and/or functional entity in the terminal device that can implement the method, The details can be determined according to actual use requirements, and the embodiments of the present application do not limit it.
- the following uses a terminal device as an example to illustrate the proximity detection method provided in the embodiment of the present application.
- the proximity detection method based on the ultrasonic detection scheme because the ultrasonic signal has no directionality, when other objects approach the terminal device from a surface other than the surface where the screen is located (side, top, or back of the screen, etc.), the terminal device will also The screen is mistakenly turned off due to detection of being blocked, which causes inconvenience to the user's operation.
- an embodiment of the present application provides a proximity detection method, which is applied to a terminal device, and the method may include the following steps 201 to 202.
- Step 201 The terminal device obtains state information of the terminal device when it is determined according to the ultrasonic sensor of the terminal device that a first object within a first preset distance covers the terminal device.
- the status information is used to determine whether the first screen of the terminal device is blocked by the first object.
- the first preset distance is a distance preset according to actual usage requirements, which is not limited in the embodiment of the present application.
- the terminal device may transmit an ultrasonic signal through an ultrasonic sensor, and receive the reflected ultrasonic signal through the ultrasonic sensor; if the signal strength of the reflected ultrasonic signal is greater than a preset threshold (the signal strength threshold set in advance according to actual usage requirements) , The embodiment of the present application is not limited), it is determined that there is a first object covering the terminal device within the first preset distance; otherwise, it is determined that no object is covering the terminal device.
- a preset threshold the signal strength threshold set in advance according to actual usage requirements
- the terminal device may send an ultrasonic signal through an ultrasonic sensor and obtain the transmission time; receive the ultrasonic signal and obtain the reception time; determine the distance of the measured object according to the difference between the reception time and the transmission time; when the measured object When the distance is less than the first preset distance, it is determined that there is a first object covering the terminal device within the first preset distance; otherwise, it is determined that no object is covering the terminal device.
- the terminal device determines that there is a first object in the first preset distance obstructing the terminal device according to the ultrasonic sensor.
- the detection method that the terminal device determines that there is a first object in the first preset distance obstructing the terminal device according to the ultrasonic sensor.
- the state information includes at least one of the following: gravitational acceleration information of the terminal device, and angular velocity information of the terminal device.
- the state information may be gravitational acceleration information of the terminal device, the state information may also be angular velocity information of the terminal device, the state information may also be gravitational acceleration information and angular velocity information of the terminal device, and the state information It may also include other feasibility information, which may be specifically determined according to actual use requirements, and is not limited in the embodiment of the present application.
- the terminal device may obtain the gravity acceleration information through a gravity acceleration sensor, and the terminal device may also obtain the gravity acceleration information through other sensors, which is not limited in the embodiment of the present application.
- the terminal device may obtain angular velocity information through a gyroscope sensor, and the terminal device may also obtain angular velocity information through other sensors, which is not limited in the embodiment of the present application.
- the terminal device determines that the first screen is blocked by the first object according to the state information
- the terminal device controls the first screen to switch from the on-screen state to the off-screen state.
- the terminal device determines that the first object is not blocking the first screen according to the state information, it is divided into the following two situations:
- the terminal device is a single-screen terminal device.
- the terminal device determines that the first screen is not blocked by the first object according to the state information, the terminal device keeps the first screen in a bright screen state.
- the terminal device is a multi-screen terminal device. If the terminal device determines that the first object is blocking the second screen according to the status information (the judgment method is similar to determining that the first object is blocking the first screen, and this embodiment does not Repeat), the terminal device controls the second screen to switch from the on-screen state to the off-screen state; if the terminal device determines that the first object does not cover any screen of the terminal device according to the state information, the terminal device controls the screen in the on-screen state Keep the screen on.
- Step 202 The terminal device controls the first screen to switch from the on-screen state to the off-screen state in the case where it is determined that the first screen is blocked by the first object.
- the terminal device controls the first screen to switch from the on-screen state to the off-screen state when it is determined that the first screen is blocked by the first object. Therefore, when an object obstructs the first screen that is in the bright screen state, accidental touches can be avoided.
- the embodiment of the present application provides a proximity detection method.
- the terminal device can obtain the state information of the terminal device when it is determined according to the ultrasonic sensor of the terminal device that a first object within a first preset distance obstructs the terminal device.
- the state information is used to determine whether the first screen of the terminal device is blocked by the first object; when it is determined that the first screen is blocked by the first object, the first screen is controlled to switch from the on-screen state to the off-screen state .
- the terminal device when the terminal device determines that the first object is blocked by the ultrasonic sensor, it can determine whether the first object is blocking the first screen based on the state information of the terminal device; when it is determined that the first object is blocking the first screen In the case of, the terminal device can control the first screen to switch from the on-screen state to the off-screen state, so that when a foreign object obstructs the first screen of the terminal device in the on-screen state, accidental touches can be avoided, and this solution combines Ultrasonic detection and state detection of terminal equipment can accurately determine that the first screen of the terminal device in the bright screen state is blocked, which improves the accuracy of the ultrasonic detection solution for detecting that the screen of the terminal device is blocked.
- the terminal device needs to determine whether the first screen is blocked by the first object according to the state information.
- the proximity detection method provided in the embodiment of the present application may further include the following steps 203 to 205.
- Step 203 The terminal device judges whether the status information meets the target condition.
- the target condition includes at least one of the following: the gravitational acceleration information is within a first range, and the angular velocity information is within a second range.
- the terminal device determines that a first object obstructs the terminal device within the first preset distance
- the gravitational acceleration information is within the first range
- the first range may be preset or acquired in real time, which is not limited in the embodiment of the present application.
- the gravitational acceleration information is within the first range, the state information meets the target condition.
- the terminal device determines that a first object obstructs the terminal device within the first preset distance
- if the angular velocity information is within the second range it can be determined that the first object obstructs the first screen.
- the second range may be preset or acquired in real time, which is not limited in the embodiment of the present application. In the embodiment of the present application, if the angular velocity information is within the second range, the state information meets the target condition.
- the terminal device determines that the terminal device is blocked by the first object within the first preset distance
- the gravitational acceleration information is within the first range and the angular velocity information is within the second range
- the first range and the second range may be preset or acquired in real time, which is not limited in the embodiment of the present application.
- the gravitational acceleration information is in the first range and the angular velocity information is in the second range, the state information meets the target condition.
- the terminal device can calculate the posture and gesture action of the terminal device according to the state information of the terminal device (such as the three-axis gravity acceleration data of the mobile phone collected by the acceleration sensor and the three-axis angular velocity data collected by the gyroscope).
- the state information of the terminal device such as the three-axis gravity acceleration data of the mobile phone collected by the acceleration sensor and the three-axis angular velocity data collected by the gyroscope.
- a gesture is defined And three gestures:
- the ultrasonic sensor determines that an object is blocking the terminal device, only when the terminal device is in the answering gesture or vertical posture, the first screen can be determined to be blocked.
- step 204 When the state change information meets the target condition, the following step 204 is executed; when the state change information does not meet the target condition, the following step 205 is executed.
- Step 204 The terminal device determines that the first screen is blocked by the first object.
- the terminal device determines that the first screen is blocked by the first object.
- Step 205 The terminal device determines that the first screen is not blocked by the first object.
- the terminal device determines that the first screen is not blocked by the first object.
- the terminal device needs to turn on the ultrasonic sensor first.
- the terminal device can quickly determine whether the first screen is blocked by the first object according to whether the state information meets the target condition.
- the proximity detection method provided in the embodiment of the present application may further include the following steps 206-207.
- Step 206 The terminal device determines whether the first screen is in a bright screen state, and whether the first screen displays a call interface.
- the method for the terminal device to determine whether the first screen is in the on-screen state and the method for determining whether the first screen displays the call interface can refer to any related technology, which is not limited in the embodiment of the present application.
- the ultrasonic sensor When the terminal device determines that the first screen is in a bright screen state and the call interface is displayed on the first screen, the ultrasonic sensor is turned on; otherwise, the ultrasonic sensor is not turned on.
- Step 207 The terminal device turns on the ultrasonic sensor when it is determined that the first screen is in the on-screen state and the call interface is displayed on the first screen.
- the terminal device when the terminal device is not in the on-screen state (that is, in the off-screen state), or in the on-screen state but the call interface is not displayed on the first screen, the terminal device can turn off the ultrasonic sensor, which can save energy.
- the first screen when the first screen is in the on-screen state, it can avoid affecting the display of other content on the terminal device.
- the terminal device turns on the infrared sensor when it is determined that the first screen is in the off-screen state and the first screen is not in the call state.
- the proximity detection method provided in the embodiment of the present application may further include the following steps 208 to step 209.
- Step 208 The terminal device turns on the infrared sensor when it is determined that the first screen is in the off-screen state and the first screen is not in the call state.
- Step 209 The terminal device performs at least one of the following when it is determined according to the infrared sensor that there is an object in the second preset distance blocking the first screen: controlling the first screen to remain in the off-screen state, and prohibiting the first screen When the screen is off, the preset area is illuminated, and the preset area is used to display prompt information.
- the second preset distance is a distance preset according to actual usage requirements, which is not limited in the embodiment of the present application.
- the second preset distance and the first preset distance may be the same or different, which is not limited in the embodiment of the present application.
- the method for the terminal device to determine according to the infrared sensor that there is a second object blocking the first screen within the second preset distance may refer to any related technology, which is not limited in the embodiment of the present application.
- the prompt information can be clock information, power information, weather information, fingerprint prompt icons (used to prompt the user's fingerprint collection area), prompt information of short messages of instant social applications, etc., which can be specifically determined according to actual usage requirements. This embodiment of the application Not limited.
- the terminal device controls the first screen to remain in the off-screen state when it is determined according to the infrared sensor that there is a second object within the second preset distance to block the first screen, which can prevent objects from blocking the first screen.
- the screen When the screen is turned on, the screen does not turn on when a call comes in or the terminal device lights up the screen due to a user's false trigger, thereby reducing power consumption.
- the terminal device determines according to the infrared sensor that there is a second object blocking the first screen within the second preset distance, prohibit the first screen from lighting up the preset area in the off-screen state, and the preset area is used to display prompt information .
- the display of prompt information in the off-screen state is prohibited (including the situation that the preset area in the current off-screen state is lit and the prompt information is displayed Cancel the display of the prompt information and extinguish the preset area), which can save power.
- the approach of detecting the proximity of the screen with the infrared sensor in the off-screen state can improve the accuracy of the occlusion detection without damaging the life of the screen.
- the terminal device may also turn on the ultrasonic sensor when it is determined that the first screen is in the off-screen state; and when it is determined according to the ultrasonic sensor that an object within the first preset distance is blocking the first screen Execute at least one of the following: control the first screen to remain in the off-screen state, and prohibit the first screen from illuminating a preset area in the off-screen state, and the preset area is used to display prompt information.
- the proximity detection method provided by the embodiment of the present application may further include the above-mentioned step 203 or step 204.
- an embodiment of the present application provides a terminal device 120.
- the terminal device 120 includes: an acquisition module 121 and a control module 122; the acquisition module 121 is configured to determine the first preset according to the ultrasonic sensor of the terminal device. If the terminal device is blocked by a first object within a distance, the state information of the terminal device is acquired, and the state information is used to determine whether the first screen of the terminal device is blocked by the first object; the control module 122, It is used for controlling the first screen to switch from the on-screen state to the off-screen state in a case where it is determined that the first screen is blocked by the first object.
- the state information includes at least one of the following: gravitational acceleration information of the terminal device, and angular velocity information of the terminal device.
- the terminal device 120 further includes: a determining module 123; the determining module 123 is configured to determine the first state information when the state information meets the target condition after the obtaining module 121 obtains the state information of the terminal device The first screen is blocked by an object; in the case that the state information does not meet the target condition, it is determined that the first screen is not blocked by the first object; wherein, the target condition includes at least one of the following: the gravitational acceleration The information is in the first range, and the angular velocity information is in the second range.
- the terminal device 120 further includes: an opening module 124; the opening module 124 is configured to determine that the terminal device is blocked by a first object within a first preset distance according to the ultrasonic sensor of the terminal device When the first screen is in the on-screen state and the call interface is displayed on the first screen, the ultrasonic sensor is turned on.
- the terminal device 120 further includes: an opening module 124; the opening module 124 is configured to turn on the infrared sensor when it is determined that the first screen is in an off-screen state and the first screen is not in a call state;
- the control module 122 is further configured to perform at least one of the following when it is determined according to the infrared sensor that an object within a second preset distance blocks the first screen: controlling the first screen to keep the screen off, and controlling the The first screen cancels the prompt message in the off-screen state.
- the modules that must be included in the terminal device 120 are indicated by solid lines, such as the acquisition module 121 and the control module 122; the modules that may or may not be included in the terminal device 120 are indicated by dashed boxes. , Such as the determining module 123 and the opening module 124.
- the terminal device provided in the embodiment of the present application can implement each process shown in any one of FIG. 2 to FIG. 5 in the foregoing method embodiment. To avoid repetition, details are not described herein again.
- the embodiment of the present application provides a terminal device.
- the terminal device can obtain the state information of the terminal device when it is determined according to the ultrasonic sensor of the terminal device that a first object within a first preset distance obstructs the terminal device,
- the status information is used to determine whether the first screen of the terminal device is blocked by the first object; when it is determined that the first screen is blocked by the first object, the first screen is controlled to switch from the on-screen state to the off-screen state.
- the terminal device when the terminal device determines that the first object is blocked by the ultrasonic sensor, it can determine whether the first object is blocking the first screen based on the state information of the terminal device; when it is determined that the first object is blocking the first screen In the case of, the terminal device can control the first screen to switch from the on-screen state to the off-screen state, so that when a foreign object obstructs the first screen of the terminal device in the on-screen state, accidental touches can be avoided, and this solution combines Ultrasonic detection and state detection of terminal equipment can accurately determine that the first screen of the terminal device in the bright screen state is blocked, which improves the accuracy of the ultrasonic detection solution for detecting that the screen of the terminal device is blocked.
- FIG. 7 is a schematic diagram of the hardware structure of a terminal device that implements each embodiment of the present application.
- the terminal device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, and a memory 109 , Processor 110, and power supply 111 and other components.
- the structure of the terminal device shown in FIG. 7 does not constitute a limitation on the terminal device, and the terminal device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout.
- terminal devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminal devices, wearable devices, and pedometers.
- the processor 110 is configured to obtain state information of the terminal device when it is determined according to the ultrasonic sensor of the terminal device that a first object within a first preset distance covers the terminal device, and the state information is used to determine whether The first screen that is blocked by the first object is the first screen of the terminal device; if it is determined that the first screen is blocked by the first object, the first screen is controlled to switch from the on-screen state to the off-screen state.
- the terminal device can obtain the state information of the terminal device when it is determined according to the ultrasonic sensor of the terminal device that a first object within a first preset distance covers the terminal device.
- the information is used to determine whether the first screen of the terminal device is blocked by the first object; when it is determined that the first screen is blocked by the first object, the first screen is controlled to switch from the on-screen state to the off-screen state.
- the terminal device when the terminal device determines that the first object is blocked by the ultrasonic sensor, it can determine whether the first object is blocking the first screen based on the state information of the terminal device; when it is determined that the first object is blocking the first screen
- the terminal device can control the first screen to switch from the on-screen state to the off-screen state, so that when a foreign object obstructs the first screen of the terminal device in the on-screen state, the occurrence of accidental touches can be avoided, and the solution combines Ultrasonic detection and state detection of terminal equipment can accurately determine that the first screen of the terminal device in the bright screen state is blocked, which improves the accuracy of the ultrasonic detection solution for detecting that the screen of the terminal device is blocked.
- the radio frequency unit 101 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 110; in addition, Uplink data is sent to the base station.
- the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
- the radio frequency unit 101 can also communicate with the network and other devices through a wireless communication system.
- the terminal device provides users with wireless broadband Internet access through the network module 102, such as helping users to send and receive emails, browse web pages, and access streaming media.
- the audio output unit 103 can convert the audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output it as sound. Moreover, the audio output unit 103 may also provide audio output related to a specific function performed by the terminal device 100 (for example, call signal reception sound, message reception sound, etc.).
- the audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
- the input unit 104 is used to receive audio or video signals.
- the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode.
- the data is processed.
- the processed image frame can be displayed on the display unit 106.
- the image frame processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the network module 102.
- the microphone 1042 can receive sound, and can process such sound into audio data.
- the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 101 for output in the case of a telephone call mode.
- the terminal device 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors.
- the light sensor includes an ambient light sensor and a proximity sensor.
- the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light.
- the proximity sensor can close the display panel 1061 and the display panel 1061 when the terminal device 100 is moved to the ear. / Or backlight.
- the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the terminal device (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
- the display unit 106 is used to display information input by the user or information provided to the user.
- the display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
- LCD liquid crystal display
- OLED organic light-emitting diode
- the user input unit 107 can be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the terminal device.
- the user input unit 107 includes a touch panel 1071 and other input devices 1072.
- the touch panel 1071 also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 1071 or near the touch panel 1071. operating).
- the touch panel 1071 may include two parts: a touch detection device and a touch controller.
- the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 110, the command sent by the processor 110 is received and executed.
- the touch panel 1071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
- the user input unit 107 may also include other input devices 1072.
- other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
- the touch panel 1071 can be overlaid on the display panel 1061.
- the touch panel 1071 detects a touch operation on or near it, it transmits it to the processor 110 to determine the type of the touch event, and then the processor 110 determines the type of the touch event according to the touch.
- the type of event provides corresponding visual output on the display panel 1061.
- the touch panel 1071 and the display panel 1061 are used as two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated
- the implementation of the input and output functions of the terminal device is not specifically limited here.
- the interface unit 108 is an interface for connecting an external device with the terminal device 100.
- the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
- the interface unit 108 can be used to receive input from an external device (for example, data information, power, etc.) and transmit the received input to one or more elements in the terminal device 100 or can be used to connect to the terminal device 100 and external devices. Transfer data between devices.
- the memory 109 can be used to store software programs and various data.
- the memory 109 may mainly include a program storage area and a data storage area.
- the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
- the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
- the processor 110 is the control center of the terminal device. It uses various interfaces and lines to connect the various parts of the entire terminal device, runs or executes software programs and/or modules stored in the memory 109, and calls data stored in the memory 109. , Perform various functions of the terminal equipment and process data, so as to monitor the terminal equipment as a whole.
- the processor 110 may include one or more processing units; optionally, the processor 110 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, etc.
- the adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110.
- the terminal device 100 may also include a power source 111 (such as a battery) for supplying power to various components.
- a power source 111 such as a battery
- the power source 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
- the terminal device 100 includes some functional modules not shown, which will not be repeated here.
- an embodiment of the present application further provides a terminal device, which may include the aforementioned processor 110 shown in FIG. 7, a memory 109, and a computer program stored in the memory 109 and running on the processor 110,
- a terminal device which may include the aforementioned processor 110 shown in FIG. 7, a memory 109, and a computer program stored in the memory 109 and running on the processor 110,
- the computer program is executed by the processor 110, each process of the proximity detection method shown in any one of FIG. 2 to FIG. 5 in the above method embodiment is realized, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here. .
- the embodiment of the present application also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
- a computer program is stored on the computer-readable storage medium.
- the computer program When the computer program is executed by a processor, the computer program shown in any one of FIGS. 2 to 5 in the above method embodiment is implemented.
- the computer-readable storage medium such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk, or optical disk, etc.
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Telephone Function (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
Claims (12)
- 一种接近检测方法,应用于终端设备,所述方法包括:A proximity detection method, applied to a terminal device, and the method includes:在根据所述终端设备的超声传感器确定第一预设距离内有第一物体遮挡所述终端设备的情况下,获取所述终端设备的状态信息,所述状态信息用于确定是否所述第一物体遮挡的为所述终端设备的第一屏;In the case that it is determined according to the ultrasonic sensor of the terminal device that there is a first object covering the terminal device within the first preset distance, the state information of the terminal device is acquired, and the state information is used to determine whether the first What is blocked by an object is the first screen of the terminal device;在确定所述第一物体遮挡的为所述第一屏的情况下,控制所述第一屏由亮屏状态切换为灭屏状态。In a case where it is determined that the first screen is blocked by the first object, the first screen is controlled to switch from the on-screen state to the off-screen state.
- 根据权利要求1所述的方法,其中,所述状态信息包括下述至少一项:The method according to claim 1, wherein the status information includes at least one of the following:所述终端设备的重力加速度信息,所述终端设备的角速度信息。The gravitational acceleration information of the terminal device, and the angular velocity information of the terminal device.
- 根据权利要求2所述的方法,其中,所述获取所述终端设备的状态信息之后,还包括:The method according to claim 2, wherein after said acquiring the state information of the terminal device, the method further comprises:在所述状态信息满足目标条件的情况下,确定所述第一物体遮挡的为所述第一屏;In a case where the state information meets the target condition, it is determined that the first screen is occluded by the first object;其中,所述目标条件包括以下至少一项:所述重力加速度信息在第一范围内,所述角速度信息在第二范围内。Wherein, the target condition includes at least one of the following: the gravitational acceleration information is within a first range, and the angular velocity information is within a second range.
- 根据权利要求1至3中任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 1 to 3, wherein the method further comprises:所述根据所述终端设备的超声传感器确定第一预设距离内有第一物体遮挡所述终端设备之前,还包括:Before the determining according to the ultrasonic sensor of the terminal device that a first object within the first preset distance blocks the terminal device, the method further includes:在确定所述第一屏处于亮屏状态,且所述第一屏显示通话界面的情况下,开启所述超声传感器。When it is determined that the first screen is in the on-screen state and the call interface is displayed on the first screen, the ultrasonic sensor is turned on.
- 根据权利要求1至3中任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 1 to 3, wherein the method further comprises:在确定所述第一屏处于灭屏状态,且所述第一屏未处于通话状态的情况下,开启红外传感器;When it is determined that the first screen is in the off-screen state and the first screen is not in the call state, turn on the infrared sensor;在根据所述红外传感器确定第二预设距离内有物体遮挡所述第一屏的情况下,执行下述至少一项:控制所述第一屏保持灭屏状态,禁止所述第一屏在灭屏状态下点亮预设区域,所述预设区域用于显示提示信息。In the case where it is determined according to the infrared sensor that an object within the second preset distance blocks the first screen, at least one of the following is executed: control the first screen to remain in the off-screen state, and prohibit the first screen from being When the screen is off, the preset area is illuminated, and the preset area is used to display prompt information.
- 一种终端设备,所述终端设备包括:获取模块和控制模块;A terminal device, the terminal device includes: an acquisition module and a control module;所述获取模块,用于在根据所述终端设备的超声传感器确定第一预设距离内有第 一物体遮挡所述终端设备的情况下,获取所述终端设备的状态信息,所述状态信息用于确定是否所述第一物体遮挡的为所述终端设备的第一屏;The acquiring module is configured to acquire state information of the terminal device when it is determined according to the ultrasonic sensor of the terminal device that a first object within a first preset distance blocks the terminal device, and the state information is used To determine whether the first screen of the terminal device is blocked by the first object;所述控制模块,用于在确定所述第一物体遮挡的为所述第一屏的情况下,控制所述第一屏由亮屏状态切换为灭屏状态。The control module is configured to control the first screen to switch from the on-screen state to the off-screen state when it is determined that the first screen is blocked by the first object.
- 根据权利要求6所述的终端设备,其中,所述状态信息包括下述至少一项:The terminal device according to claim 6, wherein the status information includes at least one of the following:所述终端设备的重力加速度信息,所述终端设备的角速度信息。The gravitational acceleration information of the terminal device, and the angular velocity information of the terminal device.
- 根据权利要求7所述的终端设备,其中,所述终端设备还包括:确定模块;The terminal device according to claim 7, wherein the terminal device further comprises: a determining module;所述确定模块,用于在所述获取模块获取所述终端设备的状态信息之后,在所述状态信息满足目标条件的情况下,确定所述第一物体遮挡的为所述第一屏;The determining module is configured to, after the acquiring module acquires the state information of the terminal device, in a case where the state information meets a target condition, determine that the first screen is blocked by the first object;其中,所述目标条件包括以下至少一项:所述重力加速度信息在第一范围内,所述角速度信息在第二范围内。Wherein, the target condition includes at least one of the following: the gravitational acceleration information is within a first range, and the angular velocity information is within a second range.
- 根据权利要求6至8中任一项所述的终端设备,其中,所述终端设备还包括:开启模块;The terminal device according to any one of claims 6 to 8, wherein the terminal device further comprises: an opening module;所述开启模块,用于在所述根据所述终端设备的超声传感器确定第一预设距离内有第一物体遮挡所述终端设备之前,在确定所述第一屏处于亮屏状态,且所述第一屏显示通话界面的情况下,开启所述超声传感器。The opening module is configured to determine that the first screen is in a bright screen state before the terminal device is determined to be covered by a first object within a first preset distance according to the ultrasonic sensor of the terminal device. When the call interface is displayed on the first screen, the ultrasonic sensor is turned on.
- 根据权利要求6至8中任一项所述的终端设备,其中,所述终端设备还包括:开启模块;The terminal device according to any one of claims 6 to 8, wherein the terminal device further comprises: an opening module;所述开启模块,用于在确定所述第一屏处于灭屏状态,且所述第一屏未处于通话状态的情况下,开启红外传感器;The turning on module is configured to turn on the infrared sensor when it is determined that the first screen is in the off-screen state and the first screen is not in the call state;所述控制模块,还用于在根据所述红外传感器确定第二预设距离内有物体遮挡所述第一屏的情况下,执行下述至少一项:控制所述第一屏保持灭屏状态,禁止所述第一屏在灭屏状态下点亮预设区域,所述预设区域用于显示提示信息。The control module is further configured to perform at least one of the following when it is determined according to the infrared sensor that there is an object within a second preset distance blocking the first screen: controlling the first screen to remain in the off-screen state , Prohibiting the first screen from illuminating a preset area in the off-screen state, and the preset area is used to display prompt information.
- 一种终端设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至5中任一项所述的接近检测方法的步骤。A terminal device comprising a processor, a memory, and a computer program stored on the memory and capable of running on the processor. The computer program is executed by the processor to implement any of claims 1 to 5 One of the steps of the proximity detection method.
- 一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所 述计算机程序被处理器执行时实现如权利要求1至5中任一项所述的接近检测方法的步骤。A computer-readable storage medium storing a computer program on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the proximity detection method according to any one of claims 1 to 5 are realized.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910907360.2A CN110753155A (en) | 2019-09-24 | 2019-09-24 | Proximity detection method and terminal equipment |
CN201910907360.2 | 2019-09-24 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021057712A1 true WO2021057712A1 (en) | 2021-04-01 |
Family
ID=69276946
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/116783 WO2021057712A1 (en) | 2019-09-24 | 2020-09-22 | Proximity detection method and terminal device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110753155A (en) |
WO (1) | WO2021057712A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115079804A (en) * | 2021-12-09 | 2022-09-20 | 荣耀终端有限公司 | Control processing method of electronic equipment |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110753155A (en) * | 2019-09-24 | 2020-02-04 | 维沃移动通信有限公司 | Proximity detection method and terminal equipment |
CN113596248B (en) * | 2020-04-30 | 2022-11-11 | 华为技术有限公司 | Display screen control method and device |
CN111638522B (en) * | 2020-04-30 | 2022-11-18 | 维沃移动通信有限公司 | Proximity detection method and electronic device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102520852A (en) * | 2011-11-29 | 2012-06-27 | 华为终端有限公司 | Control method of mobile equipment screen status and associated mobile equipment |
WO2014208667A1 (en) * | 2013-06-26 | 2014-12-31 | 京セラ株式会社 | Portable terminal device |
CN107896272A (en) * | 2017-08-11 | 2018-04-10 | 广东欧珀移动通信有限公司 | A kind of call control method and device |
CN108965583A (en) * | 2018-06-15 | 2018-12-07 | Oppo广东移动通信有限公司 | Proximity test method and relevant device |
CN108966323A (en) * | 2017-05-17 | 2018-12-07 | 上海中兴软件有限责任公司 | A kind of bright screen control method and device, terminal |
CN110753155A (en) * | 2019-09-24 | 2020-02-04 | 维沃移动通信有限公司 | Proximity detection method and terminal equipment |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106413060B (en) * | 2016-10-24 | 2019-11-08 | 北京小米移动软件有限公司 | Screen state control method and device |
CN108391001A (en) * | 2018-02-05 | 2018-08-10 | 广东欧珀移动通信有限公司 | The screen control method and device of terminal, readable storage medium storing program for executing, terminal |
-
2019
- 2019-09-24 CN CN201910907360.2A patent/CN110753155A/en active Pending
-
2020
- 2020-09-22 WO PCT/CN2020/116783 patent/WO2021057712A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102520852A (en) * | 2011-11-29 | 2012-06-27 | 华为终端有限公司 | Control method of mobile equipment screen status and associated mobile equipment |
WO2014208667A1 (en) * | 2013-06-26 | 2014-12-31 | 京セラ株式会社 | Portable terminal device |
CN108966323A (en) * | 2017-05-17 | 2018-12-07 | 上海中兴软件有限责任公司 | A kind of bright screen control method and device, terminal |
CN107896272A (en) * | 2017-08-11 | 2018-04-10 | 广东欧珀移动通信有限公司 | A kind of call control method and device |
CN108965583A (en) * | 2018-06-15 | 2018-12-07 | Oppo广东移动通信有限公司 | Proximity test method and relevant device |
CN110753155A (en) * | 2019-09-24 | 2020-02-04 | 维沃移动通信有限公司 | Proximity detection method and terminal equipment |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115079804A (en) * | 2021-12-09 | 2022-09-20 | 荣耀终端有限公司 | Control processing method of electronic equipment |
CN115079804B (en) * | 2021-12-09 | 2023-11-07 | 荣耀终端有限公司 | Control processing method of electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN110753155A (en) | 2020-02-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021083052A1 (en) | Object sharing method and electronic device | |
WO2021057712A1 (en) | Proximity detection method and terminal device | |
WO2021098697A1 (en) | Screen display control method and electronic device | |
WO2021057267A1 (en) | Image processing method and terminal device | |
US11604567B2 (en) | Information processing method and terminal | |
WO2019080775A1 (en) | Notification message prompting method and mobile terminal | |
WO2021121265A1 (en) | Camera starting method and electronic device | |
WO2020211612A1 (en) | Information display method and terminal device | |
WO2020215950A1 (en) | Interface display method and terminal device | |
WO2021218748A1 (en) | Screen mirroring method and electronic device | |
WO2019228296A1 (en) | Display processing method and terminal device | |
WO2020192282A1 (en) | Notification message display method and terminal device | |
WO2021057290A1 (en) | Information control method and electronic device | |
WO2020181954A1 (en) | Application program control method and terminal device | |
WO2021004306A1 (en) | Operation control method and terminal | |
WO2021129537A1 (en) | Method for controlling electronic device and electronic device | |
US11930297B2 (en) | Video call method and terminal device | |
WO2021164716A1 (en) | Display method and electronic device | |
WO2020192297A1 (en) | Screen interface switching method and terminal device | |
WO2021031717A1 (en) | Screen capturing method and terminal device | |
WO2021164739A1 (en) | Control method for electronic device and electronic device | |
CN110830713A (en) | Zooming method and electronic equipment | |
WO2020238372A1 (en) | Method for displaying unread message, and terminal device | |
WO2020151490A1 (en) | Application control method and terminal device | |
CN110058686B (en) | Control method and terminal equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20869166 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20869166 Country of ref document: EP Kind code of ref document: A1 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20869166 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 13.10.2022) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20869166 Country of ref document: EP Kind code of ref document: A1 |