CN108521499B - Antenna switching method, storage medium and electronic device - Google Patents

Antenna switching method, storage medium and electronic device Download PDF

Info

Publication number
CN108521499B
CN108521499B CN201810201713.2A CN201810201713A CN108521499B CN 108521499 B CN108521499 B CN 108521499B CN 201810201713 A CN201810201713 A CN 201810201713A CN 108521499 B CN108521499 B CN 108521499B
Authority
CN
China
Prior art keywords
antenna
display screen
touch
antenna structure
signal strength
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810201713.2A
Other languages
Chinese (zh)
Other versions
CN108521499A (en
Inventor
周林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810201713.2A priority Critical patent/CN108521499B/en
Publication of CN108521499A publication Critical patent/CN108521499A/en
Application granted granted Critical
Publication of CN108521499B publication Critical patent/CN108521499B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Abstract

The embodiment of the application provides an antenna switching method, a storage medium and an electronic device. Wherein the method comprises the following steps: detecting a holding position of a user on a touch display screen and a display position of a touch button displayed on the touch display screen, wherein the touch button is a touch button of an application program operated by current electronic equipment, determining whether the holding position influences the signal strength of the antenna assembly, and when the holding position causes the signal strength of the antenna assembly to be weakened, adjusting the display position of the touch button to change the holding position of the user on the touch display screen so as to improve the signal strength of the antenna assembly. According to the embodiment of the application, when the antenna assembly is shielded, the display position of the touch button is adjusted according to the shielded position, so that the holding posture of a user is changed along with the change of the display position of the touch button, the holding position of the user on the touch display screen is changed, and the antenna performance of the antenna assembly is improved.

Description

Antenna switching method, storage medium and electronic device
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to an antenna switching method, a storage medium, and an electronic device.
Background
With the development of network technology and the improvement of the intelligent degree of electronic equipment, users can realize more and more functions such as conversation, chatting, game playing and the like through the electronic equipment.
The user realizes signal transmission through the antenna of the electronic equipment in the conversation and chat processes of the electronic equipment.
Disclosure of Invention
The embodiment of the application provides an antenna switching method, a storage medium and an electronic device, which can improve the antenna performance of the electronic device.
The embodiment of the application provides an antenna switching method, which is applied to electronic equipment, wherein the electronic equipment is provided with a touch display screen, a circuit board and an antenna assembly, the circuit board is electrically connected with the touch display screen and the antenna assembly, and the method comprises the following steps:
detecting a holding position of a user on the touch display screen and a display position of a touch button displayed on the touch display screen, wherein the touch button is a touch button of an application program operated by the current electronic equipment;
determining whether the grip position affects a signal strength of the antenna assembly;
when the holding position causes the signal strength of the antenna assembly to be weakened, adjusting the display position of the touch button to change the holding position of the user on the touch display screen so as to improve the signal strength of the antenna assembly.
An embodiment of the present application further provides a storage medium, on which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the antenna switching method as described above.
The embodiment of the application further provides an electronic device, which comprises a touch display screen, a circuit board, an antenna assembly, a sensor and a processor, wherein the circuit board is electrically connected with the touch display screen, the antenna assembly, the sensor and the processor;
the touch display screen is used for displaying an application interface and a touch button of a currently running application program;
the sensor is used for detecting the holding position of a user on the touch display screen and the display position of the touch button displayed on the touch display screen;
the antenna assembly is used for transmitting and receiving signals;
the processor is used for determining whether the holding position influences the signal strength of the antenna assembly, and when the holding position causes the signal strength of the antenna assembly to be weakened, adjusting the display position of the touch button to change the holding position of the user on the touch display screen so as to improve the signal strength of the antenna assembly.
According to the antenna assembly and the method, the holding position of a user on the touch display screen and the display position of the touch button displayed on the touch display screen are detected, the touch button is the touch button of an application program operated by the current electronic equipment, whether the holding position influences the signal intensity of the antenna assembly is determined, and when the holding position causes the signal intensity of the antenna assembly to be weakened, the display position of the touch button is adjusted to change the holding position of the user on the touch display screen, so that the signal intensity of the antenna assembly is improved. According to the embodiment of the application, when the antenna assembly is shielded, the display position of the touch button is adjusted according to the shielded position, so that the holding posture of a user is changed along with the change of the display position of the touch button, the holding position of the user on the touch display screen is changed, the situation that the antenna assembly is shielded is avoided as much as possible, and the antenna performance of the electronic equipment is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 2 is a schematic view of an application scenario of an electronic device according to an embodiment of the present application.
Fig. 3 is a schematic view of another application scenario of the electronic device according to the embodiment of the present application.
Fig. 4 is a schematic view of another application scenario of the electronic device according to the embodiment of the present application.
Fig. 5 is a schematic view of another application scenario of an electronic device according to an embodiment of the present application.
Fig. 6 is a flowchart illustrating an antenna switching method according to an embodiment of the present application.
Fig. 7 is another flowchart of an antenna switching method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of 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.
The embodiment of the application provides an antenna switching method, a storage medium and an electronic device. The details will be described below separately. The electronic device can be a smart phone, a tablet computer and the like. Referring to fig. 1 to 5, fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, and fig. 2 to 5 are schematic application scenarios of the electronic device according to the embodiment of the present disclosure. The electronic device 10 may include a cover 11, a display 12, a circuit board 13, a battery 14, a housing 15, a sensor 16, an antenna assembly 17, and a processor 18. It should be noted that the electronic device 10 shown in fig. 1 is not limited to the above, and may also include other devices, such as a camera module.
Wherein the cover plate 11 is mounted to the display screen 12 to cover the display screen 12. The cover 1 may be a transparent glass cover so that the display screen transmits light through the cover 11 to display. In some embodiments, the cover plate 11 may be a glass cover plate made of a material such as sapphire.
The housing 15 may include a middle frame 151 and a rear cover 152, the middle frame 151 and the rear cover 152 may be combined with each other to form the housing 15, and the middle frame 151 and the rear cover 152 may form a receiving space to receive the circuit board 13, the display 12, the battery 14, and the like. Further, the cover plate 11 may be fixed to the housing 15, and the cover plate 11 and the housing 15 form a closed space to accommodate the circuit board 13, the display 12, the battery 14, and the like. In some embodiments, the cover plate 11 is disposed on the middle frame 151, the rear cover 152 is disposed on the middle frame 151, the cover plate 11 and the rear cover 152 are disposed on opposite sides of the middle frame 151, and the cover plate 11 and the rear cover 152 are disposed opposite to each other.
In some embodiments, the housing 15 may be a metal housing, such as a metal such as magnesium alloy, stainless steel, and the like. It should be noted that the material of the housing 15 in the embodiment of the present application is not limited to this, and other manners may also be adopted, such as: the housing 15 may be a plastic housing. Also for example: the housing 15 is a ceramic housing. For another example: the housing 15 may include a plastic part and a metal part, and the housing 15 may be a housing structure in which metal and plastic are matched with each other, specifically, the metal part may be formed first, for example, a magnesium alloy substrate is formed by injection molding, and then plastic is injected on the magnesium alloy substrate to form a plastic substrate, so as to form a complete housing structure.
It should be noted that, the structure of the housing in the embodiment of the present application is not limited to this, for example: the rear cover and the middle frame are integrally formed to form a completed housing 15 structure, which directly has a receiving space for receiving the circuit board 13, the display 12, the battery 14, and the like.
Wherein the display screen 12 is arranged on the front side of the housing 15.
The circuit board 13 is installed in the housing 15, the circuit board 13 may be a main board of the electronic device 10, and one, two or more functional components of a motor, a microphone, a speaker, an earphone interface, a usb interface, a camera module 18, a distance sensor, an ambient light sensor, a receiver, a processor, and the like may be integrated on the circuit board 13.
In some embodiments, the circuit board 13 may be secured within the housing 15. Specifically, the circuit board 13 may be screwed to the middle frame 151 by screws, or may be snapped to the middle frame 151 by a snap-fit manner. It should be noted that the way in which the circuit board 13 is specifically fixed to the middle frame 151 in the embodiment of the present application is not limited to this, and other ways, such as a way of fixing by a snap and a screw together, may also be used.
Wherein the battery 14 is mounted in the housing 15, and the battery 14 is electrically connected to the circuit board 13 to supply power to the electronic device 10. The housing 15 may serve as a battery cover for the battery 14. The case 15 covers the battery 14 to protect the battery 14, and particularly, the rear cover covers the battery 14 to protect the battery 14, reducing damage to the battery 14 due to collision, dropping, and the like of the electronic apparatus 10.
Wherein the display 12 is mounted in the housing 15, and the display 12 is electrically connected to the circuit board 13 to form a display surface of the electronic device 10. The display screen 12 may include a display area and a non-display area. The display area may be used to display a screen of the electronic device 10 or provide a user with touch control. The top area of the non-display area is provided with an opening for conducting sound and light, and the bottom of the non-display area can be provided with functional components such as a fingerprint module, a touch key and the like. The cover plate 11 is mounted on the display 12 to cover the display 12, and may form the same display area and non-display area as the display 12 or different display areas and non-display areas.
Note that the structure of the display screen 12 is not limited to this. For example, the display 12 may be a special-shaped screen, for example, a light-permeable area may be formed on the display 12, and functional components such as a front camera, an earphone, and a sensor may be disposed at a position corresponding to the light-permeable area. For example, the display 12 may be provided with a notch at its periphery, which may accommodate functional components such as a front-facing camera, an earpiece, a sensor, etc.
In some embodiments, the display 12 may not include the non-display area, but may be configured as a full-screen structure, and the functional components such as the distance sensor and the ambient light sensor may be disposed below the display or at other positions.
In some embodiments, the Display 12 may be a Liquid Crystal Display (LCD) or Organic Light-Emitting Diode (OLED) type Display. In some embodiments, when the display 12 is a liquid crystal display, the electronic device 10 may further include a backlight module, not shown, which can be referred to as a backlight module in the prior art.
The display screen 12 is a touch display screen, and the touch display screen 12 can be used for displaying a picture of the electronic device 10, and can be used for a user to perform touch control and the like. In this embodiment, the touch display screen 12 may be configured to display an application interface of an application program currently running on the electronic device 10 and a touch button of the application program, so that a user may perform experience of the application program through the application interface and the touch button displayed on the touch display screen 12, for example, play a game, watch a video, adjust a navigation application, and the like.
Wherein the electronic device 10 further comprises a sensor 16, the sensor 16 may comprise a plurality of sensors, such as a gravity sensor, a distance sensor, a light sensor, a fingerprint sensor, a capacitive sensor, an edge touch sensor, and the like. For example, an edge touch sensor may be disposed at an edge of the electronic device 10, and a user's holding position on the touch display screen 12 may be detected by the edge touch sensor. A capacitive sensor may be provided below the touch display screen 12, and a display position of a touch button displayed on the touch display screen 12 may be detected by the capacitive sensor.
The touch buttons are touch buttons for an application currently running on the electronic device 10, and the touch buttons are generally displayed at default positions on the touch display screen 12 in an initial state, for example, as shown in fig. 2, the electronic device 10 is in an application mode with two hands across the screen, and the touch buttons for the application currently running on the electronic device 10 include a touch button 121 and a touch button 122. In the initial state, the default position of the touch button 121 displayed on the touch display screen 12 is position a, and the default position of the touch button 122 displayed on the touch display screen 12 is position B.
The electronic device 10 may further include an antenna assembly 17 for transceiving signals, among other things. The antenna assembly 17 may be mounted to the housing 15, such as the center frame 151, or to the rear cover 152, or the antenna assembly 17 may be mounted elsewhere. The antenna assembly 17 may include a plurality of antenna structures, and it should be noted that the number of the antenna structures is not limited to two, and the number of the antenna structures may also be three, four, five or more.
For example, the antenna assembly 17 includes a first antenna structure 171 and a second antenna structure 172.
The first antenna structure 171 and the second antenna structure 172 are both disposed in the housing 15, and the first antenna structure 171 and the second antenna structure 172 are electrically connected to the circuit board 13, wherein in a certain initial state, the first antenna structure 171 can be used as a main antenna assembly, and the second antenna structure 172 is used as a diversity antenna. For example, the first antenna structure 171 can transceive at least one LTE signal of the low-band (700-. The first antenna structure 171 may be disposed at any one of the upper left corner, the upper right corner, the lower left corner, and the lower right corner of the electronic device 10. For example, the first antenna structure is disposed 171 in the position shown in fig. 1. The setting position of the second antenna structure 172 may also be set at any one of the upper left corner, the upper right corner, the lower left corner and the lower right corner of the electronic device 10, and the setting position of the second antenna structure 172 and the setting position of the first antenna structure 171 are arranged in a staggered manner. For example, the second antenna structure is disposed 173 as shown in fig. 1, and the second antenna structure 172 and the first antenna structure 171 are disposed at two opposite ends of the electronic device 10, respectively.
The electronic device 10 further includes a processor 18, wherein the processor 18 is a control center of the electronic device 10, connects various parts of the whole electronic device 10 by using various interfaces and lines, and executes various functions of the electronic device 10 and processes data by running or loading an application program stored in a memory and calling the data stored in the memory, thereby performing overall monitoring of the electronic device 10. And the processor 18 is used for determining whether the holding position of the user holding the touch display screen affects the signal strength of the antenna assembly 17, and when the holding position causes the signal strength of the antenna assembly 17 to be weakened, adjusting the display position of the touch button to change the holding position of the user holding the touch display screen so as to improve the signal strength of the antenna assembly 17.
For example, as shown in fig. 2 and fig. 3, the processor 18 determines that the holding position where the user holds on the touch display screen affects the signal strength of the antenna assembly 17, and when the holding position causes the signal strength of the antenna assembly 17 to weaken, the processor adjusts the display position of the touch button, adjusts the display position of the touch button 121 from position a to position C, adjusts the display position of the touch button 122 from position B to position D, and changes the display position of the touch button, so that the holding posture and the holding position where the user holds on the touch display screen correspondingly change, so that the antenna assembly 17 eliminates the blocked condition, thereby improving the signal strength of the antenna assembly 17.
For example, as shown in fig. 2, the electronic device 10 is in an application mode of a two-handed landscape, such as a two-handed landscape game scenario, for example, a left landscape, wherein in an initial state, the default position of the touch button 121 displayed on the touch display screen 12 is position a, the default position of the touch button 122 displayed on the touch display screen 12 is position B, and a user holds the electronic device 10 in a game playing process in a holding position as shown in fig. 2, and two hands of the user completely hold two opposite ends of the electronic device 10, which results in that the first antenna structure 171 and the second antenna structure 172 are both blocked. At this time, the processor 18 obtains the signal intensity of the first antenna structure 171 covered by the holding position, determines that the holding position affects the signal intensity of the first antenna structure 171 when the signal intensity of the first antenna structure 171 is lower than a first preset threshold, and adjusts the display position of the touch button to the display position far away from the first antenna structure 171 to change the holding position of the user on the touch display screen when the signal intensity of the first antenna structure 171 is lower than the first preset threshold, so as to improve the signal intensity of the first antenna structure 171. For example, as shown in fig. 3, the processor adjusts the display position of the touch button, adjusts the display position of the touch button 121 from a position a close to the first antenna structure 171 to a position C far from the first antenna structure 171, and simultaneously adjusts the display position of the touch button 122 from a position B to a position D. By changing the display position of the touch button, the holding posture and the holding position of the user holding the touch display screen are changed accordingly, so that the first antenna structure 171 eliminates the shielding situation, and the signal intensity of the first antenna structure 171 is improved.
In some embodiments, as shown in fig. 4, the processor 18 may only adjust the display position of the touch button 121 close to the first antenna structure 171, and the display position of the touch button 122 far from the first antenna structure 171 may remain unchanged.
In some embodiments, after adjusting the display position of the touch button, the processor 18 may further obtain the signal strength of the first antenna structure 171 and the second antenna structure 172, and when the signal strength of the second antenna structure 172 is greater than the signal strength of the first antenna structure 171, it indicates that the antenna performance of the second antenna structure 172 is better than that of the first antenna structure 171, and then the antenna structure with the best antenna performance may be selected again from the antenna assemblies 17 as the main antenna for transmitting and receiving signals, that is, the first antenna structure 171 is switched to the diversity antenna, and the second antenna structure 172 is switched to the main antenna.
In some embodiments, as shown in fig. 5, the processor 18 may also be configured to adjust a display scale of the touch buttons displayed on the touch display screen 12, for example, to increase or decrease the display scale of the touch buttons relative to the display scale of the touch buttons in the initial state. As shown in fig. 5, the display scale of the touch button is increased relative to the display scale of the touch button in the initial state, so that the operation range of the user on the touch button during the game playing process is increased, the holding position of the user on the touch display screen 12 is changed accordingly, the holding position of the user on the electronic device 10 is decreased accordingly, the gap between the fingers of the user is increased during the holding process, and more signals of the antenna assembly 17 can pass through the gap between the fingers of the user, so as to reduce the influence of the holding position on the signal strength of the antenna assembly.
For example, the signal strength of an antenna structure may be represented by transmit power or receive power. For example, the signal strength of the first antenna structure 171 as a main set antenna may be represented by transmission power as the signal strength of the transmission signal of the first antenna structure 171, and the signal strength of the second antenna structure 172 as a diversity antenna may be represented by reception power as the signal strength of the reception signal of the second antenna structure 172. For an antenna structure with a certain operating frequency, when a certain antenna structure is held or shielded, the strength of a signal or a received signal transmitted to the outside by the antenna structure is inevitably weakened, for example, if the main set antenna is held or shielded, the transmission power radiated to the outside by the main set antenna is weakened, so that the signal quality of the antenna is reduced.
The Signal Strength of the antenna structure can be represented by Signal quality, for example, by detecting parameters such as Signal to Interference plus Noise ratio sinr (Signal to Interference plus Noise ratio), reference Signal received power rsrp (reference Signal Receiving power), and received Signal Strength indicator rssi (received Signal Strength indication) of the corresponding antenna structure to determine the Signal quality of the corresponding antenna structure, or by detecting the stability of received data when the first antenna structure 171 or the second antenna structure 172 is respectively used as a main antenna set to determine the Signal quality of the corresponding antenna structure.
In some embodiments, the first antenna structure 171 may transceive global positioning system signals and/or short-range communication signals in addition to LTE signals. Such as receiving and transmitting GPS (Global Positioning System), WIFI (wireless fidelity) 2.4G/5G signals, bluetooth signals, etc. It should be noted that the first antenna structure 171 is not limited to transmit and receive LTE, GPS, WIFI2.4G/5G signals, but may also transmit and receive other signals, such as bluetooth signals.
The electronic device 10 provided by the embodiment of the application includes a touch display screen 12, a circuit board 13, an antenna assembly 17, a sensor 16 and a processor 18, wherein the circuit board 13 is electrically connected with the touch display screen 12, the antenna assembly 17, the sensor 16 and the processor 18; the touch display screen 12 is used for displaying an application interface and a touch button of a currently running application program; the sensor 16 is configured to detect a holding position of the user on the touch display screen 12 and a display position of a touch button displayed on the touch display screen 12; the antenna assembly 17 is used for transmitting and receiving signals; the processor 18 is configured to determine whether the holding position affects the signal strength of the antenna assembly 17, and adjust the display position of the touch button to change the holding position of the user on the touch display screen 12 when the holding position causes the signal strength of the antenna assembly 17 to decrease, so as to increase the signal strength of the antenna assembly 17. According to the embodiment of the application, when the antenna assembly 17 is shielded, the display position of the touch button is adjusted according to the shielded position, so that the holding posture of a user is changed along with the change of the display position of the touch button, the holding position of the user on the touch display screen 12 is changed, the situation that the antenna assembly 17 is shielded is avoided as much as possible, and the antenna performance of the electronic device 10 is improved.
Referring to fig. 6, fig. 6 is a flowchart illustrating an antenna switching method according to an embodiment of the present application. The antenna switching method is applied to an electronic device, the electronic device may be the electronic device 10 according to any of the above embodiments, the electronic device 10 includes the touch display screen 12, the circuit board 13 and the antenna assembly 17, the circuit board 13 is electrically connected to the touch display screen 12 and the antenna assembly 17, and the specific flow of the method is as follows:
step 101, detecting a holding position of a user on a touch display screen and a display position of a touch button displayed on the touch display screen, wherein the touch button is a touch button of an application program operated by current electronic equipment.
For example, an edge touch sensor may be disposed at an edge of the electronic device 10, and a user's holding position on the touch display screen 12 may be detected by the edge touch sensor. A capacitive sensor may be provided below the touch display screen 12, and a display position of a touch button displayed on the touch display screen 12 may be detected by the capacitive sensor.
Step 102, determining whether the holding position influences the signal strength of the antenna assembly.
After detecting the holding position of the user on the touch display screen 12, the signal strength of the antenna assembly 17 at least partially covered by the holding position is further obtained, and when the signal strength of the antenna assembly 17 gradually decreases and is lower than the first preset threshold value, the holding position has a larger influence on the signal strength of the antenna assembly 17.
Step 103, when the holding position causes the signal intensity of the antenna assembly to be weakened, adjusting the display position of the touch button to change the holding position of the user on the touch display screen, so as to improve the signal intensity of the antenna assembly.
For example, as shown in fig. 2 and fig. 3, the processor 18 determines that the holding position where the user holds on the touch display screen affects the signal strength of the antenna assembly 17, and when the holding position causes the signal strength of the antenna assembly 17 to weaken, the processor adjusts the display position of the touch button, adjusts the display position of the touch button 121 from position a to position C, adjusts the display position of the touch button 122 from position B to position D, and changes the display position of the touch button, so that the holding posture and the holding position where the user holds on the touch display screen correspondingly change, so that the antenna assembly 17 eliminates the blocked condition, thereby improving the signal strength of the antenna assembly 17.
In some embodiments, the adjusting the display position of the touch button to change the holding position of the user on the touch display screen further includes:
and adjusting the display scale of the touch button displayed on the touch display screen. For example, the display scale of the touch buttons is increased or decreased with respect to the display scale of the touch buttons in the initial state.
As shown in fig. 5, the display scale of the touch button may be increased relative to the display scale of the touch button in the initial state, so that the operation range of the user on the touch button during playing the game is increased, and further, the holding position where the user holds the touch display screen 12 is correspondingly changed, so that the holding position of the user on the electronic device 10 is correspondingly decreased, and the gap between the fingers of the user is increased during holding, so that more signals of the antenna assembly 17 may pass through the gap between the fingers of the user, and the influence of the holding position on the signal strength of the antenna assembly is reduced.
According to the antenna switching method provided by the embodiment of the application, the holding position of a user on the touch display screen and the display position of the touch button displayed on the touch display screen are detected, the touch button is the touch button of an application program operated by the current electronic equipment, whether the holding position influences the signal intensity of the antenna assembly is determined, and when the holding position causes the signal intensity of the antenna assembly to be weakened, the display position of the touch button is adjusted to change the holding position of the user on the touch display screen, so that the signal intensity of the antenna assembly is improved. According to the embodiment of the application, when the antenna assembly is shielded, the display position of the touch button is adjusted according to the shielded position, so that the holding posture of a user is changed along with the change of the display position of the touch button, the holding position of the user on the touch display screen is changed, the situation that the antenna assembly is shielded is avoided as much as possible, and the antenna performance of the electronic equipment is improved.
Referring to fig. 7, fig. 7 is another schematic flow chart of an antenna switching method according to an embodiment of the present application. The method comprises the following specific steps:
step 201, detecting a holding position of a user on a touch display screen and a display position of a touch button displayed on the touch display screen, where the touch button is a touch button of an application program running on a current electronic device.
In a horizontal screen game scenario, a user holds the electronic device for a long time, and the holding position of the user on the touch display screen easily affects the signal strength of the antenna assembly. Therefore, before detecting the holding position of the user on the touch display screen and the display position of the touch button displayed on the touch display screen, it is determined whether the current application scene of the electronic device is a cross-screen game scene, and if it is determined that the current application scene of the electronic device is the cross-screen game scene, the holding position of the user on the touch display screen and the display position of the touch button displayed on the touch display screen are detected.
Step 202, the signal strength of the first antenna structure is obtained.
Step 203, when the signal strength of the first antenna structure is lower than a first preset threshold, determining that the holding position affects the signal strength of the first antenna structure.
Step 204, adjusting the display position of the touch button to a display position far away from the first antenna structure to change a holding position of a user holding on the touch display screen, so as to improve the signal intensity of the first antenna structure.
For example, as shown in fig. 2, the electronic device 10 is in an application mode of a two-handed landscape, such as a two-handed landscape game scenario, for example, a left landscape, wherein in an initial state, the default position of the touch button 121 displayed on the touch display screen 12 is position a, the default position of the touch button 122 displayed on the touch display screen 12 is position B, and a user holds the electronic device 10 in a game playing process in a holding position as shown in fig. 2, and two hands of the user completely hold two opposite ends of the electronic device 10, which results in that the first antenna structure 171 and the second antenna structure 172 are both blocked. At this time, the processor 18 obtains the signal intensity of the first antenna structure 171 covered by the holding position, determines that the holding position affects the signal intensity of the first antenna structure 171 when the signal intensity of the first antenna structure 171 is lower than a first preset threshold, and adjusts the display position of the touch button to the display position far away from the first antenna structure 171 to change the holding position of the user on the touch display screen when the signal intensity of the first antenna structure 171 is lower than the first preset threshold, so as to improve the signal intensity of the first antenna structure 171. For example, as shown in fig. 3, the processor adjusts the display position of the touch button, adjusts the display position of the touch button 121 from a position a close to the first antenna structure 171 to a position C far from the first antenna structure 171, and simultaneously adjusts the display position of the touch button 122 from a position B to a position D. By changing the display position of the touch button, the holding posture and the holding position of the user holding the touch display screen are changed accordingly, so that the first antenna structure 171 eliminates the shielding situation, and the signal intensity of the first antenna structure 171 is improved. In some embodiments, as shown in fig. 4, the processor 18 may only adjust the display position of the touch button 121 close to the first antenna structure 171, and the display position of the touch button 122 far from the first antenna structure 171 may remain unchanged.
Step 205, obtaining the signal strength of the first antenna structure and the second antenna structure.
Step 206, when the signal strength of the second antenna structure is greater than the signal strength of the first antenna structure, the first antenna structure is switched to a diversity antenna, and the second antenna structure is switched to a main diversity antenna.
After the display position of the touch button is adjusted, the processor 18 may further obtain the signal strength of the first antenna structure 171 and the second antenna structure 172, and when the signal strength of the second antenna structure 172 is greater than the signal strength of the first antenna structure 171, it indicates that the antenna performance of the second antenna structure 172 is better than that of the first antenna structure 171, and then the antenna structure with the best antenna performance may be selected again from the antenna assemblies 17 as the main set antenna for transmitting and receiving signals, that is, the first antenna structure 171 is switched to the diversity antenna, and the second antenna structure 172 is switched to the main set antenna.
In the antenna switching method provided in the embodiment of the application, by detecting a holding position of a user on a touch display screen and a display position of a touch button displayed on the touch display screen, where the touch button is a touch button of an application program running on a current electronic device, a signal intensity of a first antenna structure is obtained, when the signal intensity of the first antenna structure is lower than a first preset threshold, the signal intensity of the first antenna structure influenced by the holding position is determined, a display position of the touch button is adjusted to a display position far away from the first antenna structure to change the holding position held on the touch display screen by the user, so as to improve the signal intensity of the first antenna structure, and after the display position of the touch button is adjusted, when the signal intensity of a second antenna structure is greater than the signal intensity of the first antenna structure, the first antenna structure is switched to a diversity antenna and the second antenna structure is switched to a main set antenna. According to the embodiment of the application, when the antenna assembly is shielded, the display position of the touch button is adjusted according to the shielded position, so that the holding posture of a user is changed along with the change of the display position of the touch button, the holding position of the user on the touch display screen is changed, the situation that the antenna assembly is shielded is avoided as much as possible, and the antenna structure with the best antenna performance is reselected from the antenna assembly to serve as a main antenna for receiving and transmitting signals, so that the antenna performance of the electronic equipment is improved.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
An embodiment of the present application further provides a storage medium, where the storage medium stores a computer program, and when the computer program runs on a computer, the computer is caused to execute the antenna switching method in any of the above embodiments.
It should be noted that, for the antenna switching method described in this application, it can be understood by a person skilled in the art that all or part of the process for implementing the antenna switching method described in this application may be implemented by controlling related hardware through a computer program, where the computer program may be stored in a computer readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and during the execution, the process of implementing the antenna switching method may include the process of the embodiment of the antenna switching method described above. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
The antenna switching method, the storage medium, and the electronic device provided in the embodiments of the present application are described in detail above, and specific examples are applied in the present application to explain the principles and embodiments 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.

Claims (9)

1. An antenna switching method is applied to an electronic device, wherein the electronic device is provided with a touch display screen, a circuit board and an antenna assembly, and the circuit board is electrically connected with the touch display screen and the antenna assembly, and the method comprises the following steps:
when the electronic equipment is in an application mode with two hands crossing a screen, detecting a holding position of a user on the touch display screen and a display position of a touch button displayed on the touch display screen, wherein the touch button is a touch button of an application program operated by the current electronic equipment;
determining whether the grip position affects a signal strength of the antenna assembly;
when the holding position causes the signal intensity of the antenna component to be weakened, the display proportion of the touch buttons displayed on the touch display screen is adjusted so as to improve the signal intensity of the antenna component.
2. The method for antenna switching according to claim 1, wherein the antenna assembly includes a first antenna structure, wherein the first antenna structure acts as a dominant set antenna, and wherein the determining whether the holding position affects a signal strength of the antenna assembly comprises:
acquiring the signal intensity of the first antenna structure;
when the signal strength of the first antenna structure is lower than a first preset threshold value, determining that the holding position influences the signal strength of the first antenna structure.
3. The antenna switching method of claim 2, wherein the antenna assembly further comprises a second antenna structure, wherein the second antenna structure is a diversity antenna, and wherein after adjusting the display scale of the touch button displayed on the touch display screen, further comprising:
acquiring the signal strength of the first antenna structure and the second antenna structure;
and when the signal strength of the second antenna structure is greater than that of the first antenna structure, switching the first antenna structure to a diversity antenna and switching the second antenna structure to a main diversity antenna.
4. The antenna switching method of claim 1, wherein the detecting a holding position of a user on the touch display screen comprises:
and detecting the holding position of the user on the touch display screen through the edge touch sensor.
5. The antenna switching method according to claim 1, further comprising, before the detecting a holding position of a user on the touch display screen and a display position of a touch button displayed on the touch display screen:
determining whether the current application scene of the electronic equipment is a landscape screen game scene;
if the current application scene of the electronic equipment is determined to be a cross-screen game scene, detecting the holding position of a user on the touch display screen and the display position of a touch button displayed on the touch display screen.
6. A storage medium having stored thereon a computer program, characterized in that, when the computer program is run on a computer, it causes the computer to execute the antenna switching method according to any of claims 1-5.
7. An electronic device is characterized by comprising a touch display screen, a circuit board, an antenna assembly, a sensor and a processor, wherein the circuit board is electrically connected with the touch display screen, the antenna assembly, the sensor and the processor;
the touch display screen is used for displaying an application interface and a touch button of a currently running application program;
the sensor is used for detecting a holding position of a user on the touch display screen and a display position of the touch button displayed on the touch display screen when the electronic equipment is in an application mode of a two-hand cross screen;
the antenna assembly is used for transmitting and receiving signals;
the processor is configured to determine whether the holding position affects the signal strength of the antenna assembly, and adjust a display ratio of the touch buttons displayed on the touch display screen to improve the signal strength of the antenna assembly when the holding position causes the signal strength of the antenna assembly to be weakened.
8. The electronic device of claim 7, wherein the antenna assembly comprises a first antenna structure, wherein the first antenna structure acts as a main set antenna, the processor further to:
acquiring the signal intensity of the first antenna structure;
when the signal strength of the first antenna structure is lower than a first preset threshold value, determining that the holding position influences the signal strength of the first antenna structure.
9. The electronic device of claim 8, wherein the antenna assembly further comprises a second antenna structure, wherein the second antenna structure acts as a diversity antenna, the processor further to:
acquiring the signal strength of the first antenna structure and the second antenna structure;
and when the signal strength of the second antenna structure is greater than that of the first antenna structure, switching the first antenna structure to a diversity antenna and switching the second antenna structure to a main diversity antenna.
CN201810201713.2A 2018-03-12 2018-03-12 Antenna switching method, storage medium and electronic device Active CN108521499B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810201713.2A CN108521499B (en) 2018-03-12 2018-03-12 Antenna switching method, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810201713.2A CN108521499B (en) 2018-03-12 2018-03-12 Antenna switching method, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN108521499A CN108521499A (en) 2018-09-11
CN108521499B true CN108521499B (en) 2020-11-13

Family

ID=63433022

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810201713.2A Active CN108521499B (en) 2018-03-12 2018-03-12 Antenna switching method, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN108521499B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108989578B (en) * 2018-09-21 2021-03-26 Oppo(重庆)智能科技有限公司 Reminding information display method and device, terminal and storage medium
CN109542227B (en) * 2018-11-22 2024-02-13 努比亚技术有限公司 Method, device and computer readable storage medium for marking holding gesture
CN111381763B (en) * 2018-12-29 2021-07-30 中兴通讯股份有限公司 Touch position adjusting method and device, storage medium and electronic device
CN111384584B (en) * 2018-12-29 2021-08-24 Oppo广东移动通信有限公司 Antenna radiator position adjusting method, storage medium and electronic device
CN111384583B (en) * 2018-12-29 2021-06-01 Oppo广东移动通信有限公司 Electronic device and antenna radiator control method
CN110312009B (en) * 2019-06-26 2021-03-02 维沃移动通信有限公司 Display module and mobile terminal
JP2021175135A (en) * 2020-04-28 2021-11-01 シャープ株式会社 Electronic device, control device, control method, and programs for electronic device
CN112040065A (en) * 2020-09-29 2020-12-04 努比亚技术有限公司 Holding state prompting method, mobile terminal and computer storage medium
CN113053088A (en) * 2021-03-31 2021-06-29 广东美的厨房电器制造有限公司 Household appliance, control method and device of household appliance and readable storage medium
CN113541721B (en) * 2021-06-21 2022-08-19 荣耀终端有限公司 Method for adjusting antenna communication and terminal equipment
CN114527424A (en) * 2022-02-16 2022-05-24 Oppo广东移动通信有限公司 Positioning method and device, terminal accessory, mobile terminal and electronic equipment
CN115149977B (en) * 2022-06-30 2023-11-03 东莞华贝电子科技有限公司 Electronic equipment
CN116684519A (en) * 2022-09-29 2023-09-01 荣耀终端有限公司 Method and device for adjusting mobile terminal antenna, electronic equipment and storable medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683540A (en) * 2013-11-26 2015-06-03 深圳市金立通信设备有限公司 Method and terminal for improving signal quality of communication terminal
CN105959464A (en) * 2016-04-22 2016-09-21 广东欧珀移动通信有限公司 Method and device for prompting signal intensity of terminal
CN106791073A (en) * 2016-12-15 2017-05-31 奇酷互联网络科技(深圳)有限公司 Antenna assembly, antenna switching method and mobile terminal
CN107124212A (en) * 2017-04-28 2017-09-01 广东欧珀移动通信有限公司 Mobile terminal and its antenna switching method, antenna-switching device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015010303A1 (en) * 2013-07-25 2015-01-29 Empire Technology Development Llc Prompting movement of a device towards a stronger signal
CN105786379A (en) * 2016-02-19 2016-07-20 广东欧珀移动通信有限公司 Virtual key processing method and device
CN106330246B (en) * 2016-08-17 2019-06-25 珠海格力电器股份有限公司 A kind of antenna switching method, circuit, device and communication terminal
CN106873855A (en) * 2017-02-15 2017-06-20 努比亚技术有限公司 A kind of suspension icon control method, device and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683540A (en) * 2013-11-26 2015-06-03 深圳市金立通信设备有限公司 Method and terminal for improving signal quality of communication terminal
CN105959464A (en) * 2016-04-22 2016-09-21 广东欧珀移动通信有限公司 Method and device for prompting signal intensity of terminal
CN106791073A (en) * 2016-12-15 2017-05-31 奇酷互联网络科技(深圳)有限公司 Antenna assembly, antenna switching method and mobile terminal
CN107124212A (en) * 2017-04-28 2017-09-01 广东欧珀移动通信有限公司 Mobile terminal and its antenna switching method, antenna-switching device

Also Published As

Publication number Publication date
CN108521499A (en) 2018-09-11

Similar Documents

Publication Publication Date Title
CN108521499B (en) Antenna switching method, storage medium and electronic device
CN108521012B (en) Electronic device and antenna switching method
KR102594959B1 (en) Transmitting antenna switching method and terminal equipment
EP3543775B1 (en) Display screen and mobile terminal
WO2019141078A1 (en) Electronic device and antenna controlling method
CN111565078B (en) Channel detection method in frequency division duplex mode, radio frequency circuit and electronic equipment
US10747050B2 (en) Display screen and mobile terminal
CN108462522B (en) Antenna control method, antenna assembly, electronic device and storage medium
CN108494464B (en) Antenna control method, antenna assembly, electronic device and storage medium
CN108718206B (en) Antenna assembly, electronic device, antenna control method, and storage medium
CN108417988B (en) Antenna switching method, antenna assembly, electronic device and storage medium
CN109088973B (en) Antenna control method and device and mobile terminal
CN108494459B (en) Antenna switching method, device, storage medium and mobile terminal
CN110798235A (en) Terminal control method and electronic equipment
CN108232473B (en) Antenna assembly, electronic equipment and antenna switching method
CN112261203B (en) Electronic equipment and control method and control device thereof
CN108494460B (en) Electronic device and antenna switching method
CN113407423A (en) Signal intensity display method and signal intensity display device
US20230319724A1 (en) Electronic device and operation method therefor
CN112118337A (en) Antenna control method and electronic equipment
CN108495359B (en) Antenna control method, antenna control device, storage medium and electronic equipment
CN108270087B (en) Antenna assembly, electronic equipment and antenna switching method
WO2022042772A1 (en) Mobile terminal control method, and mobile terminal
CN108321534B (en) Antenna assembly, electronic equipment and antenna switching method
CN108365882B (en) Antenna control method, antenna control device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant