CN108810282B - Approach detection method and terminal - Google Patents

Approach detection method and terminal Download PDF

Info

Publication number
CN108810282B
CN108810282B CN201810671098.1A CN201810671098A CN108810282B CN 108810282 B CN108810282 B CN 108810282B CN 201810671098 A CN201810671098 A CN 201810671098A CN 108810282 B CN108810282 B CN 108810282B
Authority
CN
China
Prior art keywords
screen
standing
terminal
wave ratio
intensity
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
CN201810671098.1A
Other languages
Chinese (zh)
Other versions
CN108810282A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810671098.1A priority Critical patent/CN108810282B/en
Publication of CN108810282A publication Critical patent/CN108810282A/en
Application granted granted Critical
Publication of CN108810282B publication Critical patent/CN108810282B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/16Details of telephonic subscriber devices including more than one display unit

Abstract

The embodiment of the invention discloses a proximity detection method and a terminal, which are applied to the technical field of communication and can solve the problems of increasing the cost and the design complexity of a double-sided screen terminal in the prior art. The method is applied to a terminal comprising a first screen, a second screen, a standing-wave ratio detection module and an infrared detection module arranged aiming at the first screen, and comprises the following steps: acquiring first intensity of an infrared signal detected by an infrared detection module; if the difference value between the first intensity and the preset intensity is smaller than or equal to a first threshold value and the difference value between the current first standing-wave ratio and the second standing-wave ratio of the terminal antenna, detected by the standing-wave ratio detection module, is within a second preset range, determining that an object is close to a second screen; the preset intensity is the intensity of the infrared signal detected by the infrared detection module under the condition that no object is close to the first screen; the second standing wave ratio is a standing wave ratio of the antenna without an object being close to the first screen and the second screen. The method is applied to a scene of proximity detection.

Description

Approach detection method and terminal
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a proximity detection method and a terminal.
Background
With the popularization of terminal technology, the application of terminals is more and more extensive.
At present, when designing a terminal, in order to achieve the purpose of saving power, after a user makes a call, the terminal switches a screen to a screen-off state under the condition that the user brings the screen of the terminal close to a human body. This scheme generally uses the infrared detection module on the terminal screen to realize, infrared detection module mainly utilizes human body reflection infrared signal to realize being close to the detection, infrared detection module includes transmitting tube and receiver tube, transmitting tube and receiver tube can set up respectively in two relative edges on the screen of terminal, the transmitting tube is used for transmitting infrared signal, the receiver tube is used for receiving infrared signal, after the call is put through, this detection module begins work, the transmitting tube constantly transmits infrared signal, when human body (for example people's ear) are close to the screen of terminal, because people's ear can reflect partly infrared signal, consequently at this moment the infrared signal intensity that the receiver tube received can diminish, can confirm from this that the terminal has been close to people's ear, then switch the screen of terminal to the screen state of breathing out.
In the double-sided screen terminal, if the infrared detection module is used for realizing the approach detection, the infrared detection module is required to be arranged on the screens of the front side and the back side, so that the cost and the design complexity of the double-sided screen terminal can be increased.
Disclosure of Invention
The embodiment of the invention provides a proximity detection method and a terminal, which are used for solving the problem that the cost of a double-sided screen terminal is increased in the prior art.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, a proximity detection method is provided, which is applied to a terminal, where the terminal includes a first screen, a second screen, a standing-wave ratio detection module, and an infrared detection module arranged for the first screen, and the method includes: acquiring first intensity of an infrared signal detected by an infrared detection module; if the difference value between the first intensity and the preset intensity is smaller than or equal to a first threshold value, and the difference value between the current first standing-wave ratio and the second standing-wave ratio of the terminal antenna, detected by the standing-wave ratio detection module, is within a second preset range, determining that an object is close to the second screen; the preset intensity is the intensity of the infrared signal detected by the infrared detection module under the condition that no object is close to the first screen; the second standing wave ratio is a standing wave ratio of the antenna without an object being close to the first screen and the second screen.
In a second aspect, a terminal is provided, where the terminal includes a first screen, a second screen, a standing-wave ratio detection module, and an infrared detection module set for the first screen, and the terminal includes: the device comprises an acquisition module and a switching module;
the acquisition module is used for acquiring first intensity of the infrared signal detected by the infrared detection module; the switching module is used for determining that an object is close to the second screen if the difference value between the first intensity and the preset intensity acquired by the acquisition module is smaller than or equal to a first threshold value and the difference value between the current first standing-wave ratio and the second standing-wave ratio of the terminal antenna detected by the standing-wave ratio detection module is larger than or equal to a second threshold value; the preset intensity is the intensity of the infrared signal detected by the infrared detection module under the condition that no object is close to the first screen; the second standing-wave ratio is the standing-wave ratio of the terminal antenna detected by the standing-wave ratio detection module under the condition that no object is close to the first screen and the second screen.
In a third aspect, a terminal is provided, the terminal comprising a processor, a memory and a computer program stored on the memory and operable on the processor, the computer program, when executed by the processor, implementing the steps of the proximity detection method according to the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the approach detection method according to the first aspect.
In an embodiment of the present invention, a proximity detection method is applied to a terminal, where the terminal includes a first screen, a second screen, a standing-wave ratio detection module, and an infrared detection module arranged for the first screen, and the method includes: acquiring first intensity of an infrared signal detected by an infrared detection module; if the difference value between the first intensity and the preset intensity is smaller than or equal to a first threshold value, and the difference value between the current first standing-wave ratio and the second standing-wave ratio of the terminal antenna, detected by the standing-wave ratio detection module, is within a second preset range, determining that an object is close to the second screen; the preset intensity is the intensity of the infrared signal detected by the infrared detection module under the condition that no object is close to the first screen; the second standing wave ratio is a standing wave ratio of the antenna without an object being close to the first screen and the second screen. Through the scheme, under the condition that the second screen is not provided with the infrared detection module, the difference value between the first strength and the preset strength can be smaller than or equal to the first threshold value, and the difference value between the current first standing-wave ratio and the second standing-wave ratio of the terminal antenna is larger than or equal to the second threshold value, it can be determined that an object is close to the second screen, the second screen can be switched to the screen-saving state at the moment, so that the infrared detection modules are not required to be arranged on the two screens in the double-sided screen terminal, and the approach detection can be realized, so that the cost and the design complexity of the double-sided screen terminal can be reduced.
Drawings
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention;
fig. 2 is a first schematic view illustrating a proximity detection method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an infrared detection module according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a circuit for detecting a standing-wave ratio of an antenna according to an embodiment of the present invention;
FIG. 5 is a first schematic diagram illustrating a standing-wave ratio according to an embodiment of the present invention;
fig. 6 is a second schematic diagram of a standing-wave ratio provided in the embodiment of the present invention;
fig. 7 is a schematic diagram illustrating a second approach detection method according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a third approach detection method according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 10 is a hardware schematic diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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" and "second," and the like, in the description and in the claims of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first screen, the second screen, etc. are for distinguishing different screens, not for describing a particular order of screens.
It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
The terminal in the embodiment of the present invention may be a terminal having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
Next, a software environment applied to the approach detection method provided by the embodiment of the present invention is described by taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the proximity detection method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the proximity detection method may operate based on the android operating system shown in fig. 1. That is, the processor or the terminal may implement the proximity detection method provided by the embodiment of the present invention by running the software program in the android operating system.
The embodiment of the invention provides a proximity detection method and a terminal, wherein the terminal comprises a first screen, a second screen, a standing-wave ratio detection module and an infrared detection module arranged aiming at the first screen, and the method comprises the following steps: acquiring first intensity of an infrared signal detected by an infrared detection module; if the difference value between the first intensity and the preset intensity is smaller than or equal to a first threshold value, and the difference value between the current first standing-wave ratio and the second standing-wave ratio of the terminal antenna, detected by the standing-wave ratio detection module, is within a second preset range, determining that an object is close to the second screen; the preset intensity is the intensity of the infrared signal detected by the infrared detection module under the condition that no object is close to the first screen; the second standing wave ratio is a standing wave ratio of the antenna without an object being close to the first screen and the second screen. Through the scheme, under the condition that the second screen is not provided with the infrared detection module, the difference value between the first strength and the preset strength can be smaller than or equal to the first threshold value, and the difference value between the current first standing-wave ratio and the second standing-wave ratio of the terminal antenna is larger than or equal to the second threshold value, it can be determined that an object is close to the second screen, the second screen can be switched to the screen-saving state at the moment, so that the infrared detection modules are not required to be arranged on the two screens in the double-sided screen terminal, and the approach detection can be realized, so that the cost and the design complexity of the double-sided screen terminal can be reduced.
The terminal in the embodiment of the invention can be a mobile terminal or a non-mobile terminal. The mobile terminal may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a Personal Digital Assistant (PDA), etc.; the non-mobile terminal may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, or the like; the embodiments of the present invention are not particularly limited.
The execution subject of the approach detection method provided in the embodiment of the present invention may be the terminal (including a mobile terminal and a non-mobile terminal), or may also be a functional module and/or a functional entity capable of implementing the approach detection method in the terminal, which may be specifically determined according to actual use requirements, and the embodiment of the present invention is not limited. The following takes a terminal as an example to exemplarily explain the approach detection method provided by the embodiment of the present invention.
As shown in fig. 2, the approach detection method provided by the embodiment of the invention includes the following steps S11-S12.
S11, the terminal acquires the first intensity of the infrared signal detected by the infrared detection module.
The terminal in the embodiment of the invention is a double-sided screen terminal, and comprises a first screen, a second screen, a standing-wave ratio detection module and an infrared detection module which is arranged aiming at the first screen.
Optionally, the first screen and the second screen are respectively located on two faces of the terminal.
Optionally, in the embodiment of the present invention, the step S11 may be executed when the terminal establishes a call connection.
And S12, if the difference between the first intensity and the preset intensity is smaller than or equal to a first threshold value, and the difference between the current first standing-wave ratio and the second standing-wave ratio of the terminal antenna detected by the standing-wave ratio detection module is larger than or equal to a second threshold value, determining that an object is close to the second screen by the terminal.
Generally, the infrared detection module includes a transmitting tube and a receiving tube, the transmitting tube and the receiving tube can be respectively disposed on two opposite edges of a screen of the terminal, the transmitting tube is used for transmitting infrared signals, the receiving tube is used for receiving infrared signals, after a call is made (i.e., a call connection is established), the detection module starts to work, the transmitting tube continuously transmits infrared signals, and the corresponding receiving tube receives infrared signals.
In the embodiment of the invention, the intensity of the infrared signal detected by the infrared detection module is the intensity of the infrared signal received by the receiving tube.
Illustratively, as shown in fig. 3, the diagram is a schematic diagram of an infrared detection module, in fig. 3, 110 is a transmitting tube, 111 is a receiving tube, and 112 is a control module, which is configured to control the transmitting tube to transmit an infrared signal and control the receiving tube to receive the infrared signal.
The preset intensity may be the intensity of the infrared signal detected by the infrared detection module when no object is close to the first screen. In this case, the infrared signal emitted from the emitting tube of the infrared detection module is directly received by the receiving tube without being reflected.
If the difference between the first intensity and the preset intensity is smaller than or equal to the first threshold, it indicates that the infrared signal emitted by the emission tube may not be reflected, and at this time, it may be considered that no object is close to the first screen.
Alternatively, the antenna in the embodiment of the present invention may be an antenna located at an upper half portion of the terminal. Since the lower half of the terminal is shielded when the user holds the terminal, the antenna may be provided in a portion that is not shielded when the user holds the terminal, in order to eliminate the influence of the user holding the terminal on the standing-wave ratio of the antenna.
In general, the standing wave ratio of an antenna is a basic measure for the passive efficiency of the antenna. Wherein the second standing wave ratio is a standing wave ratio of the antenna under the condition that no object is close to the first screen and the second screen.
Illustratively, the first standing wave ratio can be measured by a circuit for detecting the standing wave ratio of the antenna shown in fig. 4 below in the terminal, wherein the standing wave ratio detection module 210 can transmit a high frequency signal, the bidirectional coupler 211 is used to transmit the high frequency signal to the antenna 212, assuming that the transmitted high frequency signal is d1 and the power is P1, d1 will be reflected if there is a path mismatch, the antenna is the main reflection source, if the power of the signal reflected by the antenna d1 is P2, the reflection coefficient f can be calculated as P2/P1, and the standing wave ratio of the antenna can be obtained by the reflection coefficient f and the following formula 1 (the standing wave ratio is identified as SWR in the following formula 1).
SWR ═ (1+)/(1-) (equation 1)
For the useful frequency band (i.e. the frequency band occupied by the terminal when establishing a call connection), generally, the smaller the standing-wave ratio of the antenna is, the higher the radiation efficiency of the antenna is. Illustratively, fig. 5 is a schematic representation of the standing wave ratio of the antenna without an object in proximity to the first screen and the second screen, when the standing wave ratio is identified as SWR2, fig. 6 is a schematic representation of the standing wave ratio of the antenna with an object in proximity to the first screen or the second screen, when the standing wave ratio is identified as SWR1, with frequency on the abscissa and standing wave ratio on the ordinate in fig. 5 and 6. For the standing-wave ratios in the two cases of fig. 5 and fig. 6, the difference between the standing-wave ratios of some frequency points is larger, for example, n1 and m1, n2 and m2 under the same frequency, and normally, when a call is answered, the antennas of the terminal are all close to the human head, and at this time, the standing-wave ratio of the antennas is increased accordingly, and the second threshold value can be determined by the difference between the standing-wave ratios in the two cases, for example, the difference between SWR1 and SWR2 under multiple frequency points, and the minimum difference value is used as the second threshold value. And thus determining that an object is close to the first screen and/or the second screen when the difference between the first standing wave ratio and the second standing wave ratio is greater than or equal to a second threshold, and determining that no object is close to the first screen or the second screen when the difference between the first standing wave ratio and the second standing wave ratio is less than the second threshold.
In the embodiment of the invention, when the difference value between the first intensity and the preset intensity is smaller than or equal to the first threshold value, it is indicated that no object is close to the first screen, and when the difference value between the current first standing-wave ratio and the current second standing-wave ratio of the terminal antenna is larger than or equal to the second threshold value, it is indicated that an object is close to the first screen or the second screen. Thus, it can be determined that the first screen has no object approaching and the second screen has an object approaching.
Optionally, in the embodiment of the present invention, if the terminal establishes the call connection and executes the above S11 and S12, then the second screen may be switched to the screen saver state in order to save power consumption of the screen.
The embodiment of the invention provides a proximity detection method, wherein a terminal comprises a first screen, a second screen, a standing-wave ratio detection module and an infrared detection module which is arranged aiming at the first screen, and the method comprises the following steps: acquiring first intensity of an infrared signal detected by an infrared detection module; if the difference value between the first intensity and the preset intensity is smaller than or equal to a first threshold value, and the difference value between the current first standing-wave ratio and the second standing-wave ratio of the terminal antenna, detected by the standing-wave ratio detection module, is within a second preset range, determining that an object is close to the second screen; the preset intensity is the intensity of the infrared signal detected by the infrared detection module under the condition that no object is close to the first screen; the second standing wave ratio is a standing wave ratio of the antenna without an object being close to the first screen and the second screen. Through the scheme, under the condition that the second screen is not provided with the infrared detection module, the difference value between the first strength and the preset strength can be smaller than or equal to the first threshold value, and the difference value between the current first standing-wave ratio and the second standing-wave ratio of the terminal antenna is larger than or equal to the second threshold value, it can be determined that an object is close to the second screen, the second screen can be switched to the screen-saving state at the moment, so that the infrared detection modules are not required to be arranged on the two screens in the double-sided screen terminal, and the approach detection can be realized, so that the cost and the design complexity of the double-sided screen terminal can be reduced.
Alternatively, in conjunction with fig. 2, as shown in fig. 7, S12 may be replaced with S13 described below.
And S13, if the difference value between the first intensity and the preset intensity is larger than a first threshold value, the terminal determines that an object approaches the first screen.
In the embodiment of the invention, under the condition that the difference value between the first intensity and the preset intensity is not within the first preset range, it can be determined that an object approaches the first screen.
Optionally, in the embodiment of the present invention, if the terminal establishes the call connection, the foregoing S11 and S13 are executed, at this time, in order to save power consumption of the screen, the first screen may be switched to the screen saver state. Therefore, the infrared detection module can be adopted in the double-sided screen terminal to realize the approach detection of the first screen.
Alternatively, in conjunction with fig. 2, as shown in fig. 8, S13 may be replaced with S14 described below.
And S14, if the difference value between the first intensity and the preset intensity is larger than the first threshold value and the difference value between the first standing-wave ratio and the second standing-wave ratio is not within the second preset range, the terminal determines that an object is close to the first screen.
Compared with the approach detection method shown in fig. 7, the approach detection method shown in fig. 8 can perform approach detection by using the standing-wave ratio of the antenna while performing approach detection by using the infrared detection module, thereby improving accuracy.
As shown in fig. 9, an embodiment of the present invention provides a terminal 130, where the terminal 130 includes a first screen and a second screen, and an infrared detection module is disposed for the first screen, and the terminal 130 includes: an acquisition module 131 and a switching module 132;
an obtaining module 131, configured to obtain a first intensity of the infrared signal detected by the infrared detection module;
a switching module 132, configured to determine that an object is close to the second screen if the difference between the first intensity and the preset intensity obtained by the obtaining module 131 is smaller than or equal to a first threshold, and the difference between the first standing-wave ratio and the second standing-wave ratio is greater than or equal to a second threshold; the preset intensity is the intensity of the infrared signal detected by the infrared detection module under the condition that no object is close to the first screen; the second standing-wave ratio is the standing-wave ratio of the terminal antenna detected by the standing-wave ratio detection module under the condition that no object is close to the first screen and the second screen.
Optionally, the switching module 132 is further configured to determine that an object is close to the first screen if a difference between the first intensity acquired by the acquiring module 131 and the preset intensity is greater than a first threshold.
Optionally, the switching module 132 is specifically configured to determine that an object is close to the first screen if a difference between the first intensity acquired by the acquiring module 131 and the preset intensity is greater than a first threshold, and a difference between the first standing-wave ratio and the second standing-wave ratio is smaller than a second threshold.
Optionally, the obtaining module 131 is specifically configured to obtain the first intensity of the infrared signal detected by the infrared detection module under the condition that the terminal establishes the call connection.
Optionally, the first screen and the second screen are respectively located on two faces of the terminal.
The terminal provided by the embodiment of the present invention can implement each process shown in the above method embodiments, and is not described herein again in order to avoid repetition.
The embodiment of the invention provides a terminal, which comprises a first screen, a second screen, a standing-wave ratio detection module and an infrared detection module, wherein the infrared detection module is arranged aiming at the first screen, and the terminal can acquire first intensity of an infrared signal detected by the infrared detection module; if the difference value between the first intensity and the preset intensity is smaller than or equal to a first threshold value, and the difference value between the current first standing-wave ratio and the second standing-wave ratio of the terminal antenna, detected by the standing-wave ratio detection module, is within a second preset range, determining that an object is close to the second screen; the preset intensity is the intensity of the infrared signal detected by the infrared detection module under the condition that no object is close to the first screen; the second standing wave ratio is a standing wave ratio of the antenna without an object being close to the first screen and the second screen. Through the scheme, under the condition that the second screen is not provided with the infrared detection module, the difference value between the first strength and the preset strength can be smaller than or equal to the first threshold value, and the difference value between the current first standing-wave ratio and the second standing-wave ratio of the terminal antenna is larger than or equal to the second threshold value, it can be determined that an object is close to the second screen, the second screen can be switched to the screen-saving state at the moment, so that the infrared detection modules are not required to be arranged on the two screens in the double-sided screen terminal, and the approach detection can be realized, so that the cost and the design complexity of the double-sided screen terminal can be reduced.
Fig. 10 is a hardware schematic diagram of a terminal for implementing various embodiments of the present invention, where the terminal 100 includes but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the terminal configuration shown in fig. 10 is not intended to be limiting, and that the terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 110 is configured to obtain a first intensity of the infrared signal detected by the infrared detection module; if the difference value between the first intensity and the preset intensity is smaller than or equal to a first threshold value, and the difference value between the current first standing-wave ratio and the second standing-wave ratio of the terminal antenna, detected by the standing-wave ratio detection module, is within a second preset range, determining that an object is close to the second screen; the preset intensity is the intensity of the infrared signal detected by the infrared detection module under the condition that no object is close to the first screen; the second standing wave ratio is a standing wave ratio of the antenna without an object being close to the first screen and the second screen.
The embodiment of the invention provides a terminal, which comprises a first screen, a second screen, a standing-wave ratio detection module and an infrared detection module, wherein the infrared detection module is arranged aiming at the first screen, and the terminal can acquire first intensity of an infrared signal detected by the infrared detection module; if the difference value between the first intensity and the preset intensity is smaller than or equal to a first threshold value, and the difference value between the current first standing-wave ratio and the second standing-wave ratio of the terminal antenna, detected by the standing-wave ratio detection module, is within a second preset range, determining that an object is close to the second screen; the preset intensity is the intensity of the infrared signal detected by the infrared detection module under the condition that no object is close to the first screen; the second standing wave ratio is a standing wave ratio of the antenna without an object being close to the first screen and the second screen. Through the scheme, under the condition that the second screen is not provided with the infrared detection module, the difference value between the first strength and the preset strength can be smaller than or equal to the first threshold value, and the difference value between the current first standing-wave ratio and the second standing-wave ratio of the terminal antenna is larger than or equal to the second threshold value, it can be determined that an object is close to the second screen, the second screen can be switched to the screen-saving state at the moment, so that the infrared detection modules are not required to be arranged on the two screens in the double-sided screen terminal, and the approach detection can be realized, so that the cost and the design complexity of the double-sided screen terminal can be reduced.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, 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. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The terminal provides wireless broadband internet access to the user through the network module 102, such as helping the user send and receive e-mails, browse web pages, access streaming media, and the like.
The audio output unit 103 may convert 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 as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the terminal 100 (e.g., a call signal reception sound, a 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 an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The terminal 100 also includes at least one sensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a 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), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 10, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the terminal, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal 100 or may be used to transmit data between the terminal 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 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 processor 110 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the terminal. Processor 110 may include one or more processing units; alternatively, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. In addition, the terminal 100 includes some functional modules that are not shown, and thus, the detailed description thereof is omitted.
The embodiment of the present invention further provides a terminal, where the terminal may include a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, each process executed by the terminal in the foregoing approach detection method embodiment may be implemented, and the same technical effect may be achieved, and in order to avoid repetition, details are not described here again.
The computer-readable storage medium according to an embodiment of the present invention is characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process executed by the terminal in the foregoing approach detection method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the detailed description is omitted here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (9)

1. A proximity detection method is applied to a terminal, and is characterized in that the terminal comprises a first screen, a second screen, a standing-wave ratio detection module and an infrared detection module arranged aiming at the first screen, and the method comprises the following steps:
acquiring first intensity of an infrared signal detected by the infrared detection module;
if the difference value between the first intensity and the preset intensity is smaller than or equal to a first threshold value, and the difference value between the current first standing-wave ratio and the second standing-wave ratio of the terminal antenna, detected by the standing-wave ratio detection module, is larger than or equal to a second threshold value, it is determined that an object is close to the second screen;
if the difference value between the first intensity and the preset intensity is larger than the first threshold value, determining that an object approaches the first screen;
the preset intensity is the intensity of the infrared signal detected by the infrared detection module under the condition that no object is close to the first screen; the second standing-wave ratio is the standing-wave ratio of the terminal antenna detected by the standing-wave ratio detection module under the condition that no object is close to the first screen and the second screen.
2. The method of claim 1, wherein determining that an object is close to the first screen if the difference between the first intensity and a preset intensity is greater than the first threshold comprises:
and if the difference value between the first intensity and the preset intensity is larger than the first threshold value, and the difference value between the first standing-wave ratio and the second standing-wave ratio is larger than or equal to the second threshold value, determining that an object is close to the first screen.
3. The method of claim 1, wherein said obtaining a first intensity of the infrared signal detected by the infrared detection module comprises:
and under the condition that the terminal establishes call connection, acquiring first intensity of the infrared signal detected by the infrared detection module.
4. The method according to any one of claims 1 to 3, wherein the first screen and the second screen are located on both faces of the terminal, respectively.
5. The terminal is characterized by comprising a first screen, a second screen, a standing-wave ratio detection module and an infrared detection module set for the first screen, and comprises: the device comprises an acquisition module and a switching module;
the acquisition module is used for acquiring first intensity of the infrared signal detected by the infrared detection module;
the switching module is configured to determine that an object is close to the second screen if the difference between the first intensity obtained by the obtaining module and the preset intensity is smaller than or equal to a first threshold, and the difference between the current first standing-wave ratio and the second standing-wave ratio of the terminal antenna detected by the standing-wave ratio detecting module is greater than or equal to a second threshold;
the switching module is further configured to determine that an object is close to the first screen if a difference between the first intensity acquired by the acquisition module and the preset intensity is greater than the first threshold;
the preset intensity is the intensity of the infrared signal detected by the infrared detection module under the condition that no object is close to the first screen; the second standing-wave ratio is the standing-wave ratio of the terminal antenna detected by the standing-wave ratio detection module under the condition that no object is close to the first screen and the second screen.
6. The terminal according to claim 5, wherein the switching module is specifically configured to determine that an object is close to the first screen if a difference between the first intensity acquired by the acquiring module and the preset intensity is greater than the first threshold, and a difference between the first standing-wave ratio and the second standing-wave ratio is greater than or equal to the second threshold.
7. The terminal of claim 5,
the acquisition module is specifically configured to acquire a first intensity of the infrared signal detected by the infrared detection module under the condition that the terminal establishes a call connection.
8. A terminal according to any of claims 5-7, characterized in that the first screen and the second screen are located on two faces of the terminal, respectively.
9. A terminal, characterized in that it comprises a processor, a memory and a computer program stored on said memory and executable on said processor, said computer program, when executed by said processor, implementing the steps of the approach detection method according to any one of claims 1 to 4.
CN201810671098.1A 2018-06-26 2018-06-26 Approach detection method and terminal Active CN108810282B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810671098.1A CN108810282B (en) 2018-06-26 2018-06-26 Approach detection method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810671098.1A CN108810282B (en) 2018-06-26 2018-06-26 Approach detection method and terminal

Publications (2)

Publication Number Publication Date
CN108810282A CN108810282A (en) 2018-11-13
CN108810282B true CN108810282B (en) 2020-09-18

Family

ID=64071590

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810671098.1A Active CN108810282B (en) 2018-06-26 2018-06-26 Approach detection method and terminal

Country Status (1)

Country Link
CN (1) CN108810282B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114025415A (en) * 2021-10-14 2022-02-08 青岛海信移动通信技术股份有限公司 Method for reducing SAR and terminal equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020871A (en) * 2016-05-11 2016-10-12 青岛海信移动通信技术股份有限公司 Screen starting method and device for mobile equipment
CN108076210A (en) * 2016-11-11 2018-05-25 中兴通讯股份有限公司 The screen backlight control system and method for smart machine
CN107222642A (en) * 2017-07-18 2017-09-29 维沃移动通信有限公司 A kind of call processing method, antenna structure and mobile terminal

Also Published As

Publication number Publication date
CN108810282A (en) 2018-11-13

Similar Documents

Publication Publication Date Title
CN109067418B (en) Antenna control method and mobile terminal
CN110752980B (en) Message sending method and electronic equipment
CN110062105B (en) Interface display method and terminal equipment
CN109032445B (en) Screen display control method and terminal equipment
CN110058836B (en) Audio signal output method and terminal equipment
CN110855830A (en) Information processing method and electronic equipment
CN109257505B (en) Screen control method and mobile terminal
CN109828705B (en) Icon display method and terminal equipment
CN109889217B (en) Interference processing method and terminal equipment
CN111142723B (en) Icon moving method and electronic equipment
CN109710349B (en) Screen capturing method and mobile terminal
CN109739394B (en) SAR value processing method and mobile terminal
CN109639887B (en) Control method and terminal equipment
CN109274441B (en) Tuning method and terminal equipment
CN110753155A (en) Proximity detection method and terminal equipment
CN111246061B (en) Mobile terminal, method for detecting shooting mode and storage medium
CN110058686B (en) Control method and terminal equipment
CN109443261B (en) Method for acquiring folding angle of folding screen mobile terminal and mobile terminal
CN110012151B (en) Information display method and terminal equipment
CN109992192B (en) Interface display method and terminal equipment
CN111343710A (en) Power adjustment method and electronic equipment
CN108449490B (en) Terminal control method and terminal
CN109257504B (en) Audio processing method and terminal equipment
CN109947617B (en) Method, terminal and readable storage medium for monitoring display content of application interface
CN109582264B (en) Image display method and mobile terminal

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