Terminal device with proximity sensing function and method
By using piezoelectric materials in terminal equipment to generate and detect ultrasonic waves, the approach of objects is determined, and the problem of accidentally touching in the handset call mode is solved and the cost is reduced.
Patent Information
- Application Number
- CN202311229865.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-21
- Publication Date
- 2025-03-28
AI Technical Summary
In the handset call mode, existing terminal devices are prone to interference or interruption due to accidentally touching the button, and the cost is increased by setting up a proximity sensor separately.
By utilizing the piezoelectric material characteristics of existing devices in the terminal device, ultrasonic waves are generated and vibrations caused by them are detected to determine the object's proximity, instead of the proximity light sensor.
It realizes automatic screen deactivation in the handset call mode to prevent accidental touching and reduces the production cost of terminal equipment.
Smart Images

Figure CN119728820A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a terminal device and method with a proximity sensing function. Background Art
[0002] With the development of terminal technology, the entertainment function of terminal equipment has become more prominent. The increasingly larger display screens on terminal equipment provide convenience for users to play games, watch videos, use office software and other activities that rely on the size of the display screen. However, the larger the display screen and the more touchable points, the easier it is to accidentally touch them. Especially when the user is using the handset mode of the terminal device to make a call, because there are function buttons such as a numeric keypad and hang up the call on the call interface, when the user's face or ear is close to the terminal device, it is easy to accidentally touch the button, causing the terminal device to emit a key sound to interfere with the call, or accidentally touch the hang up button, causing the call to be accidentally interrupted.
[0003] At present, in order to avoid the above problems, a proximity light sensor is provided in the terminal device. When the user approaches the terminal device while using the handset mode of the terminal device for a call, the proximity light sensor can sense the approach of an object and trigger the terminal device to automatically turn off the screen to prevent accidental touching of the screen.
[0004] However, it is obviously uneconomical to specially set up a proximity light sensor for the terminal device to realize the above functions, which is not conducive to the cost control of the terminal device. How to save the production cost of the terminal device while realizing the above functions is a technical problem that urgently needs to be solved. Summary of the invention
[0005] The present application provides a terminal device and method with a proximity sensing function, which utilizes the material properties of existing devices in the terminal device to realize the proximity sensing function to replace the proximity light sensor, thereby helping to reduce the production cost of the terminal device.
[0006] In a first aspect, the present application provides a terminal device with a proximity sensing function, the terminal device comprising a first device provided with a first piezoelectric material, a second device provided with a second piezoelectric material, a processor and a display screen, the first device, the second device and the processor are arranged under the display screen, and the processor is connected to the first device and the second device; the first device is used to generate ultrasonic waves through the reverse voltage effect of the first piezoelectric material; the second device is used to detect the vibration of the second piezoelectric material caused by the ultrasonic wave, and output an electrical signal according to the vibration of the second piezoelectric material; the processor is used to convert the electrical signal into a voltage value, and when the voltage value meets a preset condition, the terminal device is in a handset call mode, and the display screen is in a bright screen state, the display screen is switched to an off screen state, the first preset condition being that the voltage value is greater than a first preset threshold, or the voltage value is less than a second preset threshold, and the first preset threshold is greater than the second preset threshold.
[0007] In the embodiment of the present application, the processor switches the display screen to the off-screen state when the voltage value meets the preset conditions, the terminal device is in the handset call mode, and the display screen of the terminal device is in the on-screen state. The terminal device provided by the embodiment of the present application generates ultrasonic waves through the first device, and the second device detects the vibration caused by the ultrasonic wave and outputs an electrical signal. The processor determines whether there is an object approaching based on the voltage value converted from the electrical signal, which can replace the function of the proximity light sensor, and there is no need to set up a proximity light sensor separately, which is conducive to reducing the production cost of the terminal device.
[0008] In combination with the first aspect, in certain implementations of the first aspect, the processor is further used to: when the voltage value does not meet the preset condition, the terminal device is in the handset call mode, and the display screen is in the off state, switch the display screen to the bright screen state.
[0009] In an embodiment of the present application, when the processor detects that the terminal device is in the handset talk mode and the voltage value does not meet the preset conditions, the processor switches the display screen to the bright screen state to facilitate the user's next operation.
[0010] In combination with the first aspect, in certain implementations of the first aspect, the processor is also used to: activate the anti-mistouch mode when the voltage value meets the preset condition, the anti-mistouch mode of the terminal device is in an enabled state, and the display screen is in a bright screen state; when the anti-mistouch mode is in an activated state, the terminal device does not respond to the user's operation on the preset area of the display screen.
[0011] The method provided in the embodiment of the present application can also reduce the impact of accidental touches on the user in a non-earpiece mode call scenario, thereby improving the user experience.
[0012] In combination with the first aspect, in some implementations of the first aspect, both the first component and the second component are disposed in contact with the display screen.
[0013] In the embodiment of the present application, the ultrasonic wave generated by the first device is transmitted to the second device via the display screen medium. The solid transmits the sound wave faster and the sound wave attenuation is smaller. When the frequency of the ultrasonic wave emitted by the first device is fixed, when an object approaches, the vibration amplitude of the second piezoelectric material in the second device caused by the sound wave transmitted by the display screen is larger than that caused by the sound wave transmitted by the air, and the vibration changes faster, so the detection of the approaching object is also more sensitive.
[0014] In combination with the first aspect, in some implementations of the first aspect, both the first component and the second component are spaced apart from the display screen.
[0015] In the embodiment of the present application, the first device uses air as the medium for propagation of the generated ultrasonic wave, and the second device also uses air as the medium for detecting the vibration caused by the ultrasonic wave. The movement of objects around the terminal device will reflect the propagation of the ultrasonic wave using air as the medium. The change in vibration amplitude can be detected by the second device without the object being close. The terminal device can sense objects at a farther distance, and proximity sensing can be achieved without the user being attached to the display screen, providing a better user experience.
[0016] In combination with the first aspect, in some implementations of the first aspect, the first component is a speaker or a receiver.
[0017] In combination with the first aspect, in some implementations of the first aspect, the second device is a speaker, a receiver, or a microphone.
[0018] In the embodiments of the present application, without changing the existing speaker, receiver or microphone of the terminal device, the proximity sensing function is realized by utilizing the characteristics of the piezoelectric material inherent in the speaker, receiver or microphone, which is beneficial to saving the production cost of the terminal device.
[0019] In combination with the first aspect, in some implementations of the first aspect, the frequency of the ultrasonic wave is the resonance frequency of the second piezoelectric material.
[0020] In the embodiment of the present application, the frequency of the ultrasonic wave generated by the first device is set to the natural frequency of the second piezoelectric material in the second device, which can cause resonance of the second material, which is beneficial to reduce the attenuation caused during the propagation of the ultrasonic wave and improve the sensitivity of proximity sensing.
[0021] In a second aspect, the present application provides a proximity sensing method, which is applied to a terminal device including a first device having a first piezoelectric material, a second device having a second piezoelectric material, a processor and a display screen, the method comprising: generating an ultrasonic wave through the reverse voltage effect of the first piezoelectric material of the first device; detecting the vibration of the second piezoelectric material caused by the ultrasonic wave through the second device, and outputting an electrical signal according to the vibration of the second piezoelectric material; converting the electrical signal into a voltage value through the processor, and switching the display screen to an off-screen state when the voltage value meets a preset condition, the terminal device is in a handset call mode, and the display screen is in a bright-screen state, the first preset condition being that the voltage value is greater than a first preset threshold, or the voltage value is less than a second preset threshold, and the first preset threshold is greater than the second preset threshold.
[0022] In combination with the second aspect, in certain implementations of the second aspect, the method further includes: when the voltage value does not meet the preset condition, the terminal device is in a handset call mode, and the display screen is in an off-screen state, switching the display screen to a bright-screen state by the processor.
[0023] In combination with the second aspect, in certain implementations of the second aspect, the method also includes: when the voltage value meets the preset condition, the anti-mistouch mode of the terminal device is in an enabled state, and the display screen is in a bright screen state, activating the anti-mistouch mode, and when the anti-mistouch mode is in an activated state, the terminal device does not respond to the user's operation on the preset area of the display screen.
[0024] In combination with the second aspect, in some implementations of the second aspect, both the first component and the second component are disposed in contact with the display screen.
[0025] In combination with the second aspect, in some implementations of the second aspect, both the first component and the second component are spaced apart from the display screen.
[0026] In combination with the second aspect, in some implementations of the second aspect, the first component is a speaker or a receiver.
[0027] In combination with the second aspect, in some implementations of the second aspect, the second device is a speaker, a receiver, or a microphone.
[0028] In combination with the second aspect, in some implementations of the second aspect, the frequency of the ultrasonic wave is the resonance frequency of the second piezoelectric material.
[0029] The proximity sensing method provided in the embodiment of the present application generates ultrasonic waves through a first device, and a second device detects the vibration caused by the ultrasonic waves and outputs an electrical signal. The processor determines whether there is an object approaching based on a voltage value converted from the electrical signal. This can replace the function of a proximity light sensor, and there is no need to set up a proximity light sensor separately, which is beneficial to reducing the production cost of the terminal equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 A schematic diagram of the structure of a terminal device with a proximity sensing function provided in an embodiment of the present application;
[0031] Figure 2 A schematic diagram of the internal structure of a terminal device with a proximity sensing function provided in an embodiment of the present application;
[0032] Figure 3 A schematic diagram of the internal structure of a terminal device with a proximity sensing function provided in an embodiment of the present application;
[0033] Figure 4 Another structural schematic diagram of a terminal device with a proximity sensing function provided in an embodiment of the present application;
[0034] Figure 5 A software structure block diagram of a terminal device with a proximity sensing function provided in an embodiment of the present application;
[0035] Figure 6 A schematic flow chart of a proximity sensing method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0036] The technical solution in this application will be described below in conjunction with the accompanying drawings.
[0037] In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.
[0038] It should be noted that in the embodiments of the present application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplarily" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.
[0039] In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, a--c, bc, or abc, where a, b, c can be single or multiple.
[0040] With the development of terminal technology, the entertainment function of terminal equipment has become more prominent. The increasingly larger display screens on terminal equipment provide convenience for users to play games, watch videos, use office software and other activities that rely on the size of the display screen. However, the larger the display screen and the more touchable points, the easier it is to touch them by mistake. This is especially true when users are using the handset mode of the terminal device to make a call. Because there are function buttons such as a numeric keypad and hang up the call on the call interface, when the user's face or ear is close to the terminal device, it is easy to accidentally touch a button, causing the terminal device to emit a key sound that interferes with the call, or accidentally touch the hang up button, causing the call to be unexpectedly interrupted.
[0041] At present, in order to avoid the above problems, a proximity light sensor is provided in the terminal device. When the user approaches the terminal device while using the handset mode of the terminal device for a call, the proximity light sensor can sense the approach of an object and trigger the terminal device to automatically turn off the screen to prevent accidental touching of the screen.
[0042] However, it is obviously uneconomical to separately set up a proximity light sensor for the terminal device to realize the above functions, which is not conducive to the cost control of the terminal device. How to save the production cost of the terminal device while realizing the above functions is a technical problem that urgently needs to be solved.
[0043] In view of this, the present application provides a terminal device and method with a proximity sensing function, which utilizes the material properties of existing devices in the terminal device to realize the proximity sensing function to replace the proximity light sensor, which is conducive to reducing the production cost of the terminal device.
[0044] Combine the following Figures 1 to 3 A terminal device with a proximity sensing function provided in an embodiment of the present application is described.
[0045] Figure 1A schematic diagram of the structure of a terminal device 100 with a proximity sensing function provided in an embodiment of the present application. It should be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100. The terminal device 100 may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware, and the present application does not limit the specific structure of the terminal device 100.
[0046] Optionally, the terminal device 100 may be any smart device with a display screen, such as a mobile phone, a tablet computer, a smart watch, etc., and the embodiment of the present application does not limit the specific implementation form of the terminal device 100.
[0047] like Figure 1 As shown, the terminal device 100 may include a first device 101 having a first piezoelectric material 105 , a second device 102 having a second piezoelectric material 106 , a processor 103 and a display screen 104 , and the processor 103 is connected to the first device 101 , the second device 102 and the display screen 103 .
[0048] It should be understood that piezoelectric materials are crystalline materials that will generate voltage between the two end faces when subjected to pressure. If pressure is applied to the piezoelectric material, the positive and negative ions in the crystal material will be relatively displaced, so that the positive and negative charge centers no longer overlap. The migration of charges causes charges of opposite signs to appear at both ends of the crystal material, generating a potential difference (called the positive piezoelectric effect). If the pressure applied to the piezoelectric material is a high-frequency vibration, then a high-frequency current / voltage is generated; conversely, if voltage is applied to the piezoelectric material, the piezoelectric material will generate mechanical deformation due to the voltage (called the inverse piezoelectric effect). If an AC voltage is applied to the piezoelectric material, the piezoelectric material will generate mechanical vibrations, that is, it can generate sound. Therefore, the characteristics of piezoelectric materials can be used to achieve mutual conversion between mechanical vibrations (sound waves) and AC.
[0049] The first device 101 is provided with a first piezoelectric material 105, and the first device 101 can be used to convert an electrical signal containing audio information into a sound signal output, that is, by utilizing the above-mentioned reverse voltage effect, the first piezoelectric material 105 can generate vibrations of different amplitudes under voltage stimulation of different frequencies, forming sound waves that can be heard by the human ear. In the embodiment of the present application, a high-frequency AC voltage is superimposed on the first device 101, so that the first piezoelectric material 105 in the first device 101 can generate ultrasonic waves that cannot be heard by the human ear while generating sound waves that can be heard by the human ear.
[0050] The second device 102 is provided with a second piezoelectric material 106, and the second device 102 can convert the detected sound signal into an electrical signal for output, that is, utilize the positive voltage effect of the second piezoelectric material, that is, convert the vibration generated by the sound wave impact into an electrical signal. In the embodiment of the present application, the second device 102 detects the vibration caused by the ultrasonic wave generated by the first device 101 through the second piezoelectric material 106, and outputs an electrical signal according to the vibration of the second piezoelectric material 106.
[0051] The display screen 104 is used to display the operation interface of the terminal device, such as the main interface, the interface during a call, images, videos, etc. The display screen 103 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light emitting diode (QLED), etc. In some embodiments, the terminal device 100 may include 1 or N display screens 103, where N is a positive integer greater than 1.
[0052] The processor 103 is provided with one or more processing units, such as: an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors.
[0053] It should be understood that the second piezoelectric material in the second device 102 can be vibrated by any sound wave impact and convert the vibration into an electrical signal output. However, since the frequency of the ultrasonic wave generated by the first device 101 is fixed, the distance between the first device 101 and the second device 102 is fixed, and there is no other interference in the environment, among all the vibrations that can be detected by the second device 102, the vibration amplitude caused by the ultrasonic wave is stable, and the voltage value corresponding to the output electrical signal is also maintained in a stable voltage value range, which can be obtained based on experimental tests before the terminal equipment leaves the factory.
[0054] It should also be understood that when the user is using the terminal device, when the display screen is in the bright screen state, the user can perform touch operations on the screen, for example, first unlock the screen and open an application from the display screen interface; but when the screen is in the off state, the user must first switch the display screen to the bright screen state if he wants to use the terminal device.
[0055] When a user uses a terminal device to make a voice call, the user can choose to use speaker mode or handset mode. When the user uses handset mode to answer a call, the user needs to bring the terminal device close to the ear to hear the other party's voice clearly. When the user brings the terminal device close to the ear from a distance away from the ear, the processor 103 determines that an object is approaching the terminal device based on continuous monitoring of the voltage value from the second device 102. In order to prevent the display screen from being accidentally touched and affecting the call, the processor 103 switches the display screen to the off state.
[0056] In an embodiment of the present application, the processor determines that the condition for an object to approach the terminal device is that the voltage value corresponding to the electrical signal output by the second device meets the preset condition. If the terminal device is in the handset call mode and the display screen of the terminal device is in the bright screen state, the processor switches the display screen to the off screen state.
[0057] The above preset condition is that the voltage value is greater than the first preset threshold or less than the second preset threshold, and the first preset threshold is greater than the second preset threshold. The first preset threshold and the second preset threshold are voltage values after the voltage value corresponding to the electrical signal output by the second device changes beyond the preset amplitude from any value in the above stable voltage value range due to an object approaching the terminal device. Optionally, the preset amplitude can be 30%, that is, the difference between the first preset threshold or the second preset threshold and any value in the above stable voltage value range is greater than or equal to 30% of the ratio of the difference between the first preset threshold or the second preset threshold and the arbitrary value.
[0058] The terminal device provided in the embodiment of the present application generates ultrasonic waves through a first device, and a second device detects the vibration caused by the ultrasonic waves and outputs an electrical signal. The processor determines whether there is an object approaching based on the voltage value converted from the electrical signal. It can replace the function of the proximity light sensor, and there is no need to set up a proximity light sensor separately, which is beneficial to reducing the production cost of the terminal device.
[0059] Optionally, the cache memory in the processor 103 can store instructions or data that have just been used or cyclically used by the processor 103. If the processor 103 needs to use the instruction or data again, it can be directly called from the memory. In this way, repeated access is avoided, the waiting time of the processor 103 is reduced, and the efficiency of the system is improved.
[0060] In addition, the processor 103 can also call the executable program code stored in the internal memory, and the executable program code includes instructions. The internal memory may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the terminal device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 103 executes various functional applications and data processing of the terminal device 100 by running instructions stored in the internal memory and / or instructions stored in a memory provided in the processor.
[0061] Optionally, the first device 101 may be a speaker or a receiver, or other devices on the terminal device that can generate ultrasonic waves, which is not limited in the present embodiment. The terminal device 100 can listen to music and answer hands-free calls through the speaker. When the terminal device 100 answers a call or voice message, the voice can be answered by placing the receiver close to the human ear.
[0062] Optionally, the second device 102 may be a speaker, a receiver or a microphone, or other devices on the terminal device that can convert mechanical vibrations generated by sound waves into electrical signals, and the present application embodiment does not specifically limit this. When a user makes a call or sends a voice message through a terminal device, the user can make a sound by bringing his mouth close to the microphone to input the sound signal into the microphone, and the present application does not limit this.
[0063] As an optional embodiment, when the terminal device is in a handset call mode and the display screen is in an off state, if the voltage value obtained by the processor does not meet a preset condition, the processor switches the display screen to a bright state.
[0064] In one possible scenario, when a user is using the handset mode of a terminal device for a voice call, if he needs to hang up the call, he needs to take the terminal device away from his ear. At this time, if the display screen of the terminal device is still in the off state, the user needs to manually light up the screen. Therefore, the design of this application is that when the processor 103 detects that the terminal device is in the handset call mode and the voltage value does not meet the preset conditions, the display screen is switched to the bright screen state to facilitate the user's next operation.
[0065] As an optional embodiment, the processor 103 is also used to activate the anti-mistouch mode when the voltage value meets the preset conditions, the anti-mistouch mode of the terminal device is in an enabled state, and the display screen is in a bright screen state. When the anti-mistouch mode is activated, the terminal device does not respond to the user's operation on the preset area of the display screen.
[0066] It should be understood that the terminal device also has the need to prevent accidental touches in non-earpiece mode. For example, when the user puts the terminal device in a pocket without locking the screen, the terminal device may be accidentally touched due to the squeeze between other items in the pocket and the terminal device display screen, or the friction between the terminal device display screen and clothing, etc. Therefore, the terminal device is provided with an anti-accidental touch mode. In a possible implementation, the user needs to find the button corresponding to the anti-accidental touch mode through the setting application of the terminal device, and turn on the button corresponding to the anti-accidental touch mode to enable the anti-accidental touch mode. Enabling the anti-accidental touch mode means that the user agrees to decide whether to activate the anti-accidental touch mode through the judgment of the terminal device. When the anti-accidental touch mode is enabled and the display screen of the terminal device is in the bright screen state, if the processor detects that the voltage value corresponding to the electrical signal output from the second device due to the vibration caused by the ultrasonic wave generated by the first device meets the preset condition, the anti-accidental touch mode is activated. When the anti-accidental touch mode is in the activated state, the terminal device does not respond to the user's operation on the preset area of the display screen. The preset area can be understood as a display screen area set by the terminal device that does not respond to any touch operation when the anti-accidental touch mode is activated.
[0067] In one possible implementation, the user can cancel the activated anti-mistouch mode by specifying an operation, for example, clicking a specified position a specified number of times, or sliding a specified area a specified number of times, etc., which is not limited in this application.
[0068] In the above terminal device 100, the first device 101 and the second device 102 may be arranged in the following two ways. Figure 2 and Figure 3 Different configurations of the first device 101 and the second device 102 are described.
[0069] Figure 2A schematic diagram of the internal structure of a terminal device 100 with a proximity sensing function provided in an embodiment of the present application is shown in FIG. Figure 2 1 is a cross-sectional view of the internal structure of the terminal device 100 with the display screen 104 facing upward and placed horizontally. The terminal device 100 may also include more or fewer components, and the drawings of this application do not constitute a specific limitation on the internal structure of the terminal device. Figure 2 As shown, the display screen 104 is composed of a glass cover plate 208, a connecting glue layer 207 and a liquid crystal display screen 206. The glass cover plate 208 is connected to the liquid crystal display screen 206 through the connecting glue layer 207. The first device 101 and the second device 102 are both arranged under the display screen 104 and are spaced apart from the display screen 104. There are gap areas 202 and gap areas 203 between the display screen 104 and the shell 201 of the terminal device 100. A main board 211 is also included under the display screen 104. The main board is provided with a power amplifier 204, a processor 103 and a digital-to-analog converter 203. The main board 211 is provided with a connection point 210, and the main board 211 and the first device 101 and the second device 102 are connected through the contact between the connection point 210 and the connecting spring 209.
[0070] Among them, the power amplifier 204 provides a high-frequency AC voltage to the first device 101 according to the instruction of the processor 103, so that the first piezoelectric material 105 of the first device 101 produces a positive piezoelectric effect and emits ultrasonic waves; the second piezoelectric material of the second device 102 detects the vibration caused by the ultrasonic wave and produces an inverse piezoelectric effect to output an electrical signal, and the processor 103 converts the electrical signal into a voltage value through the digital-to-analog converter 205.
[0071] It should be understood that the display screen 104 involved in the embodiment of the present application includes a glass cover plate 208 on the terminal device 100 that can be touched by the user and a liquid crystal screen 206 inside the terminal device for realizing the display function.
[0072] The present application does not limit whether the first device 101 and / or the second device 102 is in direct contact with the housing 201 of the terminal device 100 .
[0073] exist Figure 2 In the structure shown, the ultrasonic wave generated by the first device 101 propagates to the air near the terminal device through the gap area 202, and is conducted to the second device 102 through the gap area 203 with the air as the medium. Figure 2Under the setting shown, when an object approaches the display screen 104, the approaching object reflects the ultrasonic wave, causing the vibration caused by the ultrasonic wave detected at the first device 102 to become stronger, and the voltage value converted from the output electrical signal becomes larger. When the voltage value is greater than the first preset threshold value, the processor performs corresponding operations according to the stored program code, for example, when the terminal device is in the handset call mode and the display screen is in the bright screen state, the display screen is switched to the off screen state, or, when the anti-mistouch mode of the terminal device is enabled and the terminal device is in the bright screen state, the anti-mistouch mode is activated.
[0074] It should be understood that, during a period of time when no object is close to the display screen 104, the amplitude of the vibration of the second piezoelectric material in the second device 102 caused by the ultrasonic wave generated by the first device 101 after being conducted through the air should be stable, the electrical signal received by the processor should be a stable electrical signal, and the converted voltage value is also within a stable voltage value range. Figure 2 In the configuration mode, the frequency of the ultrasonic wave generated by the first device 101, the vibration amplitude of the second piezoelectric material caused by the ultrasonic wave, and the stable voltage value range can be determined according to experiments.
[0075] It should also be understood that in order to make the vibration caused by the ultrasound on the second piezoelectric material easier to detect, the frequency of the ultrasound generated by the first device can be made the resonant frequency of the second piezoelectric material. The frequency of the ultrasound generated by the first device can be controlled by the frequency and voltage value of the AC voltage superimposed on the first piezoelectric material.
[0076] Optionally, the second piezoelectric material may be a lead zirconate titanate (PZT) thin film material in a two-layer stack, and the resonance frequency of the second piezoelectric material may be 27000 Hz.
[0077] Optionally, the first piezoelectric material and the second piezoelectric material may be any one of a PZT material, an aluminum nitride (AlN) material, or any other piezoelectric material. The first piezoelectric material and the second piezoelectric material may be the same or different, and this application does not limit this. The first piezoelectric material in the first device and / or the second piezoelectric material in the second device may be provided with one or more layers, and this application does not limit this either.
[0078] Optionally, when the first device 101 and the second device 102 are two speakers on a terminal device, the first piezoelectric material 105 and the second piezoelectric material 106 are diaphragms of the two speakers respectively.
[0079] In the embodiment of the present application, the first device uses air as the medium for propagation of the generated ultrasonic wave, and the second device also uses air as the medium for detecting the vibration caused by the ultrasonic wave. The movement of objects around the terminal device will reflect the propagation of the ultrasonic wave using air as the medium. The change in vibration amplitude can be detected by the second device without the object being close. The terminal device can sense objects at a farther distance, and proximity sensing can be achieved without the user being attached to the display screen, providing a better user experience.
[0080] Figure 3 This is another internal structure diagram of a terminal device 100 with a proximity sensing function provided in an embodiment of the present application. Figure 3 It is also a cross-sectional view of the internal structure of the terminal device 100 with the display screen 104 facing upward and placed horizontally. The terminal device 100 may also include more or fewer components, and the drawings of this application do not constitute a specific limitation on the internal structure of the terminal device. Figure 3 As shown, the display screen 104 is composed of a glass cover plate 208, a connecting glue layer 207 and a liquid crystal display screen 206. The glass cover plate 208 is connected to the liquid crystal display screen 206 through the connecting glue layer 207. The first device 101 is arranged under the second device 102 display screen 104. The first device 101 is arranged on a cantilever beam structure 301 protruding inwardly from the shell 201, and the first piezoelectric material 105 of the first device 101 is laminated with the glass cover plate 208 on the display screen 104. The second device 102 is arranged on another cantilever beam structure 302 protruding inwardly from the shell 201, and the second piezoelectric material 106 of the second device 102 is laminated with the glass cover plate 208 of the display screen 104, and there is no gap between the glass cover plate 208 and the shell 201. A main board 211 is also provided under the display screen 104 , on which a power amplifier 204 , a processor 103 and a digital-to-analog converter 203 are provided. The first device 101 is connected to the main board 211 via a connecting line 303 , and the second device 102 is connected to the main board 211 via a connecting line 304 .
[0081] It should be understood that the connection lines between the first device 101, the second device 102 and the mainboard 211 are important carriers for data and power exchange, and are generally soft wires with insulating sheaths, but this application does not limit this.
[0082] It should also be understood that the connection method between the first device 101, the second device 102 and the mainboard 211 can also be different from Figure 2 Similarly, this application does not limit this.
[0083] In this structure, the present application does not limit whether the first device 101 and / or the second device 102 are in direct contact with the housing 201 of the terminal device 100 .
[0084] exist Figure 3In the structure shown, when the first piezoelectric material in the first device 101 vibrates and makes a sound, it will drive the vibration of the display screen 104. The ultrasonic wave generated by the first device 101 is transmitted to the second device 102 through the display screen 104 as a medium, and causes the vibration of the second piezoelectric material in the second device 102. When an object is attached to the display screen 104, stress is generated on the display screen 104, resulting in the vibration of the display screen 104 with the ultrasonic wave being suppressed, and the vibration amplitude is reduced, so that the impact received by the second piezoelectric material in the second device 102 is reduced, the vibration caused by the ultrasonic wave detected at the first device 102 is weakened, and the voltage value converted from the output electrical signal is reduced. When the voltage value is less than the second preset threshold value, the processor performs corresponding operations according to the stored program code, for example, when the terminal device is in the handset call mode and the display screen is in the screen-on state, the display screen is switched to the screen-off state, or when the terminal device anti-mistake touch mode is enabled and the terminal device is in the screen-on state, the anti-mistake touch mode is activated.
[0085] It should be understood that, during a period of time when no object is attached to the display screen 104, the amplitude of the vibration of the second piezoelectric material in the second device 102 caused by the ultrasonic wave generated by the first device 101 after being transmitted through the display screen 104 should be stable, the electrical signal received by the processor should be a stable electrical signal, and the converted voltage value is also within a stable voltage value range. Figure 3 In the configuration mode, the frequency of the ultrasonic wave generated by the first device 101, the vibration amplitude of the second piezoelectric material caused by the ultrasonic wave, and the stable voltage value range can be determined according to experiments.
[0086] In the embodiment of the present application, the ultrasonic wave generated by the first device is transmitted to the second device via the display screen medium. The solid transmits the sound wave faster and the sound wave attenuation is smaller. When the frequency of the ultrasonic wave emitted by the first device is fixed, when an object approaches, the vibration amplitude of the second piezoelectric material in the second device caused by the sound wave conducted by the display screen is larger and changes faster than that caused by the sound wave conducted by the air. The detection of the approaching object is also more sensitive and has a higher success rate.
[0087] In a possible implementation, the hardware structure of the terminal device with proximity sensing function provided in the embodiment of the present application can also be as follows: Figure 4 shown. Figure 4The terminal device 400 shown in the figure may include a processor 401, an internal memory 402, a universal serial bus (USB) interface 403, a charging management module 404, a power management module 405, a battery 406, an antenna 1, an antenna 2, a mobile communication module 407, a wireless communication module 408, an audio module 409, a speaker 409A, a receiver 409B, a microphone 409C, a sensor module 410, a camera 411, a display screen 412, and a subscriber identification module (SIM) card interface 413, etc. The sensor module 410 may include a pressure sensor 410A, a gyroscope sensor 410B, a fingerprint sensor 410C, a touch sensor 410D, etc.
[0088] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 400 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0089] The processor 401 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0090] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 401 may include multiple groups of I2C buses. The processor 401 may be coupled to the touch sensor 410D, the charger, the flash, the camera 411, etc. through different I2C bus interfaces. For example, the processor 401 may be coupled to the touch sensor 410D through the I2C interface, so that the processor 401 communicates with the touch sensor 410D through the I2C bus interface, thereby realizing the touch function of the terminal device 400.
[0091] The I2S interface can be used for audio communication. In some embodiments, the processor 401 can include multiple groups of I2S buses. The processor 401 can be coupled to the audio module 409 via the I2S bus to achieve communication between the processor 401 and the audio module 409. In some embodiments, the audio module 409 can transmit an audio signal to the wireless communication module 407 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
[0092] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 409 and the wireless communication module 407 can be coupled via a PCM bus interface. In some embodiments, the audio module 409 can also transmit audio signals to the wireless communication module 407 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0093] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 401 and the wireless communication module 407. For example, the processor 401 communicates with the Bluetooth module in the wireless communication module 407 through the UART interface to realize the Bluetooth function. In some embodiments, the audio module 409 can transmit an audio signal to the wireless communication module 407 through the UART interface to realize the function of playing music through a Bluetooth headset.
[0094] The MIPI interface can be used to connect the processor 401 with peripheral devices such as the display screen 412 and the camera 411. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 401 and the camera 411 communicate via the CSI interface to implement the shooting function of the terminal device 400. The processor 401 and the display screen 412 communicate via the DSI interface to implement the display function of the terminal device 400.
[0095] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 401 with the camera 411, the display screen 412, the wireless communication module 407, the audio module 409, the sensor module 410, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0096] The USB interface 403 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 403 can be used to connect a charger to charge the terminal device 400, and can also be used to transmit data between the terminal device 400 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other terminal devices, such as AR devices, etc.
[0097] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the terminal device 400. In other embodiments of the present application, the terminal device 400 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0098] The charging management module 404 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 404 may receive charging input from a wired charger through the USB interface 403. In some wireless charging embodiments, the charging management module 404 may receive wireless charging input through a wireless charging coil of the terminal device 400. While the charging management module 404 is charging the battery 406, it may also power the terminal device through the power management module 405.
[0099] The power management module 405 is used to connect the battery 406, the charging management module 404 and the processor 401. The power management module 405 receives input from the battery 406 and / or the charging management module 404, and supplies power to the processor 401, the internal memory 402, the display screen 412, the camera 411, and the wireless communication module 407. The power management module 405 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 405 can also be set in the processor 401. In other embodiments, the power management module 405 and the charging management module 404 can also be set in the same device.
[0100] The wireless communication function of the terminal device 400 can be implemented through antenna 1, antenna 2, mobile communication module 407, wireless communication module 407, modem processor and baseband processor.
[0101] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in terminal device 400 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0102] The mobile communication module 407 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the terminal device 400. The mobile communication module 407 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 407 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 407 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 407 can be set in the processor 401. In some embodiments, at least some of the functional modules of the mobile communication module 407 can be set in the same device as at least some of the modules of the processor 401.
[0103] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 409A, a receiver 409B, etc.), or displays an image or video through a display screen 412. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 401 and be set in the same device as the mobile communication module 407 or other functional modules.
[0104] The wireless communication module 407 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the terminal device 400. The wireless communication module 407 can be one or more devices integrating at least one communication processing module. The wireless communication module 407 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 401. The wireless communication module 407 can also receive the signal to be sent from the processor 401, modulate the frequency of the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0105] In some embodiments, the antenna 1 of the terminal device 400 is coupled to the mobile communication module 407, and the antenna 2 is coupled to the wireless communication module 407, so that the terminal device 400 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0106] The terminal device 400 implements the display function through a GPU, a display screen 412, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 412 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 401 may include one or more GPUs, which execute program instructions to generate or change display information.
[0107] The display screen 412 is used to display images, videos, etc. The display screen 412 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the terminal device 400 may include 1 or N display screens 412, where N is a positive integer greater than 1.
[0108] The terminal device 400 can realize the shooting function through an ISP, a camera 411, a video codec, a GPU, a display screen 412, and an application processor.
[0109] The ISP is used to process the data fed back by the camera 411. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera 411.
[0110] The camera 411 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the terminal device 400 may include 1 or N cameras 411, where N is a positive integer greater than 1.
[0111] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the terminal device 400 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0112] Video codecs are used to compress or decompress digital videos. The terminal device 400 may support one or more video codecs. Thus, the terminal device 400 may play or record videos in various coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0113] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of the terminal device 400 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0114] The internal memory 402 can be used to store computer executable program codes, which include instructions. The internal memory 402 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the terminal device 400 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 401 executes various functional applications and data processing of the terminal device 400 by running instructions stored in the internal memory 402 and / or instructions stored in a memory provided in the processor.
[0115] The terminal device 400 can implement audio functions such as music playing and recording through the audio module 409, the speaker 409A, the receiver 409B, the microphone 409C, the headphone interface 170D, and the application processor.
[0116] The audio module 409 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 409 can also be used to encode and decode audio signals. In some embodiments, the audio module 409 can be arranged in the processor 401, or some functional modules of the audio module 409 can be arranged in the processor 401.
[0117] The speaker 409A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The terminal device 400 can listen to music or listen to a hands-free call through the speaker 409A.
[0118] The receiver 409B, also called a "handset", is used to convert audio electrical signals into sound signals. When the terminal device 400 receives a call or voice message, the voice can be received by placing the receiver 409B close to the human ear.
[0119] Microphone 409C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by putting his mouth close to microphone 409C to input the sound signal into microphone 409C. The terminal device 400 can be provided with at least one microphone 409C. In other embodiments, the terminal device 400 can be provided with two microphones 409C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the terminal device 400 can also be provided with three, four or more microphones 409C to realize the collection of sound signals, noise reduction, identification of sound sources, realization of directional recording function, etc.
[0120] In the embodiment of the present application, the speaker 409A and / or the receiver 109B may be the above-mentioned first device, and the speaker 409A, the receiver 109B and / or the microphone 409C may specifically be the above-mentioned second device, used to implement the corresponding functions of the above-mentioned first device and the second device.
[0121] The pressure sensor 410A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 410A can be set on the display screen 412. There are many types of pressure sensors 410A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 410A, the capacitance between the electrodes changes. The terminal device 400 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 412, the terminal device 400 detects the touch operation intensity according to the pressure sensor 410A. The terminal device 400 can also calculate the touch position according to the detection signal of the pressure sensor 410A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
[0122] The gyroscope sensor 410B can be used to determine the motion posture of the terminal device 400. In some embodiments, the angular velocity of the terminal device 400 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 410B. The gyroscope sensor 410B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 410B detects the angle of the terminal device 400 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the terminal device 400 through reverse movement to achieve anti-shake. The gyroscope sensor 410B can also be used for navigation and somatosensory game scenes.
[0123] The fingerprint sensor 410C is used to collect fingerprints. The terminal device 400 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access application locks, fingerprint photography, fingerprint answering calls, etc.
[0124] The touch sensor 410D is also called a "touch control device". The touch sensor 410D can be set on the display screen 412, and the touch sensor 410D and the display screen 412 form a touch screen, also called a "touch control screen". The touch sensor 410D is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 412. In other embodiments, the touch sensor 410D can also be set on the surface of the terminal device 400, which is different from the position of the display screen 412.
[0125] The SIM card interface 413 is used to connect a SIM card. The SIM card can be connected to and separated from the terminal device 400 by inserting it into the SIM card interface 413 or pulling it out from the SIM card interface 413. The terminal device 400 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 413 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 413 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 413 can also be compatible with different types of SIM cards. The SIM card interface 413 can also be compatible with external memory cards. The terminal device 400 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the terminal device 400 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the terminal device 400 and cannot be separated from the terminal device 400.
[0126] The software system of the terminal device 400 with proximity sensing function can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system with a layered architecture as an example to exemplify the software structure of the terminal device 400.
[0127] Figure 5 A software structure diagram of a terminal device 100 with a proximity sensing function provided in an embodiment of the present application. The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer.
[0128] 1. Application layer
[0129] The application layer may include a series of application packages. The application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc. In the embodiment of the present application, the application layer at least includes a call application, and the user can make a voice call by clicking on the call application, dialing or selecting a number in the phone book.
[0130] 2. Application framework layer
[0131] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0132] In the embodiment of the present application, the application layer includes at least a power manager (PowerManager), a phone manager, a resource manager, and the like.
[0133] The phone manager is used to provide the communication function of the terminal device 100. In the embodiment of the present application, the process of the user's call is managed by the phone manager, such as the management of the call status (including connection, hang up, etc.).
[0134] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0135] 3. Android runtime and system libraries
[0136] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system. The core library consists of two parts: one is the function that the Java language needs to call, and the other is the Android core library.
[0137] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0138] In the embodiment of the present application, the program code for implementing the proximity sensing function running in the processor may be stored in a C++ program library of the system, and when the processor is running, the program code may be cached in a high-speed cache memory of the processor.
[0139] 4. Kernel layer
[0140] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, audio driver, and sensor driver.
[0141] The following is an illustrative description of the software and hardware workflow of the terminal device 400 in conjunction with the call process of the terminal device 400.
[0142] In a possible scenario, when the touch sensor receives a user's touch operation on the display screen, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into an original input event (including touch coordinates, timestamp of the touch operation, and other information). The original input event is stored in the kernel layer. The application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the input event. For example, if the touch operation is a touch click operation, and the control corresponding to the click operation is the control of the call application icon, the call application calls the interface of the application framework layer, starts the call application, and displays the interface of the call application on the display screen. Based on the user's touch operation on the display screen, the audio driver is started by calling the kernel layer, the user's voice is received through the microphone, and the other party's voice is played through the receiver. When the processor detects that the display screen is in the on-screen state through the power manager process, the voltage value corresponding to the vibration caused by the ultrasonic wave generated by the receiver detected by the speaker meets the preset condition, then the display screen is switched to the off-screen state through the power manager process.
[0143] In another possible scenario, the processor detects that the current user has chosen to enable the anti-mistouch mode (this mode can also be called pocket mode, leather case mode, etc.), the display screen is in the bright screen state, and the voltage value corresponding to the vibration caused by the ultrasonic wave generated by the earpiece detected by the speaker meets the preset conditions, then the anti-mistouch mode program stored in the system library is called to activate the anti-mistouch mode, lock the preset area of the display screen, so that the touch sensor does not respond to the user's touch operation on the preset area, or the processor does not respond to the touch signal of the preset area fed back by the touch sensor.
[0144] A proximity sensing method provided by the present application is described below for illustration.
[0145] Figure 6 A schematic flow chart of a proximity sensing method 600 provided in an embodiment of the present application. The method 600 is applied to a terminal device including a first device provided with a first piezoelectric material, a second device provided with a second piezoelectric material, a processor and a display screen. The hardware structure of the terminal device is as follows: Figure 1 or Figure 4 As shown, the software structure is as follows Figure 5 As shown, the first device and the second device may be arranged in the terminal device as follows: Figure 2 or Figure 3 However, this application is not limited to this.
[0146] The method 600 includes the following steps:
[0147] S601 , generating ultrasonic waves through the reverse voltage effect of the first piezoelectric material of the first device.
[0148] S602: Detect the vibration of the second piezoelectric material caused by the ultrasonic wave through the second device, and output an electrical signal according to the vibration of the second piezoelectric material.
[0149] S603. Convert the electrical signal into a voltage value through the processor, and switch the display screen to the off state when the voltage value meets the preset conditions, the terminal device is in the handset call mode, and the display screen is in the on state, wherein the first preset condition is that the voltage value is greater than the first preset threshold, or the voltage value is less than the second preset threshold, and the first preset threshold is greater than the second preset threshold.
[0150] It should be understood that the first device can be any device provided with a first piezoelectric material on the terminal device, the second device can be any device provided with a second piezoelectric material on the terminal device, the first device and the second device can be the same device, and the first piezoelectric material and the second piezoelectric material can be the same material. The number of the first device and / or the second device can also be one or more, and this application does not specifically limit this.
[0151] It should also be understood that when the first device and the second device are the same device, in order to avoid interference, the first piezoelectric material for generating ultrasonic waves and the second piezoelectric material for detecting ultrasonic vibrations should be independently provided.
[0152] The method provided in the embodiment of the present application can generate ultrasonic waves through one or more devices with piezoelectric materials on the terminal device, detect the vibration caused by the ultrasonic waves, and switch the state of the terminal device display screen based on the change of vibration caused by the approach of an object. There is no need to set up a separate proximity light sensor, and it is also possible to prevent accidental touches during a call with the receiver, which is beneficial to saving the production cost of the terminal device.
[0153] As an optional embodiment, the method also includes: when the voltage value does not meet the preset conditions, the terminal device is in the handset call mode, and the display screen is in the off state, switching the display screen to the bright screen state through the processor.
[0154] As an optional embodiment, the method also includes: when the voltage value meets the preset conditions, the anti-mistouch mode of the terminal device is in an enabled state, and the display screen is in a bright screen state, activating the anti-mistouch mode, and when the anti-mistouch mode is in an activated state, the terminal device does not respond to the user's operation on the preset area of the display screen.
[0155] As an optional embodiment, the first component and the second component are both arranged in contact with the display screen, or the first component and the second component are both arranged at a distance from the display screen.
[0156] As an optional embodiment, the first device is a speaker or a receiver.
[0157] As an optional embodiment, the second device is a speaker, a receiver or a microphone.
[0158] As an optional embodiment, the frequency of the ultrasonic wave is the resonance frequency of the second piezoelectric material.
[0159] The beneficial effects of the proximity sensing method provided in the embodiment of the present application are similar to the beneficial effects of the aforementioned terminal device with proximity sensing function, which will not be repeated here.
[0160] In the description of the present application, it should be understood that the terms "upper", "lower", "front", "back", "left", "right", "top", "bottom", "inside", "outside", etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.
[0161] In the embodiments of the present application, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to the specific circumstances.
[0162] The terms "first", "second", "third", etc. in the specification and claims of the embodiments of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present application described herein can, for example, be implemented in an order other than those illustrated or described herein. In addition, the terms "may include" and "have" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0163] The above embodiments are only used to illustrate the technical solutions of the embodiments of the present application, rather than to limit them. Although the embodiments of the present application are described in detail with reference to the aforementioned embodiments, ordinary technicians in this field should understand that they can still modify the technical solutions recorded in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents, and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A terminal device with a proximity sensing function, characterized in that: The terminal device comprises a first device provided with a first piezoelectric material, a second device provided with a second piezoelectric material, a processor and a display screen, wherein the first device, the second device and the processor are arranged under the display screen, and the processor is connected to the first device and the second device; The first device is used to generate ultrasonic waves through the reverse voltage effect of the first piezoelectric material; The second device is used to detect the vibration of the second piezoelectric material caused by the ultrasonic wave, and output an electrical signal according to the vibration of the second piezoelectric material; The processor is used to convert the electrical signal into a voltage value, and when the voltage value meets a preset condition, the terminal device is in a handset call mode, and the display screen is in a screen-on state, switch the display screen to a screen-off state, wherein the first preset condition is that the voltage value is greater than a first preset threshold, or the voltage value is less than a second preset threshold, and the first preset threshold is greater than the second preset threshold.
2. The terminal device according to claim 1, characterized in that: The processor is further configured to: When the voltage value does not meet the preset condition, the terminal device is in the handset talk mode, and the display screen is in the off state, the display screen is switched to the on state.
3. The terminal device according to claim 1 or 2, characterized in that: The processor is further configured to: When the voltage value meets the preset condition, the anti-mistouch mode of the terminal device is in an enabled state, and the display screen is in a bright screen state, the anti-mistouch mode is activated. When the anti-mistouch mode is in an activated state, the terminal device does not respond to the user's operation on the preset area of the display screen.
4. The terminal device according to any one of claims 1 to 3, characterized in that: The first component and the second component are both arranged in close contact with the display screen.
5. The terminal device according to any one of claims 1 to 3, characterized in that: The first device and the second device are both spaced apart from the display screen.
6. The terminal device according to any one of claims 1 to 5, characterized in that: The first device is a speaker or a receiver.
7. The terminal device according to any one of claims 1 to 6, characterized in that: The second device is a speaker, a receiver or a microphone.
8. The terminal device according to any one of claims 1 to 7, characterized in that: The frequency of the ultrasonic wave is the resonance frequency of the second piezoelectric material.
9. A proximity sensing method, characterized in that: Applied to a terminal device including a first device provided with a first piezoelectric material, a second device provided with a second piezoelectric material, a processor and a display screen, the method comprising: generating ultrasonic waves through the reverse voltage effect of the first piezoelectric material of the first device; detecting the vibration of the second piezoelectric material caused by the ultrasonic wave through the second device, and outputting an electrical signal according to the vibration of the second piezoelectric material; The processor converts the electrical signal into a voltage value, and when the voltage value meets a preset condition, the terminal device is in a handset call mode, and the display screen is in a screen-on state, the display screen is switched to a screen-off state, wherein the first preset condition is that the voltage value is greater than a first preset threshold, or the voltage value is less than a second preset threshold, and the first preset threshold is greater than the second preset threshold.
10. The method according to claim 9, characterized in that The method further comprises: When the voltage value does not meet the preset condition, the terminal device is in the handset mode, and the display screen is in the off state, the processor switches the display screen to the on state.
11. The method according to claim 9 or 10, characterized in that: The method further comprises: When the voltage value meets the preset condition, the anti-mistouch mode of the terminal device is in an enabled state, and the display screen is in a bright screen state, the anti-mistouch mode is activated. When the anti-mistouch mode is in an activated state, the terminal device does not respond to the user's operation on the preset area of the display screen.
12. The method according to any one of claims 9 to 11, characterized in that The first device and the second device are both arranged in contact with the display screen.
13. The method according to any one of claims 9 to 11, characterized in that The first device and the second device are both spaced apart from the display screen.
14. The method according to any one of claims 9 to 13, characterized in that The first device is a speaker or a receiver.
15. The method according to any one of claims 9 to 14, characterized in that The second device is a speaker, a receiver or a microphone.
16. The method according to any one of claims 9 to 15, characterized in that The frequency of the ultrasonic wave is the resonance frequency of the second piezoelectric material.