Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative and are only for the purpose of explaining the present application and are not to be construed as limiting the present application.
In the description of the present application, it is to be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," and the like are used in the orientations and positional relationships indicated in the drawings for convenience in describing the present application and for simplicity in description, and are not intended to indicate or imply that the referenced devices or elements must have a particular orientation, be constructed in a particular orientation, and be operated in a particular manner, and are not to be construed as limiting the present application. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
In the description of the present application, it is to be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; may be mechanically connected, may be electrically connected or may be in communication with each other; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
In this application, unless expressly stated or limited otherwise, the first feature "on" or "under" the second feature may comprise direct contact of the first and second features, or may comprise contact of the first and second features not directly but through another feature in between. Also, the first feature being "on," "above" and "over" the second feature includes the first feature being directly on and obliquely above the second feature, or merely indicating that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature includes the first feature being directly under and obliquely below the second feature, or simply meaning that the first feature is at a lesser elevation than the second feature.
The following disclosure provides many different embodiments or examples for implementing different features of the application. In order to simplify the disclosure of the present application, specific example components and arrangements are described below. Of course, they are merely examples and are not intended to limit the present application. Moreover, the present application may repeat reference numerals and/or letters in the various examples, such repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. In addition, examples of various specific processes and materials are provided herein, but one of ordinary skill in the art may recognize applications of other processes and/or use of other materials.
Referring to fig. 1, fig. 1 is a first structural schematic diagram of a mobile terminal according to an embodiment of the present disclosure. The mobile terminal 100 is an electronic device such as a mobile phone or a tablet computer. It is understood that the mobile terminal 100 includes but is not limited to the example of the present embodiment. The mobile terminal 100 includes a cover plate 10, a display screen assembly 20, a circuit board 30, and a housing 40.
Wherein the cover plate 10 is mounted to the display screen assembly 20 to cover the display screen assembly 20. The cover plate 10 may be a transparent glass cover plate. In some embodiments, the cover plate 10 may be a glass cover plate made of a material such as sapphire.
Wherein the display screen assembly 20 is mounted on the housing 40 to form a display surface of the mobile terminal 100. The display assembly 20 serves as a front case of the mobile terminal 100 and forms an enclosed space with the housing 40 for accommodating other electronic components of the mobile terminal 100. Meanwhile, the display screen assembly 20 forms a display surface of the mobile terminal 100 for displaying information such as images, texts, etc.
The circuit board 30 is mounted inside the housing 40 to accommodate the circuit board 30 in the closed space. The circuit board 30 may be a main board of the mobile terminal 100. The circuit board 30 is provided with a grounding point to realize grounding of the circuit board 30. Functional components such as a camera and a processor may be integrated on the circuit board 30. Meanwhile, the display screen assembly 20 may be electrically connected to the circuit board 30.
In some embodiments, the circuit board 30 has disposed thereon a radio frequency circuit 31, a processor, and a memory, which the process can control.
Referring to fig. 2, the rf circuit 31 includes an rf transceiver unit 311, at least two rf front-end paths 312, an uplink feedback loop 313, and a plurality of antennas 314, where the rf transceiver unit is connected to the at least two rf front-end paths, each rf front-end path is connected to one antenna, one end of the uplink feedback loop is connected to each antenna, and the other end of the uplink feedback loop is connected to the rf transceiver unit. Wherein the case 40 is used to form an outer contour of the mobile terminal 100. The housing 40 may be a metal housing, such as an aluminum alloy housing 40.
The plurality of antennas 314 are distributed on the top side 41, the left side 42, the right side 43, and the bottom side 44 of the housing, respectively. The top side 41, the left side 42, the right side 43, and the bottom side 44 are each provided with one or more antennas 314.
Referring to fig. 3, fig. 3 is a flowchart of an antenna switching method in an embodiment of the present invention, which is used in the mobile terminal in the above embodiment. The antenna switching method comprises the following steps:
s301, acquiring the type information of the application program running in the foreground of the mobile terminal.
In this step S301, the type information includes display type information and/or operation type information. The display type information is used to describe a display state of a screen of the mobile terminal when the application is run in the foreground, such as a landscape screen display or a portrait screen display, and of course, the landscape screen display also includes a left landscape screen display and a right landscape screen display.
The application program may be a playing software, such as an arcade video player, an Tencent video player, a watermelon video player, a Youkou video player, and the like.
The application program may be game software, such as top quality coaster, royal glory, tank battle, love eliminations, fighting the landlord, etc. Of course, other types of software may be included, such as general software for maps of height, hungry bars, American groups take out, WeChat, and so on.
And S302, judging the state information of the mobile terminal held by the user according to the type information.
In step S302, the state of the handheld mobile terminal is different when operating different applications. For example, when a user is glory, the screen is displayed on a horizontal screen, the user needs to hold the mobile phone with both hands and operate the mobile phone with both hands, and the shielding of the antennas on the top side and the bottom side of the mobile terminal is serious. For example, when the mobile terminal is used for playing WeChat, the mobile terminal is used for displaying all vertical screens and is held by a single hand. When the Aiqi art is adopted to watch TV plays, the adopted horizontal screen display is generally adopted, and the mobile terminal is held by one hand and the other hand is operated.
In some embodiments, this step S302 includes:
s3021, judging that the screen display state of the mobile terminal is a horizontal screen state or a vertical screen state according to the display type information. For example, most video playing software displays in a landscape state, more complex games displays in a landscape state, and browsers and WeChat games display in a portrait state. In the invention, all the common software is classified in advance to judge whether the common software is displayed on a horizontal screen or a vertical screen under normal use.
And S3022, judging the state information of the mobile terminal held by the user according to the screen display state.
For the application program of the landscape display, the mobile phone is held by one hand and the top side or the bottom side of the mobile phone is blocked, for example, the romance is adopted. When holding the mobile phone with both hands, the hands often hold the mobile phone to block the top side and the bottom side of the mobile phone, for example, when a person playing royal jelly is glory.
For the application program of vertical screen display, the mobile phone is often held by a single hand, and the antenna on the left side or the right side of the mobile phone is blocked. For example, when using a cell phone to play WeChat.
In some embodiments, the landscape state includes a left landscape state and a right landscape state, wherein the left landscape state is the top side of the mobile terminal facing to the left and the right landscape state is the top side of the mobile terminal facing to the right.
Therefore, this step S3021 includes:
acquiring detection information of a sensor of the mobile terminal; and judging whether the screen display state of the mobile terminal is a left horizontal screen state, a right horizontal screen state or a vertical screen state according to the detection information and the display type information. In this step, detection information of the gravity sensor and/or the gyroscope is generally used to determine whether the user is in the left landscape state or the right landscape state.
In some embodiments, the type information includes display type information and operation type information, and thus the step S3022 includes: and judging the state information of the mobile terminal held by the user according to the operation type information and the screen display state, wherein the operation type information comprises a one-hand operation type or a two-hand operation type. For example, software operated by a single hand, such as video playing software, WeChat, etc., can be operated by a single hand, and therefore, a mobile phone is generally operated by a single hand. For example, when a WeChat is played, a normal user holds the mobile phone by the left hand and inputs information by the right hand, so that the antenna on the left side of the mobile phone is shielded. For example, for some two-handed software, such as a skatecar, the hands of the user are required to stick the top and bottom sides of the mobile phone when the mobile phone is displayed on the horizontal screen, and therefore the antennas on the sides and bottom sides are shielded.
In some embodiments, the shielded part of the handheld mobile phone is different for users with different handedness. Therefore, this step, step S3022, includes: acquiring the handedness information of a user, wherein the handedness information is used for describing that the user is used to use the left hand or the right hand; and judging the state information of the handheld screen of the user according to the hand habit information and the screen display state. The embodiment is mainly directed to an application program with a single handheld screen, for example, when watching a video, some people are used to a single handheld mobile phone, for example, for a left-handed person, in a left landscape display state, the top side of the mobile phone is held by the left hand, and therefore an antenna on the top side of the mobile phone is shielded. For the right-handed person, in the left horizontal screen display state, the left hand is used to hold the bottom side of the mobile phone, so that the antenna at the bottom side of the mobile phone is shielded.
The method for acquiring the handedness of the user can adopt big data acquisition and can also adopt manual input of the user.
S303, screening out at least one antenna which is not shielded or has low shielding degree from the plurality of antennas according to the state information to be used as a target antenna.
For example, when a general user plays a game such as a game of royal jelly player using a mobile phone, the game is displayed on a landscape screen, and the user needs to perform a two-hand operation, which requires hands to stick the top side 41 and the bottom side 44 of the mobile terminal, so that the antennas on the top side 41 and the bottom side 44 are shielded, and at this time, the user needs to select the antenna on the left side or the right side of the mobile phone as a target antenna. When the romantic art of the mobile phone is used for watching a series or a movie, the mobile phone is mostly displayed by a horizontal screen, and the mobile phone is held by two hands, so that the top side and the bottom side of the mobile phone are blocked; or the mobile phone is held by a single hand, so that the top side of the mobile phone is shielded, and the left side or right side or bottom side antenna which is not shielded by the mobile phone needs to be used as the target antenna. For example, when watching a video, the left horizontal screen displays, the left hand holds the top side of the mobile phone, and the antenna on the top side is shielded. It is necessary to adopt an antenna on the left or right side or the bottom side as a target antenna.
The specific choice also looks at the communication type, e.g. GPRS or WIFI. In some embodiments, this step S303 includes:
s3031, obtaining the current communication type information of the mobile terminal.
S3032, screening out a plurality of corresponding types of antennas from the plurality of antennas according to the communication type information.
S3033, screening out at least one antenna which is not shielded or has low shielding degree from the plurality of corresponding types of antennas according to the state information to be used as a target antenna.
For example, the communication type information may include bluetooth, WIFI, 4G, 3G, 2G, and the like. Therefore, when screening the antennas, firstly, the antennas which do not conform to the communication type are filtered according to the current communication type, and then the antennas which conform to the communication type are adopted to screen the target antennas.
S304, switching the currently used working antenna of the mobile terminal into the target antenna.
After the target antenna is screened out, the switching can be carried out immediately or a prompt can be sent out, and then whether the switching is needed or not is determined according to the selection of a user. Of course, in some embodiments, the operating antennas may be divided into transmit antennas and receive antennas.
As can be seen from the above, in the embodiment of the present invention, the type information of the application program currently running on the foreground of the mobile terminal is obtained; judging the state information of the mobile terminal held by the user according to the type information; screening out at least one antenna which is not shielded or has low shielding degree from the plurality of antennas according to the state information to be used as a target antenna; switching a working antenna currently used by the mobile terminal to the target antenna; therefore, free switching of the antenna is realized, and the communication speed and quality can be improved.
Referring to fig. 4, an embodiment of the present invention further provides an antenna switching apparatus, including: an obtaining module 401, a judging module 402, a screening module 403 and a switching module 404.
The obtaining module 401 is configured to obtain type information of an application currently running on the mobile terminal. Wherein the type information comprises display type information and/or operation type information. The display type information is used to describe a display state of a screen of the mobile terminal when the application is run in the foreground, such as a landscape screen display or a portrait screen display, and of course, the landscape screen display also includes a left landscape screen display and a right landscape screen display.
The judging module 402 is configured to judge the state information of the mobile terminal held by the user according to the type information. The state of the handheld mobile terminal is different for operating different applications. For example, when a user is glory, the screen is displayed on a horizontal screen, the user needs to hold the mobile phone with both hands and operate the mobile phone with both hands, and the shielding of the antennas on the top side and the bottom side of the mobile terminal is serious. For example, when the mobile terminal is used for playing WeChat, the mobile terminal is used for displaying all vertical screens and is held by a single hand. When the Aiqi art is adopted to watch TV plays, the adopted horizontal screen display is generally adopted, and the mobile terminal is held by one hand and the other hand is operated. For the application program of the landscape display, the mobile phone is held by one hand and the top side or the bottom side of the mobile phone is blocked, for example, the romance is adopted. When holding the mobile phone with both hands, the hands often hold the mobile phone to block the top side and the bottom side of the mobile phone, for example, when a person playing royal jelly is glory.
Referring to fig. 5, in some embodiments, the determining module 402 includes: a first judgment unit 4021 and a second judgment unit 4022. The first judging unit 4021 is configured to judge that the screen display state of the mobile terminal is a horizontal screen state or a vertical screen state according to the display type information. The second judging unit 4022 is configured to judge the state information of the mobile terminal held by the user according to the display state of the screen.
In some embodiments, the first determining unit 4021 is configured to acquire detection information of a gyroscope of the mobile terminal, and determine, according to the detection information and the display type information, that the screen display state of the mobile terminal is a left landscape screen state, a right landscape screen state, or a vertical screen state. For example, most video playing software displays in a landscape state, more complex games displays in a landscape state, and browsers and WeChat games display in a portrait state. In the invention, all the common software is classified in advance to judge whether the common software is displayed on a horizontal screen or a vertical screen under normal use
In some embodiments, the second determining unit 4022 is configured to determine the state information of the mobile terminal held by the user according to the operation type information and the screen display state, where the operation type information includes a one-handed operation type or a two-handed operation type.
The screening module 403 is configured to screen at least one unobstructed antenna or antenna with a low obstruction degree from the multiple antennas according to the status information. For example, when a general user plays a game such as a game of royal jelly player using a mobile phone, the game is displayed on a landscape screen, and the user needs to perform a two-hand operation, which requires hands to stick the top side 41 and the bottom side 44 of the mobile terminal, so that the antennas on the top side 41 and the bottom side 44 are shielded, and at this time, the user needs to select the antenna on the left side or the right side of the mobile phone as a target antenna. When the romantic art of the mobile phone is used for watching a series or a movie, the mobile phone is mostly displayed by a horizontal screen, and the mobile phone is held by two hands, so that the top side and the bottom side of the mobile phone are blocked; or the mobile phone is held by a single hand, so that the top side of the mobile phone is shielded, and the left side or right side or bottom side antenna which is not shielded by the mobile phone needs to be used as the target antenna. For example, when watching a video, the left horizontal screen displays, the left hand holds the top side of the mobile phone, and the antenna on the top side is shielded. It is necessary to adopt an antenna on the left or right side or the bottom side as a target antenna.
The specific choice also looks at the communication type, e.g. GPRS or WIFI. In some embodiments, the screening module 403 is configured to obtain current communication type information of the mobile terminal, screen a plurality of antennas of corresponding types from the plurality of antennas according to the communication type information, and screen at least one antenna that is not blocked or has a low blocking degree from the plurality of antennas of corresponding types as a target antenna according to the state information.
The switching module 404 is configured to switch a working antenna currently used by the mobile terminal to the target antenna.
As can be seen from the above, in the embodiment of the present invention, the type information of the application program currently running on the foreground of the mobile terminal is obtained; judging the state information of the mobile terminal held by the user according to the type information; screening out at least one antenna which is not shielded or has low shielding degree from the plurality of antennas according to the state information to be used as a target antenna; switching a working antenna currently used by the mobile terminal to the target antenna; therefore, free switching of the antenna is realized, and the communication speed and quality can be improved.
Referring to fig. 6, an embodiment of the present application further provides a mobile terminal. The mobile terminal can be a smart phone, a tablet computer and other devices. The mobile terminal 600 includes a processor 601 and memory 602. The processor 601 is electrically connected to the memory 602.
The processor 601 is a control center of the mobile terminal 600, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or calling a computer program stored in the memory 602 and calling data stored in the memory 602, thereby performing overall monitoring of the mobile terminal.
In this embodiment, the processor 601 in the mobile terminal 600 loads instructions corresponding to one or more computer program processes into the memory 602 according to the following steps, and the processor 601 runs the computer program stored in the memory 602, so as to implement various functions, for example:
acquiring the type information of the application program running at the foreground of the mobile terminal; judging the state information of the mobile terminal held by the user according to the type information; screening out at least one antenna which is not shielded or has low shielding degree from the plurality of antennas according to the state information to be used as a target antenna; switching a working antenna currently used by the mobile terminal to the target antenna; thereby realizing free switching of the antenna.
In some embodiments, the processor 601 is further configured to perform the following steps:
judging whether the screen display state of the mobile terminal is a horizontal screen state or a vertical screen state according to the display type information;
and judging the state information of the mobile terminal held by the user according to the screen display state.
In some embodiments, the processor 601 is further configured to perform the following steps:
and judging the state information of the mobile terminal held by the user according to the operation type information and the screen display state, wherein the operation type information comprises a one-hand operation type or a two-hand operation type.
In some embodiments, the processor 601 is further configured to perform the following steps:
acquiring detection information of a sensor of the mobile terminal;
and judging whether the screen display state of the mobile terminal is a left horizontal screen state, a right horizontal screen state or a vertical screen state according to the detection information and the display type information.
In some embodiments, the processor 601 is further configured to perform the following steps:
acquiring the handedness information of a user, wherein the handedness information is used for describing that the user is used to use the left hand or the right hand;
and judging the state information of the handheld screen of the user according to the hand habit information and the screen display state.
In some embodiments, the processor 601 is further configured to perform the following steps:
acquiring the current communication type information of the mobile terminal;
screening out a plurality of antennas of corresponding types from the plurality of antennas according to the communication type information;
and screening out at least one antenna which is not shielded or has low shielding degree from the plurality of antennas of corresponding types as a target antenna according to the state information.
The memory 602 may be used to store computer programs and data. The memory 602 stores computer programs comprising instructions executable in the processor. The computer program may constitute various functional modules. The processor 601 executes various functional applications and data processing by calling a computer program stored in the memory 602.
Referring also to fig. 7, in some embodiments, the mobile terminal 600 may further include: a display 603, a radio frequency circuit 604, an audio circuit 605, a wireless fidelity module 606, and a power supply 607. The display 603, the rf circuit 604, the audio circuit 605, the wireless fidelity module 606 and the power supply 607 are electrically connected to the processor 601, respectively.
The display 603 may be used to display information entered by or provided to the user as well as various graphical user interfaces, which may be made up of graphics, text, icons, video, and any combination thereof. The Display 603 may include a Display panel, and in some embodiments, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The rf circuit 604 may be configured to transceive rf signals to establish wireless communication with a network device or other mobile terminal via wireless communication, and to transceive signals with the network device or other mobile terminal.
The audio circuit 605 may be used to provide an audio interface between the user and the mobile terminal through a speaker, microphone.
The wi-fi module 606 may be used for short-range wireless transmission, may assist a user in sending and receiving e-mail, browsing websites, accessing streaming media, etc., and provides wireless broadband internet access for the user.
The power supply 607 may be used to power various components of the mobile terminal 600. In some embodiments, the power supply 607 may be logically coupled to the processor 601 through a power management system, such that the power management system may manage charging, discharging, and power consumption management functions.
Although not shown in fig. 7, the mobile terminal 600 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
Therefore, the embodiment of the invention obtains the type information of the application program running in the foreground of the mobile terminal; judging the state information of the mobile terminal held by the user according to the type information; screening out at least one antenna which is not shielded or has low shielding degree from the plurality of antennas according to the state information to be used as a target antenna; switching a working antenna currently used by the mobile terminal to the target antenna; therefore, free switching of the antenna is realized, and the communication speed and quality can be improved.
It should be noted that, all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, which may include, but is not limited to: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The antenna switching method, the antenna switching device, the storage medium and the mobile terminal provided in the embodiments of the present application are described in detail above, and a specific example is applied in the description to explain the principles and the embodiments of the present application, and the description of the above embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.