Network switching method and device, electronic equipment and computer readable storage medium

Pre-evaluation is carried out through the network quality map and switching the network based on the network reference quality, solving the problems of network switching delay and wrong switching in the prior art, improving the stability of data services and the timeliness of network switching.

CN119255331APending Publication Date: 2025-01-03GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411411909.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-10
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

The existing network switching scheme relies on real-time detection of network status of network cards, resulting in untimely or incorrect switching, affecting the stability of data services and failing to ensure network quality after switching.

Method used

Through the pre-recorded network quality map, the network reference quality of the target area is determined, and the network switching of data services is performed based on the reference quality of the first and second networks is avoided to avoid delays and missed switching in real-time detection.

Benefits of technology

It improves the stability of data services, ensures that before network abnormalities occur, and switches to a better-quality network, reduces unnecessary switching, and improves the timeliness and stability of network switching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119255331A_ABST
    Figure CN119255331A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a network switching method and device, electronic equipment and a computer readable storage medium. The stability of data services can be improved. The method comprises the following steps: based on a network quality map, determining first network reference quality corresponding to a first network in a first target area and second network reference quality corresponding to a second network in the first target area; the network quality map comprises pre-recorded network reference quality corresponding to each of the at least two networks in each of the at least one region; the at least two networks comprise a first network and a second network; the electronic device connects a first network and a second network. And switching the data service of the electronic equipment from the first network to the second network based on the first network reference quality and the second network reference quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a network switching method, device, electronic device and computer-readable storage medium. Background Art

[0002] At present, terminals that support dual or multiple SIM cards usually use one of the dual or multiple SIM cards as an Internet access card, and use the network of the Internet access card for data services. In addition, the network of the Internet access card will be detected in real time. If an abnormality is detected in the network of the Internet access card, such as very slow upload or download speed, the Internet access card switching is triggered, and other cards are replaced as the Internet access card for data services.

[0003] The current network switching solution is based on real-time detection of the network status of the network card. It is necessary to trigger the network card switching only after the network of the network card has been abnormal for a certain period of time, which may affect the normal operation of data services; and if the network in the area where the network card is currently located has temporary fluctuations, it may cause the network card to switch incorrectly or unnecessary network switching, affecting the normal operation of data services. Therefore, the stability of data services is reduced. Summary of the invention

[0004] The embodiments of the present application are intended to provide a network switching method, device, electronic device, and computer-readable storage medium that can improve the stability of data services.

[0005] The technical solution of this application is implemented as follows:

[0006] The present application provides a network switching method, including:

[0007] Based on the network quality map, determining a first network reference quality corresponding to a first network in a first target area, and a second network reference quality corresponding to a second network in the first target area; the network quality map includes: a pre-recorded network reference quality corresponding to each area of ​​each network of at least two networks in at least one area; the at least two networks include the first network and the second network; the electronic device connects the first network and the second network;

[0008] Based on the first network reference quality and the second network reference quality, the data service of the electronic device is switched from the first network to the second network.

[0009] The embodiment of the present application provides a network switching device, including:

[0010] A determination module, configured to determine, based on a network quality map, a first network reference quality corresponding to a first network in a first target area, and a second network reference quality corresponding to a second network in the first target area; the network quality map comprising: a pre-recorded network reference quality corresponding to each area of ​​each network of at least two networks in at least one area; the at least two networks comprising the first network and the second network; an electronic device connecting the first network and the second network;

[0011] A switching module is used to switch the data service of the electronic device from the first network to the second network based on the first network reference quality and the second network reference quality.

[0012] In the above-mentioned device, before switching the data service of the electronic device from the first network to the second network based on the first network reference quality and the second network reference quality, the determination module is also used to obtain, for each of the at least two networks, at least one network quality corresponding to each area of ​​each network in the at least one area; determine the network reference quality corresponding to each network in each area based on the at least one network quality corresponding to each network in each area, thereby determining the network quality map.

[0013] In the above device, the network reference quality includes at least one of signal strength and data transmission speed.

[0014] In the above-mentioned device, the data transmission speed includes: at least one transmission speed corresponding to at least one data service type; the determination module is also used to determine the first target area based on the current area where the electronic device is located; according to the current data service type corresponding to the data service currently performed by the electronic device, in the first target area of ​​the network quality map, determine the transmission speed corresponding to the current data service type under the first network, thereby determining the reference quality of the first network, and determine the transmission speed corresponding to the current data service type under the second network, thereby determining the reference quality of the second network.

[0015] In the above-mentioned device, the determination module is also used to determine the current area as the first target area; or, determine the moving speed of the electronic device; based on the current area and the moving speed, determine the area entered by the electronic device within a first time threshold as the first target area.

[0016] In the above device, the switching module is also used to switch the data service from the first network to the second network when the reference quality of the first network is less than a first quality threshold and the reference quality of the second network is greater than a second quality threshold; the second quality threshold is greater than or equal to the first quality threshold.

[0017] In the above device, the switching module is also used to determine the time it takes for the electronic device to enter the second target area in the network quality map from the first target area based on the moving speed of the electronic device and the network quality map; the network reference quality corresponding to the first network in the second target area is greater than or equal to the first quality threshold; when the time length is greater than the second time length threshold, the data service is switched from the first network to the second network.

[0018] In the above device, the determining module is further used to determine the timer duration when switching from the first network to the second network;

[0019] The switching module is further configured to switch from the second network to the first network when the timer expires.

[0020] In the above device, the determination module is also used to determine the time duration for the electronic device to enter the second target area from the first target area; the network reference quality corresponding to the first network in the second target area is greater than or equal to the first quality threshold; based on the time duration, determine the timer duration.

[0021] In the above device, the switching module is also used to display a switching prompt on the electronic device; receive a user operation corresponding to the switching prompt; and switch the data service of the electronic device from the first network to the second network when the user operation indicates that the switching is permitted.

[0022] In the above device, the electronic device connects the first network and at least one candidate second network; the at least one candidate second network includes the second network; the determination module is further used to determine, before determining the second network reference quality corresponding to the first target area of ​​the second network, based on the network quality map, at least one network reference quality corresponding to the at least one candidate second network in the first target area; and determine the second network in the at least one candidate second network according to the at least one network reference quality.

[0023] An embodiment of the present application provides an electronic device, including:

[0024] A transceiver for communicating with other external devices;

[0025] A memory for storing computer executable instructions or computer programs;

[0026] The processor is used to implement the network switching method provided in the embodiment of the present application by executing the computer executable instructions or computer programs stored in the memory.

[0027] The present application provides a chip, including:

[0028] A memory for storing computer executable instructions or computer programs;

[0029] The processor is used to implement the network switching method provided in the embodiment of the present application by executing the computer executable instructions or computer programs stored in the memory.

[0030] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions or a computer program. When the computer-executable instructions or the computer program are executed by a processor, the network switching method provided in the embodiment of the present application is implemented.

[0031] An embodiment of the present application provides a computer program product, including computer executable instructions or a computer program. When the computer executable instructions or the computer program are executed by a processor, the network switching method provided in the embodiment of the present application is implemented.

[0032] The embodiments of the present application have the following beneficial effects:

[0033] The first network reference quality corresponding to each area of ​​at least two networks pre-recorded in the network quality map in at least one area is used to determine the first network reference quality corresponding to the first target area of ​​the first network connected to the electronic device, and the second network reference quality corresponding to the second network connected to the electronic device in the first target area. Among them, the first network, as the network currently used by the electronic device for data services, can directly use the pre-recorded first network reference quality to evaluate the network quality of the first network in the first target area, and use the pre-recorded second network reference quality to evaluate the network quality of the first network in the first target area. In this way, based on the first network reference quality and the second network reference quality, the data service of the electronic device is switched from the first network to the second network, and the network switching is realized by using the prior information recorded in the network quality map. Before the first network currently used by the electronic device for data services is abnormal, the network quality of the first network and other networks connected to the electronic device, such as the network quality of the second network in the same area, can be pre-known, so that it can be pre-determined whether to switch the network before the data service network of the electronic device is abnormal and the data service can be switched to a network with better network quality in time, thereby improving the stability of the data service. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 This is an optional flowchart of the network switching method provided in the embodiment of the present application;

[0035] Figure 2 This is an optional flowchart of the network switching method provided in the embodiment of the present application;

[0036] Figure 3 This is an optional flowchart of the network switching method provided in the embodiment of the present application;

[0037] Figure 4 This is an optional structural diagram of a network switching device provided in an embodiment of the present application;

[0038] Figure 5 This is an optional structural diagram of a chip provided in an embodiment of the present application;

[0039] Figure 6 It is a schematic diagram of an optional structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0041] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0042] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0043] The term "and / or" herein is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set consisting of A, B, and C.

[0044] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0045] The current network switching solution relies on the real-time detection or perception of the network status of the network card, which may have the following problems:

[0046] 1. Slow perception leads to untimely switching. For example, it takes about 10 seconds of continuous real-time perception and evaluation of network quality to trigger the network card switching action, which can easily reduce the stability of data services due to untimely switching.

[0047] 2. Temporary network fluctuations may easily lead to erroneous switching or unnecessary network switching, thereby reducing the stability of data services.

[0048] 3. The current network switching is blindly switched to another card as the network card. It cannot ensure that data services can be carried out normally after switching the network card, nor can it accurately give the time to stay on the new network card. It can only rely on real-time perception to switch back to the original network card, or force switching back to the original network card through the set fixed timer, thereby reducing the stability of data services.

[0049] The embodiments of the present application provide a network switching method, device, electronic device and computer-readable storage medium, which can improve the stability of data services. Below, the network switching method of the embodiment of the present application is introduced with the electronic device as the execution subject. The electronic device in the embodiment of the present application may include various types of user terminals such as laptops, tablet computers, desktop computers, set-top boxes, mobile devices (e.g., mobile phones, portable music players, personal digital assistants, dedicated messaging devices, portable gaming devices); illustratively, the electronic device may include smart phones, tablet computers, laptops, desktop computers, smart speakers, smart watches, etc., but is not limited thereto.

[0050] Figure 1 is an optional flow chart of the network switching method provided in the embodiment of the present application, which will be combined with Figure 1 The steps shown are explained.

[0051] S101. Determine, based on a network quality map, a first network reference quality corresponding to a first network in a first target area, and a second network reference quality corresponding to a second network in the first target area.

[0052] In S101, the electronic device connects the first network and the second network, and the first network includes the network on which the electronic device currently performs data services. Exemplarily, the electronic device is configured with at least two subscriber identity modules (SIM) cards, and the first network may include the mobile data network corresponding to the first SIM card on the electronic device, and the second network may include the mobile data network corresponding to the second SIM card on the electronic device. The electronic device uses the first SIM card as an Internet access card and uses the first network corresponding to the first SIM card for data services, such as web browsing, network audio and video playback, file upload and download, etc.

[0053] Since the network quality of different SIM card networks in different areas may vary greatly due to factors such as the operator's network deployment quality, in the embodiment of the present application, a network quality map is constructed in advance by recording the network quality of the reference device when performing data services in various areas of the network as the network reference quality. In this way, the network quality map can be used to understand in advance the network reference quality corresponding to different networks when electronic devices perform data services in various areas, thereby providing prior information for electronic devices to evaluate network switching.

[0054] In an embodiment of the present application, the network quality map includes: a network reference quality corresponding to each area of ​​each network in at least one area in the pre-recorded at least two networks. Among them, the at least two networks include a first network and a second network. That is, the network quality map includes at least one area, and for each area in the at least one area, at least two network reference qualities corresponding to at least two networks in the area are recorded. Among them, the at least two network reference qualities are determined in advance by at least one reference device in the corresponding area using at least two networks for data services. In this way, when the terminal uses the first SIM card as an Internet card and uses the first network for data services, the network reference quality of the first network in the first target area, that is, the first network reference quality, can be determined according to the network quality map, and the network reference quality of the second network in the first target area, that is, the second network reference quality, can be determined. Through the first network reference quality and the second network reference quality, the electronic device can pre-understand the network quality of the first network and the second network in the first target area, and then pre-evaluate whether to perform network switching without relying on real-time detection of network quality.

[0055] In an embodiment of the present application, the first target area may include the area where the electronic device is currently located, such as the area corresponding to the cell in the first network where the electronic device is currently located, and may also include the area that the electronic device is about to enter, determined based on the motion state of the electronic device, such as the moving speed and moving direction, such as the area corresponding to the cell that is about to enter, as the first target area. The specific selection is made according to the actual situation, and the embodiment of the present application is not limited. By determining the network reference quality in the first target area for network switching, it can be ensured that the network switching is carried out in time or in advance, avoiding the inability to maintain the data service of the electronic device normally due to untimely switching, thereby improving the stability of the data service.

[0056] It should be noted that when the electronic device is connected to more than two network data, for example, the electronic device is configured with more than two SIM cards and both are normally connected to the network, the second network may be a default data service backup network, or may be a user-specified data service backup network, or the second network may be determined based on the network reference quality.

[0057] In some embodiments, the electronic device connects the first network to at least one candidate second network; at least one candidate second network includes a second network; before the electronic device determines the second network reference quality corresponding to the first target area of ​​the second network, it can also determine at least one network reference quality corresponding to the first target area of ​​at least one candidate second network based on the network quality map. Among them, based on the network quality map, the network reference quality corresponding to each candidate second network in the first target area of ​​at least one candidate second network can be determined as at least one network reference quality. In this way, the electronic device can determine the second network in at least one candidate second network based on at least one network reference quality. Exemplarily, the electronic device can determine the candidate second network corresponding to the highest network reference quality in at least one network reference quality as the second network. Alternatively, the electronic device can determine one or more candidate second networks with at least one network reference quality greater than a preset threshold, and determine the second network in one or more candidate second networks in combination with the available network traffic of each candidate second network. Other strategies can also be designed according to actual conditions to determine the second network, and the embodiments of the present application are not limited thereto.

[0058] In some embodiments, the network reference quality may include at least one of signal strength and data transmission speed. That is, the first network reference quality may include at least one of the signal strength and data transmission speed of the first network in the first target area. The second network reference quality may include at least one of the signal strength and data transmission speed of the second network in the first target area.

[0059] Exemplarily, the network quality map may include: at least one area, at least two operators' networks in each area; the signal strength and / or data transmission speed of each operator's network in the area; the data transmission speed includes the upload speed and / or download speed of the data service. In some embodiments, the data transmission speed may be further subdivided according to the service type or Internet access type of the data service currently being performed by the electronic device. Exemplarily, the data service type may include: web browsing type, live broadcast type, network audio and video playback type, or file transfer type, etc. In this way, the data transmission speed corresponding to each network in an area may include at least one transmission speed corresponding to at least one data service type, that is, at least one upload speed and / or download speed corresponding to at least one data service type. Using the transmission speed corresponding to the data service type, the network quality of the electronic device when performing the corresponding data service can be more accurately evaluated.

[0060] S102: Switching a data service of the electronic device from the first network to the second network based on the first network reference quality and the second network reference quality.

[0061] In S102, the electronic device can determine whether the network quality of the first network and the second network in the first target area is normal based on the first network reference quality and the second network reference quality. When the first network reference quality indicates that the network quality of the first network in the first target area is abnormal, and the second network reference quality indicates that the network quality of the second network in the second target area is normal, the data service of the electronic device is switched from the first network to the second network. It can be seen that the embodiment of the present application performs network switching based on prior information, that is, the pre-recorded first network reference quality and second network reference quality, and does not rely on the real-time detection of the currently used data service network, such as the first network, which can improve the timeliness of network switching and thus improve the stability of data services.

[0062] In some embodiments, the first network corresponds to a first SIM card on the electronic device; the second network corresponds to a second SIM card on the electronic device. When the electronic device switches the data service from the first network to the second network, the second SIM card can be used as an Internet access card for the data service, and the data service on the first SIM card can be switched or transferred to the second SIM card.

[0063] It should be noted that, in some embodiments, when the network reference quality includes signal strength and data transmission speed, a comprehensive quality score can be determined in combination with the signal strength and the data transmission speed, and the network reference quality can be characterized according to the comprehensive quality score. Exemplarily, the comprehensive quality score can be determined by weighted calculation of the signal strength and the data transmission speed, such as weighted summation or weighted average, and the weights corresponding to the signal strength and the data transmission speed can be the same or different, and the specific selection is made according to the actual situation, and the embodiments of the present application are not limited.

[0064] In some embodiments, switching a data service of an electronic device from a first network to a second network includes:

[0065] Displaying a switching prompt on the electronic device; receiving a user operation corresponding to the switching prompt; and switching the data service of the electronic device from the first network to the second network when the user operation indicates that the switching is permitted.

[0066] That is to say, before switching the data service of the electronic device from the first network to the second network, a switching prompt can also be displayed to the user through the display module of the electronic device. Exemplarily, the switching prompt may include the network or network card information to be switched, that is, the information of the second network, and controls for obtaining user operations, such as buttons for agreeing to switch or rejecting the switch. By receiving the user operation corresponding to the switching prompt, in the case where the user operation represents the permission to switch, such as when the user clicks the button for agreeing to switch, the network switching action is performed to switch the data service of the electronic device from the first network to the second network. In the case where the user operation represents the disapproval of switching, such as when the user clicks the button for rejecting the switch, the network switching is not performed. In this way, the user can be fully prompted with the relevant information of the network switching, and the switching can be implemented with the user's permission.

[0067] It can be understood that the first network reference quality corresponding to each area of ​​each network of at least two networks pre-recorded in the network quality map in at least one area is used to determine the first network reference quality corresponding to the first target area of ​​the first network connected to the electronic device, and the second network reference quality corresponding to the second network connected to the electronic device in the first target area. Among them, the first network, as the network currently used by the electronic device for data services, can directly use the pre-recorded first network reference quality to evaluate the network quality of the first network in the first target area, and use the pre-recorded second network reference quality to evaluate the network quality of the first network in the first target area. In this way, based on the first network reference quality and the second network reference quality, the data service of the electronic device is switched from the first network to the second network, and the network switching is realized by using the prior information recorded in the network quality map. Before the first network currently used by the electronic device for data services is abnormal, the network quality of the first network and other networks connected to the electronic device, such as the network quality of the second network in the same area, can be pre-known, so that it can be pre-determined whether to switch the network before the data service network of the electronic device is abnormal and the data service can be switched to a network with better network quality in time, thereby improving the stability of the data service.

[0068] In some embodiments, switching a data service of an electronic device from a first network to a second network based on the first network reference quality and the second network reference quality includes:

[0069] When the reference quality of the first network is less than a first quality threshold and the reference quality of the second network is greater than a second quality threshold, the data service is switched from the first network to the second network, wherein the first quality threshold and the second quality threshold are preset quality thresholds.

[0070] In some embodiments, the first quality threshold represents the minimum quality threshold required for the electronic device to currently perform data services. When the first network reference quality is less than the first quality threshold, it means that the network reference quality of the first network in the first target area cannot guarantee the normal performance of the current data service of the electronic device, and the electronic device determines that network switching is required.

[0071] In some embodiments, the first quality threshold and the second quality threshold may be the same or different, and the second quality threshold is greater than or equal to the first quality threshold. When the second network reference quality is greater than the second quality threshold, it means that the network reference quality of the second network in the second target area can ensure that the current data service of the electronic device is normal, and the electronic device can determine to switch the data service of the electronic device from the first network to the second network.

[0072] Exemplarily, in the case where the network reference quality includes signal strength, the first quality threshold and the second quality threshold may include a first signal strength threshold corresponding to the first network, and a second signal strength threshold corresponding to the second network. In the case where the network reference quality includes data transmission speed, the first quality threshold may include a first data transmission speed threshold corresponding to the first network; the second quality threshold may include a second data transmission speed threshold corresponding to the second network; the first data transmission speed threshold and the second data transmission speed threshold may be pre-set according to the data service type of the data service currently being performed by the electronic device, and different data service types may correspond to different first data transmission speed thresholds and second data transmission speed thresholds. In the case where the network reference quality includes signal strength and data transmission speed, the first quality threshold may include: a first comprehensive quality score threshold determined according to the first signal strength threshold and the first data transmission speed threshold; the second quality threshold may include a second comprehensive quality score threshold determined according to the second signal strength threshold and the second data transmission speed threshold; similarly, the first data transmission speed threshold and the second data transmission speed threshold may be pre-set according to the data service type of the data service currently being performed by the electronic device.

[0073] In some embodiments, when the first network reference quality is less than a first quality threshold and the second network reference quality is greater than a second quality threshold, the process of the electronic device switching the data service from the first network to the second network includes:

[0074] According to the moving speed of the electronic device and the network quality map, the time duration for the electronic device to enter the second target area in the network quality map from the first target area is determined; the network reference quality corresponding to the first network in the second target area is greater than or equal to the first quality threshold; when the time duration is greater than the second time duration threshold, the data service is switched from the first network to the second network.

[0075] That is to say, according to the moving speed of the electronic device, or according to the moving speed and moving direction of the electronic device, the time required for the electronic device to switch from the first target area to the second network to enter the second target area can be determined in the network quality map. Among them, the network reference quality corresponding to the first network in the second target area is greater than or equal to the first quality threshold, indicating that the first network can ensure the normal operation of the data service in the second target area. Therefore, the time it takes for the electronic device to enter the second target area from the first target area is equivalent to the time it takes for the first network of the electronic device to recover from an abnormal state to a normal state. When the duration is greater than the second duration threshold, it means that the electronic device has been in an abnormal state for a long time, and at this time it is determined to switch the data service from the first network to the second network.

[0076] It should be noted that there may be any number of areas between the first target area and the second target area, which needs to be determined based on the network reference quality of the first network in each area in the network quality map. In the moving direction of the electronic device, if it is known in advance based on the network quality map that the network reference quality of the first network in the next area of ​​the first target area is greater than or equal to the first quality threshold, the time it takes for the electronic device to move from the first target area to the next area can be calculated based on the moving speed of the electronic device. If it is known in advance based on the network quality map that the network reference quality of the first network in the next or multiple consecutive areas of the first target area is less than the first quality threshold until the second target area; then it is necessary to calculate the time required for the electronic device to move from the first target area through one or more consecutive areas to the second target area based on the moving speed of the electronic device.

[0077] Exemplarily, when a user uses mobile phone card 1 as an Internet card on a high-speed rail or highway, the mobile network of card 1 is used for data services, and the user's mobile phone is also configured with card 2. Through the network quality map, it can be known in advance that card 1 will enter an abnormal Internet access interval of duration T2 within the time T1 ahead, and it is known in advance that card 2 will access the Internet normally in this interval. The mobile phone can switch card 2 to an Internet access card to ensure the smoothness, continuity and stability of the user's Internet experience. Among them, T1 can represent the time required for card 1 to move from the current location to the time when the network reference quality of card 1 is less than the first quality threshold. T2 can represent the time required for card 1 to enter an area where the network reference quality is less than the first quality threshold and enter an area where the network reference quality is greater than or equal to the first quality threshold. T1 and T2 can be determined based on the terminal's moving speed, moving direction and network quality map.

[0078] It can be understood that when the time from the first target area to the second target area is greater than the second time threshold, the data service is switched from the first network to the second network. The prior information in the network quality map can be utilized to reduce unnecessary switching or erroneous switching caused by temporary fluctuations in the network, thereby avoiding frequent switching and improving the stability of the data service.

[0079] In some embodiments, based on Figure 1 Before S101, you can Figure 2 As shown, by executing the process of S001-S002, a network quality map is constructed as follows:

[0080] S001. For each of at least two networks, obtain at least one network quality corresponding to each area of ​​each network in at least one area.

[0081] S002. Determine a network reference quality corresponding to each network in each area according to at least one network quality corresponding to each network in each area, thereby determining a network quality map.

[0082] In an embodiment of the present application, at least one reference device may be used in advance to perform data services in each area of ​​at least one area. For each area, each reference device in at least one reference device uses at least one of at least two networks to perform data services, and records the network quality of the network used by each reference device when performing data services, such as recording the area where the reference device is located, the operator network used, and the corresponding signal strength and / or data transmission speed, etc., so as to obtain at least one network quality obtained by each reference device using at least one network to perform data services in each area. That is, at least one network quality obtained by each reference device using at least one network to perform data services in each area is equivalent to the historical network quality recorded in advance by the reference device. In an embodiment of the present application, an area may include one or more cells.

[0083] For each network in each area, at least one network quality obtained by at least one reference device using the network for data services in the area is counted, and then the network reference quality corresponding to the network in the area is determined in combination with the at least one network quality. The same method is used to process at least one area, and the network reference quality corresponding to the network in each area of ​​at least one area can be obtained, and then the at least one network reference quality corresponding to the network in at least one area can be obtained.

[0084] By processing each of the at least two networks using the same method, at least one network reference quality corresponding to each network in at least one area can be obtained. In this way, a network quality map is constructed; the network quality map includes the network reference quality corresponding to each area of ​​each of the at least two networks in at least one area.

[0085] Exemplarily, at least one reference device can be used to perform data service tests on a preset high-speed rail line or highway line. Each reference device records the network quality of each network in each area during the data service test. Each reference device uploads the recorded network quality of each network in each area to a database. A network quality map can be constructed based on the network quality of each reference device performing data services through each network in each area recorded in the database.

[0086] It should be noted that when the electronic device is used as a terminal, at least one reference device in each network of at least two networks can be obtained from the server, and at least one network quality for data services in each area of ​​at least one area; the electronic device, that is, the terminal, determines the network reference quality corresponding to each network in each area based on at least one network quality corresponding to each network in each area, thereby determining the network quality map. Alternatively, in some embodiments, the network quality map can also be generated by a server. The constructed network quality map can be deployed on a cloud server, and the electronic device can obtain the network quality map by connecting to the cloud server. Exemplarily, after the electronic device is turned on or connected to a data service, it first reads the preset network address and connects to the server corresponding to the preset network address, obtains the network quality map from the server, and then can implement the network switching method of the embodiment of the present application based on the network quality map.

[0087] It is understandable that by constructing a network quality map, it is possible to understand in advance the quality differences of different networks in various areas without relying on real-time detection of network quality, thereby ensuring timely network switching and improving the stability of data services.

[0088] In some embodiments, the network quality recorded by the reference device may include: at least one transmission speed determined by the reference device through performing a data service of at least one data service type. In this case, the network reference quality in the network quality map includes a data transmission speed, and the data transmission speed may include: at least one transmission speed corresponding to at least one data service type. The above S101 may be implemented by executing the following process:

[0089] Based on the current area where the electronic device is located, a first target area is determined; according to the current data service type corresponding to the data service currently performed by the electronic device and the first target area of ​​the network quality map, the transmission speed corresponding to the current data service type under the first network is determined, thereby determining the reference quality of the first network, and the transmission speed corresponding to the current data service type under the second network is determined, thereby determining the reference quality of the second network.

[0090] In this embodiment, the first target area where it is necessary to determine whether to perform a network switch can be determined based on the area where the electronic device is currently located. In some embodiments, the current area can be determined as the first target area; or, the moving speed of the electronic device is determined; based on the current area and the moving speed, the area that the electronic device enters within the first time threshold is determined as the first target area. In an embodiment of the present application, the first target area may include one or more cells, and the current area includes: one or more cells including the current cell where the electronic device is located. The area that the electronic device enters within the first time threshold can represent the area that the electronic device is about to enter, which is determined based on the current area and moving speed of the electronic device, combined with the moving direction of the electronic device.

[0091] In this embodiment, since the data transmission speed in the network reference quality includes at least one transmission speed corresponding to at least one data service type, the electronic device can determine the transmission speed corresponding to the current data service type of the first network in the first target area according to the current data service type corresponding to the currently performed data service, in combination with the network quality map, and determine the transmission speed corresponding to the current data service type of the second network in the first target area. Furthermore, the network reference qualities corresponding to the first network and the second network can be determined respectively according to the transmission speed corresponding to the same data service type, so as to further evaluate whether to perform network switching based on the network reference quality.

[0092] In some embodiments, each of at least one area included in the network quality map corresponds to at least two networks, and each of the at least two networks corresponds to the signal strength of the network in the area and at least one transmission speed corresponding to at least one data service type of the network in the area. In this way, in the case where the network reference quality includes signal strength and data transmission speed, the transmission speed corresponding to the current data service type of the network (such as the first network or the second network) in the first target area can be determined in the network quality map according to the current data service type of the electronic device, and the signal strength of the network in the first target area can be determined according to the network quality map. In addition, the transmission speed and signal strength corresponding to the network in the first target area can be determined as the network reference quality corresponding to the network.

[0093] Exemplarily, according to the current data service type of the electronic device, the transmission speed corresponding to the current data service type of the first network in the first target area can be determined as the first transmission speed in the network quality map. Furthermore, according to the network quality map, the signal strength of the first network in the first target area can be determined as the first signal strength. The first transmission speed and the first signal strength are used as the first network reference quality, that is, the first network reference quality is determined.

[0094] For example, according to the current data service type of the electronic device, the transmission speed corresponding to the current data service type of the second network in the first target area can be determined in the network quality map as the second transmission speed. In addition, according to the network quality map, the signal strength of the second network in the first target area can be determined as the second signal strength. The second transmission speed and the second signal strength are used as the second network reference quality, that is, the second network reference quality is determined.

[0095] In some embodiments, when the network reference quality includes data transmission speed, the transmission speed corresponding to the current data service type of the network (such as the first network or the second network) in the first target area can be determined in the network quality map according to the current data service type of the electronic device, and then the transmission speed corresponding to the network in the first target area can be determined as the network reference quality corresponding to the network.

[0096] Exemplarily, based on the current data service type of the electronic device, in the network quality map, the transmission speed corresponding to the current data service type of the first network in the first target area can be determined as the first transmission speed, and the first transmission speed can be used as the first network reference quality, that is, the first network reference quality is determined.

[0097] Exemplarily, based on the current data service type of the electronic device, the transmission speed corresponding to the current data service type of the second network in the first target area can be determined in the network quality map as the second transmission speed, and the second transmission speed can be used as the second network reference quality, that is, the second network reference quality is determined.

[0098] It is understandable that by determining the first target area, network switching can be performed in a timely or pre-emptive manner, preventing untimely switching that may be caused by performing network switching through real-time detection, thereby improving the stability of data services. In addition, determining the network reference quality based on the current data service type can improve the accuracy of the network reference quality as reference information or prior information, thereby improving the accuracy of network switching evaluation based on the network reference quality, and ultimately improving the stability of data services.

[0099] In some embodiments, when it is determined that switching from the first network to the second network is required based on the first network reference quality and the second network reference quality, a timer duration may also be determined, and when the timer duration expires, switching from the second network to the first network is performed.

[0100] In this embodiment, the electronic device can determine the timer duration and set the timer duration timer while executing the switch from the second network to the first network; or, it can also determine the timer duration and set the timer duration timer at a time close to the switching time. The specific selection is made according to the actual situation, and the embodiment of the present application is not limited.

[0101] In an embodiment of the present application, a timer is used to set and start a timer for a timer duration, and the timer is used to time when the electronic device uses the second network for data services. When the timing duration exceeds the timer duration, the network is triggered to switch back from the second network to the first network.

[0102] It is understandable that since the first network usually sets up a data traffic card for the user, timely switching back through timer control can control the data traffic to be consumed in the user's common card as much as possible while ensuring the stability of data services, thereby improving the user's comprehensive Internet experience.

[0103] In some embodiments, the timer duration may be a preset fixed value, or, in some embodiments, may be Figure 3 As shown, determine the timer duration as follows:

[0104] S201: Determine the duration of time it takes for an electronic device to enter a second target area from a first target area.

[0105] S202: Determine a timer duration based on a time duration of entering a second target area from a first target area.

[0106] In the embodiment of the present application, determining the duration of the electronic device entering the second target area from the first target area is consistent with the same process description in the aforementioned embodiment, that is, the duration can be calculated based on the moving speed, moving direction and network quality map of the electronic device, which will not be repeated here. In some embodiments, the timer duration is not less than the duration of the electronic device entering the second target area from the first target area.

[0107] It can be understood that since the time it takes for the electronic device to enter the second target area from the first target area represents the time required for the first network to recover from the network abnormality to normal, the timer length is determined based on the time it takes for the electronic device to enter the second target area from the first target area. The timer length can be flexibly set to ensure that the first network can provide normal network quality for terminal data services when switching back, thereby improving the accuracy of network switching and the stability of data services.

[0108] The present application also provides a network switching device, which is applied to electronic equipment. Figure 4 A schematic diagram of the structure of a network switching device provided in an embodiment of the present application; Figure 4 As shown, the network switching device 1 includes:

[0109] The determination module 11 is used to determine, based on a network quality map, a first network reference quality corresponding to a first network in a first target area, and a second network reference quality corresponding to a second network in the first target area; the network quality map includes: a pre-recorded network reference quality corresponding to each area of ​​each network of at least two networks in at least one area; the at least two networks include the first network and the second network; the electronic device connects the first network and the second network;

[0110] The switching module 12 is used to switch the data service of the electronic device from the first network to the second network based on the first network reference quality and the second network reference quality.

[0111] In some embodiments, before switching the data service of the electronic device from the first network to the second network based on the first network reference quality and the second network reference quality, the determination module 11 is also used to obtain, for each of the at least two networks, at least one network quality corresponding to each area of ​​each network in the at least one area; determine the network reference quality of each network corresponding to each area based on the at least one network quality corresponding to each network in each area, thereby determining the network quality map.

[0112] In some embodiments, the network reference quality includes at least one of signal strength and data transmission speed.

[0113] In some embodiments, the data transmission speed includes: at least one transmission speed corresponding to at least one data service type; the determination module 11 is also used to determine the first target area based on the current area where the electronic device is located; according to the current data service type corresponding to the data service currently performed by the electronic device, in the first target area of ​​the network quality map, determine the transmission speed corresponding to the current data service type under the first network, thereby determining the reference quality of the first network, and determine the transmission speed corresponding to the current data service type under the second network, thereby determining the reference quality of the second network.

[0114] In some embodiments, the determination module 11 is also used to determine the current area as the first target area; or, determine the moving speed of the electronic device; based on the current area and the moving speed, determine the area entered by the electronic device within a first time threshold as the first target area.

[0115] In some embodiments, the switching module 12 is also used to switch the data service from the first network to the second network when the reference quality of the first network is less than a first quality threshold and the reference quality of the second network is greater than a second quality threshold; the second quality threshold is greater than or equal to the first quality threshold.

[0116] In some embodiments, the switching module 12 is also used to determine the time it takes for the electronic device to enter the second target area in the network quality map from the first target area based on the moving speed of the electronic device and the network quality map; the network reference quality corresponding to the first network in the second target area is greater than or equal to the first quality threshold; when the time length is greater than the second time length threshold, the data service is switched from the first network to the second network.

[0117] In some embodiments, the determining module 11 is further configured to determine a timer duration when switching from the first network to the second network;

[0118] The switching module 12 is further configured to switch from the second network to the first network when the timer expires.

[0119] In some embodiments, the determination module 11 is also used to determine the time duration for the electronic device to enter the second target area from the first target area; the network reference quality corresponding to the first network in the second target area is greater than or equal to a first quality threshold; based on the time duration, determine the timer duration.

[0120] In some embodiments, the switching module 12 is further used to display a switching prompt on the electronic device; receive a user operation corresponding to the switching prompt; and switch the data service of the electronic device from the first network to the second network when the user operation indicates that the switching is permitted.

[0121] In some embodiments, the electronic device connects the first network to at least one candidate second network; the at least one candidate second network includes the second network; the determination module 11 is further used to determine, before determining the second network reference quality corresponding to the first target area of ​​the second network, based on the network quality map, at least one network reference quality corresponding to the at least one candidate second network in the first target area; and determine the second network in the at least one candidate second network according to the at least one network reference quality.

[0122] It should be noted that the description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0123] In some embodiments, the present application also provides a chip, Figure 5 This is an optional structural diagram of a chip provided in an embodiment of the present application. Figure 5 As shown, the chip 2 includes: a memory 22 and a processor 23. The memory 22 and the processor 23 are connected via a communication bus 24; the memory 22 is used to store computer executable instructions or computer programs; the processor 23 is used to implement the method provided in the embodiment of the present application when executing the computer executable instructions or computer programs stored in the memory 22, for example, the network switching method provided in the embodiment of the present application.

[0124] In some embodiments, the present application also provides an electronic device, Figure 6 This is an optional structural diagram of an electronic device provided in an embodiment of the present application. Figure 6 As shown, the electronic device 3 includes: a memory 32, a processor 33 and a transceiver 34. Among them, the memory 32, the processor 33 and the transceiver 34 are connected via a communication bus 35; the memory 32 is used to store computer executable instructions or computer programs; the processor 33 is used to implement the method provided in the embodiment of the present application when executing the computer executable instructions or computer programs stored in the memory 22, for example, the network switching method provided in the embodiment of the present application. The transceiver 34 is used to communicate with other external devices. In some embodiments, the processor 33 can control the transceiver 34 to communicate with other external devices, specifically, it can send information or data to other external devices, or receive information or data sent by other external devices.

[0125] In some embodiments, the transceiver 34 may include a transmitter and a receiver. The transceiver 34 may further include an antenna, and the number of antennas may be one or more.

[0126] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions or a computer program for causing the processor 23 to execute and implement the method provided by the embodiment of the present application, for example, the network switching method provided by the embodiment of the present application.

[0127] In some embodiments of the present application, the storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or it may be various devices including one or any combination of the above memories.

[0128] An embodiment of the present application provides a computer program product, including computer executable instructions or a computer program. When the computer executable instructions or the computer program are executed by the processor 23, the method provided by the embodiment of the present application is implemented, for example, the network switching method provided by the embodiment of the present application.

[0129] In some embodiments of the present application, computer executable instructions or computer programs may be in the form of programs, software, software modules, scripts or codes, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as stand-alone programs or as modules, components, subroutines or other units suitable for use in a computing environment.

[0130] As an example, computer-executable instructions or computer programs may, but do not necessarily, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a Hyper Text Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).

[0131] By way of example, computer-executable instructions or a computer program may be deployed to be executed on one computing device or on multiple computing devices at one site or on multiple computing devices distributed across multiple sites and interconnected by a communication network.

[0132] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.

[0133] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0134] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0135] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0136] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.

Claims

1. A network switching method, characterized in that: include: Determine, based on the network quality map, a first network reference quality corresponding to the first network in the first target area, and a second network reference quality corresponding to the second network in the first target area; The network quality map includes: a pre-recorded network reference quality corresponding to each area of ​​each network in at least one area of ​​at least two networks; the at least two networks include the first network and the second network; the electronic device connects the first network and the second network; Based on the first network reference quality and the second network reference quality, the data service of the electronic device is switched from the first network to the second network.

2. The method according to claim 1, characterized in that Before switching the data service of the electronic device from the first network to the second network based on the first network reference quality and the second network reference quality, the method further includes: For each of the at least two networks, obtaining at least one network quality corresponding to each area of ​​each network in the at least one area; According to at least one network quality corresponding to each network in each area, a network reference quality corresponding to each network in each area is determined, thereby determining the network quality map.

3. The method according to claim 1 or 2, characterized in that: The network reference quality includes at least one of signal strength and data transmission speed.

4. The method according to claim 3, characterized in that The data transmission speed includes: at least one transmission speed corresponding to at least one data service type; the determining, based on the network quality map, a first network reference quality corresponding to the first network in the first target area, and a second network reference quality corresponding to the second network in the first target area includes: Determining the first target area based on a current area where the electronic device is located; According to the current data service type corresponding to the data service currently being performed by the electronic device, in the first target area of ​​the network quality map, the transmission speed corresponding to the current data service type under the first network is determined, thereby determining the reference quality of the first network, and the transmission speed corresponding to the current data service type under the second network is determined, thereby determining the reference quality of the second network.

5. The method according to claim 4, characterized in that The determining the first target area based on the current area where the electronic device is located includes: Determining the current area as the first target area; or, determining a moving speed of the electronic device; Based on the current area and the moving speed, an area entered by the electronic device within a first time threshold is determined as the first target area.

6. The method according to claim 1 or 2, characterized in that: The switching of the data service of the electronic device from the first network to the second network based on the first network reference quality and the second network reference quality includes: When the reference quality of the first network is less than a first quality threshold and the reference quality of the second network is greater than a second quality threshold, the data service is switched from the first network to the second network; the second quality threshold is greater than or equal to the first quality threshold.

7. The method according to claim 6, characterized in that The switching the data service from the first network to the second network includes: Determining, according to the moving speed of the electronic device and the network quality map, the time duration for the electronic device to enter the second target area in the network quality map from the first target area; the network reference quality corresponding to the first network in the second target area is greater than or equal to the first quality threshold; When the duration is greater than a second duration threshold, the data service is switched from the first network to the second network.

8. The method according to any one of claims 1, 2, 4, 5 or 7, characterized in that The method further comprises: In case of switching from the first network to the second network, determining a timer duration; When the timer expires, switching from the second network to the first network.

9. The method according to claim 8, characterized in that The determining of the timer duration includes: Determine the time duration for the electronic device to enter the second target area from the first target area; the network reference quality corresponding to the first network in the second target area is greater than or equal to a first quality threshold; Based on the duration, the timer duration is determined.

10. The method according to claim 1, characterized in that The switching of the data service of the electronic device from the first network to the second network includes: Displaying a switching prompt on the electronic device; Receiving a user operation corresponding to the switching prompt; In a case where the user operation indicates that switching is permitted, the data service of the electronic device is switched from the first network to the second network.

11. The method according to any one of claims 1, 2, 4, 5, 9 or 10, characterized in that The electronic device connects the first network to at least one candidate second network; the at least one candidate second network includes the second network; Before determining a second network reference quality corresponding to the second network in the first target area, the method further includes: Determining, based on the network quality map, at least one network reference quality corresponding to the at least one candidate second network in the first target area; The second network is determined from among the at least one candidate second network according to the at least one network reference quality.

12. A network switching device, characterized in that: include: A determination module, configured to determine, based on the network quality map, a first network reference quality corresponding to the first network in the first target area, and a second network reference quality corresponding to the second network in the first target area; The network quality map includes: a pre-recorded network reference quality corresponding to each area of ​​each network in at least one area of ​​at least two networks; the at least two networks include the first network and the second network; the electronic device connects the first network and the second network; A switching module is used to switch the data service of the electronic device from the first network to the second network based on the first network reference quality and the second network reference quality.

13. An electronic device, characterized in that: include: A transceiver for communicating with other external devices; A memory for storing computer executable instructions or computer programs; A processor, configured to implement the method according to any one of claims 1 to 11 by executing computer executable instructions or computer programs stored in the memory.

14. A computer-readable storage medium, characterized in that: Computer executable instructions or computer programs are stored, and when the computer executable instructions or computer programs are executed by a processor, the method described in any one of claims 1 to 11 is implemented.

15. A chip, characterized in that: include: A memory for storing computer executable instructions or computer programs; A processor, configured to implement the method according to any one of claims 1 to 11 by executing computer executable instructions or computer programs stored in the memory.