Roaming switching method and electronic equipment
By introducing a roaming policy decision mechanism into the routing device, whether to perform roaming switching is determined based on the active state of the terminal device and the communication frequency band parameters, the problem of poor network quality after roaming switching of the terminal device is solved and the user experience is improved.
Patent Information
- Application Number
- CN202311302074.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-09
- Publication Date
- 2025-04-18
AI Technical Summary
In the prior art, terminal devices often experience poor network quality after roaming switching, affecting user experience.
By introducing a roaming policy decision mechanism into the routing device, it is determined whether to perform roaming switching based on the current active state of the terminal device and the parameters of the communication frequency band (such as negotiation rate, retransmission rate and signal strength), so as to avoid unnecessary frequency band switching.
The frequency of dual-frequency switching is reduced, the online duration of the 5G band is improved, and the poor network quality caused by frequent switching is avoided, thereby improving the user experience.
Smart Images

Figure CN119854892A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a roaming switching method and electronic device. Background Art
[0002] A router is a network device that acts as a gateway between networks. Terminal devices are usually connected to the network through routers. In order to provide better communication services for terminal devices, existing routers usually support dual-band mode, that is, 2.4G and 5G bands are configured on the router at the same time. Terminal devices can roam and switch between the 2.4G and 5G bands to select the best communication link.
[0003] In the prior art, there are two main ways for roaming switching of terminal devices: first, the routing device guides the terminal device to perform roaming switching; second, the terminal device actively performs roaming switching. However, in actual applications, it is found that no matter which method is used, the terminal device may have negative benefits after roaming switching (the service experience is worse after roaming switching), which affects the user experience. Summary of the invention
[0004] The present application provides a roaming switching method and an electronic device, which can reduce the frequency of dual-band switching, thereby avoiding the problem of poor network quality caused by frequent dual-band switching and improving user experience.
[0005] In a first aspect, an embodiment of the present application provides a roaming switching method, the method comprising:
[0006] The routing device receives a roaming switching request from the terminal device; the roaming switching request is used to request to switch the communication frequency band of the terminal device from the first frequency band to the second frequency band;
[0007] The routing device determines a roaming strategy in response to the roaming switching request based on parameters of the first frequency band and / or a current active state of the terminal device;
[0008] When the routing device determines that the roaming policy is to reject switching, the communication frequency band of the terminal device is maintained at the first frequency band.
[0009] In the embodiment of the present application, after receiving the roaming switching request, the routing device does not immediately switch the communication frequency band of the terminal device from the first frequency band to the second frequency band, which can avoid the poor network quality after the switching affecting the current user experience; at this time, the routing device can determine the roaming strategy with the help of the parameters of the first frequency band and / or the current active state of the terminal device, and then, when it is determined that the roaming strategy is to refuse switching, the communication frequency band of the terminal device is kept as the first frequency band. This method can reduce the frequency of dual-frequency switching, thereby avoiding the problem of poor network quality caused by frequent dual-frequency switching, and can improve user experience.
[0010] In combination with the first aspect, in a possible implementation, the first frequency band is a 5G frequency band, and the second frequency band is a 2.4G frequency band. This method can reduce the frequency of dual-band switching and increase the online time of the 5G frequency band, thereby avoiding the problem of poor network quality caused by frequent dual-band switching, and can improve user experience.
[0011] In combination with the first aspect, in a possible implementation manner, the roaming policy further includes consenting to handover, and the method further includes:
[0012] When the routing device determines that the roaming policy is to agree to switch, the communication frequency band of the terminal device is switched from the first frequency band to the second frequency band.
[0013] In an embodiment of the present application, the routing device may switch the communication frequency band of the terminal device from the first frequency band to the second frequency band when determining that the network quality is better after switching.
[0014] In combination with the first aspect, in a possible implementation manner, the routing device determines a roaming strategy based on a parameter of the first frequency band and / or a current active state of the terminal device, including:
[0015] The routing device switches the communication frequency band of the terminal device from the first frequency band to the second frequency band when the current active state of the terminal device is inactive;
[0016] When the current active state of the terminal device is active, the routing device determines a roaming strategy based on the parameters of the first frequency band.
[0017] In an embodiment of the present application, when the current active state of the terminal device is active, the routing device does not immediately switch the communication frequency band of the terminal device from the first frequency band to the second frequency band, so as to avoid the poor network quality after the switch affecting the user's current usage experience; at this time, the routing device can determine the network quality of the first frequency band with the help of the parameters of the first frequency band, and then determine the roaming strategy.
[0018] In combination with the first aspect, in a possible implementation manner, the parameters of the first frequency band include at least one of a negotiation rate corresponding to the first frequency band and a retransmission rate corresponding to the first frequency band, and a signal strength indication RSSI of the first frequency band.
[0019] In an embodiment of the present application, the terminal device determines the network quality corresponding to the first frequency band based on at least one of the negotiation rate corresponding to the first frequency band and the retransmission rate corresponding to the first frequency band and the signal strength indication RSSI of the first frequency band, thereby ensuring the accuracy of the roaming decision.
[0020] In conjunction with the first aspect, in a possible implementation manner, determining a roaming strategy includes:
[0021] The RSSI of the routing device in the first frequency band is less than the first preset value and the negotiation rate corresponding to the first frequency band is less than the preset rate, and the roaming policy is determined to agree to switch;
[0022] When the RSSI of the routing device in the first frequency band is less than the first preset value and the negotiation rate corresponding to the first frequency band is not less than the preset rate, or the RSSI of the first frequency band is not less than the first preset value, the roaming strategy is determined based on the RSSI of the first frequency band, the retransmission rate corresponding to the first frequency band and the RSSI of the second frequency band.
[0023] In an embodiment of the present application, the routing device can determine that the network quality of the first frequency band is poor when the RSSI of the first frequency band is less than the first preset value and the negotiation rate corresponding to the first frequency band is less than the preset rate. In this case, the communication frequency band of the terminal device is switched from the first frequency band to the second frequency band, which can improve the network quality of the terminal device. The routing device can further judge the network quality of the first frequency band based on the RSSI of the first frequency band, the retransmission rate corresponding to the first frequency band, and the RSSI of the second frequency band when the negotiation rate corresponding to the first frequency band is not less than the preset rate, or the RSSI of the first frequency band is not less than the first preset value, and then determine the roaming strategy, which can avoid the poor network quality after direct switching affecting the user's current experience.
[0024] In combination with the first aspect, in a possible implementation manner, determining a roaming strategy based on a negotiation rate corresponding to the first frequency band, a retransmission rate corresponding to the first frequency band, and an RSSI of the second frequency band includes:
[0025] The first difference between the RSSI of the second frequency band and the RSSI of the first frequency band of the routing device is greater than the preset difference and the RSSI of the first frequency band is not greater than the second preset value, and the roaming policy is determined to agree to switch; the second preset value is greater than the first preset value;
[0026] The routing device determines a roaming strategy based on a retransmission rate corresponding to the first frequency band when the first difference is greater than a preset difference and the RSSI of the first frequency band is greater than a second preset value, or when the first difference is not greater than the preset difference.
[0027] In an embodiment of the present application, the routing device can determine that the network quality of the first frequency band is worse than the network quality of the second frequency band when the first difference is greater than the preset difference and the RSSI of the first frequency band is not greater than the second preset value, and then decide to switch the communication frequency band of the terminal device from the first frequency band to the second frequency band. This method can improve the network quality of the terminal device; the routing device can further judge the network quality of the first frequency band based on the retransmission rate corresponding to the first frequency band when the first difference is greater than the preset difference and the RSSI of the first frequency band is greater than the second preset value, or the first difference is not greater than the preset difference, and then determine the roaming strategy, so as to avoid the poor network quality after direct switching affecting the user's current usage experience.
[0028] In combination with the first aspect, in a possible implementation manner, determining a roaming strategy based on a retransmission rate corresponding to the first frequency band includes:
[0029] When the retransmission rate corresponding to the first frequency band is greater than the preset retransmission rate, the routing device determines that the roaming policy is to agree to switch;
[0030] When the retransmission rate corresponding to the first frequency band is not greater than the preset retransmission rate, the routing device determines that the roaming policy is to reject switching.
[0031] In combination with the first aspect, in a possible implementation manner, determining the roaming strategy based on the retransmission rate corresponding to the first frequency band further includes:
[0032] When the retransmission rate corresponding to the first frequency band is not greater than the preset retransmission rate, the routing device determines a roaming strategy based on at least one of the joining duration of the terminal device, the frequency of rejected switching, and the time interval between the two most recent rejected switching.
[0033] In a second aspect, an embodiment of the present application provides a roaming switching method, the method comprising:
[0034] The terminal device sends a roaming switching request to the routing device; the roaming switching request is used to request to switch the communication frequency band of the terminal device from the first frequency band to the second frequency band;
[0035] After sending the roaming switching request, the terminal device maintains communicating with the routing device through the first frequency band.
[0036] In a third aspect, the present application provides a functional module, which is used to execute the method shown in any of the above aspects or any possible implementation of any of the aspects.
[0037] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute any one of the above aspects or any possible implementation of any one of the aspects.
[0038] In a fifth aspect, an embodiment of the present application provides a chip system, which is applied to an electronic device, and the chip system includes one or more processors, and the processor is used to call computer instructions so that the electronic device executes the method shown in any one of the above aspects or any possible implementation of any one of the aspects.
[0039] In a sixth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on an electronic device, enables the electronic device to execute a method as described in any one of the above aspects or any possible implementation of any one of the aspects.
[0040] In the seventh aspect, an embodiment of the present application provides a computer-readable storage medium, including instructions, characterized in that when the instructions are executed on an electronic device, the electronic device executes the method shown in any one of the above aspects or any possible implementation of any one of the aspects.
[0041] It is understandable that the functional module provided in the third aspect, the electronic device provided in the fourth aspect, the chip system provided in the fifth aspect, the computer program product provided in the sixth aspect, and the computer storage medium provided in the seventh aspect are all used to execute the method provided in the embodiment of the present application. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 is a schematic diagram of a network architecture of a communication system provided in an embodiment of the present application;
[0043] Figure 2 is a method flow chart of a roaming switching method provided by an embodiment of the present application;
[0044] Figure 3 is a schematic diagram of a switching rejection scenario provided by an embodiment of the present application;
[0045] Figure 4 is a method flow chart of another roaming switching method provided by an embodiment of the present application;
[0046] Figure 5 It is a structural diagram of a terminal device provided in an embodiment of the present application;
[0047] Figure 6 It is a structural diagram of a routing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described below in conjunction with the accompanying drawings.
[0049] The terms "first" and "second" in the specification, claims and drawings of this application are only used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
[0050] The "embodiment" mentioned in the embodiments of the present application means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present application. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It can be explicitly and implicitly understood by those skilled in the art that the embodiment described in the embodiments of the present application can be combined with other embodiments.
[0051] In the present application, "at least one (item)" means one or more, "more than one" means two or more, "at least two (items)" means two or three and more than three, and "and / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c".
[0052] An existing access point device (AP) can support multiple frequency bands at the same time. For example, an access point device can support 2.4 GHz and 5 GHz. For example, the following description is made by taking the access point device as a routing device.
[0053] At present, the terminal device can determine whether to switch the Wi-Fi frequency band based on the received signal strength indication (RSSI). If the terminal device determines that the RSSI of the 5G frequency band signal is larger when it is close to the AP, it can access the 5G frequency band. If the terminal device determines that the RSSI of the 2.4G frequency band signal is larger when it is far from the AP, it can choose to access the 2.4G frequency band.
[0054] However, many users reported that the Internet speed became faster after turning off the dual-band integration function of the terminal device, and that the terminal device experienced problems such as frequent dual-band switching.
[0055] In view of this, an embodiment of the present application provides a roaming switching method, in which, after receiving a roaming switching request from a terminal device, the routing device does not immediately perform roaming switching, but determines a roaming strategy based on the parameters of the first frequency band and / or the current active state of the terminal device; and does not perform roaming switching when it is determined that the roaming strategy is to reject switching. This method can avoid the problem of worse network quality after switching and frequent switching.
[0056] In order to better understand the roaming switching method and related devices proposed in the present application, the network architecture applied in the embodiment of the present application is described below.
[0057] See also Figure 1 , Figure 1 It is a schematic diagram of a network architecture of a communication system provided in an embodiment of the present application.
[0058] like Figure 1 As shown, the network architecture may include a terminal device 100 and a routing device 200. Among them:
[0059] The routing device 200 supports at least two communication frequency bands. For example, if the routing device 200 supports a dual-band integration mode, the communication frequency bands supported by the routing device 200 may be 2.4 GHz (also known as the 2.4G frequency band) and 5 GHz (also known as the 5G frequency band), that is, the 2.4G frequency band and the 5G frequency band are configured on the routing device 200 at the same time.
[0060] For the sake of convenience, in the embodiment of the present application, the WIFI signal of the routing device 200 in the 2.4G frequency band is referred to as "2.4G WIFI"; the WIFI signal of the routing device 200 in the 5G frequency band is referred to as "5G WIFI". It can be understood that 2.4G WIFI and 5G WIFI have their own different characteristics. For example, the transmission distance of 2.4G WIFI is long, but the transmission rate is low; the transmission rate of 5G WIFI is high, but the transmission distance is short.
[0061] The terminal device 100 can communicate with the routing device 200 in the communication frequency band supported by the routing device 200, such as the terminal device 100 communicating with the routing device 200 in the 2.4G frequency band, or communicating with the routing device 200 in the 5G frequency band. The terminal device 100 can perform roaming switching from the 2.4G frequency band to the 5G frequency band; or, from the 5G frequency band to the 2.4G frequency band, so that the terminal device 100 always maintains a good communication state.
[0062] The terminal device 100 may be a user equipment (UE), such as a mobile phone, a tablet computer, a laptop computer, a desktop computer, a smart TV, a wearable device (such as a smart watch), a vehicle-mounted device, a smart home device (such as a smart speaker), an augmented reality (AR) / virtual reality (VR) device, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), and other electronic devices. Exemplary embodiments of the terminal device 100 include but are not limited to a device equipped with The terminal device 100 may be a portable electronic device running Linux or other operating systems. The terminal device 100 may also be other portable electronic devices, such as a laptop computer. It should also be understood that in some other embodiments, the terminal device 100 may not be a portable electronic device, but a desktop computer, etc.
[0063] The routing device 200 may be a router or any device supporting multiple frequency bands. The present application does not limit the specific type of the routing device 200.
[0064] It should be pointed out that, in addition to 2.4 GHz and 5 GHz, the communication frequency bands supported by the routing device 200 may evolve into other frequency bands in the future. The routing device 200 may also support a multi-frequency integration mode, etc., which is not limited in the embodiments of the present application.
[0065] Below through Figure 2 , introduces a roaming switching method provided by an embodiment of the present application. The functions performed by the terminal device in this embodiment can also be performed by a module (for example, a chip) in the terminal device, and the functions performed by the routing device in this application can also be performed by a module (for example, a chip) in the routing device.
[0066] The method includes some or all of the following steps:
[0067] S201: The terminal device sends a roaming switching request to the routing device; the roaming switching request is used to request to switch the communication frequency band of the terminal device from a first frequency band to a second frequency band.
[0068] Correspondingly, the routing device receives a roaming switching request from the terminal device.
[0069] The first frequency band and the second frequency band are communication frequency bands supported by the routing device, and the terminal device can communicate with the routing device in the communication frequency band supported by the routing device. For example, the first frequency band is a 5G frequency band, and the second frequency band is a 2.4G frequency band.
[0070] Exemplarily, the terminal device may request the routing device to perform roaming switching based on its own decision logic, and the roaming switching may be switching from the first frequency band to the second frequency band, or from the second frequency band to the first frequency band. The embodiment of the present application is exemplarily described by the terminal device requesting the routing device to switch its communication frequency band from the first frequency band to the second frequency band; the present application does not limit the decision logic of the terminal device itself.
[0071] In some embodiments, the frequency band in which the terminal device currently communicates with the routing device is the first frequency band. The terminal device can determine the target frequency band based on its own decision logic. Assuming that the terminal device determines that the target frequency band is the second frequency band, the terminal device can send a roaming switching request to the routing device; the roaming switching request is used to request that the communication frequency band of the terminal device be switched from the first frequency band to the second frequency band.
[0072] S202: The routing device determines a roaming policy in response to the roaming switching request based on the parameters of the first frequency band and / or the current active state of the terminal device. The roaming policy includes approving the switching and rejecting the switching.
[0073] The parameters of the first frequency band may include at least one of the negotiation rate corresponding to the first frequency band, the retransmission rate corresponding to the first frequency band, and the received signal strength indication RSSI of the second frequency band, and the RSSI of the first frequency band. Exemplarily, if the current communication frequency band of the terminal device is the first frequency band, the retransmission rate corresponding to the first frequency band is the current retransmission rate.
[0074] In some embodiments, when the current active state of the terminal device is inactive, the routing device switches the communication frequency band of the terminal device from the first frequency band to the second frequency band; when the current active state of the terminal device is active, the routing device determines the roaming strategy based on the parameters of the first frequency band. It should be understood that when the current active state of the terminal device is active, the routing device does not immediately switch the communication frequency band of the terminal device from the first frequency band to the second frequency band, so as to avoid the poor network quality after the switch affecting the current user experience; at this time, the routing device can determine the network quality of the first frequency band with the help of the parameters of the first frequency band, and then determine the roaming strategy.
[0075] Exemplarily, the routing device can determine the current activity state of the terminal device based on the time when it last received a data packet from the terminal device (referred to as the packet receiving time). When the time interval between the packet receiving time and the current time is greater than a preset time length (such as 5000ms), the routing device can determine that the current activity state of the terminal device is inactive; when the time interval between the packet receiving time and the current time is not greater than the preset time length, the routing device can determine that the current activity state of the terminal device is active.
[0076] In some embodiments, the routing device determines that the roaming strategy is to agree to switch when the RSSI of the first frequency band is less than the first preset value and the negotiation rate corresponding to the first frequency band is less than the preset rate. It should be understood that the routing device can determine that the network quality of the first frequency band is poor when the RSSI of the first frequency band is less than the first preset value and the negotiation rate corresponding to the first frequency band is less than the preset rate. In this case, switching the communication frequency band of the terminal device from the first frequency band to the second frequency band can improve the network quality of the terminal device.
[0077] In other embodiments, when the RSSI of the first frequency band is less than a first preset value (such as -80 dBm) and the negotiation rate corresponding to the first frequency band is not less than a preset rate (such as 39 megabits per second Mbps), or the RSSI of the first frequency band is not less than the first preset value, the routing device determines the roaming strategy based on the RSSI of the first frequency band, the retransmission rate corresponding to the first frequency band, and the RSSI of the second frequency band. It should be understood that the routing device can further judge the network quality of the first frequency band based on the RSSI of the first frequency band, the retransmission rate corresponding to the first frequency band, and the RSSI of the second frequency band when the negotiation rate corresponding to the first frequency band is not less than the preset rate, or the RSSI of the first frequency band is not less than the first preset value, and then determine the roaming strategy, so as to avoid the poor network quality after direct switching affecting the current user experience.
[0078] Exemplarily, a specific implementation of determining the roaming strategy based on the RSSI of the first frequency band, the retransmission rate corresponding to the first frequency band and the RSSI of the second frequency band may be that the routing device determines that the roaming strategy is to agree to switch when a first difference between the RSSI of the second frequency band and the RSSI of the first frequency band is greater than a preset difference (such as 20dBm) and the RSSI of the first frequency band is not greater than a second preset value (such as -60dBm); the second preset value is greater than the first preset value; the routing device determines the roaming strategy based on the retransmission rate corresponding to the first frequency band when the first difference is greater than the preset difference and the RSSI of the first frequency band is greater than the second preset value, or the first difference is not greater than the preset difference. It should be understood that the routing device can determine that the network quality of the first frequency band is worse than the network quality of the second frequency band when the first difference is greater than the preset difference and the RSSI of the first frequency band is not greater than the second preset value, and then decide to switch the communication frequency band of the terminal device from the first frequency band to the second frequency band. This method can improve the network quality of the terminal device; the routing device can further judge the network quality of the first frequency band based on the retransmission rate corresponding to the first frequency band when the first difference is greater than the preset difference and the RSSI of the first frequency band is greater than the second preset value, or the first difference is not greater than the preset difference, and then determine the roaming strategy, so as to avoid the poor network quality after direct switching affecting the user's current usage experience.
[0079] Among them, exemplarily, the specific implementation of determining the roaming strategy based on the retransmission rate corresponding to the first frequency band may be that when the retransmission rate corresponding to the first frequency band is greater than the preset retransmission rate, the routing device determines that the roaming strategy is to agree to switch; when the retransmission rate corresponding to the first frequency band is not greater than the preset retransmission rate, the routing device determines that the roaming strategy is to refuse switching.
[0080] In another exemplary embodiment, the specific implementation of determining the roaming strategy based on the retransmission rate corresponding to the first frequency band may be that when the retransmission rate corresponding to the first frequency band is not greater than the preset retransmission rate, the routing device determines the roaming strategy based on at least one of the joining duration of the terminal device, the frequency of rejected switching, and the time interval between the last two rejected switching. For an exemplary embodiment, the specific process can be found in Figure 4 The embodiments of the present invention will not be expanded here.
[0081] S203: When the routing device determines that the roaming policy is to agree to switch, the communication frequency band of the terminal device is switched from the first frequency band to the second frequency band.
[0082] S204: When the routing device determines that the roaming policy is to reject switching, the communication frequency band of the terminal device is maintained at the first frequency band.
[0083] In some embodiments, when the routing device determines that the roaming policy is to reject switching, the routing device does not perform roaming switching on the terminal device and still maintains the communication frequency band of the terminal device as the first frequency band.
[0084] See also Figure 3 , Figure 3 1 is a schematic diagram of a scenario of rejecting handover provided by an embodiment of the present application. The scenario includes a terminal device 100 and a routing device 200. Figure 3 The example shows that the routing device supports the dual-band integration mode, that is, the 2.4G frequency band and the 5G frequency band are configured on the routing device 200 at the same time, and the 2.4G WIFI coverage range and the 5G WIFI coverage range are shown by example, wherein the 2.4G WIFI coverage range is larger than the 5G WIFI coverage range.
[0085] For example, the terminal device 100 uses 5G WIFI communication at time T1 (such as 9:00). When the terminal device 100 moves, the terminal device can decide whether to access 2.4G WIFI. Assuming that at time T2 (such as 9:01), the terminal device 100 determines that the target frequency band is the 2.4G frequency band based on its own decision, the terminal device 100 can execute the above step S201, that is, request the routing device 200 to use 2.4G WiFi communication. Then, the routing device 200 can execute the above step S202. Figure 3 The example shows that the routing device 200 determines that the roaming policy is to reject switching. Then, after the terminal device 100 requests the routing device 200 to use 2.4G WiFi communication, such as time T3 (such as 9:02), the terminal device 100 still uses 5G WIFI communication.
[0086] Below through Figure 4 Exemplary pair Figure 2 The roaming switching method shown is introduced in detail.
[0087] Figure 4 A flowchart of another roaming switching method provided in an embodiment of the present application. The functions performed by the terminal device in this embodiment can also be performed by a module (e.g., a chip) in the terminal device, and the functions performed by the routing device in this application can also be performed by a driver (e.g., a wifi chip) in the routing device.
[0088] The method may include the following steps:
[0089] S401: The routing device receives an access request from the terminal device, where the access request is used to request access to 2.4G WIFI.
[0090] It should be understood that the access request can only be used to request access to 2.4G WiFi, and the routing device can determine whether the access request is the roaming switching request mentioned above based on the connection information of the terminal device obtained. For example, the routing device queries that the current terminal device is connected to 5G WiFi, then the routing device can determine the access request as a roaming switching request requesting to switch the communication frequency band of the terminal device from the 5G band to the 2.4GG band.
[0091] S402: The routing device determines whether the dual-band integration is in an on state. If it is in an on state, step S403 is executed; if it is not in an on state, step S404 is executed.
[0092] In one implementation, the routing device can query the mib value. If the mib value is 1, it proves that the dual-band integration is in the on state. If the mib value is not 1, it proves that the dual-band integration is in the off state. The routing device performs further judgment when the dual-band integration is in the on state. If it is not in the on state (i.e., the off state), it executes to connect the terminal device to 5G WIFI. It should be understood that if the dual-band integration is turned off, it proves that the user may not want the routing device to execute the roaming decision of automatically switching the frequency band. Then, the present application executes the access request of the terminal or device when the dual-band integration is turned off, which can meet the needs of the user and improve the user experience.
[0093] Optionally, the routing device can control the switch of the suppression scheme (i.e., the roaming switching method provided in the embodiment of the present application) by configuring the MIB value, and can subsequently push the preset condition threshold to the terminal device of the target user through Over-The-Air technology (OTA).
[0094] S403: The routing device determines whether the terminal device has been connected to the 2.4G WIFI. If it has been connected to the 2.4G WIFI, step S405 is executed; if it has not been connected to the 2.4G WIFI, step S404 is executed.
[0095] In one implementation, the routing device performs further judgment if the terminal device has been connected to 2.4G WIFI, and if it is not connected to 2.4G WIFI, it connects the terminal device to 5G WIFI. It should be understood that if the terminal device is not connected to 2.4G WIFI, then connecting the terminal device to 2.4G WIFI at this time will not cause network quality problems caused by switching from 5G WIFI to 2.4G WIFI.
[0096] S404: The routing device connects the terminal device to the 2.4G WIFI.
[0097] In some embodiments, the routing device may perform normal dual-band switching in response to the access request, that is, access the terminal device from the 5G frequency band to the 2.4G frequency band.
[0098] Optionally, after performing normal dual-frequency switching, the routing device may report the dual-frequency switching situation to a call history record (CHR); and clear the number of times of inhibiting switching (eg, recorded as cnt), that is, cnt=0.
[0099] S405: The routing device determines whether the terminal device has been connected to 5G WIFI. If it has been connected to 5G WIFI, step S406 is executed; if it has not been connected to 5G WIFI, step S404 is executed.
[0100] In one implementation, the routing device can query sta_info and determine whether the terminal device is connected to 5G WIFI based on the query result. If the terminal device has been connected to 5G WIFI, further judgment is performed. If it is not connected to 5G WIFI, the terminal device is connected to 2.4G WIFI. It should be understood that if the terminal device is not connected to 5G WIFI, then connecting the terminal device to 2.4G WIFI at this time will not cause network quality problems caused by switching from 5G WIFI to 2.4G WIFI.
[0101] It should be noted that the above steps S403 and S405 are optional steps.
[0102] It should be understood that 2.4G WIFI can also be called wl1 (2G), and 5G WIFI can also be called wl0 (5G), and this application does not limit this.
[0103] S406: The routing device determines whether the time interval (last RX time) between the last time a data packet from the terminal device is received and the current time interval is greater than a preset time length (eg, 5000 ms). If so, step S404 is executed; otherwise, step S407 is executed.
[0104] S407: The routing device determines whether the current RSSI of 5G WIFI is greater than or equal to a first preset value (such as -80dBm). If so, execute step S409; otherwise, execute step S408.
[0105] Exemplarily, when the last RX time is not greater than 5000ms, the routing device obtains the current RSSI of 5G WIFI and the current negotiation rate (tx_rate) of 5G WIFI; then, it is determined whether the current RSSI of 5G WIFI is greater than or equal to -80dBm. If the current RSSI of 5G WIFI is greater than or equal to -80dBm, the RSSI of the current 2.4G WIFI is obtained for further judgment, otherwise it is determined whether the current negotiation rate of 5G WIFI is less than the preset rate.
[0106] S408: The routing device determines whether the current negotiation rate of 5G WIFI is less than the preset rate (such as 39Mbps). If so, execute step S404; otherwise, execute step S409.
[0107] S409: The routing device obtains the RSSI of the current 2.4G WIFI.
[0108] S410: The routing device determines whether the difference between the RSSI of 2.4G WIFI and the RSSI of 5G WIFI is greater than a preset difference (such as 20dBm). If so, step S411 is executed, otherwise, step S412 is executed.
[0109] S411: The routing device determines whether the RSSI of 5G WIFI is greater than a second preset value (such as -60dBm). If so, execute step S412, otherwise execute step S404.
[0110] The second preset value is greater than the first preset value.
[0111] S412: The routing device obtains a retransmission rate.
[0112] S413: The routing device determines whether the retransmission rate (rx_retry_ratio) is less than or equal to a preset retransmission rate (eg, 80%), and if so, executes step S414, otherwise, executes step S404.
[0113] S414: The routing device determines whether the difference between the current access time and the first access time is greater than a preset time (such as 5 minutes). If so, step S416 is executed; otherwise, step S415 is executed.
[0114] In one implementation, the routing device determines whether the difference between the current access time and the first access time is greater than a preset duration, and if so, executes step S416, otherwise, executes step S415.
[0115] S415: The routing device determines whether the number of times of switching suppression (for example, which can be recorded as cnt) is greater than or equal to the preset number of times of suppression. If so, execute step S404, otherwise execute step S416.
[0116] S416: The routing device determines whether this switching is the first switching, if so, executes step S418, otherwise, executes step S417.
[0117] S417: The routing device determines whether the time interval between the last suppression switching and the current one is greater than a preset interval (eg, 2s). If so, execute step S418; otherwise, execute step S419.
[0118] In one implementation, the routing device determines whether the time interval between two suppressions is greater than a preset interval, and if so, executes step S418, otherwise, executes step S419.
[0119] In another implementation, the routing device determines whether the time interval between two suppressions is greater than a preset interval. If so, step S418 is executed; otherwise, step S419 is executed and the number of suppression switches is counted from 0 (to avoid the situation where suppression has no effect in a scenario where the terminal device attempts to access at intervals).
[0120] S418: The number of times the routing device suppresses switching increases by one.
[0121] Exemplarily, the number of times the switching is suppressed is updated to cnt plus 1.
[0122] S419: The routing device refuses the switch.
[0123] That is, the routing device determines that the roaming decision is to reject the handover, and the routing device does not perform the handover operation.
[0124] Experiments have shown that routing devices can perform the above Figure 4 After the implementation of the embodiment, the number of dual-frequency switching of the terminal device connected to the routing device can be reduced by 34%, and the 5G frequency band online time of the terminal device can be increased by 3.5%. Figure 4 In the embodiment (such as directly accessing the 2.4G frequency band in response to the access request), the 5G online time of the terminal device connected to the routing device accounts for 74.39%, and the 2.4G online time accounts for 25.61%; when the routing device executes the above Figure 4 After the implementation of the embodiment, the 5G online time of the terminal device accounted for 77.92%, and the 2.4G online time accounted for 22.08%.
[0125] This method can reduce the frequency of dual-band switching and increase the online time of the 5G frequency band, thereby avoiding the problem of poor network quality caused by frequent dual-band switching and improving user experience.
[0126] Corresponding to the above embodiments, the present application also provides a terminal device.
[0127] See also Figure 5 , is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application. Figure 5 As shown, the terminal device 100 may include: a processor 1001, a memory 1002 and a communication unit 1003. These components communicate via one or more buses, and those skilled in the art will understand that Figure 5 The structure of the terminal device shown in the figure does not constitute a limitation on the embodiments of the present application. It can be a bus structure, a star structure, or a plurality of other structures. Figure 5More or fewer components, or combinations of certain components, or different arrangements of components may be shown.
[0128] The communication unit 1003 is used to establish a communication channel so that the storage device can communicate with other devices, receive user data sent by other devices or send user data to other devices.
[0129] The processor 1001 is the control center of the storage device. It uses various interfaces and lines to connect various parts of the entire terminal device. It runs or executes software programs and / or modules stored in the memory 1002, and calls data stored in the memory to perform various functions of the terminal device and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of multiple packaged ICs with the same or different functions. For example, the processor 1001 can include only a central processing unit (CPU). In the embodiment of the present application, the CPU can be a single computing core or multiple computing cores.
[0130] The memory 1002 is used to store the execution instructions of the processor 1001. The memory 1002 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0131] When the execution instructions in the memory 1002 are executed by the processor 1001 , the terminal device 100 is enabled to execute part or all of the steps in the above method embodiment.
[0132] Corresponding to the above embodiment, the present application also provides a routing device.
[0133] See also Figure 6 , is a schematic diagram of the structure of a routing device provided in an embodiment of the present application. Figure 6 As shown, the routing device 200 may include: a processor 2001, a memory 2002 and a communication unit 2003. These components communicate via one or more buses, and those skilled in the art will understand that Figure 6 The structure of the routing device shown in the figure does not constitute a limitation on the embodiments of the present application. It can be a bus structure, a star structure, or a plurality of other structures. Figure 6More or fewer components, or combinations of certain components, or different arrangements of components may be shown.
[0134] The communication unit 2003 is used to establish a communication channel so that the storage device can communicate with other devices, receive user data sent by other devices or send user data to other devices.
[0135] The processor 2001 is the control center of the storage device. It uses various interfaces and lines to connect various parts of the entire routing device. It runs or executes software programs and / or modules stored in the memory 2002, and calls data stored in the memory to perform various functions of the routing device and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of multiple packaged ICs with the same or different functions. For example, the processor 2001 can only include a central processing unit (CPU). In the embodiment of the present application, the CPU can be a single computing core or multiple computing cores.
[0136] The memory 2002 is used to store the execution instructions of the processor 2001. The memory 2002 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0137] When the execution instructions in the memory 2002 are executed by the processor 2001 , the routing device 200 is enabled to execute part or all of the steps in the above method embodiment.
[0138] In a specific implementation, the present application further provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment provided in the present application. The storage medium may be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).
[0139] In a specific implementation, an embodiment of the present application further provides a computer program product, which includes executable instructions. When the executable instructions are executed on a computer, the computer executes some or all of the steps in the above method embodiment.
[0140] As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrases "upon determining..." or "if (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.
[0141] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.
[0142] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.
[0143] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A roaming handover method, characterized in that: The method comprises: The routing device receives a roaming switching request from a terminal device; the roaming switching request is used to request to switch the communication frequency band of the terminal device from a first frequency band to a second frequency band; The routing device determines, in response to the roaming switching request, a roaming strategy based on parameters of the first frequency band and / or a current active state of the terminal device; When the routing device determines that the roaming policy is to reject switching, the routing device maintains the communication frequency band of the terminal device as the first frequency band.
2. The method according to claim 1, characterized in that: The roaming strategy further includes consenting to handover, and the method further includes: When the routing device determines that the roaming policy is the agreed switching, the routing device switches the communication frequency band of the terminal device from the first frequency band to the second frequency band.
3. The method according to claim 1 or 2, characterized in that: The routing device determines a roaming strategy based on a parameter of the first frequency band and / or a current active state of the terminal device, including: The routing device switches the communication frequency band of the terminal device from the first frequency band to the second frequency band when the current active state of the terminal device is inactive; When the current active state of the terminal device is active, the routing device determines the roaming strategy based on the parameters of the first frequency band.
4. The method according to any one of claims 1 to 3, characterized in that: The parameters of the first frequency band include at least one of a negotiation rate corresponding to the first frequency band and a retransmission rate corresponding to the first frequency band, and a signal strength indication RSSI of the first frequency band.
5. The method according to any one of claims 1 to 4, characterized in that: The determining of the roaming strategy includes: The RSSI of the routing device in the first frequency band is less than a first preset value and the negotiation rate corresponding to the first frequency band is less than a preset rate, and the roaming policy is determined to be the agreed switching; The routing device determines the roaming strategy based on the RSSI of the first frequency band, the retransmission rate corresponding to the first frequency band and the RSSI of the second frequency band when the RSSI of the first frequency band is less than a first preset value and the negotiation rate corresponding to the first frequency band is not less than a preset rate, or when the RSSI of the first frequency band is not less than a first preset value.
6. The method according to claim 5, characterized in that The determining the roaming strategy based on the negotiation rate corresponding to the first frequency band, the retransmission rate corresponding to the first frequency band, and the RSSI of the second frequency band includes: The first difference between the RSSI of the second frequency band and the RSSI of the first frequency band of the routing device is greater than the preset difference and the RSSI of the first frequency band is not greater than the second preset value, and the roaming policy is determined to be the consent switching; the second preset value is greater than the first preset value; The routing device determines the roaming strategy based on the retransmission rate corresponding to the first frequency band when the first difference is greater than the preset difference and the RSSI of the first frequency band is greater than the second preset value, or when the first difference is not greater than the preset difference.
7. The method according to claim 6, characterized in that The determining the roaming strategy based on the retransmission rate corresponding to the first frequency band includes: When the retransmission rate corresponding to the first frequency band is greater than a preset retransmission rate, the routing device determines that the roaming policy is the agreed switching; When the retransmission rate corresponding to the first frequency band is not greater than the preset retransmission rate, the routing device determines that the roaming policy is the rejection of switching.
8. The method according to claim 6, characterized in that The determining the roaming strategy based on the retransmission rate corresponding to the first frequency band also includes: When the retransmission rate corresponding to the first frequency band is not greater than the preset retransmission rate, the routing device determines the roaming strategy based on at least one of the joining duration of the terminal device, the frequency of switching rejection, and the time interval between the two most recent switching rejections.
9. A roaming switching method, characterized in that: The method comprises: The terminal device sends a roaming switching request to the routing device; the roaming switching request is used to request to switch the communication frequency band of the terminal device from the first frequency band to the second frequency band; After sending the roaming switching request, the terminal device maintains communicating with the routing device through the first frequency band.
10. An electronic device, characterized in that: The electronic device comprises: one or more processors and a memory; The memory is coupled to the one or more processors, and the memory is used to store computer program codes, wherein the computer program codes include computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute the method according to any one of claims 1 to 9.
11. A chip system, characterized in that: The chip system is applied to an electronic device, and the chip system includes one or more processors, and the processor is used to call computer instructions so that the electronic device executes the method as described in any one of claims 1-10.
12. A computer program product comprising instructions, characterized in that When the computer program product is run on an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 9.
13. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on an electronic device, the electronic device is caused to execute the method as claimed in any one of claims 1 to 9.
14. A communication system, characterized in that: The communication system comprises a routing device and a terminal device, the routing device is used to execute the method according to any one of claims 1 to 8, and the terminal device is used to execute the method according to claim 10.