CN112040525A - Roaming method and device - Google Patents

Roaming method and device Download PDF

Info

Publication number
CN112040525A
CN112040525A CN202011017162.8A CN202011017162A CN112040525A CN 112040525 A CN112040525 A CN 112040525A CN 202011017162 A CN202011017162 A CN 202011017162A CN 112040525 A CN112040525 A CN 112040525A
Authority
CN
China
Prior art keywords
routing
frequency band
routing device
equipment
preset range
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011017162.8A
Other languages
Chinese (zh)
Other versions
CN112040525B (en
Inventor
安姗姗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN202011017162.8A priority Critical patent/CN112040525B/en
Publication of CN112040525A publication Critical patent/CN112040525A/en
Application granted granted Critical
Publication of CN112040525B publication Critical patent/CN112040525B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/08Reselecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/16Performing reselection for specific purposes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/26Reselection being triggered by specific parameters by agreed or negotiated communication parameters
    • H04W36/28Reselection being triggered by specific parameters by agreed or negotiated communication parameters involving a plurality of connections, e.g. multi-call or multi-bearer connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • H04W76/34Selective release of ongoing connections
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application provides a roaming method and a roaming device, wherein the method comprises the following steps: when a terminal device determines that a second routing device meets a routing switching condition, the terminal device acquires working frequency bands of a plurality of routing devices, wherein the terminal device is currently connected with a first routing device and the second routing device respectively, and the working frequency band of the first routing device is a first frequency band; the terminal device determines a third routing device according to the working frequency bands of the plurality of routing devices and the working frequency band of the first routing device, wherein the working frequency band of the third routing device is a second frequency band, and the first frequency band and the second frequency band are different frequency bands; and the terminal equipment is disconnected with the second routing equipment and establishes connection with the third routing equipment. The terminal equipment can be ensured to meet the DBDC, and the throughput during data transmission between the terminal equipment and the routing equipment is improved.

Description

Roaming method and device
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a roaming method and device.
Background
The dual-frequency dual-transmission device supports the simultaneous work in two frequency bands of 2.4GHz and 5GHz and supports the dual-frequency concurrent function.
For a terminal device supporting a dual-frequency concurrent function, the terminal device can be connected with a wireless Access Point (AP) operating in a 2.4GHz band and connected with an AP operating in a 5GHz band, so that the terminal device can implement the dual-frequency concurrent function. However, the current roaming policy mainly determines the AP to which the terminal device is connected according to factors such as the received signal strength of each AP, so that the terminal device is easily connected to two APs in the same operating frequency band, for example, two APs in 2.4GHz band or two APs in 5GHz band.
Therefore, the current scheme easily causes a data transmission mode that only single-frequency time division can be performed between the terminal device and the AP, and has a large influence on the throughput during data transmission between the terminal device and the AP.
Disclosure of Invention
The embodiment of the application provides a roaming method and a roaming device, so as to improve the throughput during data transmission between terminal equipment and an AP.
A first aspect. The embodiment of the application provides a roaming method, which comprises the following steps:
when a terminal device determines that a second routing device meets a routing switching condition, the terminal device acquires working frequency bands of a plurality of routing devices, wherein the terminal device is currently connected with a first routing device and the second routing device respectively, and the working frequency band of the first routing device is a first frequency band;
the terminal device determines a third routing device according to the working frequency bands of the plurality of routing devices and the working frequency band of the first routing device, wherein the working frequency band of the third routing device is a second frequency band, and the first frequency band and the second frequency band are different frequency bands;
and the terminal equipment is disconnected with the second routing equipment and establishes connection with the third routing equipment.
In a possible embodiment, the route switching condition is at least one of the following conditions:
the working frequency band of the second routing device is the first frequency band;
and the working frequency band of the second routing equipment is the second frequency band, and the second routing equipment meets the preset condition.
In a possible embodiment, the preset condition includes at least one of the following:
the RSSI of the received signal strength indication of the second routing equipment is less than or equal to a first preset value;
and the number of the lost beacons of the second routing equipment in a preset time period is greater than or equal to a second preset value.
In one possible implementation, obtaining the operating bands of the plurality of routing devices includes:
performing a first operation, the first operation comprising: acquiring a working frequency band of the routing equipment within a preset range;
performing a second operation, the second operation comprising: and when the working frequency bands of the routing devices within the preset range are the first frequency bands, the first operation is repeatedly executed according to a preset time interval until the routing devices within the preset range have the routing devices with the working frequency bands of the second frequency bands, and the routing devices within the preset range are determined to be the plurality of routing devices.
In a possible implementation manner, acquiring an operating frequency band of a routing device within a preset range includes:
sending a detection request to the routing equipment within the preset range;
and receiving a probe response from the routing equipment within the preset range, wherein the probe response comprises the working frequency band of the corresponding routing equipment.
In a possible implementation, the RSSI of the third routing device is greater than or equal to a third preset value.
In a possible implementation manner, the route switching condition is that an operating frequency band of the second routing device is the second frequency band, and the second routing device satisfies a preset condition; the method further comprises the following steps:
if the working frequency bands of the routing equipment in the preset range, which are obtained within the first duration, are the first frequency bands, the RSSI of the routing equipment in the preset range is obtained;
and establishing connection with a fourth routing device in the preset range according to the RSSI of the routing device in the preset range.
In a second aspect, an embodiment of the present application provides a roaming apparatus, including:
a determining module, configured to obtain working frequency bands of multiple routing devices when a terminal device determines that a second routing device meets a route switching condition, where the terminal device is currently connected to a first routing device and the second routing device, and the working frequency band of the first routing device is a first frequency band;
a first processing module, configured to determine a third routing device according to operating frequency bands of the plurality of routing devices and an operating frequency band of the first routing device, where the operating frequency band of the third routing device is a second frequency band, and the first frequency band and the second frequency band are different frequency bands;
and the second processing module is used for disconnecting with the second routing equipment and establishing connection with the third routing equipment.
In a possible embodiment, the route switching condition is at least one of the following conditions:
the working frequency band of the second routing device is the first frequency band;
and the working frequency band of the second routing equipment is the second frequency band, and the second routing equipment meets the preset condition.
In a possible embodiment, the preset condition includes at least one of the following:
the RSSI of the received signal strength indication of the second routing equipment is less than or equal to a first preset value;
and the number of the lost beacons of the second routing equipment in a preset time period is greater than or equal to a second preset value.
In a possible implementation, the determining module is specifically configured to:
performing a first operation, the first operation comprising: acquiring a working frequency band of the routing equipment within a preset range;
performing a second operation, the second operation comprising: and when the working frequency bands of the routing devices within the preset range are the first frequency bands, the first operation is repeatedly executed according to a preset time interval until the routing devices within the preset range have the routing devices with the working frequency bands of the second frequency bands, and the routing devices within the preset range are determined to be the plurality of routing devices.
In a possible implementation, the determining module is specifically configured to:
sending a detection request to the routing equipment within the preset range;
and receiving a probe response from the routing equipment within the preset range, wherein the probe response comprises the working frequency band of the corresponding routing equipment.
In a possible implementation, the RSSI of the third routing device is greater than or equal to a third preset value.
In a possible implementation manner, the route switching condition is that an operating frequency band of the second routing device is the second frequency band, and the second routing device satisfies a preset condition; the second processing module is further configured to:
if the working frequency bands of the routing equipment in the preset range, which are obtained within the first duration, are the first frequency bands, the RSSI of the routing equipment in the preset range is obtained;
and establishing connection with a fourth routing device in the preset range according to the RSSI of the routing device in the preset range.
In a third aspect, an embodiment of the present application provides a terminal device, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the roaming method of any one of the first aspects.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, the roaming method according to any one of the first aspect is implemented.
According to the roaming method and the roaming device provided by the embodiment of the application, when the terminal equipment determines that the second routing equipment meets the routing switching condition, the terminal equipment acquires the working frequency bands of the plurality of routing equipment, wherein the terminal equipment is currently connected with the first routing equipment and the second routing equipment respectively; then, the terminal equipment determines a third routing equipment according to the working frequency bands of the plurality of routing equipment and the working frequency band of the first routing equipment; finally, the terminal device is disconnected from the second routing device and establishes a connection with the third routing device. Because the working frequency band of the first routing device is the first frequency band, the working frequency band of the third routing device is the second frequency band, and the first frequency band and the second frequency band are different frequency bands, after roaming is completed, the terminal device can be connected with two routing devices working in different frequency bands, data transmission is carried out between the terminal device and the routing devices in a dual-frequency concurrent mode, and the throughput during data transmission between the terminal device and the routing devices is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application;
fig. 2 is a flowchart illustrating a roaming method according to an embodiment of the present disclosure;
fig. 3 is a first flowchart illustrating a roaming method according to an embodiment of the present disclosure;
FIG. 4 is a first roaming scenario provided by an embodiment of the present application;
fig. 5 is a flowchart illustrating a roaming method according to an embodiment of the present application;
fig. 6 is a roaming diagram two according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a roaming device according to an embodiment of the present disclosure;
fig. 8 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
For ease of understanding, first, the concepts related to the present application will be explained.
AP: access Point, also called "hotspot," is an Access Point for accessing a network using a wireless device, and includes a routing switch Access integrated device and a pure Access Point device, and the routing devices in the embodiments of the present application all belong to APs.
RSSI: received Signal Strength Indication, the Strength of which can be used to indicate the quality of the connection between the Signal point and the receiving point.
DBDC: dual Band Dual current, Dual frequency Dual burst, also called Dual frequency concurrency.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application, and as shown in fig. 1, includes a terminal device 10, a routing device 11, and a routing device 12. The routing device 11 is a device operating in a frequency band of 2.4GHz or 5GHz, and the routing device 12 is also a device operating in a frequency band of 2.4GHz or 5 GHz.
The terminal device 10 has a dual-frequency concurrent function, and may be connected to two routing devices operating in different frequency bands, or may be connected to two routing devices operating in the same frequency band. As shown in fig. 1, the terminal device 10 is connected to the routing device 11 and the routing device 12, respectively, at this time. When the routing device 11 is a 2.4GHz wireless access point and the routing device 12 is a 5GHz AP, the terminal device 10 connects two routing devices operating in different frequency bands; when the routing device 11 and the routing device 12 are both 2.4GHz APs, or when the routing device 11 and the routing device 12 are both 5GHz APs, the terminal device 10 connects two routing devices operating in the same frequency band.
At present, when the terminal device 10 is connected to two routing devices operating in the same frequency band, although the terminal device supports the dual-frequency concurrent function, since the two routing devices operating in the same frequency band are connected, the terminal device can only perform data transmission with the routing devices in a single-frequency time division manner, which has a large influence on throughput during data transmission.
When the terminal device 10 is connected to two routing devices operating in different frequency bands, the terminal device may roam and connect to a new routing device after roaming in some cases. For example, in fig. 1, when the connection between the terminal device and the routing device 11 is weak, roaming may occur, and then the terminal device disconnects from the routing device 11 and establishes a connection with another routing device. However, in the current roaming policy, the routing device connected last is mainly selected by RSSI, beacon loss, and the like, and the operating frequency band of the routing device is not considered, so that the operating frequency band of the routing device connected after roaming is different from that of the previous routing device. For example, in fig. 1, if the operating band of the other routing device connected after roaming is different from that of the routing device 11 and is the same as that of the routing device 12, the terminal device 10 connected after roaming is connected to the other routing device and the routing device 12, so that the operating bands of the two routing devices connected to the terminal device are the same, and the dual-band concurrent function cannot be realized.
In order to solve the above problem, embodiments of the present application provide a roaming scheme, so that when a terminal device needs to roam and connects to another routing device after roaming, operating frequency bands of two connected routing devices are different, so that the terminal device can perform data transmission with the routing device in a dual-frequency concurrent manner, and throughput is improved.
The solution of the present application will be described below with reference to the accompanying drawings.
Fig. 2 is a flowchart illustrating a roaming method according to an embodiment of the present application, and as shown in fig. 2, the method may include:
s21, when the terminal device determines that the second routing device satisfies the route switching condition, the terminal device obtains operating frequency bands of a plurality of routing devices, where the terminal device is currently connected to the first routing device and the second routing device, respectively, and the operating frequency band of the first routing device is the first frequency band.
The terminal device is a device supporting dual-frequency and dual-transmission, that is, the terminal device supports simultaneous connection with APs of two operating frequency bands. In this embodiment, two APs to which a terminal device is currently connected are a first routing device and a second routing device, respectively, where an operating frequency band of the first routing device is a first frequency band, and an operating frequency band of the second routing device may be the first frequency band or the second frequency band.
The route switching condition is a condition that the terminal equipment needs to be disconnected with the second routing equipment and roam to establish connection with other routing equipment. For example, when the RSSI value of the second routing device is small and the connection between the second routing device and the terminal device is weak, the route switching condition is satisfied for the second routing device. For example, when the operating frequency band of the second routing device is the same as the operating frequency band of the first routing device, the second routing device may also be considered to satisfy the route switching condition.
S22, the terminal device determines a third routing device according to the operating frequency bands of the multiple routing devices and the operating frequency band of the first routing device, where the operating frequency band of the third routing device is a second frequency band, and the first frequency band and the second frequency band are different frequency bands.
The first frequency band and the second frequency band are different frequency bands. Taking two frequency bands of 2.4GHz and 5GHz as an example, when the first frequency band is 2.4GHz, the second frequency band is 5 GHz; when the first frequency band is 5GHz, the second frequency band is 2.4 GHz.
After the second routing device meets the routing switching condition, the terminal device may enter a roaming state, search for a suitable roaming object, and establish a connection with the suitable roaming object after determining the suitable roaming object.
In this embodiment, the terminal device determines a suitable roaming object according to the operating frequency bands of the plurality of peripheral routing devices and the operating frequency band of the first routing device, where the suitable roaming object is a third routing device, the operating frequency band of the third routing device is a second frequency band, and the operating frequency band is different from the first frequency band of the first routing device.
And S23, the terminal equipment is disconnected with the second routing equipment and establishes connection with the third routing equipment.
After determining the third routing device, the terminal device disconnects from the second routing device and establishes a connection with the third routing device. Before the terminal equipment is disconnected with the second routing equipment, the terminal equipment is respectively connected with the first routing equipment and the second routing equipment. After the terminal device is disconnected from the second routing device and establishes a connection with the third routing device, the terminal device is connected to the first routing device and the third routing device, respectively. Because the working frequency band of the first routing device is the first frequency band, the working frequency band of the third routing device is the second frequency band, and the first frequency band and the second frequency band are different frequency bands, the terminal device establishes connection with the routing devices of the two different working frequency bands, and a dual-frequency concurrent function can be realized.
According to the roaming method provided by the embodiment of the application, when the terminal equipment determines that the second routing equipment meets the routing switching condition, the terminal equipment acquires the working frequency bands of the plurality of routing equipment, wherein the terminal equipment is currently connected with the first routing equipment and the second routing equipment respectively; then, the terminal equipment determines a third routing equipment according to the working frequency bands of the plurality of routing equipment and the working frequency band of the first routing equipment; finally, the terminal device is disconnected from the second routing device and establishes a connection with the third routing device. Because the working frequency band of the first routing device is the first frequency band, the working frequency band of the third routing device is the second frequency band, and the first frequency band and the second frequency band are different frequency bands, after roaming is completed, the terminal device can be connected with two routing devices working in different frequency bands, data transmission is carried out between the terminal device and the routing devices in a dual-frequency concurrent mode, and the throughput during data transmission between the terminal device and the routing devices is improved.
When the terminal device determines that the second routing device satisfies the route switching condition, the terminal device may acquire the operating frequency bands of the plurality of routing devices. For example, the terminal device may execute a first operation to obtain the operating frequency bands of the routing devices within the preset range, then execute a second operation, and when the operating frequency bands of the routing devices within the preset range are all the first frequency bands, repeat the first operation according to a preset time interval until the routing devices within the preset range have the routing devices whose operating frequency bands are the second frequency bands, determine that the routing devices within the preset range are the plurality of routing devices at this time.
The method for the terminal device to obtain the operating frequency band of the routing device within the preset range may be that the terminal device sends a probe request to the routing device within the preset range, and the routing device replies a probe response after receiving the probe request. And then the terminal equipment receives the detection response from the routing equipment within the preset range, and the detection response comprises the working frequency band of the corresponding routing equipment.
The two routing devices connected to the current terminal device are respectively a first routing device and a second routing device, the operating frequency band of the first routing device is a first frequency band, and the operating frequency band of the second routing device has two cases, one is the first frequency band and the other is a second frequency band, which will be described below.
First, a case will be described where the operating frequency band of the second routing device is the first frequency band, and the operating frequency bands of the two routing devices connected to the terminal device are the same. And when the working frequency band of the second routing equipment is the first frequency band, the second routing equipment meets the route switching condition.
Fig. 3 is a first flowchart of a roaming method according to an embodiment of the present application, and as shown in fig. 3, an example is a case where an operating frequency band of a second routing device and an operating frequency band of a first routing device are both a first frequency band, where the method may include:
s301, starting a timer.
When the working frequency bands of the first routing device and the second routing device connected with the terminal device are both the first frequency band, the terminal device does not satisfy the DBDC, and at this time, the second routing device satisfies the routing switching condition, and a timer can be started to initiate scanning at regular time.
S302, when the timer is overtime, scanning is initiated.
The time length of the timer can be set according to needs. When the timer times out, the terminal device may initiate scanning to acquire the operating frequency band within the preset range around the terminal device.
The scanning process may be that the terminal device sends a probe request to the routing device within the preset range, and the routing device that receives the probe request sends a probe response to the terminal device. After the terminal device receives the detection response, the detection response includes the working frequency band of the corresponding routing device, so that the terminal device obtains the working frequency band of the routing device within the preset range.
Fig. 4 is a first roaming diagram provided in the embodiment of the present application, and as shown in fig. 4, the first roaming diagram includes a terminal device 40, where the terminal device 40 is currently connected to a first routing device 41 and a second routing device 42, respectively, and operating frequency bands of the first routing device 41 and the second routing device 42 are both 2.4 GHz.
Since the operating frequency bands of the first routing device 41 and the second routing device 42 are the same and are both the first frequency band (the first frequency band is 2.4GHz in fig. 4 is taken as an example for explanation), the second routing device 42 satisfies the route switching condition, and the terminal device 40 may initiate scanning at regular time. The time intervals at which the terminal device 40 initiates scanning may be equal or different, for example, the time intervals of scanning may be increased each time appropriately, so as to avoid too frequent scanning by the terminal device 40.
S303, determining whether a suitable roaming object is scanned, if yes, executing S304, and if no, executing S301.
In this scenario, a suitable roaming object needs to satisfy a certain condition, and first, it needs to satisfy that the operating frequency band is the second frequency band, and second, it needs to satisfy that the RSSI of the roaming object is greater than or equal to the third preset value, and such roaming object is the third routing device.
For example, in fig. 4, the routing devices around the terminal device 40 further include a routing device 43, a routing device 44, and a routing device 45. Since it is necessary to ensure that the terminal device 40 satisfies the DBDC after roaming, a routing device with an operating frequency band as the second frequency band needs to be found (the second frequency band is 5GHz as an example in fig. 4).
S304, roaming is initiated to the selected roaming object.
If a suitable roaming object, i.e., a third routing device that satisfies the condition, is scanned, the third routing device may initiate roaming to the third routing device for the selected roaming object.
In fig. 4, the operating frequency band of the routing device 43 is 5GHz, and the RSSI of the routing device 43 is greater than or equal to the third preset value, which satisfies the condition, so that the terminal device can initiate roaming to the routing device 43.
S305, determining whether the roaming is successful, if so, executing S306, otherwise, executing S301.
Successful roaming means that the terminal device successfully establishes a connection with the third routing device and disconnects from the second routing device. When the roaming is successful, S306 is executed, and when the roaming is failed, S301 is executed, i.e. the timer is restarted and the subsequent scanning and roaming process is executed.
S306, determining that the terminal equipment meets the DBDC.
When the roaming is successful, the terminal device is disconnected from the second routing device, and establishes connection with the third routing device, and meanwhile, the terminal device originally establishes connection with the first routing device. The operating frequency bands of the first routing device and the third routing device are different, so that the terminal device at the moment is determined to meet the DBDC.
For example, in fig. 4, after roaming is successful, the terminal device 40 disconnects from the second routing device 42, and establishes a connection with the routing device 43 successfully, where two routing devices connected to the terminal device 40 at this time have an operating frequency band of 2.4GHz and another operating frequency band of 5GHz, and satisfy DBDC.
Next, a case will be described where the operating frequency band of the second routing device is the second frequency band, where the operating frequency bands of the two routing devices connected to the terminal device are different. When the working frequency band of the second routing device is the second frequency band and the second routing device meets a preset condition, the second routing device meets a route switching condition, wherein the preset condition may be that the RSSI of the second routing device is less than or equal to a first preset value, or that the number of Beacon loss (Beacon loss) of the second routing device in a preset time period is greater than or equal to a second preset value.
Fig. 5 is a flowchart illustrating a second roaming method according to an embodiment of the present application, as shown in fig. 5, which illustrates a case where an operating frequency band of a second routing device is a second frequency band, where the method may include:
s501, judging whether the second routing equipment meets the condition that the RSSI is less than or equal to a first preset value or the loss number of beacons is less than or equal to a second preset value, if so, executing S502.
In the exemplary embodiment of fig. 5, the operating frequency band of the second routing device is the second frequency band, the operating frequency band of the first routing device is the first frequency band, the operating frequency bands of the two routing devices are different, and the DBDC is satisfied by the terminal device. However, when the RSSI of the second routing device is less than or equal to the first preset value, or the number of lost beacons is less than or equal to the second preset value, the second routing device meets the routing switching condition, and the terminal device needs to initiate scanning.
S502, initiating scanning and searching for a suitable roaming object.
After initiating the scanning, the terminal device obtains the working frequency band of the peripheral preset range. Similarly, the terminal device may send a probe request to the routing device within the preset range, and the routing device that receives the probe request sends a probe response to the terminal device. After the terminal device receives the detection response, the detection response includes the working frequency band of the corresponding routing device, so that the terminal device obtains the working frequency band of the routing device within the preset range.
Fig. 6 is a roaming schematic diagram second provided in the embodiment of the present application, and as shown in fig. 6, the roaming schematic diagram second includes a terminal device 60, where the terminal device 60 is currently connected to a first routing device 61 and a second routing device 62, respectively, where an operating frequency band of the first routing device 61 is 2.4GHz, and an operating frequency band of the second routing device 62 is 5 GHz.
The second routing device 62 satisfies the route switching condition, and the terminal device 60 may initiate scanning at regular time. The time intervals at which the terminal device 60 initiates scanning may be equal or different, for example, the time intervals of scanning may be increased each time, so as to avoid too frequent scanning by the terminal device 60.
S503, determine whether a suitable roaming object is scanned, if yes, execute S504, otherwise execute S507.
In this scenario, a suitable roaming object needs to satisfy a certain condition, and first, it needs to satisfy that the operating frequency band is the second frequency band, and second, it needs to satisfy that the RSSI of the roaming object is greater than or equal to the third preset value, and such roaming object is the third routing device. Since the operating frequency band of the second routing device is the second frequency band, the operating frequency band of the suitable roaming object to be searched is the same as the operating frequency band of the second routing device.
For example, in fig. 6, the routing devices around the terminal device 60 further include a routing device 63, a routing device 64, and a routing device 65. Since it is necessary to ensure that the terminal device 60 satisfies the DBDC after roaming, a routing device with an operating frequency band as the second frequency band needs to be found (the second frequency band is 5GHz as an example in fig. 6).
S504, roaming is initiated to the selected roaming object.
If a suitable roaming object, i.e., a third routing device that satisfies the condition, is scanned, the third routing device may initiate roaming to the third routing device for the selected roaming object.
In fig. 6, the operating frequency band of the routing device 63 is 5GHz, and the RSSI of the routing device 63 is greater than or equal to the third preset value, which satisfies the condition, so that the terminal device can initiate roaming to the routing device 63.
S505 determines whether the roaming is successful, if so, then S506 is executed, otherwise, then S501 is executed.
Successful roaming means that the terminal device successfully establishes a connection with the third routing device and disconnects from the second routing device. When the roaming is successful, S506 is executed, and when the roaming is failed, S501 is executed, i.e., the subsequent scanning and roaming processes are restarted.
S506, the terminal device is determined to meet the DBDC.
When the roaming is successful, the terminal device is disconnected from the second routing device, and establishes connection with the third routing device, and meanwhile, the terminal device originally establishes connection with the first routing device. The operating frequency bands of the first routing device and the third routing device are different, so that the terminal device at the moment is determined to meet the DBDC.
For example, in fig. 6, after roaming is successful, the terminal device 60 disconnects from the second routing device 62, and establishes a connection with the routing device 63 successfully, where two routing devices connected to the terminal device 60 at this time have an operating frequency band of 2.4GHz and another operating frequency band of 5GHz, and satisfy DBDC.
S507, determining whether an inappropriate roaming object whose RSSI satisfies the requirement is scanned, if so, performing S508, and if not, performing S511.
When no suitable roaming object is scanned, if a roaming object whose operating band does not meet the requirement but whose RSSI meets the requirement is scanned, roaming can be temporarily initiated.
And S508, initiating roaming to the selected roaming object.
At this time, the selected roaming object is the routing device whose working frequency band is not satisfactory (the working frequency band is the first frequency band), but RSSI is greater than or equal to the third preset value.
S509, determine whether roaming is successful, if so, execute S510.
Successful roaming means that the terminal device successfully establishes a connection with the selected roaming object and disconnects the connection with the second routing device. When the roaming is successful, S510 is executed, and when the roaming is failed, S511 is executed, i.e. the timer is restarted and the subsequent scanning and roaming processes are executed.
S510, determining that the terminal device is connected with two routing devices but does not satisfy the DBDC.
After the connection is established with the selected roaming object, because the selected roaming object and the operating frequency bands of the first routing device are both the first frequency band, the terminal device can still not meet the DBDC even though the terminal device is connected with two routing devices, and can still initiate the roaming process in the subsequent process until the DBDC is met.
S511, a timer is started.
When the end device does not satisfy DBDC, a timer can be started to periodically initiate scanning.
S512, when the timer times out, S502 is executed.
The time length of the timer can be set according to needs. When the timer is over, S502 is executed, that is, the terminal device may initiate scanning to acquire the operating frequency band within the preset range around the terminal device.
According to the roaming method provided by the embodiment of the application, when the terminal equipment determines that the second routing equipment meets the routing switching condition, the terminal equipment acquires the working frequency bands of the plurality of routing equipment, wherein the terminal equipment is currently connected with the first routing equipment and the second routing equipment respectively; then, the terminal equipment determines a third routing equipment according to the working frequency bands of the plurality of routing equipment and the working frequency band of the first routing equipment; finally, the terminal device is disconnected from the second routing device and establishes a connection with the third routing device. Because the working frequency band of the first routing device is the first frequency band, the working frequency band of the third routing device is the second frequency band, and the first frequency band and the second frequency band are different frequency bands, after roaming is completed, the terminal device can be connected with two routing devices working in different frequency bands, data transmission is carried out between the terminal device and the routing devices in a dual-frequency concurrent mode, and the throughput during data transmission between the terminal device and the routing devices is improved.
Fig. 7 is a schematic structural diagram of a roaming apparatus according to an embodiment of the present application, as shown in fig. 7, including:
a determining module 71, configured to obtain working frequency bands of multiple routing devices when a terminal device determines that a second routing device meets a route switching condition, where the terminal device is currently connected to a first routing device and the second routing device, respectively, and the working frequency band of the first routing device is a first frequency band;
a first processing module 72, configured to determine a third routing device according to an operating frequency band of the multiple routing devices and an operating frequency band of the first routing device, where the operating frequency band of the third routing device is a second frequency band, and the first frequency band and the second frequency band are different frequency bands;
a second processing module 73, configured to disconnect from the second routing device and establish a connection with the third routing device.
In a possible embodiment, the route switching condition is at least one of the following conditions:
the working frequency band of the second routing device is the first frequency band;
and the working frequency band of the second routing equipment is the second frequency band, and the second routing equipment meets the preset condition.
In a possible embodiment, the preset condition includes at least one of the following:
the RSSI of the received signal strength indication of the second routing equipment is less than or equal to a first preset value;
and the number of the lost beacons of the second routing equipment in a preset time period is greater than or equal to a second preset value.
In a possible implementation, the determining module 71 is specifically configured to:
performing a first operation, the first operation comprising: acquiring a working frequency band of the routing equipment within a preset range;
performing a second operation, the second operation comprising: and when the working frequency bands of the routing devices within the preset range are the first frequency bands, the first operation is repeatedly executed according to a preset time interval until the routing devices within the preset range have the routing devices with the working frequency bands of the second frequency bands, and the routing devices within the preset range are determined to be the plurality of routing devices.
In a possible implementation, the determining module 71 is specifically configured to:
sending a detection request to the routing equipment within the preset range;
and receiving a probe response from the routing equipment within the preset range, wherein the probe response comprises the working frequency band of the corresponding routing equipment.
In a possible implementation, the RSSI of the third routing device is greater than or equal to a third preset value.
In a possible implementation manner, the route switching condition is that an operating frequency band of the second routing device is the second frequency band, and the second routing device satisfies a preset condition; the second processing module 73 is further configured to:
if the working frequency bands of the routing equipment in the preset range, which are obtained within the first duration, are the first frequency bands, the RSSI of the routing equipment in the preset range is obtained;
and establishing connection with a fourth routing device in the preset range according to the RSSI of the routing device in the preset range.
The apparatus provided in the embodiment of the present application may be configured to implement the technical solution of the method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 8 is a schematic diagram of a hardware structure of a terminal device provided in an embodiment of the present application, and as shown in fig. 8, the terminal device includes: at least one processor 81 and a memory 82. The processor 81 and the memory 82 are connected by a bus 83.
Optionally, the model determination further comprises a communication component. For example, the communication component may include a receiver and/or a transmitter.
In particular implementations, the at least one processor 81 executes computer-executable instructions stored by the memory 82 to cause the at least one processor 81 to perform the roaming method as described above.
For a specific implementation process of the processor 81, reference may be made to the above method embodiments, which implement the principle and the technical effect similarly, and details of this embodiment are not described herein again.
In the embodiment shown in fig. 8, it should be understood that the Processor may be a Central Processing Unit (CPU), other general-purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in the incorporated application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
The memory may comprise high speed RAM memory and may also include non-volatile storage NVM, such as at least one disk memory.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored, and when executed by a processor, the roaming method as described above is implemented.
The computer-readable storage medium may be implemented by any type of volatile or non-volatile memory device or 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 or optical disk. Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
The division of the units is only a logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (16)

1. A roaming method, comprising:
when a terminal device determines that a second routing device meets a routing switching condition, the terminal device acquires working frequency bands of a plurality of routing devices, wherein the terminal device is currently connected with a first routing device and the second routing device respectively, and the working frequency band of the first routing device is a first frequency band;
the terminal device determines a third routing device according to the working frequency bands of the plurality of routing devices and the working frequency band of the first routing device, wherein the working frequency band of the third routing device is a second frequency band, and the first frequency band and the second frequency band are different frequency bands;
and the terminal equipment is disconnected with the second routing equipment and establishes connection with the third routing equipment.
2. The method of claim 1, wherein the route switching condition is at least one of the following conditions:
the working frequency band of the second routing device is the first frequency band;
and the working frequency band of the second routing equipment is the second frequency band, and the second routing equipment meets the preset condition.
3. The method of claim 2, wherein the preset condition comprises at least one of:
the RSSI of the received signal strength indication of the second routing equipment is less than or equal to a first preset value;
and the number of the lost beacons of the second routing equipment in a preset time period is greater than or equal to a second preset value.
4. The method of any of claims 1-3, wherein obtaining the operating frequency bands for the plurality of routing devices comprises:
performing a first operation, the first operation comprising: acquiring a working frequency band of the routing equipment within a preset range;
performing a second operation, the second operation comprising: and when the working frequency bands of the routing devices within the preset range are the first frequency bands, the first operation is repeatedly executed according to a preset time interval until the routing devices within the preset range have the routing devices with the working frequency bands of the second frequency bands, and the routing devices within the preset range are determined to be the plurality of routing devices.
5. The method of claim 4, wherein obtaining the operating frequency band of the routing device within the preset range comprises:
sending a detection request to the routing equipment within the preset range;
and receiving a probe response from the routing equipment within the preset range, wherein the probe response comprises the working frequency band of the corresponding routing equipment.
6. The method of any of claims 1-3, wherein the RSSI of the third routing device is greater than or equal to a third preset value.
7. The method according to claim 4, wherein the route switching condition is that the operating frequency band of the second routing device is the second frequency band, and the second routing device satisfies a preset condition; the method further comprises the following steps:
if the working frequency bands of the routing equipment in the preset range, which are obtained within the first duration, are the first frequency bands, the RSSI of the routing equipment in the preset range is obtained;
and establishing connection with a fourth routing device in the preset range according to the RSSI of the routing device in the preset range.
8. A roaming device, comprising:
a determining module, configured to obtain working frequency bands of multiple routing devices when a terminal device determines that a second routing device meets a route switching condition, where the terminal device is currently connected to a first routing device and the second routing device, and the working frequency band of the first routing device is a first frequency band;
a first processing module, configured to determine a third routing device according to operating frequency bands of the plurality of routing devices and an operating frequency band of the first routing device, where the operating frequency band of the third routing device is a second frequency band, and the first frequency band and the second frequency band are different frequency bands;
and the second processing module is used for disconnecting with the second routing equipment and establishing connection with the third routing equipment.
9. The apparatus of claim 8, wherein the route switching condition is at least one of:
the working frequency band of the second routing device is the first frequency band;
and the working frequency band of the second routing equipment is the second frequency band, and the second routing equipment meets the preset condition.
10. The apparatus of claim 9, wherein the preset condition comprises at least one of:
the RSSI of the received signal strength indication of the second routing equipment is less than or equal to a first preset value;
and the number of the lost beacons of the second routing equipment in a preset time period is greater than or equal to a second preset value.
11. The apparatus according to any one of claims 8-10, wherein the determining module is specifically configured to:
performing a first operation, the first operation comprising: acquiring a working frequency band of the routing equipment within a preset range;
performing a second operation, the second operation comprising: and when the working frequency bands of the routing devices within the preset range are the first frequency bands, the first operation is repeatedly executed according to a preset time interval until the routing devices within the preset range have the routing devices with the working frequency bands of the second frequency bands, and the routing devices within the preset range are determined to be the plurality of routing devices.
12. The apparatus of claim 11, wherein the determining module is specifically configured to:
sending a detection request to the routing equipment within the preset range;
and receiving a probe response from the routing equipment within the preset range, wherein the probe response comprises the working frequency band of the corresponding routing equipment.
13. The apparatus of any of claims 8-10, wherein the RSSI of the third routing device is greater than or equal to a third preset value.
14. The apparatus according to claim 11, wherein the route switching condition is that the operating frequency band of the second routing device is the second frequency band, and the second routing device satisfies a preset condition; the second processing module is further configured to:
if the working frequency bands of the routing equipment in the preset range, which are obtained within the first duration, are the first frequency bands, the RSSI of the routing equipment in the preset range is obtained;
and establishing connection with a fourth routing device in the preset range according to the RSSI of the routing device in the preset range.
15. A terminal device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the roaming method of any one of claims 1-7.
16. A computer-readable storage medium having computer-executable instructions stored thereon which, when executed by a processor, implement the roaming method of any one of claims 1 to 7.
CN202011017162.8A 2020-09-24 2020-09-24 Roaming method and device Active CN112040525B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011017162.8A CN112040525B (en) 2020-09-24 2020-09-24 Roaming method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011017162.8A CN112040525B (en) 2020-09-24 2020-09-24 Roaming method and device

Publications (2)

Publication Number Publication Date
CN112040525A true CN112040525A (en) 2020-12-04
CN112040525B CN112040525B (en) 2023-07-04

Family

ID=73575246

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011017162.8A Active CN112040525B (en) 2020-09-24 2020-09-24 Roaming method and device

Country Status (1)

Country Link
CN (1) CN112040525B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114554475A (en) * 2022-02-25 2022-05-27 北京小米移动软件有限公司 Roaming method and device, and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107852655A (en) * 2016-05-31 2018-03-27 华为技术有限公司 Switch the method and terminal device of access point
CN109729567A (en) * 2017-10-27 2019-05-07 华为技术有限公司 A kind of message treatment method and access point apparatus and message processing device
CN109803325A (en) * 2019-02-12 2019-05-24 Oppo广东移动通信有限公司 Data distribution method, device, mobile terminal and storage medium
CN109803318A (en) * 2019-02-12 2019-05-24 Oppo广东移动通信有限公司 Data packet shunt method, device, mobile terminal and storage medium
CN110401938A (en) * 2019-08-16 2019-11-01 Oppo广东移动通信有限公司 Wireless Fidelity Wi-Fi connection control method and Related product
CN110519865A (en) * 2019-08-20 2019-11-29 Oppo广东移动通信有限公司 Network interface processing method and relevant device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107852655A (en) * 2016-05-31 2018-03-27 华为技术有限公司 Switch the method and terminal device of access point
CN109729567A (en) * 2017-10-27 2019-05-07 华为技术有限公司 A kind of message treatment method and access point apparatus and message processing device
CN109803325A (en) * 2019-02-12 2019-05-24 Oppo广东移动通信有限公司 Data distribution method, device, mobile terminal and storage medium
CN109803318A (en) * 2019-02-12 2019-05-24 Oppo广东移动通信有限公司 Data packet shunt method, device, mobile terminal and storage medium
CN110401938A (en) * 2019-08-16 2019-11-01 Oppo广东移动通信有限公司 Wireless Fidelity Wi-Fi connection control method and Related product
CN110519865A (en) * 2019-08-20 2019-11-29 Oppo广东移动通信有限公司 Network interface processing method and relevant device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114554475A (en) * 2022-02-25 2022-05-27 北京小米移动软件有限公司 Roaming method and device, and storage medium

Also Published As

Publication number Publication date
CN112040525B (en) 2023-07-04

Similar Documents

Publication Publication Date Title
US8155653B2 (en) Mobile radio terminal and communication processing method
US8559878B2 (en) Wireless communication system, wireless communication apparatus, wireless communication method, and non-transitory computer readable recording medium
WO2018176689A1 (en) Information processing method and relevant devices and computer program
EP3349536B1 (en) Method and device for calling in network cell congestion state
CN113630828B (en) Wireless roaming method, device, computer equipment and storage medium
US20190150041A1 (en) Access point handover method and device
EP3706474A1 (en) Method for selecting cell, terminal device, and network device
CN112040525B (en) Roaming method and device
CN113891371A (en) Frequency point measuring method and related product
CN113692001A (en) Cell residence selection method and system
JP6311287B2 (en) Terminal device, wireless communication method and program
CN109561478B (en) User terminal blind redirection method, device, computer storage medium and equipment
WO2019061410A1 (en) Abnormal frequency point detection method and device, and computer storage medium
EP3780791A1 (en) Paging method, network device and terminal device
CN112235848B (en) Network searching method, device, terminal and storage medium
CN108848539B (en) Method and device for optimizing neighbor cell
US20200015299A1 (en) Communication method and terminal device
CN111866968B (en) Network mode switching method and device
WO2021063205A1 (en) Channel indication sending method, channel scanning method, and device
CN111757423B (en) Wireless communication method, device, electronic equipment and computer readable storage medium
CN112312521A (en) Network access method and device
CN108024298B (en) Method and device for controlling terminal to actively roam
CN112911665A (en) Access point connection method and electronic equipment
CN111565477B (en) Network connection method, wireless station, and storage medium
CN107959940B (en) Detection method and device, storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant