CN112040525B - Roaming method and device - Google Patents

Roaming method and device Download PDF

Info

Publication number
CN112040525B
CN112040525B CN202011017162.8A CN202011017162A CN112040525B CN 112040525 B CN112040525 B CN 112040525B CN 202011017162 A CN202011017162 A CN 202011017162A CN 112040525 B CN112040525 B CN 112040525B
Authority
CN
China
Prior art keywords
routing
frequency band
equipment
working frequency
routing equipment
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.)
Active
Application number
CN202011017162.8A
Other languages
Chinese (zh)
Other versions
CN112040525A (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 device, wherein the method comprises the following steps: when the terminal equipment determines that the second routing equipment meets the routing switching condition, the terminal equipment acquires working frequency bands of a plurality of routing equipment, wherein the terminal equipment is respectively connected with first routing equipment and the second routing equipment at present, and the working frequency band of the first routing equipment is a first frequency band; the terminal equipment determines a third routing equipment according to the working frequency bands of the routing equipment and the working frequency bands of the first routing equipment, wherein the working frequency band of the third routing equipment 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 DBDC, and the throughput of 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 operation in two frequency bands of 2.4GHz and 5GHz, and supports the dual-frequency concurrency function.
Aiming at the terminal equipment supporting the dual-frequency concurrency function, the terminal equipment can be connected with a wireless Access Point (AP) working in a 2.4GHz frequency band and an AP working in a 5GHz frequency band, so that the terminal equipment can realize the dual-frequency concurrency 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 can easily connect to two APs with the same operating frequency band, for example, two APs with 2.4GHz frequency band or two APs with 5GHz frequency band.
Therefore, the current scheme easily causes a data transmission mode that only single-frequency time division can be performed between the terminal equipment and the AP, and has great influence on throughput when data is transmitted between the terminal equipment and the AP.
Disclosure of Invention
The embodiment of the application provides a roaming method and a roaming device, which are used for improving the throughput during data transmission between terminal equipment and an AP.
In a first aspect. The embodiment of the application provides a roaming method, which comprises the following steps:
when the terminal equipment determines that the second routing equipment meets the routing switching condition, the terminal equipment acquires working frequency bands of a plurality of routing equipment, wherein the terminal equipment is respectively connected with first routing equipment and the second routing equipment at present, and the working frequency band of the first routing equipment is a first frequency band;
The terminal equipment determines a third routing equipment according to the working frequency bands of the routing equipment and the working frequency bands of the first routing equipment, wherein the working frequency band of the third routing equipment 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 one possible embodiment, the route switching condition is at least one of the following conditions:
the working frequency band of the second routing equipment is the first frequency band;
the working frequency band of the second routing device is the second frequency band, and the second routing device meets preset conditions.
In one possible embodiment, the preset condition includes at least one of the following:
the received signal strength indication RSSI of the second routing equipment is smaller than or equal to a first preset value;
the number of the lost beacons of the second routing device in the preset time period is larger than or equal to a second preset value.
In one possible implementation, acquiring the operating frequency bands of the plurality of routing devices includes:
performing a first operation, the first operation comprising: acquiring the working frequency band of the routing equipment in a preset range;
Performing a second operation, the second operation comprising: and when the working frequency bands of the routing devices in the preset range are the first frequency band, repeatedly executing the first operation according to a preset time interval until the routing devices with the working frequency bands being the second frequency band exist in the routing devices in the preset range, and determining the routing devices in the preset range as the plurality of routing devices.
In one possible implementation manner, acquiring an operating frequency band of the routing device within a preset range includes:
sending a detection request to the routing equipment within the preset range;
and receiving a detection response from the routing equipment within the preset range, wherein the detection response comprises the working frequency band of the corresponding routing equipment.
In one possible implementation manner, 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 the working frequency band of the second routing device is the second frequency band, and the second routing device meets a preset condition; the method further comprises the steps of:
if the working frequency bands of the routing equipment in the preset range obtained in the first duration are the first frequency bands, obtaining the RSSI of the routing equipment in the preset range;
And establishing connection with fourth routing equipment in the preset range according to the RSSI of the routing equipment in the preset range.
In a second aspect, an embodiment of the present application provides a roaming device, including:
the terminal equipment is connected with the first routing equipment and the second routing equipment respectively, and the working frequency band of the first routing equipment is a first frequency band;
the first processing module is used for determining a third routing device according to the working frequency bands of the routing devices and the working frequency bands 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 second processing module is used for disconnecting the second routing equipment and establishing connection with the third routing equipment.
In one possible embodiment, the route switching condition is at least one of the following conditions:
the working frequency band of the second routing equipment is the first frequency band;
the working frequency band of the second routing device is the second frequency band, and the second routing device meets preset conditions.
In one possible embodiment, the preset condition includes at least one of the following:
the received signal strength indication RSSI of the second routing equipment is smaller than or equal to a first preset value;
the number of the lost beacons of the second routing device in the preset time period is larger than or equal to a second preset value.
In one possible implementation manner, the determining module is specifically configured to:
performing a first operation, the first operation comprising: acquiring the working frequency band of the routing equipment in a preset range;
performing a second operation, the second operation comprising: and when the working frequency bands of the routing devices in the preset range are the first frequency band, repeatedly executing the first operation according to a preset time interval until the routing devices with the working frequency bands being the second frequency band exist in the routing devices in the preset range, and determining the routing devices in the preset range as the plurality of routing devices.
In one possible implementation manner, the determining module is specifically configured to:
sending a detection request to the routing equipment within the preset range;
and receiving a detection response from the routing equipment within the preset range, wherein the detection response comprises the working frequency band of the corresponding routing equipment.
In one possible implementation manner, 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 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 processing module is further configured to:
if the working frequency bands of the routing equipment in the preset range obtained in the first duration are the first frequency bands, obtaining the RSSI of the routing equipment in the preset range;
and establishing connection with fourth routing equipment in the preset range according to the RSSI of the routing equipment 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 computer-executable instructions stored in 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 having stored therein computer-executable instructions that, when executed by a processor, implement the roaming method according to any one of the first aspects.
When the terminal equipment determines that the second routing equipment meets the routing switching condition, the terminal equipment acquires the working frequency bands of a plurality of routing equipment, wherein the terminal equipment is respectively connected with the first routing equipment and the second routing equipment at present; 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 disconnects 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, and data transmission is carried out between the terminal device and the routing devices in a double-frequency concurrent mode, so that 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 of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application;
fig. 2 is a flow chart of a roaming method according to an embodiment of the present application;
fig. 3 is a schematic flow chart of a roaming method according to an embodiment of the present application;
FIG. 4 is a first roaming schematic diagram according to an embodiment of the present application;
fig. 5 is a second flow chart of a roaming method according to an embodiment of the present application;
fig. 6 is a second roaming schematic diagram provided in the embodiment of the present application;
fig. 7 is a schematic structural diagram of a roaming device according to an embodiment of the present application;
fig. 8 is a schematic hardware structure of a terminal device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of 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 apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
For ease of understanding, first, concepts related to the present application will be described.
AP: access Point, a wireless Access Point, also known as a "hotspot" is an Access Point that uses wireless devices to Access a network, and includes a routing switch Access integrated device and a pure Access Point device, where the routing devices in the embodiments of the present application all belong to an AP.
RSSI: received Signal Strength Indication, a received signal strength indication, the strength of which may be used to indicate the quality of the connection between the signal point and the receiving point.
DBDC: dual Band Dual Concurrent, also called dual-frequency concurrency.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application, as shown in fig. 1, including a terminal device 10, a routing device 11, and a routing device 12. The routing device 11 is a device operating in the frequency band of 2.4GHz or 5GHz, and the routing device 12 is a device operating in the frequency band of 2.4GHz or 5 GHz.
The terminal device 10 has a dual-band concurrency 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 now connected to the routing device 11 and the routing device 12, respectively. When the routing device 11 is a wireless access point of 2.4GHz and the routing device 12 is an AP of 5GHz, the terminal device 10 connects two routing devices operating in different frequency bands; when both the routing device 11 and the routing device 12 are APs of 2.4GHz, or when both the routing device 11 and the routing device 12 are APs of 5GHz, the terminal device 10 connects two routing devices operating in the same frequency band.
At present, when the terminal device 10 connects two routing devices operating in the same frequency band, although the terminal device supports the dual-frequency concurrency function, the terminal device can only perform data transmission with the routing devices in a single-frequency time division mode due to the fact that the two routing devices in the same frequency band are connected, and throughput during data transmission is greatly affected.
When the terminal device 10 connects two routing devices operating in different frequency bands, the terminal device may roam in some situations and connect to a new routing device after roaming. For example, in fig. 1, when the connection between the terminal device and the routing device 11 is weak, it may roam, and then disconnect from the routing device 11 and establish a connection with another routing device. However, in the current roaming policy, the last connected routing device is selected mainly by RSSI, beacon loss, etc., and the frequency band in which the routing device operates is not considered, resulting in that the connected routing device after roaming is different from the previous routing device in operating frequency band. For example, in fig. 1, if the operating frequency 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 connects the other routing device and the routing device 12 after roaming, so that the operating frequency bands of the two routing devices connected by the terminal device are the same, and the dual-band concurrency function cannot be implemented.
In order to solve the above-mentioned problem, the embodiment of the present application provides a roaming scheme, so that when a terminal device needs to roam and connect with other routing devices after roaming, the working frequency bands of two connected routing devices are different working frequency bands, so that the terminal device can perform data transmission with the routing devices in a dual-frequency concurrent mode, and throughput is improved.
The following will describe aspects of the present application with reference to the accompanying drawings.
Fig. 2 is a flow chart of a roaming method provided in an embodiment of the present application, and as shown in fig. 2, the method may include:
s21, when the terminal equipment determines that the second routing equipment meets the routing switching condition, the terminal equipment acquires working frequency bands of a plurality of routing equipment, wherein the terminal equipment is respectively connected with the first routing equipment and the second routing equipment at present, and the working frequency band of the first routing equipment is a first frequency band.
The terminal equipment is equipment supporting double-frequency double-transmission, namely the terminal equipment supports AP connection with two working frequency bands simultaneously. In this embodiment, two APs currently connected to the terminal device are a first routing device and a second routing device, 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 device needs to disconnect from the second routing device and roam to establish connection with other routing devices. For example, when the RSSI value of the second routing device is small, 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 that of the first routing device, the second routing device can also be considered to satisfy the route switching condition.
S22, the terminal equipment determines a third routing equipment according to the working frequency bands of the routing equipment and the working frequency bands of the first routing equipment, wherein the working frequency band of the third routing equipment 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 5GHz; when the first frequency band is 5GHz, the second frequency band is 2.4GHz.
After the second routing device satisfies the routing handover condition, the terminal device may enter a roaming state, find a suitable roaming object, and establish a connection with the suitable roaming object after determining it.
In this embodiment, the terminal device determines a suitable roaming object according to the working frequency bands of the peripheral multiple routing devices and the working frequency band of the first routing device, where the suitable roaming object is a third routing device, and the working frequency band of the third routing device is a second frequency band and is a different frequency band from the first frequency band of the first routing device.
S23, the terminal equipment is disconnected with the second routing equipment, and connection is established with the third routing equipment.
After the third routing device is determined, the terminal device disconnects from the second routing device and establishes a connection with the third routing device. Before the terminal device is disconnected from the second routing device, the terminal device is connected to the first routing device and the second routing device, respectively. After the terminal device is disconnected from the second routing device and establishes a connection with the third routing device, the terminal device connects 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 with two different working frequency bands, and the dual-frequency concurrency 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 a plurality of routing equipment, wherein the terminal equipment is respectively connected with the first routing equipment and the second routing equipment at present; 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 disconnects 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, and data transmission is carried out between the terminal device and the routing devices in a double-frequency concurrent mode, so that 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 routing switch condition, the terminal device may acquire the operating frequency bands of the plurality of routing devices. For example, the terminal device may perform a first operation, obtain an operating frequency band of the routing device in the preset range, and then perform a second operation, where when the operating frequency bands of the routing devices in the preset range are all the first frequency band, the first operation is repeatedly performed according to a preset time interval until, when there is a routing device whose operating frequency band is the second frequency band in the routing devices in the preset range, it is determined that the routing device in the preset range is the plurality of routing devices.
The mode of the terminal device acquiring the working frequency band of the routing device within the preset range may be that the terminal device sends a probe request (probe request) to the routing device within the preset range, and the routing device replies a probe response (probe response) after receiving the probe request. And then the terminal equipment receives a detection response from the routing equipment within the preset range, wherein the detection response comprises the working frequency band of the corresponding routing equipment.
The two routing devices connected to the current terminal device are a first routing device and a second routing device, the working frequency band of the first routing device is a first frequency band, and the working frequency band of the second routing device is two cases, namely, the first frequency band and the second frequency band, and the two cases are respectively described below.
First, a case where the operating frequency band of the second routing device is the first frequency band will be described, where the operating frequency bands of the two routing devices connected to the terminal device are the same. When the operating frequency band of the second routing device is the first frequency band, the second routing device satisfies the routing switch condition.
Fig. 3 is a schematic flow chart of a roaming method provided in the 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 first frequency bands, 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 meet the DBDC, and at the moment, the second routing device meets the routing switching condition, and a timer can be started to initiate scanning at fixed time.
S302, when the timer is overtime, scanning is initiated.
The time of the timer can be set according to the requirement. When the timer expires, the terminal device may initiate a scan to acquire an operating band within a preset range around.
The scanning process may be that the terminal device sends a probe request to the routing device within a preset range, and the routing device that receives the probe request sends a probe response to the terminal device. After the terminal equipment receives the detection response, the detection response comprises the working frequency band of the corresponding routing equipment, so that the terminal equipment obtains the working frequency band of the routing equipment in a preset range.
Fig. 4 is a first roaming schematic diagram provided in the embodiment of the present application, as shown in fig. 4, including 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, where working frequency bands of the first routing device 41 and the second routing device 42 are both 2.4GHz.
Since the first routing device 41 and the second routing device 42 have the same operating frequency band and are both the first frequency band (the first frequency band is illustrated as 2.4GHz in fig. 4), the second routing device 42 satisfies the route switching condition, and the terminal device 40 can initiate scanning at regular time. The time interval during which the terminal device 40 initiates the scanning may be equal or unequal, for example, the time interval during which the scanning is properly increased each time, so as to avoid too frequent scanning by the terminal device 40.
S303, judging whether a proper roaming object is scanned, if so, executing S304, and if not, executing S301.
In this scenario, the appropriate roaming object needs to satisfy a certain condition, firstly, that the working frequency band needs to be the second frequency band, and secondly, that its RSSI is greater than or equal to a 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 DBDC after roaming, it is necessary to find a routing device whose operating frequency band is the second frequency band (the second frequency band is illustrated as 5GHz in fig. 4).
S304, roaming is initiated to the selected roaming object.
If a suitable roaming object, namely a third routing device meeting the condition, is scanned, the third routing device is the selected roaming object, and roaming can be initiated to the third routing device.
In fig. 4, the operating band of the routing device 43 is 5GHz, and the RSSI thereof is greater than or equal to the third preset value, and the condition is satisfied, so that the terminal device can initiate roaming to the routing device 43.
S305, judging whether the roaming is successful, if yes, executing S306, and if not, executing S301.
The successful roaming means that the terminal device successfully establishes a connection with the third routing device and disconnects with the second routing device. When roaming is successful, S306 is performed, and when roaming fails, S301 is performed, i.e., the timer count is restarted and the subsequent scanning and roaming processes are performed.
S306, it is determined that the terminal device has satisfied DBDC.
When roaming is successful, the terminal device is disconnected with the second routing device, and is connected with the third routing device, and meanwhile, the terminal device is originally connected with the first routing device. The operating frequency bands of the first routing device and the third routing device are different, and thus it is determined that the terminal device at this time satisfies DBDC.
For example, in fig. 4, after roaming is successful, the terminal device 40 is disconnected from the second routing device 42 and successfully establishes a connection with the routing device 43, where two routing devices connected to the terminal device 40, one operating band being 2.4GHz and the other operating band being 5GHz, meet DBDC.
Next, a case will be described in which the operating frequency band of the second routing device is the second frequency band, and 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 the preset condition, the second routing device meets the route switching condition, wherein the preset condition may be that the RSSI of the second routing device is smaller than or equal to the first preset value, or that the number of Beacon losses (Beacon loss) of the second routing device in a preset period is larger than or equal to the second preset value.
Fig. 5 is a second flowchart of a roaming method provided in the embodiment of the present application, and as shown in fig. 5, an example is a case where an operating band of a second routing device is a second band, where the method may include:
s501, judging whether the second routing equipment meets that the RSSI is smaller than or equal to a first preset value or the number of lost beacons is smaller than or equal to a second preset value, if yes, executing S502.
In the embodiment illustrated in 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 terminal device meets DBDC. 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 satisfies the route switching condition, and the terminal device needs to initiate scanning.
S502, initiating scanning to find a suitable roaming object.
After initiating scanning, the terminal equipment acquires the working frequency band of the preset range around. 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 equipment receives the detection response, the detection response comprises the working frequency band of the corresponding routing equipment, so that the terminal equipment obtains the working frequency band of the routing equipment in a preset range.
Fig. 6 is a second roaming schematic diagram provided in the embodiment of the present application, as shown in fig. 6, including 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 5GHz.
The second routing device 62 satisfies the route switch condition and the terminal device 60 may initiate the scan at regular intervals. The time interval during which the terminal device 60 initiates the scanning may be equal or unequal, for example, the time interval during which the scanning is properly increased each time, so as to avoid too frequent scanning by the terminal device 60.
S503, judging whether a proper roaming object is scanned, if yes, executing S504, otherwise executing S507.
In this scenario, the appropriate roaming object needs to satisfy a certain condition, firstly, that the working frequency band needs to be the second frequency band, and secondly, that its RSSI is greater than or equal to a third preset value, and such roaming object is the third routing device. Since the operating band of the second routing device is the second frequency band, the operating band of the suitable roaming object to be found is the same as the operating band of the second routing device.
In fig. 6, for example, 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 DBDC after roaming, it is necessary to find a routing device having an operating band of the second frequency band (the second frequency band is illustrated as 5GHz in fig. 6).
S504, roaming is initiated to the selected roaming object.
If a suitable roaming object, namely a third routing device meeting the condition, is scanned, the third routing device is the selected roaming object, and roaming can be initiated to the third routing device.
In fig. 6, the operating band of the routing device 63 is 5GHz, and the RSSI thereof is greater than or equal to the third preset value, and the condition is satisfied, so that the terminal device can initiate roaming to the routing device 63.
S505, it is determined whether roaming is successful, if yes, S506 is executed, and if no, S501 is executed.
The successful roaming means that the terminal device successfully establishes a connection with the third routing device and disconnects with the second routing device. When roaming is successful, S506 is performed, and when roaming fails, S501 is performed, i.e., the subsequent scanning and roaming processes are restarted.
S506, it is determined that the terminal device has satisfied the DBDC.
When roaming is successful, the terminal device is disconnected with the second routing device, and is connected with the third routing device, and meanwhile, the terminal device is originally connected with the first routing device. The operating frequency bands of the first routing device and the third routing device are different, and thus it is determined that the terminal device at this time satisfies DBDC.
For example, in fig. 6, after roaming is successful, the terminal device 60 is disconnected from the second routing device 62 and successfully establishes a connection with the routing device 63, where two routing devices connected to the terminal device 60, one operating band being 2.4GHz and the other operating band being 5GHz, meet DBDC.
S507, judging whether a roaming object which is unsuitable but meets the requirement of RSSI is scanned, if yes, executing S508, and if not, executing S511.
When no suitable roaming object is scanned, if the scanning operation frequency band is not satisfactory, but the RSSI satisfies the roaming object required, the roaming may be initiated temporarily.
S508, roaming is initiated to the selected roaming object.
The roaming object selected at this time is a routing device whose operating band is not satisfactory (the operating band is the first band), but whose RSSI is greater than or equal to the third preset value.
S509, judging whether the roaming is successful, if so, executing S510.
Roaming success refers to the terminal device successfully establishing a connection with the selected roaming object and disconnecting the connection with the second routing device. When roaming is successful, S510 is performed, and when roaming fails, S511 is performed, i.e., the timer count is restarted and the subsequent scanning and roaming processes are performed.
S510, it is determined that the terminal device has connected two routing devices but does not satisfy the DBDC.
After the connection is established with the selected roaming object, the working frequency bands of the selected roaming object and the first routing device are both the first frequency band, so that the terminal device is connected with two routing devices, but still does not meet the DBDC, and the roaming process can be initiated later until the DBDC is met.
S511, starting a timer.
When the terminal device does not meet the DBDC, a timer may be started to initiate the scan periodically.
S512, when the timer expires, S502 is executed.
The time of the timer can be set according to the requirement. When the timer expires, S502 is executed, i.e. the terminal device may initiate a scan to obtain the operating frequency band within the preset range of the periphery.
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 a plurality of routing equipment, wherein the terminal equipment is respectively connected with the first routing equipment and the second routing equipment at present; 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 disconnects 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, and data transmission is carried out between the terminal device and the routing devices in a double-frequency concurrent mode, so that throughput during data transmission between the terminal device and the routing devices is improved.
Fig. 7 is a schematic structural diagram of a roaming device according to an embodiment of the present application, and as shown in fig. 7, the roaming device includes:
a determining module 71, configured to obtain operating frequency bands of a plurality of routing devices when a terminal device determines that a second routing device meets a routing switching condition, where the terminal device is currently connected to a first routing device and the second routing device, and the operating 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 the operating frequency bands of the plurality of 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;
a second processing module 73, configured to disconnect from the second routing device and establish a connection with the third routing device.
In one possible embodiment, the route switching condition is at least one of the following conditions:
the working frequency band of the second routing equipment is the first frequency band;
the working frequency band of the second routing device is the second frequency band, and the second routing device meets preset conditions.
In one possible embodiment, the preset condition includes at least one of the following:
the received signal strength indication RSSI of the second routing equipment is smaller than or equal to a first preset value;
the number of the lost beacons of the second routing device in the preset time period is larger than or equal to a second preset value.
In one possible implementation, the determining module 71 is specifically configured to:
performing a first operation, the first operation comprising: acquiring the working frequency band of the routing equipment in a preset range;
performing a second operation, the second operation comprising: and when the working frequency bands of the routing devices in the preset range are the first frequency band, repeatedly executing the first operation according to a preset time interval until the routing devices with the working frequency bands being the second frequency band exist in the routing devices in the preset range, and determining the routing devices in the preset range as the plurality of routing devices.
In one 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 detection response from the routing equipment within the preset range, wherein the detection response comprises the working frequency band of the corresponding routing equipment.
In one possible implementation manner, 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 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 processing module 73 is further configured to:
if the working frequency bands of the routing equipment in the preset range obtained in the first duration are the first frequency bands, obtaining the RSSI of the routing equipment in the preset range;
and establishing connection with fourth routing equipment in the preset range according to the RSSI of the routing equipment in the preset range.
The device provided in the embodiment of the present application may be used to execute the technical solution of the embodiment of the method, and its implementation principle and technical effects are similar, and are not repeated here.
Fig. 8 is a schematic hardware structure of a terminal device provided in an embodiment of the present application, as shown in fig. 8, where the terminal device includes: at least one processor 81 and a memory 82. Wherein 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 a specific implementation, at least one processor 81 executes computer-executable instructions stored in the memory 82, so that the at least one processor 81 performs the roaming method as described above.
The specific implementation process of the processor 81 can be referred to the above method embodiment, and its implementation principle and technical effects are similar, and this embodiment will not be described herein again.
In the embodiment shown in fig. 8, it should be understood that the processor may be a central processing unit (english: central Processing Unit, abbreviated as CPU), or may be other general purpose processors, digital signal processors (english: digital Signal Processor, abbreviated as DSP), application specific integrated circuits (english: application Specific Integrated Circuit, abbreviated as ASIC), or the like. 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 connection with the present application may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in a processor for execution.
The memory may comprise high speed RAM memory or may further comprise non-volatile storage NVM, such as at least one disk memory.
The bus may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnect (Peripheral Component, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, the buses in the drawings 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 having stored therein computer-executable instructions that, when executed by a processor, implement the roaming method as described above.
The computer readable storage medium described above 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 disk, or optical disk. A readable storage medium can be any available medium 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. In the alternative, the readable storage medium may be integral to the processor. The processor and the readable storage medium may reside in an application specific integrated circuit (Application Specific Integrated Circuits, ASIC for short). The processor and the readable storage medium may reside as discrete components in a device.
The division of the units is merely a logic function division, and there may be another division manner when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in 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 may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in 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, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution 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 scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims (8)

1. A roaming method, comprising:
when the terminal equipment determines that the second routing equipment meets the routing switching condition, the terminal equipment acquires working frequency bands of a plurality of routing equipment, wherein the terminal equipment is respectively connected with first routing equipment and the second routing equipment at present, and the working frequency band of the first routing equipment is a first frequency band;
The terminal equipment determines a third routing equipment according to the working frequency bands of the routing equipment and the working frequency bands of the first routing equipment, wherein the working frequency band of the third routing equipment is a second frequency band, and the first frequency band and the second frequency band are different frequency bands;
the terminal equipment is disconnected with the second routing equipment and is connected with the third routing equipment;
the route switching condition is that the working frequency band of the second routing device is the second frequency band, and the second routing device meets a preset condition;
the preset conditions include at least one of the following:
the received signal strength indication RSSI of the second routing equipment is smaller than or equal to a first preset value;
the number of the lost beacons of the second routing equipment in the preset time period is larger than or equal to a second preset value;
acquiring the working frequency bands of a plurality of routing devices, including:
performing a first operation, the first operation comprising: acquiring the working frequency band of the routing equipment in a preset range;
performing a second operation, the second operation comprising: when the working frequency bands of the routing devices in the preset range are the first frequency band, repeatedly executing the first operation according to a preset time interval until the routing devices with the working frequency bands being the second frequency band exist in the routing devices in the preset range, and determining the routing devices in the preset range as the plurality of routing devices;
If the working frequency bands of the routing equipment in the preset range obtained in the first duration are the first frequency bands, obtaining the RSSI of the routing equipment in the preset range;
and establishing connection with fourth routing equipment in the preset range according to the RSSI of the routing equipment in the preset range.
2. The method of claim 1, wherein acquiring 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 detection response from the routing equipment within the preset range, wherein the detection response comprises the working frequency band of the corresponding routing equipment.
3. The method of claim 1, wherein the RSSI of the third routing device is greater than or equal to a third preset value.
4. A roaming device, comprising:
the terminal equipment is connected with the first routing equipment and the second routing equipment respectively, and the working frequency band of the first routing equipment is a first frequency band;
The first processing module is used for determining a third routing device according to the working frequency bands of the routing devices and the working frequency bands 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;
the second processing module is used for disconnecting with the second routing equipment and establishing connection with the third routing equipment;
the route switching condition is that the working frequency band of the second routing device is the second frequency band, and the second routing device meets a preset condition;
the preset conditions include at least one of the following:
the received signal strength indication RSSI of the second routing equipment is smaller than or equal to a first preset value;
the number of the lost beacons of the second routing equipment in the preset time period is larger than or equal to a second preset value;
the determining module is specifically configured to:
performing a first operation, the first operation comprising: acquiring the working frequency band of the routing equipment in a preset range;
performing a second operation, the second operation comprising: when the working frequency bands of the routing devices in the preset range are the first frequency band, repeatedly executing the first operation according to a preset time interval until the routing devices with the working frequency bands being the second frequency band exist in the routing devices in the preset range, and determining the routing devices in the preset range as the plurality of routing devices;
The second processing module is further configured to:
if the working frequency bands of the routing equipment in the preset range obtained in the first duration are the first frequency bands, obtaining the RSSI of the routing equipment in the preset range;
and establishing connection with fourth routing equipment in the preset range according to the RSSI of the routing equipment in the preset range.
5. The apparatus of claim 4, wherein the determining module is specifically configured to:
sending a detection request to the routing equipment within the preset range;
and receiving a detection response from the routing equipment within the preset range, wherein the detection response comprises the working frequency band of the corresponding routing equipment.
6. The apparatus of claim 4, wherein the RSSI of the third routing device is greater than or equal to a third preset value.
7. A terminal device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing computer-executable instructions stored in the memory causes the at least one processor to perform the roaming method of any one of claims 1 to 3.
8. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor implement the roaming method of any of claims 1 to 3.
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 CN112040525A (en) 2020-12-04
CN112040525B true 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)

Families Citing this family (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

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3457756B8 (en) * 2016-05-31 2021-06-16 Honor Device Co., Ltd. Access point switching method and terminal device
CN109729567B (en) * 2017-10-27 2020-10-27 华为技术有限公司 Message processing method, access point equipment and message processing equipment
CN109803318B (en) * 2019-02-12 2021-01-22 Oppo广东移动通信有限公司 Data packet distribution method and device, mobile terminal and storage medium
CN109803325B (en) * 2019-02-12 2020-12-22 Oppo广东移动通信有限公司 Data distribution method and device, mobile terminal and storage medium
CN110401938B (en) * 2019-08-16 2023-04-07 Oppo广东移动通信有限公司 Wireless high-fidelity Wi-Fi connection control method and related product
CN110519865B (en) * 2019-08-20 2021-04-13 Oppo广东移动通信有限公司 Network interface processing method and related equipment

Also Published As

Publication number Publication date
CN112040525A (en) 2020-12-04

Similar Documents

Publication Publication Date Title
US8155653B2 (en) Mobile radio terminal and communication processing method
US11129068B2 (en) Network device and terminal device applied for cell handover
US8559878B2 (en) Wireless communication system, wireless communication apparatus, wireless communication method, and non-transitory computer readable recording medium
US11012971B2 (en) Paging method and device
EP3220688A1 (en) Conditional transmission of wlan probe response
EP3554176B1 (en) Data transmission method and device for discontinuous reception
EP3349536B1 (en) Method and device for calling in network cell congestion state
KR101196545B1 (en) Apparatuses and methods for handling timers for routing areara update procedures or attachment procedures without integrity protection
CN108476449B (en) Method and terminal device for processing voice service
CN113630828B (en) Wireless roaming method, device, computer equipment and storage medium
US20200413324A1 (en) Method for searching for network by terminal, terminal, and storage medium
KR20220051303A (en) Method of cell selection, terminal device and network device
CN111654344B (en) Frequency band scanning method, device, equipment and storage medium
CN112040525B (en) Roaming method and device
WO2019061410A1 (en) Abnormal frequency point detection method and device, and computer storage medium
CN109561478B (en) User terminal blind redirection method, device, computer storage medium and equipment
CN107682310B (en) Packet domain voice service registration method, device, storage medium and mobile terminal
WO2021063205A1 (en) Channel indication sending method, channel scanning method, and device
US11109429B2 (en) Communication method and terminal device
CN109600801B (en) Switching method and device
US20210266864A1 (en) Paging method and apparatus
CN108024298B (en) Method and device for controlling terminal to actively roam
CN112911665A (en) Access point connection method and electronic equipment
CN112312521A (en) Network access method and device
CN111757423A (en) Wireless communication method, device, electronic equipment and computer readable 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