Switching method, device and equipment of communication network and computer storage medium

CN118804178BActive Publication Date: 2026-10-23CHINA MOBILE GROUP ANHUI +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202311462600.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-02
Publication Date
2026-10-23
Estimated Expiration
2043-11-02

AI Technical Summary

Technical Problem

[0003]但是,两个开关控件同时打开,无线局域网络和移动网络同时进行周期性信号扫描,这就会对终端造成不必要的能量损耗

Benefits of technology

[0042]本申请实施例的通信网络的切换方法、装置、设备及计算机存储介质,通过获取终端在连接第一移动网络后通过第一移动网络进行的上网通信时的上行数据,由此便可以根据上行数据判断通过第一移动网络进行上网通信时的网络速率和网络状态,从而对于处于第一网络速率需求以及当前网络状态为第一网络状态则可以认为通过第一移动网络进行通信不能满足通信需求,因此可以指纹信息库,确定存在与第一移动网络对应的第一无线局域网络的网络信息,从而可以打开无线局域网络连接控件,使得终端根据第一无线局域网络的网络信息连接第一无线局域网络,进而让终端完成由第一移动网络到第一无线局域网络连接的切换,基于此,有效地控制了无线局域网络连接控件的开启,使得在终端真正需要与无线局域网络连接,并且有无线局域网络可以连接的情况下才开启无线局域网络连接控件,由此减少了无线局域网络控件在没有需求的情况下的开启时间,降低了终端的能量损耗。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118804178B_ABST
    Figure CN118804178B_ABST
Patent Text Reader

Abstract

The application discloses a switching method and device of a communication network, equipment and a computer storage medium, and relates to the technical field of communication networks. The method comprises the following steps: acquiring uplink data of a terminal in the case that the terminal establishes a network connection with a first mobile network; determining, according to fingerprint information library, that network information of a first wireless local area network corresponding to the first mobile network exists in the case that the terminal is determined to be in a first network rate requirement and a current network state is a first network state according to the uplink data; and starting a wireless local area network connection control of the terminal, so that the terminal connects the first wireless local area network according to the network information of the first wireless local area network. Based on the method, the wireless local area network connection control is started only in the case that the terminal really needs to be connected with the wireless local area network and there is a wireless local area network that can be connected, so that the starting time of the wireless local area network control in the case that there is no demand is reduced, and the energy consumption of the terminal is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of communication network control, and in particular relates to a method, apparatus, device and computer storage medium for switching communication networks. Background Technology

[0002] Typically, users turn on both Wi-Fi and mobile network switches when using a terminal, so that they can immediately switch to mobile network for communication when Wi-Fi is unavailable, thus ensuring smooth network communication for the terminal.

[0003] However, when both switches are turned on at the same time, the wireless LAN and mobile network perform periodic signal scans simultaneously, which causes unnecessary power consumption for the terminal. Summary of the Invention

[0004] This application provides a method, apparatus, device, and computer storage medium for switching communication networks, which reduces the energy consumption of terminals.

[0005] According to a first aspect of this application, embodiments of this application provide a method for switching communication networks, the method comprising:

[0006] When the terminal establishes a network connection with the first mobile network, the uplink data of the terminal is acquired;

[0007] Based on uplink data, if it is determined that the terminal is in the first network speed requirement and the current network state is the first network state, then based on the fingerprint information database, network information of a first wireless local area network corresponding to the first mobile network is determined; the fingerprint information database includes the corresponding first wireless local area network name, first wireless local area network password, and primary serving cell information of the first mobile network;

[0008] Enable the terminal's wireless local area network connection control so that the terminal can connect to the first wireless local area network based on the network information of the first wireless local area network.

[0009] Optionally, after enabling the terminal's wireless local area network connection control to connect to the first wireless local area network based on the network information of the first wireless local area network, the method further includes:

[0010] Monitor the network quality of the first wireless local area network;

[0011] If the network quality of the first wireless local area network does not meet the preset communication quality conditions, the mobile network connection control of the terminal is activated to enable the terminal to connect to the mobile network.

[0012] Optionally, if the network quality of the first wireless local area network does not meet the preset communication quality conditions, after enabling the terminal's mobile network connection control to connect to the mobile network, the method further includes:

[0013] Close the wireless LAN connection control.

[0014] Optionally, after enabling the terminal's wireless local area network connection control to connect to the first wireless local area network based on the network information of the first wireless local area network, the method further includes:

[0015] If the connection time between the terminal and the first wireless local area network exceeds a first preset time, the terminal's first mobile network is shut down.

[0016] Optionally, the fingerprint database includes the terminal's location information;

[0017] Based on uplink data, if it is determined that the terminal is in a first network speed requirement and the current network state is the first network state, then based on the fingerprint information database, network information of a first wireless local area network corresponding to the first mobile network is determined, including:

[0018] Obtain the terminal's location information;

[0019] Based on the terminal location information, a query is performed from the fingerprint information database to find the first wireless local area network corresponding to the terminal location information;

[0020] If a first wireless local area network corresponding to the terminal location information is found, it is determined that there is network information for a first wireless local area network corresponding to a first mobile network.

[0021] Optionally, the terminal is located in the first primary serving cell of the first mobile network, and the fingerprint information database also includes: neighboring cell information of the first mobile network;

[0022] Based on uplink data, if it is determined that the terminal is in a first network speed requirement and the current network state is the first network state, then based on the fingerprint information database, network information of a first wireless local area network corresponding to the first mobile network is determined, including:

[0023] Determine the first neighboring cell adjacent to the first primary service cell;

[0024] Based on the first primary cell and the first neighboring cell, the first fingerprint information is obtained by searching for a match in the fingerprint information database;

[0025] Determine whether the order of the first primary serving cell and the first neighboring cell is consistent with the order of the primary serving cell and the neighboring cell of the first mobile network in the first fingerprint information;

[0026] Under the condition of consistency, network information of the first wireless local area network corresponding to the first mobile network is determined.

[0027] Optionally, before determining, based on uplink data, that the terminal is in a first network rate requirement and the current network state is the first network state, and before determining, based on the fingerprint information database, the network information of a first wireless local area network corresponding to the first mobile network, further includes:

[0028] Obtain attribute information of each communication network that establishes a communication connection with the terminal within a preset time period. The communication networks include: mobile networks and wireless local area networks.

[0029] Based on the attribute information of each wireless local area network, filter the target wireless local area networks that meet the connection conditions;

[0030] A fingerprint database is constructed based on the attribute information of the mobile network and the target wireless local area network.

[0031] Optionally, the attribute information of the wireless local area network includes: connection duration and number of connections;

[0032] Based on the attribute information of each wireless local area network, target wireless local area networks that meet the connection conditions are filtered, including:

[0033] The target wireless local area network is identified as the wireless local area network whose connection duration is greater than the second preset duration and whose number of connections is greater than the preset number.

[0034] According to a second aspect of this application, embodiments of this application provide a switching device for a communication network, comprising:

[0035] The first acquisition module is used to acquire uplink data of the terminal when the terminal establishes a network connection with the first mobile network;

[0036] The determination module is used to determine, based on the uplink data that the terminal is in the first network rate requirement and the current network state is the first network state, the network information database that exists as a first wireless local area network corresponding to the first mobile network; the fingerprint information database includes the corresponding first wireless local area network name, first wireless local area network password, and primary serving cell information of the first mobile network;

[0037] The first activation module is used to activate the terminal's wireless local area network connection control, so that the terminal can connect to the first wireless local area network according to the network information of the first wireless local area network.

[0038] According to a third aspect of this application, an embodiment of this application provides a switching device for a communication network, the device comprising: a processor and a memory storing computer program instructions;

[0039] A method for switching communication networks that implements any one of the first aspects when the processor executes computer program instructions.

[0040] According to a fourth aspect of this application, embodiments of this application provide a computer storage medium storing computer program instructions, which, when executed by a processor, implement the communication network switching method of any one of the first aspects.

[0041] According to a fifth aspect of this application, embodiments of this application provide a computer program product in which instructions, when executed by a processor of an electronic device, cause the electronic device to perform a communication network switching method according to any one of the first aspects.

[0042] The communication network switching method, apparatus, device, and computer storage medium of this application embodiment acquire uplink data of the terminal during internet communication via the first mobile network after connecting to it. Based on this uplink data, the network speed and network status during internet communication via the first mobile network can be determined. If the network speed requirement is high and the current network status is low, it can be assumed that communication via the first mobile network cannot meet the communication needs. Therefore, a fingerprint database can be used to determine the existence of network information for a first wireless local area network corresponding to the first mobile network. This allows the wireless local area network connection control to be activated, enabling the terminal to connect to the first wireless local area network based on its network information. This completes the switching from the first mobile network to the first wireless local area network. Based on this, the activation of the wireless local area network connection control is effectively controlled, ensuring that the control is only activated when the terminal truly needs to connect to a wireless local area network and there is a wireless local area network available. This reduces the activation time of the wireless local area network control when there is no need for it, thus reducing the terminal's energy consumption. Attached Figure Description

[0043] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0044] Figure 1 This is a flowchart illustrating a switching method for a communication network according to an exemplary embodiment;

[0045] Figure 2 This is another flowchart illustrating a method for switching a communication network according to an exemplary embodiment;

[0046] Figure 3 This is another flowchart illustrating a method for switching a communication network according to an exemplary embodiment;

[0047] Figure 4 This is another flowchart illustrating a method for switching a communication network according to an exemplary embodiment;

[0048] Figure 5 This is another flowchart illustrating a method for switching a communication network according to an exemplary embodiment;

[0049] Figure 6 This is a structural block diagram of a switching device for a communication network according to an exemplary embodiment;

[0050] Figure 7 This is a structural block diagram of a switching device for a communication network according to an exemplary embodiment. Detailed Implementation

[0051] The features and exemplary embodiments of various aspects of this application will be described in detail below. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain this application and not to limit it. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples.

[0052] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-external inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.

[0053] As described in the background section, in the prior art, when using traditional methods to audit speed limits, it is not possible to effectively prove that the speed limit was successful, and the results obtained may contain omissions or errors.

[0054] Based on this, in the communication network switching method provided in this application embodiment, the effect of limiting the data traffic usage value is evaluated by comparing the rate-limited data traffic usage value with a reference threshold. Then, the first user data corresponding to the target rate-limited data traffic usage value with poor rate-limiting effect is output to obtain the communication network switching result. This allows maintenance personnel to evaluate the rate-limiting effect of data traffic based on the audit results, thereby improving the audit effect of data traffic rate limiting.

[0055] This application provides a method, apparatus, device, and computer storage medium for switching communication networks. The method for switching communication networks provided in the embodiments of this application will be described first.

[0056] Figure 1 A flowchart illustrating a communication network switching method according to an embodiment of this application is shown. Figure 1 As shown, the method may include the following steps:

[0057] S101, when the terminal establishes a network connection with the first mobile network, acquire the uplink data of the terminal;

[0058] S102, if it is determined from the uplink data that the terminal is in the first network rate requirement and the current network state is the first network state, the network information of the first wireless local area network corresponding to the first mobile network is determined from the fingerprint information database; the fingerprint information database includes the corresponding first wireless local area network name, first wireless local area network password, and primary serving cell information of the first mobile network.

[0059] S103, enable the terminal's wireless local area network connection control so that the terminal can connect to the first wireless local area network according to the network information of the first wireless local area network.

[0060] Based on the above embodiments, by acquiring the uplink data of the terminal during internet communication via the first mobile network after connecting to it, the network speed and network status during internet communication via the first mobile network can be determined based on the uplink data. Therefore, if the network speed requirement is met and the current network status is also considered to be the first network status, it can be assumed that communication via the first mobile network cannot meet the communication needs. Thus, the fingerprint database can be used to determine the existence of network information for a first wireless local area network corresponding to the first mobile network. This allows the wireless local area network connection control to be activated, enabling the terminal to connect to the first wireless local area network based on its network information. This allows the terminal to switch from the first mobile network to the first wireless local area network. Based on this, the activation of the wireless local area network connection control is effectively controlled, ensuring that the control is only activated when the terminal truly needs to connect to a wireless local area network and when a wireless local area network is available. This reduces the activation time of the wireless local area network control when there is no need for it, thereby reducing the terminal's energy consumption.

[0061] In the above S101, when the terminal is connected to the first mobile network, the user will interact with the Internet and upload data when using the terminal.

[0062] As an example, uplink data refers to the data uploaded when the terminal interacts with the Internet.

[0063] As an example, the terminal may include mobile phones, computers, mobile tablets, etc.

[0064] In the above S102, by detecting the uplink data, the uplink network rate and uplink network status of the uplink data can be obtained. If the uplink network rate meets the first network rate requirement and the uplink network status is the first network status, then the fingerprint information database is used to determine whether there is network information of the first wireless local area network corresponding to the first mobile network. If it does not exist, it means that there is currently no wireless local area network that can establish a communication connection with the terminal. Otherwise, it means that there is a wireless local area network that can establish a communication connection with the terminal, namely the first wireless local area network.

[0065] As an example, the fingerprint database includes: the corresponding first wireless local area network name, the first wireless local area network password, and the primary serving cell information of the first mobile network. The first mobile network and the first wireless local area network are mutually corresponding, and the primary serving cell information of the first mobile network may include: the cell ID and RSRP (Reference Signal Receiving Power) of the first primary serving cell.

[0066] Specifically, the primary serving cell refers to the area covered by the base station that connects and communicates with the first mobile network.

[0067] As an example, the uplink network state is a state of large-scale data uplink.

[0068] Specifically, by periodically monitoring the BSR (Buffer Status Report) in real time, if the BSR value of the uplink data buffer sent by the terminal to the scheduler exceeds a threshold value in multiple sampling periods (sampling period of 5 seconds, 10 consecutive sampling points), then the uplink network status can be considered to be a high-data-demand uplink state.

[0069] As an example, the first network speed requirement is a low uplink network speed.

[0070] Specifically, the uplink network rate of the terminal is collected at the same frequency (sampling period of 5 seconds, 10 consecutive sampling points). If the average uplink rate is lower than the threshold value of 2, it is determined that the first mobile network is in a low uplink network rate state.

[0071] It should be noted that the sampling period, the specific number of sampling points, and the threshold value can all be set according to actual needs. This application does not limit the sampling period, the specific number of sampling points, or the threshold value.

[0072] In the above S103, if it is determined that the network connected to the first mobile network is in a state of low uplink speed and high demand, since the wireless local area network is more stable and has a higher uplink speed than the mobile network, in order to ensure the stability of data transmission, the wireless local area network connection control of the terminal can be actively activated, so that the terminal can actively connect to the network information connection of the first mobile network to the first wireless local area network.

[0073] Preferably, in order to better save the terminal's energy consumption, if the connection time between the terminal and the first wireless local area network exceeds the first preset time, it can be considered that the connection between the terminal and the first wireless local area network is stable and can stably and normally conduct Internet communication. Therefore, the terminal's first mobile network is turned off, and the connection between the terminal and the first mobile network is disconnected, thereby reducing the energy consumption caused by the terminal connecting to the first mobile network.

[0074] As an example, the first preset duration can be 30 seconds.

[0075] To more effectively ensure the network quality of the terminal, this application also provides another implementation of the communication network switching method.

[0076] like Figure 2 Another flowchart illustrating a communication network switching method provided in one embodiment of this application is shown, as follows: Figure 2 As shown, after S103 above, the method may further include:

[0077] S201, monitor the network quality of the first wireless local area network;

[0078] S202, if the network quality of the first wireless local area network does not meet the preset communication quality conditions, the mobile network connection control of the terminal is activated so that the terminal can connect to the mobile network.

[0079] Based on the above embodiments, by monitoring the network quality of the connection to the first wireless local area network, if the network quality does not meet the preset communication quality conditions, the terminal can directly connect to the mobile network by opening the mobile network control, thereby improving the terminal's network quality and effectively ensuring that the terminal is always in an excellent network quality state.

[0080] In the above S201, the network quality of the terminal accessing the Internet through the first wireless local area network is monitored in real time.

[0081] As an example, network quality can include: network transmission speed, network stability and network security, coverage strength, and long-term high bit error rate.

[0082] In the above S202, if the network quality of the first wireless local area network does not meet the preset communication quality conditions, it can be considered that the connection to the first wireless local area network cannot be used for normal Internet communication, or that Internet communication cannot provide a good user experience. Therefore, it is necessary to change the Internet communication method. Thus, the mobile network connection control of the terminal is activated to enable the terminal to connect to the mobile network, thereby improving the network quality of the terminal.

[0083] As an example, the network quality not meeting the preset communication quality conditions can be: when the average coverage strength of the wireless local area network is lower than the threshold value (initially defined as -85dBm) over a certain period of time (lasting 60 seconds).

[0084] Preferably, in order to better save the terminal's energy consumption, after the terminal reconnects to the first mobile network, the wireless local area network connection control is turned off to disconnect the terminal from the wireless local area network, thereby reducing the energy consumption caused by the terminal's connection to the wireless local area network.

[0085] In order to accurately obtain the first wireless local area network corresponding to the first mobile network, this application also provides another implementation of the communication network switching method.

[0086] The fingerprint database includes the terminal's location information;

[0087] like Figure 3 Another flowchart illustrating a communication network switching method provided in one embodiment of this application is shown, as follows: Figure 3 As shown, S102 above may include:

[0088] S301, Obtain the terminal's location information;

[0089] S302, based on the terminal location information, query the fingerprint information database for the first wireless local area network corresponding to the terminal location information;

[0090] S303, if a first wireless local area network corresponding to the terminal location information is found, determine that there is network information of a first wireless local area network corresponding to the first mobile network.

[0091] Based on the above embodiments, by querying the fingerprint information database according to the terminal's location information, the network information of the first wireless local area network that the terminal can connect to at its current location can be obtained through the fingerprint information database, thereby improving the accuracy of determining the first mobile network.

[0092] In the above S301, the location information of the terminal can be obtained through the terminal's location positioning.

[0093] As an example, the terminal's GPS, BeiDou positioning, and other functions can be used to achieve satellite positioning of the terminal, thereby obtaining the terminal's location information.

[0094] In the above S302, each wireless local area network has its own coverage area. The terminal location information can be used to determine whether the terminal is within the coverage area of ​​the wireless local area network. If the terminal is found, it means that there is a wireless local area network that can be connected to the terminal. For the terminal, it may be connected to the wireless local area network while connecting to the mobile network. Therefore, there is a corresponding relationship between the mobile network and the wireless local area network in the fingerprint information database. Then, the fingerprint information database is used to determine whether the terminal has connected to the first wireless local area network when connecting to the first mobile network.

[0095] In the above S303, if the corresponding first wireless local area network is found, it means that there is a first wireless local area network that has been previously connected to.

[0096] In order to accurately obtain the first wireless local area network corresponding to the first mobile network, this application also provides another implementation of the communication network switching method.

[0097] The fingerprint database includes neighboring cell information from the first mobile network;

[0098] like Figure 4 Another flowchart illustrating a communication network switching method provided in one embodiment of this application is shown, as follows: Figure 4 As shown, S102 above may include:

[0099] S401, determine the first neighboring cell adjacent to the first primary serving cell;

[0100] S402, based on the first primary serving cell and the first neighboring cell, find a match in the fingerprint information database to obtain the first fingerprint information;

[0101] S403, determine whether the order of the first primary serving cell and the first neighboring cell is consistent with the order of the primary serving cell and the neighboring cell of the first mobile network in the first fingerprint information;

[0102] S404, if consistent, determine that there is network information for a first wireless local area network corresponding to the first mobile network.

[0103] Based on the above embodiments, by determining the first neighboring cells adjacent to the first primary serving cell of the first mobile network, and considering the adjacency and hierarchy between the first neighboring cells and the first primary serving cell, the first fingerprint information related to the first primary serving cell and the first neighboring cells can be retrieved from the fingerprint information database. Then, it is determined whether the order of the primary serving cell and the neighboring cells in the first fingerprint information matches the actual hierarchy of the first primary serving cell and the first neighboring cells. If they match, it is determined that the first fingerprint information corresponds to the first mobile network. Since the first fingerprint information contains information about a first wireless local area network (WLAN), it is possible to determine the existence of network information for a WLAN corresponding to the first mobile network. Therefore, the corresponding WLAN can be accurately determined based on the first mobile network, improving the accuracy of determining the WLAN.

[0104] In the above S401, the first neighboring cell refers to the coverage area of ​​the base station adjacent to the first primary serving cell. Therefore, there are first neighboring cells adjacent to the first primary serving cell.

[0105] In the above S402, the fingerprint information database includes information about the primary cell and neighboring cells. The neighboring cell information may include the cell ID and RSRP of the neighboring cell.

[0106] Therefore, based on the first primary service cell and the first neighboring cell, the corresponding first fingerprint information can be found from the fingerprint information database. The first fingerprint information includes all information including the primary service cell and the neighboring cell. It should be noted that the first primary service cell and the first neighboring cell in the first fingerprint information only refer to the cell and do not specifically refer to the actual primary and secondary order.

[0107] In the above S403, the order of primary and secondary cells of the first primary serving cell and the first neighboring cell is compared with the order of primary and secondary cells of the primary serving cell and the neighboring cell in the first fingerprint information to see if they are consistent.

[0108] In the above S404, if the primary and secondary order is consistent, it means that the first mobile network belongs to the first fingerprint information, and the first fingerprint information contains the first local area network. Therefore, it can be determined that there is network information of the first wireless local area network corresponding to the first mobile network.

[0109] In order to obtain an accurate fingerprint database, this application also provides another implementation of the communication network switching method.

[0110] like Figure 5 Another flowchart illustrating a communication network switching method provided in one embodiment of this application is shown, as follows: Figure 5 As shown, prior to S101 above, the method may further include:

[0111] S501, Obtain attribute information of each communication network that communicates with the terminal within a preset time period, including: mobile network and wireless local area network;

[0112] S502, based on the attribute information of each wireless local area network, filters the target wireless local area networks that meet the connection conditions;

[0113] S503 constructs a fingerprint information database based on the attribute information of the mobile network and the attribute information of the target wireless local area network.

[0114] Based on the above embodiments, by filtering the mobile networks and wireless local area networks simultaneously connected in the middle segment, the target wireless local area networks that can establish a valid connection with the terminal are obtained. Thus, the attribute information of the target local area network and the attribute information of the corresponding mobile network can be used to construct a fingerprint information database, so that all the target wireless local area networks in the fingerprint information database can establish a valid connection with the terminal, resulting in an accurate and effective fingerprint information database.

[0115] In the above S501, when the terminal connects to the mobile network and the wireless local area network, it obtains the attribute information of the wireless local area network and the mobile network respectively.

[0116] As an example, the attribute information of a wireless local area network (WLAN) may include: WLAN name, WLAN password, WLAN connection duration to the terminal, WLAN connection count to the terminal, and WLAN location information.

[0117] As an example, the attribute information of a mobile network may include: the primary serving cell information of the mobile network, the neighboring cell information of the mobile network, etc.

[0118] In the above S502, when the terminal connects to the wireless local area network, the connection of the wireless local area network may not be stable. Therefore, it is necessary to filter the target wireless local area network that meets the connection conditions according to the attribute information of each wireless local area network, so as to obtain a target wireless local area network with a stable connection.

[0119] As an example, satisfying the preset conditions may include:

[0120] The target wireless local area network is identified as the wireless local area network whose connection duration is greater than the second preset duration and whose number of connections is greater than the preset number.

[0121] Specifically, the second preset duration is 10 minutes, and the preset number of connections can be 5. Wireless local area networks with a connection duration of more than 10 minutes and a connection count of more than 5 are identified as target wireless local area networks.

[0122] In the above S503, a fingerprint information database is constructed based on the attribute information of the mobile network and the attribute information of the target wireless local area network, so that a corresponding relationship is formed between the mobile network and the target wireless network in the fingerprint information database.

[0123] As an example, building a fingerprint database requires processing information, specifically processing the RSRP probability cumulative distribution of wireless LAN name, wireless LAN password, mobile network primary serving cell information, neighboring cell information probability cumulative distribution, and wireless LAN location information.

[0124] The specific implementation steps are as follows:

[0125] Traverse the primary serving cell cell IDs, and based on the RSRP data distribution statistics, use the sliding window algorithm (two-pointer algorithm) to find the minimum interval that satisfies the 80% range of continuous RSRP distribution, thus obtaining the optimal solution for all primary serving cell cell IDs.

[0126] The above information is then stored on the terminal to form a fingerprint information database.

[0127] It should be noted that the application scenarios described in the above embodiments of this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As those skilled in the art will know, with the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.

[0128] Based on the same inventive concept, this application also provides a communication network switching device. (Specifically combined with...) Figure 6 Please provide a detailed explanation.

[0129] Figure 6A schematic diagram of the hardware structure of a communication network switching device 600 provided in an embodiment of the present invention is shown.

[0130] like Figure 6 As shown, the switching device 600 of the communication network may include:

[0131] The first acquisition module 610 is used to acquire uplink data of the terminal when the terminal establishes a network connection with the first mobile network.

[0132] The determination module 620 is used to determine, based on the fingerprint information database, the existence of a first wireless local area network corresponding to the first mobile network when the terminal is determined to be in a first network rate requirement and the current network state is the first network state, according to the uplink data; the fingerprint information database includes the corresponding first wireless local area network name, first wireless local area network password, and primary serving cell information of the first mobile network;

[0133] The first activation module 630 is used to activate the terminal's wireless local area network connection control, so that the terminal can connect to the first wireless local area network according to the network information of the first wireless local area network.

[0134] In the data encryption communication network switching device 600 provided in this embodiment, the first acquisition module 610 acquires the uplink data of the terminal when it communicates with the Internet through the first mobile network after connecting to the first mobile network. Based on the uplink data, the network speed and network status when communicating with the Internet through the first mobile network can be determined. If the network speed requirement is met and the current network status is the first network status, it can be considered that communication through the first mobile network cannot meet the communication requirements. Therefore, the determination module 620 can use a fingerprint information database to determine the existence of network information for a first wireless local area network corresponding to the first mobile network. Then, the first activation module 630 can activate the wireless local area network connection control, allowing the terminal to connect to the first wireless local area network based on its network information. This allows the terminal to complete the switch from the first mobile network to the first wireless local area network. Based on this, the activation of the wireless local area network connection control is effectively controlled, ensuring that the control is only activated when the terminal truly needs to connect to a wireless local area network and there is a wireless local area network available. This reduces the activation time of the wireless local area network control when there is no need for it, thus reducing the terminal's energy consumption.

[0135] Optionally, the communication network switching device 600 may further include:

[0136] The monitoring module is used to monitor the network quality of the first wireless local area network;

[0137] The second activation module is used to activate the mobile network connection control of the terminal when the network quality of the first wireless local area network does not meet the preset communication quality conditions, so as to enable the terminal to connect to the mobile network.

[0138] Optionally, the communication network switching device 600 may further include:

[0139] The first shutdown module is used to disable the wireless LAN connection control.

[0140] Optionally, the communication network switching device 600 may further include:

[0141] The second shutdown module is used to shut down the terminal's first mobile network if the connection time between the terminal and the first wireless local area network exceeds a first preset time.

[0142] Optionally, the fingerprint database includes the terminal's location information;

[0143] The determination module 620 may include:

[0144] The acquisition unit is used to acquire the terminal's location information;

[0145] The query unit is used to query the fingerprint information database for the first wireless local area network corresponding to the terminal location information based on the terminal location information.

[0146] The first determining unit is used to determine, when a first wireless local area network corresponding to the terminal location information is found, the existence of network information for a first wireless local area network corresponding to a first mobile network.

[0147] Optionally, the terminal is located in the first primary serving cell of the first mobile network, and the fingerprint information database also includes: neighboring cell information of the first mobile network;

[0148] The determination module 620 may also include:

[0149] The second determining unit is used to determine the first neighboring cell adjacent to the first primary serving cell;

[0150] The matching unit is used to find a match from the fingerprint information database based on the first primary serving cell and the first neighboring cell to obtain the first fingerprint information;

[0151] The judgment unit is used to determine whether the order of the first primary serving cell and the first neighboring cell is consistent with the order of the primary serving cell and the neighboring cell of the first mobile network in the first fingerprint information.

[0152] The third determining unit is used to determine, under the condition of consistency, the network information of the first wireless local area network corresponding to the first mobile network.

[0153] Optionally, the communication network switching device 600 may further include:

[0154] The second acquisition module is used to acquire attribute information of each communication network that communicates with the terminal within a preset time period. The communication networks include: mobile networks and wireless local area networks.

[0155] The filtering module is used to filter target wireless local area networks that meet the connection conditions based on the attribute information of each wireless local area network.

[0156] The module is used to build a fingerprint database based on the attribute information of the mobile network and the target wireless local area network.

[0157] Optionally, the attribute information of the wireless local area network includes: connection duration and number of connections;

[0158] The filtering module may include:

[0159] The fourth determining unit is used to determine the wireless local area network (WLAN) whose connection duration is greater than the second preset duration and whose number of connections is greater than the preset number as the target WLAN.

[0160] The communication network switching device 600 provided in this application embodiment can achieve Figures 1 to 5 The various processes implemented in the method embodiments can achieve the same technical effect, and will not be described again here to avoid repetition.

[0161] Figure 7 A schematic diagram of the hardware structure of a data encryption and decryption communication network switching device provided in an embodiment of the present invention is shown.

[0162] The switching device for data encryption and decryption communication networks may include a processor 701 and a memory 702 storing computer program instructions.

[0163] Specifically, the processor 701 may include a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of the present invention.

[0164] Memory 702 may include mass storage for data or instructions. For example, and not limitingly, memory 702 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 702 may include removable or non-removable (or fixed) media. Where appropriate, memory 702 may be internal or external to the integrated gateway disaster recovery device. In a particular embodiment, memory 702 is non-volatile solid-state memory.

[0165] In a particular embodiment, memory 702 may include read-only memory (ROM), random access memory (RAM), disk storage media device, optical storage media device, flash memory device, electrical, optical, or other physical / tangible memory storage device. Therefore, typically, memory 702 includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors 701), it is operable to perform the operations described with reference to the method according to one aspect of this application.

[0166] The processor 701 reads and executes computer program instructions stored in the memory 702 to implement any of the data encryption and / or decryption communication network switching devices in the above embodiments.

[0167] In one example, the switching device for data encryption and decryption communication networks may further include a communication interface 703 and a bus 704. As shown in the figure, the processor 701, memory 702, and communication interface 703 are connected via the bus 704 and communicate with each other.

[0168] The communication interface 703 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of the present invention.

[0169] Bus 704 includes hardware, software, or both. For example, and not as a limitation, bus 704 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, a Wireless Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Control Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 704 may include one or more buses 704. Although specific bus 704s are described and illustrated in embodiments of this application, this application contemplates any suitable bus 704 or interconnect.

[0170] The data encryption / decryption communication network switching device can achieve a combination based on the current data encryption / decryption communication network switching method. Figures 1-6 The method and apparatus for switching communication networks are described.

[0171] In addition, this application also provides a computer program product, including computer program instructions, which, when executed by processor 701, can implement the steps and corresponding content of the aforementioned method embodiments.

[0172] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.

[0173] The functional blocks shown in the above-described structural diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.

[0174] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.

[0175] The aspects of this disclosure have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It should be understood that each block in the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, 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, or other programmable data encryption and / or decryption communication network switching device to create a machine such that these instructions, executable via a processor of a computer or other programmable data processing device, enable the implementation of the functions / actions specified in one or more blocks of the flowchart illustrations and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by special-purpose hardware performing the specified functions or actions, or can be implemented by a combination of special-purpose hardware and computer instructions.

[0176] The above description is merely a specific implementation of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the protection scope of this application.

Claims

1. A method for switching communication networks, characterized in that, The method includes: Obtain attribute information of each communication network that establishes a communication connection with the terminal within a preset time period, wherein the communication networks include: mobile networks and wireless local area networks; Based on the attribute information of each of the wireless local area networks, target wireless local area networks that meet the connection conditions are filtered; the filtering of target wireless local area networks that meet the connection conditions based on the attribute information of each of the wireless local area networks includes: determining wireless local area networks whose connection duration is greater than a second preset duration and whose number of connections is greater than a preset number as target wireless local area networks; the attribute information of the target wireless local area networks includes: connection duration and number of connections. A fingerprint database is constructed based on the attribute information of the mobile network and the attribute information of the target wireless local area network. The attribute information of the mobile network includes the primary serving cell information and the neighboring cell information of the mobile network. Constructing the fingerprint database includes: filtering the mobile networks and wireless local area networks simultaneously connected to by the terminal within a preset time period; constructing the fingerprint database based on the attribute information of the target wireless local area network and the corresponding attribute information of the mobile network; and obtaining the target wireless local area network with which the terminal has established a valid connection from the fingerprint database. When the terminal establishes a network connection with the first mobile network, the uplink data of the terminal is acquired; and by detecting the uplink data, the uplink network rate and uplink network status of the uplink data are obtained, wherein the uplink network status is a large amount of data uplink status and the uplink network rate is a low uplink network rate. If, based on the uplink data, it is determined that the terminal is in a first network rate requirement and the current network state is the first network state, then, based on the fingerprint information database, network information of a first wireless local area network corresponding to the first mobile network is determined; the fingerprint information database includes the corresponding first wireless local area network name, first wireless local area network password, and primary serving cell information of the first mobile network; Enable the wireless local area network connection control of the terminal so that the terminal can connect to the first wireless local area network according to the network information of the first wireless local area network; The terminal is located in the first primary serving cell of the first mobile network; When it is determined from the uplink data that the terminal is in a first network rate requirement and the current network state is a first network state, determining, based on the fingerprint information database, the existence of a first wireless local area network corresponding to the first mobile network includes: Determine the first neighboring cell adjacent to the first primary serving cell; Based on the first primary serving cell and the first neighboring cell, search for matching first fingerprint information from the fingerprint information database; Determine whether the order of the first primary serving cell and the first neighboring cell is consistent with the order of the primary serving cell and the neighboring cell of the first mobile network in the first fingerprint information; Under the condition of consistency, it is determined that there is network information for the first wireless local area network corresponding to the first mobile network.

2. The method as described in claim 1, characterized in that, After activating the wireless local area network (WLAN) connection control of the terminal to enable the terminal to connect to the first WLAN based on the network information of the first WLAN, the method further includes: Monitor the network quality of the first wireless local area network; If the network quality of the first wireless local area network does not meet the preset communication quality conditions, the mobile network connection control of the terminal is activated so that the terminal can connect to the mobile network.

3. The method as described in claim 2, characterized in that, If the network quality of the first wireless local area network does not meet the preset communication quality conditions, the method further includes enabling the mobile network connection control of the terminal to connect to the mobile network. Close the wireless LAN connection control.

4. The method as described in claim 1, characterized in that, After activating the wireless local area network (WLAN) connection control of the terminal to enable the terminal to connect to the first WLAN based on the network information of the first WLAN, the method further includes: If the connection time between the terminal and the first wireless local area network exceeds a first preset time, the first mobile network of the terminal shall be turned off.

5. The method as described in claim 1, characterized in that, The fingerprint information database includes the terminal's location information; When it is determined from the uplink data that the terminal is in a first network rate requirement and the current network state is a first network state, determining, based on the fingerprint information database, the existence of a first wireless local area network corresponding to the first mobile network includes: Obtain the terminal location information of the terminal; Based on the terminal location information, a query is performed from the fingerprint information database to find the first wireless local area network corresponding to the terminal location information; If a first wireless local area network corresponding to the terminal location information is found, it is determined that there is network information for the first wireless local area network corresponding to the first mobile network.

6. A switching device for a communication network, characterized in that, The device includes: The second acquisition module is used to acquire attribute information of each communication network that communicates with the terminal within a preset time period. The communication networks include: mobile networks and wireless local area networks. The filtering module is used to filter target wireless local area networks that meet the connection conditions based on the attribute information of each wireless local area network. The filtering of target wireless local area networks that meet the connection conditions based on the attribute information of each wireless local area network includes: determining wireless local area networks whose connection duration is greater than a second preset duration and whose number of connections is greater than a preset number as target wireless local area networks. The attribute information of the target wireless local area networks includes: connection duration and number of connections. A construction module is used to construct a fingerprint information database based on the attribute information of the mobile network and the attribute information of the target wireless local area network. The attribute information of the mobile network includes the primary serving cell information and the neighboring cell information of the mobile network. Constructing the fingerprint information database includes: filtering the mobile networks and wireless local area networks simultaneously connected to by the terminal within a preset time period; constructing the fingerprint information database based on the attribute information of the target wireless local area network and the corresponding attribute information of the mobile network; and obtaining the target wireless local area network with which the terminal has established a valid connection from the fingerprint information database. The first acquisition module is used to acquire the uplink data of the terminal when the terminal establishes a network connection with the first mobile network. The determination module is used to determine, based on the uplink data, that the terminal is in a first network rate requirement and the current network state is a first network state, the existence of a first wireless local area network corresponding to the first mobile network, according to a fingerprint information database; the fingerprint information database includes the corresponding first wireless local area network name, first wireless local area network password, and primary serving cell information of the first mobile network; The first activation module is used to activate the wireless local area network connection control of the terminal, so that the terminal can connect to the first wireless local area network according to the network information of the first wireless local area network. Wherein, the terminal is located in the first primary serving cell of the first mobile network, and the fingerprint information database also includes: neighboring cell information of the first mobile network; When it is determined from the uplink data that the terminal is in a first network rate requirement and the current network state is a first network state, determining, based on the fingerprint information database, the existence of a first wireless local area network corresponding to the first mobile network includes: Determine the first neighboring cell adjacent to the first primary serving cell; Based on the first primary serving cell and the first neighboring cell, search for matching first fingerprint information from the fingerprint information database; Determine whether the order of the first primary serving cell and the first neighboring cell is consistent with the order of the primary serving cell and the neighboring cell of the first mobile network in the first fingerprint information; Under the condition of consistency, it is determined that there is network information for the first wireless local area network corresponding to the first mobile network.

7. A switching device for a communication network, characterized in that, The device includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements the method as described in any one of claims 1-5.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions that, when executed by a processor, implement the method as described in any one of claims 1-5.

9. A computer program product, characterized in that, When the instructions in the computer program product are executed by the processor of the electronic device, the electronic device causes the electronic device to perform the method as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Terminal and terminal network switching method

    CN102802224A

  • Method for connecting terminal with wireless local area network (WLAN) and terminal

    CN102984812A

  • Method and device for switching networks of mobile terminal

    CN105163355A