Switching method and apparatus
Through the dual-band dual-transmission capability of the mobile terminal, WiFi services and AP scanning are performed simultaneously, which solves the problem of service interruption and time extension during signal switching in the WiFi network, achieving seamless roaming and improving user experience.
Patent Information
- Application Number
- PCT/CN2024/072344
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-07
- Filing Date
- 2024-01-15
- Publication Date
- 2024-09-12
AI Technical Summary
In a WIFI network, when the received signal strength of the mobile terminal is poor, it needs to perform full channel scanning, which makes the service unavailable, affects the user experience, and takes a long time to scan.
The mobile terminal supports simultaneous dual-band dual-transmission capabilities. It performs business operations through one WiFi channel, scans APs on the other channel, and switches based on the scan results to achieve seamless roaming of WiFi services, reduce switching time, and ensure business continuity.
Through the synchronous switching method of dual-band and dual-transmission capabilities, seamless switching of WiFi services is achieved, reducing the overall switching time, improving user experience, and ensuring business continuity.
Smart Images

Figure CN2024072344_12092024_PF_FP_ABST
Abstract
Description
Switching method and device
[0001] This application claims priority to the Chinese patent application number 202310260328.6 filed with the Patent Office of China on March 7, 2023, with the invention name “Switching Method and Device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of communication technology, and in particular to a switching method and device. Background Art
[0003] WIFI (Wireless Fidelity) technology is a brand of wireless network communication technology based on the IEEE 802.11 series of standards. Its purpose is to improve the interoperability between wireless network products based on the IEEE 802.11 standard. It is owned by the Wi-Fi Alliance. Simply put, WIFI is a wireless networking technology.
[0004] In Wi-Fi, a user's mobile terminal accesses the Wi-Fi network through a wireless access point (AP). When the mobile terminal receives poor signal strength from the accessed AP, it often performs a full-channel scan to obtain information about surrounding APs. This full-channel scan takes a long time, for example, 1.6 to 2.4 seconds. During this process, services are unavailable, impacting the user experience.
[0005] Summary of the Invention
[0006] In view of the above, it is necessary to provide a switching method and device. The mobile terminal that implements the switching method has dual-band dual-transmission capability and has two WiFi channels. When the mobile terminal performs WiFi services through one of the WiFi channels, it uses the idle WiFi channel to perform WiFi scanning and switches the AP based on the scanning results. The WiFi scanning and the execution of WiFi services are performed simultaneously and do not affect each other, thereby reducing the overall WiFi switching time.
[0007] In a first aspect, an embodiment of the present application provides a switching method, which is applied to a mobile terminal, the mobile terminal supports synchronous dual-band dual-transmission capability, and the mobile terminal has a first WiFi path and a second WiFi path. The switching method includes: the mobile terminal accesses a target wireless access point AP through the first WiFi path and uses the first WiFi path to perform WiFi services. If the first WiFi path meets a preset switching condition, the second WiFi path in an idle state is used to perform a WiFi scan on surrounding candidate APs to obtain a first scanning result; based on the first scanning result, the candidate AP is accessed through the second WiFi path and the WiFi service is switched from using the first WiFi path to using the second WiFi path.
[0008] With the above technical solution, the mobile terminal has dual-band dual-transmission capability and two WiFi channels. When the mobile terminal performs WiFi services through one of the WiFi channels, it uses the idle WiFi channel to perform WiFi scanning and switches the AP based on the scanning results. The WiFi scanning and WiFi service execution are performed simultaneously and do not affect each other, reducing the overall WiFi switching time. In addition, the WiFi service switching is achieved through two WiFi channels, ensuring the continuity of WiFi services during the switching process and improving the user experience.
[0009] In a possible implementation of the first aspect above, the switching method further includes: disconnecting the first WiFi path from the target AP and using the first WiFi path to perform a WiFi scan on the candidate AP to obtain a second scan result; and based on the second scan result, accessing the candidate AP through the first WiFi path and using the first WiFi path to perform the WiFi service.
[0010] In this way, after performing a service switching, WiFi scanning is performed on the AP corresponding to the path performing the WiFi service through another path of the mobile terminal to select a WiFi path with better signal strength of the same AP for WiFi service, thereby improving the user experience of the WiFi service.
[0011] Furthermore, the two WiFi paths of the mobile terminal are usually two frequency bands or different channels of one frequency band. Thus, by scanning the same AP, the channel with the best signal strength of the AP is selected for WiFi service, thereby improving the user experience.
[0012] In a possible implementation of the first aspect above, the first WiFi path is a first frequency band, and the second WiFi path is a second frequency band; after performing a WiFi scan using the second WiFi path in an idle state to obtain a first scan result, the switching method further includes: determining a signal strength of the candidate AP in the first frequency band based on the first scan result for the second frequency band.
[0013] In this way, since the mobile terminal has two WiFi channels, when using one WiFi channel for WiFi service, the other WiFi channel is used for WiFi scanning, and the signal quality of the working WiFi channel to the candidate AP is predicted based on the scanning results, so that the working WiFi channel can determine whether to switch from the target AP to the candidate AP based on the predicted scanning results. Switching can be achieved without the current WiFi channel performing WiFi scanning, saving switching time.
[0014] In a possible implementation of the first aspect, the switching method further includes: switching access to the candidate AP using the first WiFi path based on a signal strength of the candidate AP in the first frequency band.
[0015] In this way, according to whether the predicted signal strength of the candidate AP is greater than a preset threshold or greater than the signal strength of the target AP, the WiFi path of the mobile terminal is switched from the target AP to the candidate AP.
[0016] In a possible implementation of the first aspect above, the switching method further includes: obtaining a current location of the mobile terminal; determining a WiFi fence area that coincides with the current location; and accessing a candidate AP corresponding to the WiFi fence area through the first WiFi path or the second WiFi path.
[0017] In this way, the corresponding WiFi fence area is determined according to the current location of the mobile terminal, and the AP to be accessed by the mobile terminal is determined according to the WiFi fence area, so that the mobile terminal can access the corresponding AP according to its location.
[0018] In a possible implementation of the first aspect, obtaining the current location of the mobile terminal includes determining the current location of the mobile terminal based on a smart home device connected to the mobile terminal.
[0019] In this way, the position of the smart home device is fixed, and the position of the mobile terminal is determined based on the connection between the fixed smart home device and the mobile terminal, so as to achieve accurate positioning of the mobile terminal.
[0020] In a possible implementation of the first aspect above, if the WiFi fence area coinciding with the current position has at least two corresponding candidate APs, accessing the candidate AP corresponding to the WiFi fence area through the first WiFi path or the second WiFi path includes: determining a corresponding roaming path based on the target AP and the WiFi fence area, the roaming path including the target AP currently accessed by the mobile terminal and the candidate AP switched from the currently accessed target AP within the WiFi fence area; determining the candidate AP based on the roaming path; and accessing the candidate AP through the first WiFi path or the second WiFi path.
[0021] In this way, the accuracy of determining the AP corresponding to the WiFi fence area is guaranteed based on the roaming path, ensuring the success rate of mobile terminal access.
[0022] In a possible implementation of the second aspect above, the switching method further includes: obtaining an access result of the mobile terminal accessing the candidate AP, the access result including access success and access failure; and updating the roaming path according to the access result.
[0023] In this way, the roaming path is self-learned based on the access result to improve the accuracy and timeliness of the roaming path.
[0024] In a possible implementation of the first aspect above, the use of the second WiFi path in an idle state to perform WiFi scanning includes: determining a candidate AP based on the target AP and the roaming path, the roaming path including the target AP currently accessed by the mobile terminal and the candidate AP switched from the currently accessed target AP; and using the second WiFi path in an idle state to perform WiFi scanning on the candidate AP.
[0025] In this way, the range of WiFi scanning is limited by the roaming path, thereby improving the efficiency of WiFi scanning.
[0026] In a second aspect, a mobile terminal is provided, comprising: one or more processors; a memory for storing one or more programs; and when the one or more programs are executed by the one or more processors, the one or more processors implement the switching method as described in the first aspect.
[0027] In a third aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the switching method as described in the first aspect is implemented.
[0028] It should be understood that the technical effects brought about by any design in the second to third aspects can refer to the beneficial effects of the corresponding methods provided above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] FIG1 is a schematic diagram of a roaming handover scenario of a mobile terminal provided in an embodiment of the present application.
[0030] FIG2 is a flow chart of a switching method provided in an embodiment of the present application.
[0031] 3A , 3B , 3C , and 3D are schematic diagrams of application scenarios of the switching method for a mobile terminal provided in an embodiment of the present application.
[0032] FIG4 is a flow chart of another switching method provided in an embodiment of the present application.
[0033] FIG5A is a schematic diagram of a home space provided in an embodiment of the present application.
[0034] Figure 5B is a schematic diagram of a WiFi fence area in a home space provided in an embodiment of the present application.
[0035] FIG6 is a flow chart of another switching method provided in an embodiment of the present application.
[0036] FIG7 is a schematic diagram of an application scenario of another mobile terminal provided in an embodiment of the present application.
[0037] FIG8 is a module diagram of a mobile terminal provided in an embodiment of the present application.
[0038] FIG9 is a hardware diagram of a mobile terminal according to an embodiment of the present application. DETAILED DESCRIPTION
[0039] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the said features. In the description of the embodiments of the present application, words such as "exemplary" or "for example" are used to identify examples, illustrations or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Specifically, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete way.
[0040] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art in the art to which this application pertains. The terms used in the specification of this application are for the purpose of describing specific embodiments only and are not intended to limit this application. It should be understood that, in this application, unless otherwise specified, "a plurality of" refers to two or more than two, and "and / or" includes any and all combinations of one or more of the associated listed items.
[0041] First, the technical terms involved in the embodiments of this application are introduced:
[0042] 1. Received Signal Strength Indicator (RSSI)
[0043] RSSI represents signal strength in wireless networks and is used to determine connection quality. RSSI values decay with distance. RSSI is the signal strength from a STA to an AP. This refers to the signal strength from the AP's broadcast message, which the STA receives and uses to determine the AP's signal strength. Different STAs will see different RSSIs for the same AP. Therefore, the RSSI described in this application refers to the RSSI of the current STA relative to the AP.
[0044] 2. Dual-band dual concurrent (DBDC)
[0045] DBDC allows an electronic device to operate simultaneously on two channels in different frequency bands. For example, a device can operate simultaneously on a 2.4 GHz STA channel and a 5 GHz P2P channel. Operating modes other than DBDC, such as dual-band single concurrent (DBSC), dual-band adaptive concurrent (DBAC), and same-frequency, same-channel modes, do not support simultaneous operation of two channels; they only support time-division multiplexing of two channels.
[0046] In order to better understand the switching method and device disclosed in the embodiments of the present application, the application scenario of the switching method of the present application is first described below.
[0047] FIG1 is a schematic diagram of a roaming switching scenario of a mobile terminal provided in an embodiment of the present application.
[0048] The mobile terminals involved in the embodiments of the present application may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, as well as various forms of user equipment (UE), mobile stations (MS), terminal devices, etc. For the convenience of description, the devices mentioned above are collectively referred to as mobile terminals.
[0049] The scenario shown in Figure 1 includes three access points (APs): AP1, AP2, and AP3. AP1 covers area A, AP2 covers area B, and AP3 covers area C. Users carry mobile terminals and move within these coverage areas. To ensure access to the AP with the best signal strength, the terminal periodically performs full-channel scans to obtain the signal strength of neighboring APs. This full-channel scan degrades the performance of currently running Wi-Fi services, particularly low-latency services, and impacts user performance.
[0050] Based on the above problems, an embodiment of the present application provides a switching method, which is applied to a mobile terminal that supports synchronous dual-band dual-transmission capabilities. The mobile terminal has a first WiFi channel and a second WiFi channel. It accesses the target AP through the first WiFi channel and uses the first WiFi channel to perform WiFi services. When the first WiFi channel of the mobile terminal meets the switching conditions, for example, the network quality for performing WiFi services is poor, the second WiFi channel in the idle state is used to perform WiFi scanning, and the candidate AP is determined based on the scanning results. Then, the second WiFi channel is used to access the candidate AP. After successfully accessing the candidate AP, the mobile terminal uses the second WiFi channel to perform WiFi services. During the process of the mobile terminal switching from the target AP to the candidate AP, one WiFi channel performs WiFi services and the other WiFi channel performs WiFi scanning. The WiFi scanning process does not affect the execution of the WiFi services, and each channel only needs to scan the channel corresponding to the channel. The scanning time is short, which reduces the switching time. In the switching process, the user's service is not disconnected, ensuring the continuity of the WiFi service.
[0051] Please refer to Figure 2, which is a flow chart of a switching method provided in an embodiment of the present application. The switching method is applied to a mobile terminal, and the mobile terminal has two WiFi paths, where the frequency bands of the two WiFi paths may be different. For example, the first WiFi path is a 2.4 GHz frequency band, and the second WiFi path is a 5 GHz frequency band. Of course, in other embodiments, the frequency bands of the two WiFi paths may be the same but the channels of the two WiFi paths are different. For example, the first WiFi path and the second WiFi path are both 5 GHz frequency bands, the first WiFi path has channel 1 and channel 2, and the second WiFi path has channel 3 and channel 4.
[0052] The two WiFi paths of the mobile terminal are the first WiFi path and the second WiFi path. In the following scenario: the mobile terminal accesses the target AP through the first WiFi path and uses the first WiFi path for WiFi services, and the second WiFi path is in an idle state, that is, the mobile terminal does not access any AP through the second WiFi path.
[0053] For example, a user can use the first WiFi channel of the mobile terminal to perform WiFi services, such as voice calls, video calls, and other WiFi services, and the service data is transmitted through the first WiFi channel.
[0054] As shown in FIG2 , the switching method may include the following steps:
[0055] S201: A first WiFi channel of a mobile terminal meets a preset switching condition, and a second WiFi channel is used to perform WiFi scanning to obtain a first scanning result.
[0056] Specifically, when the mobile terminal is performing WiFi services through the first WiFi channel, the network quality of the WiFi service deteriorates. For example, the experience quality of the WiFi service deteriorates, the RSSI decreases, the packet loss rate increases, etc., then it is determined that the first WiFi channel of the mobile terminal meets the switching conditions, and the WiFi service performed using the first WiFi channel can be switched to the second WiFi channel or switched from the target AP to other candidate APs with better signal strength.
[0057] In some embodiments, if the RSSI of the first WiFi path of the mobile terminal to the target AP is less than a preset threshold, it is determined that the first WiFi path of the mobile terminal meets the preset switching condition.
[0058] At this time, the mobile terminal performs WiFi service through the first WiFi path and performs WiFi scanning using the second WiFi path. The WiFi scanning process of the mobile terminal does not affect the execution of the WiFi service.
[0059] In some embodiments, the first scanning result includes a candidate AP list and a channel quality corresponding to each candidate AP, wherein the candidate AP list is a service set identifier (SSID) of multiple APs scanned, and the SSID is used to identify the corresponding AP. The channel quality may be the RSSI of the candidate AP to the channel of the mobile terminal through the first WiFi path.
[0060] S202: Based on the first scanning result, use the second WiFi path of the mobile terminal to access the candidate AP and use the second WiFi path to perform WiFi services.
[0061] Specifically, when the mobile terminal uses the first WiFi path to perform WiFi service, if the network quality of the WiFi service deteriorates, WiFi scanning is performed through the second WiFi path, and a candidate AP list is determined based on the first scanning result, where the candidate AP list includes at least one candidate AP;
[0062] Then, the candidate AP with the best network quality is determined in the candidate AP list (wherein, the candidate AP with the best network quality is different from the target AP), and then the mobile terminal accesses the candidate AP through the second WiFi path; after successful access, the second WiFi path is used to perform WiFi services, that is, the WiFi services are switched from the first WiFi path to the second WiFi path, and from the target AP to the candidate AP.
[0063] During the above switching process, WiFi scanning is performed through the second WiFi path. The WiFi scanning does not affect the WiFi services being performed simultaneously. After the mobile terminal successfully accesses the candidate AP through the second WiFi path, the WiFi service is switched to the second WiFi path. The WiFi service is not interrupted, thereby ensuring service continuity and achieving seamless roaming of the WiFi service.
[0064] It can be understood that in the above embodiment, the candidate AP and the target AP are two different APs. It can be understood that in other embodiments, the candidate AP and the target AP are the same AP, and the first WiFi path of the mobile terminal is the first frequency band, the second WiFi path is the second frequency band, the first frequency band is different from the second frequency band, the mobile terminal accesses the target AP through the first WiFi path and uses the first WiFi path to perform WiFi services, when the first WiFi path of the mobile terminal meets the switching condition, the target AP is scanned for WiFi through the second WiFi path, and it is determined based on the scanning result that the target AP has a better signal strength for the second frequency band, and then the mobile terminal accesses the target AP through the second WiFi path. After successful access, the second WiFi path is used to perform WiFi services, and the above switching method further includes:
[0065] Use the second WiFi channel to perform WiFi scanning on the target AP and obtain the target scanning result;
[0066] Based on the target scanning result, the target AP is accessed through the second WiFi path and the WiFi service is performed using the second WiFi path.
[0067] Please refer to Figures 3A, 3B, 3C, and 3D. Figures 3A, 3B, 3C, and 3D are schematic diagrams of an application scenario of a switching method provided in an embodiment of the present application. As shown in Figure 3A, a user's mobile terminal has a first WiFi channel WiFi1 and a second WiFi channel WiFi2. The first WiFi channel is in the 5 GHz frequency band, and the second WiFi channel is in the 2.4 GHz frequency band. The mobile terminal connects to the router in the living room via WiFi1 and uses WiFi1 to establish a service connection with the router in the living room to perform WiFi services. As the user moves from the living room to the bedroom, the Quality of Experience (QoS) of WiFi1 deteriorates. For example, if the RSSI of WiFi1 relative to the router in the living room is less than a signal threshold, the QoE of WiFi1 is determined to have deteriorated. WiFi1 is determined to meet the switching conditions and simultaneously triggers WiFi2, which is in an idle state, to perform a WiFi scan, for example, by performing a channel scan based on channels supported by the frequency band of WiFi2.
[0068] Then, based on the scanning results, it is determined that the router in the bedroom meets the access conditions. For example, the RSSI of the router in the bedroom is better than the RSSI of the living room and the RSSI of the router in the bedroom is greater than the preset threshold. Then, as shown in Figure 3B, the mobile terminal uses WiFi2 to access the router in the bedroom; after successful access, the WiFi service is performed through WiFi2, that is, the WiFi service performed through WiFi1 is switched to that performed through WiFi2, the WiFi service is switched from being implemented through WiFi1 to being implemented through WiFi2, and the WiFi service is switched from being implemented through the router in the living room to being implemented through the router in the bedroom.
[0069] Furthermore, as shown in FIG3C , after WiFi service is successfully switched from WiFi1 to WiFi2, WiFi1 disconnects from the living room router and then uses WiFi1 to perform a WiFi scan on the bedroom router. Based on the results of WiFi1's scan and the results of WiFi2's scan of the bedroom router, the channel quality of WiFi1 or WiFi2 is determined to be better. If the channel quality of WiFi1 is better, as shown in FIG3D , WiFi1 connects to the bedroom router. After successful access, WiFi service is switched from WiFi2 to WiFi1. If the channel quality of WiFi2 is better, no WiFi service switching is performed. This ensures that WiFi service is carried out through the WiFi path with the best channel quality.
[0070] The above switching method further includes:
[0071] S203 : Disconnect the first WiFi path from the target AP and use the first WiFi path to perform WiFi scanning on candidate APs to obtain a second scanning result.
[0072] The second scanning result includes the candidate APs accessed by the mobile terminal using the first WiFi path and the signal strength of the candidate APs.
[0073] S204 : Based on the second scanning result, use the first WiFi path of the mobile terminal to access the candidate AP and use the first WiFi path to perform WiFi services.
[0074] Specifically, after switching the WiFi service performed through the first WiFi channel to the second WiFi channel, the mobile terminal disconnects the connection between the first WiFi channel and the target AP, and performs a WiFi scan on the candidate AP through the first WiFi channel. Based on the scanning result, it is determined that the signal strength of the candidate AP for the first WiFi channel is better than the signal strength of the candidate AP for the second WiFi channel, and then the candidate AP is accessed through the first WiFi channel. At this time, both WiFi channels of the mobile terminal are connected to the candidate AP, and then the WiFi service performed using the second WiFi channel is switched to the first WiFi channel to ensure that the optimal signal strength is provided for the WiFi service and improve the user experience.
[0075] In some embodiments, a first WiFi path of a mobile terminal is a first frequency band, and a second WiFi path is a second frequency band, wherein both the first frequency band and the second frequency band may include multiple channels. For example, the first frequency band is a 2.4 GHz band, and the second frequency band is a 5 GHz band. It is understood that the quality of experience of some WiFi services in the 5 GHz band is better than that in the 2.4 GHz band. Therefore, when the mobile terminal executes a specific WiFi service, the mobile terminal preferentially executes the specific WiFi service through the designated frequency band or a designated channel of the designated frequency band.
[0076] Please refer to Figure 4, which is a flowchart of another switching method provided in an embodiment of the present application.
[0077] If the signal strength in the first scanning result in S201 is the signal strength of the candidate AP for the second frequency band, then after S201, the switching method further includes:
[0078] S401 : Determine the signal strength of the candidate AP for the first frequency band according to the signal strength of the candidate AP for the second frequency band.
[0079] It is understood that the signal strength of an AP (e.g., RSSI) is often related to distance. For example, the farther the distance, the worse the signal. The distance between the two frequency bands of a mobile terminal and the AP is the same. Therefore, the signal strengths of candidate APs corresponding to different frequency bands or different channels of the same frequency band for the same mobile terminal are correlated. Therefore, the second frequency band of the candidate AP can be scanned via a second WiFi channel to obtain scan results. The scan results of the candidate AP for the first frequency band can be predicted based on the candidate AP's scan results for the second frequency band. In other words, the candidate AP's signal strength for the first frequency band can be predicted based on the candidate AP's signal strength for the second frequency band.
[0080] Exemplarily, it is determined that the RSSI difference between the two frequency bands of the mobile terminal is 4 dBm. If the RSSI of the candidate AP for the first frequency band is 67 dBm, the RSSI of the candidate AP for the second frequency band is 70 dBm.
[0081] In some embodiments, the correlation of the signal strength between two frequency bands of a mobile terminal can be determined through multiple measurements, such as the difference between RSSI values, so that the signal strength of both frequency bands can be accurately estimated based on the signal strength of one frequency band. Of course, in other embodiments, the correlation of the signal strength between two frequency bands of a mobile terminal can also be determined using other methods, and this application is not limited thereto.
[0082] S402: disconnect the first WiFi path from the target AP based on the signal strength of the candidate AP for the first frequency band, access the candidate AP through the first WiFi path, and use the first WiFi path to perform WiFi services.
[0083] Specifically, the signal strength of the candidate AP to the first frequency band is predicted based on the signal strength of the candidate AP to the second frequency band. If the signal strength of the candidate AP to the first frequency band meets the preset signal strength threshold, it is determined that the signal strength of the candidate AP is good, and the first WiFi path of the mobile terminal can be switched from the target AP to the candidate AP. After the switching is completed, the WiFi service is carried out through the first WiFi path.
[0084] In this way, when the mobile terminal is performing WiFi services through the first WiFi channel, if the network quality of the WiFi service is poor, the mobile terminal performs a WiFi scan on the second frequency band through the second WiFi channel, and predicts the scan results of the first frequency band based on the scan results of the second frequency band. If the predicted scan results show that the first WiFi channel of the mobile terminal meets the switching conditions, the mobile terminal disconnects the first WiFi channel from the target AP and accesses the candidate AP through the first WiFi channel. After successful access, the WiFi service is performed according to the first WiFi channel. During the process of the mobile terminal switching from the target AP to the candidate AP, the WiFi scan is performed by the second WiFi channel, and the WiFi scanning process does not affect the WiFi service performed through the first WiFi channel. The mobile terminal only needs to scan the channels of the second frequency band through the second WiFi channel, which shortens the scanning time and saves the overall switching time.
[0085] To ensure the continuity of WiFi services, users can set up multiple routers in the space. When users move in the space, they access the corresponding router based on their location to ensure that the mobile terminal provides the best signal strength for WiFi services.
[0086] As shown in Figure 5A, an embodiment of the present application provides a schematic diagram of a home space, which includes three sub-spaces: bedroom 1, bedroom 2 and living room. Bedroom 1, bedroom 2 and living room are all equipped with corresponding routers. However, when the user moves between bedroom 1, bedroom 2 and living room, the user's mobile terminal cannot always establish a connection with the router with the best signal strength. For example, when the user enters the bedroom from the living room, the user's mobile terminal is always connected to the router in the living room, resulting in poor network quality of the mobile terminal's WiFi service, affecting the user experience. As shown in Figure 5A, the user is in bedroom 2, but the mobile terminal is connected to the router in bedroom 1; the user is in bedroom 1, but the mobile terminal is connected to the router in the living room; the user is in the living room, but the mobile terminal is connected to the router in bedroom 1; that is, the mobile terminal cannot establish a connection with the router with the best signal strength, affecting the user experience.
[0087] Based on the above problems, an embodiment of the present application determines the AP corresponding to the WiFi fence area of each AP. When the mobile terminal enters the WiFi fence area, a connection is established with the AP corresponding to the WiFi fence area to ensure the network quality of the WiFi service executed by the mobile terminal.
[0088] As shown in Figure 5B, Figure 5B is a schematic diagram of another home space provided by an embodiment of the present application. The home space includes bedroom 1, bedroom 2 and a living room. Bedroom 1, bedroom 2 and the living room are all equipped with corresponding routers. Three WiFi fence areas are set according to the position of each router and the area shape of bedroom 1, bedroom 2 and the living room. If the user's mobile terminal is in bedroom 1, that is, located in the WiFi fence area corresponding to bedroom 1, the mobile terminal accesses the router in bedroom 1; if the user's mobile terminal enters the living room from bedroom 1, the WiFi fence area corresponding to the current position is determined according to the current position of the mobile terminal, and the mobile terminal switches from the router in bedroom 1 to the router in the living room.
[0089] Furthermore, if the user's current location is not within the WiFi fence area, for example, within the WiFi poor fence area, the user's mobile terminal establishes a data connection with other networks such as a cellular network and performs data services.
[0090] Please refer to FIG6 , which is a flowchart of a switching method provided in an embodiment of the present application. The switching method further includes:
[0091] S601, obtaining the current location of the mobile terminal;
[0092] Specifically, the current position of the mobile terminal is determined based on the sensing information of the sensor carried by the mobile terminal, for example, the actual absolute position of the mobile terminal is determined based on GPS information. Of course, the relative position of the mobile terminal and other electronic devices can also be determined based on the relative relationship between the mobile terminal and other electronic devices.
[0093] S602: Determine the WiFi fence area that overlaps with the current location;
[0094] Each candidate AP has a corresponding WiFi fence area, which represents the coverage area of the candidate AP. Different candidate APs have unique WiFi fence areas. The WiFi fence area corresponding to each AP can be pre-set within the mobile terminal or adaptively determined based on the mobile terminal's scanning information and the shape of the area where the AP resides. For example, Figure 5B shows three WiFi fence areas determined based on the spatial shape of the subspace.
[0095] S603: Access a candidate AP corresponding to the WiFi fence area through the first WiFi path or the second WiFi path.
[0096] In this way, when the mobile terminal is moving, the WiFi fence area that coincides with the current location is determined based on the current location of the mobile terminal, and then the candidate AP corresponding to the WiFi fence area is accessed to ensure that the mobile terminal can always access the AP with better signal strength, thereby ensuring the service quality of the mobile terminal's WiFi service.
[0097] Please refer to Figure 5B again. When there is no WiFi fence area at the location of the mobile terminal or the mobile terminal moves out of the WiFi fence area, the mobile terminal disconnects from the AP and can perform wireless data transmission through the cellular network to ensure the service quality of the mobile terminal's WiFi service (or data service).
[0098] There are three WiFi fence areas in the home space in Figure 5B, and all three WiFi fence areas are square. It can be understood that the signal coverage area of each AP is a circle with the AP as the center. There is a single WiFi fence area located in the signal coverage area of multiple APs. How to determine the WiFi fence area corresponding to each AP is a problem.
[0099] For example, in Figure 5B, the signal strength of the AP in the living room is stronger than that of the APs in bedrooms 1 and 2. Therefore, the living room can be designated as the WiFi fenced area corresponding to the AP in the living room. However, in some areas between adjacent APs, the signal strengths of two or three APs in the area are similar or equal. Therefore, how can we determine the AP that corresponds to the WiFi fenced area?
[0100] The roaming path can be configured through machine learning or based on multiple test results. The roaming route includes the target AP and the candidate AP to which the mobile terminal can successfully switch from the currently connected target A after moving to the WiFi fence area.
[0101] In the above switching method, S603 includes:
[0102] Determine the corresponding roaming path based on the target AP and WiFi fence area;
[0103] Determine the candidate APs corresponding to the WiFi fence area based on the roaming path.
[0104] Access the candidate AP through the first WiFi path or the second WiFi path.
[0105] In this way, the WiFi fence area corresponding to the location of the mobile terminal is determined, and the target AP currently accessed by the mobile terminal and the corresponding candidate AP of the WiFi fence area are determined, wherein the candidate AP is an AP with a higher probability of successful switching from the current target AP by the mobile terminal within the WiFi fence area, that is, the candidate AP, and the mobile terminal is enabled to access the candidate AP, and the corresponding candidate AP is selected through the roaming path to improve the access success rate of the candidate AP.
[0106] For example, if a mobile terminal moves into the Wi-Fi fenced area eight times, successfully connects to AP1 three times and AP2 five times, then AP1's access success rate is 3 / 8, and AP2's access success rate is 5 / 8. AP2's access success rate is higher, and AP2 is the candidate AP for handover from the current target AP in the roaming path.
[0107] In some embodiments, after determining the candidate AP corresponding to the WiFi fence area, the switching method further includes:
[0108] Obtain the access result of the mobile terminal to the candidate AP, including access success and access failure;
[0109] Update the roaming path based on the access result.
[0110] Specifically, each time the mobile terminal moves to the corresponding WiFi fence area and switches from the current target AP to the candidate AP, the access success rate of all candidate APs is updated according to the access result, and then the AP with the lowest access success rate is used as the switching AP in the roaming path.
[0111] It can be understood that since mobile terminals include many types and the positioning capabilities of each mobile terminal are different, if it is impossible to accurately locate the mobile terminal to obtain the current location of the mobile terminal based on the positioning capabilities of the mobile terminal itself, the location information of the mobile terminal can be determined through the connection between the mobile terminal and other smart home devices, thereby determining whether the mobile terminal is located in the corresponding WiFi fence area.
[0112] It is easy to understand that whether it is an office or a home, multiple smart home devices are installed, such as smart speakers, smart screens, etc., and the locations of smart home devices are mostly relatively fixed. When the user carries the mobile terminal on the move, the mobile terminal establishes a connection with the smart home device, such as establishing a Bluetooth connection. Since the position of the smart device is fixed, the location information of the mobile terminal can be determined based on the smart device connected to the mobile terminal, and then the WiFi fence area where the mobile terminal is located can be determined based on the location information.
[0113] In some embodiments, S601 specifically includes:
[0114] The current location of the mobile terminal is determined based on the smart home devices connected to the mobile terminal.
[0115] As shown in Figure 7, Figure 7 is a schematic diagram of another application scenario of a mobile terminal provided in an embodiment of the present application. During user movement, the mobile terminal establishes a connection with smart home device 1 at location 1, establishes a connection with smart home device 2 at location 2, and establishes a connection with smart home device 3 at location 3. In this way, during the user's movement, the current location of the mobile terminal is determined based on the smart home devices connected to the mobile terminal, and then the corresponding WiFi fence area is determined based on the location of the mobile terminal.
[0116] It can be understood that in the process of determining the current location of the mobile terminal based on the connection established between the mobile terminal and the smart home device, if there are multiple smart home devices within the WiFi fence area, then after the mobile terminal successfully connects to which smart home device, it can be determined that the mobile terminal is located in the WiFi fence area.
[0117] In an embodiment of the present application, a connection established between a mobile terminal and a smart home device is determined through system settings or machine learning methods to determine in which WiFi fence area the mobile terminal is located. For example, if a WiFi fence area includes multiple smart home devices, the probability that the mobile terminal is located in the WiFi fence area when the mobile terminal establishes a connection with any of the smart home devices is determined through historical data, and the device with the highest probability is selected as the target smart home device; if the mobile terminal establishes a connection with the target smart home device, it is determined that the mobile terminal is located in the corresponding WiFi fence area.
[0118] Each time a mobile terminal establishes a connection with a smart home device, the access result of the mobile terminal switching from the current target AP to the candidate AP is obtained, and the candidate AP corresponding to the WiFi fence area is updated according to the access result.
[0119] Self-learning improves the roaming service experience and increases the accuracy of AP selection during roaming.
[0120] In some embodiments, the first WiFi path of the mobile terminal is a first frequency band, and the second WiFi path is a second frequency band, wherein the first frequency band and the second frequency band may each include multiple channels. The mobile terminal scans the corresponding channels to obtain the channel quality of the corresponding channels of the AP.
[0121] Exemplarily, the first frequency band is a 2.4 GHz frequency band, including eight channels: 2.4G ch1-2.4G ch8; the second frequency band is a 5 GHz frequency band, including ten channels: 5G ch1-5G ch10.
[0122] It can be understood that when the mobile terminal accesses the candidate AP through the second WiFi path and performs WiFi services through the second WiFi path, the mobile terminal simultaneously accesses the target AP through the first WiFi path and does not perform WiFi services. The mobile terminal can disconnect the connection between the first WiFi path and the target AP and perform a WiFi scan for the candidate AP. If it is determined based on the scan results that the signal strength of the first frequency band for the candidate AP is better than the signal strength corresponding to the second frequency band, the mobile terminal accesses the candidate AP through the first WiFi path. At this time, both paths of the mobile terminal establish connections with the candidate AP, and then the WiFi service is performed through the first WiFi path, that is, the second WiFi path of the WiFi service mobile terminal is switched to the first WiFi path.
[0123] Please refer to Figure 8, which is a schematic diagram of the architecture of a mobile terminal provided in an embodiment of the present application. The mobile terminal can implement the switching methods shown in Figures 2, 4, and 6 and in other embodiments. Referring to Figure 8, the mobile terminal includes a kernel layer, a HIDL layer, and a Framework layer. The above-mentioned switching method is implemented by the Framework layer of the mobile terminal.
[0124] The Framework layer includes QoS monitoring, connection switching decision-making and network selection, and service switching; these modules can perform the corresponding functions of the AP in the above method example. For example:
[0125] QoS monitoring is used to detect the signal strength of the AP connected to the mobile terminal. When the QoE of the WiFi service on the mobile terminal deteriorates, the connection switching decision network selection implements the switching between at least two paths of the mobile terminal and the AP through the above-mentioned switching method. After the switching is completed, the service switching will switch the WiFi service to one of the successfully connected WiFi paths to realize the service switching.
[0126] It is understandable that FIG8 is only an example of a mobile terminal and is not limiting. The mobile terminal may have more or fewer modules than those shown in FIG8 .
[0127] Referring to FIG. 9 , FIG. 9 shows a possible structural diagram of the mobile terminal involved in the above embodiment.
[0128] The terminal device includes a processor 91, a transceiver 92, a memory 93, and a WiFi chip 94. The processor 91 includes one or more processing cores and executes various functional applications and information processing by running software programs and modules. The transceiver 92 can be implemented as a communication component, such as a baseband chip. The transceiver 92, the memory 93, and the WiFi chip 94 can be connected to the processor 91 via a bus. The memory 93 can be used to store at least one program instruction, and the processor 91 is used to execute at least one program instruction to implement the technical solution of the above-mentioned embodiment. The implementation principle and technical effects are similar to those of the above-mentioned method-related embodiments and will not be further described here.
[0129] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the application can adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program codes. These computer program codes can be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in an ad hoc manner.
[0130] This embodiment further provides a computer storage medium storing computer instructions. When the computer instructions are executed on the portal device, the portal device executes the above-mentioned related method steps to implement the switching method in the above-mentioned embodiment.
[0131] This embodiment further provides a computer program product. When the computer program product is run on a portal device, the portal device is caused to execute the above-mentioned related steps to implement the switching method in the above-mentioned embodiment.
[0132] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory to enable the chip to execute the switching method in the above-mentioned method embodiments.
[0133] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0134] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the module or module division is only a logical function division. In actual implementation, there may be other division methods, such as multiple modules or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0135] Modules described as separate components may or may not be physically separate, and components shown as modules may be one physical module or multiple physical modules, that is, they may be located in one place or distributed in multiple places. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0136] In addition, the functional modules in the various embodiments of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module. The above-mentioned integrated modules may be implemented in the form of hardware or software functional modules.
[0137] If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0138] The above is only a specific embodiment of the present application, but the scope of protection of this application is not limited to this. Any changes or substitutions within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A switching method, characterized in that: Applied to a mobile terminal, the mobile terminal supports synchronous dual-band dual-transmission capability, the mobile terminal has a first WiFi path and a second WiFi path, and the switching method includes: The mobile terminal accesses the target wireless access point AP through the first WiFi path and uses the first WiFi path to perform WiFi services. If the first WiFi path meets a preset switching condition, the mobile terminal uses the second WiFi path in an idle state to perform WiFi scanning on surrounding candidate APs to obtain a first scanning result. According to the first scanning result, the candidate AP is accessed through the second WiFi path, and the WiFi service is switched from using the first WiFi path to using the second WiFi path.
2. The switching method according to claim 1, characterized in that: The switching method further includes: Disconnecting the first WiFi path from the target AP and performing a WiFi scan on the candidate AP using the first WiFi path to obtain a second scanning result; According to the second scanning result, the candidate AP is accessed through the first WiFi path and the first WiFi path is used to perform the WiFi service.
3. The switching method according to claim 1 or 2, characterized in that: The first WiFi path is a first frequency band, and the second WiFi path is a second frequency band; After performing WiFi scanning using the second WiFi path in an idle state to obtain a first scanning result, the switching method further includes: The signal strength of the candidate AP in the first frequency band is determined according to the first scanning result for the second frequency band.
4. The switching method according to claim 3, characterized in that: The switching method further includes: According to the signal strength of the candidate AP in the first frequency band, the candidate AP is accessed by using the first WiFi path switching.
5. The switching method according to any one of claims 1 to 4, characterized in that: The switching method further includes: Acquire the current location of the mobile terminal; Determine a WiFi fence area that coincides with the current location; Access the corresponding candidate AP in the WiFi fence area through the first WiFi path or the second WiFi path.
6. The switching method according to claim 5, characterized in that: The obtaining the current location of the mobile terminal comprises: The current location of the mobile terminal is determined based on a smart home device connected to the mobile terminal.
7. The switching method according to claim 5, characterized in that: If the WiFi fence area that coincides with the current location has at least two corresponding candidate APs, the candidate APs corresponding to the WiFi fence area accessed through the first WiFi path or the second WiFi path include: Determine a corresponding roaming path according to the target AP and the WiFi fence area, the roaming path including the target AP currently accessed by the mobile terminal and a candidate AP switched from the currently accessed target AP within the WiFi fence area; Determining a candidate AP according to the roaming path; Access the candidate AP through the first WiFi path or the second WiFi path.
8. The switching method according to claim 7, characterized in that: The switching method further includes: Acquire an access result of the mobile terminal accessing the candidate AP, where the access result includes an access success and an access failure; The roaming path is updated according to the access result.
9. The switching method according to any one of claims 1 to 6, characterized in that: The using the second WiFi path in an idle state to perform WiFi scanning includes: Determine a candidate AP according to the target AP and a roaming path, wherein the roaming path includes a target AP currently accessed by the mobile terminal and a candidate AP switched from the currently accessed target AP; The second WiFi path in an idle state is used to perform WiFi scanning on candidate APs.
10. A mobile terminal, characterized in that: The mobile terminal comprises: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the switching method according to any one of claims 1 to 9.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the switching method according to any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Network switching method and device, storage medium and electronic equipment
CN111182595A
Network access method, device and electronic equipment
CN113825212A
WiFi scanning control method and related device
CN114867035A
Data downloading method and apparatus, and terminal device
WO2022262492A1
