Automatic operation execution method and device and terminal

By identifying holding gestures through the real-time load reflection coefficient of the antenna in the terminal, automated operations are achieved without the need for voice or click triggers, improving efficiency and reducing costs.

CN120676085APending Publication Date: 2025-09-19GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510838579.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-20
Publication Date
2025-09-19

AI Technical Summary

Technical Problem

In the prior art, automated operations usually need to be triggered by voice or click, resulting in low execution efficiency and increased costs for recognizing holding gestures.

Method used

By determining the real-time load reflection coefficient of the antenna in the terminal, identifying holding gestures and performing automated operations when matching preset holding gestures, it avoids dependence on specialized sensors.

Benefits of technology

The execution efficiency of automated operations is improved and the implementation cost of grip gesture recognition is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120676085A_ABST
    Figure CN120676085A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an automatic operation execution method and device and a terminal, and belongs to the technical field of radio frequency. The method comprises the following steps: determining a real-time load reflection coefficient of at least one antenna in the terminal; determining a real-time holding gesture of the terminal based on the real-time load reflection coefficient of the at least one antenna; and under the condition that the real-time holding gesture is matched with a preset holding gesture, executing an automatic operation corresponding to the preset holding gesture.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of radio frequency technology, and in particular to a method, device, and terminal for executing automated operations. Background Art

[0002] Automated operation refers to the terminal automatically executing the operation to implement the instruction according to the user instruction. In the related art, the user instruction is usually triggered by voice or clicking the automated instruction card. Summary of the Invention

[0003] The present application provides a method, device, and terminal for executing automated operations. The technical solution is as follows:

[0004] In one aspect, an embodiment of the present application provides a method for performing an automated operation, the method comprising:

[0005] determining a real-time loading reflection coefficient of at least one antenna in the terminal;

[0006] determining a real-time holding gesture of the terminal based on the real-time load reflection coefficient of the at least one antenna;

[0007] In a case where the real-time holding gesture matches a preset holding gesture, an automated operation corresponding to the preset holding gesture is performed.

[0008] On the other hand, an embodiment of the present application provides an automated operation execution device, the device comprising:

[0009] A first determining module, configured to determine a real-time load reflection coefficient of at least one antenna in the terminal;

[0010] A second determining module, configured to determine a real-time holding gesture of the terminal based on the real-time load reflection coefficient of the at least one antenna;

[0011] An execution module is used to execute an automated operation corresponding to the preset holding gesture when the real-time holding gesture matches the preset holding gesture.

[0012] On the other hand, an embodiment of the present application provides a terminal, which includes a processor and a memory, wherein the memory stores at least one computer instruction, and the at least one computer instruction is loaded and executed by the processor to implement the automated operation execution method as described in the above aspects.

[0013] On the other hand, an embodiment of the present application provides a computer-readable storage medium, which stores at least one computer instruction, and the at least one computer instruction is used to be executed by a processor to implement the automated operation execution method as described in the above aspects.

[0014] On the other hand, an embodiment of the present application provides a computer program product, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; a processor reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to implement the automated operation execution method as described in the above aspects.

[0015] In an embodiment of the present application, a preset grip gesture is pre-set for triggering an automated operation. Subsequently, upon identifying a match between a real-time grip gesture on the terminal and the preset grip gesture, the corresponding automated operation is executed, eliminating the need for the user to trigger the gesture through voice or by clicking on a specific control. This improves the efficiency of automated operations. Furthermore, since human hand grip affects the load reflection coefficient of the antenna, determining the real-time load reflection coefficient of the antenna and then determining the real-time grip gesture based on the real-time load reflection coefficient eliminates the need for a dedicated sensor component for grip gesture recognition, reducing the cost of grip gesture recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A flowchart of an automated operation execution method provided by an exemplary embodiment of the present application is shown;

[0017] Figure 2 is a schematic diagram showing an antenna configuration method according to an exemplary embodiment of the present application;

[0018] Figure 3 is a schematic diagram showing antenna shielding situations under different holding gestures according to an exemplary embodiment of the present application;

[0019] Figure 4 This is a schematic diagram of an implementation of an automatic red envelope grabbing scenario shown in an exemplary embodiment of the present application;

[0020] Figure 5 is an architectural diagram of a radio frequency architecture shown in an exemplary embodiment of the present application;

[0021] Figure 6 is a flow chart of a reflection coefficient determination process shown in an exemplary embodiment of the present application;

[0022] Figure 7 is a flow chart showing a process of determining a load reflection coefficient based on the similarity of voltage standing wave ratio combinations according to an exemplary embodiment of the present application;

[0023] Figure 8 is a flow chart of a reflection coefficient determination process shown in another exemplary embodiment of the present application;

[0024] Figure 9This is a schematic diagram illustrating an exemplary embodiment of the present application showing a process of determining a real-time load reflection coefficient by table lookup;

[0025] Figure 10 is a flow chart of a reflection coefficient determination process shown in yet another exemplary embodiment of the present application;

[0026] Figure 11 is a schematic diagram illustrating an implementation process of determining a real-time load reflection coefficient by table lookup according to another exemplary embodiment of the present application;

[0027] Figure 12 A structural block diagram of an automated operation execution device provided by another exemplary embodiment of the present application is shown;

[0028] Figure 13 The figure shows a structural block diagram of a terminal provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0029] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.

[0030] In this document, "plurality" refers to two or more. "And / or" describes a relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, or B exists alone. The character " / " generally indicates an "or" relationship between the associated objects.

[0031] Please refer to Figure 1 , which shows a flow chart of an automated operation execution method provided by an exemplary embodiment of the present application. This embodiment uses the method as an example for a terminal (which may be a smartphone, tablet computer, wearable device, etc.) with radio frequency capabilities and automated operation execution functions. The method may include the following steps.

[0032] Step 101: Determine a real-time load reflection coefficient of at least one antenna in a terminal.

[0033] In some embodiments, when a terminal is equipped with multiple antennas, the real-time load reflection coefficient of each of all or some of the antennas is determined. The antennas may be mid-frame antennas, internal antennas, or external antennas of the terminal. The embodiments of this application do not limit the specific type and configuration of the antennas.

[0034] Indicative, such as Figure 2 As shown, a first antenna 21, a second antenna 22, a third antenna 23, and a fourth antenna 24 are provided on a metal middle frame 20 of the terminal. The terminal determines the real-time load reflection coefficients of the four antennas respectively.

[0035] In a possible implementation manner, the real-time load reflection coefficient of the antenna is determined under an existing radio frequency structure.

[0036] Step 102: Determine a real-time holding gesture of the terminal based on a real-time load reflection coefficient of at least one antenna.

[0037] The antenna's load reflection coefficient is related to its load impedance, which changes significantly when the antenna is obstructed. Furthermore, when held, a human hand may partially obstruct the antenna. Therefore, in one possible implementation, the terminal can determine the real-time holding gesture of the terminal based on the real-time load reflection coefficient of at least one antenna.

[0038] In some embodiments, the real-time holding gesture is used to represent the blocking state of the antenna.

[0039] In a possible implementation, in order to ensure the accuracy of the determined real-time holding gesture, the terminal determines the real-time holding gesture based on the real-time load reflection coefficient of at least one antenna within a preset time length, that is, the real-time holding gesture is determined based on the real-time load reflection coefficient of at least one antenna within a short time.

[0040] like Figure 2 As shown, the terminal determines the real-time holding gesture of the terminal based on the real-time load reflection coefficients of the four antennas within 2 seconds.

[0041] Step 103 : When the real-time holding gesture matches the preset holding gesture, perform the automated operation corresponding to the preset holding gesture.

[0042] In a possible implementation, a correspondence between a preset holding gesture and an automated operation is preset, that is, the preset holding gesture corresponding to the automated operation is used to trigger execution of the automated operation.

[0043] Optionally, the preset holding gesture may be customized by the user, and the corresponding relationship between the preset holding gesture and the automated operation may be customized by the user.

[0044] Accordingly, after determining the real-time holding gesture, the terminal detects whether there is a preset holding gesture that matches the real-time holding gesture, and if so, executes the automated operation corresponding to the matching preset holding gesture.

[0045] In some embodiments, the terminal performs the automated operation by simulating clicks and / or accessibility functions based on an automated script corresponding to the automated operation.

[0046] Optionally, the automated operation may include opening an application, performing a specific operation within a specific interface within the application, and other operations to implement specific functions. For example, the automated operation may be automatic ticket grabbing, automatic red envelope grabbing, automatic check-in, automatic call back, etc. The embodiments of this application do not limit the specific functions implemented by the automated operation.

[0047] Optionally, the automation script corresponding to the automation operation can be generated by recording the user's manual operation, or edited and generated by the user, which is not limited in the embodiments of the present application.

[0048] In summary, in the embodiments of the present application, a preset holding gesture is pre-set for triggering an automated operation. Subsequently, when the real-time holding gesture on the terminal is identified as matching the preset holding gesture, the corresponding automated operation can be executed without the need for the user to trigger it through voice or clicking on a specific control, thereby improving the efficiency of the automated operation. Furthermore, since human hand holding affects the load reflection coefficient of the antenna, by determining the real-time load reflection coefficient of the antenna and then determining the real-time holding gesture based on the real-time load reflection coefficient, there is no need to specifically set up a sensor component for recognizing holding gestures, thereby reducing the implementation cost of holding gesture recognition.

[0049] When different antennas are set at different positions of the terminal, the shielding status of the antennas at different positions may be different under different holding gestures. Figure 2 In the antenna setting shown, Figure 3 As shown, in the first holding gesture, the first antenna 21 and the third antenna 23 are blocked by the hand, while in the second holding gesture, the second antenna 22 , the third antenna 23 and the fourth antenna 24 are blocked by the hand.

[0050] Therefore, in one possible embodiment, the terminal determines the blocking state of at least one antenna based on the real-time load reflection coefficient of the at least one antenna, and thereby determines the real-time holding gesture of the terminal based on the blocking state of the at least one antenna, wherein the blocking state is used to characterize whether the antenna is blocked.

[0051] In some embodiments, a holding gesture can be represented by the occlusion status of multiple antennas. For example, when there are four antennas, and an antenna is blocked and an antenna is unblocked, "1,0,1,0" represents that the first and third antennas are blocked, and the second and fourth antennas are unblocked, and "1,0,1,0" corresponds to a specific holding gesture.

[0052] In one possible embodiment, the first correspondence maintained by the terminal includes a correspondence between a preset antenna blocking state combination and a preset holding gesture. When determining the real-time holding gesture, the terminal determines the preset holding gesture that matches the antenna blocking state combination consisting of the blocking state of at least one antenna in the first correspondence as the real-time holding gesture of the terminal.

[0053] In some embodiments, when setting a preset grip gesture that triggers an automated operation, the user grips the terminal using the preset grip gesture. During the gripping process, the terminal determines the occlusion state of at least one antenna under the preset grip gesture based on the real-time load reflection coefficient of the at least one antenna, and then establishes a correspondence between a preset antenna occlusion state combination consisting of the occlusion states of different antennas and the preset grip gesture.

[0054] When determining the real-time holding gesture, the terminal matches the real-time antenna blocking state combination formed by the real-time blocking state of at least one antenna with each preset antenna blocking state combination in the first correspondence, and then determines the preset holding gesture corresponding to the matched preset antenna blocking state combination as the real-time holding gesture.

[0055] In an illustrative example, Figure 2 In the case of the antenna setting method shown, the corresponding relationship between the preset antenna shielding state combination, the preset holding gesture and the automatic operation is shown in Table 1.

[0056] Table 1

[0057] Preset antenna blocking state combination Preset holding gestures Automated Operation 1,0,1,0 First grip gesture Automatic ticket grabbing 0,1,1,1 Second grip gesture Automatic sign-in 1,1,1,1 The third grip gesture Automatically open the camera

[0058] like Figure 3 As shown, when the real-time antenna blocking state combination is determined to be 1, 0, 1, 0, based on the corresponding relationship shown in Table 1, the terminal determines that the current one is the first holding gesture, and then performs automatic ticket grabbing; when the real-time antenna blocking state combination is determined to be 0, 1, 1, 1, based on the corresponding relationship shown in Table 1, the terminal determines that the current one is the second holding gesture, and then performs automatic sign-in.

[0059] Of course, the terminal may also store the correspondence between the preset antenna blocking state combination and the automated operation, thereby directly determining the automated operation to be performed based on the real-time antenna blocking state combination. This embodiment of the present application does not limit this.

[0060] Since the load reflection coefficient of the antenna is related to the antenna impedance, and there is a large difference in the antenna impedance when blocked and unblocked, in one possible implementation, for each antenna in at least one antenna, the terminal determines the real-time antenna impedance of the antenna based on the real-time load reflection coefficient of the antenna.

[0061] In some embodiments, the terminal calculates the real-time antenna impedance based on the real-time load reflection coefficient using the following formula:

[0062] Z L =Z0*(1+Γ L ) / (1-Γ L )

[0063] Among them, Γ L is the load reflection coefficient of the antenna (complex number), Z0 is the specific impedance of the transmission line, Z0 is usually a real number (50Ω or 75Ω), Z L is the antenna impedance (complex number).

[0064] In other embodiments, the terminal may also directly determine the real-time antenna impedance corresponding to the real-time load reflection coefficient based on the Smith chart without performing complex complex number calculations.

[0065] After determining the real-time antenna impedance of the antenna, the terminal calculates the impedance difference between the real-time antenna impedance and the preset antenna impedance of the antenna, and determines whether the antenna is blocked based on the relationship between the impedance difference and the difference threshold. The preset antenna impedance is the antenna impedance of the antenna when the antenna is not blocked.

[0066] Optionally, the impedance difference may be a vector difference, a modulus difference, a phase angle difference, a percentage difference, etc., which is not limited in the embodiment of the present application.

[0067] When the impedance difference between the real-time antenna impedance and the preset antenna impedance of the antenna is less than the difference threshold, the terminal determines that the blocking state of the antenna is unblocked; when the impedance difference between the real-time antenna impedance and the preset antenna impedance of the antenna is greater than the difference threshold, the blocking state of the antenna is determined to be blocked.

[0068] Of course, in other possible implementations, the terminal may also directly compare the real-time load reflection coefficient with the preset load reflection coefficient (the load reflection coefficient when the antenna is not blocked) to determine the blocking state of the antenna, which is not limited in this embodiment of the present application.

[0069] Since blocking the antenna by the hand will affect the RF performance of the antenna, and the RF function may need to be used when performing automated operations, in order to improve the execution effect of the automated operation, in one possible implementation, when the automated operation corresponding to the preset holding gesture has a RF resource usage requirement, the terminal performs RF performance enhancement processing, wherein the RF performance enhancement processing includes at least one of power enhancement, multi-antenna transmission and reception, and switching antenna paths.

[0070] The need for radio frequency resources refers to the need to transmit and receive radio frequency data through an antenna. For example, when performing automated operations, data needs to be sent and received over a cellular Wi-Fi network.

[0071] Optionally, when performing power boosting, the terminal may boost the power of all or part of the antennas to improve the RF performance of the antennas, wherein some of the antennas may be blocked antennas.

[0072] Optionally, when multiple antennas are used for transmission and reception, the terminal may simultaneously perform uplink transmission and / or downlink reception through multiple antennas.

[0073] Optionally, when switching antenna paths, the terminal determines an unblocked antenna among at least one antenna based on a real-time holding gesture, and then switches to the antenna path corresponding to the unblocked antenna, thereby avoiding the impact of hand blocking on the antenna RF performance.

[0074] In an illustrative example, Figure 4 As shown, the user pre-defined a preset grip gesture for triggering automatic red envelope grabbing and set up an automated red envelope grabbing script. When the real-time load reflection coefficient of the antenna identifies the real-time grip gesture as the preset grip gesture, the terminal performs RF performance improvement and automatically executes the red envelope grabbing operation based on the automated red envelope grabbing script.

[0075] In this embodiment, when the automated operation requires the use of radio frequency resources, the terminal performs radio frequency performance enhancement based on the real-time holding gesture, thereby improving the radio frequency performance of the antenna under the real-time holding gesture, which helps to improve the execution effect of the automated operation.

[0076] Regarding the method for determining the real-time antenna load reflection coefficient, in one possible implementation, the terminal needs to use a transceiver to perform signal demodulation to determine the real-time antenna load reflection coefficient. Because the transceiver is involved, the process of obtaining the real-time load reflection coefficient is computationally intensive and consumes high power.

[0077] Since the voltage standing wave ratio is associated with the input reflection coefficient, and the input reflection coefficient is associated with the load reflection coefficient of the antenna, and the scalar information of the voltage standing wave ratio is easy to obtain during the operation of the radio frequency network, the embodiment of the present application provides a solution for determining vector information (load reflection coefficient) based on scalar information (voltage standing wave ratio). Using this solution, the terminal switches the antenna state and determines the scalar form of the voltage standing wave ratio under at least two antenna states, and then can determine the vector form of the load reflection coefficient based on at least two voltage standing wave ratios. The transceiver does not need to perform signal demodulation during the entire process, so the difficulty of obtaining the load reflection coefficient and the power consumption overhead can be reduced.

[0078] Please refer to Figure 5, which shows an architectural diagram of the radio frequency architecture shown in an exemplary embodiment of the present application, wherein the radio frequency architecture includes an application processor (Application Processor) 51, a baseband chip (modem) 52, a transceiver 53, a radio frequency front-end module 54, a coupler 55, an antenna 56 and a measurement module 57.

[0079] The RF front-end module 54 may include a Pamid (Power amplifier module within integrated duplexer).

[0080] In some embodiments, the measurement module 57 is connected to the output end of the coupler 55 and the application processor 51 respectively, and is used to feed back the measured voltage standing wave ratio on the coupler 55 side to the application processor 51, and the application processor 51 determines the load reflection coefficient based on the voltage standing wave ratio.

[0081] Optionally, the measurement module 57 may determine the voltage standing wave ratio through a PD (Power Detector) and an ADC (Analog-to-Digital Converter), and feed the voltage standing wave ratio back to the application processor.

[0082] In some embodiments, the antenna 56 is provided with a tunable matching network, through which the antenna state can be switched.

[0083] Optionally, the antenna 56 may be a radio frequency antenna of the terminal, such as a cellular network antenna, a WiFi antenna, or a Bluetooth antenna. Furthermore, the antenna 56 may be a mid-frame antenna, a built-in antenna, or an external antenna of the terminal. The embodiments of this application do not limit the specific type and configuration of the antenna.

[0084] It should be noted that the switching of the antenna state can be controlled by the application processor 51, or by the baseband chip 52, or by a newly added chip (such as an MCU). In addition, the measurement module 57 can feed back the measurement results to the newly added chip, which determines the load reflection coefficient.

[0085] When the antenna state is switched by a newly added chip, in order to avoid a time conflict between the control of the antenna state by the newly added chip and the control process of the application processor or the baseband chip, in one possible implementation, the newly added chip monitors the instructions sent by the application processor and the baseband chip on the bus, and when it determines based on the monitoring results that the application processor and the baseband chip will not send instructions through the bus within the target time period, it occupies the bus to control the antenna state switching.

[0086] Optionally, after monitoring the target instruction sequence (i.e., after the application processor or baseband chip sends the target instruction sequence, it will not occupy the bus during the target time period), the new chip occupies the bus during the target time period after the target instruction sequence to control the antenna state switching.

[0087] The following describes a process for determining the real-time load reflection coefficient of an antenna when the above-mentioned radio frequency architecture is adopted through an embodiment.

[0088] Please refer to Figure 6 , which shows a flow chart of a load reflection coefficient determination process provided by an exemplary embodiment of the present application. The process may include the following steps:

[0089] Step 601: For each antenna in at least one antenna, switch the antenna state.

[0090] In a possible implementation, when there is a requirement to determine real-time load reflection, the terminal switches the antenna state.

[0091] Optionally, multiple preset antenna states are preset. Different preset antenna states have different impedance matching states for the antenna. Accordingly, the terminal switches the antenna to the preset antenna state. It should be noted that for the same antenna, the antenna structure and antenna load do not change under different preset antenna states. That is, the antenna load reflection coefficient does not change under different preset antenna states.

[0092] In a possible implementation, the terminal switches the antenna state through a tunable matching network (tuner) of the antenna.

[0093] Step 602: Determine voltage standing wave ratios in at least two antenna states.

[0094] Among them, the voltage standing wave ratio is scalar information.

[0095] In one possible implementation, after completing the antenna state switching, the terminal determines a voltage standing wave ratio (VSWR) in the current antenna state. The VSWR is a voltage standing wave ratio (VSWR). Optionally, the VSWR is measured at the output of the coupler.

[0096] Since the impedance matching state of the antenna changes in different antenna states, the input reflection coefficient in different antenna states will also change. Correspondingly, the change in the input reflection coefficient will cause the measured voltage standing wave ratio to also change.

[0097] In some embodiments, each time the antenna state is switched, the terminal determines the voltage standing wave ratio in the current antenna state, thereby obtaining the voltage standing wave ratios in at least two antenna states through at least two antenna state switches.

[0098] It should be noted that the measurement of the voltage standing wave ratio under different antenna states is performed in a short time to avoid changes in the real-time load impedance of the antenna due to external factors (such as changes in the holding state).

[0099] Step 603: Determine a real-time load reflection coefficient based on at least two voltage standing wave ratios.

[0100] The real-time load reflection coefficient is vector information.

[0101] Since the obtained voltage standing wave ratio is scalar information (i.e., it only has amplitude but no direction information), and the load reflection coefficient of the antenna is vector information (it has both amplitude and direction and can be expressed as a complex number), it is necessary to determine the real-time load reflection coefficient based on at least two voltage standing wave ratios.

[0102] In one possible implementation, the terminal may calculate the load reflection coefficient based on at least two voltage standing wave ratios in real time, or may look up the corresponding load reflection coefficient based on at least two voltage standing wave ratios in a table. The following embodiments describe specific implementations of "determining the real-time load reflection coefficient based on the voltage standing wave ratio."

[0103] In some embodiments, when the terminal has multiple antennas, the above steps may be used to obtain the real-time load reflection coefficient of each antenna.

[0104] In the embodiments of the present application, since the voltage standing wave ratio is correlated with the input reflection coefficient, and the input reflection coefficient is correlated with the load reflection coefficient, by switching the antenna state and determining the scalar voltage standing wave ratio in at least two antenna states, a vector load reflection coefficient can be determined based on the at least two voltage standing wave ratios. The solution provided by the embodiments of the present application enables vector information to be determined based on scalar information. This entire process eliminates the need for signal demodulation by the transceiver, helping to reduce the difficulty and power consumption of obtaining the real-time load reflection coefficient.

[0105] exist Figure 5 Under the RF architecture shown, the load reflection coefficient Γ at the antenna port is L and the input reflection coefficient Γ at the coupler port in There is the following relationship between them:

[0106]

[0107] Among them, S11, S12, S21 and S22 are S parameters.

[0108] The input reflection coefficient Γ inWhen the amplitude (AM) is available, the following relationship exists:

[0109]

[0110] Since the S parameter and the load reflection coefficient Γ L Since they are all vector information, they need to be squared to eliminate the absolute value. This process can be expressed as the following set of quadratic equations:

[0111]

[0112] Wherein, S111, S121, S211 and S221 are S parameters in the first antenna state, S112, S122, S212 and S222 are S parameters in the second antenna state, Γ in1 is the input reflection coefficient at the coupler port in the first antenna state, Γ in2 is the input reflection coefficient at the coupler port in the second antenna state, Γ L is the load reflection coefficient at the antenna port in the first antenna state and the second antenna state, and conj represents conjugate.

[0113] For the above-mentioned quadratic equations, when the amplitude of the input reflection coefficient at the coupler port in the two antenna states and the S parameters in the two antenna states are known, the load reflection coefficient at the antenna port can be solved.

[0114] Furthermore, since the amplitude of the input reflection coefficient at the coupler port is related to the voltage standing wave ratio, in one possible implementation, the terminal determines the real-time load reflection coefficient based on at least two voltage standing wave ratios and S parameters in at least two antenna states.

[0115] Therein, at least two voltage standing wave ratios correspond one-to-one to at least two groups of S parameters.

[0116] In some embodiments, the terminal determines the real-time load reflection coefficient based on a first voltage standing wave ratio and a first S parameter in a first antenna state, and a second voltage standing wave ratio and a second S parameter in a second antenna state.

[0117] In some embodiments, S parameters under different antenna states are obtained by de-embedding and stored in the terminal.

[0118] Since there is a correlation between the voltage standing wave ratio and the input reflection coefficient scalar (ie, the amplitude of the input reflection coefficient), the terminal needs to first determine the input reflection coefficient scalars corresponding to at least two voltage standing wave ratios.

[0119] Optionally, the terminal may calculate the input reflection coefficient scalar based on the voltage standing wave ratio by real-time calculation, or the terminal may look up the input reflection coefficient scalar corresponding to the voltage standing wave ratio by looking up a table.

[0120] In an illustrative example, the terminal is based on the formula VSWR=(1+|Γ in |) / (1-|Γ in |), and calculate the input reflection coefficient scalar corresponding to the voltage standing wave ratio.

[0121] Furthermore, the terminal determines a real-time load reflection coefficient based on input reflection coefficient scalars and S parameters in at least two antenna states.

[0122] In some embodiments, the terminal determines the real-time load reflection coefficient based on a first input reflection coefficient scalar and a first S parameter in a first antenna state, and a second input reflection coefficient scalar and a second S parameter in a second antenna state.

[0123] In this embodiment, by obtaining the pre-set S parameters under different antenna states and combining them with the voltage standing wave ratio under different antenna states obtained in real time, the load reflection coefficient of the antenna is calculated in real time, thereby realizing the determination of the vector load reflection coefficient based on the scalar voltage standing wave ratio.

[0124] As can be seen from the above quadratic equations, the input reflection coefficient in the two antenna states can determine the load reflection coefficient. Furthermore, since the input reflection coefficient and the voltage standing wave ratio have a corresponding relationship, to reduce the computational complexity when determining the load reflection coefficient, in another possible implementation, the terminal can use a lookup table (LUT) to search for a load reflection coefficient that matches the at least two voltage standing wave ratios from a second corresponding relationship based on the at least two voltage standing wave ratios. The second corresponding relationship includes the corresponding relationship between the voltage standing wave ratios and the load reflection coefficient in different antenna states.

[0125] In some embodiments, the second correspondence between the voltage standing wave ratio and the load reflection coefficient under different antenna states is pre-derived offline in a laboratory using a Maury simulation of antenna load impedance. The offline correspondence is set in the terminal for subsequent terminal table lookup.

[0126] In one illustrative example, a load reflection coefficient is first sampled on a Smith chart, and the antenna load impedance is simulated and set based on the sampled load reflection coefficient. The antenna state is then switched, and the voltage standing wave ratio (VSWR) in at least two antenna states is measured, thereby establishing a corresponding relationship between the measured VSWR in the at least two antenna states and the sampled load reflection coefficient.

[0127] Illustratively, the second corresponding relationship is shown in Table 2 (illustrated using two antenna states as an example).

[0128] Table 2

[0129] First antenna state Second antenna state <![CDATA[Γ L1 ]]> <![CDATA[VSWR 11 (C in11 )]]> <![CDATA[VSWR 12 (C in12 )]]> <![CDATA[Γ L2 ]]> <![CDATA[VSWR 21 (C in21 )]]> <![CDATA[VSWR 22 (C in22 )]]> <![CDATA[Γ L3 ]]> <![CDATA[VSWR 31 (C in31 )]]> <![CDATA[VSWR 32 (C in32 )]]> … … …

[0130] Among them, Γ Li Represents the sampled i-th load reflection coefficient, VSWR ij represents the voltage standing wave ratio measured at the i-th load reflection coefficient and the j-th antenna state (the corresponding input reflection coefficient is Γ inij ).

[0131] In some embodiments, the smaller the step size between the load reflection coefficients in the second corresponding relationship (ie, the more load reflection coefficients sampled in the offline phase), the higher the accuracy of the target load reflection coefficient subsequently determined based on the second corresponding relationship.

[0132] Since in actual application, the voltage standing wave ratio measurement may be inaccurate due to various factors, and the actual load reflection coefficient in the actual scene may not be completely consistent with the sampled load reflection coefficient, in a possible implementation method, such as Figure 7 As shown, determining the real-time load reflection coefficient by table lookup may include the following steps.

[0133] Step 701: Determine the similarity between a preset VSWR combination in the second corresponding relationship and a VSWR combination consisting of at least two VSWRs, where the preset VSWR combination consists of VSWRs under at least two antenna states in the second corresponding relationship.

[0134] If the actual load reflection coefficient of the antenna is consistent with a load reflection coefficient in the second corresponding relationship and the measured voltage standing wave ratio is accurate, the terminal can find a voltage standing wave ratio that is consistent with the measured voltage standing wave ratio in the second corresponding relationship. However, if the actual load reflection coefficient of the antenna is inconsistent with each load reflection coefficient in the second corresponding relationship and / or the measured voltage standing wave ratio has a certain deviation, the terminal cannot find a voltage standing wave ratio that is consistent with the measured voltage standing wave ratio in the second corresponding relationship.

[0135] Therefore, in order to improve robustness, in this embodiment, the terminal determines the real-time load reflection coefficient of the antenna by calculating the similarity between a voltage standing wave ratio combination composed of at least two voltage standing wave ratios (obtained by actual measurement) and each preset voltage standing wave ratio combination in the second corresponding relationship.

[0136] Combined with the second corresponding relationship shown in Table 2, the preset voltage standing wave ratio combination may include (VSWR 11 , VSWR 12 ), (VSWR 21 , VSWR 22 ), (VSWR 31 , VSWR 32 ) and so on; and the voltage standing wave ratio combination composed of the voltage standing wave ratio actually measured can be expressed as (VSWR1, VSWR2), wherein VSWR1 refers to the voltage standing wave ratio measured in the first antenna state, and VSWR2 refers to the voltage standing wave ratio measured in the second antenna state.

[0137] When calculating the similarity, the terminal calculates (VSWR1, VSWR2) and (VSWR 11 , VSWR 12 ), (VS WR 21 , VSWR 22 ) and (VSWR 31 , VSWR 32 ) similarity.

[0138] Regarding the method for calculating similarity, in one possible embodiment, the terminal calculates the similarity (which can be represented by a difference ratio) between a preset VSWR combination and the VSWR corresponding to the same antenna state in the VSWR combination, thereby determining the similarity between the combinations based on the similarities corresponding to at least two antenna states. The similarity between the combinations can be the average, weighted average, minimum, etc. of the similarities corresponding to at least two antenna states, and this embodiment of the application is not limited to this.

[0139] In another possible implementation, the terminal may calculate the distance between a preset voltage standing wave ratio combination and a voltage standing wave ratio combination, thereby determining the similarity between the combinations based on the distance, wherein the similarity is negatively correlated with the distance, i.e., the closer the distance, the higher the similarity between the combinations. The distance may be Euclidean distance, Manhattan distance, cosine distance, etc., which is not limited in this embodiment of the present application.

[0140] Schematically, when calculating (VSWR1, VSWR2) and (VSWR 11 , VSWR 12 ), the terminal calculates the distance The reciprocal of the distance is then determined as the similarity between the combinations.

[0141] Of course, the terminal may use other methods to calculate the similarity between the combinations, and the embodiment of the present application does not limit the specific method for calculating the similarity.

[0142] Step 702: Based on the similarity, determine a real-time load reflection coefficient that matches at least two voltage standing wave ratios from the second corresponding relationship.

[0143] The higher the similarity between the combinations, the closer the load reflection coefficient corresponding to the preset voltage standing wave ratio combination is to the actual load reflection coefficient of the antenna. Therefore, the terminal can determine the target voltage standing wave ratio combination from multiple preset voltage standing wave ratio combinations based on the similarity corresponding to each preset voltage standing wave ratio combination, and determine the load reflection coefficient corresponding to the target voltage standing wave ratio combination as the real-time load reflection coefficient.

[0144] In one possible implementation, when the second correspondence includes the correspondence between the voltage standing wave ratio and the load reflection coefficient under two antenna states (as shown in Table 1), the terminal determines the load reflection coefficient corresponding to the preset voltage standing wave ratio combination with the highest similarity in the second correspondence as the real-time load reflection coefficient.

[0145] Combined with Table 2, when (VSWR1, VSWR2) and (VSWR 11 , VSWR 12 ) is λ1, (VSWR1, VSWR2) and (VSWR 21 , VSWR 22 ) is λ2, (VSWR1, VSWR2) and (V SWR 31 , VSWR 32 ) is λ3, if λ2 is the highest similarity, the terminal determines that the real-time load reflection coefficient is ΓL2.

[0146] In this embodiment, compared with the real-time calculation of the load reflection coefficient, the amount of calculation required when calculating the similarity between the combinations formed by the voltage standing wave ratio and determining the real-time load reflection coefficient from the corresponding relationship based on the similarity is smaller, which helps to improve the determination rate of the load reflection coefficient and reduce the power consumption of the load reflection coefficient determination process.

[0147] In order to further improve the accuracy of the real-time load reflection coefficient obtained by table lookup, the second correspondence may include the correspondence between the voltage standing wave ratio and the load reflection coefficient in three or more antenna states. In the case where the second correspondence includes the correspondence between the voltage standing wave ratio and the load reflection coefficient in n (n>2) antenna states, the reflection coefficient determination process is as follows: Figure 8 shown.

[0148] Step 801: switch the antenna state.

[0149] Step 802: Determine n voltage standing wave ratios under n antenna states.

[0150] In a possible implementation, the terminal switches antenna states in sequence based on the n antenna states included in the second corresponding relationship, and measures the voltage standing wave ratio after each switch, thereby obtaining n voltage standing wave ratios under the n antenna states.

[0151] Step 803 , determining the similarity between a preset VSWR combination in the second corresponding relationship and a VSWR combination consisting of n VSWRs, where the preset VSWR combination consists of VSWRs under n antenna states in the second corresponding relationship.

[0152] In an illustrative example, the second correspondence relationship including three antenna states is shown in Table 3.

[0153] Table 3

[0154] First antenna state Second antenna state Third antenna state <![CDATA[Γ L1 ]]> <![CDATA[VSWR 11 (C in11 )]]> <![CDATA[VSWR 12 (C in12 )]]> <![CDATA[VSWR 13 (C in13 )]]> <![CDATA[Γ L2 ]]> <![CDATA[VSWR 21 (C in21 )]]> <![CDATA[VSWR 22 (C in22 )]]> <![CDATA[VSWR 23 (C in23 )]]> <![CDATA[Γ L3 ]]> <![CDATA[VSWR 31 (C in31 )]]> <![CDATA[VSWR 32 (C in32 )]]> <![CDATA[VSWR 33 (C in33 )]]> … … … …

[0155] Among them, Γ Li Represents the sampled i-th load reflection coefficient, VSWR ij represents the voltage standing wave ratio measured at the i-th load reflection coefficient and the j-th antenna state (the corresponding input reflection coefficient is Γ inij ).

[0156] Combined with the second corresponding relationship shown in Table 3, the preset voltage standing wave ratio combination may include (VSWR11, VSWR 12 , VSWR 13 ), (VSWR 21 , VSWR 22 , VSWR 23 ), (VSWR 31 , VSWR 32 , VSWR 33 ) and so on; and the voltage standing wave ratio combination composed of the voltage standing wave ratio actually measured can be expressed as (VSWR1, VSWR2, VSWR3), wherein VSWR1 refers to the voltage standing wave ratio measured in the first antenna state, VSWR2 refers to the voltage standing wave ratio measured in the second antenna state, and VSWR3 refers to the voltage standing wave ratio measured in the third antenna state.

[0157] When calculating the similarity, the terminal calculates (VSWR1, VSWR2, VSWR3) and (VSWR 11 , VSWR 12, VSWR 13 ), (VSWR 21 , VSWR 22 , VSWR 23 ) and (VSWR 31 , VSWR 32 , VSWR 33 ) similarity.

[0158] The calculation method of the similarity can refer to the above embodiment, and will not be described in detail in this embodiment.

[0159] Schematically, when calculating (VSWR1, VSWR2, VSWR3) and (VSWR 11 , VSWR 12 , VSWR 13 ), the terminal calculates the distance The reciprocal of the distance is then determined as the similarity between the combinations.

[0160] Step 804 : Determine the load reflection coefficient corresponding to the preset VSWR combination with the highest similarity in the second corresponding relationship as the real-time load reflection coefficient.

[0161] Combined with Table 3, when (VSWR1, VSWR2, VSWR3) and (VSWR 11 , VSWR 12 , VS WR 13 ) is λ1, (VSWR1, VSWR2, VSWR3) and (VSWR 21 , VSWR 22 , VSWR 23 ) is λ2, (VSWR1, VSWR2, VSWR3) and (VSWR 31 , VSWR 32 , VSWR 33 ) is λ3, if λ3 is the highest similarity, the terminal determines the real-time load reflection coefficient is Γ L3 .

[0162] In one embodiment including three antenna states, such as Figure 9 As shown, in the offline stage, the antenna load impedance is simulated and the antenna state is switched in the laboratory to generate LUT1 in the first antenna state (including the corresponding relationship between VSWR and the load reflection coefficient in the first antenna state), LUT2 in the second antenna state (including the corresponding relationship between VSWR and the load reflection coefficient in the second antenna state), and LUT3 in the third antenna state (including the corresponding relationship between VSWR and the load reflection coefficient in the third antenna state), and store them in the terminal (LUT1, 2, and 3 can be combined into one table).

[0163] During the online phase, the terminal switches antenna states and measures VSWR1 for the first antenna state, VSWR2 for the second antenna state, and VSWR3 for the third antenna state. By comparing VSWR1 with the VSWR in LUT1, VSWR2 with the VSWR in LUT2, and VSWR3 with the VSWR in LUT3, the terminal determines the real-time load reflection coefficient.

[0164] It should be noted that the above embodiment is described by taking only three antenna states as an example. The number of antenna states included in the second correspondence relationship can be increased according to actual needs, and the embodiment of the present application does not constitute a limitation to this.

[0165] In this embodiment, by increasing the number of antenna states included in the corresponding relationship, the real-time load reflection coefficient is determined based on a combination of voltage standing wave ratios under more antenna states, which can further reduce the impact of inaccurate voltage standing wave ratio measurement on the accuracy of reflection coefficient determination.

[0166] Since switching antenna states and measuring voltage standing wave ratio (VSWR) takes time and may affect RF communication quality, to minimize the number of antenna state switches, in one possible implementation, the terminal may attempt to determine the real-time load reflection coefficient based on the VSWR corresponding to a small number of antenna states after performing a small number of antenna state switches. If the real-time load reflection coefficient can be determined, no further antenna state switching is required; if the real-time load reflection coefficient cannot be determined, the number of antenna state switches is further increased.

[0167] In the case where the second corresponding relationship includes the corresponding relationship between the voltage standing wave ratio and the load reflection coefficient in n (n>2) antenna states, the process of determining the reflection coefficient is as follows: Figure 10 shown.

[0168] Step 1001: switch the antenna state.

[0169] Step 1002 : Determine a first voltage standing wave ratio in a first antenna state and a second voltage standing wave ratio in a second antenna state.

[0170] In this embodiment, when there are three or more antenna states, the terminal first switches to the first antenna state and the second antenna state, and measures the first voltage standing wave ratio and the second standing wave ratio in the two antenna states respectively, and the other antenna states are not switched first.

[0171] Step 1003: Determine the similarity between a first preset voltage standing wave ratio combination in the second corresponding relationship and a voltage standing wave ratio combination consisting of the first voltage standing wave ratio and the second voltage standing wave ratio, where the first preset voltage standing wave ratio combination is composed of the voltage standing wave ratios in the first antenna state and the second antenna state in the second corresponding relationship.

[0172] Since only the voltage standing wave ratio under two antenna states is initially measured, the terminal first calculates the voltage standing wave ratio combination corresponding to the two antenna states, and the similarity between the first preset voltage standing wave ratio combination corresponding to the first antenna state and the second antenna state in the second corresponding relationship.

[0173] In a possible implementation, the terminal sorts the calculated similarities in descending order, determines the similarity difference between the highest similarity and other similarities, and further compares the similarity difference with a difference threshold. Optionally, the difference threshold can be preset.

[0174] If the similarity difference is greater than the difference threshold, the terminal executes step 1004 ; if the similarity difference is less than the difference threshold, the terminal executes steps 1005 to 1006 .

[0175] In some embodiments, the similarity difference may be the similarity difference between the highest similarity and the second highest similarity, or the similarity ratio between the highest similarity and the second highest similarity; accordingly, the difference threshold may be a similarity difference threshold, or a similarity ratio threshold. This embodiment does not limit the specific method for determining the similarity difference.

[0176] Step 1004 : when the similarity difference between the highest similarity and the other similarities is greater than a difference threshold, determining the load reflection coefficient corresponding to the first preset VSWR combination with the highest similarity in the second correspondence as the real-time load reflection coefficient.

[0177] When the difference between the highest similarity and the other similarities is greater than a difference threshold, the probability that the load reflection coefficient corresponding to the first preset VSWR combination with the highest similarity matches the actual load reflection coefficient is significantly higher than the probability that the load reflection coefficients corresponding to the other first preset VSWR combinations match the actual load reflection coefficients. Therefore, to reduce the number of antenna state switching times, the terminal directly determines the load reflection coefficient corresponding to the first preset VSWR combination with the highest similarity in the second correspondence as the real-time load reflection coefficient.

[0178] Combined with the second corresponding relationship shown in Table 3, the first preset voltage standing wave ratio combination may include (VSWR 11 , VSWR 12 ), (VSWR 21 , VSWR22 ), (VSWR 31 , VSWR 32 ) and so on; and the voltage standing wave ratio combination composed of the voltage standing wave ratio actually measured can be expressed as (VSWR1, VSWR2), wherein VSWR1 refers to the voltage standing wave ratio measured in the first antenna state, and VSWR2 refers to the voltage standing wave ratio measured in the second antenna state.

[0179] If (VSWR1, VSWR2) and (VSWR 11 , VSWR 12 ) is λ1, (VSWR1, VSWR2) and (VSWR 21 , VSWR 22 ) is λ2, (VSWR1, VSWR2) and (VSWR 31 , VSWR 32 ) is λ3, and λ2>λ3>λ1, the terminal calculates the similarity difference between λ2 and λ3. If the similarity difference is greater than the difference threshold, the terminal determines that the real-time load reflection coefficient is Γ L2 .

[0180] Step 1005 : When the similarity difference between the highest similarity and the other similarities is less than a difference threshold, determine the i-th voltage standing wave ratio in the i-th antenna state, where i is greater than or equal to 3 and less than or equal to n.

[0181] When the similarity difference between the highest similarity and other similarities is greater than the difference threshold, the load reflection coefficient corresponding to the first preset VSWR combination with the highest similarity and the load reflection coefficients corresponding to other first preset VSWR combinations are likely to match the actual load reflection coefficient.

[0182] Therefore, in order to improve the accuracy of the determined real-time load reflection coefficient, the terminal performs antenna state switching and voltage standing wave ratio measurement to obtain voltage standing wave ratios under more antenna states.

[0183] Among them, when the real-time load reflection coefficient cannot be uniquely determined based on the voltage standing wave ratio corresponding to the first antenna state and the second antenna state, the terminal further switches to the third antenna state and determines the third voltage standing wave ratio in the third antenna state.

[0184] When the real-time load reflection coefficient cannot be uniquely determined based on the voltage standing wave ratio corresponding to the first antenna state, the second antenna state, and the third antenna state, the terminal further switches to the fourth antenna state and determines the fourth voltage standing wave ratio in the fourth antenna state, and so on, until the real-time load reflection coefficient can be determined, or all antenna state switches are completed.

[0185] Combined with the second corresponding relationship shown in Table 3, if (VSWR1, VSWR2) and (VSWR 11 , VSWR 12 ) is λ1, (VSWR1, VSWR2) and (VSWR 21 , VSWR 22 ) is λ2, (VSWR1, VSWR2) and (VSWR 31 , VSWR 32 ) is λ3, and λ2>λ3>λ1, the terminal calculates the similarity difference between λ2 and λ3. If the similarity difference is less than the difference threshold, the terminal further switches to the third antenna state and measures a third voltage standing wave ratio VSWR3 in the third antenna state.

[0186] Step 1006: Determine the similarity between the (i-1)th preset VSWR combination in the second correspondence and the VSWR combination consisting of the first VSWR to the (i)th VSWR, where the (i-1)th preset VSWR combination is composed of the VSWRs in the first antenna state to the (i)th antenna state in the second correspondence.

[0187] After obtaining the i-th voltage standing wave ratio, the terminal determines the similarity between the voltage standing wave ratios under the first to i-th antenna states obtained by actual measurement and the preset voltage standing wave ratio combination in the second corresponding relationship.

[0188] After obtaining the similarity, the terminal executes step 1003 to determine whether it is necessary to further switch to another antenna state.

[0189] Combined with the example of step 1005 above, further, if (VSWR1, VSWR2, VSWR3) and (VSWR 11 , VSWR 12 , VSWR 13 ) is λ1, (VSWR1, VSWR2, VSWR3) and (VSWR 21 , VSWR 22 , VSWR 23 ) is λ2, (VSWR1, VSWR2, VSWR3) and (VSWR 31 , VSWR 32 , VSWR 33 ) is λ3, and λ3>λ2>λ1, the terminal calculates the similarity difference between λ3 and λ2. If the similarity difference is greater than the difference threshold, the terminal determines that the real-time load reflection coefficient is Γ L3 .

[0190] In one embodiment including three antenna states, Figure 11As shown, in the offline stage, the antenna load impedance is simulated and the antenna state is switched in the laboratory to generate LUT1 in the first antenna state (including the corresponding relationship between VSWR and the load reflection coefficient in the first antenna state), LUT2 in the second antenna state (including the corresponding relationship between VSWR and the load reflection coefficient in the second antenna state), and LUT3 in the third antenna state (including the corresponding relationship between VSWR and the load reflection coefficient in the third antenna state), and store them in the terminal (LUT1, 2, and 3 can be combined into one table).

[0191] During the online phase, the terminal switches antenna states and first measures VSWR1 in the first antenna state and VSWR2 in the second antenna state. By comparing VSWR1 with the VSWR in LUT1, and VSWR2 with the VSWR in LUT2, the terminal determines at least two candidate load reflection coefficients (the difference in similarity between the corresponding similarities of at least two candidate antenna reflection coefficients is less than a difference threshold).

[0192] The terminal switches the antenna state and measures VSWR3 of the third antenna state. By combining the comparison result of VSWR3 and the VSWR in LUT3, the terminal determines the real-time load reflection coefficient from the at least two determined candidate load reflection coefficients.

[0193] It should be noted that the above embodiment is described by taking only three antenna states as an example. The number of antenna states included in the second correspondence relationship can be increased according to actual needs, and the embodiment of the present application does not constitute a limitation to this.

[0194] In this embodiment, the number of antenna state switching times is gradually increased, and after each antenna state switching, an attempt is made to determine the real-time load reflection coefficient based on the measured voltage standing wave ratio, and then the antenna switching is stopped when the real-time load reflection coefficient can be uniquely determined, thereby avoiding the problem of excessive power consumption and long time consumption caused by directly attempting to switch all antenna states.

[0195] Please refer to Figure 12 , which shows a structural block diagram of an automated operation execution device provided by an exemplary embodiment of the present application. The device includes:

[0196] A first determining module 1201 is configured to determine a real-time load reflection coefficient of at least one antenna in a terminal;

[0197] A second determining module 1202 is configured to determine a real-time holding gesture of the terminal based on the real-time load reflection coefficient of the at least one antenna;

[0198] The execution module 1203 is configured to execute an automated operation corresponding to the preset holding gesture when the real-time holding gesture matches the preset holding gesture.

[0199] Optionally, the second determining module 1202 is configured to:

[0200] determining a blocking state of the at least one antenna based on the real-time load reflection coefficient of the at least one antenna, wherein the blocking state is used to indicate whether the antenna is blocked;

[0201] Based on the blocking state of the at least one antenna, a real-time holding gesture of the terminal is determined.

[0202] Optionally, the second determining module 1202 is configured to:

[0203] For each antenna of the at least one antenna, determining a real-time antenna impedance of the antenna based on the real-time load reflection coefficient of the antenna;

[0204] When an impedance difference between the real-time antenna impedance and the preset antenna impedance of the antenna is less than a difference threshold, determining that the blocking state of the antenna is unblocked;

[0205] When an impedance difference between the real-time antenna impedance and the preset antenna impedance of the antenna is greater than a difference threshold, determining that the shielding state of the antenna is shielded;

[0206] The preset antenna impedance is the antenna impedance of the antenna when the antenna is not blocked.

[0207] Optionally, the second determining module 1202 is configured to:

[0208] The preset holding gesture that matches the antenna blocking state combination formed by the blocking state of the at least one antenna in the first correspondence is determined as the real-time holding gesture of the terminal, and the first correspondence includes a correspondence between the preset antenna blocking state combination and the preset holding gesture.

[0209] Optionally, the device further includes an enhancement module, configured to:

[0210] When the automated operation corresponding to the preset holding gesture requires the use of radio frequency resources, radio frequency performance enhancement processing is performed, wherein the radio frequency performance enhancement processing includes at least one of power enhancement, multi-antenna transmission and reception, and switching antenna paths.

[0211] Optional, enhanced modules for:

[0212] Determining an unobstructed antenna among the at least one antenna based on the real-time holding gesture;

[0213] Switch and use the antenna path corresponding to the unblocked antenna.

[0214] Optionally, the first determining module 1201 is configured to:

[0215] For each antenna of the at least one antenna, switching the antenna state of the antenna;

[0216] determining a voltage standing wave ratio for at least two antenna states;

[0217] The real-time load reflection coefficient is determined based on at least two of the Tianya standing wave ratios.

[0218] Optionally, the first determining module 1201 is configured to:

[0219] Based on the at least two voltage standing wave ratios, the real-time load reflection coefficient matching the at least two voltage standing wave ratios is searched from a second corresponding relationship, where the second corresponding relationship includes a corresponding relationship between the voltage standing wave ratios and the load reflection coefficients under different antenna states.

[0220] Optionally, the first determining module 1201 is configured to:

[0221] Determining a similarity between a preset voltage standing wave ratio combination in the second corresponding relationship and a voltage standing wave ratio combination consisting of the at least two voltage standing wave ratios, the preset voltage standing wave ratio combination consisting of the voltage standing wave ratios under at least two antenna states in the second corresponding relationship;

[0222] Based on the similarity, the real-time load reflection coefficient matching the at least two voltage standing wave ratios is determined from the second corresponding relationship.

[0223] Optionally, the second correspondence table includes correspondences between voltage standing wave ratios and load reflection coefficients in two antenna states;

[0224] The first determining module 1201 is configured to:

[0225] The load reflection coefficient corresponding to the preset voltage standing wave ratio combination with the highest similarity in the second corresponding relationship is determined as the real-time load reflection coefficient.

[0226] Optionally, the second correspondence table includes correspondences between voltage standing wave ratios and load reflection coefficients under n antenna states, where n is an integer greater than 2;

[0227] The first determining module 1201 is configured to:

[0228] determining a first voltage standing wave ratio in a first antenna state and a second voltage standing wave ratio in a second antenna state;

[0229] Determining a similarity between a first preset voltage standing wave ratio combination in the second corresponding relationship and a voltage standing wave ratio combination consisting of the first voltage standing wave ratio and the second voltage standing wave ratio, the first preset voltage standing wave ratio combination consisting of the voltage standing wave ratios in the first antenna state and the second antenna state in the second corresponding relationship;

[0230] When the similarity difference between the highest similarity and other similarities is greater than a difference threshold, the load reflection coefficient corresponding to the first preset VSWR combination with the highest similarity in the second corresponding relationship is determined as the real-time load reflection coefficient.

[0231] Optionally, the first determining module 1201 is configured to:

[0232] When a similarity difference between the highest similarity and the other similarities is less than the difference threshold, determining an i-th voltage standing wave ratio in an i-th antenna state, where i is greater than or equal to 3 and less than or equal to n;

[0233] Determine the similarity between the i-1th preset voltage standing wave ratio combination in the second correspondence and the voltage standing wave ratio combination consisting of the first voltage standing wave ratio to the i-th voltage standing wave ratio, where the i-1th preset voltage standing wave ratio combination is composed of the voltage standing wave ratios from the first antenna state to the i-th antenna state in the second correspondence.

[0234] Optionally, the second correspondence table includes correspondences between voltage standing wave ratios and load reflection coefficients under n antenna states, where n is an integer greater than 2;

[0235] The first determining module 1201 is configured to:

[0236] Determining n voltage standing wave ratios under the n antenna states;

[0237] Determining a similarity between a preset voltage standing wave ratio combination in the second corresponding relationship and a voltage standing wave ratio combination consisting of the n voltage standing wave ratios, the preset voltage standing wave ratio combination consisting of the voltage standing wave ratios under the n antenna states in the second corresponding relationship;

[0238] The load reflection coefficient corresponding to the preset voltage standing wave ratio combination with the highest similarity in the second corresponding relationship is determined as the real-time load reflection coefficient.

[0239] Optionally, the first determining module 1201 is configured to:

[0240] The real-time load reflection coefficient is determined based on the at least two voltage standing wave ratios and the S parameters in the at least two antenna states.

[0241] Optionally, the first determining module 1201 is configured to:

[0242] Determining an input reflection coefficient scalar corresponding to each of the at least two voltage standing wave ratios;

[0243] The real-time load reflection coefficient is determined based on the input reflection coefficient scalar and the S parameter in the at least two antenna states.

[0244] In summary, in the embodiments of the present application, a preset holding gesture is pre-set for triggering an automated operation. Subsequently, when the real-time holding gesture on the terminal is identified as matching the preset holding gesture, the corresponding automated operation can be executed without the need for the user to trigger it through voice or clicking on a specific control, thereby improving the efficiency of the automated operation. Furthermore, since human hand holding affects the load reflection coefficient of the antenna, by determining the real-time load reflection coefficient of the antenna and then determining the real-time holding gesture based on the real-time load reflection coefficient, there is no need to specifically set up a sensor component for recognizing holding gestures, thereby reducing the implementation cost of holding gesture recognition.

[0245] It should be noted that the apparatus provided in the above embodiments is merely exemplified by the division of the above functional modules. In actual applications, the above functions can be distributed among different functional modules as needed, that is, the internal structure of the apparatus can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments are based on the same concept. The implementation process is detailed in the method embodiments and will not be repeated here.

[0246] See also Figure 13 , Figure 13 FIG1 is a block diagram of a terminal provided by an exemplary embodiment of the present application. The terminal may include one or more of the following components: a processor 1310 and a memory 1320.

[0247] Optionally, the processor 1310 utilizes various interfaces and lines to connect various components within the entire terminal, and executes various terminal functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 1320, and calling data stored in the memory 1320. Optionally, the processor 1310 may be implemented in at least one hardware form of a digital signal processing (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA).

[0248] The processor 1310 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a neural network processing unit (NPU), a baseband chip, and an MCU. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the touch screen; the NPU is used to implement artificial intelligence (AI) functions; and the baseband chip is used to process wireless communications. It is understandable that the above-mentioned baseband chip may not be integrated into the processor 1310, but may be implemented separately through a single chip.

[0249] The memory 1320 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 1320 includes a non-transitory computer-readable storage medium. The memory 1320 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 1320 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function, instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data created based on the use of the terminal, etc.

[0250] In addition, those skilled in the art will understand that the structure of the terminal shown in the above drawings does not constitute a limitation on the terminal, and the terminal may include more than the illustrated structure (such as Figure 5 components in the RF architecture shown) or fewer components, or a combination of certain components, or a different arrangement of components.

[0251] An embodiment of the present application provides a computer-readable storage medium, which stores at least one computer instruction. The at least one computer instruction is used to be executed by a processor to implement the automated operation execution method as described in the above embodiment.

[0252] On the other hand, an embodiment of the present application provides a computer program product, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; a processor reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to implement the automated operation execution method described in the above embodiment.

[0253] Those skilled in the art will appreciate that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0254] The above description is merely an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A method for executing an automated operation, characterized in that: The method comprises: determining a real-time loading reflection coefficient of at least one antenna in the terminal; determining a real-time holding gesture of the terminal based on the real-time load reflection coefficient of the at least one antenna; In a case where the real-time holding gesture matches a preset holding gesture, an automated operation corresponding to the preset holding gesture is performed.

2. The method according to claim 1, characterized in that The determining the real-time holding gesture of the terminal based on the real-time load reflection coefficient of the at least one antenna includes: determining a blocking state of the at least one antenna based on the real-time load reflection coefficient of the at least one antenna, wherein the blocking state is used to indicate whether the antenna is blocked; Based on the blocking state of the at least one antenna, a real-time holding gesture of the terminal is determined.

3. The method according to claim 2, characterized in that The determining, based on the real-time load reflection coefficient of the at least one antenna, a blocking state of the at least one antenna includes: For each antenna of the at least one antenna, determining a real-time antenna impedance of the antenna based on the real-time load reflection coefficient of the antenna; When an impedance difference between the real-time antenna impedance and the preset antenna impedance of the antenna is less than a difference threshold, determining that the blocking state of the antenna is unblocked; When an impedance difference between the real-time antenna impedance and the preset antenna impedance of the antenna is greater than a difference threshold, determining that the shielding state of the antenna is shielded; The preset antenna impedance is the antenna impedance of the antenna when the antenna is not blocked.

4. The method according to claim 2, characterized in that The determining, based on the blocking state of the at least one antenna, a real-time holding gesture of the terminal includes: The preset holding gesture that matches the antenna blocking state combination formed by the blocking state of the at least one antenna in the first correspondence is determined as the real-time holding gesture of the terminal, and the first correspondence includes a correspondence between the preset antenna blocking state combination and the preset holding gesture.

5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: When the automated operation corresponding to the preset holding gesture requires the use of radio frequency resources, radio frequency performance enhancement processing is performed, wherein the radio frequency performance enhancement processing includes at least one of power enhancement, multi-antenna transmission and reception, and switching antenna paths.

6. The method according to claim 5, characterized in that The radio frequency performance enhancement process includes: Determining an unobstructed antenna among the at least one antenna based on the real-time holding gesture; Switch and use the antenna path corresponding to the unblocked antenna.

7. The method according to any one of claims 1 to 4, characterized in that: The determining of a real-time load reflection coefficient of at least one antenna in the terminal includes: For each antenna of the at least one antenna, switching the antenna state of the antenna; determining a voltage standing wave ratio for at least two antenna states; The real-time load reflection coefficient is determined based on at least two of the Tianya standing wave ratios.

8. The method according to claim 7, characterized in that The determining the real-time load reflection coefficient information based on at least two of the voltage standing wave ratios includes: Based on the at least two voltage standing wave ratios, the real-time load reflection coefficient matching the at least two voltage standing wave ratios is searched from a second corresponding relationship, where the second corresponding relationship includes a corresponding relationship between the voltage standing wave ratios and the load reflection coefficients under different antenna states.

9. The method according to claim 8, characterized in that The step of searching, based on the at least two voltage standing wave ratios, from a second corresponding relationship for the real-time load reflection coefficient that matches the at least two voltage standing wave ratios includes: Determining a similarity between a preset voltage standing wave ratio combination in the second corresponding relationship and a voltage standing wave ratio combination consisting of the at least two voltage standing wave ratios, the preset voltage standing wave ratio combination consisting of the voltage standing wave ratios under at least two antenna states in the second corresponding relationship; Based on the similarity, the real-time load reflection coefficient matching the at least two voltage standing wave ratios is determined from the second corresponding relationship.

10. The method according to claim 9, characterized in that The second correspondence table includes correspondences between voltage standing wave ratios and load reflection coefficients in two antenna states; The determining, based on the similarity, from the second corresponding relationship, the real-time load reflection coefficient that matches the at least two voltage standing wave ratios includes: The load reflection coefficient corresponding to the preset voltage standing wave ratio combination with the highest similarity in the second corresponding relationship is determined as the real-time load reflection coefficient.

11. The method according to claim 9, characterized in that The second correspondence table includes correspondences between voltage standing wave ratios and load reflection coefficients under n antenna states, where n is an integer greater than 2; The determining of the voltage standing wave ratio in at least two antenna states includes: determining a first voltage standing wave ratio in a first antenna state and a second voltage standing wave ratio in a second antenna state; The determining of the similarity between the preset voltage standing wave ratio combination in the second corresponding relationship and the voltage standing wave ratio combination consisting of the at least two voltage standing wave ratios includes: Determining a similarity between a first preset voltage standing wave ratio combination in the second corresponding relationship and a voltage standing wave ratio combination consisting of the first voltage standing wave ratio and the second voltage standing wave ratio, the first preset voltage standing wave ratio combination consisting of the voltage standing wave ratios in the first antenna state and the second antenna state in the second corresponding relationship; The determining, based on the similarity, from the second corresponding relationship, the real-time load reflection coefficient that matches the at least two voltage standing wave ratios includes: When the similarity difference between the highest similarity and other similarities is greater than a difference threshold, the load reflection coefficient corresponding to the first preset VSWR combination with the highest similarity in the second corresponding relationship is determined as the real-time load reflection coefficient.

12. The method according to claim 11, characterized in that The determining of the voltage standing wave ratio in at least two antenna states further includes: When a similarity difference between the highest similarity and the other similarities is less than the difference threshold, determining an i-th voltage standing wave ratio in an i-th antenna state, where i is greater than or equal to 3 and less than or equal to n; The determining of the similarity between the preset voltage standing wave ratio combination in the second corresponding relationship and the voltage standing wave ratio combination consisting of the at least two voltage standing wave ratios further includes: Determine the similarity between the i-1th preset voltage standing wave ratio combination in the second correspondence and the voltage standing wave ratio combination consisting of the first voltage standing wave ratio to the i-th voltage standing wave ratio, where the i-1th preset voltage standing wave ratio combination is composed of the voltage standing wave ratios from the first antenna state to the i-th antenna state in the second correspondence.

13. The method according to claim 9, characterized in that The second correspondence table includes correspondences between voltage standing wave ratios and load reflection coefficients under n antenna states, where n is an integer greater than 2; The determining of the voltage standing wave ratio in at least two antenna states includes: Determining n voltage standing wave ratios under the n antenna states; The determining of the similarity between the preset voltage standing wave ratio combination in the second corresponding relationship and the voltage standing wave ratio combination consisting of the at least two voltage standing wave ratios includes: Determining a similarity between a preset voltage standing wave ratio combination in the second corresponding relationship and a voltage standing wave ratio combination consisting of the n voltage standing wave ratios, the preset voltage standing wave ratio combination consisting of the voltage standing wave ratios under the n antenna states in the second corresponding relationship; The determining, based on the similarity, from the second corresponding relationship, the real-time load reflection coefficient that matches the at least two voltage standing wave ratios includes: The load reflection coefficient corresponding to the preset voltage standing wave ratio combination with the highest similarity in the second corresponding relationship is determined as the real-time load reflection coefficient.

14. The method according to claim 7, wherein: The determining the real-time load reflection coefficient based on at least two of the voltage standing wave ratios includes: The real-time load reflection coefficient is determined based on the at least two voltage standing wave ratios and the S parameters in the at least two antenna states.

15. The method according to claim 14, characterized in that The determining the real-time load reflection coefficient based on the at least two voltage standing wave ratios and the S parameters in the at least two antenna states includes: Determining an input reflection coefficient scalar corresponding to each of the at least two voltage standing wave ratios; The real-time load reflection coefficient is determined based on the input reflection coefficient scalar and the S parameter in the at least two antenna states.

16. An automated operation execution device, characterized in that: The device comprises: A first determining module, configured to determine a real-time load reflection coefficient of at least one antenna in the terminal; A second determining module, configured to determine a real-time holding gesture of the terminal based on the real-time load reflection coefficient of the at least one antenna; An execution module is used to execute an automated operation corresponding to the preset holding gesture when the real-time holding gesture matches the preset holding gesture.

17. A terminal, characterized in that: The terminal includes a processor and a memory, wherein the memory stores at least one computer instruction, and the at least one computer instruction is loaded and executed by the processor to implement the automated operation execution method according to any one of claims 1 to 15.

18. A computer-readable storage medium, characterized in that The computer-readable storage medium stores at least one computer instruction, and the at least one computer instruction is used to be executed by a processor to implement the automated operation execution method according to any one of claims 1 to 15.

19. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium; a processor reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to implement the automated operation execution method according to any one of claims 1 to 15.