Distance detection method, apparatus and terminal

By using a liquid crystal material connector between the antenna and the ground terminal, the resonant frequency of the antenna is changed by adjusting the dielectric constant with voltage, and the received level value is collected to determine the distance between the human body and the terminal. This solves the problems of low detection accuracy and temperature influence in the existing technology, and achieves high-precision distance detection.

CN116840823BActive Publication Date: 2026-06-23VIVO MOBILE COMM CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
VIVO MOBILE COMM CO LTD
Filing Date
2023-08-21
Publication Date
2026-06-23

AI Technical Summary

Technical Problem

In existing technologies, the method of detecting the distance between a human body and a mobile terminal using an external capacitor connected to an antenna has low accuracy and is easily affected by temperature.

Method used

Using liquid crystal material as the connector between the antenna and the grounding terminal, the received level value of the antenna is collected by applying different voltages. The distance between the human body and the terminal is determined by the relationship between the received level value and the distance, thus avoiding the influence of the external capacitor structure on the antenna performance.

Benefits of technology

This improved the accuracy of distance detection, reduced the impact of temperature on the detection results, and ensured the stability of antenna performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116840823B_ABST
    Figure CN116840823B_ABST
Patent Text Reader

Abstract

The application discloses a distance detection method, device and terminal, and belongs to the electronic technical field. The distance detection method is applied to a terminal, the terminal comprises an antenna, and the material of a connecting piece between the antenna and a grounding end is liquid crystal material. The method comprises the following steps: a plurality of different voltages are sequentially applied to the connecting piece; the receiving level values corresponding to a target frequency point in the working frequency band of the antenna under the plurality of voltages are collected respectively, so that the receiving level value corresponding to each voltage is obtained; the maximum value of the plurality of receiving level values is taken as a target level value; the voltage of the connecting piece when the target level value is collected is determined as a target voltage; based on a first corresponding relationship between the distance between a human body and the terminal and the voltage corresponding to the target frequency point, a target distance corresponding to the target voltage is determined, and the target distance is the distance between the current human body and the terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of electronic technology, specifically relating to a distance detection method, device, and terminal. Background Technology

[0002] With the development of mobile communication technology, the number of antennas on mobile terminals is increasing, the maximum transmission power of signals is becoming stronger, and the communication experience is getting better and better. However, mobile terminals inevitably generate electromagnetic radiation during communication, which can affect the human body. Specifically, with the signal transmission power of the mobile terminal remaining constant, the closer a person is to the mobile terminal, the greater the amount of electromagnetic radiation absorbed, and the greater the impact on the human body. To assess the impact of mobile terminal electromagnetic radiation on the human body, the industry has introduced the Specific Absorption Rate (SAR). SAR refers to the ratio of electromagnetic energy absorbed by a mobile phone or wireless product. It is defined as: under the influence of an external electromagnetic field, an induced electromagnetic field will be generated within the human body. Since various organs in the human body are lossy media, the electromagnetic field within the body will generate current, leading to the absorption and dissipation of electromagnetic energy.

[0003] To address the aforementioned impact of electromagnetic radiation on the human body, mobile terminals typically adjust their signal transmission power based on the detected distance between the user and the terminal. This reduces SAR (Special Radiation Protection) at shorter distances. Currently, an external capacitor connected to the antenna is commonly used to detect the distance between the user and the mobile terminal. For example... Figure 1 As shown, capacitor 101 is used to connect antenna 102 and ground 103, so that antenna 102 and ground 103 form a capacitor. By collecting the capacitance value of this capacitor, the distance between the human body and the mobile terminal can be determined.

[0004] However, this structure of connecting an external capacitor to the antenna affects antenna performance. Furthermore, the capacitance value of the capacitor formed by the antenna and ground is related to the dielectric constant of the medium between the antenna and ground. The dielectric constant is easily affected by temperature, and the use of mobile terminals may generate significant heat, causing the temperature of the mobile terminal to rise, which in turn affects the dielectric constant. Therefore, using an external capacitor for the antenna results in lower accuracy in detecting the distance between a human body and the mobile terminal. Summary of the Invention

[0005] The purpose of this application is to provide a distance detection method, device, and terminal that can solve the problem of low detection efficiency in current distance detection between humans and terminals using antennas.

[0006] To solve the above-mentioned technical problems, this application is implemented as follows:

[0007] In a first aspect, embodiments of this application provide a distance detection method applied to a terminal, the terminal including an antenna, the connector between the antenna and a grounding terminal being made of liquid crystal material, the method comprising:

[0008] Multiple different voltages are applied sequentially to the connector;

[0009] The received level values ​​of the target frequency point in the operating frequency band of the antenna are collected respectively when the connector is subjected to multiple voltages, so as to obtain the received level value corresponding to each voltage.

[0010] The maximum value of the multiple received level values ​​is taken as the target level value;

[0011] The voltage of the connector when the target level value is collected is determined as the target voltage;

[0012] Based on the first correspondence between the distance between the human body and the terminal and the voltage corresponding to the target frequency, a target distance corresponding to the target voltage is determined, wherein the target distance is the current distance between the human body and the terminal.

[0013] Secondly, embodiments of this application provide a distance detection device applied to a terminal, the terminal including an antenna, the connector between the antenna and a grounding terminal being made of liquid crystal material, and the device including:

[0014] A voltage application module is used to sequentially apply multiple different voltages to the connector;

[0015] The acquisition module is used to acquire the received level value of the target frequency point in the working frequency band of the antenna when the connector is subjected to multiple voltages, and to obtain the received level value corresponding to each voltage.

[0016] The determining module is configured to take the maximum value of a plurality of received level values ​​as a target level value; and is further configured to determine the voltage of the connector when the target level value is acquired as a target voltage; and is further configured to determine a target distance corresponding to the target voltage based on a first correspondence between the distance between the human body and the terminal and the voltage corresponding to the target frequency point, wherein the target distance is the current distance between the human body and the terminal.

[0017] Thirdly, embodiments of this application provide a terminal, which includes an antenna, a processor, a memory, and a program or instructions stored in the memory and executable on the processor. When the program or instructions are executed by the processor, they implement the steps of the method described in the first aspect. The material of the connector between the antenna and the grounding terminal is a liquid crystal material.

[0018] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.

[0019] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.

[0020] In this embodiment, the connector between the terminal's antenna and grounding terminal is a liquid crystal material connector. Multiple different voltages are sequentially applied to the connector to collect the received signal level values ​​corresponding to the target frequency of the antenna under each voltage application. The maximum value of the multiple received signal levels is taken as the target signal level value, and the voltage of the connector when the target signal level value is collected is determined as the target voltage. Based on the first correspondence between the distance between the human body and the terminal and the voltage corresponding to the target frequency, the target distance corresponding to the target voltage is determined, thus obtaining the current distance between the human body and the terminal.

[0021] In this technical solution, the resonant frequency of the antenna is shifted to a higher frequency by actively changing the voltage applied to the liquid crystal material. This counteracts the effect of the antenna's resonant frequency shifting to a lower frequency when a person approaches the terminal. Consequently, the received signal level at the target frequency point exhibits different extreme values ​​as the distance between the terminal and the person varies. By utilizing the extreme values ​​of the received signal level, the distance, and the voltage, the distance corresponding to the current target signal level is determined, thus obtaining the current distance between the person and the terminal. Furthermore, the antenna in this technical solution does not have an external capacitor structure; a metal connection between the antenna and the grounding terminal can be used, avoiding the impact of an external capacitor on antenna performance. Moreover, in this application, the distance between the person and the terminal is determined based on the received signal level of the antenna under multiple voltages applied to the connector. The received signal level is unaffected by the medium between the antenna and ground, and is therefore less susceptible to temperature fluctuations of the mobile terminal, resulting in high accuracy in distance detection. Attached Figure Description

[0022] Figure 1 This is a schematic diagram of the structure of an antenna in related technologies;

[0023] Figure 2 This is a schematic diagram illustrating the characteristics of a liquid crystal material provided in an embodiment of this application;

[0024] Figure 3 This is a schematic diagram illustrating the characteristics of another liquid crystal material provided in an embodiment of this application;

[0025] Figure 4 This is a schematic diagram illustrating the characteristics of another liquid crystal material provided in the embodiments of this application;

[0026] Figure 5 This is a schematic diagram of the structure of an antenna provided in an embodiment of this application;

[0027] Figure 6 This is a schematic diagram of another antenna structure provided in an embodiment of this application;

[0028] Figure 7 This is a schematic diagram of another antenna structure provided in the embodiments of this application;

[0029] Figure 8 This is a schematic diagram illustrating the change in the dielectric constant of a liquid crystal provided in an embodiment of this application;

[0030] Figure 9 This is a schematic diagram illustrating the variation of antenna reflection coefficient provided in an embodiment of this application;

[0031] Figure 10 This is a schematic diagram illustrating the change in antenna efficiency provided in an embodiment of this application;

[0032] Figure 11 This is a schematic diagram illustrating another variation in antenna reflection coefficient provided in an embodiment of this application;

[0033] Figure 12 This is a schematic diagram illustrating another variation in antenna efficiency provided in an embodiment of this application;

[0034] Figure 13 This is a schematic diagram illustrating the change in received signal level provided in an embodiment of this application;

[0035] Figure 14 This is a schematic diagram of the environment in which an antenna is located, provided in an embodiment of this application;

[0036] Figure 15 This is a schematic diagram illustrating another variation in the antenna reflection coefficient provided in an embodiment of this application;

[0037] Figure 16 This is another schematic diagram illustrating the variation of antenna efficiency provided in the embodiments of this application;

[0038] Figure 17 This is a schematic diagram illustrating another change in the received level value provided in an embodiment of this application;

[0039] Figure 18 This is a schematic diagram illustrating another variation in the antenna reflection coefficient provided in an embodiment of this application;

[0040] Figure 19 This is another schematic diagram illustrating the variation of antenna efficiency provided in the embodiments of this application;

[0041] Figure 20 This is another schematic diagram illustrating the change of received level value provided in the embodiments of this application;

[0042] Figure 21 This is a flowchart of a distance detection method provided in an embodiment of this application;

[0043] Figure 22 This is a flowchart of a method for generating a first correspondence provided in an embodiment of this application;

[0044] Figure 23 This is a block diagram of a distance detection device provided in an embodiment of this application;

[0045] Figure 24 This is a block diagram of an electronic device provided in an embodiment of this application;

[0046] Figure 25 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0047] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0048] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0049] The distance detection method provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.

[0050] For ease of understanding, the following concepts will be explained first in the embodiments of this application.

[0051] Liquid crystal materials. Liquid crystal materials have the following properties:

[0052] When no bias voltage is applied to the liquid crystal material, the long axes of the liquid crystal molecules are parallel to the alignment layer of the liquid crystal material. At this point, the equivalent dielectric constant of the liquid crystal material is at its minimum, denoted as ε. ⊥When a DC bias voltage is applied to a liquid crystal material, the liquid crystal molecules within it deflect under the influence of the applied electric field, with the direction of the applied electric field as their normal. The long axis of the deflected liquid crystal molecules forms an angle with the direction of the applied electric field, and the equivalent dielectric constant of the liquid crystal material increases accordingly. The greater the DC bias voltage, the greater the deflection of the liquid crystal molecules. When the bias voltage applied to the liquid crystal material reaches the saturation bias voltage, the long axis of the deflected liquid crystal molecules becomes parallel to the direction of the applied electric field. At this point, the liquid crystal molecules are arranged regularly, and the equivalent dielectric constant of the liquid crystal material reaches its maximum value, denoted as ε. || .

[0053] For specific examples, such as Figures 2 to 4 As shown, Figure 2 In this process, a zero bias voltage V is applied to the metal layer 201 outside the liquid crystal material. The long axis of the liquid crystal molecules 203 in the liquid crystal material is parallel to the alignment layer 202 of the liquid crystal material. Figure 3 In this process, the bias voltage V applied to the metal layer 201 outside the liquid crystal material is 0 < V < Vmax. The long axis of the liquid crystal molecule 203 forms a certain angle with the direction E of the applied electric field. Vmax represents the saturation bias voltage. Figure 4 In this process, a bias voltage V reaching Vmax is applied to the metal layer 201 outside the liquid crystal material. The long axis of the liquid crystal molecule 203 is parallel to the direction E of the applied electric field.

[0054] Therefore, when a voltage of the range (0, Vmax) is applied to both ends of a liquid crystal material, the equivalent dielectric constant of the liquid crystal material can change synchronously with the magnitude of the applied voltage.

[0055] Please refer to Figure 5 This illustration shows a partial antenna structure diagram of a terminal provided in an embodiment of this application. Figure 5 As shown, the material of the connector between the terminal's antenna 501 and the ground terminal GND is liquid crystal material 502. In an optional configuration, as... Figure 5 As shown, the antenna can be a grounded antenna. The gaps in the antenna are filled with liquid crystal material 502, allowing the antenna at the gaps to be connected to the ground terminal GND via a connector made of liquid crystal material. The non-gap sections of the antenna are filled with an antenna dielectric, allowing the antenna at the non-gap sections to be connected to the ground terminal GND via the antenna dielectric.

[0056] In another alternative case, such as Figure 6 As shown, liquid crystal material 502 is filled between the antenna 501 at the parasitic stub and the ground terminal GND, so that the antenna 501 at the parasitic stub is connected to the ground terminal GND through a connector 502 made of liquid crystal material. Alternatively, liquid crystal material can also be filled between the antenna and the ground terminal GND at the antenna feed structure.

[0057] In another alternative case, such as Figure 7 As shown, the antenna can be a monopole antenna. Liquid crystal material is filled between the antenna 501 of the monopole antenna and the ground terminal GND, so that the antenna 501 is connected to the ground terminal GND through a connector 502 made of liquid crystal material. It should be noted that the antenna involved in this application embodiment can also be an inverted-F antenna (IFA), a loop antenna, etc., that needs to be connected to the ground terminal. This application embodiment does not limit the type of antenna.

[0058] Optionally, the terminal further includes a power supply component. The power supply component is connected to the connector 502. The power supply component is used to apply a three-phase voltage to the connector 502 to provide a more stable voltage.

[0059] Based on the foregoing description of liquid crystal materials, it is easy to understand that in the antenna provided in this application embodiment, by adjusting the voltage applied to the liquid crystal material in the antenna, the dielectric constant of the liquid crystal material can be changed, that is, the dielectric constant between the antenna and the ground terminal can be changed, thereby changing the resonant frequency of the antenna. Figure 8 As shown, during the process of the voltage applied to the liquid crystal material in the antenna increasing from voltage UC to voltage UB2, voltage UB1, and voltage UA (UA < Vmax), the dielectric constant of the liquid crystal material correspondingly increases from dielectric constant EC to dielectric constant EB2, dielectric constant EB1, and dielectric constant EA.

[0060] The S-parameters of the antenna provided in the embodiments of this application can be obtained by performing S-parameter tests. Figure 9 and Figure 10 The results are shown. Figure 9 As shown, Figure 9 The curves C91-C94 show the changes in the antenna reflection coefficient when voltages UA, UB1, UB2, and UC are applied to the liquid crystal material in the antenna, respectively. Figure 9 When the voltage applied to the liquid crystal material in the antenna is voltage UA, the deepest point of curve C91, i.e., the minimum antenna reflection coefficient, is -9.8055149, corresponding to a frequency of 0.78 GHz. When the voltage applied to the liquid crystal material in the antenna is voltage UB1, the antenna reflection coefficient corresponding to the frequency of 0.78 GHz on curve C92 is -5.9655377. When the voltage applied to the liquid crystal material in the antenna is voltage UB2, the antenna reflection coefficient corresponding to the frequency of 0.78 GHz on curve C93 is -4.0594005. When the voltage applied to the liquid crystal material in the antenna is voltage UC, the antenna reflection coefficient corresponding to the frequency of 0.78 GHz on curve C94 is -2.7799445. Figure 9It is easy to see that as the voltage applied to the liquid crystal material in the antenna decreases, the deepest point of the antenna reflection coefficient shifts to a higher frequency, and the resonant frequency of the antenna shifts.

[0061] like Figure 10 As shown, Figure 10 The curves C101-C104 show the changes in antenna efficiency when voltages UA, UB1, UB2, and UC are applied to the liquid crystal material in the antenna, respectively. Figure 10 When the voltage applied to the liquid crystal material in the antenna is UA, the highest point of curve C101, i.e., the maximum value of the antenna efficiency, is -4.4788727, corresponding to a frequency of 0.78 GHz. When the voltage applied to the liquid crystal material in the antenna is UB1, the antenna efficiency corresponding to the frequency of 0.78 GHz on curve C102 is -5.459637. When the voltage applied to the liquid crystal material in the antenna is UB2, the antenna efficiency corresponding to the frequency of 0.78 GHz on curve C103 is -6.5136353. When the voltage applied to the liquid crystal material in the antenna is UC, the antenna efficiency corresponding to the frequency of 0.78 GHz on curve C104 is -7.7446804. Figure 10 It is also easy to see that as the voltage applied to the liquid crystal material in the antenna decreases, the antenna efficiency peaks at higher frequencies, and the antenna's resonant frequency shifts.

[0062] Based on this, embodiments of this application provide a distance detection method that utilizes the aforementioned antenna characteristics to detect the actual distance between a human body and a terminal. For ease of understanding, the detection principle of the distance detection method will be explained below.

[0063] When there are no human beings around the antenna, meaning there are no human beings around the terminal where the antenna is located, and the environment where the antenna is located is not affected by human beings, the change curve of the antenna reflection coefficient is as follows: Figure 11 The curve C111 shows the change. When a human body is close to the antenna, the human body replaces the air as the medium of the antenna's surrounding environment, increasing the dielectric constant of the environment and causing the antenna's resonant frequency to shift to a lower frequency. Consequently, the antenna's reflection coefficient changes accordingly. Figure 11 The curve C112 shown is a variation curve. Figure 11It's easy to see that the deepest point of the variation curve C111, corresponding to the minimum value of the antenna reflection coefficient, corresponds to frequency F0 of 0.78 GHz. When a person is close to the antenna, the frequency point of the minimum antenna reflection coefficient shifts to a lower frequency, and the antenna reflection coefficient corresponding to frequency F0 increases, i.e., deteriorates. Because the antenna reflection coefficient at frequency F0 deteriorates, when the antenna's operating frequency is F0, the presence of a person near the antenna leads to a decrease in antenna performance compared to when no person is near the antenna.

[0064] Similarly, when there are no people around the antenna, the antenna efficiency variation curve is as follows: Figure 12 The curve C121 shows the change. When a human body is close to the antenna, the antenna efficiency also changes due to the increase in the dielectric constant of the surrounding environment. Figure 12 The curve C122 shown is a variation curve. Figure 12 It is easy to see that the frequency point F0 corresponding to the maximum antenna efficiency in curve C121 is 0.78 GHz. When a person is close to the antenna, the frequency point of the maximum antenna efficiency shifts to a lower frequency, and the antenna efficiency corresponding to frequency point F0 decreases, i.e., deteriorates. Similarly, when the antenna's operating frequency is frequency point F0, compared to the case where no person is close to the antenna, a person's proximity to the antenna will cause a decrease in antenna performance.

[0065] It should be noted that, Figure 11 The antenna reflection coefficient and Figure 12 The antenna efficiency data shown are based on the antenna reflection coefficient and antenna efficiency under the condition that a voltage UA is applied externally to the liquid crystal material in the antenna. (The preceding text appears to be incomplete and requires further context.) Figure 11 and Figure 12 The data shown is used as an example to illustrate: Compared to the case where no human is near the antenna, when a human is near the antenna, the lowest point of the antenna reflection coefficient and the highest point of the antenna efficiency will both shift to lower frequencies, resulting in a low-frequency shift in the antenna's resonant frequency.

[0066] If, in the absence of human beings around the antenna, a voltage is applied to the antenna's liquid crystal material, increasing from voltage UC to voltage UB2, voltage UB1, and voltage UA, the change curve of the antenna's reflection coefficient is as follows: Figure 9 The curves shown are C94-C91; the curve showing the change in antenna efficiency is... Figure 10 The curve shown is C104-C101. (The rest of the text appears to be a fragment and doesn't translate directly.) Figure 9 and Figure 10It can be seen that at the 0.780 GHz frequency point, the antenna reflection coefficient increases as the applied voltage decreases, meaning that at 0.780 GHz, the antenna reflection coefficient exhibits a unidirectional trend with decreasing applied voltage. Similarly, at the 0.780 GHz frequency point, the antenna efficiency decreases as the applied voltage decreases, also exhibiting a unidirectional trend. Based on this, if we use the received signal level, which characterizes both the antenna reflection coefficient and antenna efficiency, and substitute these values ​​into the aforementioned conclusions, then... Figure 13 As shown, in the absence of human presence around the antenna, at the 0.780 GHz frequency point, the received signal level increases with increasing applied voltage. The trend of the received signal level with increasing applied voltage is unidirectional, meaning it changes monotonically with the applied voltage. Here, the received signal level refers to the received signal level of the base station transmitted by the terminal, which is inversely proportional to the antenna reflection coefficient and directly proportional to the antenna efficiency.

[0067] like Figure 14 As shown, when a human body is close to the antenna at a distance of L1, if a voltage of decreasing magnitude is applied to the antenna's liquid crystal material, the antenna's resonant frequency will shift towards higher frequencies due to the decrease in the dielectric constant of the liquid crystal material. Conversely, as mentioned earlier, the proximity of a human body to the antenna alters the dielectric constant of the surrounding environment, causing the antenna to shift towards lower frequencies. Therefore, the resonant frequency shift caused by the applied voltage to the liquid crystal material can at least partially offset the resonant frequency shift caused by the human body's proximity. Based on this, if a voltage is applied to the antenna's liquid crystal material from UC to UB2, UB1, and UA, the antenna reflection coefficient change curve is as follows: Figure 15 The curves shown are C154-C151; the curve showing the change in antenna efficiency is... Figure 16 The curve shown is C164-C161. (The rest of the text appears to be a fragment and doesn't translate well.) Figure 15 and Figure 16 It can be seen that the frequencies corresponding to the minimum antenna reflection coefficient and the maximum antenna efficiency both shift towards lower frequencies. Furthermore, at 0.780 GHz, the antenna reflection coefficient first decreases and then increases with decreasing applied voltage. At the same frequency, the antenna efficiency first increases and then decreases with decreasing applied voltage. Based on this, if we use the received signal level, which characterizes the antenna reflection coefficient and antenna efficiency, and substitute it into the aforementioned conclusions, then... Figure 17 As shown, at the 0.780 GHz frequency point, the received voltage level first increases and then decreases with the applied voltage. The applied voltage corresponding to the extreme value of the received voltage level is UB1.

[0068] When a human body approaches the antenna again, and the distance between the human body and the antenna is L2, where L2 < L1, the resonant frequency shift of the antenna caused by the applied voltage to the liquid crystal material can further offset at least part of the resonant frequency shift caused by the human body approaching the antenna. Based on this, if a voltage is applied to the liquid crystal material of the antenna: increasing from voltage UC to voltage UB2, voltage UB1, and voltage UA, the change curve of the antenna reflection coefficient is as follows: Figure 18 The curves shown are C184-C181; the curve showing the change in antenna efficiency is... Figure 19 The curve shown is C194-C191. (The rest of the text appears to be a fragment and doesn't translate directly.) Figure 18 and Figure 19 It can be seen that the frequencies corresponding to the minimum antenna reflection coefficient and the maximum antenna efficiency both shift further down to lower frequencies. Furthermore, at 0.780 GHz, the antenna reflection coefficient first decreases and then increases with decreasing applied voltage. At the same frequency, the antenna efficiency first increases and then decreases with decreasing applied voltage. Based on this, if we use the received signal level, which characterizes the antenna reflection coefficient and antenna efficiency, and substitute it into the aforementioned conclusions, then... Figure 20 As shown, at the 0.780 GHz frequency point, the received voltage level first increases and then decreases with the applied voltage. The applied voltage corresponding to the extreme value of the received voltage level is UB2, where UB2 is less than UB1.

[0069] Based on this, even when a human body is not close to the antenna, or when a human body is close to the antenna but at different distances, the trends of the received voltage level changes differently even when multiple voltages with the same value range are applied to the liquid crystal material of the antenna. Therefore, there is a one-to-one correspondence between the distance between the human body and the antenna, the extreme value of the received voltage corresponding to the target frequency, and the voltage. Furthermore, there is a one-to-one correspondence between the distance between the human body and the antenna and the voltage corresponding to the target frequency; for example, distance L0 corresponds to voltage UA, distance L1 corresponds to voltage UB1, distance L2 corresponds to voltage UB2, and L0 = ∞. The target frequency is the frequency within the antenna's operating frequency band where, when the human body is not close to the antenna, the antenna reflection coefficient, antenna efficiency, or received voltage level changes in a unidirectional trend with the applied voltage. The distance detection method provided in the embodiments of this application will be further described below.

[0070] Please refer to Figure 21 The diagram illustrates a flowchart of a distance detection method provided in an embodiment of this application. This distance detection method can be applied to a terminal and executed by the terminal's processor. The terminal also includes an antenna, and the connector between the antenna and the grounding terminal is made of liquid crystal material. Optionally, the terminal can be... Figure 5 The terminal shown. (As shown in the image.) Figure 21 As shown, the distance detection methods include:

[0071] Step 2101: Apply multiple different voltages to the connector in sequence.

[0072] In this embodiment, the terminal stores a first correspondence between the distance between the human body and the terminal and the voltage corresponding to the target frequency. The terminal can sequentially apply multiple different voltages included in the first correspondence to the connector. Optionally, the terminal can sequentially apply multiple voltages from large to small to the connector; or, it can sequentially apply multiple voltages from small to large to the connector.

[0073] Step 2102: Collect the received level value of the target frequency point in the antenna's operating frequency band under multiple voltages applied to the connector, and obtain the received level value corresponding to each voltage.

[0074] In this embodiment, the terminal can use the received level value corresponding to the target frequency point when applying one of multiple voltages to the connector, so that after the terminal has sequentially applied all voltages to the connector, the received level value corresponding to each voltage is obtained. Where the antenna environment is unaffected by human presence, the target data corresponding to the target frequency point exhibits a unidirectional changing trend with the applied voltage. The applied voltage refers to the voltage applied to the connector. The target data is used to reflect antenna performance. Optionally, the target data can be the antenna reflection coefficient or antenna efficiency. For example, such as... Figure 9 and Figure 10 As shown, at the 0.780 GHz frequency point, the antenna reflection coefficient increases as the applied voltage decreases; the antenna efficiency decreases as the applied voltage decreases. Based on this, the target frequency point F0 can be 0.780 GHz.

[0075] Step 2103: Take the maximum value of the multiple received level values ​​as the target level value.

[0076] Optionally, the terminal can compare the received level values ​​corresponding to multiple voltages to obtain the maximum value among the multiple received level values, and use this maximum value as the target level value. For example, assume that the multiple voltages include voltage UC, voltage UB2, voltage UB1, and voltage UA. The received level values ​​corresponding to these multiple voltages are, respectively, received level value X1, received level value X2, received level value X3, and received level value X4. The received level value X3, which has the largest value, is selected as the target level value.

[0077] Step 2104: Determine the voltage of the connector when the target level value is collected as the target voltage.

[0078] Specifically, the terminal achieves its maximum received voltage at the target frequency point when applying the target voltage to the connector. Optionally, when the terminal acquires received voltage values ​​corresponding to the target frequency point within the antenna's operating frequency band under multiple applied voltages, it can record the received voltage value corresponding to each voltage. The terminal then determines the recorded voltage corresponding to the target voltage as the target voltage. For example, continuing with the example from step 2103 above, the terminal determines the voltage UB1 corresponding to the received voltage value X3 as the target voltage.

[0079] Step 2105: Based on the first correspondence between the distance between the human body and the terminal and the voltage corresponding to the target frequency, determine the target distance corresponding to the target voltage. The target distance is the current distance between the human body and the terminal.

[0080] In this embodiment, after determining the target voltage, the terminal can search for the target voltage in the voltages included in the first correspondence relationship, determine the target distance corresponding to the target voltage in the first correspondence relationship, and obtain the actual distance between the current human body and the terminal. For example, assume that the first correspondence relationship records: distance L0 corresponds to voltage UA, distance L1 corresponds to voltage UB1, and distance L2 corresponds to voltage UB2. The terminal determines the distance L1 corresponding to the target voltage UB1 as the target distance.

[0081] In this embodiment, by actively changing the voltage applied to the liquid crystal material, the resonant frequency of the antenna shifts to a higher frequency, thereby offsetting the effect of the antenna's resonant frequency shifting to a lower frequency when a person approaches the terminal. This results in different extreme values ​​for the received signal level at the target frequency point as a function of voltage, depending on the distance between the terminal and the person. The distance corresponding to the current target signal level is determined using the relationship between the extreme values ​​of the received signal level, distance, and voltage, thus obtaining the current distance between the person and the terminal. Furthermore, the antenna in this technical solution does not have an external capacitor structure; a metal connection between the antenna and the ground terminal can be used, avoiding the impact of an external capacitor structure on antenna performance. Further, in this application, the distance between the person and the terminal is determined based on the received signal level of the antenna under multiple voltages applied to the connector. The received signal level is not affected by the medium between the antenna and ground, and is therefore less susceptible to temperature fluctuations of the mobile terminal, resulting in high accuracy in distance detection.

[0082] In some embodiments of this application, after determining the distance between the human body and the terminal, the terminal can also select an antenna transmission power that matches the distance between the human body and the terminal, so that when the antenna transmits signals at the antenna transmission power, the electromagnetic wave absorption ratio of the terminal is less than the electromagnetic wave absorption ratio threshold, thereby achieving a balance between communication quality and electromagnetic wave absorption ratio limitation requirements.

[0083] Optionally, after step 2105, the distance detection method further includes: determining the target antenna transmission power corresponding to the target distance based on a second correspondence between the distance between the human body and the terminal and the antenna transmission power. When the antenna transmits a signal at the antenna transmission power in the second correspondence, the electromagnetic wave absorption ratio of the terminal is less than the electromagnetic wave absorption ratio threshold. The antenna transmission power is adjusted according to the target antenna transmission power, and when the antenna transmits a signal at the target antenna transmission power, the electromagnetic wave absorption ratio of the terminal is less than the electromagnetic wave absorption ratio threshold.

[0084] In some embodiments, the terminal may pre-store a second correspondence between the distance between the human body and the terminal and the antenna transmission power, so that after determining the target distance between the human body and the terminal, the terminal can look up the second correspondence, determine the target antenna transmission power corresponding to the target distance, and adjust the antenna transmission power according to the target antenna transmission power.

[0085] In this embodiment, the connector between the terminal's antenna and grounding terminal is a liquid crystal material connector. Multiple different voltages are sequentially applied to the connector to collect the received signal level values ​​corresponding to the target frequency of the antenna under each voltage application. The maximum value of the multiple received signal levels is taken as the target signal level value, and the voltage of the connector when the target signal level value is collected is determined as the target voltage. Based on the first correspondence between the distance between the human body and the terminal and the voltage corresponding to the target frequency, the target distance corresponding to the target voltage is determined, thus obtaining the current distance between the human body and the terminal.

[0086] In this technical solution, the resonant frequency of the antenna is shifted to a higher frequency by actively changing the voltage applied to the liquid crystal material. This counteracts the effect of the antenna's resonant frequency shifting to a lower frequency when a person approaches the terminal. Consequently, the received signal level at the target frequency point exhibits different extreme values ​​as the distance between the terminal and the person varies. By utilizing the extreme values ​​of the received signal level, the distance, and the voltage, the distance corresponding to the current target signal level is determined, thus obtaining the current distance between the person and the terminal. Furthermore, the antenna in this technical solution does not have an external capacitor structure; a metal connection between the antenna and the grounding terminal can be used, avoiding the impact of an external capacitor on antenna performance. Moreover, in this application, the distance between the person and the terminal is determined based on the received signal level of the antenna under multiple voltages applied to the connector. The received signal level is unaffected by the medium between the antenna and ground, and is therefore less susceptible to temperature fluctuations of the mobile terminal, resulting in high accuracy in distance detection.

[0087] In some embodiments of this application, the first correspondence between the distance between the human body and the terminal and the voltage corresponding to the target frequency point can be data pre-collected by the terminal based on the working principle of the technical solution of this application. Before executing steps 2101 to 2104, the terminal needs to first execute the generation process of the first correspondence included in the distance detection method. Optionally, please refer to Figure 22 It illustrates a flowchart of a method for generating a first correspondence according to an embodiment of this application, such as... Figure 22 As shown, the process of generating the first correspondence includes:

[0088] Step 2201: Collect multiple target data points at the target frequency when the distance between the terminal and the human body is in multiple different positions.

[0089] In this embodiment, the data acquisition personnel can stand at multiple locations at varying distances from the terminal. After the personnel are positioned, the terminal sequentially applies multiple different voltages to the connector. After each voltage is applied, target data for the target frequency is acquired, resulting in multiple target data points for the target frequency. These multiple target data points are the target data for the target frequency when multiple different voltages are sequentially applied to the connector.

[0090] The multiple voltages applied by the terminal to the connector are multiple voltages within the bias voltage range of the liquid crystal material. The bias voltage range of the liquid crystal material refers to the range of applied voltages that can cause a change in the dielectric constant of the liquid crystal material. For example, the bias voltage range can be (0, Vmax).

[0091] For example, the terminal can apply voltages UC, UB2, UB1, and UA to the connector when there is no human body around the antenna, i.e., the distance between the human body and the antenna is L0 (∞), to collect target data Y11-Y14 corresponding to each voltage at the target frequency. The terminal can also apply voltages UC, UB2, UB1, and UA to the connector when the distance between the antenna and the human body is L1, to collect target data Y21-Y24 corresponding to each voltage at the target frequency. Finally, the terminal can apply voltages UC, UB2, UB1, and UA to the connector when the distance between the antenna and the human body is L2, to collect target data Y31-Y34 corresponding to each voltage at the target frequency.

[0092] In this embodiment, when the antenna environment is unaffected by the human body, the target data corresponding to the target frequency point exhibits a unidirectional changing trend with the applied voltage. The applied voltage refers to the voltage applied to the connector. Optionally, before step 2201, the distance detection method further includes steps S1-S3.

[0093] In step S1, under conditions where the antenna environment is unaffected by the human body, multiple different voltages are sequentially applied to the connector.

[0094] Among them, the multiple voltages applied by the terminal to the connector are multiple voltages within the bias voltage range of the liquid crystal material.

[0095] In step S2, a target data set for each frequency point within the operating frequency band is acquired. The multiple target data points in the target data set for each frequency point are the target data points when multiple different voltages are sequentially applied to the connector.

[0096] In this embodiment, after applying a voltage to the connector each time, the terminal can collect target data corresponding to that voltage at each frequency point within the operating frequency band, thus obtaining a target data set for each frequency point. For example, the terminal can apply voltages UC, UB2, UB1, and UA to the connector to collect target data corresponding to each of the multiple voltages at each frequency point.

[0097] In step S3, based on the target data set for each frequency point, the frequency point corresponding to the target data set is determined as the target frequency point. The multiple target data points in the target data set include extreme value data and exhibit a unidirectional variation trend. The extreme value data is the extreme value among the target data points corresponding to the same voltage at each frequency point.

[0098] Optionally, for each target data set, the terminal plots curves showing how multiple target data points in that set change with increasing applied voltage. Based on the plotted curves, it determines whether the multiple target data points in the target data set exhibit a unidirectional trend. Target data sets exhibiting a unidirectional trend are designated as candidate sets. The candidate set, including extreme value data, is determined as the target data set, and the frequency point corresponding to the target data set is determined as the target frequency point. Optionally, the target data can be antenna reflection coefficient or antenna efficiency. As described above, when the target data is antenna reflection coefficient, the extreme value of multiple target data points is the minimum value; when the target data is antenna efficiency, the extreme value of multiple target data points is the maximum value.

[0099] For example, the terminal can apply voltages to the connector: voltage UC, voltage UB2, voltage UB1, and voltage UA, to collect the target data set corresponding to each frequency point. It is assumed that the target data sets corresponding to frequency points with values ​​less than 0.785 all exhibit a unidirectional trend, and that the extreme value corresponding to voltage UC is target data Y01, the extreme value corresponding to voltage UB2 is target data Y02, the extreme value corresponding to voltage UB1 is target data Y03, and the extreme value corresponding to voltage UA is target data Y04. The terminal determines that the target data sets corresponding to frequency points with values ​​less than 0.785 are all candidate sets, and determines that the candidate set corresponding to the frequency point with a value of 0.780 includes target data Y04. This candidate set is then designated as the target data set, and 0.780 is set as the target frequency point.

[0100] Step 2202: Determine the extreme values ​​of multiple target data corresponding to the same distance as reference data, and obtain the reference data corresponding to each distance.

[0101] Optionally, the terminal can compare the magnitudes of multiple data points at the target frequency when the terminal is at the same distance from the human body, determine the extreme value among the multiple target data points, and use the extreme value as reference data to obtain reference data corresponding to each distance. For example, the terminal determines the extreme value Y14 among target data Y11 to target data Y14 as reference data; determines the extreme value Y23 among target data Y21 to target data Y24 as reference data; and determines the extreme value Y32 among target data Y31 to target data Y34 as reference data.

[0102] Step 2203: Based on the correspondence between reference data, distance, and voltage, generate a first correspondence. The corresponding distances and voltages in the first correspondence correspond to the same reference data.

[0103] Optionally, after obtaining the reference data corresponding to each distance, the terminal can read the voltage corresponding to each reference data. Based on the distance and voltage corresponding to each reference data, a first correspondence is generated. In this first correspondence, the distances and voltages with the corresponding relationship correspond to the same reference data.

[0104] For example, continuing with the example in step 2202 above, the terminal reads the voltage UA corresponding to target data Y14, the voltage UB1 corresponding to target data Y23, and the voltage UB2 corresponding to target data Y32, and generates a first correspondence. The first correspondence records that distance L0 corresponds to voltage UA, distance L1 corresponds to voltage UB1, and distance L2 corresponds to voltage UB2. The terminal determines the distance L1 corresponding to the target voltage UB1 as the target distance.

[0105] In summary, the distance detection method provided in this application uses a liquid crystal material connector between the terminal's antenna and grounding terminal. By sequentially applying multiple different voltages to the connector, the received signal level corresponding to the target frequency of the antenna is collected under each voltage application. The maximum value of the multiple received signal levels is taken as the target signal level, and the voltage of the connector when the target signal level is collected is determined as the target voltage. Based on the first correspondence between the distance between the human body and the terminal and the voltage corresponding to the target frequency, the target distance corresponding to the target voltage is determined, thus obtaining the current distance between the human body and the terminal.

[0106] In this technical solution, the resonant frequency of the antenna is shifted to a higher frequency by actively changing the voltage applied to the liquid crystal material. This counteracts the effect of the antenna's resonant frequency shifting to a lower frequency when a person approaches the terminal. Consequently, the received signal level at the target frequency point exhibits different extreme values ​​as the distance between the terminal and the person varies. By utilizing the extreme values ​​of the received signal level, the distance, and the voltage, the distance corresponding to the current target signal level is determined, thus obtaining the current distance between the person and the terminal. Furthermore, the antenna in this technical solution does not have an external capacitor structure; a metal connection between the antenna and the grounding terminal can be used, avoiding the impact of an external capacitor on antenna performance. Moreover, in this application, the distance between the person and the terminal is determined based on the received signal level of the antenna under multiple voltages applied to the connector. The received signal level is unaffected by the medium between the antenna and ground, and is therefore less susceptible to temperature fluctuations of the mobile terminal, resulting in high accuracy in distance detection.

[0107] It should be noted that the distance detection method provided in this application embodiment can be executed by a distance detection device or a control module in the distance detection device for executing a network connection method. This application embodiment uses the method of executing a network connection by a distance detection device as an example to illustrate the network connection apparatus provided in this application embodiment.

[0108] Please refer to Figure 23 This diagram illustrates a block diagram of a distance detection device according to an embodiment of this application. The distance detection device is applied to a terminal. The terminal includes an antenna. The material of the connector between the antenna and the ground terminal is liquid crystal material. Figure 23 As shown, the distance detection device 2300 includes: a voltage application module 2301, an acquisition module 2302, and a determination module 2303.

[0109] Voltage application module 2301 is used to sequentially apply multiple different voltages to the connector;

[0110] The acquisition module 2302 is used to acquire the received level value of the target frequency point in the working frequency band of the antenna when the connector is subjected to multiple voltages, and obtain the received level value corresponding to each voltage.

[0111] The determining module 2303 is configured to take the maximum value of the plurality of received level values ​​as the target level value; and is further configured to determine the voltage of the connector when the target level value is acquired as the target voltage; and is further configured to determine the target distance corresponding to the target voltage based on a first correspondence between the distance between the human body and the terminal and the voltage corresponding to the target frequency point, wherein the target distance is the current distance between the human body and the terminal.

[0112] Optionally, the acquisition module 2302 is further configured to acquire multiple target data of the target frequency point when the distance between the terminal and the human body is successively multiple different distances, wherein the multiple target data of the target frequency point are target data of the target frequency point when multiple different voltages are successively applied to the connector, and the target data is used to reflect the antenna performance.

[0113] The determining module 2303 is further configured to determine the extreme values ​​of the plurality of target data corresponding to the same distance as reference data, to obtain reference data corresponding to each distance, and is further configured to generate the first correspondence relationship based on the correspondence relationship between the reference data, the distance and the voltage, wherein the corresponding distance and voltage in the first correspondence relationship correspond to the same reference data.

[0114] Optionally, the voltage application module 2301 is used to sequentially apply multiple different voltages to the connector when the environment where the antenna is located is not affected by the human body;

[0115] The acquisition module 2302 is also used to acquire a target data set for each frequency point within the operating frequency band, wherein the multiple target data in the target data set of the frequency point are the target data of the frequency point when multiple different voltages are applied to the connector in sequence;

[0116] The determining module 2303 is further configured to determine the frequency point corresponding to the target data set as the target frequency point based on the target data set of each frequency point, wherein the multiple target data in the target data set include extreme value data and have a unidirectional changing trend, and the extreme value data is the extreme value of the target data corresponding to the same voltage at each frequency point.

[0117] Optionally, the target data includes: antenna reflection coefficient or antenna efficiency; when the target data is the antenna reflection coefficient, the extreme value of the plurality of target data is the minimum value; when the target data is the antenna efficiency, the extreme value of the plurality of target data is the maximum value.

[0118] Optionally, the determining module 2303 is further configured to determine the target antenna transmission power corresponding to the target distance based on a second correspondence between the distance between the human body and the terminal and the antenna transmission power, wherein when the antenna transmits a signal at the antenna transmission power in the second correspondence, the actual electromagnetic wave absorption ratio of the terminal is less than the electromagnetic wave absorption ratio threshold.

[0119] An adjustment module is used to adjust the transmission power of the antenna according to the transmission power of the target antenna.

[0120] Optionally, the voltage application module 2301 is further configured to sequentially apply multiple voltages from large to small to the connector; or, sequentially apply multiple voltages from small to large to the connector.

[0121] Optionally, the terminal further includes a power supply component connected to the connector for applying a three-phase voltage to the connector.

[0122] In this embodiment, the connector between the terminal's antenna and grounding terminal is a liquid crystal material connector. Multiple different voltages are sequentially applied to the connector to collect the received signal level values ​​corresponding to the target frequency of the antenna under each voltage application. The maximum value of the multiple received signal levels is taken as the target signal level value, and the voltage of the connector when the target signal level value is collected is determined as the target voltage. Based on the first correspondence between the distance between the human body and the terminal and the voltage corresponding to the target frequency, the target distance corresponding to the target voltage is determined, thus obtaining the current distance between the human body and the terminal.

[0123] In this technical solution, the resonant frequency of the antenna is shifted to a higher frequency by actively changing the voltage applied to the liquid crystal material. This counteracts the effect of the antenna's resonant frequency shifting to a lower frequency when a person approaches the terminal. Consequently, the received signal level at the target frequency point exhibits different extreme values ​​as the distance between the terminal and the person varies. By utilizing the extreme values ​​of the received signal level, the distance, and the voltage, the distance corresponding to the current target signal level is determined, thus obtaining the current distance between the person and the terminal. Furthermore, the antenna in this technical solution does not have an external capacitor structure; a metal connection between the antenna and the grounding terminal can be used, avoiding the impact of an external capacitor on antenna performance. Moreover, in this application, the distance between the person and the terminal is determined based on the received signal level of the antenna under multiple voltages applied to the connector. The received signal level is unaffected by the medium between the antenna and ground, and is therefore less susceptible to temperature fluctuations of the mobile terminal, resulting in high accuracy in distance detection.

[0124] The distance detection device in this application embodiment can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile terminal or a non-mobile terminal. For example, a mobile terminal can be a mobile phone, tablet computer, laptop computer, PDA, vehicle terminal, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. A non-mobile terminal can be a server, network attached storage (NAS), personal computer (PC), television set (TV), ATM, or self-service machine, etc. This application embodiment does not impose specific limitations.

[0125] The distance detection device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit it.

[0126] The distance detection device provided in this application embodiment can achieve... Figures 2 to 4 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.

[0127] Optional, such as Figure 24 As shown, this application embodiment also provides an electronic device 2400, including a processor 2401, a memory 2402, and a program or instructions stored in the memory 2402 and executable on the processor 2401. When the program or instructions are executed by the processor 2401, they implement the various processes of the above-described distance detection method embodiment and achieve the same technical effect. To avoid repetition, further details are omitted here. The electronic device can be the terminal provided in this application embodiment. Optionally, the electronic device can be... Figure 5 The terminal shown.

[0128] It should be noted that the terminal in this application embodiment includes the mobile terminal and non-mobile terminal described above.

[0129] Figure 25This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of this application. The electronic device 2500 includes, but is not limited to, components such as: a radio frequency unit 2501, a network module 2502, an audio output unit 2503, an input unit 2504, a sensor 2505, a display unit 2506, a user input unit 2507, an interface unit 2508, a memory 2509, and a processor 2510. The electronic device may include an antenna, and the material of the connector between the antenna and the ground terminal is liquid crystal material. The electronic device can be the terminal provided in the embodiment of this application. Optionally, the electronic device can be... Figure 5 The terminal shown.

[0130] Those skilled in the art will understand that the terminal 2500 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 2510 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 25 The terminal structure shown does not constitute a limitation on the terminal. The terminal may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0131] The processor 2510 is used to sequentially apply multiple different voltages to the connector;

[0132] The processor 2510 is also configured to collect the received level value of the target frequency point in the operating frequency band of the antenna when the connector is subjected to multiple voltages, and obtain the received level value corresponding to each voltage.

[0133] Processor 2510 is further configured to use the maximum value of the plurality of received level values ​​as a target level value;

[0134] The processor 2510 is further configured to determine the voltage of the connector when the target level value is acquired as the target voltage. Based on a first correspondence between the distance between the human body and the terminal and the voltage corresponding to the target frequency point, a target distance corresponding to the target voltage is determined, wherein the target distance is the current distance between the human body and the terminal.

[0135] In this embodiment, by actively changing the voltage applied to the liquid crystal material, the resonant frequency of the antenna shifts to a higher frequency, thereby offsetting the effect of the antenna's resonant frequency shifting to a lower frequency when a person approaches the terminal. This results in different extreme values ​​for the received signal level at the target frequency point as a function of voltage, depending on the distance between the terminal and the person. The distance corresponding to the current target signal level is determined using the relationship between the extreme values ​​of the received signal level, distance, and voltage, thus obtaining the current distance between the person and the terminal. Furthermore, the antenna in this technical solution does not have an external capacitor structure; a metal connection between the antenna and the ground terminal can be used, avoiding the impact of an external capacitor structure on antenna performance. Further, in this application, the distance between the person and the terminal is determined based on the received signal level of the antenna under multiple voltages applied to the connector. The received signal level is not affected by the medium between the antenna and ground, and is therefore less susceptible to temperature fluctuations of the mobile terminal, resulting in high accuracy in distance detection.

[0136] Optionally, the processor 2510 is further configured to: collect multiple target data of the target frequency point when the distance between the terminal and the human body is successively multiple different distances, wherein the multiple target data of the target frequency point are target data of the target frequency point when multiple different voltages are successively applied to the connector, and the target data is used to reflect the antenna performance;

[0137] The extreme values ​​of the multiple target data corresponding to the same distance are determined as reference data to obtain reference data corresponding to each distance;

[0138] Based on the correspondence between the reference data, the distance, and the voltage, a first correspondence is generated, wherein the corresponding distance and voltage in the first correspondence correspond to the same reference data.

[0139] Optionally, the processor 2510 is also configured to: sequentially apply multiple different voltages to the connector when the environment in which the antenna is located is not affected by the human body;

[0140] Collect target data sets for each frequency point within the operating frequency band, wherein multiple target data in the target data set of the frequency point are target data of the frequency point when multiple different voltages are applied sequentially to the connector;

[0141] Based on the target data set for each frequency point, the frequency point corresponding to the target data set is determined as the target frequency point. The multiple target data in the target data set include extreme value data and have a unidirectional changing trend. The extreme value data is the extreme value of the target data corresponding to the same voltage for each frequency point.

[0142] Optionally, the target data includes: antenna reflection coefficient or antenna efficiency; when the target data is the antenna reflection coefficient, the extreme value of the plurality of target data is the minimum value; when the target data is the antenna efficiency, the extreme value of the plurality of target data is the maximum value.

[0143] Optionally, the processor 2510 is further configured to: determine the target antenna transmission power corresponding to the target distance based on a second correspondence between the distance between the human body and the terminal and the antenna transmission power, wherein when the antenna transmits a signal at the antenna transmission power in the second correspondence, the actual electromagnetic wave absorption ratio of the terminal is less than the electromagnetic wave absorption ratio threshold; and adjust the transmission power of the antenna according to the target antenna transmission power.

[0144] Optionally, the processor 2510 is further configured to: sequentially apply a plurality of voltages from large to small to the connector; or sequentially apply a plurality of voltages from small to large to the connector.

[0145] Optionally, the processor 2510 and the terminal further include a power supply component connected to the connector for applying a three-phase voltage to the connector.

[0146] In this embodiment, the connector between the terminal's antenna and grounding terminal is a liquid crystal material connector. Multiple different voltages are sequentially applied to the connector to collect the received signal level values ​​corresponding to the target frequency of the antenna under each voltage application. The maximum value of the multiple received signal levels is taken as the target signal level value, and the voltage of the connector when the target signal level value is collected is determined as the target voltage. Based on the first correspondence between the distance between the human body and the terminal and the voltage corresponding to the target frequency, the target distance corresponding to the target voltage is determined, thus obtaining the current distance between the human body and the terminal.

[0147] In this technical solution, the resonant frequency of the antenna is shifted to a higher frequency by actively changing the voltage applied to the liquid crystal material. This counteracts the effect of the antenna's resonant frequency shifting to a lower frequency when a person approaches the terminal. Consequently, the received signal level at the target frequency point exhibits different extreme values ​​as the distance between the terminal and the person varies. By utilizing the extreme values ​​of the received signal level, the distance, and the voltage, the distance corresponding to the current target signal level is determined, thus obtaining the current distance between the person and the terminal. Furthermore, the antenna in this technical solution does not have an external capacitor structure; a metal connection between the antenna and the grounding terminal can be used, avoiding the impact of an external capacitor on antenna performance. Moreover, in this application, the distance between the person and the terminal is determined based on the received signal level of the antenna under multiple voltages applied to the connector. The received signal level is unaffected by the medium between the antenna and ground, and is therefore less susceptible to temperature fluctuations of the mobile terminal, resulting in high accuracy in distance detection.

[0148] It should be understood that, in this embodiment, the input unit 2504 may include a graphics processing unit (GPU) 25041 and a microphone 25042. The GPU 25041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 2506 may include a display panel 25061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 2507 includes a touch panel 25071 and other input devices 25072. The touch panel 25071 is also called a touch screen. The touch panel 25071 may include a touch detection device and a touch controller. Other input devices 25072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, joysticks, etc., which will not be described in detail here. The memory 2509 can be used to store software programs and various data, including but not limited to applications and operating systems. Processor 2510 can integrate an application processor and a modem processor. The application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may also not be integrated into processor 2510.

[0149] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described distance detection method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0150] The processor mentioned above is the processor in the terminal described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0151] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described distance detection method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0152] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0153] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0154] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0155] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A distance detection method, characterized in that, Applied to a terminal, the terminal including an antenna, the connector between the antenna and a ground terminal being made of liquid crystal material, the method comprising: Multiple different voltages are applied sequentially to the connector; The received level values ​​of the target frequency point in the operating frequency band of the antenna are collected respectively when the connector is subjected to multiple voltages, so as to obtain the received level value corresponding to each voltage. The maximum value of the multiple received level values ​​is taken as the target level value; The voltage of the connector when the target level value is collected is determined as the target voltage; When the distance between the terminal and the human body is collected at multiple different distances, multiple target data of the target frequency point are collected. The multiple target data of the target frequency point are the target data of the target frequency point when multiple different voltages are applied to the connector in sequence. The target data is used to reflect the antenna performance. The extreme values ​​of the multiple target data corresponding to the same distance are determined as reference data to obtain reference data corresponding to each distance; Based on the correspondence between the reference data, the distance, and the voltage, a first correspondence is generated, wherein the corresponding distance and voltage in the first correspondence correspond to the same reference data. Based on the first correspondence between the distance between the human body and the terminal and the voltage corresponding to the target frequency, a target distance corresponding to the target voltage is determined, wherein the target distance is the current distance between the human body and the terminal.

2. The method according to claim 1, characterized in that, Before collecting multiple target data points at the target frequency when the distance between the terminal and the human body is successively different, the method further includes: When the environment where the antenna is located is not affected by the human body, multiple different voltages are sequentially applied to the connector; Collect target data sets for each frequency point within the operating frequency band, wherein multiple target data in the target data set of the frequency point are target data of the frequency point when multiple different voltages are applied sequentially to the connector; Based on the target data set for each frequency point, the frequency point corresponding to the target data set is determined as the target frequency point. The multiple target data in the target data set include extreme value data and have a unidirectional changing trend. The extreme value data is the extreme value of the target data corresponding to the same voltage for each frequency point.

3. The method according to claim 2, characterized in that, The target data includes: antenna reflection coefficient or antenna efficiency; When the target data is the antenna reflection coefficient, the extreme value of the plurality of target data is the minimum value; when the target data is the antenna efficiency, the extreme value of the plurality of target data is the maximum value.

4. The method according to claim 1, characterized in that, The method further includes: Based on the second correspondence between the distance between the human body and the terminal and the antenna transmission power, the target antenna transmission power corresponding to the target distance is determined; The transmission power of the antenna is adjusted according to the target antenna transmission power. When the antenna transmits a signal at the target antenna transmission power, the electromagnetic wave absorption ratio of the terminal is less than the electromagnetic wave absorption ratio threshold.

5. The method according to claim 1, characterized in that, The sequential application of multiple different voltages to the connector includes: Multiple voltages, ranging from large to small, are applied sequentially to the connector; Alternatively, multiple voltages, ranging from small to large, can be applied sequentially to the connector.

6. The method according to claim 5, characterized in that, The terminal also includes a power supply component, which is connected to the connector and is used to apply a three-phase voltage to the connector.

7. A distance detection device, characterized in that, Applied to a terminal, the terminal includes an antenna, and the connector between the antenna and the ground terminal is made of liquid crystal material. The device includes: A voltage application module is used to sequentially apply multiple different voltages to the connector; The acquisition module is used to acquire the received level value of the target frequency point in the working frequency band of the antenna when the connector is subjected to multiple voltages, and to obtain the received level value corresponding to each voltage. The determination module is configured to: use the maximum value of a plurality of received level values ​​as a target level value; and further be configured to: determine the voltage of the connector when the target level value is acquired as a target voltage; and acquire multiple target data of the target frequency point when the distance between the terminal and the human body is successively multiple different distances, wherein the multiple target data of the target frequency point are the target data of the target frequency point when multiple different voltages are successively applied to the connector, and the target data is used to reflect antenna performance; and determine the extreme values ​​of the multiple target data corresponding to the same distance as reference data to obtain reference data corresponding to each distance; and generate a first correspondence relationship based on the correspondence relationship between the reference data, the distance, and the voltage, wherein the corresponding distance and voltage in the first correspondence relationship correspond to the same reference data; and further be configured to: determine the target distance corresponding to the target voltage based on the first correspondence relationship between the distance between the human body and the terminal and the voltage corresponding to the target frequency point, wherein the target distance is the current distance between the human body and the terminal.

8. A terminal, characterized in that, The device includes an antenna, a processor, a memory, and a program or instructions stored in the memory and executable on the processor. When the program or instructions are executed by the processor, they implement the steps of the distance detection method as described in any one of claims 1 to 6. The material of the connector between the antenna and the grounding terminal is a liquid crystal material.

9. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the distance detection method as described in any one of claims 1 to 6.