CN111817748A - Antenna switching method, terminal device and storage medium - Google Patents

Antenna switching method, terminal device and storage medium Download PDF

Info

Publication number
CN111817748A
CN111817748A CN202010774939.9A CN202010774939A CN111817748A CN 111817748 A CN111817748 A CN 111817748A CN 202010774939 A CN202010774939 A CN 202010774939A CN 111817748 A CN111817748 A CN 111817748A
Authority
CN
China
Prior art keywords
antenna assembly
preset
main antenna
audio output
acquiring
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.)
Granted
Application number
CN202010774939.9A
Other languages
Chinese (zh)
Other versions
CN111817748B (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.)
Shanghai Wingtech Electronic Technology Co Ltd
Original Assignee
Shanghai Wingtech Electronic Technology Co 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 Shanghai Wingtech Electronic Technology Co Ltd filed Critical Shanghai Wingtech Electronic Technology Co Ltd
Priority to CN202010774939.9A priority Critical patent/CN111817748B/en
Publication of CN111817748A publication Critical patent/CN111817748A/en
Application granted granted Critical
Publication of CN111817748B publication Critical patent/CN111817748B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/40Circuits
    • H04B1/401Circuits for selecting or indicating operating mode
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/382Monitoring; Testing of propagation channels for resource allocation, admission control or handover

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Quality & Reliability (AREA)
  • Radio Transmission System (AREA)

Abstract

The invention provides an antenna switching method, a terminal device and a storage medium, wherein the method is applied to a controller of the terminal device and comprises the following steps: acquiring the received signal strength of a main antenna assembly; when the difference between the received signal strength and the preset strength threshold value exceeds a preset range, controlling the second end of the change-over switch to be switched from the main antenna assembly to the standby antenna assembly; according to the invention, when the antenna signal of the main antenna assembly is weakened, the second end of the change-over switch is controlled to be switched from the main antenna assembly to the standby antenna assembly, so that the purposes of using the standby antenna assembly for signal receiving and transmitting and improving the antenna performance are realized, and thus, the terminal equipment always has stronger signal receiving and transmitting capacity.

Description

Antenna switching method, terminal device and storage medium
Technical Field
The present invention relates to the field of mobile terminal technologies, and in particular, to an antenna switching method, a terminal device, and a storage medium.
Background
With the development of network technology and the improvement of the intelligent degree of the terminal device, a user can realize multiple functions of talking, listening to music, playing games and the like through the terminal device, so that the requirement of the user on the network performance of the terminal device is higher and higher in the actual use process.
In the actual use process, the main antenna may be shielded due to the holding of the user and the like, so that the network signal of the terminal device is weakened, and even the network cannot be connected.
Therefore, it is desirable to provide an antenna switching scheme for changing the role of an antenna when a signal of a main antenna is weakened due to user's holding or other shielding reasons, so that a terminal device always has a strong signal transceiving capability.
Disclosure of Invention
In view of this, the present invention provides an antenna switching method, a terminal device and a storage medium, so as to change an antenna role when a main antenna signal is weakened due to user holding or other shielding reasons, so that the terminal device always has a strong signal transceiving capability.
In a first aspect, the present invention provides an antenna switching method, applied to a controller of a terminal device, where the terminal device further includes a main antenna assembly, a standby antenna assembly, and a switch; the controller is electrically connected to a first end of the diverter switch, a second end of the diverter switch switching between the main antenna assembly and the backup antenna assembly; the method comprises the following steps:
acquiring a receiving signal of the main antenna assembly;
when the difference value between the intensity of the received signal and a preset intensity threshold value exceeds a preset range, controlling the second end of the selector switch to be switched from the main antenna assembly to the standby antenna assembly; the preset range represents an error range between the intensity of the received signal and the preset intensity threshold.
Optionally, the terminal device further includes an audio output module, and the audio output module is electrically connected to the controller; the audio output module and the main antenna assembly are positioned at the same end part of the terminal equipment; prior to the step of obtaining received signals for the main antenna assembly, the method further comprises: acquiring an application program currently operated by the terminal equipment; when the currently running application program is the preset application program, acquiring an audio signal of the audio output module; wherein the preset application has a low latency network requirement; judging whether the main antenna assembly is in a shielding state or not according to the audio signal; and when the main antenna assembly is in a shielding state, acquiring a receiving signal of the main antenna assembly.
Optionally, the step of determining whether the main antenna assembly is in a shielding state according to the audio signal includes: judging whether the intensity of the audio signal is smaller than the preset audio signal intensity; if so, judging that the main antenna assembly is in a shielding state.
Optionally, the step of acquiring the audio signal of the audio output module when the currently running application is the preset application includes: when the currently running application program is the preset application program, detecting an audio output mode of the audio output module; acquiring the audio signal corresponding to the audio output mode.
Optionally, the step of acquiring the audio signal corresponding to the audio output mode includes: when the audio output mode is a play-out mode, acquiring an audio signal matched with the currently running application program; and when the audio output mode is a non-play mode, controlling the audio output module to output a preset audio signal in the play mode and then acquiring the preset audio signal.
In a second aspect, the present invention provides a terminal device comprising a controller, a main antenna assembly, a backup antenna assembly, and a diverter switch; the controller is electrically connected to a first end of the diverter switch, a second end of the diverter switch switching between the main antenna assembly and the backup antenna assembly;
the controller is used for acquiring a receiving signal of the main antenna assembly;
the controller is further configured to control the second terminal of the switch to switch from the main antenna assembly to the standby antenna assembly when a difference between the strength of the received signal and a preset strength threshold exceeds a preset range; the preset range represents an error range between the intensity of the received signal and the preset intensity threshold.
Optionally, the terminal device further includes an audio output module, and the audio output module is electrically connected to the controller; the audio output module and the main antenna assembly are positioned at the same end part of the terminal equipment; the controller is further configured to: acquiring an application program currently operated by the terminal equipment; when the currently running application program is the preset application program, acquiring an audio signal of the audio output module; wherein the preset application has a low latency network requirement; judging whether the main antenna assembly is in a shielding state or not according to the audio signal; and when the main antenna assembly is in a shielding state, acquiring a receiving signal of the main antenna assembly.
Optionally, the controller is further configured to: judging whether the intensity of the audio signal is smaller than the preset audio signal intensity; if so, judging that the main antenna assembly is in a shielding state.
Optionally, the controller is further configured to: when the currently running application program is the preset application program, detecting an audio output mode of the audio output module; acquiring the audio signal corresponding to the audio output mode.
Optionally, the controller is further configured to: when the audio output mode is a play-out mode, acquiring an audio signal matched with the currently running application program; and when the audio output mode is a non-play mode, controlling the audio output module to output a preset audio signal in the play mode and then acquiring the preset audio signal.
In a third aspect, the present invention provides an antenna switching apparatus, where the antenna control apparatus is disposed on a terminal device; the terminal equipment comprises a main antenna assembly, a standby antenna assembly and a change-over switch; the antenna switching device is electrically connected with a first end of the switch, and a second end of the switch switches between the main antenna assembly and the standby antenna assembly; the method comprises the following steps: the device comprises an acquisition module and a control module;
the acquisition module is used for acquiring the receiving signal of the main antenna assembly; the control module is configured to control the second end of the switch to switch from the main antenna assembly to the standby antenna assembly when a difference between the strength of the received signal and a preset strength threshold exceeds a preset range; the preset range represents an error range between the intensity of the received signal and the preset intensity threshold.
Optionally, the terminal device further includes an audio output module, and the audio output module is electrically connected to the antenna switching device; the audio output module and the main antenna assembly are positioned at the same end part of the terminal equipment; the acquisition module is specifically configured to: acquiring whether the application program currently operated by the terminal equipment is a preset application program; when the currently running application program is the preset application program, acquiring an audio signal of the audio output module; wherein the preset application has a low latency network requirement; judging whether the main antenna assembly is in a shielding state or not according to the audio signal; and when the main antenna assembly is in a shielding state, acquiring a receiving signal of the main antenna assembly.
Optionally, the obtaining module is specifically configured to determine whether the intensity of the audio signal is less than a preset intensity of the audio signal; if so, judging that the main antenna assembly is in a shielding state.
Optionally, the apparatus further includes a detection module, where the detection module is configured to detect an audio output mode of the audio output module when the currently running application is the preset application; the obtaining module is further configured to obtain the audio signal corresponding to the audio output mode.
Optionally, the obtaining module is further configured to obtain, when the audio output mode is a play-out mode, an audio signal matched with the currently running application program; the control module is further configured to control the audio output module to output a preset audio signal in the play-out mode and then acquire the preset audio signal when the audio output mode is the non-play-out mode.
In a fourth aspect, the present invention also provides a storage medium having stored thereon a computer program which, when executed by a processor, implements the antenna switching method according to the first aspect.
The embodiment of the invention provides an antenna switching method, terminal equipment and a storage medium, wherein the method can be applied to a controller of the terminal equipment and comprises the following steps: acquiring the received signal strength of a main antenna assembly; when the difference between the received signal strength and the preset strength threshold value exceeds a preset range, controlling the second end of the change-over switch to be switched from the main antenna assembly to the standby antenna assembly; the preset range represents an error range between the intensity of the received signal and a preset intensity threshold; the controller compares the obtained received signal strength with the preset strength threshold, when the difference value between the received signal strength and the preset strength is not within the error range allowed by a user, the antenna signal of the main antenna assembly is weakened, and the second end of the change-over switch is controlled to be switched from the main antenna assembly to the standby antenna assembly, so that the standby antenna assembly is used for receiving and transmitting signals, the performance is improved, and the terminal equipment has strong signal receiving and transmitting capacity all the time.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a second terminal device according to an embodiment of the present invention;
fig. 3 is a scene diagram according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of an antenna switching method according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of a second antenna switching method according to an embodiment of the present invention;
fig. 6 is a possible implementation manner of step S403 provided in the embodiment of the present invention;
fig. 7 is a possible implementation manner of step S402 provided in the embodiment of the present invention;
fig. 8 is a possible implementation manner of step S402-2 according to the embodiment of the present invention.
Icon: 10-a terminal device; 101-a controller; 102-a main antenna component; 103-a spare antenna component; 104-a diverter switch; 105-audio output module.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. 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 invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present invention, it should be noted that if the terms "upper", "lower", "inside", "outside", etc. indicate an orientation or a positional relationship based on that shown in the drawings or that the product of the present invention is used as it is, this is only for convenience of description and simplification of the description, and it does not indicate or imply that the device or the element referred to must have a specific orientation, be constructed in a specific orientation, and be operated, and thus should not be construed as limiting the present invention.
Furthermore, the appearances of the terms "first," "second," and the like, if any, are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
It should be noted that the features of the embodiments of the present invention may be combined with each other without conflict.
The functions of the current terminal equipment are more and more powerful, a user can talk, chat, listen to music, play games and the like through the terminal equipment, and in order to ensure that the user can experience high-speed and smooth network experience in the using process, an antenna assembly in the terminal equipment keeps high-performance signal receiving and transmitting energy all the time. In a conventional design, an antenna assembly in a terminal device is often disposed at two end portions of the device, such as an upper half portion and a lower half portion, and such a design often causes low transmission power efficiency of the antenna assembly when a user adopts a landscape holding posture, thereby causing network deterioration and page jamming.
In order to solve the above technical problem, an embodiment of the present invention provides an antenna switching method and a terminal device, and the core of the method is: when the main antenna assembly in the terminal equipment is shielded to weaken the strength of the antenna receiving signal, the terminal equipment is controlled to start to use the unshielded standby antenna assembly for receiving and transmitting signals, and therefore the terminal equipment always has strong signal receiving and transmitting capacity.
It should be noted that the terminal device in the embodiment of the present invention may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like.
The following description will describe in detail the implementation principle of the present invention that when the main antenna signal is weakened due to user holding or other shielding reasons, the role of the antenna is changed, so that the terminal device always has a strong signal transceiving capability.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a terminal device according to an embodiment of the present invention, and it can be understood by those skilled in the art that the mobile terminal structure shown in fig. 1 is not limited to a mobile terminal, and the mobile terminal may include more or less components than those shown in the drawings, or combine some components, or arrange different components.
The terminal device 10 includes a controller 101, a main antenna assembly 102, a reserve antenna assembly 103, and a changeover switch 104; the controller 101 is electrically connected to a first terminal of the switch 104, and a second terminal of the switch 104 is switched between the main antenna assembly 102 and the spare antenna assembly 103.
In the schematic configuration of the terminal device 10 shown in fig. 1, the main antenna assembly 102 is provided symmetrically with respect to the lower end and the upper end of the terminal device 10, and the auxiliary antenna assembly 103 is provided symmetrically with respect to the right end and the left end of the terminal device 10.
And a controller 101 for acquiring a received signal of the main antenna assembly 102.
In the embodiment of the present invention, after the controller 101 may obtain the received signal of the main antenna assembly 102 through the rf chip inside the terminal device 10, the received signal strength is obtained by performing signal processing on the received signal, and the received signal strength is obtained in real time, for example, in the process of a call or a game networking, a user has a requirement for smooth communication of the terminal device, so that the terminal device may continuously obtain the received signal from the main antenna and obtain the received signal strength through signal processing and analysis; in addition, the terminal device may further acquire the receiving signal of the main antenna at a certain time interval, for example, the time interval may be 1s, 2s, and the like, so that the electric quantity of the communication terminal may be saved more effectively, and the service life of the terminal device may be prolonged.
It is to be understood that the controller 101 described above is a control center of the terminal device 10, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory and calling data stored in the memory, thereby performing overall monitoring of the mobile terminal. The controller 101 may include one or more processing units.
It should be further understood that each group of antennas of the terminal device in this embodiment should have a function of transmitting and receiving signals, but only one group of antenna assemblies can perform signal transceiving at a time, for example, when the main antenna assembly in the active state performs signal transceiving, the standby antenna assembly is in the idle state, and when the standby antenna assembly performs signal transceiving, the main antenna assembly is in the idle state, so that the power consumption of the terminal device can be reduced.
The controller 101 is further configured to control the second terminal of the switch 104 to switch from the main antenna assembly 102 to the spare antenna assembly 103 when the difference between the strength of the received signal and the preset strength threshold exceeds a preset range.
In an embodiment of the present invention, the preset range represents an error range between the received signal strength and a preset strength threshold. For example, assuming that the error range is 1 dB-2 dB, that is, when the difference between the received signal strength represented by the preset range and the preset strength threshold is not within 1 dB-2 dB, it indicates that the antenna performance is in a worse state, and the antenna switching is performed; when the difference value between the preset range representation received signal strength and the preset strength threshold value is within 1 dB-2 dB, the current main antenna performance can meet the user requirements, and at the moment, the subsequent antenna switching process does not need to be executed, so that frequent antenna switching can be avoided, occupation of communication terminal system resources is reduced, and power consumption of terminal equipment is reduced.
The terminal equipment provided by the embodiment of the invention comprises a controller, a main antenna assembly, a standby antenna assembly and a change-over switch; the controller is electrically connected with a first end of the selector switch, and a second end of the selector switch switches between the main antenna assembly and the standby antenna assembly; a controller for acquiring a received signal of the main antenna assembly; the second end of the selector switch is controlled to be switched from the main antenna assembly to the standby antenna assembly when the difference value between the intensity of the received signal and the preset intensity threshold value exceeds a preset range; the preset range represents an error range between the strength of the received signal and a preset strength threshold. The controller compares the strength of the obtained received signal with a preset strength threshold, when the difference value between the strength of the received signal and the preset strength is not within the error range allowed by a user, the antenna signal of the main antenna assembly is weakened, and the second end of the change-over switch is controlled to be switched from the main antenna assembly to the standby antenna assembly, so that the standby antenna assembly is used for receiving and transmitting signals, the performance is improved, and the terminal equipment has stronger signal receiving and transmitting capacity all the time.
Optionally, when the user uses the terminal device, if the requirement of the currently running application program on the network is low, the antenna switching action is not triggered; if the currently running application program has a high requirement on the network, an antenna switching action may be triggered, and at this time, if the user adopts a landscape holding posture, the main antenna assembly may be shielded, so that the transmit-receive power efficiency of the main antenna assembly is low, and the received antenna signal is weakened, so that in order to determine the condition for starting antenna switching, a possible implementation manner is given below, referring to fig. 2, where fig. 2 is a schematic structural diagram of the second terminal device provided in the embodiment of the present invention.
The terminal device 10 further comprises an audio output module 105, the audio output module 105 is electrically connected with the controller 101, and the audio output module 105 and the main antenna assembly 102 are located at the same end part of the terminal device; it is understood that the audio output module 105 may be a speaker or an earpiece; in the schematic configuration of the terminal device 10 shown in fig. 1, the audio output module 105 is provided symmetrically at the lower end and the upper end of the terminal device 10.
A controller 101, further configured to:
and acquiring the application program currently operated by the terminal equipment.
In the embodiment of the present invention, the preset application has a low latency network requirement, and can be preset by a user. For example, when a user plays a game or watches a video, the terminal device runs a game program or a video program, and the application programs all have low-delay network requirements, so that the phenomenon of blocking or unsmooth video watching in the game or video watching process is avoided; when the terminal equipment is in the current running program, the antenna switching can be carried out according to the judgment result to ensure the network performance; when a user browses a webpage or reads an electronic book, the user has low requirement on the network by a browser program or an electronic reading program operated by the terminal device, and the antenna switching may not be performed at this time.
When the currently running application is a preset application, the audio signal of the audio output module 105 is acquired.
In the embodiment of the present invention, the terminal device may include an audio receiving module, for example, a microphone; when the currently running application program is a preset application program, the audio receiving module can be controlled to be started, and the audio receiving module monitors the audio signal of the terminal equipment and transmits the audio signal to the controller.
And judging whether the main antenna assembly is in a shielding state or not according to the audio signal.
When the main antenna assembly is in a shielding state, a received signal of the main antenna assembly is acquired.
In the embodiment of the present invention, when the main antenna assembly 102 is in the blocked state, the signal strength of the received signal will be weakened, and at this time, the trigger controller acquires the antenna received signal to trigger the antenna switching according to the comparison result between the strength of the received signal and the preset strength threshold.
Optionally, an implementation of how to determine whether the main antenna assembly is in the shielding state according to the audio signal is given as follows:
a controller 101, further configured to: judging whether the intensity of the audio signal is smaller than the preset intensity of the audio signal; if yes, the main antenna assembly is judged to be in a shielding state.
It can be understood that when the strength of the audio signal is smaller than the predetermined audio signal, it indicates that the audio output module 105 is shielded by the user, and since the audio output module 105 and the main antenna assembly 102 are located at the same end of the terminal device, the main antenna assembly is also in a shielded state.
Optionally, when the currently running application is a preset application, the controller acquires an audio signal to determine whether the main antenna assembly is blocked, when the terminal device runs the current application in a play-out mode, the terminal device may directly acquire the audio signal of the currently running application, and when the terminal device runs the current application in a non-play-out mode (e.g., a mute mode, an earphone mode, etc.), the audio signal acquired by the terminal device may be the preset audio signal, and an implementation of how to acquire the audio signal is further given below:
a controller 101, further configured to: when the currently running application program is a preset application program, detecting an audio output mode of an audio output module; an audio signal corresponding to an audio output mode is acquired.
A controller 101, further configured to: when the audio output mode is the play-out mode, acquiring an audio signal matched with the currently running application program; and when the audio output mode is the non-external mode, controlling the audio output module to output the preset audio signal in the external mode and then acquiring the preset audio signal.
It can be understood that, for example, assuming that the user is playing a game through a mobile phone and the volume play-out mode is turned on, the terminal device may directly acquire an audio signal of the game at this time; if the mute mode is turned on during the playing of the user or the terminal device is connected to the earphone, the audio signal acquired by the terminal device may be a preset audio signal, the preset audio signal may be a fixed audio with duration (e.g., 1s), and the terminal device controls the audio output module to output the preset audio signal in the play mode and then acquires the preset audio signal.
In order to more clearly explain the antenna switching implementation process provided in the above embodiment, a scene diagram is provided below, referring to fig. 3, and fig. 3 being a scene diagram provided in the embodiment of the present invention. In fig. 3, 3A is a schematic diagram of a vertical state of the terminal device, 3B is a schematic diagram of a horizontal holding posture of the terminal device, and taking 3A in fig. 3 as an example, the same audio receiving module (e.g., a microphone, etc.), audio output module (e.g., a speaker, a receiver, etc.) and main antenna assembly are disposed at upper and lower end portions of the terminal device, wherein the number of the audio receiving module and the audio output module is not limited, and backup antenna assemblies are disposed at both left and right end portions of the terminal device.
In the use state shown in fig. 3A, the main antenna assembly is in a working state, which is responsible for receiving and sending signals, and the standby antenna is in an idle state, when the user uses the terminal device in a horizontal holding posture, see 3B in fig. 3, the user uses the terminal device in the horizontal holding posture, and the hand will block the audio output module and the main antenna assembly, at this time, after the terminal device detects that the audio signal strength is less than the preset audio signal strength through the audio receiving module, it is determined that the main antenna assembly is in the blocking state, in order to determine whether the blocking state affects the performance of the main antenna assembly, the controller of the terminal device obtains the received signal of the antenna assembly at this time, and compares the strength of the received signal with the preset strength threshold, if the difference between the strength of the received signal and the preset strength threshold is not within the error range, it is indicated that the blocking state, the standby antenna needs to be adjusted to be in a working state, so that the terminal equipment always has strong signal receiving and transmitting capacity; if the difference between the intensity of the received signal and the preset intensity threshold is within the error range, it is indicated that the shielding state has little influence on the antenna performance, and the antenna switching may not be performed, so as to keep the main antenna assembly in the working state.
Based on the terminal device provided above, an embodiment of the present invention further provides an antenna switching method, referring to fig. 4, where fig. 4 is an antenna switching method provided in an embodiment of the present invention, and the method may be applied to the controller 101 of the terminal device 10, and includes the following steps:
s405, obtaining a receiving signal of the main antenna assembly.
And S406, when the difference value between the intensity of the received signal and the preset intensity threshold value exceeds a preset range, controlling the second end of the switch to be switched from the main antenna component to the standby antenna component.
It will be appreciated that the above-mentioned predetermined range characterizes a range of errors between the strength of the received signal and a predetermined strength threshold.
The embodiment of the invention provides an antenna switching method, which is applied to a controller of terminal equipment, and comprises the following steps: acquiring the received signal strength of a main antenna assembly; when the difference between the received signal strength and the preset strength threshold value exceeds a preset range, controlling the second end of the change-over switch to be switched from the main antenna assembly to the standby antenna assembly; the preset range represents an error range between the intensity of the received signal and a preset intensity threshold; the controller compares the obtained received signal strength with the preset strength threshold, when the difference value between the received signal strength and the preset strength is not within the error range allowed by a user, the antenna signal of the main antenna assembly is weakened, and the second end of the change-over switch is controlled to be switched from the main antenna assembly to the standby antenna assembly, so that the standby antenna assembly is used for receiving and transmitting signals, the performance is improved, and the terminal equipment has strong signal receiving and transmitting capacity all the time.
Optionally, in order to perform the triggering condition of the antenna switching, a possible implementation is given below on the basis of fig. 4, referring to fig. 5, fig. 5 is a schematic flowchart of a second antenna switching method provided in an embodiment of the present invention, and before the step of obtaining the received signal strength of the main antenna assembly, the method further includes:
s401, acquiring the application program currently operated by the terminal equipment.
The preset application program has a low-delay network requirement.
S402, when the currently running application program is a preset application program, acquiring an audio signal of an audio output module.
And S403, judging whether the main antenna assembly is in a shielding state or not according to the audio signal.
S404, when the main antenna assembly is in the shielding state, the receiving signal of the main antenna assembly is obtained.
Optionally, in order to enable determining whether the main antenna assembly is blocked according to the audio signal, a possible implementation is given below, referring to fig. 6, where fig. 6 is a possible implementation of step S403, that is, step S403 may include the following sub-steps:
s403-1, judging whether the intensity of the audio signal is smaller than the preset intensity of the audio signal.
And S403-2, if yes, judging that the main antenna component is in a shielding state.
Optionally, in order to be able to obtain the audio signal of the terminal device, a possible implementation is given below, referring to fig. 7, where fig. 7 is a possible implementation of step S402, that is, step S402 may include the following sub-steps:
s402-1, when the currently running application program is a preset application program, detecting an audio output mode of an audio output module.
S402-2, acquiring an audio signal corresponding to the audio output mode.
One possible implementation of acquiring an audio signal corresponding to an audio output mode is given below on the basis of fig. 7, and referring to fig. 8, fig. 8 is a possible implementation of step S402-2, that is, step S402-2 may include the following sub-steps:
s402-2-1, when the audio output mode is the play-out mode, acquiring an audio signal matched with the currently running application program.
S402-2-2, when the audio output mode is the non-external mode, controlling the audio output module to output the preset audio signal in the external mode and then acquiring the preset audio signal.
In summary, the antenna switching method and the terminal device provided in the embodiments of the present invention may be applied to a controller of a terminal device, and include: acquiring the received signal strength of a main antenna assembly; when the difference between the received signal strength and the preset strength threshold value exceeds a preset range, controlling the second end of the change-over switch to be switched from the main antenna assembly to the standby antenna assembly; the preset range represents an error range between the intensity of the received signal and a preset intensity threshold; the controller compares the obtained received signal strength with the preset strength threshold, when the difference value between the received signal strength and the preset strength is not within the error range allowed by a user, the antenna signal of the main antenna assembly is weakened, and the second end of the change-over switch is controlled to be switched from the main antenna assembly to the standby antenna assembly, so that the standby antenna assembly is used for receiving and transmitting signals, the performance is improved, and the terminal equipment has strong signal receiving and transmitting capacity all the time.
In one embodiment, the present invention further provides an antenna switching apparatus, where the antenna control apparatus may be disposed on a terminal device; the terminal equipment can comprise a main antenna assembly, a spare antenna assembly and a change-over switch; the antenna switching device is electrically connected with the first end of the switch, and the second end of the switch is switched between the main antenna assembly and the standby antenna assembly; the method comprises the following steps: the device comprises an acquisition module and a control module.
The acquisition module is used for acquiring a receiving signal of the main antenna assembly; the control module is used for controlling the second end of the change-over switch to be switched from the main antenna assembly to the standby antenna assembly when the difference value between the intensity of the received signal and the preset intensity threshold value exceeds a preset range; the preset range represents an error range between the strength of the received signal and a preset strength threshold.
Optionally, the terminal device further includes an audio output module, and the audio output module is electrically connected to the antenna switching device; the audio output module and the main antenna assembly are positioned at the same end part of the terminal equipment; an acquisition module specifically configured to: acquiring whether an application program currently operated by the terminal equipment is a preset application program; when the currently running application program is a preset application program, acquiring an audio signal of an audio output module; wherein the preset application program has a low-latency network requirement; judging whether the main antenna assembly is in a shielding state or not according to the audio signal; when the main antenna assembly is in a shielding state, a received signal of the main antenna assembly is acquired.
Optionally, the obtaining module is specifically configured to determine whether the intensity of the audio signal is less than a preset intensity of the audio signal; if yes, the main antenna assembly is judged to be in a shielding state.
Optionally, the apparatus further includes a detection module, configured to detect an audio output mode of the audio output module when the currently running application is a preset application; the acquisition module is further used for acquiring the audio signal corresponding to the audio output mode.
Optionally, the obtaining module is further configured to obtain, when the audio output mode is the play-out mode, an audio signal matched with the currently running application program; and the control module is also used for controlling the audio output module to output the preset audio signal in the external mode and then acquiring the preset audio signal when the audio output mode is the non-external mode.
It will be appreciated that the acquisition module, determination module and detection module described above may be used to perform the steps illustrated in fig. 4-8 to achieve the corresponding technical effects.
According to the antenna switching device provided by the invention, the antenna control device is arranged on the terminal equipment; the terminal equipment comprises a main antenna assembly, a standby antenna assembly and a change-over switch; the antenna switching device is electrically connected with the first end of the switch, and the second end of the switch is switched between the main antenna assembly and the standby antenna assembly; the method comprises the following steps: the device comprises an acquisition module and a control module; the acquisition module is used for acquiring a receiving signal of the main antenna assembly; the control module is used for controlling the second end of the change-over switch to be switched from the main antenna assembly to the standby antenna assembly when the difference value between the intensity of the received signal and the preset intensity threshold value exceeds a preset range; the preset range represents an error range between the strength of the received signal and a preset strength threshold. According to the embodiment of the invention, when the antenna signal of the main antenna assembly is weakened, the second end of the change-over switch is controlled to be switched from the main antenna assembly to the standby antenna assembly, so that the standby antenna assembly is used for receiving and transmitting signals, the antenna performance is improved, and the terminal equipment always has strong signal receiving and transmitting capacity.
In one embodiment, the present invention also provides a computer device comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program: acquiring a receiving signal of a main antenna assembly; when the difference between the intensity of the received signal and a preset intensity threshold value exceeds a preset range, controlling a second end of the selector switch to be switched from the main antenna assembly to the standby antenna assembly; the preset range represents an error range between the strength of the received signal and a preset strength threshold.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring an application program currently operated by the terminal equipment; when the currently running application program is a preset application program, acquiring an audio signal of an audio output module; wherein the preset application program has a low-latency network requirement; judging whether the main antenna assembly is in a shielding state or not according to the audio signal; when the main antenna assembly is in a shielding state, a received signal of the main antenna assembly is acquired.
In one embodiment, the processor, when executing the computer program, further performs the steps of: judging whether the intensity of the audio signal is smaller than the preset intensity of the audio signal; if yes, the main antenna assembly is judged to be in a shielding state.
In one embodiment, the processor, when executing the computer program, further performs the steps of: when the currently running application program is a preset application program, detecting an audio output mode of an audio output module; an audio signal corresponding to an audio output mode is acquired.
In one embodiment, the processor, when executing the computer program, further performs the steps of: when the audio output mode is the play-out mode, acquiring an audio signal matched with the currently running application program; and when the audio output mode is the non-external mode, controlling the audio output module to output the preset audio signal in the external mode and then acquiring the preset audio signal.
The computer device provided by the embodiment of the invention comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the following steps when executing the computer program: the method comprises the following steps: acquiring the received signal strength of a main antenna assembly; when the difference between the received signal strength and the preset strength threshold value exceeds a preset range, controlling the second end of the change-over switch to be switched from the main antenna assembly to the standby antenna assembly, wherein the preset range represents an error range between the received signal strength and the preset strength threshold value; according to the embodiment of the invention, when the antenna signal of the main antenna assembly is weakened, the second end of the change-over switch is controlled to be switched from the main antenna assembly to the standby antenna assembly, so that the standby antenna assembly is used for receiving and transmitting signals, the antenna performance is improved, and the terminal equipment always has strong signal receiving and transmitting capacity.
In one embodiment, the present invention further provides a storage medium having a computer program stored thereon, where the computer program is executed by a processor to implement the following steps: acquiring the received signal strength of a main antenna assembly; and when the difference between the received signal strength and the preset strength threshold value exceeds a preset range, controlling the second end of the change-over switch to be switched from the main antenna assembly to the standby antenna assembly, wherein the preset range represents an error range between the received signal strength and the preset strength threshold value.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a receiving signal of a main antenna assembly; when the difference between the intensity of the received signal and a preset intensity threshold value exceeds a preset range, controlling a second end of the selector switch to be switched from the main antenna assembly to the standby antenna assembly; the preset range represents an error range between the strength of the received signal and a preset strength threshold.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring an application program currently operated by the terminal equipment; when the currently running application program is a preset application program, acquiring an audio signal of an audio output module; wherein the preset application program has a low-latency network requirement; judging whether the main antenna assembly is in a shielding state or not according to the audio signal; when the main antenna assembly is in a shielding state, a received signal of the main antenna assembly is acquired.
In one embodiment, the computer program when executed by the processor further performs the steps of: judging whether the intensity of the audio signal is smaller than the preset intensity of the audio signal; if yes, the main antenna assembly is judged to be in a shielding state.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the currently running application program is a preset application program, detecting an audio output mode of an audio output module; an audio signal corresponding to an audio output mode is acquired.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the audio output mode is the play-out mode, acquiring an audio signal matched with the currently running application program; and when the audio output mode is the non-external mode, controlling the audio output module to output the preset audio signal in the external mode and then acquiring the preset audio signal.
The embodiment of the invention provides a computer program, which realizes the following steps when being executed by a processor: acquiring the received signal strength of a main antenna assembly; when the difference between the received signal strength and the preset strength threshold value exceeds a preset range, controlling the second end of the change-over switch to be switched from the main antenna assembly to the standby antenna assembly; according to the embodiment of the invention, when the antenna signal of the main antenna assembly is weakened, the second end of the change-over switch is controlled to be switched from the main antenna assembly to the standby antenna assembly, so that the standby antenna assembly is used for receiving and transmitting signals, the antenna performance is improved, and the terminal equipment always has strong signal receiving and transmitting capacity.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes will occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.

Claims (10)

1. An antenna switching method is characterized in that the method is applied to a controller of terminal equipment, and the terminal equipment further comprises a main antenna assembly, a standby antenna assembly and a switch; the controller is electrically connected to a first end of the diverter switch, a second end of the diverter switch switching between the main antenna assembly and the backup antenna assembly; the method comprises the following steps:
acquiring a receiving signal of the main antenna assembly;
when the difference value between the intensity of the received signal and a preset intensity threshold value exceeds a preset range, controlling the second end of the selector switch to be switched from the main antenna assembly to the standby antenna assembly;
the preset range represents an error range between the intensity of the received signal and the preset intensity threshold.
2. The antenna switching method according to claim 1, wherein the terminal device further comprises an audio output module, the audio output module being electrically connected to the controller; the audio output module and the main antenna assembly are positioned at the same end part of the terminal equipment;
prior to the step of obtaining received signals for the main antenna assembly, the method further comprises:
acquiring an application program currently operated by the terminal equipment;
when the currently running application program is a preset application program, acquiring an audio signal of the audio output module; wherein the preset application has a low latency network requirement;
judging whether the main antenna assembly is in a shielding state or not according to the audio signal;
and when the main antenna assembly is in a shielding state, acquiring a receiving signal of the main antenna assembly.
3. The antenna switching method according to claim 2, wherein the step of determining whether the main antenna assembly is in an obstructing state according to the audio signal comprises:
judging whether the intensity of the audio signal is smaller than the preset audio signal intensity;
if so, judging that the main antenna assembly is in a shielding state.
4. The antenna switching method according to claim 2, wherein the step of acquiring the audio signal of the audio output module when the currently running application is the preset application comprises:
when the currently running application program is a preset application program, detecting an audio output mode of the audio output module;
acquiring the audio signal corresponding to the audio output mode.
5. The antenna switching method according to claim 4, wherein the step of acquiring the audio signal corresponding to the audio output mode comprises:
when the audio output mode is a play-out mode, acquiring an audio signal matched with the currently running application program;
and when the audio output mode is a non-play mode, controlling the audio output module to output a preset audio signal in the play mode and then acquiring the preset audio signal.
6. A terminal device, comprising a controller, a main antenna assembly, a backup antenna assembly, and a diverter switch; the controller is electrically connected to a first end of the diverter switch, a second end of the diverter switch switching between the main antenna assembly and the backup antenna assembly;
the controller is used for acquiring a receiving signal of the main antenna assembly;
the controller is further configured to control the second terminal of the switch to switch from the main antenna assembly to the standby antenna assembly when a difference between the strength of the received signal and a preset strength threshold exceeds a preset range; the preset range represents an error range between the intensity of the received signal and the preset intensity threshold.
7. The terminal device of claim 6, further comprising an audio output module electrically connected with the controller; the audio output module and the main antenna assembly are positioned at the same end part of the terminal equipment; the controller is further configured to:
acquiring an application program currently operated by the terminal equipment;
when the currently running application program is a preset application program, acquiring an audio signal of the audio output module; wherein the preset application has a low latency network requirement;
judging whether the main antenna assembly is in a shielding state or not according to the audio signal;
and when the main antenna assembly is in a shielding state, acquiring a receiving signal of the main antenna assembly.
8. The terminal device of claim 7, wherein the controller is further configured to:
judging whether the intensity of the audio signal is smaller than the preset audio signal intensity;
if so, judging that the main antenna assembly is in a shielding state.
9. The terminal device of claim 7, wherein the controller is further configured to:
when the currently running application program is the preset application program, detecting an audio output mode of the audio output module;
acquiring the audio signal corresponding to the audio output mode.
10. A storage medium having stored thereon a computer program, characterized in that the computer program, when being executed by a processor, implements the antenna switching method according to any of the claims 1-5.
CN202010774939.9A 2020-08-04 2020-08-04 Antenna switching method, terminal device and storage medium Active CN111817748B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010774939.9A CN111817748B (en) 2020-08-04 2020-08-04 Antenna switching method, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010774939.9A CN111817748B (en) 2020-08-04 2020-08-04 Antenna switching method, terminal device and storage medium

Publications (2)

Publication Number Publication Date
CN111817748A true CN111817748A (en) 2020-10-23
CN111817748B CN111817748B (en) 2021-11-12

Family

ID=72864297

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010774939.9A Active CN111817748B (en) 2020-08-04 2020-08-04 Antenna switching method, terminal device and storage medium

Country Status (1)

Country Link
CN (1) CN111817748B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006005797A (en) * 2004-06-18 2006-01-05 Japan Radio Co Ltd Antenna changeover controller
JP2006254110A (en) * 2005-03-10 2006-09-21 Nec Corp Portable terminal and antenna switching control method in the portable terminal
CN107465428A (en) * 2017-08-30 2017-12-12 努比亚技术有限公司 Antenna handover trigger control method, communication terminal and computer-readable recording medium
CN107707280A (en) * 2017-08-30 2018-02-16 努比亚技术有限公司 Antenna handover trigger control method, communication terminal and computer-readable recording medium
CN107769833A (en) * 2017-08-30 2018-03-06 努比亚技术有限公司 A kind of antenna switching method, terminal and computer-readable recording medium
CN108494957A (en) * 2018-03-13 2018-09-04 广东欧珀移动通信有限公司 Antenna switching method, device, storage medium and electronic equipment
CN110035149A (en) * 2019-03-27 2019-07-19 维沃移动通信有限公司 A kind of multiple antennas optimization method and mobile terminal
CN110290277A (en) * 2019-07-25 2019-09-27 维沃移动通信有限公司 Method of controlling antenna and terminal
CN110445517A (en) * 2019-06-17 2019-11-12 深圳市万普拉斯科技有限公司 Multi-input multi-output antenna system, method of controlling antenna and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006005797A (en) * 2004-06-18 2006-01-05 Japan Radio Co Ltd Antenna changeover controller
JP2006254110A (en) * 2005-03-10 2006-09-21 Nec Corp Portable terminal and antenna switching control method in the portable terminal
CN107465428A (en) * 2017-08-30 2017-12-12 努比亚技术有限公司 Antenna handover trigger control method, communication terminal and computer-readable recording medium
CN107707280A (en) * 2017-08-30 2018-02-16 努比亚技术有限公司 Antenna handover trigger control method, communication terminal and computer-readable recording medium
CN107769833A (en) * 2017-08-30 2018-03-06 努比亚技术有限公司 A kind of antenna switching method, terminal and computer-readable recording medium
CN108494957A (en) * 2018-03-13 2018-09-04 广东欧珀移动通信有限公司 Antenna switching method, device, storage medium and electronic equipment
CN110035149A (en) * 2019-03-27 2019-07-19 维沃移动通信有限公司 A kind of multiple antennas optimization method and mobile terminal
CN110445517A (en) * 2019-06-17 2019-11-12 深圳市万普拉斯科技有限公司 Multi-input multi-output antenna system, method of controlling antenna and electronic equipment
CN110290277A (en) * 2019-07-25 2019-09-27 维沃移动通信有限公司 Method of controlling antenna and terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
马吉文: "基于船载卫通站的双天线跟踪自动切换技术", 《河北省科学院学报》 *

Also Published As

Publication number Publication date
CN111817748B (en) 2021-11-12

Similar Documents

Publication Publication Date Title
WO2020215965A1 (en) Terminal control method and terminal
CN1203709C (en) Portable terminal
KR101790042B1 (en) Earphone system And Portable Device supporting the same, and Operation Method of Earphone based on the same
US10950238B2 (en) Bluetooth speaker base, method and system for controlling thereof
CN106921803A (en) The player method and control device of multi-medium data
CN112653965B (en) Audio playing control circuit and method and device thereof, electronic equipment and storage medium
CN101873363A (en) Method and terminal for restraining noise by using double microphones
CN113300725B (en) Antenna switching method and related equipment
US8929960B2 (en) Voice call processing method and apparatus for mobile terminal
CN111817748B (en) Antenna switching method, terminal device and storage medium
CN108540659B (en) Method, terminal and computer readable storage medium for reducing TDD noise influence
CN1305324A (en) Battery change method wireless telephone set during call treatment period
US11979210B2 (en) Method and device for controlling 5G antenna, 5G terminal and computer readable storage medium
EP1852782A1 (en) Linkage operation method and communication terminal device
WO2019033442A1 (en) Mobile terminal volume control method and apparatus, storage medium, and mobile terminal
JP2002261665A (en) Portable wireless apparatus
CN109687150B (en) Antenna structure and electronic equipment
US20140148215A1 (en) Mobile communication device capable of switching between different antenna modes
CN115398811B (en) Switching device, communication method and related equipment
KR20110113912A (en) Portable terminal and method for operating of mimo antenna thereof
CN211182528U (en) Intelligent terminal antenna anti-interference circuit and intelligent terminal
CN113115164A (en) Conversation bluetooth headset based on ANC falls and makes an uproar
CN110198183B (en) Antenna switching method and related equipment
CN109831766B (en) Data transmission method, Bluetooth equipment assembly and Bluetooth communication system
CN112152649A (en) Radio frequency circuit, terminal device, signal transmission method, and storage medium

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
GR01 Patent grant
GR01 Patent grant