Antenna switching method, device, storage medium and electronic device
By obtaining the dual network transmission rate in the user terminal and determining the target network with higher priority, switching the protocol stack of the antenna to the target network, the problem of inability to effectively improve the downlink transmission performance of the transmission network in the prior art is solved, and more efficient antenna resource utilization and transmission performance improvement is achieved.
Patent Information
- Application Number
- CN202211273481.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-10
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2039-09-10
AI Technical Summary
In the fifth-generation communication system network, when the user terminal is in a dual-network connected state and the network load occurs in the LTE or NR network, the prior art cannot effectively improve the downlink transmission performance of the transmission network by automatically switching the main antenna to the antenna under the same network with better signal quality.
By obtaining the transmission rates of the first and second networks in the dual network connection state, a target network with a higher priority is determined, and the target antenna is determined in at least one antenna, and it is switched to the protocol stack corresponding to the target network.
By making full use of antenna resources, the transmission performance of the transmission network is improved, especially when downlink data transmission is dense.
Smart Images

Figure CN115622601B_ABST
Abstract
Description
[0001] This application is a divisional application of the Chinese patent application filed with the China Patent Office on September 10, 2019, with application number 201910850103.X and application name “Antenna switching method, device, storage medium and electronic device”, all contents of which are incorporated by reference in this application. Technical Field
[0002] The present application relates to the field of communication technology, and in particular to an antenna switching method, device, storage medium and electronic device. Background Art
[0003] With the rapid development of communication technology, the fifth-generation communication system network has become increasingly mature. In the process of the development of the fifth-generation communication system network, communication operators mostly use non-standalone networking (NSA) for deployment. When the user terminal communicates with the opposite device, such as a base station, in the NSA networking mode, the user terminal usually needs to work in a dual network connection state, that is, the dual network connection mode of Long Term Evolution (LTE) and 5G New Radio (NR) is used for network communication. In the process of network communication, the user terminal will cause the LTE or NR network to have a network load due to objective factors (environmental changes, user terminal orientation, user holding, etc.) or subjective factors (increase in LTE or NR network service data, etc.). At this time, the user terminal will switch the antenna corresponding to the transmission network with network load.
[0004] At present, the user terminal will automatically switch the main antenna of the transmission network with the current network load to the antenna of the same transmission network with better signal quality. For example, see Figure 1 , Figure 1 This is a schematic diagram of antenna distribution of user terminals in actual applications. There are 6 antennas in the figure. Antenna 1 and antenna 2 support LTE network, antenna 3, antenna 4, antenna 5, and antenna 6 support NR network. The current main antenna of LTE network is antenna 2, and the main antenna corresponding to NR network is antenna 4. When the LTE network has network load, the user terminal automatically switches antenna 1 to antenna 2 with better signal quality in the same LTE network. When the NR network has network load, antenna 3 has better quality among antennas 3, antenna 4, antenna 5, and antenna 6, and the user terminal automatically switches antenna 4 to antenna 4 with better signal quality in the same NR network. However, since the main antenna is responsible for downlink reception and uplink transmission of data, 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 downlink transmission performance of the transmission network cannot be improved by switching the main antenna of the transmission network, resulting in low transmission performance of the transmission network. Summary of the invention
[0005] The embodiments of the present application provide an antenna switching method, device, storage medium and electronic device, which can improve the transmission performance of the transmission network. The technical solution is as follows:
[0006] In a first aspect, an embodiment of the present application provides an antenna switching method, the method comprising:
[0007] Acquire 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 in which the first network and the second network are connected simultaneously;
[0008] Based on the first transmission rate and the second transmission rate, determining a first target network with a higher priority between the first network and the second network;
[0009] A first target antenna is determined among the at least one antenna included, and the first target antenna is switched to a protocol stack corresponding to the first target network.
[0010] In a second aspect, an embodiment of the present application provides an antenna switching device, the device comprising:
[0011] a transmission rate acquisition module, used to acquire 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 in which the first network and the second network are connected simultaneously;
[0012] a target network determining module, configured to determine a first target network with a higher priority between the first network and the second network based on the first transmission rate and the second transmission rate;
[0013] The protocol stack switching module is used to determine a first target antenna among at least one antenna included, and switch the first target antenna to a protocol stack corresponding to the first target network.
[0014] In a third aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.
[0015] 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, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps.
[0016] The beneficial effects brought about by the technical solutions provided by some embodiments of the present application include at least:
[0017] In one or more embodiments of the present application, the user terminal obtains the first transmission rate of the first network and the second transmission rate of the second network in a dual network connection state, wherein the dual network connection state is a network connection state in which the first network and the second network are simultaneously connected. 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, and the first target antenna is switched to the protocol stack corresponding to the first target network. By determining a first target network with a higher priority based on the transmission rates of the first network and the second network, and switching the antenna with better performance among all the antennas included to the protocol stack corresponding to the first target network, antenna resources are fully utilized and the transmission performance of the transmission network is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 It is a schematic diagram of the distribution of antennas of a user terminal mentioned in the background technology section of this application;
[0020] Figure 2 This is a schematic diagram of an antenna switching scenario architecture provided in an embodiment of the present application;
[0021] Figure 3 is a flowchart of an antenna switching method provided in an embodiment of the present application;
[0022] Figure 4 is a flowchart of another antenna switching method provided in an embodiment of the present application;
[0023] Figure 5a is a schematic diagram of a user interface involved in an antenna switching method provided in an embodiment of the present application;
[0024] Figure 5b It is a schematic diagram of a scene architecture corresponding to a cloud gaming scene involved in an antenna switching method provided in an embodiment of the present application;
[0025] Figure 6 is a schematic diagram of a user terminal interface involved in the antenna switching method provided in an embodiment of the present application;
[0026] Figure 7 is a schematic diagram of another user terminal interface involved in the antenna switching method provided in an embodiment of the present application;
[0027] Figure 8a is a schematic diagram of a user terminal antenna distribution involved in the antenna switching method provided in an embodiment of the present application;
[0028] Figure 8b is a schematic diagram of antenna switching of a user terminal involved in the antenna switching method provided in an embodiment of the present application;
[0029] Figure 9a is a schematic diagram of another user terminal antenna distribution involved in the antenna switching method provided in an embodiment of the present application;
[0030] Figure 9b is a schematic diagram of another antenna switching of a user terminal involved in the antenna switching method provided in an embodiment of the present application;
[0031] Fig.10 is a structural schematic diagram of an antenna switching device provided in an embodiment of the present application;
[0032] Fig.11 is a structural diagram of a target network determination module provided in an embodiment of the present application;
[0033] Fig.12 It is a structural diagram of a protocol stack switching module provided in an embodiment of the present application;
[0034] Fig.13 This is a schematic diagram of the structure of another antenna switching device provided in an embodiment of the present application.
[0035] Fig.14 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0036] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0037] In the description of the present application, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In the description of the present application, it should be noted that, unless otherwise clearly specified and limited, "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood in specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are an "or" relationship.
[0038] The present application is described in detail below with reference to specific embodiments.
[0039] See also Figure 2 , is a schematic diagram of a scenario of an antenna switching system provided in an embodiment of the present application. Figure 1 As shown, 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.
[0040] The user terminal 100 may be an electronic device that provides voice calls and / or data connectivity for the user, and may include, for example, a handheld device with wireless connection function, or a processing device connected to a wireless modem. The electronic device includes but is not limited to: a mobile terminal device, a handheld device, a personal computer, a tablet computer, a vehicle-mounted device, a computing device, or other processing devices connected to a wireless modem.
[0041] The LTE base station 110 and the NR base station 120 are electronic devices in a wireless access network, wherein the term "base station" refers to any component (or a collection of components) configured to provide wireless access to a network, such as a base station (BS) or a sending / receiving point, a macro cell, a home base station or other equipment supporting wireless functions. The base station can provide wireless access according to one or more wireless communication protocols, such as 5G New Radio (NR), Long Term Evolution (LTE), enhanced LTE, High Speed Packet Access (HSPA) and other wireless communication protocols. When a base station provides wireless access according to the LTE protocol, the base station can be called an LTE base station, and when a base station provides wireless access according to the NR protocol, the base station can be called an NR base station.
[0042] The core network 130 may include multiple core network devices, such as gateways and switches. The functions of the core network are mainly to provide user connection, user management, and service carrying. At the same time, the core network also serves as a bearer network to provide users with an interface to the external network.
[0043] The user terminal 100 is simultaneously connected to the LTE base station 110 and the NR base station 120 to establish a communication connection with the LTE network and the NR network. After the communication connection is established, the user terminal is in a dual network connection state.
[0044] Among them, the control plane data is independently carried by the LTE network, and the transmission and 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 sent to the LTE base station 110 through the antenna on the user terminal 100 that is connected to the LTE network, and the LTE base station 110 sends the control plane data to the core network 130. At the same time, when there is control plane data on the core network 130 that needs to be sent to the user terminal 100, the core network 130 sends the control plane data to the LTE base station 110, and the LTE base station 110 sends the control plane data to the user terminal 100, and the user terminal 100 receives the control plane data from the LTE base station 110 through the antenna on the user terminal 100 that is connected to the LTE network. The control plane data may be data such as control signaling.
[0045] The user plane data is carried by the LTE network and the NR network. When the user terminal 100 transmits the user plane data, the user plane data can be sent to the LTE base station through the antenna connected to the LTE network on the user terminal 100, and / or the user plane data can be sent to the NR base station through the antenna connected to the NR network. The LTE base station / NR base station sends the user plane data to the core network 130. At the same time, when there is user plane data on the core network 130 that needs to be sent to the user terminal 100, 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. The user terminal 100 receives the user plane data of the LTE base station through the antenna connected to the LTE network on the user terminal 100, and / or receives the user plane data of the NR base station through the antenna connected to the NR network. The user plane data can be service data, etc.
[0046] In this embodiment, the antenna switching system adopts the NSA independent networking mode, and the user terminal 100 can detect the first transmission rate corresponding to the data transmission in the LTE network and the second transmission rate corresponding to the data transmission in the NR network.
[0047] 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, and when the first difference is greater than a first threshold, the LTE network is determined to be the first target network and the NR network is the second target network; 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, and when the second difference is greater than a second threshold, the NR network is determined to be the first target network and the LTE network is the second target network.
[0048] The user terminal 100 detects the signal quality of each antenna among the at least one antenna included, determines the priority of each antenna based on the order of the signal quality of each antenna, and obtains the number of antennas corresponding to the first target network, and determines the first target antenna indicated by the number of antennas from the at least one antenna based on the order of the priority. The user terminal switches the first target antenna to the protocol stack corresponding to the first target network, and switches the second target antenna other than the first target antenna among the at least one antenna to the protocol stack corresponding to the second target network.
[0049] In an 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, wherein the dual network connection state is a network connection state in which the first network and the second network are simultaneously connected. 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, and the first target antenna is switched to a protocol stack corresponding to the first target network. By determining a first target network with a higher priority based on the transmission rates of the first network and the second network, and switching the antenna with better performance among all antennas included to a protocol stack corresponding to the first target network, antenna resources are fully utilized and the transmission performance of the transmission network is improved.
[0050] In one embodiment, Figure 3 As shown, an antenna switching method is proposed, which can be implemented by a computer program and can be run on an antenna switching device based on a von Neumann system. The computer program can be integrated into an application or run as an independent tool application.
[0051] Specifically, the antenna switching method includes:
[0052] Step 101: Acquire 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 in which the first network and the second network are connected simultaneously.
[0053] The dual network connection state can be understood as the user terminal being connected to two different communication networks or different communication frequency bands of the same communication network. The communication network can be a wireless communication network, and the wireless communication network includes but is not limited to a cellular network, a wireless local area network, an infrared network, a dedicated network, a 5G network or a future evolving network, etc.
[0054] For the convenience of description, a 5G network is applied to this embodiment for detailed description below.
[0055] The 5G network is the fifth generation communication system network. The networking modes of the 5G network include non-standalone networking (NSA) and standalone networking (SA). In this embodiment, the NSA mode is preferred. When the user terminal communicates with the base station in the NSA mode, the user terminal needs to work in a dual network connection state, that is, the dual network connection mode of Long Term Evolution (LTE) and 5G New Radio (NR) is used for network communication. At this time, 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. The first network can be an LTE network and the second network can be an NR network; or the first network can be an NR network and the second network can be an LTE network.
[0056] The transmission rate refers to the rate at which data is transmitted from one point to another, such as the rate at which user data is transmitted from a network node-user terminal to a network node-server, or the rate at which streaming media data is downloaded from a network node-server to a network node-user terminal. In actual applications, the transmission rate includes an uplink rate and a downlink rate.
[0057] The downlink rate is generally the rate at which data is obtained from the host on the network. The use of various network software must obtain data from the network. For example, when a browser opens a website, it must download data from the server of the website, which will generate a certain data download rate.
[0058] Upload rate refers to the upstream flow of network data per unit time. Network data transmission is divided into two parts: sending data and receiving data. Upload is sending data to the outside. Download is receiving data from the outside. The upload rate determines the speed of sending data per unit time, which is restricted by network bandwidth and device performance.
[0059] It should be noted that, in this embodiment, the transmission rate is not specifically limited, and may be one of the uplink transmission rate and the downlink rate, or may include the uplink transmission rate and the downlink rate.
[0060] In this embodiment, the transmission rate of data on the first network corresponds to a first transmission rate, and the transmission rate of data on the second network corresponds to a second transmission rate.
[0061] Specifically, the user terminal is in the dual network connection state, connected to the first network and the second network at the same time, and the data traffic flowing through the first network and the second network is counted respectively. According to the corresponding data traffic in a certain period of time, the transmission rate of the period of time can be calculated, and the transmission rate is calculated by the ratio of the data traffic to the time according to a statistical method, that is, the transmission rate under the corresponding network can be obtained.
[0062] Specifically, the user terminal can count the data traffic flowing through the first network based on a preset time period (for example, 3 minutes), calculate the ratio of the data traffic within the preset time period to the preset time (for example, 3 minutes), and obtain the first transmission rate corresponding to the first network; the user terminal can also count the data traffic flowing through the second network based on a preset time period (for example, 3 minutes), calculate the ratio of the data traffic within the preset time period to the preset time (for example, 3 minutes), and obtain the second transmission rate corresponding to the second network.
[0063] Optionally, in order to reduce calculation errors and improve the accuracy of the transmission rate. When obtaining the first transmission rate and the second transmission rate, the user terminal may detect the data traffic multiple times within a corresponding predetermined time period (for example, within 3 minutes), for example, it may detect once every 200 milliseconds, and then determine the transmission rate within the 200 milliseconds, and then use a statistical method to calculate the transmission rates of the multiple detections to obtain a statistical value, which is the transmission rate. The calculation may be to calculate the average value, median value, variance, maximum likelihood value, etc. It may also be based on a predetermined statistical strategy to perform multiple detections, for example: according to the regression method, first detect once every 10 milliseconds, then detect once every 20 milliseconds, then detect once every 10 milliseconds, then detect once every 20 milliseconds, and so on.
[0064] Step 102: Based on the first transmission rate and the second transmission rate, determine a first target network with a higher priority between the first network and the second network.
[0065] The first target network can be understood as a transmission network with a higher network transmission priority when the user terminal 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, and a higher network load.
[0066] The second target network can be understood as a transmission network with a lower network transmission priority when the user terminal is in a dual network connection state. In this embodiment, it can be understood that the second target network has a lower traffic volume, less data to be transmitted, and a lower network load than the first target network.
[0067] Specifically, the user terminal pre-stores a correspondence table of preset transmission rates and network priorities, which can be understood as the user terminal corresponding to different preset transmission rate and network priority correspondence tables in different transmission networks, such as in the first network, the transmission rate and network priority correspondence table 1, and in the second network, the transmission rate and network priority correspondence table 2. In the dual network connection state, after the user terminal obtains the first transmission rate of the first network and the second transmission rate of the second network respectively, it can determine the priority of the transmission rate in the current transmission network based on the first transmission rate and the second transmission rate in the corresponding relationship table of different networks. Then, based on the comparison of 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 a high priority is determined as the first target network, and the transmission network corresponding to the transmission rate with a low priority is determined as the second target network. The priority of the first target network is higher than that of the second target network.
[0068] In a specific application scenario, the user terminal obtains a first transmission rate A corresponding to the first network-LTE network in a dual network connection state, and a second transmission rate B corresponding to the second network-NR network. The correspondence between the -LTE network of the first network and the network priority can be in the form shown in Table 1, where the network priority is: 1>2>···>n, where n is a natural number, as shown in Table 1:
[0069] Table 1
[0070] Transfer rate Network Priority s1-s2 1 s2-s3 2 ··· ···
[0071] After acquiring the first transmission rate A, the user terminal searches the above table 1 for the network priority corresponding to the first transmission rate A. For example, the network priority corresponding to the first transmission rate A is 1.
[0072] The correspondence between the -NR network of the second network and the network priority may be in the form shown in Table 2, where the network priority is: 1>2>...>n, where n is a natural number, as shown in Table 2:
[0073] Table 2
[0074] Transfer rate Network Priority S1-S2 1 S2-S3 2 ··· ···
[0075] After acquiring the second transmission rate B, the user terminal searches the above table 1 for the network priority corresponding to the second transmission rate B. For example, the network priority corresponding to the second transmission rate B is 2.
[0076] Among them, the network priority corresponding to the first transmission rate A is 1, which is 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 the first target network with a higher priority, and determines the second network corresponding to the second transmission rate B as the second target network with a higher priority.
[0077] Optionally, the network priority correspondence table pre-stored in the user terminal may also include communication environment parameters such as temperature, physical quantities (current, voltage, magnetic flux, etc.), user terminal thread resource occupancy, etc. When the user terminal obtains the transmission speed under the transmission network, it can obtain the above-mentioned communication environment parameters based on the sensors, processors and other electronic components on the user terminal, and determine the network priority corresponding to the current transmission network based on the pre-stored network priority correspondence table.
[0078] Step 103: Determine a first target antenna from the at least one antenna included, and switch the first target antenna to a protocol stack corresponding to the first target network.
[0079] The antenna is integrated on the user terminal, and can convert the electrical signal transmitted by the user terminal into electromagnetic waves to radiate in a specific direction in space, and can also receive electromagnetic waves from 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.
[0080] The protocol stack refers to the sum of all the protocols on the user terminal. When communication devices communicate with each other (for example, the user terminal communicates with the access network device-the base station), it is actually carried out by transferring data packets at each protocol layer, and each protocol layer constitutes a protocol stack. Among them, in order for data to be transmitted between communication devices, the participants of the communication devices must follow the same communication rules. This set of rules is called a protocol. Usually, the protocol stack can be divided into a user plane protocol stack and a control plane protocol stack according to the type of message transmitted. The object carried by the control plane protocol stack is control signaling; the object carried by the user plane protocol stack is user data. When using non-independent networking (NSA) for 5G networking, control signaling is usually transmitted through the LTE protocol stack, and user data can be transmitted jointly through the LTE protocol stack and the NR protocol stack.
[0081] Among them, the antenna whose current protocol stack on the user terminal is the LTE protocol stack can transmit data through the LTE network, and the antenna whose current protocol stack on the user terminal is the NR protocol stack can transmit data through the NR network.
[0082] Specifically, the user terminal detects the transmission state parameters of all antennas included, and the transmission state parameters include the signal transmission quality, transmission power, data packet loss rate, capacitance value, etc. of each antenna, and evaluates all antennas included to obtain the evaluation results of each antenna. For example, after the user terminal detects the signal quality of all antennas included, it scores each antenna based on a preset evaluation rule. The user terminal selects an antenna with a higher score from each antenna as the first target antenna based on the number of antennas of the first target network and the order of the scores of each antenna, and then switches the target antenna to the protocol stack corresponding to the first target network. The user terminal uses the antenna other than the first target antenna among the at least one antenna as the second target antenna, and switches the second target antenna to the protocol stack corresponding to the second target network.
[0083] Optionally, the preset evaluation rule may be to set weights for various transmission state parameters of the antenna, such as setting weights for the signal quality, transmission power, data packet loss rate, and capacitance value of each antenna, and then scoring each transmission state parameter, and calculating the product of the score of each transmission state parameter and the weight. It may also be based on one or at least one transmission state parameter for evaluation, such as based on signal quality, etc.
[0084] In an 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, wherein the dual network connection state is a network connection state in which the first network and the second network are simultaneously connected. 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, and the first target antenna is switched to a protocol stack corresponding to the first target network. By determining a first target network with a higher priority based on the transmission rates of the first network and the second network, and switching the antenna with better performance among all antennas included to a protocol stack corresponding to the first target network, antenna resources are fully utilized and the transmission performance of the transmission network is improved.
[0085] See also Figure 4 , Figure 4 This is a flow chart of another embodiment of an antenna switching method proposed in this application. Specifically:
[0086] Step 201: Acquire 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 in which the first network and the second network are connected simultaneously.
[0087] For details, please refer to step 101, which will not be repeated here.
[0088] 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.
[0089] The first difference refers to the difference between the first transmission rate and the second transmission rate. The user terminal uses the first difference to measure the transmission status of the transmission network data. Generally, the larger the first value is, the more traffic on the first network, the more data to be transmitted, the higher the network load, etc. In this embodiment, it can be understood that when the total amount of data transmitted by the user terminal through the first network within a certain period of time is large, the user terminal will adaptively adjust the transmission speed of the data transmission of the first network. When the total amount of data transmitted by the user terminal through the first network within this period of time is greater than that of the second network, that is, the first transmission rate received by the user terminal within this period of time is greater than the second transmission rate.
[0090] Specifically, after obtaining the first transmission rate of the first network and the second transmission rate of the second network, the user terminal determines the transmission rate size of the first transmission rate and the second transmission rate. When the first transmission rate is greater than the second transmission rate, the user terminal calculates the difference between the first transmission rate and the second transmission rate, and uses the difference as the first difference.
[0091] In a specific implementation scenario, the user terminal is networked using the NSA networking mode, and the user terminal is in a dual network connection state, connected to the first network and the second network at the same time, the first network is an LTE network, and the second network is an NR network. When the user terminal needs to transmit a large amount of control signaling within a certain period of time, the control signaling will be transmitted through the LTE network. During this period of time, the user terminal adaptively adjusts the first transmission speed of data transmission under the first network-LTE network to reduce the delay of data transmission and shorten the transmission time. During this period of time, the first transmission rate detected by the user terminal will be greater than the second transmission rate. When the first transmission rate is greater than the second transmission rate, the user terminal calculates the difference between the first transmission rate and the second transmission rate, and uses the difference as the first difference.
[0092] Step 203: When the first difference is greater than a first threshold, determine that the first network is a first target network and the second network is a second target network.
[0093] The threshold value refers to a threshold value of a certain field, state or system, also known as a critical value. In this embodiment, the first threshold value can be understood as a threshold value of the first difference. When the first difference value exceeds the first threshold value, the data transmission volume of the first network on the current user terminal is large, and the first network carries the main transmission service.
[0094] The first threshold is determined by analyzing a large amount of sample data collected under the first network, wherein the sample data includes data such as the first transmission rate, transmission delay, and packet loss rate, and the threshold value of the optimal transmission rate under the first network is determined.
[0095] Specifically, after the user terminal obtains the first difference between the first transmission rate and the second transmission rate through calculation, it determines the size of the first difference and the first threshold. When the first difference is greater than the first threshold, that is, the first network of the current user terminal carries the main transmission service, the user terminal determines the first network as the first target network and the second network as the second target network. The priority of the first target network is higher than the priority of the second target network.
[0096] Step 204: When the second transmission rate is greater than the first transmission rate, calculate a second difference between the second transmission rate and the first transmission rate.
[0097] The second difference refers to the difference between the second transmission rate and the first transmission rate. The user terminal uses the second difference to measure the transmission status of the transmission network data. Generally, the larger the second value is, the more traffic on the second network, the more data to be transmitted, the higher the network load, etc. In this embodiment, it can be understood that when the total amount of data transmitted by the user terminal through the second network within a certain period of time is large, the user terminal will adaptively adjust the transmission speed of the data transmission of the second network. When the total amount of data transmitted by the user terminal through the second network within this period of time is greater than that of the second network, that is, the second transmission rate received by the user terminal within this period of time is greater than the first transmission rate.
[0098] Specifically, after obtaining the first transmission rate of the first network and the second transmission rate of the second network, the user terminal determines the transmission rate size of the first transmission rate and the second transmission rate. When the first transmission rate is greater than the second transmission rate, the user terminal calculates the difference between the first transmission rate and the second transmission rate, and uses the difference as the first difference.
[0099] In a specific implementation scenario, the user terminal adopts the NSA networking mode for networking. The user terminal is in a dual network connection state, and is connected to a first network and a second network at the same time. The first network is an LTE network, and the second network is an NR network. Figure 5aIt is a schematic diagram of the user terminal display interface. The user touches the "cloud game" application on the user terminal display interface by finger touch to start the "cloud game". Usually, large-scale online games (such as 3D online games) will occupy a lot of computing resources. Cloud game operators deploy "cloud games" (3D online games) on cloud servers and transmit game screens to user terminals in real time through the transmission network. Figure 5b This is a scenario architecture diagram for running large-scale cloud games based on a cloud platform. The cloud game is deployed on Figure 5b On the cloud server shown, in order to reduce the picture delay during the cloud game transmission process, an NR network with a higher transmission rate will be used. The user operates the "cloud game" on the user terminal. During the game, the user terminal will transmit the user's game operation information to the cloud server in real time through the second network-NR network. During the user's "cloud game" time, the user terminal will adaptively adjust the second transmission speed of the data transmission under the second network-NR network to reduce the data transmission delay and shorten the transmission time. During this period of time, the user terminal can detect that the second transmission rate is greater than the first transmission rate. When the second transmission rate is greater than the first transmission rate, the user terminal calculates the difference between the second transmission rate and the first transmission rate, and uses the difference as the second difference.
[0100] Step 205: When the second difference is greater than a second threshold, determine that the second network is the first target network and the first network is the second target network.
[0101] The second threshold value can be understood as a threshold value of the second difference. When the second difference value exceeds the second threshold value, it means that the data transmission volume of the second network on the current user terminal is large, and the second network carries the main transmission service.
[0102] Specifically, after the user terminal obtains the second difference between the second transmission rate and the first transmission rate through calculation, it determines the size of the second difference and the second threshold. When the second difference is greater than the second threshold, that is, the second network of the current user terminal carries the main transmission service, the user terminal determines the second network as the first target network and the second network as the first target network. The priority of the first target network is higher than the priority of the second target network.
[0103] For example: Taking the above-mentioned cloud gaming scenario as an example, when the game runs to a complex game team battle scene, it will involve complex game screen transmission and reception. Usually, a large number of game frame images will be received or transmitted within a certain period of time. These frame images will be transmitted through the second network-NR network. The second network-NR network carries the main transmission service-game service. At this time, after the user terminal obtains the second transmission rate and the first transmission rate, the second difference will reach the threshold value of the second difference, that is, the second threshold value, after calculation.
[0104] In a feasible implementation, when the user terminal is in a dual network connection state, the service type of the currently transmitted service determines the transmission network corresponding to the service type as a first target network with a higher priority, the transmission network is the first network or the second network, and the first network and the second network other than the transmission network are determined as the second target network with a lower priority.
[0105] Specifically, the user terminal can formulate different network transmission strategies for services of different service types. For example, the network transmission strategy for service A can be to transmit service data through the first network-LTE network, the network transmission strategy for service B can be to transmit service data through the second network-NR network, and the network transmission strategy for service C can be to perform main 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.
[0106] The user terminal pre-stores the correspondence between the service type and the transmission network. In the dual network connection state, the user terminal searches for the transmission network corresponding to the current service based on the service type corresponding to the current service, and determines the transmission network corresponding to the service type as the first target network with a higher priority.
[0107] In a specific implementation scenario, the user terminal is in a dual network connection state, connected to a first network and a second network at the same time, the first network is an LTE network, and the second network is an NR network. When a user uses the VoLTE service on the user terminal to make a high-definition voice call, such as Figure 6 As shown, Figure 6It is a schematic diagram of the interface in which a user uses the VoLTE service of the user terminal to make a high-definition voice call. The VoLTE service is a high-definition voice call technology based on the LTE network. The VoLTE service transmits voice data through the first network-LTE network. When the user terminal obtains the service type of the currently transmitted service-VoLTE service, the service type is LTE priority. The transmission network corresponding to this service type is the first network-LTE network. At this time, the first network-LTE network carries the main service of the transmission network-VoLTE service. The user terminal determines the first network-LTE network as the first target network with a higher priority, and determines the second network-NR network as the second target network with a lower priority.
[0108] Optionally, when a user uses the VoNR service on the user terminal to make a high-definition voice call, such as Figure 7 As shown, Figure 7 It is a schematic diagram of the interface in which a user uses the VoNR service of the user terminal to make a high-definition voice call. The VoNR service is a high-definition voice call technology based on the NR network. The VoNR service mainly transmits voice data through the first network-LTE network. At this time, the service type corresponding to the VoNR service is NR priority. The user terminal determines the second network-NR network as the first target network with a higher priority, and determines the first network-LTE network as the second target network with a lower priority.
[0109] In a feasible implementation, a user can select a service type of a certain service on a user terminal, such as: a user can select the service type of a high-definition voice call service as LTE priority or NR priority on a user terminal, and the user terminal detects the "service type" selection instruction input by the user, reads and executes the machine executable instructions corresponding to the control logic of the "service type", and sets the transmission network corresponding to the service type to the first target network, the transmission network is the first network or the second network, and the first network and the second network other than the transmission network are determined as the second target network with a lower priority.
[0110] Step 206: When the first difference is less than a first threshold or the second difference is less 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.
[0111] The first difference being less than the first threshold can be understood as 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 first difference is less than the first threshold.
[0112] The second difference being less than the second threshold can be understood as 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, the second difference is less than the second threshold.
[0113] In this embodiment, the antenna included in the user terminal supports the protocol stacks corresponding to the first network and the second network.
[0114] Specifically, when the user terminal monitors that the first difference is less than the first threshold or the second difference is less than the second threshold, at this time, the data transmission rate of the user terminal on the first network and the second network is not much different, the business 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.
[0115] Specifically, the user terminal detects the signal quality of each antenna among all antennas in the first network, determines the 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. At the same time, the user terminal detects the signal quality of each antenna among all antennas in the second network, determines the priority of each antenna based on the signal quality of each antenna, and determines that the antenna indicated by the highest priority is the second main antenna.
[0116] Specifically, the user terminal can measure the signal quality of the antenna by measuring the signal received by the antenna. Specifically, it can be to measure the reference signal receiving power (RSRP) received by the antenna from the opposite device, such as the access network device (e.g., base station), and after measuring the RSRP of each antenna, the signal quality of each antenna is evaluated based on the pre-set antenna signal determination rule.
[0117] For example, the antenna signal determination rule may be based on the RSRP value, and the antennas in the first network and the second network are sorted in turn, the antenna with the strongest signal strength is determined as the highest priority, and the antenna indicated by the highest priority is the first main antenna.
[0118] Optionally, measuring the signal quality of the antenna may also be measuring signal parameters such as the signal strength of each antenna, channel characteristics, signal energy of the antenna, or error rate of the received signal. After measuring the signal parameters, the signal quality of each antenna is evaluated based on a pre-set antenna signal determination rule. The antenna signal determination rule is determined based on the performance difference caused by the change of the signal parameters between the antennas.
[0119] Step 207: 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.
[0120] In practical applications, since multipath component signals are generated due to interference during signal transmission, the receiving end (such as the user terminal) will use diversity reception technology, that is, use multiple antennas to simultaneously receive signals from different paths, and then merge the multiple signals into a total signal to reduce the impact of signal fading. When multiple antennas are used to send and receive data on a certain transmission network, a main antenna (also called the main antenna) will be set. The main antenna is responsible for sending and receiving RF signals, and the remaining antennas are usually called auxiliary antennas (also called diversity antennas). The auxiliary antennas are only responsible for receiving RF signals and do not send RF signals.
[0121] in, Figure 8a This is a schematic diagram of an antenna that reflects diversity technology on a user terminal. Figure 8a The user terminal shown in the figure has 6 antennas, antenna 1, antenna 2,..., antenna 6. When the user terminal is in a dual network connection state, the first network and the second network are connected at the same time. For the convenience of description, the first network is an LTE network and the second network is an NR network. In the first network-LTE network, antenna 2 is the current main antenna, and in the second network-NR network, antenna 4 is the main antenna.
[0122] Specifically, the user terminal detects the signal quality of at least one antenna, and after determining the first main antenna corresponding to the first network and the second main antenna corresponding to the second network, 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 main antenna, and in the second network-NR network, antenna 4 is the main antenna. The user terminal determines by detecting the antenna signal quality. Figure 8a The first main antenna corresponding to the first network-LTE network is antenna 1, and the second main antenna corresponding to the second network-NR network is determined to be antenna 3. At this time, the user terminal switches the main antenna under the first network-LTE network from the current antenna-antenna 2 to the first main antenna-antenna 1, and switches the main antenna under the second network-NR network from the current antenna-antenna 4 to the second main antenna-antenna 3. The antenna schematic diagram after the switching is as follows Figure 8b As shown, Figure 8b The main antenna of the user terminal in the first network is antenna 1, and antenna 1 (main antenna) is responsible for sending and receiving radio frequency signals on the first network, and antenna 2 (auxiliary antenna) is only responsible for receiving radio frequency signals on the first network; the main antenna in the second network is antenna 3, and 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 antennas) are only responsible for receiving radio frequency signals on the second network.
[0123] 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 order of the signal quality of each antenna;
[0124] Specifically, the user terminal detects the signal quality of each antenna among all the antennas included, and the signal quality can be determined by measuring the reference signal received power RSRP received by each antenna from the opposite device, such as an access network device (e.g., a base station), and determining the priority of each antenna in order based on the size of the reference signal received power RSRP.
[0125] For example, the user terminal includes 6 antennas, namely antenna 1, antenna 2, . . . , antenna 6. The RSRP of each antenna is measured to be P1, P2, P3, P4, P5, and P6. Then, it is determined that the power size of each RSRP is P5>P2>P1>P3>P4>P6. Then, the antenna priority corresponding to the power of each RSRP is determined as follows: antenna 5 has a priority of 1, antenna 2 has a priority of 2, antenna 1 has a priority of 3, antenna 3 has a priority of 4, antenna 4 has a priority of 5, and antenna 6 has a priority of 6. That is, the antenna priorities from high to low are: antenna 5, antenna 2, antenna 1, antenna 3, antenna 4, and antenna 6.
[0126] Optionally, the user terminal can also measure the signal quality of the antenna by measuring at least one of the following parameters: received signal strength indication (RSSI), received signal code power (RSCP), ratio of received chip signal strength to noise strength (EcIo) / ratio of power per modulation bit to noise spectrum density (EcNo) / signal-to-noise ratio (SNR) / reference signal receiving quality (RSRQ), bit error rate (BER) / block error rate (BLER) / packet error rate (PER) of the signal received by the antenna. Of course, the signal quality of the antenna can also be measured by measuring other parameters.
[0127] It should be noted that there are multiple parameters for measuring signal quality, which may be a fit of one or more of the above-mentioned parameters, and are not specifically limited here.
[0128] In a feasible implementation, after the user terminal measures the parameters of the signal quality of each antenna, which may be at least one of the above parameters, the user terminal inputs the parameters of the signal quality of each antenna into the signal quality scoring model in sequence, outputs the score of the signal quality of each antenna, and determines the priority of each antenna in order based on the order of the score of each antenna.
[0129] Among them, by pre-acquiring a large amount of sample data, extracting feature information, and annotating the sample data, the feature information includes antenna signal quality parameters (RSSI, RSCP, SNR, etc.), and creating a signal quality scoring model. The signal quality scoring model can be trained using a large number of test samples, such as the signal quality scoring model can be based on at least one of a convolutional neural network (CNN) model, a deep neural network (DNN) model, a recurrent neural network (RNN) model, an embedding model, a gradient boosting decision tree (GBDT) model, and a logistic regression (LR) model. The signal quality scoring model is trained based on the labeled sample data to obtain a trained signal quality scoring model.
[0130] Step 209: Acquire the number of antennas corresponding to the first target network, and determine a first target antenna indicated by the number of antennas from the at least one antenna based on the priority order.
[0131] Specifically, after the user terminal determines the priority of each antenna based on the order of signal quality of each antenna, it obtains the number of antennas corresponding to the first target network, and then the user terminal selects antennas corresponding to the number of antennas with higher priority from the antennas included in the user terminal according to the order of priority of each antenna, and determines the antennas corresponding to the number of antennas as the first target antenna.
[0132] 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. The priority is described by the above example, and the antenna priorities mentioned above are from high to low: antenna 5, antenna 2, antenna 1, antenna 3, antenna 4, antenna 6. The user terminal determines antenna 5 and antenna 2 as the first target antenna based on the antenna priority according to the number of antennas 2 of the first target network-LTE network.
[0133] For another example: 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 signal quality of each antenna, and the antenna priorities are from high to low: antenna 1, antenna 2, antenna 5, antenna 6, antenna 3, antenna 4. The user terminal determines antenna 1, antenna 2, antenna 5, and antenna 6 as the first target antenna based on the antenna priority according to the number of antennas 4 of the first target network-NR network.
[0134] It should be noted that the number of antennas in this embodiment is only for the convenience of description. In actual applications, the number of antennas is determined based on the actual environment.
[0135] Step 210: Switch the first target antenna to a protocol stack corresponding to the first target network, and switch a second target antenna other than the first target antenna among the at least one antenna to a protocol stack corresponding to the second target network.
[0136] The specific interpretation of the protocol stack can be found in step 103 and will not be repeated here.
[0137] Specifically, after the user terminal determines the first target antenna indicated by the antenna quantity from the at least one antenna based on the priority order, when the number of antennas indicated by the first target antenna includes multiple, the user terminal obtains the current protocol stack of each target antenna in the first target antenna, and the current protocol stack can be understood as the protocol stack corresponding to the target antenna before it is switched.
[0138] The user terminal detects whether the current protocol stack of each target antenna is the protocol stack of the first target network; 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. At the same time, the user terminal switches the second target antenna other than the first target antenna among the at least one antenna to the protocol stack corresponding to the second target network.
[0139] For example: Figure 9a As shown, Figure 9aIt is a schematic diagram of the antenna of the user terminal. When the first target network is the LTE network, the user terminal determines antenna 5 and antenna 2 as the first target antenna based on the antenna priority according to the number of antennas 2 of the first target network-LTE network. Before switching, the antenna 5 corresponds to the second network-NR protocol stack, and the antenna 2 corresponds to the first network-LTE protocol stack. Before switching the first target antenna-antenna 5 and antenna 2, the user terminal detects the current protocol stack of the antenna 5 and antenna 2. The current protocol stack of the antenna 5 is the NR protocol stack of the second target network. At this time, the user terminal switches the current protocol stack of the antenna 5 to the protocol stack corresponding to the first target network-LTE protocol stack. The current protocol stack of the antenna 2 is the LTE protocol stack of the first target network. At this time, the user terminal does not switch the current protocol stack of the antenna 2.
[0140] At the same time, the user terminal switches the second target antennas of the at least one antenna except the first target antenna - antenna 1, antenna 3, antenna 4 and antenna 6 to the NR protocol stack corresponding to the second target network-the second network. When switching, the user terminal only needs to switch the LTE protocol stack of the antenna as the first target network, that is, switch to the NR protocol stack corresponding to the second target network-the second network.
[0141] After the user terminal switches at least one antenna included therein, the schematic diagram after the switching is as follows: Figure 9b shown.
[0142] Optionally, after the user terminal completes switching the first target antenna to the protocol stack corresponding to the first target network, and switches the second target antenna other than the first target antenna in the at least one antenna to the protocol stack corresponding to the second target network, the user terminal determines the first target main antenna corresponding to the first target network in at least one antenna under the first target network, and determines the second target main antenna corresponding to the second target network in at least one antenna under 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.
[0143] In an 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, wherein the dual network connection state is a network connection state in which the first network and the second network are simultaneously connected. 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, and the first target antenna is switched to a protocol stack corresponding to the first target network. By determining a first target network with a higher priority based on the transmission rates of the first network and the second network, and switching the antenna with better performance among all antennas included to a protocol stack corresponding to the first target network, antenna resources are fully utilized and the transmission performance of the transmission network is improved.
[0144] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0145] See also Fig.10 , which shows a schematic diagram of the structure of an antenna switching device provided by an exemplary embodiment of the present application. The antenna switching device can be implemented as all or part of the device through software, hardware or a combination of both. The device 1 includes a transmission rate acquisition module 11, a first target network determination module 12 and a protocol stack switching module 13.
[0146] A transmission rate acquisition module 11, used to acquire 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 in which the first network and the second network are connected at the same time;
[0147] A target network determining module 12, configured to determine a first target network with a higher priority between the first network and the second network based on the first transmission rate and the second transmission rate;
[0148] The protocol stack switching module 13 is used to determine a first target antenna from at least one antenna included, and switch the first target antenna to a protocol stack corresponding to the first target network.
[0149] Optionally, the device 1 comprises:
[0150] A target network determination module 12, configured to determine a second target network with a lower priority among the first network and the second network;
[0151] The protocol stack switching module 13 is used to switch the second target antenna other than the first target antenna among the at least one antenna to the protocol stack corresponding to the second target network.
[0152] Optional, such as Fig.11 As shown, the target network determination module 12 includes:
[0153] 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;
[0154] The target network determining unit 122 is configured to determine, when the first difference is greater than a first threshold, that the first network is a first target network and the second network is a second target network.
[0155] Optional, such as Fig.11 As shown, the target network determination module 12 includes:
[0156] 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;
[0157] The target network determining unit 122 is 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.
[0158] Optional, such as Fig.13 As shown, the device 1 further includes:
[0159] A main antenna determination module 14, configured to respectively determine a first main antenna corresponding to the first network and a second main antenna corresponding to the second network from the at least one antenna when the first difference is less than a first threshold or the second difference is less than a second threshold;
[0160] The main antenna switching module 15 is used to switch the main antenna corresponding to the first network to the first main antenna, and to switch the main antenna corresponding to the second network to the second main antenna.
[0161] Optional, such as Fig.12 As shown, the protocol stack switching module 13 includes:
[0162] The antenna priority determination unit 131 is used to detect the signal quality of each antenna in the at least one antenna, and determine the priority of each antenna based on the order of the signal quality of each antenna;
[0163] The target antenna determination unit 132 is configured to obtain the number of antennas corresponding to the first target network, and determine a first target antenna indicated by the number of antennas from the at least one antenna based on the priority order.
[0164] Optional, such as Fig.13 As shown, the device 1 further includes:
[0165] A service type acquisition module 16 is used to acquire the service type of the service currently transmitted in the dual network connection state;
[0166] The target network determination module 12 is used to determine the 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 to determine the first network and the network other than the transmission network in the second network as the second target network with a lower priority.
[0167] It should be noted that the antenna switching device provided in the above embodiment only uses the division of the above functional modules as an example when executing the antenna switching method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the antenna switching device provided in the above embodiment and the antenna switching method embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.
[0168] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0169] In an 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, wherein the dual network connection state is a network connection state in which the first network and the second network are simultaneously connected. 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, and the first target antenna is switched to a protocol stack corresponding to the first target network. By determining a first target network with a higher priority based on the transmission rates of the first network and the second network, and switching the antenna with better performance among all antennas included to a protocol stack corresponding to the first target network, antenna resources are fully utilized and the transmission performance of the transmission network is improved.
[0170] The present application also provides a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded and executed by a processor as described above. Figure 1-9b The antenna switching method of the embodiment shown in the figure can be specifically executed by referring to Figure 1-9b The specific description of the illustrated embodiment will not be repeated here.
[0171] The present application also provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor as described above. Figure 1-9b The antenna switching method of the embodiment shown in the figure can be specifically executed by referring to Figure 1-9b The specific description of the illustrated embodiment will not be repeated here.
[0172] See also Fig.14 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig.14 As shown, the electronic device 1000 may include: at least one processor 1001 , at least one network interface 1004 , a user interface 1003 , a memory 1005 , and at least one communication bus 1002 .
[0173] The communication bus 1002 is used to realize the connection and communication between these components.
[0174] The user interface 1003 may include a display screen (Display) and a camera (Camera), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
[0175] The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0176] Among them, the processor 1001 may include one or more processing cores. The processor 1001 uses various interfaces and lines to connect various parts within the entire server 1000, and executes various functions and processes data of the server 1000 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1005, and calling data stored in the memory 1005. Optionally, the processor 1001 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 1001 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1001, and it can be implemented separately through a chip.
[0177] Among them, the memory 1005 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer-readable storage medium. The memory 1005 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 1005 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 1005 may optionally be at least one storage device located away from the aforementioned processor 1001. As Fig.14 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an antenna switching application.
[0178] exist Fig.14In the electronic device 1000 shown, the user interface 1003 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 1001 can be used to call the antenna switching application stored in the memory 1005 and specifically perform the following operations:
[0179] Acquire 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 in which the first network and the second network are connected simultaneously;
[0180] Based on the first transmission rate and the second transmission rate, determining a first target network with a higher priority between the first network and the second network;
[0181] A first target antenna is determined among the at least one antenna included, and the first target antenna is switched to a protocol stack corresponding to the first target network.
[0182] In one embodiment, after executing the step of determining a first target network with a higher priority in the first network and the second network based on the first transmission rate and the second transmission rate, the processor 1001 further performs the following operations:
[0183] Determine a second target network with a lower priority among the first network and the second network;
[0184] After switching the second target antenna of the at least one antenna except the first target antenna to the protocol stack corresponding to the second target network, the method further includes:
[0185] Switch a second target antenna other than the first target antenna among the at least one antenna to a protocol stack corresponding to the second target network.
[0186] In one embodiment, when the processor 1001 determines a first target network with a higher priority in the first network and the second network based on the first transmission rate and the second transmission rate, and determines a second target network with a lower priority in the first network and the second network, the processor 1001 specifically performs the following operations:
[0187] When the first transmission rate is greater than the second transmission rate, calculating a first difference between the first transmission rate and the second transmission rate;
[0188] When the first difference is greater than a first threshold, the first network is determined to be a first target network and the second network is determined to be a second target network.
[0189] In one embodiment, when the processor 1001 determines a first target network with a higher priority in the first network and the second network based on the first transmission rate and the second transmission rate, and determines a second target network with a lower priority in the first network and the second network, the processor 1001 specifically performs the following operations:
[0190] 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;
[0191] When the second difference is greater than a second threshold, it is determined that the second network is the first target network and the first network is the second target network.
[0192] In an embodiment, when executing the antenna switching method, the processor 1001 specifically performs the following operations:
[0193] When the first difference is less than a first threshold or the second difference is less 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 from the at least one antenna;
[0194] The main antenna corresponding to the first network is switched to the first main antenna, and the main antenna corresponding to the second network is switched to the second main antenna.
[0195] In an embodiment, when the processor 1001 executes the step of determining the first target antenna among the at least one antenna included, the processor 1001 specifically performs the following operations:
[0196] Detecting the signal quality of each antenna in the at least one antenna, and determining the priority of each antenna based on the order of the signal quality of each antenna;
[0197] The number of antennas corresponding to the first target network is obtained, and a first target antenna indicated by the number of antennas is determined from the at least one antenna based on the priority order.
[0198] In one embodiment, when executing the antenna switching method, the processor 1001 further performs the following operations:
[0199] Obtain the service type of the service currently being transmitted in the dual network connection state;
[0200] The step of determining a first target network with a higher priority in the first network and the second network, and determining a second target network with a lower priority in the first network and the second network, comprises:
[0201] Determine a transmission network corresponding to the service type as a first target network with a higher priority, the transmission network being the first network or the second network;
[0202] A network other than the transmission network among the first network and the second network is determined as the second target network with a lower priority.
[0203] In an 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, wherein the dual network connection state is a network connection state in which the first network and the second network are simultaneously connected. 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, and the first target antenna is switched to a protocol stack corresponding to the first target network. By determining a first target network with a higher priority based on the transmission rates of the first network and the second network, and switching the antenna with better performance among all antennas included to a protocol stack corresponding to the first target network, antenna resources are fully utilized and the transmission performance of the transmission network is improved.
[0204] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0205] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. An antenna switching method, characterized in that: The method comprises: Acquire 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 in which the first network and the second network are connected simultaneously; Based on the first transmission rate and the second transmission rate, determine the difference in transmission rate and determine the transmission state of the transmission network data based on the difference; wherein when the positive value of the difference in transmission rate is less than a threshold value, the transmission state is equivalent to the transmission data; If the transmission state is equivalent to the transmission data, determining a first main antenna corresponding to the first network and a second main antenna corresponding to the second network in at least one antenna; 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; Among them, the determining of the first main antenna corresponding to the first network and the second main antenna corresponding to the second network in at least one antenna respectively includes: detecting the signal quality of each antenna among all antennas under the first network, determining the priority of each antenna based on the signal quality of each antenna, determining the antenna indicated by the highest priority as the first main antenna, detecting the signal quality of each antenna among all antennas under the second network, determining the priority of each antenna based on the signal quality of each antenna, and determining the antenna indicated by the highest priority as the second main antenna.
2. The method according to claim 1, characterized in that: The determining a transmission rate difference based on the first transmission rate and the second transmission rate includes: When the first transmission rate is greater than the second transmission rate, calculating a first difference between the first transmission rate and the second transmission rate; or, 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.
3. The method according to claim 2, characterized in that: The determining the transmission status of the transmission network data based on the difference includes: When the first difference is less than a first threshold, determining that the transmission state of the transmission network data is equivalent to the transmission data; or, When the second difference is less than a second threshold, determining that the transmission state of the transmission network data is equivalent to the transmission data; When the first difference is greater than a first threshold, determining that the transmission state of the transmission network data is the first network bearer main transmission; When the second difference is greater than a second threshold, it is determined that the transmission state of the transmission network data is the second network bearer main transmission.
4. The method according to claim 2, characterized in that: The determining the transmission state of the transmission network data based on the difference, and if the transmission state is that the transmission data is equivalent, 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, comprises: If the first difference satisfies that the first difference corresponding to the transmitted data is less than a first threshold or the second difference satisfies that the second difference corresponding to the transmitted data is less than a second threshold, then 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.
5. The method according to claim 1, characterized in that: The detecting the signal quality of each antenna among all the antennas in the first network, and determining the priority of each antenna based on the signal quality of each antenna, includes: Detecting a signal parameter of each antenna among all antennas in the first network, and evaluating the signal quality of each antenna by adopting an antenna signal determination rule based on the signal parameter of each antenna to determine the priority of each antenna; The detecting the signal quality of each antenna among all the antennas in the second network, and determining the priority of each antenna based on the signal quality of each antenna, includes: Detect signal parameters of each antenna among all antennas in the second network, and adopt antenna signal determination rules based on the signal parameters of each antenna to evaluate the signal quality of each antenna to determine the priority of each antenna.
6. The method according to claim 3, characterized in that: The method further comprises: If the transmission state is that the first network carries the main transmission or the second network carries the main transmission, 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, and the first target antenna is switched to a protocol stack corresponding to the first target network; or, If the transmission status is that the first network carries the main transmission or the second network carries the main transmission, a first target network with a higher priority is determined in the first network and the second network, and a second target network with a lower priority is determined in the first network and the second network, a first target antenna is determined in at least one antenna included, the first target antenna is switched to a protocol stack corresponding to the first target network, and a second target antenna other than the first target antenna in the at least one antenna is switched to a protocol stack corresponding to the second target network.
7. The method according to claim 6, characterized in that The step of determining a first target network with a higher priority in the first network and the second network, and determining a second target network with a lower priority in the first network and the second network includes: When the first difference is greater than a first threshold, the first network is determined to be the first target network and the second network is the second target network; when the second difference is greater than a second threshold, the second network is determined to be the first target network and the first network is the second target network; or, Obtain the service type of the service currently transmitted in the dual network connection state, determine the transmission network corresponding to the service type as the first target network with a higher priority, and determine the first network and the network other than the transmission network in the second network as the second target network with a lower priority, and the transmission network is the first network or the second network.
8. An antenna switching device, characterized in that: The device comprises: a transmission rate acquisition module, used to acquire 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 in which the first network and the second network are connected simultaneously; a main antenna determination module, configured to determine a transmission rate difference based on the first transmission rate and the second transmission rate, and determine a transmission state of the transmission network data based on the difference; if the transmission state is that the transmission data is equivalent, then respectively determining a first main antenna corresponding to the first network and a second main antenna corresponding to the second network in at least one antenna; wherein when the transmission rate difference is less than a threshold value, the transmission state is that the transmission data is equivalent; a main antenna switching module, configured to switch the main antenna corresponding to the first network to the first main antenna, and to switch the main antenna corresponding to the second network to the second main antenna; Among them, the determining of the first main antenna corresponding to the first network and the second main antenna corresponding to the second network in at least one antenna respectively includes: detecting the signal quality of each antenna among all antennas under the first network, determining the priority of each antenna based on the signal quality of each antenna, determining the antenna indicated by the highest priority as the first main antenna, detecting the signal quality of each antenna among all antennas under the second network, determining the priority of each antenna based on the signal quality of each antenna, and determining the antenna indicated by the highest priority as the second main antenna.
9. A computer storage medium, characterized in that The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps as claimed in any one of claims 1 to 7.
10. An electronic device, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps as claimed in any one of claims 1 to 7.
Citation Information
Patent Citations
Switching methods for transmitting antennas and terminal equipment
CN109361444A
Method for switching network cards and electronic device
CN110072263A