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

Antenna switching method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN110649952B
CN110649952B CN201910850103.XA CN201910850103A CN110649952B CN 110649952 B CN110649952 B CN 110649952B CN 201910850103 A CN201910850103 A CN 201910850103A CN 110649952 B CN110649952 B CN 110649952B
Authority
CN
China
Prior art keywords
network
antenna
target
transmission rate
transmission
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
CN201910850103.XA
Other languages
Chinese (zh)
Other versions
CN110649952A (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.)
Realme Chongqing Mobile Communications Co Ltd
Original Assignee
Realme Chongqing Mobile Communications 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 Realme Chongqing Mobile Communications Co Ltd filed Critical Realme Chongqing Mobile Communications Co Ltd
Priority to CN202211273481.4A priority Critical patent/CN115622601A/en
Priority to CN201910850103.XA priority patent/CN110649952B/en
Publication of CN110649952A publication Critical patent/CN110649952A/en
Application granted granted Critical
Publication of CN110649952B publication Critical patent/CN110649952B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/06Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station
    • H04B7/0602Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station using antenna switching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/06Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station
    • H04B7/0602Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station using antenna switching
    • H04B7/0608Antenna selection according to transmission parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0055Transmission or use of information for re-establishing the radio link
    • H04W36/0069Transmission or use of information for re-establishing the radio link in case of dual connectivity, e.g. decoupled uplink/downlink
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses an antenna switching method, an antenna switching device, a storage medium and electronic equipment, wherein the method comprises the following steps: the method comprises the steps of obtaining a first transmission rate of a first network and a second transmission rate of a second network in a dual-network connection state, wherein the dual-network connection state is a network connection state of simultaneously connecting the first network and the second network, determining a first target network with higher priority in the first network and the second network based on the first transmission rate and the second transmission rate, determining a first target antenna in at least one antenna, and switching the first target antenna to a protocol stack corresponding to the first target network. By adopting the embodiment of the application, the transmission performance of the transmission network can be improved.

Description

Antenna switching method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to an antenna switching method and apparatus, a storage medium, and an electronic device.
Background
With the rapid development of communication technology, the fifth generation communication system network has matured increasingly, and in the development process of the fifth generation communication system network, communication operators mostly adopt a Non-independent networking mode (Non-Stand Alone, NSA) for deployment. When a user terminal communicates with an opposite terminal device, such as a base station, in an NSA networking mode, the user terminal generally needs to operate in a dual-network connection state, that is, network communication is performed in a dual-network connection mode of Long Term Evolution (LTE) and 5G New Radio (NR), and in the network communication process, the user terminal may cause a network load condition of an LTE or NR network due to objective factors (environmental change, user terminal orientation, user hand-holding, and the like) or subjective factors (increased LTE or NR network service data and the like), and at this time, the user terminal may switch an antenna corresponding to a transmission network in which the network load occurs.
At present, a user terminal may automatically switch a main antenna of a transmission network where a network load currently occurs to antennas under the same transmission network with better signal quality, for example, refer to fig. 1, where fig. 1 is an antenna distribution schematic diagram of the user terminal in practical application, there are 6 antennas in the diagram, an antenna 1 and an antenna 2 support an LTE network, an antenna 3, an antenna 4, an antenna 5 and an antenna 6 support an NR network, a current main antenna of the LTE network is the antenna 2, and a main antenna corresponding to the NR network is the antenna 4, when the network load occurs in the LTE network, the user terminal automatically switches the antenna 1 to the antenna 2 with better signal quality under the same LTE network, when the network load occurs in the NR network, the quality of the antenna 3, the antenna 4, the antenna 5 and the antenna 3 in the antenna 6 is better, and the user terminal automatically switches the antenna 4 to the antenna 4 with better signal quality under the same NR network. However, since the main antenna is responsible for downlink reception and uplink transmission of data, and the auxiliary antenna in the same transmission network as the main antenna is only responsible for downlink reception of data, when the transmission network carries a large amount of downlink data, the mode of switching the main antenna of the transmission network cannot improve the downlink transmission performance of the transmission network, and thus the transmission performance of the transmission network is low.
Disclosure of Invention
The embodiment of the application provides an antenna switching method, an antenna switching device, a storage medium and electronic equipment, which can improve the transmission performance of a transmission network. The technical scheme is as follows:
in a first aspect, an embodiment of the present application provides an antenna switching method, where the method includes:
acquiring a first transmission rate of a first network and a second transmission rate of a second network in a dual-network connection state, wherein the dual-network connection state is a network connection state for simultaneously connecting the first network and the second network;
determining a first target network with higher priority from the first network and the second network based on the first transmission rate and the second transmission rate;
determining a first target antenna in at least one contained antenna, and switching the first target antenna to a protocol stack corresponding to the first target network.
In a second aspect, an embodiment of the present application provides an antenna switching apparatus, where the apparatus includes:
a transmission rate obtaining module, configured to obtain a first transmission rate of a first network and a second transmission rate of a second network in a dual-network connection state, where the dual-network connection state is a network connection state in which the first network and the second network are connected simultaneously;
a target network determination module configured to determine a first target network with a higher priority from among the first network and the second network based on the first transmission rate and the second transmission rate;
and the protocol stack switching module is used for determining a first target antenna in at least one contained antenna and switching the first target antenna to a protocol stack corresponding to the first target network.
In a third aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-mentioned method steps.
In a fourth aspect, an embodiment of the present application provides an electronic device, which may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
The beneficial effects brought by the technical scheme provided by some embodiments of the application at least comprise:
in one or more embodiments of the present application, a user terminal obtains a first transmission rate of a first network and a second transmission rate of a second network in a dual-network connection state, where the dual-network connection state is a network connection state in which the first network and the second network are connected simultaneously, determines, based on the first transmission rate and the second transmission rate, a first target network with a higher priority in the first network and the second network, determines a first target antenna in at least one antenna included in the first target network, and switches the first target antenna to a protocol stack corresponding to the first target network. The first target network with higher priority is determined based on the transmission rates of the first network and the second network, and the antennas with better performance in all the antennas are switched to the protocol stack corresponding to the first target network, so that the antenna resources are fully utilized, and the transmission performance of the transmission network is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic diagram of a user terminal antenna distribution mentioned in the background section of the present application;
fig. 2 is a schematic view of a scene architecture for antenna switching according to an embodiment of the present application;
fig. 3 is a flowchart illustrating an antenna switching method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another antenna switching method according to an embodiment of the present application;
fig. 5a is a schematic view of a user interface involved in an antenna switching method according to an embodiment of the present application;
fig. 5b is a schematic view of a scene architecture corresponding to a cloud game scene related to an antenna switching method according to an embodiment of the present disclosure;
fig. 6 is a schematic diagram of a user terminal interface related to an antenna switching method according to an embodiment of the present application;
fig. 7 is a schematic diagram of another user terminal interface involved in an antenna switching method provided in an embodiment of the present application;
fig. 8a is a schematic diagram of an antenna distribution of a user terminal according to an antenna switching method provided in an embodiment of the present application;
fig. 8b is a schematic diagram of a user terminal antenna switching related to an antenna switching method according to an embodiment of the present application;
fig. 9a is a schematic diagram of another antenna distribution of a user terminal according to an antenna switching method provided in an embodiment of the present application;
fig. 9b is a schematic diagram of another user terminal antenna switching involved in the antenna switching method according to the embodiment of the present application;
fig. 10 is a schematic structural diagram of an antenna switching apparatus according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a target network determining module according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of a protocol stack switching module according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of another antenna switching apparatus according to an embodiment of the present application
Fig. 14 is a schematic structural diagram of an electronic device 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, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the 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 "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In the description of the present application, it is to be noted that, unless otherwise explicitly specified and limited, the words "comprise" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus. The specific meaning of the above terms in this application will be understood to be a specific case for those of ordinary skill in the art. Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The present application will be described in detail with reference to specific examples.
Fig. 2 is a schematic view of a scene of an antenna switching system according to an embodiment of the present application. As shown in fig. 1, the antenna switching system may include a user terminal 100, an LTE base station 110, an NR base station 120, and a core network 130.
The user terminal 100 may be an electronic device providing voice call and/or data connectivity for a user, and may include, for example, a handheld device having a wireless connection capability, or a processing pen connected to a wireless modem, including but not limited to: mobile terminal devices, handheld devices, personal computers, tablet computers, in-vehicle devices, computing devices or other processing devices connected to a wireless modem, and the like.
The LTE base station 110 and the NR base station 120 are electronic devices in a Radio Access network, where the Term "base station" refers to any component (or collection of components) configured to provide wireless Access to a network, such as a Base Station (BS) or a transmission/reception point, a macro cell, a home base station, or other device supporting wireless functionality, and the base station may provide wireless Access according to one or more wireless communication protocols, such as wireless communication protocols such as 5G New Radio (NR), long Term Evolution (LTE), LTE-enhanced LTE, high Speed Packet Access (HSPA), and the like.
The core network 130 may include a plurality of core network devices, such as gateways and switches, and the core network mainly provides user connection, manages users, and carries services, and also serves as a carrying network to provide interfaces to external networks for users.
The user terminal 100 connects with the LTE base station 110 and the NR base station 120 at the same time to establish a communication connection with the LTE network and the NR network, and after the communication connection is established, the user terminal is in a dual-network connection state.
The control plane data is independently carried by the LTE network, and the transmission and the processing of the signaling are coordinated and controlled under the LTE network. When the user terminal 100 transmits the control plane data, the control plane data is transmitted to the LTE base station 110 through an antenna of the user terminal 100 accessing the LTE network, and the LTE base station 110 transmits the control plane data to the core network 130. Meanwhile, when control plane data needs to be sent to the user terminal 100 on the core network 130, the core network 130 sends the control plane data to the LTE base station 110, the LTE base station 110 sends the control plane data to the user terminal 100, the user terminal 100 receives the control plane data of the LTE base station 110 through an antenna of the user terminal 100, which is accessed to the LTE network, and the control plane data may be data such as control signaling.
The user plane data is commonly carried by the LTE network and the NR network, and when the user terminal 100 transmits the user plane data, the user plane data may be transmitted to the LTE base station through an antenna accessed to the LTE network on the user terminal 100, and/or the user plane data may be transmitted to the NR base station through an antenna accessed to the NR network, and the LTE base station/the NR base station transmit the user plane data to the core network 130. Meanwhile, when user plane data needs to be sent to the user terminal 100 on the core network 130, the core network 130 sends the user plane data to the LTE base station 110 and/or the NR base station, and then the LTE base station 110 and/or the NR base station sends the user plane data to the user terminal 100, and the user terminal 100 receives the user plane data of the LTE base station through an antenna on the user terminal 100, which is accessed to the LTE network, and/or receives the user plane data of the NR base station through an antenna on the user terminal 100, which is accessed to the NR network. The user plane data may be traffic data or the like.
In this embodiment, by using the antenna switching system in the NSA independent networking manner, the user terminal 100 may detect a first transmission rate corresponding to data transmission in the LTE network and a second transmission rate corresponding to data transmission in the NR network.
When the first transmission rate is greater than the second transmission rate, calculating a first difference value between the first transmission rate and the second transmission rate, and when the first difference value is greater than a first threshold value, determining that the LTE network is a first target network and the NR network is a second target network; when the second transmission rate is greater than the first transmission rate, calculating a second difference between the second transmission rate and the first transmission rate, and when the second difference is greater than a second threshold, determining that the NR network is the first target network and the LTE network is the second target network.
The user terminal 100 detects signal quality of each antenna in at least one antenna included therein, determines a priority of each antenna based on a high-low order of the signal quality of each antenna, and obtains the number of antennas corresponding to the first target network, determines a first target antenna indicated by the number of antennas from the at least one antenna based on the high-low order of the priority, and switches the first target antenna to a protocol stack corresponding to the first target network and switches a second target antenna except the first target antenna in the at least one antenna to a protocol stack corresponding to the second target network.
In this embodiment of the present application, a user terminal obtains a first transmission rate of a first network and a second transmission rate of a second network in a dual-network connection state, where the dual-network connection state is a network connection state in which the first network and the second network are connected simultaneously, determines, based on the first transmission rate and the second transmission rate, a first target network with a higher priority in the first network and the second network, determines a first target antenna in at least one antenna included in the first target network, and switches the first target antenna to a protocol stack corresponding to the first target network. The first target network with higher priority is determined based on the transmission rates of the first network and the second network, and the antennas with better performance in all the antennas are switched to the protocol stack corresponding to the first target network, so that the antenna resources are fully utilized, and the transmission performance of the transmission network is improved.
In one embodiment, as shown in fig. 3, an antenna switching method is proposed, which can be implemented by means of a computer program and can be run on an antenna switching device based on the von neumann architecture. The computer program may be integrated into the application or may run as a separate tool-like application.
Specifically, the antenna switching method includes:
step 101: the method comprises the steps of obtaining a first transmission rate of a first network and a second transmission rate of a second network in a dual-network connection state, wherein the dual-network connection state is a network connection state of simultaneously connecting the first network and the second network.
The dual network connection state may be understood as that the user terminal is connected with two different communication networks or different communication frequency bands of the same communication network, and the communication network may be a wireless communication network, which includes but is not limited to a cellular network, a wireless local area network, an infrared network, a private network, a 5G network, or a network in future evolution.
Hereinafter, for convenience of description, a detailed description will be given with respect to the application of the 5G network to the present embodiment.
A 5G network, that is, a 5 th generation communication system network, where the networking mode of the 5G network includes two modes, namely, a Non-Stand-Alone Network (NSA) and a Stand-Alone network (SA), in this embodiment, the NSA mode is preferred, and when a user terminal communicates with a base station in the NSA mode, the user terminal needs to operate in a dual-network connection state, that is, the user terminal adopts a dual-network connection mode of Long Term Evolution (LTE) and 5G New Radio (New Radio, NR) to perform network communication, and at this time, the user terminal is in the dual-network connection state and simultaneously connects a first network and a second network, where the first network may be an LTE network and the second network is an NR network; or the first network may be an NR network and the second network is an LTE network.
The transmission rate refers to a rate at which data is transmitted from one point to another point, such as a rate at which user data is transmitted from the network node-user terminal to the network node-server, or a rate at which streaming media data is downloaded from the network node-server to the network node-user terminal.
The downstream rate is generally the rate at which data is obtained from a host on the network, and various network software applications must obtain data from the network. For example, when a browser opens a website, data is downloaded from a server of the website, which results in a certain data download rate.
The upload rate refers to the uplink flow of network data in unit time. The network data transmission is divided into two parts of sending data and receiving data. Uploading is to send data to the outside. Download is to accept data from the outside. The uploading rate determines the speed of data transmission outwards in unit time and is limited by network bandwidth and equipment performance.
It should be noted that, in this embodiment, the transmission rate is not specifically limited, and may be one of an uplink rate and a downlink rate, or may include the uplink rate and the downlink rate.
In this embodiment, the transmission rate of the data on the first network corresponds to a first transmission rate, and the transmission rate of the data on the second network corresponds to a second transmission rate.
Specifically, the user terminal is in the dual-network connection state, and is connected to the first network and the second network at the same time, and respectively performs statistics on data traffic flowing through the first network and the second network. The transmission rate of a certain period of time can be calculated according to the corresponding data traffic in the period of time, and the transmission rate can be calculated according to a statistical method by calculating the ratio of the data traffic to the time, so that the transmission rate under the corresponding network can be obtained.
Specifically, the user terminal may perform statistics on data traffic flowing through the first network based on a preset time period (e.g., 3 minutes), and calculate a ratio between the data traffic and a preset time (e.g., 3 minutes) in the preset time period to obtain a first transmission rate corresponding to the first network; the ue may also count data traffic flowing through the second network based on a preset time period (e.g., 3 minutes), and calculate a ratio between the data traffic and a preset time (e.g., 3 minutes) in the preset time period to obtain a second transmission rate corresponding to the second network.
Optionally, in order to reduce the calculation error, the accuracy of the transmission rate is improved. When acquiring the first transmission rate and the second transmission rate, the user terminal may detect data traffic for multiple times within a corresponding predetermined time period (e.g., within 3 minutes), for example, the data traffic may be detected once every 200 milliseconds, then determine the transmission rate within 200 milliseconds, and then calculate the transmission rates detected for multiple times by using a statistical method to obtain a statistical value, where the statistical value is the transmission rate. The calculation may be a calculation of a mean, median, variance, maximum likelihood, and the like. It is also possible to perform multiple tests based on a predetermined statistical strategy, for example: the detection is performed in a regression fashion once every 10 milliseconds, then every 20 milliseconds, then every 10 milliseconds, then every 20 milliseconds, and so on.
Step 102: determining a first target network with a higher priority among the first network and the second network based on the first transmission rate and the second transmission rate.
The first target network may be understood as a transmission network with a higher network transmission priority when the ue is in a dual-network connection state. In this embodiment, it can be understood that the first target network has a higher traffic volume, more data to be transmitted, a higher network load, and the like.
The second target network may be understood as a transport network with a lower network transport priority when the ue is in a dual-network connection state. In this embodiment, it can be understood that the second target network has lower traffic, less data to be transmitted, lower network load, and the like, compared with the first target network.
Specifically, the user terminal stores a table of correspondence between preset transmission rates and network priorities in advance, which can be understood as that the user terminal corresponds to different tables of correspondence between preset transmission rates and network priorities in different transmission networks, for example, in a first network, the table of correspondence between transmission rates and network priorities is a first table, and in a second network, the table of correspondence between transmission rates and network priorities is a second table. After the user terminal respectively obtains a first transmission rate of a first network and a second transmission rate of a second network in a dual-network connection state, the priority of the transmission rate in the current transmission network may be determined in a corresponding relationship table of different networks based on the first transmission rate and the second transmission rate. Then, based on the comparison between the priority corresponding to the first transmission rate and the priority corresponding to the second transmission rate, the transmission network corresponding to the transmission rate with the higher priority is determined as a first target network, and the transmission network corresponding to the transmission rate with the lower priority is determined as a second target network. Wherein the first target network is prioritized over the second target network.
In a specific application scenario, in a dual-network connected state, a user terminal acquires that a first transmission rate corresponding to a first network-LTE network is a, a second transmission rate corresponding to a second network-NR network is B, a correspondence between the LTE network of the first network and a network priority may be in a form as shown in table one, where the network priority: 1 > 2 >. Cndot.n, n is a natural number, see table one:
watch 1
Transmission rate Network priority
s1-s2 1
s2-s3 2
... ...
After the user terminal obtains the first transmission rate a, the network priority corresponding to the first transmission rate a is looked up in the first table, for example, the network priority corresponding to the first transmission rate a is 1.
The correspondence of the-NR network of the second network to the network priority may be in the form as shown in table two, the network priority: 1 > 2 >. Cndot.n, n is a natural number, see table two:
watch two
Transmission rate Network priority
S1-S2 1
S2-S3 2
... ...
After the user terminal acquires the second transmission rate B, the network priority corresponding to the second transmission rate B is looked up in the first table, for example, the network priority corresponding to the second transmission rate B is 2.
The network priority corresponding to the first transmission rate a is 1 and greater than the network priority corresponding to the second transmission rate B is 2, at this time, the user terminal determines the first network corresponding to the first transmission rate a as a first target network with a higher priority, and determines the second network corresponding to the second transmission rate B as a second target network with a higher priority.
Optionally, the network priority mapping table pre-stored in the user terminal may further include communication environment parameters such as temperature, physical quantities (current, voltage, magnetic flux, and the like), and user terminal thread resource occupation, and when the user terminal acquires the transmission speed in the transmission network, the user terminal may acquire the communication environment parameters based on electronic components such as a sensor and a processor on the user terminal, and determine the network priority corresponding to the current transmission network based on the pre-stored network priority mapping table.
Step 103: determining a first target antenna in at least one contained antenna, and switching the first target antenna to a protocol stack corresponding to the first target network.
The antenna is integrated on the user terminal, and can convert the electric signal transmitted by the user terminal into electromagnetic wave to radiate towards a specific direction in space and also can receive the electromagnetic wave towards a specific direction in space. In this embodiment, the antenna included in the user terminal supports the protocol stacks corresponding to the first network and the second network.
The protocol stack refers to the sum of protocols of each layer on the user terminal, and when communication equipment communicates with each other (for example, the user terminal communicates with an access network equipment-base station), the protocol stack is actually performed by transmitting data packets in each protocol layer, and each protocol layer forms the protocol stack. Wherein, in order for data to be transferred between communication devices, the same communication rules, called protocols, must be followed between the participants of the communication devices. Generally, protocol stacks can be divided into user plane protocol stacks and control plane protocol stacks according to different types of messages to be transmitted. The object carried by the control plane protocol stack is control signaling; the objects carried by the user plane protocol stack are user data. When a non-independent Networking (NSA) mode is used for 5G networking, control signaling is usually transmitted through an LTE protocol stack, and user data can be transmitted through the LTE protocol stack and an NR protocol stack together.
The antenna with the current protocol stack being the LTE protocol stack on the user terminal can transmit data through the LTE network, and the antenna with the current protocol stack being the NR protocol stack on the user terminal can transmit data through the NR network.
Specifically, the user terminal detects transmission state parameters of all antennas, where the transmission state parameters include signal transmission quality, transmission power, data packet loss rate, capacitance values, and the like of each antenna, evaluates all the antennas to obtain an evaluation result of each antenna, for example, after the user terminal detects the signal quality of all the antennas, the user terminal scores each antenna based on a preset evaluation rule, selects an antenna with a higher score from the antennas as a first target antenna based on the number of antennas of the first target network according to the order of the scores of the antennas, and then switches the target antenna to a protocol stack corresponding to the first target network. And the user terminal takes the antennas except the first target antenna in the at least one antenna as a second target antenna, and switches the second target antenna to a protocol stack corresponding to the second target network.
Optionally, the preset evaluation rule may set a weight for each transmission state parameter of the antenna, for example, set a weight for signal quality, transmission power, data packet loss rate, and capacitance value of each antenna, then score each transmission state parameter, and calculate a product of each transmission state parameter score and the weight. Or may be based on the one or more transmission state parameters, e.g. based on signal quality, etc.
In the embodiment of the application, a user terminal obtains a first transmission rate of a first network and a second transmission rate of a second network in a dual-network connection state, the dual-network connection state is a network connection state in which the first network and the second network are connected simultaneously, based on the first transmission rate and the second transmission rate, a first target network with a higher priority is determined in the first network and the second network, a first target antenna is determined in at least one antenna included in the first target network, and the first target antenna is switched to a protocol stack corresponding to the first target network. The first target network with higher priority is determined based on the transmission rates of the first network and the second network, and the antennas with better performance in all the antennas are switched to the protocol stack corresponding to the first target network, so that the antenna resources are fully utilized, and the transmission performance of the transmission network is improved.
Referring to fig. 4, fig. 4 is a schematic flowchart illustrating an antenna switching method according to another embodiment of the present application. Specifically, the method comprises the following steps:
step 201: the method comprises the steps of obtaining a first transmission rate of a first network and a second transmission rate of a second network in a dual-network connection state, wherein the dual-network connection state is a network connection state of simultaneously connecting the first network and the second network.
Specifically, refer to step 101, which is not described herein again.
Step 202: when the first transmission rate is greater than the second transmission rate, a first difference between the first transmission rate and the second transmission rate is calculated.
The first difference is a difference between a first transmission rate and a second transmission rate, and the user terminal measures a transmission state of data of a transmission network through the first difference, where generally the larger the first value is, the more the first network traffic is, the more data to be transmitted is, the higher the network load is, and the like. When the total amount of data transmitted by the user terminal through the first network in the period of time is greater than that of the second network, namely the first transmission rate of the user terminal in the period of time is greater than the second transmission rate.
Specifically, after acquiring a first transmission rate of the first network and a second transmission rate of the second network, the user terminal determines a transmission rate of the first transmission rate and the second transmission rate, and when the first transmission rate is greater than the second transmission rate, the user terminal calculates a difference between the first transmission rate and the second transmission rate, and takes the difference as the first difference.
In a specific implementation scenario, a user terminal performs networking in an NSA networking manner, and the user terminal is in a dual-network connection state and simultaneously connected to a first network and a second network, where the first network is an LTE network and the second network is an NR network. When a user terminal needs to transmit a large amount of control signaling in a certain period of time, the control signaling is transmitted through an LTE network, during the period of time, the user terminal adaptively adjusts a first transmission speed of data transmission under a first network-LTE network so as to reduce the time delay of the data transmission and shorten the transmission time, during the period of time, the first transmission speed detected by the user terminal is larger than a second transmission speed, and when the first transmission speed is larger than the second transmission speed, the user terminal calculates a difference value between the first transmission speed and the second transmission speed, and the difference value is used as a first difference value.
Step 203: when the first difference is greater than a first threshold, it is determined that the first network is a first target network and the second network is a second target network.
The threshold refers to a threshold value of a certain field, state or system, and is also called a critical value. In this embodiment, the first threshold may be understood as a threshold of a first difference, and when the first difference exceeds the first threshold, that is, the data transmission amount of the first network on the current user terminal is relatively large, the first network carries a main transmission service.
The first threshold value is used for analyzing and determining the threshold value of the optimal transmission rate in the first network according to the collected sample data in the first network, wherein the sample data comprises data such as the first transmission rate, the transmission delay, the packet loss rate and the like.
Specifically, after obtaining a first difference between the first transmission rate and the second transmission rate through calculation, the user terminal determines the size of the first difference and a first threshold, and when the first difference is greater than the first threshold, that is, a first network of the current user terminal bears a main transmission service, at this time, the user terminal determines the first network as a first target network, determines the second network as the second target network, and determines the priority of the first target network is higher than the priority of the second target network.
Step 204: when the second transmission rate is greater than the first transmission rate, a second difference between the second transmission rate and the first transmission rate is calculated.
The second difference is a difference between a second transmission rate and the first transmission rate, and the user terminal measures the transmission state of the transmission network data by using the second difference, where generally the larger the second value is, the more the traffic of the second network is, the more the data to be transmitted is, the higher the network load is, and the like. When the total amount of data transmitted by the user terminal through the second network in the period of time is greater than that of the second network, namely the second transmission rate of the user terminal in the period of time is greater than the first transmission rate.
Specifically, after acquiring a first transmission rate of the first network and a second transmission rate of the second network, the user terminal determines a transmission rate of the first transmission rate and the second transmission rate, and when the first transmission rate is greater than the second transmission rate, the user terminal calculates a difference between the first transmission rate and the second transmission rate, and takes the difference as the first difference.
In a specific implementation scenario, a user terminal adopts a networking mode of NSA for networking, and the user terminal is in a dual-network connection state and is simultaneously connected with a first network and a second network, wherein the first network is an LTE network, and the second network is an NR network. Fig. 5a is a schematic diagram of a display interface of a user terminal, where a user touches a "cloud game" application on the display interface of the user terminal by means of finger touch to turn on a "cloud game", where a large online game (e.g., a 3D online game) usually occupies a large amount of computing resources, a cloud game operator deploys a "cloud game" (the 3D online game) on a cloud server and transmits game pictures to the user terminal in real time through a transmission network, and fig. 5b is a scene architecture diagram of a large cloud game that is executed based on a cloud platform, the cloud game is deployed on the cloud server shown in fig. 5b, in order to reduce picture delay during transmission of the cloud game, an NR network with a higher transmission rate is used, and the user operates the "cloud game" on the user terminal.
Step 205: when the second difference is greater than a second threshold, determining that the second network is the first target network and the first network is the second target network.
The second threshold may be understood as a threshold of a second difference, and when the second difference exceeds the second threshold, that is, the data transmission amount of the second network on the current user terminal is large, the second network carries the main transmission service.
Specifically, after obtaining a second difference between the second transmission rate and the first transmission rate through calculation, the user terminal determines the size of the second difference and a second threshold, and when the second difference is greater than the second threshold, that is, a second network of the current user terminal bears a main transmission service, at this time, the user terminal determines the second network as a first target network, determines the second network as the first target network, and determines the priority of the first target network is higher than the priority of the second target network.
For example: taking the cloud game scenario as an example, when a game runs to a complex game group battle scenario, complex game picture transmission and reception are involved, a large number of game frame pictures are usually received or transmitted within a certain period of time, the frame pictures are transmitted through a second network-NR network, the second network-NR network carries a main transmission service, namely, a game service, and at this time, after a second transmission rate obtained by a user terminal and the first transmission rate are obtained, the second difference is calculated to reach a threshold value of a second difference, namely, a second threshold value.
In a feasible implementation manner, in a dual-network connection state, a user terminal determines, for a service type of a currently transmitted service, a transmission network corresponding to the service type as a first target network with a higher priority, where the transmission network is the first network or the second network, and determines, as the second target network with a lower priority, a network other than the transmission network in the first network and the second network.
Specifically, the user terminal may formulate different network transmission policies for services of different service types, for example, the network transmission policy for service a may be transmission of service data through a first network-LTE network, the network transmission policy for service B may be transmission of service data through a second network-NR network, the network transmission policy for service C may be primary transmission of service data through the first network-LTE network and auxiliary transmission of service data through the second network-NR network, and so on.
The user terminal stores the corresponding relation between the service type and the transmission network in advance, searches the transmission network corresponding to the current service based on the service type corresponding to the current service in the dual-network connection state, and determines the transmission network corresponding to the service type as a first target network with higher priority.
In a specific implementation scenario, the ue is in a dual-network connection state, and is connected to a first network and a second network simultaneously, where the first network is an LTE network and the second network is an NR network. When a user uses a VoLTE service on a user terminal to perform high-definition voice call, as shown in fig. 6, fig. 6 is an interface schematic diagram of the user using the VoLTE service on the user terminal to perform high-definition voice call, where the VoLTE service is based on a high-definition voice call technology in an LTE network, the VoLTE service performs voice data transmission through a first network-LTE network, and when the user terminal acquires a service type of the VoLTE service currently being transmitted, the service type is LTE-preferred, and the service type corresponds to that of the first network-LTE network, at this time, the first network-LTE network carries a main service-VoLTE service of the transmission network, and the user terminal determines the first network-LTE network as a first target network with a higher priority and determines a second network-NR network as a second target network with a lower priority.
Optionally, when the user uses the VoNR service on the user terminal to perform the high-definition voice call, as shown in fig. 7, fig. 7 is an interface schematic diagram of the user using the VoNR service on the user terminal to perform the high-definition voice call, where the VoNR service is based on a high-definition voice call technology in an NR network, the VoNR service mainly performs transmission of voice data through a first network-LTE network, at this time, a service type corresponding to the VoNR service is NR-first, and the user terminal determines a second network-NR network as a first target network with a higher priority and determines the first network-LTE network as the second target network with a lower priority.
In a possible embodiment, the user may select a service type of a certain service at the user terminal, such as: the method comprises the steps that a user can select the service type of the high-definition voice communication service at a user terminal to be LTE priority or NR priority, the user terminal detects a service type selection instruction input by the user, reads and executes a machine executable instruction corresponding to a control logic of the service type, sets a transmission network corresponding to the service type as a first target network, the transmission network is the first network or the second network, and determines the network except the transmission network in the first network and the second network as the second target network with lower priority.
Step 206: when the first difference is smaller than a first threshold or the second difference is smaller than a second threshold, a first main antenna corresponding to the first network and a second main antenna corresponding to the second network are respectively determined in the at least one antenna.
The first difference being less than a first threshold may be understood as the first difference being less than a first threshold when the first transmission rate is greater than the second transmission rate and the first difference is in a range greater than 0 and less than the first threshold.
The second difference being less than a second threshold may be understood as the second difference being less than a second threshold when the second transmission rate is greater than the first transmission rate and the second difference is in a range greater than 0 and less than the second threshold.
In this embodiment, the antenna included in the user terminal supports the protocol stacks corresponding to the first network and the second network.
Specifically, when the user terminal monitors that the first difference is smaller than a first threshold or the second difference is smaller than a second threshold, at this time, the data transmission rates of the user terminal on the first network and the second network are not greatly different, the traffic volume between the first network and the second network is equivalent, the data to be transmitted is equivalent, and the network load is relatively balanced.
Specifically, the user terminal detects signal quality of each antenna in all antennas in the first network, determines priority of each antenna based on the signal quality of each antenna, and determines that the antenna indicated by the highest priority is the first main antenna. Meanwhile, the user terminal detects the signal quality of each antenna in all antennas in the second network, determines the priority of each antenna based on the signal quality of each antenna, and determines the antenna indicated by the highest priority as a second main antenna.
Specifically, the user terminal may measure the signal quality of the antenna by measuring the signal received by the antenna. Specifically, the Reference Signal Receiving Power (RSRP) received by the antenna from a peer device, such as an access network device (e.g., a base station), may be measured, and after the RSRP of each antenna is measured, the signal quality of each antenna is evaluated based on a preset antenna signal determination rule.
For example: the antenna signal determination rule may be that, based on the RSRP value, the antennas in the first network and the second network are sequentially ranked, the antenna with the strongest signal strength is determined as the highest priority, and the antenna indicated by the highest priority is the first primary antenna.
Alternatively, the signal quality of the antenna may be measured, or signal parameters such as signal strength of each antenna, channel characteristics, signal energy of the antenna, or an error rate of a received signal may be measured. And after the signal parameters are measured, evaluating the signal quality of each antenna based on a preset antenna signal judgment rule. The antenna signal decision rule is determined based on performance differences caused by signal parameter variations between antennas.
Step 207: and switching the main antenna corresponding to the first network to the first main antenna, and switching the main antenna corresponding to the second network to the second main antenna.
In practical applications, since signals generate multipath component signals due to equal interference during transmission, a receiving end (e.g., a user terminal) may employ a diversity reception technique, that is, multiple antennas are used to simultaneously receive signals of different paths, and then multiple paths of signals are combined to form an overall signal, so as to mitigate the influence of signal fading. When multiple antennas are used to transmit and receive data on a transmission network, a main antenna (also called a main set) is set, where the main antenna is responsible for transmitting and receiving radio frequency signals, and the remaining antennas are usually called auxiliary antennas (also called diversity), where the auxiliary antennas are responsible for receiving only radio frequency signals and not transmitting radio frequency signals.
Fig. 8a is an antenna schematic diagram of a diversity technology embodied on a user terminal, where the user terminal shown in fig. 8a has 6 antennas, an antenna 1, an antenna 2, · · ·, and an antenna 6, and when the user terminal is in a dual-network connection state, the user terminal is simultaneously connected to a first network and a second network, and for convenience of description, the first network is an LTE network, and the second network is an NR network, where in the first network-LTE network, the antenna 2 is a current main antenna, and in the second network-NR network, the antenna 4 is a main antenna.
Specifically, after determining a first main antenna corresponding to the first network and a second main antenna corresponding to the second network by detecting the signal quality of at least one antenna, the user terminal switches the main antenna corresponding to the first network to the first main antenna and switches the main antenna corresponding to the second network to the second main antenna. Take the above as an example. In the first network-LTE network, antenna 2 is the current primary antenna, and in the second network-NR network, antenna 4 is the primary antenna. The user terminal determines, by detecting the antenna signal quality, that a first main antenna corresponding to the first network-LTE network in fig. 8a is an antenna 1, and determines a second main antenna corresponding to the second network-NR network is an antenna 3, at this time, the user terminal switches the main antenna in the first network-LTE network from a current antenna-antenna 2 to the first main antenna-antenna 1, and switches the main antenna in the second network-NR network from a current antenna-antenna 4 to the second main antenna-antenna 3, an antenna schematic diagram after the switching is shown in fig. 8b, the main antenna in the first network of the user terminal is the antenna 1, the antenna 1 (main antenna) is responsible for transmitting and receiving radio frequency signals in the first network, and the antenna 2 (auxiliary antenna) is responsible for receiving radio frequency signals only in the first network; the main antenna under the second network is antenna 3, antenna 3 (main antenna) is responsible for sending and receiving radio frequency signals on the second network, and antenna 4, antenna 6 and antenna 5 (auxiliary antenna) are only responsible for receiving radio frequency signals on the second network.
Step 208: detecting the signal quality of each antenna in the at least one antenna, and determining the priority of each antenna based on the sequence of the signal quality of each antenna;
specifically, the user terminal detects signal quality of each antenna in all antennas included in the user terminal, where the signal quality may be obtained by measuring reference signal received power RSRP received by each antenna from an opposite end device, such as an access network device (e.g., a base station), and sequentially determining priority of each antenna based on a size order of the reference signal received power RSRP.
For example, the user terminal includes 6 antennas, which are antenna 1, antenna 2, ·, and antenna 6, respectively, the RSRP of each antenna is measured as P1, P2, P3, P4, P5, and P6, and then the power of each RSRP is determined as P5 > P2 > P1 > P3 > P4 > P6, then the antenna priority corresponding to the power of each RSRP is determined as, the priority of antenna 5 is 1, the priority of antenna 2 is 2, the priority of antenna 1 is 3, the priority of antenna 3 is 4, the priority of antenna 4 is 5, and the priority of antenna 6 is 6, that is, the antenna priorities are, from high to low: antenna 5, antenna 2, antenna 1, antenna 3, antenna 4, antenna 6.
Optionally, the user terminal may further measure the signal quality of the antenna by measuring at least one parameter of Received Signal Strength Indication (RSSI), received Signal Code Power (RSCP), ratio of received chip signal strength to noise strength (EcIo) of the signal received by the antenna to noise spectral density (EcNo)/signal-to-noise ratio (SNR)/Reference Signal Received Quality (RSRQ), bit error rate (bit error rate)/block error rate (BLER)/Packet Error Rate (PER) of the signal received by the antenna, and the like, or may also measure the signal quality of the antenna by measuring other parameters.
It should be noted that there are many parameters of the measured signal quality, which may be one or more of the above mentioned fits, and this is not limited specifically here.
In a possible implementation manner, after measuring the parameter of the signal quality of each antenna, which may be at least one of the above parameters, the user terminal sequentially inputs the parameter of the signal quality of each antenna into the signal quality scoring model, outputs the score of the signal quality of each antenna, and sequentially determines the priority of each antenna based on the order of the scores of each antenna.
The method comprises the steps of obtaining a large amount of sample data in advance, extracting characteristic information, marking the sample data, and creating a signal quality scoring model, wherein the characteristic information comprises parameters (RSSI, RSCP, SNR and the like) of antenna signal quality. The signal quality scoring model may be trained by using a large number of test samples, for example, the signal quality scoring model may be implemented based on at least one of a Convolutional Neural Network (CNN) model, a Deep Neural Network (DNN) model, a Recurrent Neural Network (RNN), a model, an embedding (embedding) model, a Gradient Boosting Decision Tree (GBDT) model, and a Logistic Regression (LR) model, and the trained signal quality scoring model may be obtained by training the signal quality scoring model based on labeled sample data.
Step 209: and acquiring the number of antennas corresponding to the first target network, and determining a first target antenna indicated by the number of antennas from the at least one antenna based on the priority order.
Specifically, after determining the priority of each antenna based on the order of the signal quality of each antenna, the user terminal obtains the number of antennas corresponding to the first target network, and then selects, according to the order of the priority of each antenna, an antenna corresponding to the number of antennas with a higher priority from the antennas included in the user terminal, and determines the antenna corresponding to the number of antennas as the first target antenna.
For example: when the first target network is an LTE network, assuming that the number of antennas corresponding to the LTE network is 2, the user terminal determines the priority of each antenna based on the order of the signal quality of each antenna, where the priority is described in the above example, where the order of the antenna priorities from high to low is: antenna 5, antenna 2, antenna 1, antenna 3, antenna 4, antenna 6. And the user terminal determines the antenna 5 and the antenna 2 as a first target antenna based on the antenna priority according to the number 2 of the antennas of the first target network, namely the LTE network.
Another example is: when the first target network is an NR network, assuming that the number of antennas corresponding to the NR network is 4, the user terminal determines the priority of each antenna based on the order of the signal quality of each antenna, where the order of the antenna priority from high to low is: antenna 1, antenna 2, antenna 5, antenna 6, antenna 3, antenna 4. And the user terminal determines the antenna 1, the antenna 2, the antenna 5 and the antenna 6 as a first target antenna based on the antenna priority according to the number 4 of the antennas of the first target network-NR network.
It should be noted that the number of antennas shown in this embodiment is only for convenience of description, and in practical applications, the number of antennas is determined based on actual environments.
Step 210: and switching the first target antenna to a protocol stack corresponding to the first target network, and switching a second target antenna except the first target antenna in the at least one antenna to a protocol stack corresponding to the second target network.
For the explanation of the protocol stack, reference may be made to step 103, which is not described herein again.
Specifically, after the user terminal determines, based on the priority order, a first target antenna indicated by the antenna number from the at least one antenna, and when the antenna number indicated by the first target antenna includes multiple antennas, the user terminal obtains a current protocol stack of each target antenna in the first target antenna, where the current protocol stack may be understood as a corresponding protocol stack before the target antenna is not switched.
The user terminal detects whether the current protocol stack of each target antenna is the protocol stack of the first target network; and when the current protocol stack of the target antenna is the protocol stack of the first target network, the current protocol stack of the target antenna is not switched, and when the current protocol stack of the target antenna is the protocol stack of the second target network, the current protocol stack of the target antenna is switched to the protocol stack corresponding to the first target network. And simultaneously, the user terminal switches a second target antenna except the first target antenna in the at least one antenna to a protocol stack corresponding to the second target network.
For example: as shown in fig. 9a, fig. 9a is a schematic diagram of a user terminal antenna, when the first target network is an LTE network, the user terminal determines, according to the number of antennas 2 of the first target network-LTE network, that the antenna 5 and the antenna 2 are the first target antennas based on the antenna priority. And in the non-switching process, the antenna 5 corresponds to a second network-NR protocol stack, and the antenna 2 corresponds to a first network-LTE protocol stack. Before switching a first target antenna-antenna 5 and an antenna 2, a user terminal detects a current protocol stack of the antenna 5 and the antenna 2, the current protocol stack of the antenna 5 is an NR protocol stack of a second target network, at this time, the user terminal switches the current protocol stack of the antenna 5 to a protocol stack-LTE protocol stack corresponding to the first target network, the current protocol stack of the antenna 2 is an LTE protocol stack of the first target network, and at this time, the user terminal does not switch the current protocol stack of the antenna 2.
Meanwhile, the user terminal switches a second target antenna, namely the antenna 1, the antenna 3, the antenna 4 and the antenna 6, of the at least one antenna except the first target antenna to an NR protocol stack corresponding to the second target network and the second network, and during switching, the user terminal may only need to switch the antenna to an LTE protocol stack of the first target network, namely, to an NR protocol stack corresponding to the second target network and the second network.
After the user terminal performs the handover on at least one antenna included in the ue, a schematic diagram after the handover is shown in fig. 9 b.
Optionally, after the user terminal completes switching the first target antenna to the protocol stack corresponding to the first target network, switches a second target antenna, except for the first target antenna, of the at least one antenna to the protocol stack corresponding to the second target network, the user terminal determines a first target main antenna corresponding to the first target network in the at least one antenna in the first target network, determines a second target main antenna corresponding to the second target network in the at least one antenna in the second target network, switches the main antenna corresponding to the first network to the first target main antenna, and switches the main antenna corresponding to the second network to the second target main antenna.
In the embodiment of the application, a user terminal obtains a first transmission rate of a first network and a second transmission rate of a second network in a dual-network connection state, the dual-network connection state is a network connection state in which the first network and the second network are connected simultaneously, based on the first transmission rate and the second transmission rate, a first target network with a higher priority is determined in the first network and the second network, a first target antenna is determined in at least one antenna included in the first target network, and the first target antenna is switched to a protocol stack corresponding to the first target network. The first target network with higher priority is determined based on the transmission rates of the first network and the second network, and the antennas with better performance in all the antennas are switched to the protocol stack corresponding to the first target network, so that the antenna resources are fully utilized, and the transmission performance of the transmission network is improved.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Please refer to fig. 10, which illustrates a schematic structural diagram of an antenna switching apparatus according to an exemplary embodiment of the present application. The antenna switching device may be implemented as all or part of a device in software, hardware, or a combination of both. The device 1 comprises a transmission rate acquisition module 11, a first target network determination module 12 and a protocol stack switching module 13.
A transmission rate obtaining module 11, configured to obtain a first transmission rate of a first network and a second transmission rate of a second network in a dual-network connection state, where the dual-network connection state is a network connection state in which the first network and the second network are connected simultaneously;
a target network determining module 12, configured to determine, based on the first transmission rate and the second transmission rate, a first target network with a higher priority from among the first network and the second network;
a protocol stack switching module 13, configured to determine a first target antenna in at least one antenna included in the first target antenna, and switch the first target antenna to a protocol stack corresponding to the first target network.
Optionally, the apparatus 1 includes:
a target network determining module 12, configured to determine a second target network with a lower priority from among the first network and the second network;
a protocol stack switching module 13, configured to switch a second target antenna, except for the first target antenna, of the at least one antenna to a protocol stack corresponding to the second target network.
Optionally, as shown in fig. 11, the target network determining module 12 includes:
a first difference calculation unit 121, configured to calculate a first difference between the first transmission rate and the second transmission rate when the first transmission rate is greater than the second transmission rate;
a target network determining unit 122, configured to determine that the first network is a first target network and the second network is a second target network when the first difference is greater than a first threshold.
Optionally, as shown in fig. 11, the target network determining module 12 includes:
a second difference calculation unit 123, configured to calculate a second difference between the second transmission rate and the first transmission rate when the second transmission rate is greater than the first transmission rate;
a target network determining unit 122, configured to determine that the second network is the first target network and the first network is the second target network when the second difference is greater than a second threshold.
Optionally, as shown in fig. 13, the apparatus 1 further includes:
a main antenna determining module 14, configured to determine, in the at least one antenna, a first main antenna corresponding to the first network and a second main antenna corresponding to the second network respectively when the first difference is smaller than a first threshold or the second difference is smaller than a second threshold;
a main antenna switching module 15, configured to switch the main antenna corresponding to the first network to the first main antenna, and switch the main antenna corresponding to the second network to the second main antenna.
Optionally, as shown in fig. 12, the protocol stack switching module 13 includes:
an antenna priority determining unit 131, configured to detect signal quality of each antenna of the at least one antenna, and determine a priority of each antenna based on a high-low order of the signal quality of each antenna;
a target antenna determining unit 132, configured to obtain the number of antennas corresponding to the first target network, and determine, based on the priority order, a first target antenna indicated by the number of antennas from the at least one antenna.
Optionally, as shown in fig. 13, the apparatus 1 further includes:
a service type obtaining module 16, configured to obtain a service type of a currently transmitted service in a dual-network connection state;
a target network determining module 12, configured to determine a transmission network corresponding to the service type as a first target network with a higher priority, where the transmission network is the first network or the second network, and determine a network other than the transmission network in the first network and the second network as a second target network with a lower priority.
It should be noted that, when the antenna switching apparatus provided in the foregoing embodiment executes the antenna switching method, only the division of the functional modules is illustrated, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the antenna switching apparatus and the antenna switching method provided in the above embodiments belong to the same concept, and details of implementation processes thereof are referred to in the method embodiments and are not described herein again.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In this embodiment of the present application, a user terminal obtains a first transmission rate of a first network and a second transmission rate of a second network in a dual-network connection state, where the dual-network connection state is a network connection state in which the first network and the second network are connected simultaneously, determines, based on the first transmission rate and the second transmission rate, a first target network with a higher priority in the first network and the second network, determines a first target antenna in at least one antenna included in the first target network, and switches the first target antenna to a protocol stack corresponding to the first target network. The first target network with higher priority is determined based on the transmission rates of the first network and the second network, and the antennas with better performance in all the antennas are switched to the protocol stack corresponding to the first target network, so that the antenna resources are fully utilized, and the transmission performance of the transmission network is improved.
An embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the antenna switching method according to the embodiment shown in fig. 1 to 9b, and a specific execution process may refer to specific descriptions of the embodiment shown in fig. 1 to 9b, which is not described herein again.
The present application further provides a computer program product, where at least one instruction is stored, and the at least one instruction is loaded by the processor and executes the antenna switching method according to the embodiment shown in fig. 1 to fig. 9b, and a specific execution process may refer to specific descriptions of the embodiment shown in fig. 1 to fig. 9b, which is not described herein again.
Please refer to fig. 14, which provides a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 14, the electronic device 1000 may include: at least one processor 1001, at least one network interface 1004, a user interface 1003, memory 1005, at least one communication bus 1002.
The communication bus 1002 is used to implement connection communication among these components.
The user interface 1003 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 1003 may further include a standard wired interface and a wireless interface.
The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Processor 1001 may include one or more processing cores, among other things. The processor 1001 connects various parts throughout the server 1000 using various interfaces and lines, and performs various functions of the server 1000 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1005 and calling data stored in the memory 1005. Alternatively, the processor 1001 may be implemented in at least one hardware form of Digital Signal Processing (DSP), field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 1001 may integrate one or a combination of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It is understood that the above modem may not be integrated into the processor 1001, and may be implemented by a single chip.
The Memory 1005 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer-readable medium. The memory 1005 may be used to store an instruction, a program, code, a set of codes, or a set of instructions. The memory 1005 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 1005 may alternatively be at least one memory device located remotely from the processor 1001. As shown in fig. 14, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an antenna switching application program.
In the electronic device 1000 shown in fig. 14, the user interface 1003 is mainly used as an interface for providing input for a user, and acquiring data input by the user; and the processor 1001 may be configured to invoke the antenna switching application stored in the memory 1005, and specifically perform the following operations:
acquiring a first transmission rate of a first network and a second transmission rate of a second network in a dual-network connection state, wherein the dual-network connection state is a network connection state for simultaneously connecting the first network and the second network;
determining a first target network with higher priority from the first network and the second network based on the first transmission rate and the second transmission rate;
determining a first target antenna in at least one contained antenna, and switching the first target antenna to a protocol stack corresponding to the first target network.
In one embodiment, the processor 1001, after performing the determining of the first target network with higher priority in the first network and the second network based on the first transmission rate and the second transmission rate, further performs the following operations:
determining a second target network with a lower priority from among the first network and the second network;
after the switching of a second target antenna, except the first target antenna, of the at least one antenna to a protocol stack corresponding to the second target network, the method further includes:
and switching a second target antenna except the first target antenna in the at least one antenna to a protocol stack corresponding to the second target network.
In one embodiment, the processor 1001, when performing the determining, based on the first transmission rate and the second transmission rate, a first target network with a higher priority in the first network and the second network, and a second target network with a lower priority in the first network and the second network, specifically performs the following operations:
when the first transmission rate is greater than the second transmission rate, calculating a first difference value between the first transmission rate and the second transmission rate;
when the first difference is greater than a first threshold, it is determined that the first network is a first target network and the second network is a second target network.
In one embodiment, the processor 1001, when performing the determining, based on the first transmission rate and the second transmission rate, a first target network with a higher priority in the first network and the second network, and a second target network with a lower priority in the first network and the second network, specifically performs the following operations:
when the second transmission rate is greater than the first transmission rate, calculating a second difference between the second transmission rate and the first transmission rate;
when the second difference is greater than a second threshold, determining that the second network is the first target network and the first network is the second target network.
In an embodiment, when executing the antenna switching method, the processor 1001 specifically performs the following operations:
when the first difference is smaller than a first threshold or the second difference is smaller than a second threshold, respectively determining a first main antenna corresponding to the first network and a second main antenna corresponding to the second network in the at least one antenna;
and switching the main antenna corresponding to the first network to the first main antenna, and switching the main antenna corresponding to the second network to the second main antenna.
In an embodiment, when the processor 1001 determines the first target antenna from the at least one included antenna, the following operations are specifically performed:
detecting the signal quality of each antenna in the at least one antenna, and determining the priority of each antenna based on the sequence of the signal quality of each antenna;
and acquiring the number of antennas corresponding to the first target network, and determining a first target antenna indicated by the number of antennas from the at least one antenna based on the priority order.
In one embodiment, the processor 1001, when executing the antenna switching method, further performs the following operations:
acquiring the service type of the currently transmitted service in a dual-network connection state;
the determining a first target network with a higher priority among the first network and the second network and a second target network with a lower priority among the first network and the second network includes:
determining a transmission network corresponding to the service type as a first target network with higher priority, wherein the transmission network is the first network or the second network;
and determining the network except the transmission network in the first network and the second network as the second target network with lower priority.
In the embodiment of the application, a user terminal obtains a first transmission rate of a first network and a second transmission rate of a second network in a dual-network connection state, the dual-network connection state is a network connection state in which the first network and the second network are connected simultaneously, based on the first transmission rate and the second transmission rate, a first target network with a higher priority is determined in the first network and the second network, a first target antenna is determined in at least one antenna included in the first target network, and the first target antenna is switched to a protocol stack corresponding to the first target network. The first target network with higher priority is determined based on the transmission rates of the first network and the second network, and the antennas with better performance in all the antennas are switched to the protocol stack corresponding to the first target network, so that the antenna resources are fully utilized, and the transmission performance of the transmission network is improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by a computer program, which may be stored in a computer readable storage medium and executed by a computer to implement the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory or a random access memory.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.

Claims (9)

1. An antenna switching method, the method comprising:
acquiring a first transmission rate of a first network and a second transmission rate of a second network in a dual-network connection state, wherein the dual-network connection state is a network connection state for simultaneously connecting the first network and the second network;
determining a first target network with higher priority from the first network and the second network based on the first transmission rate and the second transmission rate;
determining a first target antenna in at least one contained antenna, and switching the first target antenna to a protocol stack corresponding to the first target network;
wherein the determining a first target antenna among the at least one included antenna comprises:
detecting the signal quality of each antenna in the at least one antenna, and determining the priority of each antenna based on the sequence of the signal quality of each antenna;
and acquiring the number of antennas corresponding to the first target network, and determining a first target antenna indicated by the number of antennas in the at least one antenna based on the priority order.
2. The method of claim 1, wherein after determining a first target network with a higher priority from the first network and the second network based on the first transmission rate and the second transmission rate, the method further comprises:
determining a second target network with a lower priority from among the first network and the second network;
after the switching the first target antenna to the protocol stack corresponding to the first target network, the method further includes:
and switching a second target antenna except the first target antenna in the at least one antenna to a protocol stack corresponding to the second target network.
3. The method of claim 2, wherein determining a first target network of higher priority among the first network and the second network and a second target network of lower priority among the first network and the second network based on the first transmission rate and the second transmission rate comprises:
when the first transmission rate is larger than the second transmission rate, calculating a first difference value between the first transmission rate and the second transmission rate;
when the first difference is greater than a first threshold, it is determined that the first network is a first target network and the second network is a second target network.
4. The method of claim 2, wherein determining a first target network of higher priority among the first network and the second network and a second target network of lower priority among the first network and the second network based on the first transmission rate and the second transmission rate comprises:
when the second transmission rate is greater than the first transmission rate, calculating a second difference between the second transmission rate and the first transmission rate;
when the second difference is greater than a second threshold, determining that the second network is the first target network and the first network is the second target network.
5. The method of claim 4, further comprising:
when a first difference value is smaller than a first threshold value or the second difference value is smaller than a second threshold value, respectively determining a first main antenna corresponding to the first network and a second main antenna corresponding to the second network in the at least one antenna, where the first difference value is a difference value between the first transmission rate and the second transmission rate when the first transmission rate is greater than the second transmission rate;
and switching the main antenna corresponding to the first network to the first main antenna, and switching the main antenna corresponding to the second network to the second main antenna.
6. The method of claim 2, further comprising:
acquiring the service type of the currently transmitted service in a dual-network connection state;
the determining a first target network with a higher priority among the first network and the second network and a second target network with a lower priority among the first network and the second network includes:
determining a transmission network corresponding to the service type as a first target network with higher priority, wherein the transmission network is the first network or the second network;
and determining the networks except the transmission network in the first network and the second network as the second target network with lower priority.
7. An antenna switching apparatus, comprising:
a transmission rate obtaining module, configured to obtain a first transmission rate of a first network and a second transmission rate of a second network in a dual-network connection state, where the dual-network connection state is a network connection state in which the first network and the second network are connected simultaneously;
a target network determination module configured to determine a first target network with a higher priority from among the first network and the second network based on the first transmission rate and the second transmission rate;
and the protocol stack switching module is used for determining a first target antenna in the at least one antenna and switching the first target antenna to a protocol stack corresponding to the first target network.
8. A computer storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor and to perform the method steps according to any one of claims 1 to 6.
9. An electronic device, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1 to 6.
CN201910850103.XA 2019-09-10 2019-09-10 Antenna switching method and device, storage medium and electronic equipment Active CN110649952B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211273481.4A CN115622601A (en) 2019-09-10 2019-09-10 Antenna switching method and device, storage medium and electronic equipment
CN201910850103.XA CN110649952B (en) 2019-09-10 2019-09-10 Antenna switching method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910850103.XA CN110649952B (en) 2019-09-10 2019-09-10 Antenna switching method and device, storage medium and electronic equipment

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202211273481.4A Division CN115622601A (en) 2019-09-10 2019-09-10 Antenna switching method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN110649952A CN110649952A (en) 2020-01-03
CN110649952B true CN110649952B (en) 2022-11-08

Family

ID=68991736

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202211273481.4A Pending CN115622601A (en) 2019-09-10 2019-09-10 Antenna switching method and device, storage medium and electronic equipment
CN201910850103.XA Active CN110649952B (en) 2019-09-10 2019-09-10 Antenna switching method and device, storage medium and electronic equipment

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202211273481.4A Pending CN115622601A (en) 2019-09-10 2019-09-10 Antenna switching method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (2) CN115622601A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111669207B (en) * 2020-06-22 2022-07-12 广东虹勤通讯技术有限公司 Antenna switching method, device, terminal and storage medium
CN116155331A (en) * 2021-11-23 2023-05-23 中兴通讯股份有限公司 Antenna control method and device, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014114082A1 (en) * 2013-01-24 2014-07-31 华为技术有限公司 Method for controlling offloading, ue, network device and server
WO2015148816A1 (en) * 2014-03-28 2015-10-01 All Purpose Networks LLC Methods and systems of an all purpose broadband network
CN107517482A (en) * 2017-09-28 2017-12-26 北京小米移动软件有限公司 Data transmission method and device
CN107734586A (en) * 2017-09-28 2018-02-23 广东欧珀移动通信有限公司 The switching method and mobile terminal of antenna
WO2018084646A1 (en) * 2016-11-03 2018-05-11 Lg Electronics Inc. Method and apparatus for transmitting and receiving data in a wireless communication system
CN109361444A (en) * 2018-11-30 2019-02-19 维沃移动通信有限公司 A kind of switching method and terminal device of transmitting antenna
CN110098857A (en) * 2019-03-29 2019-08-06 华为技术有限公司 The antenna switching method and device of terminal device
CN110149132A (en) * 2019-07-08 2019-08-20 维沃移动通信有限公司 A kind of switching method and terminal device of transmitting antenna

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015047322A1 (en) * 2013-09-27 2015-04-02 Intel Corporation Techniques for switching between wireless networks
CN110546975B (en) * 2017-03-17 2021-06-04 三星电子株式会社 Radio access network notification of area update failure

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014114082A1 (en) * 2013-01-24 2014-07-31 华为技术有限公司 Method for controlling offloading, ue, network device and server
WO2015148816A1 (en) * 2014-03-28 2015-10-01 All Purpose Networks LLC Methods and systems of an all purpose broadband network
WO2018084646A1 (en) * 2016-11-03 2018-05-11 Lg Electronics Inc. Method and apparatus for transmitting and receiving data in a wireless communication system
CN107517482A (en) * 2017-09-28 2017-12-26 北京小米移动软件有限公司 Data transmission method and device
CN107734586A (en) * 2017-09-28 2018-02-23 广东欧珀移动通信有限公司 The switching method and mobile terminal of antenna
CN109361444A (en) * 2018-11-30 2019-02-19 维沃移动通信有限公司 A kind of switching method and terminal device of transmitting antenna
CN110098857A (en) * 2019-03-29 2019-08-06 华为技术有限公司 The antenna switching method and device of terminal device
CN110149132A (en) * 2019-07-08 2019-08-20 维沃移动通信有限公司 A kind of switching method and terminal device of transmitting antenna

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"多运营商共享5G网络技术方案研究与难点分析";刘亚;《光通信研究》;20190725;全文 *

Also Published As

Publication number Publication date
CN115622601A (en) 2023-01-17
CN110649952A (en) 2020-01-03

Similar Documents

Publication Publication Date Title
US8830858B2 (en) Utilizing scanned radio access technology information
US10064065B2 (en) Downlink direction remote radio unit selection decision method and apparatus
US20100135214A1 (en) Wireless communication system and method of wireless communication
CN110383870A (en) A kind of processing method and terminal of radio frequency resource
CN112929926B (en) Sending method and receiving method of adjacent cell CSI report and related equipment
CN103987085A (en) Inter-cell mobility load balance method and mobility load balance device
CN107615819A (en) The system and method that data speed for wireless device is lifted
CN109729556B (en) Link connection method and related device
CN110649952B (en) Antenna switching method and device, storage medium and electronic equipment
CN110178408A (en) Cell history in wireless communication system uses
WO2021008492A1 (en) Switching method and communication apparatus
CN111148137B (en) Data transmission method and device, storage medium and terminal
CN109600808B (en) Cell selection method, terminal and network side equipment
CN109640379B (en) Link aggregation implementation method and related product
US20230300703A1 (en) Cell switching method and apparatus, storage medium, and electronic device
US11729710B2 (en) Greedy user equipment data transport network selection
CN109617802B (en) Link aggregation implementation method and related product
CN109982411B (en) Method and device for selecting terminal access network and terminal thereof
CN112087784B (en) Pilot frequency switching method and device based on uplink coverage
CN106686668A (en) Selection method of voice fallback cell and apparatus thereof
WO2024016884A1 (en) Method and apparatus for determining static state of terminal, and chip, terminal and storage medium
CN109041251A (en) Accidental access method, device, base station, terminal and computer readable storage medium
CN108029045A (en) Method for optimizing video, user equipment and the network equipment
CN113784403B (en) Cell switching method and device
CN109587765B (en) Link aggregation implementation method and related product

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