Switching method and device
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 during signal switching in the WiFi network, achieving seamless roaming and improving user experience.
Patent Information
- Application Number
- CN202310260328.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-07
- Publication Date
- 2024-09-10
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 to switch APs, causing service interruption and affecting user experience.
The mobile terminal has dual-band and dual-transmission capabilities. When performing business operations through one WiFi channel, it uses another WiFi channel to synchronously scan the AP and perform switching based on the scanning results to achieve synchronous execution and switching of WiFi services, reduce the overall switching time, and ensure Business continuity.
Through the simultaneous dual-band and dual-transmission capabilities, seamless roaming of WiFi services is achieved, reducing switching time, improving user experience, and ensuring business continuity during the switching process.
Smart Images

Figure CN118632307A
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a switching method and device. Background Art
[0002] 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.
[0003] In WIFI, the user's mobile terminal accesses the WiFi network through a wireless access point (AP); when the mobile terminal receives a poor signal strength from the accessed AP, it often scans all channels to obtain information about surrounding APs. Since the full channel scan takes a long time, for example, 1.6 to 2.4 seconds, and services are unavailable during the full channel scan, the user experience is affected. Summary of the invention
[0004] 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 two WiFi channels. When the mobile terminal performs WiFi service through one of the WiFi channels, the idle WiFi channel is used to perform WiFi scanning, and the AP is switched based on the scanning results. The WiFi scanning and the execution of the WiFi service are performed synchronously without affecting each other, thereby reducing the overall WiFi switching time.
[0005] 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 WiFi scanning 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 use the second WiFi path to perform the WiFi service.
[0006] By adopting the above technical solution, the mobile terminal has dual-band dual-transmission capability and two WiFi channels. When the mobile terminal performs WiFi service through one of the WiFi channels, the idle WiFi channel is used to perform WiFi scanning, and the AP is switched according to the scanning result. The WiFi scanning and the execution of the WiFi service are performed simultaneously without affecting each other, thereby reducing the overall WiFi switching time. The switching of the WiFi service is realized through the two WiFi channels. During the switching process, the continuity of the WiFi service is guaranteed, and the user experience is improved.
[0007] In a possible implementation of the first aspect above, the switching method also 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 scanning result; based on the second scanning result, accessing the candidate AP through the first WiFi path and using the first WiFi path to perform the WiFi service.
[0008] In this way, after executing a service switching, a WiFi scan is performed on the AP corresponding to the path executing the WiFi service through another path of the mobile terminal to select a WiFi path with better signal strength of the same AP to perform the WiFi service, thereby improving the user experience of the WiFi service.
[0009] 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.
[0010] 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 scanning result, the switching method also includes: determining the signal strength of the candidate AP in the first frequency band based on the first scanning result for the second frequency band.
[0011] In this way, since the mobile terminal has two WiFi channels, when one of the WiFi channels is used for WiFi services, 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, and switching can be achieved without the current WiFi channel performing WiFi scanning, saving switching time.
[0012] In a possible implementation of the first aspect above, the switching method further includes: using the first WiFi path to switch access to the candidate AP according to a signal strength of the candidate AP in the first frequency band.
[0013] In this way, according to the predicted signal strength of the candidate AP being greater than a preset threshold or greater than the signal strength of the target AP, the WiFi channel of the mobile terminal is switched from the target AP to the candidate AP.
[0014] In a possible implementation of the first aspect above, the switching method also includes: acquiring 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.
[0015] 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 the current location.
[0016] In a possible implementation of the first aspect above, acquiring the current location of the mobile terminal includes: determining the current location of the mobile terminal according to a smart home device connected to the mobile terminal.
[0017] 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.
[0018] In a possible implementation of the first aspect above, if the WiFi fence area that coincides 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 a candidate AP switched from the currently accessed target AP within the WiFi fence area; determining a candidate AP based on the roaming path; and accessing the candidate AP through the first WiFi path or the second WiFi path.
[0019] In this way, the accuracy of determining the AP corresponding to the WiFi fence area is guaranteed based on the roaming path, thereby ensuring the success rate of mobile terminal access.
[0020] 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.
[0021] In this way, the roaming path is self-learned according to the access result to improve the accuracy and timeliness of the roaming path.
[0022] 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 a 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 APs.
[0023] In this way, the range of WiFi scanning is limited by the roaming path, thereby improving the efficiency of WiFi scanning.
[0024] In a second aspect, a mobile terminal is provided, comprising: 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 as described in the first aspect.
[0025] According to 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 according to the first aspect is implemented.
[0026] 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 in the corresponding methods provided above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 A schematic diagram of a roaming switching scenario of a mobile terminal is provided for an embodiment of the present application.
[0028] Figure 2 A flowchart of a switching method is provided for an embodiment of the present application.
[0029] Figure 3A , Figure 3B , Figure 3C , Figure 3D They are respectively schematic diagrams of application scenarios of the switching method for a mobile terminal provided in the embodiments of the present application.
[0030] Figure 4 A flowchart of another switching method provided in an embodiment of the present application.
[0031] Figure 5A A schematic diagram of a home space provided in an embodiment of the present application.
[0032] Figure 5BA schematic diagram of a WiFi fence area of a home space provided in an embodiment of the present application.
[0033] Figure 6 A flowchart of another switching method provided in an embodiment of the present application.
[0034] Figure 7 A schematic diagram of an application scenario of another mobile terminal provided in an embodiment of the present application.
[0035] Figure 8 A schematic diagram of the modules of a mobile terminal provided in an embodiment of the present application.
[0036] Fig. 9 A hardware schematic diagram of a mobile terminal according to an embodiment of the present application. DETAILED DESCRIPTION
[0037] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the 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 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 designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way.
[0038] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by those skilled in the art in the present application. The terms used in the specification of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. It should be understood that in the present 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.
[0039] First, the technical terms involved in the embodiments of the present application are introduced:
[0040] 1. Received Signal Strength Indicator (RSSI)
[0041] RSSI represents the signal strength in a wireless network and is used to determine the quality of the connection. The RSSI value decays with increasing distance. Among them, RSSI is the signal strength scanned by STA to AP, that is, AP sends a broadcast message, STA receives the broadcast message and determines the signal strength of AP based on the broadcast message. For the same AP, the RSSI scanned by different STAs is different. Therefore, the RSSI described in this application is for the current STA, that is, the RSSI of STA to AP.
[0042] 2. Dual band dual concurrent (DBDC)
[0043] DBDC means that an electronic device can simultaneously operate two channels in different frequency bands. For example, a device can simultaneously operate in a 2.4GHz STA channel and a 5GHz P2P channel. All operating modes except DBDC do not support operating two channels simultaneously, such as dual band single concurrent (DBSC), dual band adaptive concurrent (DBAC), same frequency and same channel operating modes, etc., which only support time division multiplexing of two channels.
[0044] 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.
[0045] Figure 1 A schematic diagram of a roaming switching scenario of a mobile terminal provided in an embodiment of the present application.
[0046] 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 above-mentioned devices are collectively referred to as mobile terminals.
[0047] Figure 1The scenario shown includes three AP (Access Point) devices: AP1, AP2 and AP3. AP1 has coverage area A, AP2 has coverage area B, and AP3 has coverage area C. The user carries a mobile terminal and moves within the above coverage areas. In order to ensure that the mobile terminal can access the AP with the best signal strength, the mobile terminal periodically performs full-channel scanning during the user's movement to obtain the signal strength of the adjacent AP. The full-channel scanning reduces the performance of the currently running WiFi services, especially the low-latency services, and affects the user performance.
[0048] Based on the above problems, an embodiment of the present application provides a switching method, which is applied to a mobile terminal, and the mobile terminal supports synchronous dual-band dual-transmission capability. The mobile terminal has a first WiFi channel and a second WiFi channel, 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 of the WiFi service 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, and then the candidate AP is accessed using the second WiFi channel; after successfully accessing the candidate AP, the mobile terminal uses the second WiFi channel to perform WiFi services. In 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 service, and each channel only needs to scan the channel corresponding to the channel. The scanning time is short, which reduces the switching time, and during the switching process, the user's service is not disconnected, ensuring the continuity of the WiFi service.
[0049] See also Figure 2 , 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, the mobile terminal has two WiFi paths, 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.
[0050] 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.
[0051] For example, a user may use a first WiFi channel of a 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.
[0052] like Figure 2 As shown, the switching method may include the following steps:
[0053] 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.
[0054] 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.
[0055] In some embodiments, if the RSSI of the first WiFi channel of the mobile terminal to the target AP is less than a preset threshold, it is determined that the first WiFi channel of the mobile terminal meets the preset switching condition.
[0056] At this time, the mobile terminal performs WiFi service through the first WiFi path and performs WiFi scanning using the second WiFi path, and the execution of WiFi service is not affected during the WiFi scanning process of the mobile terminal.
[0057] 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, the SSID is used to identify the corresponding AP, and the channel quality may be the RSSI of the candidate AP to the channel of the mobile terminal through the first WiFi path.
[0058] 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.
[0059] Specifically, when the mobile terminal uses the first WiFi channel to perform WiFi service, if the network quality of the WiFi service deteriorates, WiFi scanning is performed through the second WiFi channel, and a candidate AP list is determined according to the first scanning result, and the candidate AP list includes at least one candidate AP;
[0060] 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.
[0061] During the above switching process, WiFi scanning is performed through the second WiFi channel. 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 channel, the WiFi service is switched to the second WiFi channel. The WiFi service is not interrupted, thereby ensuring the continuity of the service and realizing seamless roaming of the WiFi service.
[0062] 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 that the signal strength of the target AP for the second frequency band is better according to the scanning result, and then the mobile terminal accesses the target AP through the second WiFi path. After the access is successful, the second WiFi path is used to perform WiFi services, and the above switching method also includes:
[0063] Use the second WiFi channel to perform WiFi scanning on the target AP to obtain the target scanning result;
[0064] According to the target scanning result, the target AP is accessed through the second WiFi path and the second WiFi path is used to perform WiFi services.
[0065] Please also see Figure 3A , Figure 3B , Figure 3C , Figure 3D , Figure 3A , Figure 3B , Figure 3C and Figure 3D A schematic diagram of an application scenario of a switching method provided in an embodiment of the present application, such as Figure 3AAs shown, the user's mobile terminal has a first WiFi channel WiFi1 and a second WiFi channel WiFi2, the first WiFi channel is a 5 GHz frequency band, and the second WiFi channel is a 2.4 GHz frequency band. The mobile terminal connects to the router in the living room through WiFi1 and uses WiFi1 to achieve 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 (Quality of Experience, Qoe) of WiFi1 deteriorates. For example, the RSSI of WiFi1 to the router in the living room is less than the signal threshold, and it is determined that the QoE of WiFi1 deteriorates. It is determined that WiFi1 meets the switching condition and triggers WiFi2 in an idle state to perform WiFi scanning, for example, channel scanning is performed according to the channels supported by the frequency band of WiFi2.
[0066] Then, based on the scan results, it is determined that the router in the bedroom meets the access conditions. For example, if 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 Figure 3B As shown, 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 being 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.
[0067] Furthermore, if Figure 3C As shown in FIG. 1 , after the WiFi service is successfully switched from WiFi1 to WiFi2, WiFi1 disconnects from the router in the living room, and then uses WiFi1 to perform a WiFi scan on the router in the bedroom. Based on the scan result of WiFi1 and the scan result of WiFi2 on the router in the bedroom, it is determined which of WiFi1 and WiFi2 has a better channel quality. If the channel quality corresponding to WiFi1 is better, then Figure 3D As shown in the figure, WiFi1 is connected to the router in the bedroom. After the connection is successful, the WiFi service is switched from WiFi2 to WiFi1. If the channel quality corresponding to WiFi2 is good, the WiFi service will not be switched. This ensures that the WiFi service is carried out through the WiFi channel with the best channel quality.
[0068] Then the above switching method further includes:
[0069] S203 , disconnecting the first WiFi path from the target AP and using the first WiFi path to perform WiFi scanning on candidate APs to obtain a second scanning result.
[0070] The second scanning result includes the candidate APs accessed by the mobile terminal using the first WiFi channel and the signal strength of the candidate APs.
[0071] 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.
[0072] Specifically, after the WiFi service performed through the first WiFi channel is switched 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.
[0073] In some embodiments, the first WiFi path of the mobile terminal is the first frequency band, and the second WiFi path is the 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 the 2.4 GHz frequency band, and the second frequency band is the 5 GHz frequency band. It can be understood that the experience quality of some WiFi services in the 5G frequency band is better than the experience quality in the 2.4G frequency band. Therefore, when the mobile terminal executes a specific WiFi service, the mobile terminal preferentially performs the specific WiFi service through the designated frequency band or the designated channel of the designated frequency band.
[0074] Please see Figure 4 , Figure 4 A flowchart of another switching method provided in an embodiment of the present application.
[0075] 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:
[0076] S401 . Determine the signal strength of a candidate AP for a first frequency band according to the signal strength of the candidate AP for a second frequency band.
[0077] It can be understood that the signal strength of the AP (such as RSSI) is mostly related to the distance. For example, the farther the distance, the worse the signal. The two frequency bands of the mobile terminal are at the same distance from the AP. Therefore, the signal strengths of the candidate APs corresponding to different frequency bands of the same mobile terminal or different channels of the same frequency band are correlated. Therefore, the second frequency band of the candidate AP can be scanned through the second WiFi channel to obtain the scanning result, and the scanning result of the candidate AP for the first frequency band can be predicted based on the scanning result of the candidate AP for the second frequency band. That is, the signal strength of the candidate AP for the first frequency band is predicted based on the signal strength of the candidate AP for the second frequency band.
[0078] 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 to the first frequency band is 67 dbm, then the RSSI of the candidate AP to the second frequency band is 70 dbm.
[0079] In some embodiments, the correlation of the signal strength between the two frequency bands of the mobile terminal can be determined by multiple measurements, such as the difference between RSSIs, so that the signal strength of the two frequency bands can be accurately estimated based on the signal strength of one of the frequency bands. Of course, in other embodiments, the correlation of the signal strength between the two frequency bands of the mobile terminal can also be determined according to other methods, and this application is not limited to this.
[0080] S402: disconnect the first WiFi path from the target AP according to 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.
[0081] 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 channel 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 channel.
[0082] In this way, when the mobile terminal performs WiFi service through the first WiFi channel, if the network quality of the WiFi service is poor, the mobile terminal performs WiFi scanning on the second frequency band through the second WiFi channel, and predicts the scanning result of the first frequency band based on the scanning result of the second frequency band. If the predicted scanning result shows that the first WiFi channel of the mobile terminal meets the switching condition, the mobile terminal disconnects the connection between the first WiFi channel and the target AP, accesses the candidate AP through the first WiFi channel, and after the access is successful, performs WiFi service according to the first WiFi channel. In the process of the mobile terminal switching from the target AP to the candidate AP, the WiFi scanning is performed by the second WiFi channel, and the WiFi scanning process does not affect the WiFi service through the first WiFi channel. The mobile terminal only needs to scan the channels of the second frequency band through the second WiFi channel, and the scanning time is short, saving the overall switching time.
[0083] In order 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 according to their location to ensure that the mobile terminal provides the best signal strength for WiFi services.
[0084] like Figure 5A As shown, a schematic diagram of a home space provided by an embodiment of the present application includes three subspaces: bedroom 1, bedroom 2 and living room. Bedroom 1, bedroom 2 and living room are all provided with corresponding routers. However, when a 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 a user enters the bedroom from the living room, the user's mobile terminal always establishes a connection with the router in the living room, resulting in poor network quality of the mobile terminal's WiFi service, affecting the user experience. Figure 5A As shown, 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.
[0085] 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.
[0086] like Figure 5B As shown, Figure 5BA schematic diagram of another home space provided for an embodiment of the present application, the home space includes bedroom 1, bedroom 2 and a living room, and bedroom 1, bedroom 2 and the living room are each provided with a corresponding router. 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.
[0087] 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.
[0088] Please see Figure 6 , Figure 6 A schematic diagram of a switching method provided in an embodiment of the present application, wherein the switching method further includes:
[0089] S601, obtaining the current location of the mobile terminal;
[0090] 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.
[0091] S602, determining a WiFi fence area that coincides with the current location;
[0092] Each candidate AP has a corresponding WiFi fence area, wherein the WiFi fence area is the coverage area of the candidate AP, and different candidate APs have their own unique WiFi fence areas. The WiFi fence area corresponding to each AP can be pre-set in the mobile terminal, or can be adaptively determined based on the scanning information of the mobile terminal and the shape of the area where the AP is located. Figure 5B The three WiFi fence areas are determined according to the spatial shape of the subspace.
[0093] S603: Access a candidate AP corresponding to the WiFi fence area through the first WiFi path or the second WiFi path.
[0094] In this way, during the movement of the mobile terminal, the WiFi fence area that coincides with the current position is determined based on the current position 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.
[0095] Please see again Figure 5B 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).
[0096] Figure 5B There are three WiFi fence areas in the home space, 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.
[0097] For example Figure 5B In the example, if the signal strength of the AP in the living room is better than that of the APs in bedroom 1 and bedroom 2, the living room can be set as the WiFi fence area corresponding to the AP in the living room. However, in some areas between adjacent APs, the signal strengths of two or three APs to the area are similar or equal, so how to determine the AP corresponding to the WiFi fence area.
[0098] 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 switched from the target AP. The candidate AP is the candidate AP to which the mobile terminal can successfully switch from the currently connected target A after the mobile terminal moves to the WiFi fence area.
[0099] In the above switching method, S603 includes:
[0100] Determine the corresponding roaming path based on the target AP and WiFi fence area;
[0101] Determine the candidate AP corresponding to the WiFi fence area based on the roaming path.
[0102] Access the candidate AP through the first WiFi path or the second WiFi path.
[0103] 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 of the mobile terminal from the current target AP 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.
[0104] For example, the mobile terminal moves to the WiFi fence area 8 times, successfully accesses AP1 3 times, and successfully accesses AP2 5 times, then the access success rate of AP1 is 3 / 8; the access success rate of AP2 is 5 / 8. The access success rate of AP2 is higher, and the candidate AP for switching connection from the current target AP in the roaming path is AP2.
[0105] In some embodiments, after determining the candidate AP corresponding to the WiFi fence area, the switching method further includes:
[0106] Obtain the access result of the mobile terminal to the candidate AP, including access success and access failure;
[0107] Update the roaming path based on the access result.
[0108] 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.
[0109] It can be understood that since mobile terminals include many types and the positioning capabilities of each mobile terminal are different, when 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.
[0110] It is easy to understand that multiple smart home devices are installed in both office and home places, 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 a Bluetooth connection. Since the location 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.
[0111] In some embodiments, S601 specifically includes:
[0112] The current location of the mobile terminal is determined based on the smart home device connected to the mobile terminal.
[0113] like Figure 7 As shown, Figure 7 This is a schematic diagram of another application scenario of a mobile terminal provided in an embodiment of the present application. During the user's movement, the mobile terminal establishes a connection with smart home device 1 at position 1, establishes a connection with smart home device 2 at position 2, and establishes a connection with smart home device 3 at position 3. In this way, during the user's movement, the current location of the mobile terminal is determined based on the smart home device connected to the mobile terminal, and then the corresponding WiFi fence area is determined based on the location of the mobile terminal.
[0114] 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 in 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.
[0115] 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 the 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 smart home 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.
[0116] Each time the mobile terminal establishes a connection with the 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.
[0117] Self-learning is used to improve the roaming service experience and the normal rate of AP selection during roaming.
[0118] 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 both the first frequency band and the second frequency band may include multiple channels. The mobile terminal scans the corresponding channel to obtain the channel quality of the corresponding channel of the AP.
[0119] Exemplarily, the first frequency band is a 2.4 GHz frequency band, including eight channels: 2.4G ch1-2.4G ch8, and the second frequency band is a 5 GHz frequency band, including ten channels: 5G ch1-5G ch10.
[0120] 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 result 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.
[0121] See also Figure 8 , Figure 8 The mobile terminal can be implemented as follows: Figure 2 , Figure 4 and Figure 6 The switching method shown in the figure and in other embodiments. Figure 8 The mobile terminal includes a kernel layer, a HIDL layer and a Framework layer, and the above switching method is implemented by the Framework layer of the mobile terminal.
[0122] The Framework layer includes QoS monitoring, connection switching decision network selection, and service switching; these modules can perform the corresponding functions of the AP in the above method example. For example:
[0123] Qoe 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 realizes 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 WiFi service in progress is switched to one of the WiFi paths that is successfully connected by the service switching to realize the switching of the service.
[0124] Understandably, Figure 8 This is only an example of a mobile terminal and is not intended to be limiting. A mobile terminal may have Figure 8 More or fewer modules as shown.
[0125] See also Fig. 9 As shown, Fig. 9 A possible structural diagram of the mobile terminal involved in the above embodiments is shown.
[0126] 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 the processor 91 executes various functional applications and information processing by running software programs and modules. The transceiver 92 can be implemented as a communication component, which can be 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 embodiment. Its implementation principle and technical effect are similar to those of the above method related embodiments, and will not be repeated here.
[0127] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program codes. These computer program codes may be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a particular manner.
[0128] This embodiment further provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on the entry device, the entry device executes the above-mentioned related method steps to implement the switching method in the above-mentioned embodiment.
[0129] This embodiment further provides a computer program product. When the computer program product runs on a portal device, the portal device executes the above-mentioned related steps to implement the switching method in the above-mentioned embodiment.
[0130] 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 execution instructions, and when the device is running, the processor can execute the computer execution instructions stored in the memory so that the chip executes the switching method in the above-mentioned method embodiments.
[0131] 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.
[0132] In the several embodiments provided in the present 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 only schematic. For example, the module or the division of modules is only a logical function division. There may be other division methods in actual implementation, 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.
[0133] The modules described as separate components may or may not be physically separated, and the 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 different places. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0134] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0135] If the integrated module is implemented in the form of a software function 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, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.
[0136] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope 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
Cited By
Wireless network roaming switching method and device, storage medium and electronic equipment
CN121334789A
Wireless network roaming switching method and device, storage medium and electronic equipment
CN121334789B
Switching method and apparatus
EP4661497A1
Communication method and apparatus
WO2026020840A1
