Method, device, electronic device and storage medium for adjusting mobile terminal antenna

The grasped mode is determined through the touch and attitude data of the mobile terminal, and the antenna state is adjusted using the artificial intelligence model, which solves the problem that the mobile terminal antenna cannot be accurately adjusted in the prior art and improves communication performance.

CN116684519BActive Publication Date: 2025-01-03HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211200319.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-29
Publication Date
2025-01-03
Estimated Expiration
2042-09-29

AI Technical Summary

Technical Problem

The prior art cannot accurately judge the way a human hand holds a mobile terminal, which leads to the inability to accurately adjust the antenna of the mobile terminal, affecting communication performance.

Method used

By obtaining touch data and attitude data of the mobile terminal, the grip mode is determined, and the working state of the antenna is adjusted using the artificial intelligence model to adapt to different grip modes, improving communication performance.

Benefits of technology

It realizes accurate adjustment of mobile terminal antennas, improves communication performance, and is suitable for a variety of grip modes and scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116684519B_ABST
    Figure CN116684519B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a method, device, electronic device and storable medium for adjusting the antenna of a mobile terminal, the method comprising: obtaining touch data and posture data of the mobile terminal; the touch data indicates the position where the touch display screen of the mobile terminal is touched; according to the touch data and posture data, determining the holding mode of the mobile terminal; according to the holding mode of the mobile terminal, adjusting the antenna working state of the mobile terminal to the working state corresponding to the holding mode. Through the touch data and posture data of the mobile terminal, the position on the touch display screen of the mobile terminal touched by the human hand and the current posture of the mobile terminal can be determined, so that the position where the antenna area of ​​the mobile terminal contacts the human hand can be determined, and then the antenna in the mobile terminal affected by the human hand can be determined. In this way, the working state of the antenna of the mobile terminal can be adjusted in a targeted manner, thereby improving the communication performance of the mobile terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method, device, electronic device and storable medium for adjusting an antenna of a mobile terminal. Background Art

[0002] When the mobile terminal is working, the user may hold the mobile terminal with his hand, so that part of the antenna of the mobile terminal will be pressed against the hand. The communication performance of the antenna pressed against the hand is affected, which will cause the overall communication performance of the mobile terminal to be reduced. Therefore, it is necessary to adjust the power level or function of the working antenna of the mobile terminal according to the user's holding position to ensure the communication quality of the mobile terminal.

[0003] Since a user may have a variety of holding methods when holding a mobile terminal, the position where the user's hand touches the mobile terminal in different holding methods is different, which may have different degrees of impact on different antennas in the mobile terminal. The current method for adjusting the antenna of a mobile terminal cannot accurately determine the holding method of a human hand, resulting in the inability to accurately adjust the antenna of the mobile terminal. Therefore, a more accurate method for adjusting the antenna of a mobile terminal is needed in the art. Summary of the invention

[0004] The present application provides a method for adjusting the antenna of a mobile terminal, which is used to adjust the antenna of a mobile terminal and improve the communication performance of the mobile terminal.

[0005] In a first aspect, an embodiment of the present application provides a method for adjusting the antenna of a mobile terminal, comprising: obtaining touch data and posture data of a mobile terminal; the touch data indicating a position where a touch display screen of the mobile terminal is touched; determining a holding mode of the mobile terminal based on the touch data and the posture data; and adjusting a working state of the antenna of the mobile terminal to a working state corresponding to the holding mode based on the holding mode of the mobile terminal.

[0006] It can be seen that the method for adjusting the antenna of a mobile terminal provided in the embodiment of the present application can determine the position of the touch screen of the mobile terminal that is touched by the human hand and the current posture of the mobile terminal through the touch data of the mobile terminal and the posture data of the mobile terminal, and then the holding mode of the mobile terminal can be inferred according to the position of the touch screen that is touched by the human hand and the current posture, so as to determine the position of the antenna area of ​​the mobile terminal that is in contact with the human hand, and then determine the antenna in the mobile terminal that is affected by the human hand. In this way, the method for adjusting the antenna of a mobile terminal provided in the embodiment of the present application can adjust the working state of the antenna of the mobile terminal in a targeted manner according to the antenna that is affected in the mobile terminal, thereby improving the communication performance of the mobile terminal.

[0007] As a possible implementation method, the method for adjusting the antenna of a mobile terminal also includes: using the historical touch data and historical posture data of the mobile terminal, and the corresponding holding mode as training samples, training the artificial intelligence recognition model, and obtaining a trained artificial intelligence recognition model. In this way, the current touch data and posture data of the mobile terminal can be input into the trained artificial intelligence recognition model to obtain the current holding mode of the mobile terminal. The embodiment of the present application can deeply explore the mapping relationship between touch data and posture data and the holding mode by training the artificial intelligence model. After the mobile terminal collects the current touch data and posture data, the trained artificial intelligence model can use the mapping relationship learned by the artificial intelligence model in training to determine the current holding mode of the mobile terminal, thereby making targeted adjustments to the working state of the antenna and improving the communication performance of the mobile terminal.

[0008] As a possible implementation mode, the holding mode of the mobile terminal includes any one of a first holding mode, a second holding mode and a third holding mode; wherein the first holding mode indicates the posture of a person holding the mobile terminal in a game scene, the second holding mode indicates the posture of a person holding the mobile terminal in a call scene, and the third holding mode indicates the posture of a person holding the mobile terminal in a reading scene or a social scene. It should be noted that the different holding modes in the embodiments of the present application are the postures of a person holding the mobile terminal in different scenes. The embodiments of the present application found that in the same scene, such as a game scene, the postures of users holding the mobile terminal have a high similarity. Therefore, the embodiments of the present application determine the scene in which the mobile terminal is located based on the touch data and the posture data, and adjust the working state of the mobile terminal to the working state corresponding to the scene, thereby improving the communication performance of the mobile terminal.

[0009] As a possible implementation method, obtaining the posture data of the mobile terminal includes: obtaining first direction data of the mobile terminal in a first direction, second direction data in a second direction, and third direction data in a third direction; the angles between the first direction, the second direction, and the third direction are all 90 degrees; and determining the posture data of the mobile terminal based on the first direction data, the second direction data, and the third direction data.

[0010] As a possible implementation manner, the posture data of the mobile terminal includes a tilt angle of the mobile terminal; the tilt angle of the mobile terminal indicates an angle between a display screen of the mobile terminal and a horizontal plane.

[0011] As a possible implementation, the posture data of the mobile terminal includes a rotation angle of the mobile terminal; the rotation angle of the mobile terminal indicates an angle between the mobile terminal and a preset direction, and the preset direction is within the plane where the display screen of the mobile terminal is located.

[0012] As a possible implementation mode, the holding mode of the mobile terminal is determined based on touch data and posture data, including: if the touch data matches the user holding posture corresponding to the target holding mode, the tilt angle of the mobile terminal falls into the tilt angle interval range corresponding to the target holding mode, and the rotation angle of the mobile terminal falls into the rotation angle interval range corresponding to the target holding mode, the holding mode of the mobile terminal is determined to be the target holding mode.

[0013] As a possible implementation mode, the target holding mode is the first holding mode, the first holding mode indicates the posture of a person holding a mobile terminal in a game scenario, the tilt angle interval range corresponding to the first holding mode is the first interval, the rotation angle interval range corresponding to the first holding mode is the second interval or the third interval, and the user holding posture corresponding to the first holding mode is that the user holds both hands horizontally at both ends of the electronic device; there is no overlap between the second interval and the third interval.

[0014] As a possible implementation mode, the target holding mode is the second holding mode, the second holding mode indicates the posture of a person holding the mobile terminal in a call scenario, the tilt angle interval range corresponding to the second holding mode is the fourth interval, the rotation angle interval range corresponding to the second holding mode is the fifth interval, and the user holding posture corresponding to the second holding mode is that the user holds the mobile terminal vertically with one hand.

[0015] As a possible implementation mode, the target holding mode is the third holding mode, the third holding mode indicates the posture of a person holding the mobile terminal in a reading scene or a social scene, the tilt angle interval range corresponding to the third holding mode is the fourth interval, the rotation angle interval range corresponding to the third holding mode is the sixth interval, and the user holding posture corresponding to the third holding mode is that the user holds the mobile terminal vertically with both hands.

[0016] As a possible implementation, the posture data of the mobile terminal is collected by an acceleration sensor of the mobile terminal.

[0017] As a possible implementation manner, the touch control data of the mobile terminal includes: capacitor pressure area and capacitor coordinate information on the touch display screen of the mobile terminal.

[0018] In the second aspect, an embodiment of the present application provides a device for adjusting the antenna of a mobile terminal, including: an acquisition module for obtaining touch data and posture data of the mobile terminal; the touch data indicates the position where the touch display screen of the mobile terminal is touched; a determination module for determining the holding mode of the mobile terminal based on the touch data and the posture data; an adjustment module for adjusting the antenna working state of the mobile terminal to the working state corresponding to the holding mode according to the holding mode of the mobile terminal.

[0019] In a third aspect, an embodiment of the present application provides an electronic device, the device comprising a processor and a memory: the memory is used to store a computer program; the processor is used to execute the above-mentioned method for adjusting the antenna of a mobile terminal according to the computer program.

[0020] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, characterized in that the computer-readable storage medium is used to store a computer program, and the computer program is used to execute the above-mentioned method for adjusting the antenna of a mobile terminal. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0022] Figure 1 A hardware schematic diagram of a mobile terminal provided in an embodiment of the present application;

[0023] Figure 2 A framework diagram of a mobile terminal provided in an embodiment of the present application;

[0024] Figure 3 A schematic diagram of an interface of a mobile terminal provided in an embodiment of the present application;

[0025] Figure 4 A flowchart of a method for adjusting a mobile terminal antenna provided in an embodiment of the present application;

[0026] Figure 5 A schematic diagram of a user holding a mobile terminal provided in an embodiment of the present application;

[0027] Figure 6 A schematic diagram of a touch area of ​​a human hand on a touch display screen of a mobile terminal provided in an embodiment of the present application;

[0028] Figure 7 A schematic diagram of a tilt angle of a mobile terminal provided in an embodiment of the present application;

[0029] Figure 8 A schematic diagram of another tilt angle of a mobile terminal provided in an embodiment of the present application;

[0030] Fig. 9 A schematic diagram of a rotation angle of a mobile terminal provided in an embodiment of the present application;

[0031] Fig.10 A schematic diagram of another rotation angle of a mobile terminal provided in an embodiment of the present application;

[0032] Fig.11 A schematic diagram of a user holding a mobile terminal provided in an embodiment of the present application;

[0033] Fig.12 A schematic diagram of another user holding a mobile terminal provided in an embodiment of the present application;

[0034] Fig.13 A schematic diagram of a user holding a mobile terminal provided in an embodiment of the present application;

[0035] Fig.14 A schematic diagram of antenna positions of a mobile terminal provided in an embodiment of the present application;

[0036] Fig.15 A schematic diagram of a flow chart of a method for adjusting an antenna of a mobile terminal provided in an embodiment of the present application;

[0037] Fig.16 A schematic diagram of a device for adjusting an antenna of a mobile terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] The terms "first", "second", "third", etc. in the specification, claims and drawings of this application are used to distinguish different objects rather than to limit a specific order.

[0039] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0040] The term "user interface (UI)" in the following embodiments of the present application refers to a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface is a source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on a mobile terminal, and finally presented as content that the user can recognize. The commonly used form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of a mobile terminal.

[0041] When the mobile terminal is working, the user may hold the mobile terminal with his hand, so that part of the antenna of the mobile terminal will be pressed against the hand. The communication performance of the antenna pressed against the hand is affected, which will cause the overall communication performance of the mobile terminal to be reduced. Therefore, it is necessary to adjust the power level or function of the working antenna of the mobile terminal according to the user's holding position to ensure the communication quality of the mobile terminal. Since the user may have a variety of holding methods when holding the mobile terminal, there are differences in the position where the user's hand touches the mobile terminal in different holding methods, which may have different degrees of impact on different antennas in the mobile terminal. For example, if the user's hand covers the position corresponding to the antenna of the mobile terminal, the communication performance of the antenna will decrease. Specifically, the degree of degradation of the antenna performance is related to the area covered by the user's hand and the way of covering. The current method for adjusting the antenna of the mobile terminal cannot accurately determine the way the human hand is held, which makes it impossible to adjust the antenna of the mobile terminal more accurately.

[0042] In order to solve the above technical problems, the embodiment of the present application provides a method for adjusting the antenna of a mobile terminal, including: obtaining touch data and posture data of the mobile terminal; the touch data indicates the touch area of ​​the human hand on the touch display screen of the mobile terminal, and the posture data indicates the posture of the mobile terminal; according to the touch data and the posture data, determining the holding mode of the human hand on the mobile terminal; the holding mode indicates the posture of the human hand holding the mobile terminal; according to the holding mode of the mobile terminal, adjusting the antenna communication of the mobile terminal. The method for adjusting the antenna of the mobile terminal provided in the embodiment of the present application can infer the holding mode between the human hand and the mobile terminal through the touch data of the mobile terminal and the posture data of the mobile terminal, so as to determine the antenna affected by the human hand in the mobile terminal. In this way, the method for adjusting the antenna of the mobile terminal provided in the embodiment of the present application can adjust the antenna communication parameters of the mobile terminal in a targeted manner according to the antenna affected in the mobile terminal, thereby improving the communication performance of the mobile terminal.

[0043] In some examples, the mobile terminal can be a camera, a mobile phone, a tablet computer, a handheld computer, a netbook, a personal digital assistant (PDA), etc., and the present application does not impose any special restrictions on the specific form of the above mobile terminal. In order to better understand the scheme provided by the embodiments of the present application, the application scenario of the scheme provided by the embodiments of the present application is first introduced.

[0044] like Figure 1As shown, the terminal may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0045] It is understandable that the structure illustrated in this embodiment does not constitute a specific limitation on the terminal. In other embodiments, the terminal may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The illustrated components can be implemented in hardware, software, or a combination of software and hardware. In an embodiment of the present application, the acceleration sensor 180E can be used to collect the posture of the mobile terminal. The touch sensor 180K (touch component) can be used to collect the area touched by a human hand on the touch display screen of the mobile terminal. The framework of the method for adjusting the antenna of a mobile terminal provided in the present application is introduced below.

[0046] See also Figure 2 , which is a framework diagram of a mobile terminal provided in an embodiment of the present application.

[0047] The mobile terminal provided in the embodiment of the present application can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to illustrate the software structure of the mobile terminal.

[0048] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. Figure 2 As shown, the layered architecture of Android includes: an application (APP) layer 100, a framework (Framework) layer 200, a hardware abstraction (HAL) layer 300, a kernel (Kernel) layer 400 and a device (hardware) layer 500, etc.

[0049] The application layer 100 may be installed with multiple applications. Figure 2As shown, the application layer may include game applications 101, social applications 102, reading applications 103, etc. In the application embodiment, the application layer may also include video applications and call applications, etc., which are not limited in the present application embodiment. The framework layer 200 may include a system module 201. In actual applications, the system module in the framework layer 200 may convey information and instructions sent by applications in the application layer 100 to the hardware abstraction layer 300.

[0050] The hardware abstraction layer 300 includes a mode recognition module 301 and an antenna adjustment module 302. The mode recognition module 301 can determine the holding mode of the electronic device based on the information uploaded by the kernel layer and / or the information sent by the framework layer. The antenna adjustment module 302 can determine the antenna communication strategy of the electronic device at this time based on the holding mode sent by the mode recognition module 301.

[0051] The kernel layer 400 includes a gesture data processing module 401, a touch data processing module 402 and an antenna signal processing module 403. The device layer 500 includes an acceleration sensor 501, a touch component 502 and an antenna component 503. The gesture data processing module 401 can generate a gesture signal according to the gesture data collected by the acceleration sensor 501, and send the gesture signal to the pattern recognition module 301. The touch data processing module 402 can generate a touch signal according to the touch data collected by the touch component 502, and send the touch signal to the pattern recognition module 301. The antenna signal processing module 403 can adjust the communication power of the antenna component 503 according to the antenna communication strategy determined by the antenna adjustment module 302.

[0052] In actual applications, the mobile terminal can enable the antenna communication adjustment function provided in the embodiment of the present application by default. The user can also set the antenna communication adjustment function in the mobile terminal. When the user wants to turn on or off the antenna communication adjustment function, such as Figure 3 As shown, the user can now click on the setting software on the main display interface of the mobile terminal. The mobile terminal will display multiple functions that can be set, including wireless LAN, Bluetooth, cellular network, personal hotspot and communication settings. The user finds the communication setting function and opens the communication setting. When the user opens the communication setting, the mobile terminal will display the antenna communication adjustment function. The user can turn on or off the antenna communication adjustment function by sliding the switch of the antenna communication adjustment function.

[0053] In order to better understand the method for adjusting the antenna of a mobile terminal provided in an embodiment of the present application, the method for adjusting the antenna of a mobile terminal provided in an embodiment of the present application will be specifically introduced below with reference to the accompanying drawings.

[0054] See also Figure 4, which is a flow chart of a method for adjusting a mobile terminal antenna provided in an embodiment of the present application.

[0055] like Figure 4 As shown, the method for adjusting the antenna of a mobile terminal provided in an embodiment of the present application includes:

[0056] S401 : the touch data processing module 402 collects touch data through the touch component 502 .

[0057] The touch component 502 is located in the device layer 500 of the mobile terminal, and the touch data processing module 402 is located in the kernel layer 400 of the mobile terminal. The touch data processing module 402 of the mobile terminal can detect the touch area of ​​a human hand on the touch display screen of the mobile terminal through the touch component 502. The touch data may include the pressure area information of the capacitor on the touch display screen of the mobile terminal and the coordinate information of the capacitor. The pressure area information of the capacitor may be data indicating the pressure area of ​​the capacitor, such as the current and voltage of the capacitor. It should be noted that when the user uses the mobile terminal, the user's hand holding the mobile terminal may touch the touch display screen of the mobile terminal. At this time, the touch component 502 can generate the pressure area of ​​the capacitor on the touch display screen and the coordinate information of the capacitor, thereby obtaining the touch area of ​​the human hand on the touch display screen. As an example, if Figure 5 and Figure 6 As shown, when the user holds the mobile terminal vertically with one hand, Figure 6 The shaded portion of the touch screen of the mobile terminal contacts the human hand, so that the capacitor of the shaded portion of the touch screen is compressed. The touch data processing module 402 can collect the compressed area information of the capacitor of the shaded portion and the position information of the capacitor of the shaded portion in the touch screen through the touch component 502 to obtain touch data.

[0058] S402 : the touch data processing module 402 generates a touch signal according to the touch data, and sends the touch signal to the pattern recognition module 301 .

[0059] The pattern recognition module 301 is located in the hardware abstraction layer 300 of the mobile terminal. The touch signal (TP signal) in the embodiment of the present application indicates the position of the touch of the human hand on the electronic device display screen. The touch data processing module 402 can determine the position of the touch of the human hand on the electronic device display screen according to the information of the capacitor pressure area on the touch display screen and the coordinate information of the capacitor in the touch data, that is, Figure 6 The shaded part in the image. There is a correlation between the position of the user's hand touching the touch screen and the user's posture of holding the mobile terminal. The position of the user's hand touching the touch screen collected by the mobile terminal can assist in determining the user's posture of holding the mobile terminal at this time.

[0060] S403 : the posture data processing module 401 collects posture data through the acceleration sensor 501 .

[0061] The acceleration sensor 501 is located in the device layer 500 of the mobile terminal, and the posture data processing module 401 is located in the kernel layer 400 of the mobile terminal. The posture data in the embodiment of the present application indicates the posture of the mobile terminal. For example, the mobile terminal is in landscape or portrait mode, and the mobile terminal is perpendicular to the horizontal plane or parallel to the horizontal plane. As an example, the posture data in the present application may include the tilt angle of the mobile terminal, and the tilt angle may be the angle between the display screen of the mobile terminal and the horizontal plane. Figure 7 As shown, Figure 7 When the mobile terminal is displayed in portrait mode, the tilt angle may be the angle a between the side of the mobile terminal and the horizontal plane. Figure 8 As shown, Figure 8 When the mobile terminal is displayed in landscape mode, the tilt angle may be the angle a between the side of the mobile terminal and the horizontal plane. As a possible implementation, the embodiment of the present application may collect direction data of the mobile terminal in three directions in a three-dimensional coordinate system through an acceleration sensor, including direction data x in the first direction, direction data x in the second direction, and direction data x in the third direction.

[0062] The posture data may also include the rotation angle of the mobile terminal, which may be the angle between the mobile terminal and a preset direction, and the preset direction is within the plane where the display screen of the mobile terminal is located. It should be noted that when the plane where the display screen of the mobile terminal is located changes, that is, when the tilt angle of the mobile terminal changes, the preset direction in the embodiment of the present application will also change accordingly, and the preset direction is always within the plane where the display screen is located. Fig. 9 As shown, the preset direction is the upward direction in the plane where the touch display screen of the mobile terminal is located. When the electronic device is a mobile phone, it can be the direction where the midpoint of the plane where the touch display screen of the electronic device is located points to the front camera of the electronic device. At this time, when the direction of the mobile terminal is consistent with the preset direction, the rotation angle is 0. If the mobile terminal rotates in the plane where the touch display screen is located, the rotation angle will also change accordingly. Fig.10 As shown, the mobile terminal rotates 90 degrees in the plane where the touch display screen is located. At this time, the angle between the direction of the mobile terminal and the preset direction is 90 degrees, that is, the rotation angle of the mobile terminal is 90 degrees. As a possible implementation, the embodiment of the present application can collect direction data of the mobile terminal in three directions in the three-dimensional coordinate system through an acceleration sensor, including direction data x in the first direction, direction data y in the second direction, and direction data z in the third direction, wherein the direction of z is perpendicular to the horizontal plane, and the rotation angle b=tan -1 2(-x / z).

[0063] It should be noted that the embodiment of the present application does not limit the order relationship between step S403 and step S401, nor does it limit the order relationship between step S403 and step S402. The embodiment of the present application may first execute step S401 and step S402 and then execute step S403, or may first execute step S403 and then execute step S401 and step S402, which is not limited in the embodiment of the present application.

[0064] S404 : the posture data processing module 401 generates a posture signal according to the posture data, and sends the posture signal to the pattern recognition module 301 .

[0065] The pattern recognition module 301 is located in the hardware abstraction layer 300 of the mobile terminal. The posture signal (ACC signal) in the embodiment of the present application indicates the posture of the electronic device. The posture data processing module 401 can determine the posture of the mobile terminal at this time according to the tilt angle and rotation angle in the posture data. There is also a correlation between the posture of the mobile terminal and the posture of the user holding the mobile terminal. The mobile terminal can assist in determining the posture of the user holding the mobile terminal at this time by determining its own posture.

[0066] It should be noted that the embodiment of the present application does not limit the order relationship between step S404 and step S401, nor does it limit the order relationship between step S404 and step S402. The embodiment of the present application may first execute step S401 and step S402 and then execute step S404, or may first execute step S404 and then execute step S401 and step S402, which is not limited in the embodiment of the present application.

[0067] S405 : the system module 201 collects application data currently running on the mobile terminal, and generates an application signal and sends it to the pattern recognition module 301 .

[0068] The system module 201 is located in the framework layer 200 of the mobile terminal, and the application on the mobile terminal is located in the application layer 100 of the mobile terminal. It should be noted that the application running on the mobile terminal in the embodiment of the present application may be a game application 101, a social application 102, a reading application 103 or other applications, which is not limited in the embodiment of the present application. The application signal generated by the system module 201 according to the application data can indicate the application running on the mobile terminal. The application running on the mobile terminal is related to the application scenario of the mobile terminal, so there is also an association between the application running on the mobile terminal and the posture of the user holding the mobile terminal. By determining the application being run, the mobile terminal can assist in determining the posture of the user holding the mobile terminal at this time.

[0069] The application signal in the embodiment of the present application can also indicate the communication type of the mobile terminal at this time. For example, when the application running on the mobile terminal is a call application, it can be determined that the main communication signal of the mobile terminal is a call signal. When the application running on the mobile terminal is a game application 101, the system module 201 can also collect the communication category of the game application and determine whether the main communication signal of the mobile terminal at this time is a WI-FI (wireless network communication) signal or a data signal.

[0070] S406: The mode recognition module 301 determines the holding mode of the mobile terminal according to the touch signal, the gesture signal and the application signal.

[0071] The embodiment of the present application may include multiple holding modes, and the mode recognition module 301 may determine the current holding mode of the mobile terminal from the multiple holding modes based on the touch signal and the posture signal. Different holding modes of the mobile terminal indicate different postures of the user holding the mobile terminal. Multiple holding modes may correspond to the postures of the user holding the mobile terminal in multiple usage scenarios. For example, the first holding mode may correspond to the holding posture of the user in the game scenario, the second holding mode may correspond to the holding posture of the user in the call scenario, and the third holding mode may correspond to the holding posture of the user in the reading scenario or the social scenario.

[0072] The pattern recognition module 301 in the embodiment of the present application can determine the holding mode of the mobile terminal through a trained artificial intelligence model, or can determine the mode of the mobile terminal through a preset conditional logic. When the pattern recognition module 301 determines the holding mode of the mobile terminal through an artificial intelligence model, the artificial intelligence model can be trained with a large amount of training data first, and then the pattern recognition module 301 inputs the touch signal and posture data into the trained artificial intelligence model to obtain the current holding mode of the mobile terminal. The current holding mode of the mobile terminal may include the above-mentioned first holding mode, second holding mode and third holding mode.

[0073] The mode recognition module 301 can also determine the current holding mode of the mobile terminal according to the position of the user holding in the TP signal and the range of the tilt angle and the rotation angle in the ACC signal. When the position of the user holding in the TP signal, and the tilt angle and the rotation angle in the ACC signal meet the preset conditions in the target scene, the mode recognition module 301 determines that the mobile terminal is in the holding mode in the target scene.

[0074] For example, in a game scenario, the user's holding posture can be as follows: Fig.11As shown, the mobile terminal is placed in landscape orientation, and the user's hands are held in landscape orientation at both ends of the mobile terminal, that is, the user's hands are held at both ends of the longer side of the terminal. Therefore, the preset conditions corresponding to the game scene may include that the tilt angle of the mobile terminal is within the first interval, the rotation angle of the mobile terminal is within the second interval or the third interval, the touch data indicates that the user's hands are held in landscape orientation at both ends of the electronic device, and the touch data indicates that the user's hands are held in landscape orientation at both ends of the electronic device. As an example, the first interval may be between -10 degrees and 70 degrees, and the second interval is an interval consisting of values ​​close to 90 degrees, such as 85 degrees to 95 degrees. The third interval is an interval consisting of values ​​close to 270 degrees, such as 265 degrees to 275 degrees.

[0075] In the call scenario, the user's holding posture can be as follows: Fig.12 As shown, the screen of the mobile terminal faces the side, and the user holds the mobile terminal in portrait mode with one hand, that is, the user holds the two long sides of the terminal screen. Therefore, the preset conditions corresponding to the call scenario may include that the rotation angle of the mobile terminal is within the fourth interval, the tilt angle of the mobile terminal is within the fifth interval, and the touch data indicates that the user holds the mobile terminal in portrait mode with one hand. As an example, the fourth interval is an interval composed of values ​​close to 0 degrees, such as -5 degrees to 5 degrees. The fifth interval can be an interval between 45 degrees and 135 degrees.

[0076] The user's holding posture in reading or social scenarios can be as follows: Fig.13 As shown, the mobile terminal is facing upwards in portrait mode, and the user holds the mobile terminal in portrait mode with both hands. Therefore, the preset conditions corresponding to the reading scene or social scene include that the rotation of the mobile terminal is within the fourth interval, the tilt angle of the mobile terminal is within the sixth interval, and the touch data indicates that the user holds the mobile terminal in portrait mode with both hands. The sixth interval can be between -20 degrees and 70 degrees. In actual applications, the user can also hold the mobile terminal with one hand in the reading scene or social scene. Fig.13 This is only an example and is not intended to limit the embodiments of the present application.

[0077] After the pattern recognition module 301 determines the current holding mode of the mobile terminal from a variety of holding modes based on the touch signal and the posture signal, the present application can also reconfirm the current holding mode of the mobile terminal based on the application signal. For example, after the pattern recognition module 301 determines that the holding mode of the mobile device is the first holding mode, the pattern recognition module 301 verifies through the application signal whether the application running on the mobile terminal at this time is a game application. When the pattern recognition module 301 confirms that the application running on the mobile terminal at this time is a game application, it confirms that the holding mode of the mobile device is the first holding mode. When the pattern recognition module 301 confirms that the application running on the mobile terminal at this time is not a game application, the holding mode of the mobile terminal can be re-identified.

[0078] S407: The mode recognition module 301 sends the holding mode of the mobile terminal to the antenna adjustment module 302.

[0079] The antenna adjustment module 302 is located in the hardware abstraction layer 300 of the mobile terminal. In the embodiment of the present application, the holding mode of the mobile terminal can be one of a plurality of preset holding modes, and the mode recognition module 301 sends the holding mode of the mobile terminal to the antenna adjustment module 302, so that the antenna adjustment module 302 can adjust the antenna communication of the mobile terminal in a targeted manner according to the holding mode of the mobile terminal, thereby enhancing the antenna communication performance of the mobile terminal.

[0080] S408: The antenna adjustment module 302 determines the antenna communication strategy of the mobile terminal according to the holding mode sent by the mode recognition module 301.

[0081] The antenna adjustment mode 302 can determine the antenna communication strategy corresponding to the holding mode according to the holding mode sent by the mode recognition module 301 and the antenna layout information of the mobile device. As an example, the antenna layout information of the mobile device can be as follows: Fig.14 As shown, the mobile device includes 8 antennas, wherein the two ends of the mobile device are the first antenna and the fifth antenna respectively, one side of the mobile device includes the second antenna, the third antenna and the fourth antenna, and the other side of the mobile device includes the sixth antenna, the seventh antenna and the eighth antenna.

[0082] It should be noted that in the game scenario corresponding to the first holding mode, the user's hands may be held at both ends of the electronic device, that is, one of the user's hands is close to the , affecting the communication functions of the fourth antenna, the fifth antenna and the sixth antenna. The other hand of the user is close to the first antenna, the second antenna and the eighth antenna, affecting the communication function. Therefore, when the holding mode received by the antenna adjustment module 302 is the first holding mode, the antenna adjustment module 302 can select a strategy to enhance the communication functions of the first antenna, the second antenna, the eighth antenna, the fourth antenna, the fifth antenna and the sixth antenna, so that the communication function of the mobile terminal is less affected by the user's holding posture, and the overall communication function of the mobile terminal is enhanced. After determining the antenna communication strategy, the antenna adjustment module 302 can send the antenna communication strategy to the antenna signal processing module 403 for implementation. The antenna signal processing module 403 is located in the kernel layer 400 of the mobile terminal.

[0083] As a possible implementation, the antenna adjustment module 302 can also obtain the contact range of the user's hand contacting the touch display screen according to the TP information. The contact range may include the center coordinates of the contact position, the contact area, the length and width of the contact range, and other information. Then the antenna adjustment module 302 can also determine the functional obstruction score of the antenna according to the contact range of the hand contacting each antenna. Generally speaking, the larger the proportion of the contact range to the total range of the antenna, the higher the functional obstruction score of the antenna. After determining the functional obstruction score of the antenna, the antenna adjustment module 302 can also send the functional obstruction score of the antenna to the antenna signal processing module 403.

[0084] S409: The antenna signal processing module 403 adjusts the antenna communication parameters of the mobile terminal according to the antenna communication strategy sent by the antenna adjustment module 302.

[0085] The antenna signal processing module 403 is located in the kernel layer 400 of the mobile terminal. According to the antenna communication strategy sent by the antenna adjustment module 302, the antenna signal processing module 402 can enhance the relevant parameters of the eight antennas in the mobile device in a targeted manner, so that the communication function of the mobile terminal is less affected by the user's holding posture, and the overall communication function of the mobile terminal is enhanced. For example, when the antenna signal processing module 403 receives the antenna communication strategy corresponding to the first holding mode, the power of the first antenna, the second antenna, the eighth antenna, the fourth antenna, the fifth antenna, and the sixth antenna can be enhanced, thereby enhancing the overall communication function of the mobile terminal.

[0086] As a possible implementation, the antenna signal processing module 403 may also determine the enhancement range of the antenna power according to the function obstruction score of the antenna. Generally speaking, the greater the function obstruction score of the antenna, the greater the enhancement range of the antenna by the antenna signal processing module 403. The antenna signal processing module 403 may also perform targeted enhancement of the communication signal of this type according to the communication type of the mobile terminal at this time indicated by the application signal. As an example, when the application running on the mobile terminal is a call application, it can be determined that the main communication signal of the mobile terminal is a call signal. At this time, the call signal can be enhanced in a targeted manner to enhance the communication function of the mobile terminal.

[0087] See also Fig.15 , which is a flow chart of a method for adjusting the antenna of a mobile terminal provided in an embodiment of the present application.

[0088] like Fig.15 As shown, the method for adjusting the antenna of a mobile terminal provided in an embodiment of the present application includes:

[0089] S1501: Acquire touch data and posture data of the mobile terminal; the touch data indicates a touched position of the touch display screen of the mobile terminal.

[0090] It should be noted that the posture data in the embodiment of the present application may indicate the posture of the user's hand holding the mobile terminal. The specific implementation of step S1501 in the embodiment of the present application can refer to steps S401 to S404, and the embodiment of the present application will not be repeated here.

[0091] S1502: Determine the holding mode of the mobile terminal according to the touch data and the posture data.

[0092] The holding mode in the embodiment of the present application may include a first holding mode, a second holding mode and a third holding mode. For specific implementations, reference may be made to step S406, and the embodiment of the present application will not be repeated here.

[0093] S1503: According to the holding mode of the mobile terminal, the antenna working state of the mobile terminal is adjusted to a working state corresponding to the holding mode.

[0094] Different holding modes of the mobile terminal in the embodiment of the present application may correspond to different antenna working states. The specific implementation of step S1501 in the embodiment of the present application may refer to steps S407 to S409, and the embodiment of the present application will not be repeated here. In the embodiment of the present application, the antenna working state of the mobile terminal may be the antenna working power of the mobile terminal, or other parameters of the antenna communication of the mobile terminal, which is not limited in the embodiment of the present application.

[0095] In summary, the method for adjusting the antenna of a mobile terminal provided in the embodiment of the present application can determine the position of the touch screen of the mobile terminal that is touched by the human hand and the current posture of the mobile terminal through the touch data of the mobile terminal and the posture data of the mobile terminal, and then the holding mode of the mobile terminal can be inferred according to the position of the touch screen that is touched by the human hand and the current posture, so as to determine the position of the antenna area of ​​the mobile terminal that is in contact with the human hand, and then determine the antenna in the mobile terminal that is affected by the human hand. In this way, the method for adjusting the antenna of a mobile terminal provided in the embodiment of the present application can adjust the working state of the antenna of the mobile terminal in a targeted manner according to the antenna that is affected in the mobile terminal, thereby improving the communication performance of the mobile terminal.

[0096] According to the method for adjusting the antenna of a mobile terminal provided in the above embodiment, an embodiment of the present application further provides a device for adjusting the antenna of a mobile terminal.

[0097] See also Fig.16 , which is a schematic diagram of a device for adjusting a mobile terminal antenna provided in an embodiment of the present application, including:

[0098] The acquisition module 1601 is used to obtain touch data and posture data of the mobile terminal; the touch data indicates the position where the touch display screen of the mobile terminal is touched;

[0099] A determination module 1602, configured to determine a holding mode of the mobile terminal according to the touch data and the posture data;

[0100] The adjustment module 1603 is used to adjust the antenna working state of the mobile terminal to the working state corresponding to the holding mode according to the holding mode of the mobile terminal.

[0101] In summary, the device for adjusting the antenna of a mobile terminal provided in the embodiment of the present application can infer the holding mode of the mobile terminal through the touch data and the posture data of the mobile terminal, so as to determine the position where the mobile terminal contacts the human hand, and then determine the antenna in the mobile terminal affected by the human hand. In this way, the method for adjusting the antenna of a mobile terminal provided in the embodiment of the present application can adjust the working state of the antenna of the mobile terminal in a targeted manner according to the antenna affected in the mobile terminal, thereby improving the communication performance of the mobile terminal.

[0102] According to the above-mentioned method for adjusting the antenna of a mobile terminal and the device for adjusting the antenna of a mobile terminal, an embodiment of the present application also provides an electronic device, which includes a processor and a memory: the memory is used to store a computer program; the processor is used to execute the above-mentioned method for adjusting the antenna of a mobile terminal according to the computer program.

[0103] According to the above-mentioned method for adjusting the antenna of a mobile terminal and the device for adjusting the antenna of a mobile terminal, an embodiment of the present application also provides a computer-readable storage medium, which is used to store a computer program, and the computer program is used to execute the above-mentioned method for adjusting the antenna of a mobile terminal.

[0104] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0105] In the several embodiments provided in this embodiment, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0106] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0107] In addition, each functional unit in each embodiment of the present embodiment may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0108] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment. The aforementioned storage medium includes: flash memory, mobile hard disk, read-only memory, random access memory, disk or optical disk and other media that can store program codes.

[0109] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for adjusting a mobile terminal antenna, characterized in that: include: Obtaining touch data of the mobile terminal and posture data of the mobile terminal; the touch data indicates the position where the touch display screen of the mobile terminal is touched, and the touch range of the touch display screen; Determine the holding mode of the mobile terminal according to the touch data and the posture data; the holding mode of the mobile terminal includes any one of a first holding mode, a second holding mode and a third holding mode; wherein the first holding mode indicates the posture of a person holding the mobile terminal in a game scenario, the second holding mode indicates the posture of a person holding the mobile terminal in a call scenario, and the third holding mode indicates the posture of a person holding the mobile terminal in a reading scenario or a social scenario; and Determining, according to the touch data, a function obstruction score of the antenna of the mobile terminal; the determining, according to the touch data, the function obstruction score of the antenna of the mobile terminal comprises: determining, according to the touched range of the touch display screen indicated by the touch data, a contact range of the user's hand contacting the antenna; determining, according to the contact range of the user's hand contacting the antenna, the function obstruction score of the antenna of the mobile terminal; According to the holding mode of the mobile terminal and the function obstruction score of the antenna of the mobile terminal, enhancing the power of the antenna in the mobile terminal that is affected by the holding of the user's hand; The holding mode indicates an antenna in the mobile terminal that is affected by the user's holding, and the function obstruction score of the antenna indicates an enhancement amplitude of the power of the antenna that is affected by the user's holding; The method further comprises: Obtaining a signal of an application currently running on the mobile terminal; After determining the held mode of the mobile terminal, the method further includes: Verifying the holding mode according to the application signal; When the verification is passed, adjusting the antenna working state of the mobile terminal to a working state corresponding to the holding mode according to the holding mode of the mobile terminal; When the verification fails, the held mode of the mobile terminal is re-determined.

2. The method according to claim 1, characterized in that Also includes: Using historical touch data and historical posture data of the mobile terminal and the corresponding holding mode as training samples, the artificial intelligence recognition model is trained to obtain a trained artificial intelligence recognition model; The determining, according to the touch data and the posture data, the holding mode of the mobile terminal includes: The touch data and the posture data are input into the trained artificial intelligence recognition model to obtain the holding mode of the mobile terminal.

3. The method according to claim 1, characterized in that Obtaining the posture data of the mobile terminal, including: Obtaining first direction data of the mobile terminal in a first direction, second direction data in a second direction, and third direction data in a third direction; the angles between the first direction, the second direction, and the third direction are all 90 degrees; The posture data of the mobile terminal is determined according to the first direction data, the second direction data and the third direction data.

4. The method according to claim 3, characterized in that The posture data of the mobile terminal includes a tilt angle of the mobile terminal; the tilt angle of the mobile terminal indicates an angle between a display screen of the mobile terminal and a horizontal plane.

5. The method according to claim 4, characterized in that The posture data of the mobile terminal includes a rotation angle of the mobile terminal; the rotation angle of the mobile terminal indicates an angle between the mobile terminal and a preset direction, and the preset direction is within a plane where a display screen of the mobile terminal is located.

6. The method according to claim 5, characterized in that The determining, according to the touch data and the posture data, the holding mode of the mobile terminal includes: If the touch data matches the user holding posture corresponding to the target holding mode, the tilt angle of the mobile terminal falls into the tilt angle interval range corresponding to the target holding mode, and the rotation angle of the mobile terminal falls into the rotation angle interval range corresponding to the target holding mode, the holding mode of the mobile terminal is determined to be the target holding mode.

7. The method according to claim 6, characterized in that The target holding mode is the first holding mode, the first holding mode indicates the posture of a human hand holding the mobile terminal in a game scene, the tilt angle interval range corresponding to the first holding mode is the first interval, the rotation angle interval range corresponding to the first holding mode is the second interval or the third interval, and the user holding posture corresponding to the first holding mode is that the user holds both hands horizontally at both ends of the electronic device; there is no overlap between the second interval and the third interval.

8. The method according to claim 6, characterized in that The target holding mode is the second holding mode, the second holding mode indicates the posture of a person holding the mobile terminal in a call scenario, the tilt angle interval range corresponding to the second holding mode is the fourth interval, the rotation angle interval range corresponding to the second holding mode is the fifth interval, and the user holding posture corresponding to the second holding mode is that the user holds the mobile terminal vertically with one hand.

9. The method according to claim 6, characterized in that The target holding mode is the third holding mode, the third holding mode indicates the posture of a person holding the mobile terminal in a reading scene or a social scene, the tilt angle interval range corresponding to the third holding mode is the fourth interval, the rotation angle interval range corresponding to the third holding mode is the sixth interval, and the user holding posture corresponding to the third holding mode is that the user holds the mobile terminal vertically with both hands.

10. The method according to claim 1, characterized in that The posture data of the mobile terminal is collected by an acceleration sensor of the mobile terminal.

11. The method according to claim 1, characterized in that: The touch control data of the mobile terminal includes: capacitor pressure area and capacitor coordinate information on the touch display screen of the mobile terminal.

12. A device for adjusting a mobile terminal antenna, characterized in that: include: An acquisition module, used to acquire touch data of the mobile terminal and posture data of the mobile terminal; The touch data indicates the position where the touch display screen of the mobile terminal is touched and the touched range of the touch display screen; A determination module, configured to determine a holding mode of the mobile terminal according to the touch data and the posture data; the holding mode of the mobile terminal includes any one of a first holding mode, a second holding mode and a third holding mode; wherein the first holding mode indicates a posture of a human hand holding the mobile terminal in a gaming scenario, the second holding mode indicates a posture of a human hand holding the mobile terminal in a call scenario, and the third holding mode indicates a posture of a human hand holding the mobile terminal in a reading scenario or a social scenario; and Determining, according to the touch data, a function obstruction score of the antenna of the mobile terminal; the determining, according to the touch data, the function obstruction score of the antenna of the mobile terminal comprises: determining, according to the touched range of the touch display screen indicated by the touch data, a contact range of the user's hand contacting the antenna; determining, according to the contact range of the user's hand contacting the antenna, the function obstruction score of the antenna of the mobile terminal; an adjustment module, configured to enhance the power of an antenna in the mobile terminal that is affected by the user's hand holding according to the holding mode of the mobile terminal and the function obstruction score of the antenna of the mobile terminal; The holding mode indicates an antenna in the mobile terminal that is affected by the user's holding, and the function obstruction score of the antenna indicates an enhancement amplitude of the power of the antenna that is affected by the user's holding; The obtaining module is further used to obtain the application signal currently running on the mobile terminal; The adjustment module is further used to verify the holding mode according to the application signal; When the verification is passed, adjusting the antenna working state of the mobile terminal to a working state corresponding to the holding mode according to the holding mode of the mobile terminal; When the verification fails, the held mode of the mobile terminal is re-determined.

13. An electronic device, characterized in that: The device comprises a processor and a memory: The memory is used to store computer programs; The processor is configured to execute the method of any one of claims 1 to 11 according to the computer program.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and the computer program is used to execute the method according to any one of claims 1 to 11.