CN114710816A - Network switching method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN114710816A
CN114710816A CN202210344678.6A CN202210344678A CN114710816A CN 114710816 A CN114710816 A CN 114710816A CN 202210344678 A CN202210344678 A CN 202210344678A CN 114710816 A CN114710816 A CN 114710816A
Authority
CN
China
Prior art keywords
network
cell
information
electronic equipment
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210344678.6A
Other languages
Chinese (zh)
Inventor
罗德文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202210344678.6A priority Critical patent/CN114710816A/en
Publication of CN114710816A publication Critical patent/CN114710816A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/16Performing reselection for specific purposes
    • H04W36/165Performing reselection for specific purposes for reducing network power consumption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data

Abstract

The embodiment of the application discloses a network switching method and device, electronic equipment and a storage medium. The method comprises the following steps: the electronic equipment determines the corresponding position information of the electronic equipment relative to the first cell and the second cell; if the position information is that the electronic equipment is in a first cell and a second cell, acquiring first network information of the first cell and second network information of the second cell; determining a first network quality corresponding to the first cell according to the first network information, and determining a second network quality corresponding to the second cell according to the second network information; and determining a target network to which the electronic equipment needs to be connected according to the first network quality and the second network quality, and controlling the electronic equipment to be connected with the target network. Therefore, the electronic equipment is accessed to a more stable target network in the coverage area of a plurality of cells, and the communication quality of the electronic equipment is improved.

Description

Network switching method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a network switching method and apparatus, an electronic device, and a storage medium.
Background
In the related art, network switching of the electronic device between different base stations often occurs, and when the electronic device switches the network, the electronic device may be temporarily disconnected from the last connected base station, which may result in a decrease in network quality of the electronic device. Such as a user making a video call or a game, a high network delay may result.
Disclosure of Invention
The embodiment of the application provides a network switching method and device, electronic equipment and a storage medium. The network switching method can control the electronic equipment to access a more stable target network, and improves the communication quality of the electronic equipment.
In a first aspect, an embodiment of the present application provides a network handover method, including:
determining position information corresponding to the electronic equipment relative to a first cell and a second cell;
if the position information is that the electronic equipment is in a first cell and a second cell, acquiring first network information of the first cell and second network information of the second cell;
determining a first network quality corresponding to the first cell according to the first network information, and determining a second network quality corresponding to the second cell according to the second network information;
and determining a target network to which the electronic equipment needs to be connected according to the first network quality and the second network quality, and controlling the electronic equipment to be connected with the target network.
In a second aspect, an embodiment of the present application provides a network switching apparatus, including:
the first determining module is used for determining the position information corresponding to the electronic equipment relative to the first cell and the second cell;
the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring first network information of a first cell and second network information of a second cell if the position information is that the electronic equipment is in the first cell and the second cell;
a second determining module, configured to determine, according to the first network information, a first network quality corresponding to the first cell, and determine, according to the second network information, a second network quality corresponding to the second cell;
and the connection module is used for determining a target network to which the electronic equipment needs to be connected according to the first network quality and the second network quality and controlling the electronic equipment to be connected with the target network.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory storing executable program code, and a processor coupled to the memory; the processor calls the executable program code stored in the memory to execute the steps in the network switching method provided by the embodiment of the application.
In a fourth aspect, an embodiment of the present application provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to perform steps in a network handover method provided in this application.
In the embodiment of the application, the electronic equipment determines the position information corresponding to the electronic equipment relative to the first cell and the second cell; if the position information is that the electronic equipment is in a first cell and a second cell, acquiring first network information of the first cell and second network information of the second cell; determining a first network quality corresponding to the first cell according to the first network information, and determining a second network quality corresponding to the second cell according to the second network information; and determining a target network to which the electronic equipment needs to be connected according to the first network quality and the second network quality, and controlling the electronic equipment to be connected with the target network. Therefore, the electronic equipment is accessed to a more stable target network in the coverage area of a plurality of cells, and the communication quality of the electronic equipment is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a network handover scenario provided in an embodiment of the present application.
Fig. 2 is a first flowchart of a network handover method according to an embodiment of the present application.
Fig. 3 is a second flowchart of a network handover method according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a network switching device according to an embodiment of the present disclosure.
Fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a schematic view of a network handover scenario provided in an embodiment of the present application.
Mobile electronic devices, such as smart phones, tablet computers, and notebooks, have become an essential part of people's daily life. The electronic device is connected to the base station through the coverage area of the cell, and then the network connection is realized. In practical situations, a common coverage of networks of multiple cells often exists in one place, as shown in fig. 1, a coverage area S1 of a first cell and a coverage area S2 of a second cell have partially overlapped coverage, and at this time, the electronic device needs to select a corresponding network from networks corresponding to the multiple cells to connect.
As shown in fig. 1, when the electronic device is within a coverage S3 where the first cell and the second cell coincide, the electronic device needs to acquire first network information of the first cell and second network information of the second cell. And then determining a first network quality corresponding to the first cell according to the first network information, and determining a second network quality corresponding to the second cell according to the second network information. And finally, determining a target network to which the electronic equipment needs to be connected according to the first network quality and the second network quality, and controlling the electronic equipment to be connected with the target network. Through the connection of the electronic equipment and the target network, the electronic equipment is prevented from being frequently switched in the overlapped coverage area S3, so that the connection stability of the electronic equipment and the target network is improved, the network fluctuation and the network delay of the electronic equipment are reduced, and the communication quality of the electronic equipment is improved.
To better understand the network handover method provided in the embodiment of the present application, please refer to fig. 2, where fig. 2 is a first flowchart of the network handover method provided in the embodiment of the present application. The network switching method can be applied to various electronic devices which can realize network connection, such as computers, notebooks, mobile phones and the like, and can comprise the following steps:
110. determining location information corresponding to the electronic device relative to the first cell and the second cell.
In some embodiments, an electronic device may actively scan for cells that exist around and determine location information where the electronic device is located relative to surrounding cells. For example, the position information of the electronic device relative to the cell can be determined by scanning the base stations existing around and determining the coverage area of the cell corresponding to each base station around.
As shown in fig. 1, the coverage area corresponding to the first cell is S1, the coverage area corresponding to the second cell is S2, and the coverage areas covered by both the first cell and the second cell are S3.
When the electronic device is in the coverage area corresponding to the first cell, the position information of the electronic device relative to the first cell is that the electronic device is in the coverage area of the first cell. When the electronic device is in the coverage area corresponding to the second cell, the position information of the electronic device relative to the second cell is that the electronic device is in the coverage area of the second cell. When the electronic equipment is located in the range covered by the first cell and the second cell together, the position information of the electronic equipment is determined to be that the electronic equipment is located in the first cell and the second cell.
In some embodiments, after scanning the base stations, the electronic device sends coverage request information to the base stations, receives a cell coverage area corresponding to each base station returned by each base station, calculates a distance between the electronic device and the base station according to a geographical position of the base station and a geographical position of the electronic device, and determines position information of the electronic device relative to a cell corresponding to each base station according to the distance.
120. And if the position information is that the electronic equipment is in the first cell and the second cell, acquiring first network information of the first cell and second network information of the second cell.
As shown in fig. 1, when the electronic device is located in the coverage area S3 where the first cell and the second cell coincide with each other, it is described that the electronic device may search for a signal of a first network corresponding to the first cell at the same time, and the electronic device may also search for a signal of a second network corresponding to the second cell.
In some embodiments, the first network information includes at least one of a first network delay, a first SIGNAL-to-NOISE RATIO (SNR), a first Reference SIGNAL Received Power (RSRP), and the like. The electronic device may use at least one of the different types of information as the first network information.
The second network information includes at least one of a second network delay, a second SIGNAL-to-NOISE RATIO (SNR), a second Reference SIGNAL Received Power (RSRP), and the like. The electronic device may use at least one of the different types of information as the second network information.
In some embodiments, the impact of different types of information on network quality is different, such as the impact of network delay, signal-to-noise ratio, and reference signal received power on network quality, respectively, is different. The electronic device may first obtain first weight values corresponding to the first network delay, the first signal-to-noise ratio, and the first reference signal received power, and then determine the first network information according to the first weight value, the first network delay, the first signal-to-noise ratio, and the first reference signal.
For example, first network delay, a first signal-to-noise ratio, and a first reference signal are obtained, and then a first weight value corresponding to the first network delay is multiplied by a corresponding value, a first weight value corresponding to the first signal-to-noise ratio is multiplied by a corresponding value, a first weight value corresponding to the first reference signal received power is multiplied by a corresponding value, and finally, product results of the first network delay, the first signal-to-noise ratio, and the first reference signal multiplied by the weight value are added to obtain first network information.
In some embodiments, the electronic device may first obtain a second weight value corresponding to the second network delay, the second signal-to-noise ratio, and the second reference signal received power, and then determine the second network information according to the second weight value, the second network delay, the second signal-to-noise ratio, and the second reference signal.
For example, first, values corresponding to the second network delay, the second signal-to-noise ratio, and the second reference signal are obtained, then, a second weight value corresponding to the second network delay is multiplied by the corresponding value, a second weight value corresponding to the second signal-to-noise ratio is multiplied by the corresponding value, a second weight value corresponding to the second reference signal received power is multiplied by the corresponding value, and finally, product results obtained by multiplying the second network delay, the second signal-to-noise ratio, and the second reference signal by the weight values are added to obtain the second network information.
In some embodiments, in the process of acquiring the first network information and the second network information, the electronic device may switch a connection state between a first network corresponding to the first cell and a second network corresponding to the second cell multiple times within a first preset time period to acquire the first network information and the second network information.
For example, the first preset duration is 10 seconds, the electronic device may switch between the first network and the second network within 10 seconds, for example, the first second electronic device is connected to the first network, during the connection period of the first network, the electronic device may acquire first network information corresponding to the first network, then the third second electronic device is connected to the second network, and the electronic device may acquire second network information corresponding to the second network. And when the network connection state of the electronic equipment is switched to the first network from the second network, and then the electronic equipment acquires the first network information corresponding to the first network again.
By the above method, the electronic device can acquire the first network information and the second network information corresponding to different times within the first preset time. Meanwhile, the electronic equipment can record the first connection times of connecting the first network and the second connection times of connecting the second network.
130. And determining a first network quality corresponding to the first cell according to the first network information, and determining a second network quality corresponding to the second cell according to the second network information.
In some embodiments, the electronic device may determine, within a first preset time period and within the first preset time period, target first network information corresponding to the first network according to the first network information and the first connection frequency of the electronic device and the first cell, and determine the first network quality according to the target first network information.
And determining target second network information corresponding to the second network according to the second network information and the second connection times of the electronic equipment and the second cell within the first preset time length, and determining second network quality according to the target second network information.
For example, within the preset time duration, the first connection frequency is 3, the electronic device may add first network information corresponding to each time of connecting the first network to obtain a first addition result, and then divide the addition result by 3 to obtain target first network information corresponding to the first network within the preset time duration, where the target first network information is average network information of the first network within the first preset time duration.
Within the preset time, the second connection frequency is 2, the electronic device may add second network information corresponding to each time of connection to the second network to obtain a second addition result, and then divide the addition result by 3 to obtain target second network information corresponding to the second network within the preset time, where the target second network information is average network information of the second network within the first preset time.
And finally, the electronic equipment can determine the first network quality corresponding to the first cell according to the target first network information and determine the second network quality corresponding to the second cell according to the target second network information.
In some embodiments, the first network information and the second network information may be one or more of a signal-to-noise ratio, a reference signal received power, a network delay, and/or the like. The electronic device may directly quantize the plurality of parameters, thereby outputting a quantized value corresponding to each parameter, and then use the quantized value as the network quality.
For example, the first network information includes a first signal-to-noise ratio and a first reference signal received power, then a quantized value corresponding to the first signal-to-noise ratio and the first reference signal received power is quantized in a preset quantization standard, and then the quantized value is used as the first network quality.
The second network information comprises a second signal-to-noise ratio and a second reference signal receiving power, then a quantized value corresponding to the second signal-to-noise ratio and the second reference signal receiving power is quantized in a preset quantization standard, and then the quantized value is used as a second network quality.
It should be noted that the preset quantization standard may quantize the first network quality and the second network quality within the same standard range, for example, a quantization value corresponding to the first network quality is within a range of 0 to 1, and a quantization value corresponding to the second network quality is also within a range of 0 to 1.
140. And determining a target network to which the electronic equipment needs to be connected according to the first network quality and the second network quality, and controlling the electronic equipment to be connected with the target network.
In some embodiments, after the electronic device determines the first network quality and the second network quality, a network with better network quality may be selected as the target network, for example, if the first network quality of the first network corresponding to the first cell is better, the first network is selected as the target network, and then the electronic device is connected to the first network.
After the electronic equipment is connected with the target network, if the electronic equipment is always in the range corresponding to the first cell and the second cell, the electronic equipment can be controlled to be always connected with the first network, and the electronic equipment is prevented from being frequently switched in the midway, so that network conditions such as no network, cut-off, high delay and the like can be caused to the electronic equipment.
In some embodiments, the electronic device may further determine a connection duration corresponding to the target network, and control the electronic device to connect to the target network within the connection duration. After the connection duration of the electronic device and the target network exceeds the connection duration, the electronic device may re-determine a new target network within a range covered by the first cell and the second cell, and then connect the electronic device and the new target network. In the network switching process, the network switching times of the electronic equipment are reduced as much as possible, so that the communication quality of the electronic equipment is ensured.
In some embodiments, after controlling the electronic device to connect to the target network, the electronic device may also continue to determine the location information corresponding to the electronic device relative to the first cell and the second cell. And if the position information indicates that the electronic equipment is located in the first cell or the second cell, controlling the electronic equipment to be connected with a first network corresponding to the first cell or a second network corresponding to the second cell.
For example, when the electronic device enters a coverage range of a first cell from a coverage range of a first cell and a second cell, the electronic device is controlled to connect to a first network corresponding to the first cell. Thereby ensuring that the electronic equipment can normally communicate.
In the embodiment of the application, the electronic equipment determines the position information corresponding to the electronic equipment relative to the first cell and the second cell; if the position information is that the electronic equipment is in a first cell and a second cell, acquiring first network information of the first cell and second network information of the second cell; determining a first network quality corresponding to the first cell according to the first network information, and determining a second network quality corresponding to the second cell according to the second network information; and determining a target network to which the electronic equipment needs to be connected according to the first network quality and the second network quality, and controlling the electronic equipment to be connected with the target network. Therefore, the electronic equipment is accessed to a more stable target network in the coverage area of a plurality of cells, and the communication quality of the electronic equipment is improved.
For a more detailed understanding of the network handover method provided in the embodiment of the present application, please refer to fig. 3, wherein fig. 3 is a second flowchart of the network handover method provided in the embodiment of the present application. The network switching method may include the steps of:
201. determining location information corresponding to the electronic device relative to the first cell and the second cell.
In some embodiments, an electronic device may actively scan for cells present in the surroundings and determine location information where the electronic device is located relative to the surrounding cells. For example, the location information of the electronic device relative to the cell can be determined by scanning the base stations existing around and determining the coverage area of the cell corresponding to each base station around.
As shown in fig. 1, the coverage area corresponding to the first cell is S1, the coverage area corresponding to the second cell is S2, and the coverage areas covered by both the first cell and the second cell are S3.
202. At least one of a first network delay, a first signal-to-noise ratio and a first reference signal receiving power corresponding to the first cell is obtained to obtain first network information.
In some embodiments, the impact of different types of information on network quality is different, such as the impact of network delay, signal-to-noise ratio, and reference signal received power on network quality, respectively, is different. The electronic device may first obtain first weight values corresponding to the first network delay, the first signal-to-noise ratio, and the first reference signal received power, and then determine the first network information according to the first weight value, the first network delay, the first signal-to-noise ratio, and the first reference signal.
For example, first network delay, a first signal-to-noise ratio, and a first reference signal are obtained, and then a first weight value corresponding to the first network delay is multiplied by a corresponding value, a first weight value corresponding to the first signal-to-noise ratio is multiplied by a corresponding value, a first weight value corresponding to the first reference signal received power is multiplied by a corresponding value, and finally, product results of the first network delay, the first signal-to-noise ratio, and the first reference signal multiplied by the weight value are added to obtain first network information.
203. And acquiring at least one of a second network delay, a second signal-to-noise ratio and a second reference signal receiving power corresponding to the second cell to obtain second network information.
In some embodiments, the electronic device may first obtain a second weight value corresponding to the second network delay, the second signal-to-noise ratio, and the second reference signal received power, and then determine the second network information according to the second weight value, the second network delay, the second signal-to-noise ratio, and the second reference signal.
For example, first, values corresponding to the second network delay, the second signal-to-noise ratio, and the second reference signal are obtained, then, a second weight value corresponding to the second network delay is multiplied by the corresponding value, a second weight value corresponding to the second signal-to-noise ratio is multiplied by the corresponding value, a second weight value corresponding to the second reference signal received power is multiplied by the corresponding value, and finally, product results obtained by multiplying the second network delay, the second signal-to-noise ratio, and the second reference signal by the weight values are added to obtain the second network information.
In some embodiments, in the process of acquiring the first network information and the second network information, the electronic device may switch a connection state between a first network corresponding to the first cell and a second network corresponding to the second cell multiple times within a first preset time period to acquire the first network information and the second network information.
For example, the first preset duration is 10 seconds, the electronic device may switch between the first network and the second network within 10 seconds, for example, the first second electronic device is connected to the first network, during the connection period of the first network, the electronic device may acquire first network information corresponding to the first network, then the third second electronic device is connected to the second network, and the electronic device may acquire second network information corresponding to the second network. And when the network connection state of the electronic equipment is switched to the first network from the second network, and then the electronic equipment acquires the first network information corresponding to the first network again.
204. And determining a first network quality corresponding to the first cell according to the first network information, and determining a second network quality corresponding to the second cell according to the second network information.
In some embodiments, the first network information and the second network information may be one or more of a number of parameters including signal-to-noise ratio, reference signal received power, network delay, and the like. The electronic device may directly quantize the plurality of parameters, thereby outputting a quantized value corresponding to each parameter, and then use the quantized value as the network quality.
For example, the first network information includes a first signal-to-noise ratio and a first reference signal received power, then a quantized value corresponding to the first signal-to-noise ratio and the first reference signal received power is quantized in a preset quantization standard, and then the quantized value is used as the first network quality.
The second network information comprises a second signal-to-noise ratio and a second reference signal receiving power, then a quantized value corresponding to the second signal-to-noise ratio and the second reference signal receiving power is quantized in a preset quantization standard, and then the quantized value is used as a second network quality.
It should be noted that the preset quantization standard may quantize the first network quality and the second network quality within the same standard range, for example, a quantization value corresponding to the first network quality is within a range of 0 to 1, and a quantization value corresponding to the second network quality is also within a range of 0 to 1.
205. And determining a target network to which the electronic equipment needs to be connected according to the first network quality and the second network quality.
In some embodiments, after the electronic device determines the first network quality and the second network quality, a network with better network quality may be selected as the target network, for example, if the network quality of the first network corresponding to the first cell is better, the first network is selected as the target network.
206. And determining the connection duration corresponding to the target network, and controlling the electronic equipment to be connected with the target network within the connection duration.
In some embodiments, the electronic device may further determine a connection duration corresponding to the target network, and control the electronic device to connect to the target network within the connection duration. After the connection duration of the electronic device and the target network exceeds the connection duration, the electronic device may re-determine a new target network within a range covered by the first cell and the second cell, and then connect the electronic device and the new target network. In the network switching process, the network switching times of the electronic equipment are reduced as much as possible, so that the communication quality of the electronic equipment is ensured.
207. And continuously determining the position information corresponding to the electronic equipment relative to the first cell and the second cell.
In some embodiments, after controlling the electronic device to connect to the target network, the electronic device may also continue to determine the location information corresponding to the electronic device relative to the first cell and the second cell. For example, when the connection duration between the electronic device and the current target network reaches the set connection duration, the electronic device may continue to determine the location information corresponding to the electronic device with respect to the first cell and the second cell, so as to ensure that the electronic device is connected to the network of the cell at the corresponding location.
In some embodiments, the electronic device may further obtain the location information of the electronic device according to a preset period, for example, the location information of the electronic device is obtained every 5 minutes.
208. And if the position information indicates that the electronic equipment is located in the first cell or the second cell, controlling the electronic equipment to be connected with a first network corresponding to the first cell or a second network corresponding to the second cell.
And if the position information indicates that the electronic equipment is located in the first cell or the second cell, controlling the electronic equipment to be connected with a first network corresponding to the first cell or a second network corresponding to the second cell.
For example, when the electronic device enters a coverage range of a first cell from a coverage range of a first cell and a second cell, the electronic device is controlled to connect to a first network corresponding to the first cell. Thereby ensuring that the electronic equipment can normally communicate.
In the embodiment of the application, at least one of a first network delay, a first signal-to-noise ratio and a first reference signal receiving power corresponding to a first cell is obtained by determining position information corresponding to an electronic device relative to the first cell and a second cell, so as to obtain first network information; and acquiring at least one of a second network delay, a second signal-to-noise ratio and a second reference signal receiving power corresponding to the second cell to obtain second network information. And determining a first network quality corresponding to the first cell according to the first network information, and determining a second network quality corresponding to the second cell according to the second network information. And determining a target network to which the electronic equipment needs to be connected according to the first network quality and the second network quality. And determining the connection duration corresponding to the target network, and controlling the electronic equipment to be connected with the target network within the connection duration. And continuously determining the position information corresponding to the electronic equipment relative to the first cell and the second cell, and if the position information is that the electronic equipment is positioned in the first cell or the second cell, controlling the electronic equipment to be connected with a first network corresponding to the first cell or a second network corresponding to the second cell.
Referring to fig. 4, an embodiment of the present application further provides a network switching apparatus, where the network switching apparatus 300 includes:
a first determining module 310, configured to determine location information corresponding to the electronic device with respect to the first cell and the second cell.
An obtaining module 320, configured to obtain first network information of the first cell and second network information of the second cell if the location information is that the electronic device is in the first cell and the second cell.
The obtaining module 320 is further configured to switch, within a first preset time period, the connection state between the first network corresponding to the first cell and the second network corresponding to the second cell by the electronic device multiple times to obtain the first network information and the second network information.
The obtaining module 320 is further configured to obtain at least one of a first network delay, a first signal-to-noise ratio, and a first reference signal received power corresponding to the first cell, so as to obtain first network information; and acquiring at least one of a second network delay, a second signal-to-noise ratio and a second reference signal receiving power corresponding to the second cell to obtain second network information.
The obtaining module 320 is further configured to obtain first weight values corresponding to the first network delay, the first signal-to-noise ratio, and the first reference signal received power, respectively; and determining first network information according to the first weight value, the first network delay, the first signal-to-noise ratio and the first reference signal. Acquiring second weighted values corresponding to second network delay, a second signal-to-noise ratio and second reference signal receiving power respectively; and determining second network information according to the second weight value, the second network delay, the second signal-to-noise ratio and the second reference signal.
A second determining module 330, configured to determine a first network quality corresponding to the first cell according to the first network information, and determine a second network quality corresponding to the second cell according to the second network information.
The second determining module 330 is further configured to determine, within a first preset time period, target first network information corresponding to the first network according to the first network information and the first connection times of the electronic device and the first cell, and determine first network quality according to the target first network information; and determining target second network information corresponding to the second network according to the second network information and the second connection times of the electronic equipment and the second cell within the first preset time length, and determining second network quality according to the target second network information.
The connection module 340 is configured to determine a target network to which the electronic device needs to be connected according to the first network quality and the second network quality, and control the electronic device to connect to the target network.
The connection module 340 is further configured to determine a connection duration corresponding to the target network, and control the electronic device to connect to the target network within the connection duration.
The connection module 340 is further configured to continue to determine the location information corresponding to the electronic device with respect to the first cell and the second cell; and if the position information indicates that the electronic equipment is located in the first cell or the second cell, controlling the electronic equipment to be connected with a first network corresponding to the first cell or a second network corresponding to the second cell.
Accordingly, an electronic device may include, as shown in fig. 5, a memory 401 having one or more computer-readable storage media, an input unit 402, a display unit 403, a sensor 404, a processor 405 having one or more processing cores, and a power supply 406. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 5 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the memory 401 may be used to store software programs and modules, and the processor 405 executes various functional applications and data processing by operating the software programs and modules stored in the memory 401. The memory 401 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the electronic device, and the like. Further, the memory 401 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 401 may also include a memory controller to provide the processor 405 and the input unit 402 with access to the memory 401.
The input unit 402 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, input unit 402 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 405, and receives and executes commands sent from the processor 405. In addition, the touch sensitive surface can be implemented in various types, such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 402 may include other input devices in addition to a touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 403 may be used to display information input by or provided to a user and various graphical user interfaces of the electronic device, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 403 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 405 to determine the type of touch event, and then the processor 405 provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 5 the touch-sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The electronic device may also include at least one sensor 404, such as a light sensor, motion sensor, and other sensors. In particular, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the electronic device is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the motion sensor is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration) for recognizing the attitude of an electronic device, vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured to the electronic device, detailed descriptions thereof are omitted.
The processor 405 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 401 and calling data stored in the memory 401, thereby integrally monitoring the electronic device. Optionally, processor 405 may include one or more processing cores; preferably, the processor 405 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 405.
The electronic device also includes a power source 406 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 405 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 406 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the electronic device may further include a camera, a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 405 in the electronic device loads the computer program stored in the memory 401, and the processor 405 loads the computer program, thereby implementing various functions:
determining position information corresponding to the electronic equipment relative to a first cell and a second cell;
if the position information is that the electronic equipment is in a first cell and a second cell, acquiring first network information of the first cell and second network information of the second cell;
determining a first network quality corresponding to the first cell according to the first network information, and determining a second network quality corresponding to the second cell according to the second network information;
and determining a target network to which the electronic equipment needs to be connected according to the first network quality and the second network quality, and controlling the electronic equipment to be connected with the target network.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a computer-readable storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any network handover method provided in the embodiments of the present application. For example, the instructions may perform the steps of:
determining position information corresponding to the electronic equipment relative to a first cell and a second cell;
if the position information is that the electronic equipment is in a first cell and a second cell, acquiring first network information of the first cell and second network information of the second cell;
determining a first network quality corresponding to the first cell according to the first network information, and determining a second network quality corresponding to the second cell according to the second network information;
and determining a target network to which the electronic equipment needs to be connected according to the first network quality and the second network quality, and controlling the electronic equipment to be connected with the target network.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any network handover method provided in the embodiments of the present application, beneficial effects that can be achieved by any network handover method provided in the embodiments of the present application can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The network switching method, the network switching device, the electronic device, and the storage medium provided in the embodiments of the present application are described in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method for network handover, comprising:
determining position information corresponding to the electronic equipment relative to a first cell and a second cell;
if the position information is that the electronic equipment is in the first cell and the second cell, acquiring first network information of the first cell and second network information of the second cell;
determining a first network quality corresponding to the first cell according to the first network information, and determining a second network quality corresponding to the second cell according to the second network information;
and determining a target network to which the electronic equipment needs to be connected according to the first network quality and the second network quality, and controlling the electronic equipment to be connected with the target network.
2. The method of claim 1, wherein the obtaining first network information of a first cell and second network information of a second cell if the location information indicates that the electronic device is in the first cell and the second cell comprises:
and within a first preset time length, the electronic equipment switches the connection state between a first network corresponding to the first cell and a second network corresponding to the second cell for multiple times so as to acquire the first network information and the second network information.
3. The method of claim 2, wherein the determining a first network quality corresponding to the first cell according to the first network information and determining a second network quality corresponding to the second cell according to the second network information comprises:
within the first preset time, determining target first network information corresponding to the first network according to the first network information and the first connection times of the electronic equipment and the first cell, and determining the first network quality according to the target first network information;
and within the first preset time, determining target second network information corresponding to the second network according to the second network information and the second connection times of the electronic equipment and the second cell, and determining the second network quality according to the target second network information.
4. The method of claim 1, wherein the obtaining the first network information of the first cell and the second network information of the second cell comprises:
acquiring at least one of a first network delay, a first signal-to-noise ratio and a first reference signal receiving power corresponding to the first cell to obtain the first network information;
and acquiring at least one of a second network delay, a second signal-to-noise ratio and a second reference signal receiving power corresponding to the second cell to obtain the second network information.
5. The network handover method according to claim 4, wherein the obtaining at least one of a first network delay, a first signal-to-noise ratio, and a first reference signal received power corresponding to the first cell to obtain the first network information comprises:
acquiring first weighted values corresponding to the first network delay, the first signal-to-noise ratio and the first reference signal receiving power respectively;
determining the first network information according to the first weight value, the first network delay, the first signal-to-noise ratio and the first reference signal;
the obtaining at least one of a second network delay, a second signal-to-noise ratio, and a second reference signal received power corresponding to the second cell to obtain the second network information includes:
acquiring second weighted values corresponding to the second network delay, the second signal-to-noise ratio and the second reference signal receiving power respectively;
and determining the second network information according to the second weight value, the second network delay, the second signal-to-noise ratio and the second reference signal.
6. The network switching method according to any one of claims 1 to 5, wherein the controlling the electronic device to connect with the target network comprises:
and determining the connection duration corresponding to the target network, and controlling the electronic equipment to be connected with the target network within the connection duration.
7. The network handover method of claim 6, wherein after the controlling the electronic device to connect to the target network, the method further comprises:
continuously determining the position information corresponding to the electronic equipment relative to the first cell and the second cell;
and if the position information indicates that the electronic equipment is located in the first cell or the second cell, controlling the electronic equipment to be connected with a first network corresponding to the first cell or a second network corresponding to the second cell.
8. A network switching apparatus, comprising:
the first determining module is used for determining the position information corresponding to the electronic equipment relative to the first cell and the second cell;
an obtaining module, configured to obtain first network information of a first cell and second network information of a second cell if the location information is that the electronic device is in the first cell and the second cell;
a second determining module, configured to determine, according to the first network information, a first network quality corresponding to the first cell, and determine, according to the second network information, a second network quality corresponding to the second cell;
and the connection module is used for determining a target network to which the electronic equipment needs to be connected according to the first network quality and the second network quality and controlling the electronic equipment to be connected with the target network.
9. An electronic device, comprising:
a memory storing executable program code, a processor coupled with the memory;
the processor calls the executable program code stored in the memory to perform the steps in the network handover method according to any of claims 1 to 7.
10. A storage medium storing instructions adapted to be loaded by a processor to perform the steps of the network handover method according to any one of claims 1 to 7.
CN202210344678.6A 2022-03-31 2022-03-31 Network switching method and device, electronic equipment and storage medium Pending CN114710816A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210344678.6A CN114710816A (en) 2022-03-31 2022-03-31 Network switching method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210344678.6A CN114710816A (en) 2022-03-31 2022-03-31 Network switching method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114710816A true CN114710816A (en) 2022-07-05

Family

ID=82173507

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210344678.6A Pending CN114710816A (en) 2022-03-31 2022-03-31 Network switching method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114710816A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117425184A (en) * 2023-12-18 2024-01-19 美智纵横科技有限责任公司 Network connection method, device, readable storage medium and movable platform

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117425184A (en) * 2023-12-18 2024-01-19 美智纵横科技有限责任公司 Network connection method, device, readable storage medium and movable platform
CN117425184B (en) * 2023-12-18 2024-03-26 美智纵横科技有限责任公司 Network connection method, device, readable storage medium and movable platform

Similar Documents

Publication Publication Date Title
US10862595B2 (en) Method for processing radio frequency interference, and electronic device
CN109343759B (en) Screen-turning display control method and terminal
CN106993227B (en) Method and device for information display
CN109062467B (en) Split screen application switching method and device, storage medium and electronic equipment
CN108055408B (en) Application program control method and mobile terminal
CN106786962B (en) Charging control method and device and terminal
CN109067981B (en) Split screen application switching method and device, storage medium and electronic equipment
CN111405110B (en) Screen control method and device, storage medium and mobile terminal
CN107390922B (en) Virtual touch method, device, storage medium and terminal
CN111443815A (en) Vibration reminding method and electronic equipment
US11131557B2 (en) Full-vision navigation and positioning method, intelligent terminal and storage device
CN108984142B (en) Split screen display method and device, storage medium and electronic equipment
CN110022405B (en) Radio frequency parameter adjusting method, device and storage medium
CN111443803A (en) Mode switching method, device, storage medium and mobile terminal
CN108810284B (en) Mode switching method of camera and electronic equipment
CN109062469B (en) Split screen display method and device, storage medium and electronic equipment
CN108388400B (en) Operation processing method and mobile terminal
CN108170310B (en) Touch screen control method and mobile terminal
CN114710816A (en) Network switching method and device, electronic equipment and storage medium
CN108089935B (en) Application program management method and mobile terminal
CN111064847B (en) False touch prevention method and device, storage medium and electronic equipment
CN110824516B (en) Positioning method and electronic equipment
CN115828845A (en) Multimedia data viewing method, device, medium and equipment
CN115348256A (en) Posting data downloading method and device, storage medium and electronic equipment
CN111898542A (en) Display screen control method and device and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination