Position relationship detection method and apparatus, electronic device, and storage medium

By acquiring attitude data and antenna capacitance values ​​from the mobile terminal, and determining the compensation value, the problem of inaccurate positional relationship detection of the mobile terminal is solved, thereby improving the accuracy of detection and the effectiveness of the anti-accidental touch function.

CN115373533BActive Publication Date: 2026-06-19BEIJING XIAOMI MOBILE SOFTWARE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
Filing Date
2021-05-20
Publication Date
2026-06-19

AI Technical Summary

Technical Problem

As mobile terminals develop towards larger displays, higher screen ratios, and curved screens, the probability of accidental touches increases, and existing technologies cannot guarantee the accuracy of detecting the positional relationship between the target object and the mobile terminal.

Method used

By acquiring attitude data collected by the first sensor, the attitude of the mobile terminal is determined, and the antenna capacitance value collected by the second sensor is acquired under the preset attitude. The compensation value is determined or updated, and the positional relationship between the target object and the mobile terminal is determined using the compensation value and the second capacitance value.

🎯Benefits of technology

It improves the accuracy of detecting the positional relationship between the target object and the mobile terminal, reduces the impact of environmental factors and external structures such as protective shells on detection, and enhances the accuracy of the anti-accidental touch function.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115373533B_ABST
    Figure CN115373533B_ABST
Patent Text Reader

Abstract

This disclosure relates to a positional relationship detection method, apparatus, electronic device, and storage medium. The method is applied to a mobile terminal and includes: acquiring attitude data collected by a first sensor; determining the attitude of the mobile terminal based on the attitude data; in response to the mobile terminal's attitude being a preset attitude, acquiring a first capacitance value of the mobile terminal's antenna collected by a second sensor, and determining or updating a compensation value based on the first capacitance value; acquiring a second capacitance value of the mobile terminal's antenna collected by the second sensor, and determining the positional relationship between a target object and the mobile terminal based on the second capacitance value and the compensation value. Because the compensation value is determined or updated using the first capacitance value of the antenna collected by the second sensor under the preset attitude, and the second capacitance value is compensated using the compensation value, the accuracy of detecting the positional relationship between the target object and the mobile terminal is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of mobile terminal technology, specifically to a location relationship detection method, apparatus, electronic device, and storage medium. Background Technology

[0002] In recent years, mobile terminals such as smartphones have been developing towards larger displays, higher screen-to-body ratios, and curved screens. These advancements have continuously improved the display quality, but have also increased the likelihood of accidental touches. While it's possible to determine the positional relationship between a target object and the mobile terminal by analyzing the capacitance value of the antenna within the terminal, thus triggering anti-accidental touch functions, the diverse usage scenarios of mobile terminals in these technologies make it impossible to guarantee the accuracy of detecting the positional relationship between the target object and the mobile terminal. Summary of the Invention

[0003] To overcome the problems existing in the related technologies, the present disclosure provides a positional relationship detection method, apparatus, electronic device and storage medium to solve the defects in the related technologies.

[0004] According to a first aspect of the present disclosure, a location relationship detection method is provided, applied to a mobile terminal, comprising:

[0005] Acquire attitude data collected by the first sensor;

[0006] The attitude of the mobile terminal is determined based on the attitude data;

[0007] In response to the mobile terminal's posture being a preset posture, the first capacitance value of the mobile terminal's antenna collected by the second sensor is obtained, and a compensation value is determined or updated based on the first capacitance value.

[0008] The second capacitance value of the antenna of the mobile terminal collected by the second sensor is obtained, and the positional relationship between the target object and the mobile terminal is determined based on the second capacitance value and the compensation value.

[0009] In one embodiment, determining the attitude of the mobile terminal based on the attitude data includes:

[0010] If the time during which the posture data remains within the data range corresponding to the preset posture exceeds a preset time threshold, it is determined that the mobile terminal is in the preset posture.

[0011] In one embodiment, the preset posture includes a static posture and a vertical posture, wherein the vertical posture is when the angle between the plane where the mobile terminal's display screen is located and the vertical direction is less than a preset angle.

[0012] In one embodiment, determining or updating the compensation value based on the first capacitance value includes:

[0013] The compensation value is determined or updated to the minimum value among the first capacitance values.

[0014] In one embodiment, determining the positional relationship between the target object and the mobile terminal based on the second capacitance value and the compensation value includes:

[0015] The difference between the second capacitance value and the compensation value is determined as the actual capacitance value;

[0016] In response to the actual capacitance value being greater than a preset capacitance threshold, the positional relationship between the target object and the mobile terminal is determined to be close.

[0017] In one embodiment, obtaining the first capacitance value of the mobile terminal's antenna collected by the second sensor, and determining or updating the compensation value based on the first capacitance value, includes:

[0018] The first capacitance value of each antenna of the mobile terminal collected by the second sensor is obtained, and the compensation value of the corresponding antenna is determined or updated based on each first capacitance value.

[0019] The step of acquiring the second capacitance value of the antenna of the mobile terminal collected by the second sensor, and determining the positional relationship between the target object and the mobile terminal based on the second capacitance value and the compensation value, includes:

[0020] The second capacitance value of each antenna of the mobile terminal is acquired by the second sensor, and the positional relationship between the target object and the first corresponding area of ​​the mobile terminal is determined based on the second capacitance value of each antenna and the compensation value, wherein the first corresponding area is the area of ​​the mobile terminal corresponding to the antenna.

[0021] In one embodiment, it also includes:

[0022] In response to the fact that the minimum value among the second capacitance values ​​is less than the compensation value, the compensation value is updated to the minimum value among the second capacitance values.

[0023] In one embodiment, it also includes:

[0024] In response to the proximity relationship between the target object and the mobile terminal, the second corresponding area of ​​the mobile terminal's display screen is determined to be in an anti-accidental touch state, wherein the second corresponding area is the area of ​​the display screen corresponding to the antenna to which the second capacitance value belongs.

[0025] In one embodiment, the first sensor includes a motion sensor, and the attitude data includes acceleration data; and / or,

[0026] The second sensor includes an electromagnetic wave absorption rate sensor.

[0027] According to a second aspect of the present disclosure, a target object detection device is provided, applied to a mobile terminal, comprising:

[0028] The first acquisition module is used to acquire attitude data collected by the first sensor;

[0029] An attitude determination module is used to determine the attitude of the mobile terminal based on the attitude data;

[0030] The compensation determination module is used to, in response to the mobile terminal's posture being a preset posture, acquire the first capacitance value of the mobile terminal's antenna collected by the second sensor, and determine or update the compensation value based on the first capacitance value.

[0031] The location determination module is used to acquire the second capacitance value of the antenna of the mobile terminal collected by the second sensor, and determine the positional relationship between the target object and the mobile terminal based on the second capacitance value and the compensation value.

[0032] In one embodiment, the attitude determination module is specifically used for:

[0033] If the time during which the posture data remains within the data range corresponding to the preset posture exceeds a preset time threshold, it is determined that the mobile terminal is in the preset posture.

[0034] In one embodiment, the preset posture includes a stationary posture and a moving posture, wherein the moving posture is when the angle between the plane where the display screen of the mobile terminal is located and the vertical direction is less than a preset angle.

[0035] In one embodiment, the compensation determination module is specifically used for:

[0036] The compensation value is determined or updated to the minimum value among the first capacitance values.

[0037] In one embodiment, the location determination module is specifically used for:

[0038] The difference between the second capacitance value and the compensation value is determined as the actual capacitance value;

[0039] In response to the actual capacitance value being greater than a preset capacitance threshold, the positional relationship between the target object and the mobile terminal is determined to be close.

[0040] In one embodiment, the compensation determination module is specifically used for:

[0041] The first capacitance value of each antenna of the mobile terminal collected by the second sensor is obtained, and the compensation value of the corresponding antenna is determined or updated based on each first capacitance value.

[0042] The location determination module is specifically used for:

[0043] The second capacitance value of each antenna of the mobile terminal is acquired by the second sensor, and the positional relationship between the target object and the first corresponding area of ​​the mobile terminal is determined based on the second capacitance value of each antenna and the compensation value, wherein the first corresponding area is the area of ​​the mobile terminal corresponding to the antenna.

[0044] In one embodiment, an update module is also included, for:

[0045] In response to the fact that the minimum value among the second capacitance values ​​is less than the compensation value, the compensation value is updated to the minimum value among the second capacitance values.

[0046] In one embodiment, an anti-accidental touch module is also included, specifically for:

[0047] In response to the proximity relationship between the target object and the mobile terminal, the second corresponding area of ​​the mobile terminal's display screen is determined to be in an anti-accidental touch state, wherein the second corresponding area is the area of ​​the display screen corresponding to the antenna to which the second capacitance value belongs.

[0048] In one embodiment, the first sensor includes a motion sensor, and the attitude data includes acceleration data; and / or,

[0049] The second sensor includes an electromagnetic wave absorption rate sensor.

[0050] According to a third aspect of the present disclosure, an electronic device is provided, the electronic device including a memory and a processor, the memory being used to store computer instructions executable on the processor, and the processor being used to execute the computer instructions based on the positional relationship detection method described in the first aspect.

[0051] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect.

[0052] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:

[0053] This disclosure acquires attitude data collected by a first sensor and determines the attitude of the mobile terminal based on the attitude data. Then, in response to the mobile terminal's attitude being a preset attitude, it acquires a first capacitance value of the mobile terminal's antenna collected by a second sensor, determines or updates a compensation value based on the first capacitance value, and finally acquires a second capacitance value of the mobile terminal's antenna collected by the second sensor. Based on the second capacitance value and the compensation value, it determines the positional relationship between the target object and the mobile terminal. Because the compensation value is determined or updated using the first capacitance value of the antenna collected by the second sensor under the preset attitude, and the second capacitance value and the compensation value are used when determining the positional relationship between the target object and the mobile terminal (i.e., the compensation value is used to compensate for the second capacitance value), the accuracy of detecting the positional relationship between the target object and the mobile terminal is improved. Attached Figure Description

[0054] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0055] Figure 1 This is a flowchart illustrating a positional relationship detection method according to an exemplary embodiment of this disclosure;

[0056] Figure 2 This is a schematic diagram of the structure of a mobile terminal shown in an exemplary embodiment of the present disclosure;

[0057] Figure 3 This is a schematic diagram of the structure of a mobile terminal shown in another exemplary embodiment of this disclosure;

[0058] Figure 4 This is a schematic diagram of the structure of a target object detection device shown in an exemplary embodiment of the present disclosure;

[0059] Figure 5 This is a block diagram of an electronic device illustrated in an exemplary embodiment of the present disclosure. Detailed Implementation

[0060] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0061] The terminology used in this disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The singular forms “a,” “the,” and “the” as used in this disclosure and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

[0062] It should be understood that although the terms first, second, third, etc., may be used in this disclosure to describe various information, such information should not be limited to these terms. These terms are used only to distinguish information of the same type from one another. For example, without departing from the scope of this disclosure, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."

[0063] During the use of mobile terminals such as mobile phones, various environmental factors, including ambient humidity and objects in contact with the device, can affect the capacitance value of the antenna. Therefore, it is easy for the positional relationship between the target object and the mobile terminal to be inaccurate.

[0064] Based on this, in a first aspect, at least one embodiment of this disclosure provides a method for detecting positional relationships, please refer to the appendix. Figure 1 The diagram illustrates the process of the method, including steps S101 to S104.

[0065] This method is applied to a mobile terminal, which can, for example... Figure 2 and Figure 3 As shown, Figure 2 For mobile terminal 101, Figure 3 For a mobile terminal 101 with a protective case 102 installed. This method is applied to... Figure 2 When the mobile terminal 101 shown is used, it can be used to eliminate the problem of inaccurate detection of the positional relationship between the target object and the mobile terminal caused by environmental changes. This method is applied to... Figure 3 When the mobile terminal 101 shown is used, it can be used to eliminate problems such as inaccurate detection of the positional relationship between the target object and the mobile terminal caused by environmental changes, including the protective case 102. Figure 2 and Figure 3 In the mobile terminal 101, there are a first sensor 1011, a second sensor 1012 and an antenna 1013.

[0066] Positional relationship detection refers to detecting the positional relationship between a target object and a mobile terminal. For example, if the target object is a hand, then the detection would be the positional relationship between the hand and the mobile terminal. The positional relationship between the target object and the mobile terminal can include proximity and distance states. A proximity state could be the state where the hand is holding or touching the mobile terminal, while a distance state could be the state where the user is not touching the mobile terminal. Furthermore, the positional relationship between the target object and the mobile terminal can also include the positional relationship between the target object and a specific area of ​​the mobile terminal.

[0067] In step S101, attitude data collected by the first sensor is acquired.

[0068] The attitude data collected by the first sensor is used to determine the attitude of the mobile terminal. The first sensor may include a motion sensor, such as an accelerometer and / or a gyroscope. Correspondingly, the attitude data can be motion data, such as acceleration data.

[0069] When acquiring attitude data from the first sensor, the terminal can acquire it in real time or according to a preset method. Understandably, real-time acquisition involves a higher acquisition frequency, resulting in higher power consumption for the mobile terminal. Therefore, the acquisition frequency can be reduced without compromising the accuracy of the attitude data. The terminal can acquire attitude data periodically or at different frequencies during different time periods, i.e., according to a preset method. For example, a low frequency can be used from 10 PM to 7 AM the next morning, while a high frequency or real-time acquisition is used from 7 AM to 10 PM. Another example is when the mobile terminal is stationary for an extended period (the specific duration of which can be preset at the factory and / or set by the user as needed), at a low frequency.

[0070] In step S102, the attitude of the mobile terminal is determined based on the attitude data.

[0071] The posture of the mobile terminal can be its orientation and angle, or its static or dynamic state. At least one preset posture can be set in advance, and the posture of the mobile terminal includes these preset postures and other postures, with the other postures being a collective term for all postures other than the preset postures.

[0072] Optionally, when determining the attitude of the mobile terminal, a corresponding data range can be pre-set for each preset attitude, i.e., the range of attitude data corresponding to the preset attitude, such as the acceleration range. Then, in response to the time that the attitude data remains within the data range corresponding to the preset attitude, if it exceeds a preset time threshold, it is determined that the mobile terminal is in the preset attitude. In one example, the preset attitude is a stationary attitude, and its corresponding acceleration range is 0. Therefore, when the acceleration collected by the first sensor is 0, it can be determined that the mobile terminal is in a stationary state.

[0073] In step S103, in response to the mobile terminal's posture being a preset posture, the first capacitance value of the mobile terminal's antenna collected by the second sensor is obtained, and a compensation value is determined or updated based on the first capacitance value.

[0074] The preset posture can be selected when the capacitance value of the mobile terminal is less affected by environmental factors, such as when the mobile terminal is in a stationary or vertical posture. The vertical posture is defined as the angle between the plane of the mobile terminal's display screen and the vertical direction being less than a preset angle, for example, 30°. In the stationary state, the mobile terminal is in a fixed position, and the capacitance value is less affected by environmental factors. In the vertical posture, the mobile terminal is close to vertical, i.e., when the mobile terminal is placed inside clothing or a bag by the user, and the capacitance value is less affected by environmental factors. Therefore, the antenna capacitance value in these two states can be used as reference data to determine whether the antenna capacitance value is affected by environmental factors. Thus, compensation values ​​are determined or updated under these preset postures. If the compensation value has not yet been determined, it is determined for the first time under these preset postures; if the compensation value has already been determined, it is updated under these postures.

[0075] The second sensor can be a Specific Absorption Rate (SAR) sensor. This SAR sensor can acquire the capacitance value of the mobile terminal's antenna. When the mobile terminal is in one of the aforementioned preset postures, the capacitance value of the antenna acquired by the second sensor is recorded as a first capacitance value. This first capacitance value can be used to determine or update the compensation value. The mobile terminal saves the latest compensation value for later use in determining positional relationships.

[0076] Optionally, the compensation value can be determined or updated to the minimum value among the first capacitance values. The minimum value among the first capacitance values ​​can represent the capacitance value when the mobile terminal is in the most stable state, and therefore the influence of environmental factors is the least. Therefore, determining or updating the minimum value among the first capacitance values ​​as the compensation value can improve the accuracy of the compensation value, thereby improving the accuracy of detecting the positional relationship between the target object and the mobile terminal.

[0077] In step S104, the second capacitance value of the antenna of the mobile terminal collected by the second sensor is obtained, and the positional relationship between the target object and the mobile terminal is determined based on the second capacitance value and the compensation value.

[0078] This step can be performed when the mobile terminal is in a posture other than the preset posture. Specifically, when the mobile terminal is in the preset posture, it is used to determine the compensation value; when the mobile terminal is in a posture other than the preset posture, it is used to determine the positional relationship between the target object and the mobile terminal. Since the preset posture is defined based on the principle of minimizing the impact of environmental factors on the capacitance value of the mobile terminal's antenna, it can be assumed that when the mobile terminal is in the preset posture, the positional relationship between the target object and the mobile terminal is far away.

[0079] In this step, the capacitance value of the mobile terminal's antenna collected by the second sensor can be recorded as the second capacitance value. The mobile terminal can obtain the second capacitance value and determine the positional relationship between the target object and the mobile terminal based on the second capacitance value and the compensation value. When the target object is far away from the antenna, the antenna is in an unattended state, and the antenna capacitance value is small; when a target object approaches the antenna, the antenna capacitance value increases.

[0080] Optionally, firstly, the difference between the second capacitance value and the compensation value is determined as the actual capacitance value; nextly, in response to the actual capacitance value being greater than a preset capacitance threshold, the positional relationship between the target object and the mobile terminal is determined to be a proximity relationship. When determining the difference between the second capacitance value and the compensation value, the difference can be obtained by subtracting the compensation value from the second capacitance value and used as the actual capacitance value. Since the compensation value is the change in antenna capacitance value caused by external structures such as the protective casing of the mobile terminal, subtracting the compensation value from the second capacitance value can eliminate this change caused by external structures such as the protective casing. That is, the actual capacitance value is the change in capacitance caused by contact with the target object, thus eliminating the influence of external structures such as the protective casing on the detection of the positional relationship between the target object and the mobile terminal. When human tissue approaches the antenna, the antenna capacitance value increases. Therefore, a preset capacitance threshold can be used. When the increase in antenna capacitance value reaches this threshold, it is determined that human tissue is approaching, i.e., the positional relationship between the target object and the mobile terminal is determined to be a proximity relationship.

[0081] This disclosure acquires attitude data collected by a first sensor and determines the attitude of the mobile terminal based on the attitude data. Then, in response to the mobile terminal's attitude being a preset attitude, it acquires a first capacitance value of the mobile terminal's antenna collected by a second sensor, determines or updates a compensation value based on the first capacitance value, and finally acquires a second capacitance value of the mobile terminal's antenna collected by the second sensor. Based on the second capacitance value and the compensation value, it determines the positional relationship between the target object and the mobile terminal. Because the compensation value is determined or updated using the first capacitance value of the antenna collected by the second sensor under the preset attitude, and the second capacitance value and the compensation value are used when determining the positional relationship between the target object and the mobile terminal (i.e., the compensation value is used to compensate for the second capacitance value), the accuracy of detecting the positional relationship between the target object and the mobile terminal is improved.

[0082] In some embodiments of this disclosure, reference may be made to the appendix. Figure 2 and attached Figure 3 The mobile terminal 101 may have multiple antennas 1013, and each antenna 1013 corresponds to a different area of ​​the mobile terminal 101 and a different area of ​​the display screen. The area of ​​the mobile terminal 101 corresponding to the antenna 1013 can be recorded as the first corresponding area, and the area of ​​the display screen corresponding to the antenna 1013 can be recorded as the second corresponding area.

[0083] Based on this, the determination of the compensation value and the positional relationship between the target object and the mobile terminal can be targeted, i.e., determined separately for different antennas. Optionally, the first capacitance value of each antenna of the mobile terminal collected by the second sensor can be obtained, and the compensation value of the corresponding antenna can be determined or updated based on each first capacitance value; the second capacitance value of each antenna of the mobile terminal collected by the second sensor can be obtained, and the positional relationship between the target object and the first corresponding area of ​​the mobile terminal can be determined based on the second capacitance value of each antenna and the compensation value, wherein the first corresponding area is the area of ​​the mobile terminal corresponding to the antenna. The specific methods for determining the compensation value and the positional relationship between the target object and the first corresponding area can be the methods mentioned in the above embodiments, or other methods can be used, and this application does not limit them.

[0084] In this embodiment, by determining the compensation value and positional relationship for different antennas, the positional relationship between the target object and the mobile terminal can be determined more accurately. When the anti-mistouch function is activated according to the above positional relationship, it can be more targeted and reduce the area of ​​the display screen in the anti-mistouch state, thereby preventing accidental touches from causing misoperation and avoiding unnecessary impact on the display screen.

[0085] In some embodiments of this disclosure, when acquiring the second capacitance value of the antenna of the mobile terminal collected by the second sensor, and determining the positional relationship between the target object and the mobile terminal based on the second capacitance value and the compensation value, the compensation value can be updated to the minimum value among the second capacitance values ​​if the minimum value among the second capacitance values ​​is less than the compensation value. That is, when there is a value among the second capacitance values ​​that is less than the compensation value, the compensation value cannot represent the capacitance value when the target object has the least impact on the antenna capacitance value. Therefore, the compensation value cannot accurately exclude capacitance value changes caused by environmental changes or external structures such as mobile phone cases. Therefore, it is necessary to further update the compensation value, i.e., update the minimum value among the second capacitance values ​​to the compensation value, thereby improving the accuracy of the compensation value and, consequently, improving the accuracy of the positional relationship between the target object and the mobile terminal determined based on this compensation value.

[0086] In some embodiments of this disclosure, after determining the positional relationship between the target object and the mobile terminal, in response to the fact that the positional relationship between the target object and the mobile terminal is close, the second corresponding area of ​​the mobile terminal's display screen can be determined to be in an anti-accidental touch state, wherein the second corresponding area is the area of ​​the display screen corresponding to the antenna to which the second capacitance value belongs.

[0087] In this embodiment, by using compensation values ​​to eliminate the influence of environmental changes and external structures such as protective shells on the antenna capacitance value, the influence of the target object on the antenna capacitance value is accurately determined. After determining the positional relationship between the target object and the mobile terminal, the anti-mistouch function of the display screen can be accurately activated or deactivated. Moreover, the anti-mistouch area can be accurately determined based on the position of the antenna, thus improving the accuracy of the anti-mistouch function. In other words, it can accurately activate the anti-mistouch function to avoid accidental operation and avoid affecting the use of the display screen.

[0088] Please refer to the appendix. Figure 4 According to a second aspect of the present disclosure, a target object detection device is provided, applied to a mobile terminal, comprising:

[0089] The first acquisition module 401 is used to acquire attitude data collected by the first sensor;

[0090] The attitude determination module 402 is used to determine the attitude of the mobile terminal based on the attitude data;

[0091] The compensation determination module 403 is used to, in response to the mobile terminal's posture being a preset posture, acquire the first capacitance value of the mobile terminal's antenna collected by the second sensor, and determine or update the compensation value based on the first capacitance value.

[0092] The position determination module 404 is used to obtain the second capacitance value of the antenna of the mobile terminal collected by the second sensor, and determine the positional relationship between the target object and the mobile terminal based on the second capacitance value and the compensation value.

[0093] In some embodiments of this disclosure, the attitude determination module is specifically used for:

[0094] If the time during which the posture data remains within the data range corresponding to the preset posture exceeds a preset time threshold, it is determined that the mobile terminal is in the preset posture.

[0095] In some embodiments of this disclosure, the preset posture includes a stationary posture and a moving posture, wherein the moving posture is when the angle between the plane where the display screen of the mobile terminal is located and the vertical direction is less than a preset angle.

[0096] In some embodiments of this disclosure, the compensation determination module is specifically used for:

[0097] The compensation value is determined or updated to the minimum value among the first capacitance values.

[0098] In some embodiments of this disclosure, the position determination module is specifically used for:

[0099] The difference between the second capacitance value and the compensation value is determined as the actual capacitance value;

[0100] In response to the actual capacitance value being greater than a preset capacitance threshold, the positional relationship between the target object and the mobile terminal is determined to be close.

[0101] In some embodiments of this disclosure, the compensation determination module is specifically used for:

[0102] The first capacitance value of each antenna of the mobile terminal collected by the second sensor is obtained, and the compensation value of the corresponding antenna is determined or updated based on each first capacitance value.

[0103] The location determination module is specifically used for:

[0104] The second capacitance value of each antenna of the mobile terminal is acquired by the second sensor, and the positional relationship between the target object and the first corresponding area of ​​the mobile terminal is determined based on the second capacitance value of each antenna and the compensation value, wherein the first corresponding area is the area of ​​the mobile terminal corresponding to the antenna.

[0105] In some embodiments of this disclosure, an update module is also included, for:

[0106] In response to the fact that the minimum value among the second capacitance values ​​is less than the compensation value, the compensation value is updated to the minimum value among the second capacitance values.

[0107] In some embodiments of this disclosure, an anti-accidental touch module is also included, specifically for:

[0108] In response to the proximity relationship between the target object and the mobile terminal, the second corresponding area of ​​the mobile terminal's display screen is determined to be in an anti-accidental touch state, wherein the second corresponding area is the area of ​​the display screen corresponding to the antenna to which the second capacitance value belongs.

[0109] In one embodiment, the first sensor includes a motion sensor, and the attitude data includes acceleration data; and / or,

[0110] The second sensor includes an electromagnetic wave absorption rate sensor.

[0111] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments of the method in the first aspect, and will not be elaborated upon here.

[0112] According to the fifth aspect of the embodiments of this disclosure, please refer to the appendix. Figure 5 The diagram illustrates, for example, a block diagram of an electronic device. For instance, device 500 could be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0113] Reference Figure 5 The device 500 may include one or more of the following components: a processing component 502, a memory 504, a power supply component 506, a multimedia component 508, an audio component 510, an input / output (I / O) interface 512, a sensor component 514, and a communication component 516.

[0114] Processing component 502 typically controls the overall operation of device 500, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 502 may include one or more processors 520 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 502 may include one or more modules to facilitate interaction between processing component 502 and other components. For example, processing component 502 may include a multimedia module to facilitate interaction between multimedia component 508 and processing component 502.

[0115] Memory 504 is configured to store various types of data to support the operation of device 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, etc. Memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0116] The power supply component 506 provides power to the various components of the device 500. The power supply component 506 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to the device 500.

[0117] Multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 508 includes a front-facing camera and / or a rear-facing camera. When the device 500 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0118] Audio component 510 is configured to output and / or input audio signals. For example, audio component 510 includes a microphone (MIC) configured to receive external audio signals when device 500 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 504 or transmitted via communication component 516. In some embodiments, audio component 510 also includes a speaker for outputting audio signals.

[0119] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0120] Sensor assembly 514 includes one or more sensors for providing status assessments of various aspects of device 500. For example, sensor assembly 514 may detect the on / off state of device 500, the relative positioning of components such as the display and keypad of device 500, changes in position of device 500 or a component of device 500, the presence or absence of user contact with device 500, orientation or acceleration / deceleration of device 500, and temperature changes of device 500. Sensor assembly 514 may also include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 514 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.

[0121] Communication component 516 is configured to facilitate wired or wireless communication between device 500 and other devices. Device 500 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, 4G or 5G, or combinations thereof. In one exemplary embodiment, communication component 516 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 516 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0122] In an exemplary embodiment, the device 500 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the power supply method of the aforementioned electronic device.

[0123] Sixthly, in exemplary embodiments, this disclosure also provides a non-transitory computer-readable storage medium including instructions, such as a memory 504 including instructions, which can be executed by a processor 520 of the device 500 to complete the power supply method of the electronic device. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0124] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0125] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A method for detecting positional relationships, characterized in that, Applied to mobile terminals, including: Acquire attitude data collected by the first sensor; The attitude of the mobile terminal is determined based on the attitude data; In response to the mobile terminal's posture being a preset posture, the first capacitance value of the mobile terminal's antenna collected by the second sensor is obtained, and the compensation value is determined or updated to the minimum value among the first capacitance values. The preset posture includes a stationary posture and a vertical posture, wherein the vertical posture is when the angle between the plane where the mobile terminal's display screen is located and the vertical direction is less than a preset angle. The second capacitance value of the antenna of the mobile terminal is acquired by the second sensor, and the positional relationship between the target object and the mobile terminal is determined based on the difference between the second capacitance value and the compensation value.

2. The positional relationship detection method according to claim 1, characterized in that, Determining the attitude of the mobile terminal based on the attitude data includes: If the time during which the posture data remains within the data range corresponding to the preset posture exceeds a preset time threshold, it is determined that the mobile terminal is in the preset posture.

3. The positional relationship detection method according to claim 1, characterized in that, Determining the positional relationship between the target object and the mobile terminal based on the second capacitance value and the compensation value includes: The difference between the second capacitance value and the compensation value is determined as the actual capacitance value; In response to the actual capacitance value being greater than a preset capacitance threshold, the positional relationship between the target object and the mobile terminal is determined to be close.

4. The positional relationship detection method according to claim 1 or 3, characterized in that, The step of acquiring the first capacitance value of the mobile terminal's antenna collected by the second sensor, and determining or updating the compensation value based on the first capacitance value, includes: The first capacitance value of each antenna of the mobile terminal collected by the second sensor is obtained, and the compensation value of the corresponding antenna is determined or updated based on each first capacitance value. The step of acquiring the second capacitance value of the antenna of the mobile terminal collected by the second sensor, and determining the positional relationship between the target object and the mobile terminal based on the second capacitance value and the compensation value, includes: The second capacitance value of each antenna of the mobile terminal is acquired by the second sensor, and the positional relationship between the target object and the first corresponding area of ​​the mobile terminal is determined based on the second capacitance value of each antenna and the compensation value, wherein the first corresponding area is the area of ​​the mobile terminal corresponding to the antenna.

5. The positional relationship detection method according to claim 1 or 3, characterized in that, Also includes: In response to the fact that the minimum value among the second capacitance values ​​is less than the compensation value, the compensation value is updated to the minimum value among the second capacitance values.

6. The positional relationship detection method according to claim 1 or 3, characterized in that, Also includes: In response to the proximity relationship between the target object and the mobile terminal, the second corresponding area of ​​the mobile terminal's display screen is determined to be in an anti-accidental touch state, wherein the second corresponding area is the area of ​​the display screen corresponding to the antenna to which the second capacitance value belongs.

7. The positional relationship detection method according to claim 1, characterized in that, The first sensor includes a motion sensor, and the attitude data includes acceleration data; and / or, The second sensor includes an electromagnetic wave absorption rate sensor.

8. A target object detection device, characterized in that, Applied to mobile terminals, including: The first acquisition module is used to acquire attitude data collected by the first sensor; An attitude determination module is used to determine the attitude of the mobile terminal based on the attitude data; The compensation determination module is used to respond to the mobile terminal's posture being a preset posture, to obtain the first capacitance value of the mobile terminal's antenna collected by the second sensor, and to determine or update the compensation value to the minimum value among the first capacitance values. The preset posture includes a stationary posture and a vertical posture, wherein the vertical posture is when the angle between the plane where the mobile terminal's display screen is located and the vertical direction is less than a preset angle. The location determination module is used to obtain the second capacitance value of the antenna of the mobile terminal collected by the second sensor, and determine the positional relationship between the target object and the mobile terminal based on the difference between the second capacitance value and the compensation value.

9. An electronic device, characterized in that, The electronic device includes a memory and a processor, the memory being used to store computer instructions executable on the processor, and the processor being used to execute the computer instructions based on the method of any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method of any one of claims 1 to 7.

Citation Information

Patent Citations

  • Sensor calibration method, electronic device and computer readable storage medium

    CN108759892A