Roaming method and device, terminal and readable storage medium
By evaluating the idle channel evaluation value of the access point and the real-time data transmission capability of the terminal, the terminal roams to the access point with less interference and strong data transmission capability are solved, and the signal strength in the prior art cannot accurately reflect the channel situation and improve the Internet experience.
Patent Information
- Application Number
- CN202510503834.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-22
- Publication Date
- 2025-06-03
AI Technical Summary
The existing roaming methods only rely on the signal strength of the access point and cannot accurately reflect the actual situation of the channel, resulting in unnecessary roaming or failure to roam, affecting the Internet experience.
By obtaining the idle channel evaluation value of the access point, the interference degree of the channel is evaluated, and when the terminal's real-time data transmission capability meets the conditions, it roams to a target access point with less interference and strong data transmission capability.
It realizes terminal roaming to access points with less interference and strong data transmission capabilities, improves the Internet experience and reduces unnecessary roaming behavior.
Smart Images

Figure CN120091392A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of communication technologies, and particularly relates to a roaming method, apparatus, terminal, and readable storage medium. Background Art
[0002] Roaming is one of the important functions supported by Wireless Local Area Networks (WLANs). A terminal (Station, STA) triggers a roaming scan for different reasons (such as a deteriorating signal strength), thereby obtaining information about all access points (Access Points, APs) that can be scanned currently. By scoring each AP, the AP with the highest score is selected for reconnection.
[0003] During roaming, the conventional approach is to calculate the signal strengths of different APs to assist in determining which AP to select for roaming access; or when an electronic device is connecting to a network, only the signal strength of the AP is considered to assist in determining which AP to connect to; however, there is no inevitable connection between the strength of an AP's signal and whether it is possible to access the Internet normally by connecting to this AP, because relying solely on the signal strength cannot accurately reflect the actual situation of the channel. There may be cases where roaming does not occur when it should, or roaming occurs when it is unnecessary, thus affecting the Internet access experience. Summary of the Invention
[0004] The objective of the embodiments of this application is to provide a roaming method, apparatus, terminal, and readable storage medium, which can solve the problem that the current roaming method only refers to the signal strength of the access point, thereby affecting the Internet access experience of the electronic device.
[0005] In a first aspect, the embodiments of this application provide a roaming method, and the method includes:
[0006] When the idle channel evaluation value of the terminal meets a first condition, obtain the idle channel evaluation values of at least one access point; the idle channel evaluation value is used to indicate the interference degree of the channel where the terminal or the access point is located;
[0007] Determine a target access point according to the idle channel evaluation values of the at least one access point;
[0008] When the real-time data transmission capability of the terminal meets a second condition, the terminal roams to the target access point.
[0009] In a second aspect, the embodiments of this application provide a roaming apparatus, which is applied to a terminal, and the apparatus includes:
[0010] A first acquisition module, configured to acquire the idle channel assessment values of at least one access point when the idle channel assessment value of the terminal satisfies a first condition; the idle channel assessment value is used to indicate the interference degree of the channel where the terminal or the access point is located;
[0011] A first determination module, configured to determine a target access point according to the idle channel assessment values of the at least one access point;
[0012] A control module, configured to control the terminal to roam to the target access point when the real-time data transmission capability of the terminal satisfies a second condition.
[0013] In a third aspect, an embodiment of the present application provides a terminal, which includes a processor and a memory. The memory stores a program or instruction that can run on the processor. When the program or instruction is executed by the processor, the steps of the method described in the first aspect are implemented.
[0014] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0015] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0016] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
[0017] In the embodiments of the present application, the idle channel assessment value is used to evaluate the interference degree of the channel where the terminal or the access point is located. The terminal determines the target access point according to the idle channel assessment value, and roams to the target access point when the real-time data transmission capability of the terminal meets the condition, so that the terminal can roam to an access point with less interference and strong data transmission capability, realizing a good Internet experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A flowchart showing the steps of the roaming method provided by the embodiment of the present application;
[0019] Figure 2 A flowchart showing Example 1 provided by the embodiment of the present application;
[0020] Figure 3 A schematic structural diagram showing the roaming device provided by the embodiment of the present application;
[0021] Figure 4 One of the schematic structural diagrams of the terminal provided by the embodiment of the present application;
[0022] Figure 5 Another schematic structural diagram of the terminal provided by the embodiment of the present application. Specific embodiments
[0023] Next, the technical solutions in the embodiments of the present application will be clearly described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application belong to the scope of protection of the present application.
[0024] The terms "first", "second", etc. in the specification of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order different from those illustrated or described herein, and the objects distinguished by "first", "second", etc. are usually of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification means at least one of the connected objects, and the character " / " generally means that the related objects before and after are in an "or" relationship.
[0025] Next, in conjunction with the accompanying drawings, the access point determination method, device, electronic device, and readable storage medium provided by the embodiments of the present application will be described in detail through specific embodiments and their application scenarios.
[0026] As Figure 1 shown, the embodiment of the present application provides a roaming method, and the method includes:
[0027] Step 101, when the idle channel evaluation value of the terminal satisfies a first condition, obtain the idle channel evaluation values of at least one access point; the idle channel evaluation value is used to indicate the interference degree of the channel where the terminal or the access point is located.
[0028] In some embodiments, the above at least one access point is determined according to the location of the terminal, and the coverage range of the access point can cover the location of the terminal. For example, the at least one access point includes: the access point to which the terminal is currently connected, and / or, the adjacent access points of the access point to which the terminal is currently connected.
[0029] Step 102, determine a target access point according to the idle channel evaluation values of the at least one access point.
[0030] In the embodiments of the present application, the idle channel assessment value is used to evaluate the interference degree of the channel where the access point is located, and the terminal is assisted to determine the target access point according to the idle channel assessment value, so that the terminal can select an access point with less interference and achieve a good Internet access experience.
[0031] Step 103, when the real-time data transmission capability of the terminal meets the second condition, the terminal roams to the target access point.
[0032] In some embodiments, after determining the target access point, the terminal further needs to determine whether to roam to the target access point according to the real-time data transmission capability of the terminal, so that the terminal can access an access point with less interference and strong data transmission capability, and achieve a good Internet access experience.
[0033] In the embodiments of the present application, the idle channel assessment value can be represented by CcaRatio, and the idle channel assessment value can be obtained by the terminal using Clear Channel Accessment (CCA). This idle channel assessment value is used to describe the interference degree of the channel where the terminal or the access point is located. The higher the value, the greater the interference. In one implementation, when the idle channel assessment value is greater than a certain threshold, the terminal will experience abnormal situations such as being unable to access the Internet, slow Internet access, or disconnection.
[0034] In at least one embodiment of the present application, obtaining the idle channel assessment values of at least one access point in step 101 includes:
[0035] Obtaining the working time (cca_on_time) and the busy time (cca_busy_time) of the channels where at least one access point is located within the first time period;
[0036] Determining the idle channel assessment values of the at least one access point according to the working time and the busy time.
[0037] In some embodiments, the terminal records the working time and the busy time on the channel where each access point is located in real time, so as to calculate the idle channel assessment value of each channel, and continuously cache the calculation result of the idle channel assessment value. Optionally, the first time period can be one unit time period or multiple unit time periods, and no specific limitation is made here.
[0038] As an alternative embodiment, determining the idle channel assessment values of the at least one access point according to the working time and the busy time includes:
[0039] Determining the ratio of the busy time to the working time as the idle channel assessment value of the at least one access point;
[0040] Or,
[0041] Determine the ratio of the first increment during the busy time to the second increment during the working time as the idle channel evaluation value of the at least one access point;
[0042] Wherein, the first increment is the increment of the busy time within the second duration relative to the busy time within the third duration; the second increment is the increment of the idle time within the second duration relative to the idle time within the third duration; the third duration is the previous time length of the second duration.
[0043] Optionally, the second duration can be one unit duration or multiple unit durations, and no specific limitation is made here.
[0044] In an alternative implementation, the value of the second duration is the same as the value of the first duration.
[0045] In at least one embodiment of the present application, before obtaining the idle channel evaluation value of the at least one access point, the method further includes:
[0046] Obtain the first real-time interference intensity and the average interference intensity of the channel where the terminal is currently located;
[0047] When the first real-time interference intensity is greater than the first threshold and the average interference intensity is greater than the second threshold, determine that the idle channel evaluation value of the terminal satisfies the first condition.
[0048] In one implementation, the first condition can be understood as: the first real-time interference intensity is greater than the first threshold and the average interference intensity is greater than the second threshold.
[0049] Optionally, the first real-time interference intensity is represented by the real-time idle channel evaluation value of the channel where the terminal is currently located, and the average interference intensity is represented by the average idle channel evaluation value of the channel where the terminal is currently located.
[0050] For example, the value range of the first threshold is 75% - 80%, and the value range of the second threshold is 70% - 75%, and no specific limitation is made here.
[0051] In an embodiment of the present application, when the idle channel evaluation value of the terminal satisfies the first condition, the terminal determines that the channel where the currently connected access point is located has large interference and poor Internet access experience. The weak signal roaming requires the signal strength to drop below the weak signal threshold. A common threshold is around -75dBm to -78dBm. If the terminal is in a strong signal scenario with large interference and the signal strength is always greater than this threshold, the terminal cannot rely on the weak signal roaming mechanism to leave the current channel. Therefore, it is necessary to use the idle channel evaluation value to measure whether to trigger roaming.
[0052] In some embodiments, the real network environment is usually complex, and it may occur that the idle channel assessment value increases instantaneously and then returns to normal. This situation will not have a long-term impact on the terminal's Internet access. Therefore, roaming does not need to be triggered in this scenario. Therefore, only using the real-time idle channel assessment value to determine whether to trigger roaming may result in misjudgment, causing frequent roaming and affecting the terminal's Internet access experience. Therefore, the first condition in the embodiments of the present application includes: the first real-time interference intensity is greater than the first threshold, and the average interference intensity is greater than the second threshold.
[0053] Among them, if the real-time idle channel assessment value of the channel where the terminal is currently located is greater than the first threshold, it indicates that the terminal may have abnormal Internet access on the current channel; and if the average idle channel assessment value of the channel where the terminal is currently located is greater than the second threshold, it is determined at this time that the roaming process of the terminal needs to be triggered. For example, the real-time idle channel assessment value is defined as currentCcaRatio, which is used to describe the first real-time interference intensity of the channel where the current access point AP is located, and the first threshold is defined as CCA_RATIO_BAD_NEED_ROAM; the average idle channel assessment value is defined as average CcaRatio, which represents the average interference intensity of the channel where the terminal is located within a preset duration, to avoid misjudgment caused by instantaneous changes in the idle channel assessment value, and the second threshold is defined as AVE_CCA_RATIO_BAD_NEED_ROAM; therefore, the above first condition is expressed as: current CcaRatio > CCA_RATIO_BAD_NEED_ROAM, and average CcaRatio > AVE_CCA_RATIO_BAD_NEED_ROAM.
[0054] When the first condition is satisfied, the terminal determines that there is long-term and high-intensity interference on the channel where the terminal is currently located, and the link quality is very poor, and it is necessary to trigger the CCA roaming action to roam to the selected target access point to improve the Internet access experience of the electronic device.
[0055] In at least one embodiment of the present application, step 102 includes:
[0056] Determine n first access points that meet the third condition according to the second real-time interference intensity of the channels where the at least one access point is located; n is a positive integer;
[0057] Determine the target access point according to the n first access points;
[0058] Among them, the third condition includes: the second real-time interference intensity is less than the third threshold.
[0059] Optionally, the second real-time interference intensity is represented by the real-time idle channel assessment value of the channels where the at least one access point is located.
[0060] In the embodiments of the present application, the third condition can be understood as: the real-time idle channel evaluation value is less than the third threshold, that is, if there is a first access point among at least one access point whose real-time idle channel evaluation value is less than the third threshold, then the first access point can be used as the target access point. Optionally, the value of the third threshold is 50% - 60%.
[0061] For example, the real-time idle channel estimation value of at least one access point is defined as candidate CcaRatio (candidateCcaRatio), which represents the real-time interference intensity of the channels where each traversed access point is located, and the third threshold is defined as CCA_RATIO_GOOD_FOR_CANDIDATE. Therefore, the third condition is expressed as: candidate CcaRatio < CCA_RATIO_GOOD_FOR_CANDIDATE.
[0062] In at least one embodiment of the present application, determining the target access point according to the n first access points includes:
[0063] Determining m second access points from the n first access points according to the fourth condition; m is a positive integer, and m ≤ n;
[0064] Determining the target access point according to the m second access points;
[0065] Wherein, the fourth condition includes any one of the following:
[0066] The difference between the real-time signal strength of the channel where the first access point is located and the real-time signal strength of the channel where the terminal is currently located is less than the fourth threshold;
[0067] The real-time signal strength of the channel where the first access point is located is greater than the fifth threshold.
[0068] In some embodiments, in a real network environment, it is possible that the access point with strong signal strength has large interference on its channel; from the perspective of improving user experience, at this time, the CCA roaming provided by the embodiments of the present application should be triggered, and the user should be selected to roam to an access point with weak signal strength but small interference. However, in conventional roaming behavior, it is often to roam from an access point with weak signal strength to an access point with strong signal strength. At this time, there will be an abnormal situation where conventional roaming and the CCA roaming provided by the embodiments of the present application will be alternately triggered, and the terminal will roam back and forth between 2 access points, which instead reduces the user experience. Another situation is that if the signal strength of the access point selected after CCA roaming is too poor, and the user perceives an obvious change in the signal bar of the terminal status bar, it will also affect the user's subjective experience. Therefore, the embodiments of the present application add additional signal strength restrictions when determining the target access point.
[0069] Optionally, the signal strength of the access point mentioned in the embodiments of the present application is the Received Signal Strength Indication (RSSI) of the access point, and no specific limitation is made here.
[0070] In one implementation, before and after roaming, the signal strength of the access point should not have a large difference to avoid the electronic device roaming or connecting to an access point with very poor signal strength, which affects the user experience. In the embodiments of the present application, two thresholds are introduced. One threshold is used to limit the signal strength difference between the currently connected access point and the target access point (i.e., the fourth threshold); the other is used to limit the signal strength of the target access point itself (i.e., the fifth threshold). Optionally, the threshold for limiting the signal strength difference between the currently connected access point and the target access point can be expressed as RSSI_DIFF_FOR_CCA_ROAM. The idle channel estimation value of the access point is defined as candidate CcaRatio, and the signal strength of the currently connected access point is defined as current RSSI. Then, the limitation of the signal strength difference between the currently connected access point and the target access point is expressed as: candidate RSSI + RSSI_DIFF_FOR_CCA_ROAM > current RSSI; the threshold for limiting the signal strength of the target access point itself is positioned as RSSI_GOOD_FOR_CCA_ROAM, and the limitation of the signal strength of the target access point itself is expressed as candidate RSSI > RSSI_GOOD_FOR_CCA_ROAM.
[0071] In one implementation, the value of the fourth threshold is 5 dbm, and no specific limitation is made here. In another implementation, the value of the fifth threshold is -65 dbm; no specific limitation is made here.
[0072] For example, the fourth condition includes: the real-time signal strength of the channel where the first access point is located is greater than the fifth threshold; where the fifth threshold is used to limit the signal strength of the target access point itself; when the idle channel evaluation value is small and the signal strength of the access point itself is good enough, it is determined that the access point can be used as the target access point.
[0073] For another example, the fourth condition includes: the difference between the real-time signal strength of the channel where the first access point is located and the real-time signal strength of the channel where the terminal is currently located is less than the fourth threshold; where the fourth threshold is used to limit the signal strength difference between the currently connected access point and the target access point; when the idle channel evaluation value is small and the sum of the signal strength of the access point and the fourth threshold is greater than the signal strength of the currently connected access point, it is determined that the access point can be used as the target access point.
[0074] For another example, the fourth condition includes: the difference between the real-time signal strength of the channel where the first access point is located and the real-time signal strength of the channel where the terminal is currently located is less than a fourth threshold, and the real-time signal strength of the channel where the first access point is located is greater than a fifth threshold; wherein, the fifth threshold is used to limit the signal strength of the target access point itself, and the fourth threshold is used to limit the signal strength difference between the currently connected access point and the target access point; when the idle channel evaluation value is small, and the signal strength of the access point itself is good enough, and the sum of the signal strength of the access point and the fourth threshold is greater than the signal strength of the currently connected access point, it is determined that this access point can be used as the target access point.
[0075] In at least one embodiment of the present application, determining the target access point according to the m second access points includes:
[0076] In the case where m is equal to 1, determining the second access point as the target access point;
[0077] Or,
[0078] In the case where m is greater than 1, determining the access point with the maximum signal strength among the m second access points as the target access point.
[0079] In the embodiments of the present application, the idle channel evaluation value is used to evaluate the interference degree of the channel where the access point is located, and the idle channel evaluation value is used to assist the terminal in determining the target access point, so that the electronic device can select an access point with less interference and achieve a good Internet access experience.
[0080] In at least one embodiment of the present application, the second condition includes: the real-time data throughput of the terminal is less than a sixth threshold.
[0081] Correspondingly, the method includes: obtaining the real-time throughput of the terminal.
[0082] In the embodiments of the present application, if the real-time throughput of the terminal is greater than a certain threshold (such as 5 Mbps), it means that the current link speed of the terminal is sufficient to meet the user's needs, and attempting to roam has a risk of connection failure. Therefore, in the embodiments of the present application, when determining whether to trigger the roaming of the terminal, in addition to considering the idle channel evaluation value of the access point, the real-time throughput of the terminal also needs to be considered.
[0083] For example, the real-time throughput of the terminal is defined as current Tput, which represents the size of the data volume currently sent and received by the terminal. The sixth threshold is defined as TPUT_GOOD_FOR_BSS; then the above second condition is expressed as:
[0084] current Tput < TPUT_GOOD_FOR_BSS.
[0085] When the second condition is met, it indicates that the terminal is not only severely interfered with on the previous channel, but also has a very low actual Internet access rate. At this time, CCA roaming needs to be performed to roam to the selected target access point to improve the Internet access experience of the electronic device.
[0086] In summary, in the roaming method provided by the embodiments of the present application, the idle channel evaluation value is used to evaluate the interference degree of the channel where the access point is located, and the idle channel evaluation value is used to assist the terminal in determining the target access point. When the terminal is in a strongly interfered channel, it can actively roam to a weakly interfered channel, which can effectively reduce unnecessary roaming behaviors and avoid the situation where the Internet access experience becomes worse after roaming; it can also trigger roaming in a timely manner when the channel interference is large, thereby improving the user experience.
[0087] To describe the roaming method provided by the embodiments of the present application more clearly, the following is illustrated with an example.
[0088] Example 1, as Figure 2 shown, the CCA roaming evaluation process is as follows:
[0089] Step 201, the terminal obtains the CCA information of each access point; the CCA information includes the idle channel evaluation value.
[0090] Step 202, the terminal checks the CCA information of the current access point to determine whether CCA roaming is required; if the CCA information of the current access point meets the first condition, it is determined that CCA roaming is required and step 203 is executed;
[0091] Step 203, traverse all scan results to determine whether there is a suitable alternative access point AP; if the CCA information of other access points is less than a certain threshold, it is determined that there is a suitable alternative access point and step 204 is executed;
[0092] Step 204, check other metrics (such as signal strength) of the alternative access point to determine whether CCA roaming is possible; if other metrics of the alternative access point meet the predetermined conditions, it is determined that CCA roaming is possible and step 205 is executed;
[0093] Step 205, the terminal roams to the new access point (i.e., the target access point). At this time, the CCA roaming evaluation ends.
[0094] For the roaming method provided by the embodiments of the present application, the execution subject may be a roaming device. In the embodiments of the present application, taking the roaming device executing the roaming method as an example, the roaming device provided by the embodiments of the present application is described.
[0095] As Figure 3 shown, the embodiments of the present application further provide a roaming device 300, and the device includes:
[0096] The first acquisition module 301 is configured to acquire the idle channel assessment values of at least one access point when the idle channel assessment value of the terminal meets the first condition; the idle channel assessment value is used to indicate the interference degree of the channel where the terminal or the access point is located;
[0097] The first determination module 302 is configured to determine a target access point according to the idle channel assessment values of the at least one access point;
[0098] The control module 303 is configured to control the terminal to roam to the target access point when the real-time data transmission capability of the terminal meets the second condition.
[0099] In some embodiments of the present application, the device further includes:
[0100] The second acquisition module is configured to acquire the first real-time interference intensity and the average interference intensity of the channel where the terminal is currently located;
[0101] The second determination module is configured to determine that the idle channel assessment value of the terminal meets the first condition when the first real-time interference intensity is greater than a first threshold and the average interference intensity is greater than a second threshold.
[0102] In some embodiments of the present application, the first determination module includes:
[0103] The first determination sub-module is configured to determine n first access points that meet the third condition according to the second real-time interference intensity of the channels where the at least one access point is located; n is a positive integer;
[0104] The second determination sub-module is configured to determine the target access point according to the n first access points;
[0105] Wherein, the third condition includes: the second real-time interference intensity is less than a third threshold.
[0106] In some embodiments of the present application, the second determination sub-module includes:
[0107] The first determination unit is configured to determine m second access points from the n first access points according to a fourth condition; m is a positive integer, and m ≤ n;
[0108] The second determination unit is configured to determine the target access point according to the m second access points;
[0109] Wherein, the fourth condition includes any one of the following:
[0110] The difference between the real-time signal intensity of the channel where the first access point is located and the real-time signal intensity of the channel where the terminal is currently located is less than a fourth threshold;
[0111] The real-time signal strength of the channel where the first access point is located is greater than the fifth threshold.
[0112] In some embodiments of the present application, the second determination unit is further configured to:
[0113] When m is equal to 1, determine the second access point as the target access point;
[0114] Or,
[0115] When m is greater than 1, determine the access point with the maximum signal strength among the m second access points as the target access point.
[0116] In some embodiments of the present application, the second condition includes: the real-time data throughput of the terminal is less than the sixth threshold.
[0117] In some embodiments of the present application, the first acquisition module includes:
[0118] A first acquisition sub-module, configured to acquire the working time and the busy time of the channels where at least one access point is located within a first time period;
[0119] A third determination sub-module, configured to determine the idle channel evaluation value of the at least one access point according to the working time and the busy time.
[0120] In some embodiments of the present application, the third determination sub-module is further configured to:
[0121] Determine the ratio of the busy time to the working time as the idle channel evaluation value of the at least one access point;
[0122] Or,
[0123] Determine the ratio of the first increment of the busy time to the second increment of the working time as the idle channel evaluation value of the at least one access point;
[0124] Wherein, the first increment is the increment of the busy time within a second time period relative to the busy time within a third time period; the second increment is the increment of the idle time within the second time period relative to the idle time within the third time period; the third time period is the previous time length of the second time period.
[0125] In the roaming device provided by the embodiment of the present application, the idle channel assessment value is used to evaluate the interference degree of the channel where the access point is located, and the target access point is determined to assist the terminal according to the idle channel assessment value, so that the terminal can actively roam to a weak interference channel when it is in a strong interference channel, which can effectively reduce unnecessary roaming behaviors and avoid the situation that the Internet access experience becomes worse after roaming; it can also trigger roaming in time when the channel interference is large, thereby improving the user experience.
[0126] It should be noted that the roaming device provided by the embodiment of the present application is a device capable of executing the above roaming method. All embodiments of the above roaming method are applicable to this device and can achieve the same or similar beneficial effects, which will not be repeated here.
[0127] The roaming device in the embodiment of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than the terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a palm computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc. It can also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc. The embodiment of the present application does not make specific limitations.
[0128] The roaming device in the embodiment of the present application can be a device with an operating system. The operating system can be the Android operating system, the iOS operating system, or other possible operating systems. The embodiment of the present application does not make specific limitations.
[0129] The roaming device provided by the embodiment of the present application can implement Figures 1 to 2 each process implemented by the method embodiment, and for the sake of avoiding repetition, it will not be elaborated here.
[0130] Optionally, as Figure 4As shown in the figure, an embodiment of the present application further provides a terminal 400, including a processor 401 and a memory 402. A program or instruction that can run on the processor 401 is stored on the memory 402. When the program or instruction is executed by the processor 401, it implements each step of the above roaming method embodiment and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0131] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0132] Figure 5 It is a schematic diagram of the hardware structure of a terminal for implementing an embodiment of the present application.
[0133] The terminal 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, and a processor 510, etc.
[0134] Those skilled in the art can understand that the terminal 500 may further include a power source (such as a battery) for supplying power to each component. The power source can be logically connected to the processor 510 through a power management system, so as to implement functions such as management of charging, discharging, and power consumption management through the power management system. Figure 5 The structure of the electronic device shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0135] Among them, the radio frequency unit 501 is used to obtain the idle channel evaluation value of at least one access point when the idle channel evaluation value of the terminal satisfies the first condition; the idle channel evaluation value is used to indicate the interference degree of the channel where the terminal or the access point is located;
[0136] The processor 510 is used to determine a target access point according to the idle channel evaluation value of at least one access point, and control the terminal to roam to the target access point when the real-time data transmission capability of the terminal satisfies the second condition.
[0137] Optionally, the radio frequency unit 501 is further used to obtain the first real-time interference intensity and the average interference intensity of the channel where the terminal is currently located; the processor 510 is further used to determine that the idle channel evaluation value of the terminal satisfies the first condition when the first real-time interference intensity is greater than the first threshold and the average interference intensity is greater than the second threshold.
[0138] Optionally, the processor 510 is further used to
[0139] Determine n first access points that meet the third condition according to the second real-time interference intensity of the channel where the at least one access point is located; n is a positive integer;
[0140] Determine the target access point according to the n first access points;
[0141] Wherein, the third condition includes: the second real-time interference intensity is less than a third threshold.
[0142] Optionally, the processor 510 is further configured to determine m second access points from the n first access points according to a fourth condition; m is a positive integer, and m ≤ n;
[0143] Determine the target access point according to the m second access points;
[0144] Wherein, the fourth condition includes any one of the following:
[0145] The difference between the real-time signal intensity of the channel where the first access point is located and the real-time signal intensity of the channel where the terminal is currently located is less than a fourth threshold;
[0146] The real-time signal intensity of the channel where the first access point is located is greater than a fifth threshold.
[0147] Optionally, when m is equal to 1, the processor 510 is further configured to determine the second access point as the target access point; or, when m is greater than 1, determine the access point with the maximum signal intensity among the m second access points as the target access point.
[0148] Optionally, the second condition includes: the real-time data throughput of the terminal is less than a sixth threshold.
[0149] Optionally, the radio frequency unit 501 is further configured to obtain the working time and the busy time of the channel where the at least one access point is located within a first time period; the processor 510 is further configured to determine the idle channel evaluation value of the at least one access point according to the working time and the busy time.
[0150] Optionally, the processor 510 is further configured to determine the ratio of the busy time to the working time as the idle channel evaluation value of the at least one access point; or determine the ratio of the first increment of the busy time to the second increment of the working time as the idle channel evaluation value of the at least one access point; wherein, the first increment is the increment of the busy time within a second time period relative to the busy time within a third time period; the second increment is the increment of the idle time within the second time period relative to the idle time within the third time period; the third time period is the previous time length of the second time period.
[0151] In the embodiments of the present application, the idle channel assessment value is used to evaluate the interference degree of the channel where the access point is located, and the idle channel assessment value is used to assist the terminal in determining the target access point, enabling the terminal to actively roam to a channel with weaker interference when it is in a channel with strong interference, effectively reducing unnecessary roaming behaviors, and avoiding the situation where the Internet access experience deteriorates after roaming; it can also trigger roaming in a timely manner when the channel interference is large, thereby improving the user experience.
[0152] It should be understood that in the embodiments of the present application, the input unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042. The graphics processor 5041 processes the image data of static pictures or videos obtained by an image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 507 includes at least one of a touch panel 5071 and other input devices 5072. The touch panel 5071 is also called a touch screen. The touch panel 5071 may include two parts: a touch detection device and a touch controller. The other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, power on / off keys, etc.), a trackball, a mouse, and a joystick, which will not be elaborated here.
[0153] The memory 509 can be used to store software programs and various data. The memory 509 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data. Among them, the first storage area can store an operating system, application programs or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 509 can include volatile memory or non-volatile memory, or the memory 509 can include both volatile and non-volatile memory. Among them, the non-volatile memory can be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash memory. The volatile memory can be a Random Access Memory (RAM), a Static RAM (SRAM), a Dynamic RAM (DRAM), a Synchronous DRAM (SDRAM), a Double Data Rate SDRAM (DDR SDRAM), an Enhanced SDRAM (ESDRAM), a Synch link DRAM (SLDRAM), and a Direct Rambus RAM (DRRAM). The memory 509 in the embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
[0154] The processor 510 may include one or more processing units; optionally, the processor 510 integrates an application processor and a modem processor. Among them, the application processor mainly processes operations related to the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above modem processor may not be integrated into the processor 510 either.
[0155] The embodiments of the present application also provide a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, it implements each process of the above roaming method embodiment and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0156] Among them, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory ROM, random access memory RAM, magnetic disks, or optical discs, etc.
[0157] Another embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement each process of the above roaming method embodiment and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0158] It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, system chip, chip system, or system-on-chip, etc.
[0159] The embodiments of the present application provide a computer program product. The program product is stored in a storage medium and is executed by at least one processor to implement each process of the above roaming method embodiment and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0160] It should be noted that in this article, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article or device. Without further limitations, the element defined by the statement "including one..." does not exclude the existence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved. For example, the described methods may be executed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, the features described with reference to certain examples may be combined in other examples.
[0161] Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases, the former is a better implementation. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art can be embodied in the form of a computer software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions for causing a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.
[0162] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific implementation manners. The above specific implementation manners are merely illustrative rather than restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them belong to the protection scope of the present application.
Claims
1. A roaming method, characterized in that: Executed by a terminal, the method includes: When the idle channel evaluation value of the terminal satisfies the first condition, obtaining an idle channel evaluation value of at least one access point; the idle channel evaluation value is used to indicate the interference degree of the channel where the terminal or the access point is located; Determining a target access point according to the idle channel evaluation value of the at least one access point; When the real-time data transmission capability of the terminal meets a second condition, the terminal roams to the target access point.
2. The method according to claim 1, characterized in that Before obtaining the idle channel assessment value of at least one access point, the method further includes: Obtaining a first real-time interference strength and an average interference strength of a channel where the terminal is currently located; When the first real-time interference strength is greater than a first threshold and the average interference strength is greater than a second threshold, it is determined that the idle channel assessment value of the terminal meets a first condition.
3. The method according to claim 1, characterized in that Determining a target access point according to the idle channel evaluation value of the at least one access point includes: Determine n first access points that meet a third condition according to a second real-time interference strength of a channel where the at least one access point is located; n is a positive integer; Determining the target access point according to the n first access points; The third condition includes: the second real-time interference intensity is less than a third threshold.
4. The method according to claim 3, characterized in that The determining the target access point according to the n first access points includes: According to the fourth condition, m second access points are determined from the n first access points; m is a positive integer, and m≤n; Determining the target access point according to the m second access points; The fourth condition includes any one of the following: A difference between the real-time signal strength of the channel where the first access point is located and the real-time signal strength of the channel where the terminal is currently located is less than a fourth threshold; The real-time signal strength of the channel where the first access point is located is greater than a fifth threshold.
5. The method according to claim 4, characterized in that The determining the target access point according to the m second access points includes: When m is equal to 1, determining the second access point as the target access point; or, When m is greater than 1, the access point with the largest signal strength among the m second access points is determined as the target access point.
6. The method according to any one of claims 1 to 5, characterized in that: The second condition includes: the real-time data throughput of the terminal is less than a sixth threshold.
7. The method according to any one of claims 1 to 5, characterized in that: Obtaining a clear channel assessment value of at least one access point, including: Obtaining working time and busy time of a channel where at least one access point is located within a first time period; An idle channel assessment value of the at least one access point is determined according to the working time and the busy time.
8. The method according to claim 7, characterized in that Determining, according to the working time and the busy time, an idle channel assessment value of the at least one access point, comprising: Determine a ratio of the busy time to the working time as an idle channel assessment value of the at least one access point; or, Determine a ratio of the first increment of the busy time to the second increment of the working time as a clear channel assessment value of the at least one access point; Among them, the first increment is the increment of busy time in the second time length relative to the busy time in the third time length; the second increment is the increment of idle time in the second time length relative to the idle time in the third time length; and the third time length is the previous time length of the second time length.
9. A roaming device, characterized in that: Applied to a terminal, the device comprises: A first acquisition module, configured to acquire an idle channel evaluation value of at least one access point when the idle channel evaluation value of the terminal satisfies a first condition; the idle channel evaluation value is used to indicate the interference degree of the channel where the terminal or the access point is located; A first determination module, configured to determine a target access point according to an idle channel evaluation value of the at least one access point; The control module is used to control the terminal to roam to the target access point when the real-time data transmission capability of the terminal meets the second condition.
10. The device according to claim 9, characterized in that The device also includes: A second acquisition module, used to acquire a first real-time interference strength and an average interference strength of a channel where the terminal is currently located; The second determination module is used to determine that the idle channel assessment value of the terminal meets a first condition when the first real-time interference strength is greater than a first threshold and the average interference strength is greater than a second threshold.
11. The device according to claim 9, characterized in that The first determining module comprises: A first determination submodule, configured to determine n first access points satisfying a third condition according to a second real-time interference strength of a channel where the at least one access point is located; n is a positive integer; A second determination submodule, configured to determine the target access point according to the n first access points; The third condition includes: the second real-time interference intensity is less than a third threshold.
12. The device according to claim 11, characterized in that The second determining submodule includes: A first determining unit, configured to determine m second access points from the n first access points according to a fourth condition; m is a positive integer, and m≤n; A second determining unit, configured to determine the target access point according to the m second access points; The fourth condition includes any one of the following: A difference between the real-time signal strength of the channel where the first access point is located and the real-time signal strength of the channel where the terminal is currently located is less than a fourth threshold; The real-time signal strength of the channel where the first access point is located is greater than a fifth threshold.
13. The device according to claim 12, characterized in that The second determining unit is further configured to: When m is equal to 1, determining the second access point as the target access point; or, When m is greater than 1, the access point with the largest signal strength among the m second access points is determined as the target access point.
14. The device according to any one of claims 9 to 13, characterized in that: The second condition includes: the real-time data throughput of the terminal is less than a sixth threshold.
15. The device according to any one of claims 9 to 13, characterized in that: The first acquisition module includes: A first acquisition submodule is used to acquire the working time and busy time of the channel where at least one access point is located within a first time period; The third determining submodule is configured to determine an idle channel assessment value of the at least one access point according to the working time and the busy time.
16. The device according to claim 15, characterized in that The third determining submodule is further used for: Determine a ratio of the busy time to the working time as an idle channel assessment value of the at least one access point; or, Determine a ratio of the first increment of the busy time to the second increment of the working time as a clear channel assessment value of the at least one access point; Among them, the first increment is the increment of busy time in the second time length relative to the busy time in the third time length; the second increment is the increment of idle time in the second time length relative to the idle time in the third time length; and the third time length is the previous time length of the second time length.
17. A terminal, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the roaming method according to any one of claims 1 to 8 are implemented.
18. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the roaming method according to any one of claims 1 to 8 are implemented.