CN114828129B - Roaming method and device of wireless local area network, mobile terminal and readable storage medium - Google Patents

Roaming method and device of wireless local area network, mobile terminal and readable storage medium Download PDF

Info

Publication number
CN114828129B
CN114828129B CN202210700904.XA CN202210700904A CN114828129B CN 114828129 B CN114828129 B CN 114828129B CN 202210700904 A CN202210700904 A CN 202210700904A CN 114828129 B CN114828129 B CN 114828129B
Authority
CN
China
Prior art keywords
roaming
local area
wireless local
rssi
network
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
CN202210700904.XA
Other languages
Chinese (zh)
Other versions
CN114828129A (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.)
Uniontech Software Technology Co Ltd
Original Assignee
Uniontech Software Technology 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 Uniontech Software Technology Co Ltd filed Critical Uniontech Software Technology Co Ltd
Priority to CN202210700904.XA priority Critical patent/CN114828129B/en
Publication of CN114828129A publication Critical patent/CN114828129A/en
Application granted granted Critical
Publication of CN114828129B publication Critical patent/CN114828129B/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/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Abstract

The invention discloses a roaming method, a roaming device, a mobile terminal and a readable storage medium of a wireless local area network, relates to the field of communication, and aims to solve the technical problems of poor universality and high required cost in the existing WiFi seamless roaming strategy, wherein the roaming method comprises the following steps: when an event of starting or quitting a process is detected, judging whether a low-delay process exists in the currently running process; if the attribute exists, setting the service attribute of the wireless networking module in the mobile terminal as a low delay attribute, otherwise, setting the service attribute as a high delay attribute; and acquiring roaming parameters corresponding to the service attributes to realize roaming of the wireless local area network based on the roaming parameters. As can be seen from the above, the WiFi roaming method provided by the present invention can implement WiFi roaming without separate control hardware, thereby reducing the impact of WiFi roaming on process operation on the premise of reducing cost, and having strong versatility.

Description

Roaming method and device of wireless local area network, mobile terminal and readable storage medium
Technical Field
The present invention relates to the field of communications, and in particular, to a roaming method and apparatus for a wireless local area network, a mobile terminal, and a readable storage medium.
Background
A wlan roaming technology, also called WiFi (Wireless-Fidelity) roaming technology, is a technology that, when a mobile terminal moves, if it is found that the signal strength of an AP (access point) to which the mobile terminal is currently connected is weak, the mobile terminal disconnects the old AP and switches to the connection with an AP with a strong signal, which is called WiFi roaming technology. However, when the mobile terminal performs the AP handover operation, the quality of the network at this time will be affected, and thus situations such as service packet loss and network delay are likely to occur.
In order to solve the above problems, in the prior art, the above problems are solved by a WiFi seamless roaming technology, which automatically switches from one AP to another AP with strong signal when the mobile terminal moves, and the switching time is controlled in milliseconds, so that packets are not basically dropped, that is, the AP automatically switches to another AP with strong signal without perception of user experience.
Currently, WiFi seamless roaming technology includes two implementations. The first method is to deploy an Access Controller (AC) and a networking architecture of multiple APs, Set the passwords of SSIDs (Service Set identifiers) of the networks of the multiple APs to be the same, identify a roaming user through the AC when the mobile terminal is switched in the networks, and maintain the original IP and the established connection when the roaming user is identified. In another mode, the WiFi seamless roaming of the mesh clients is realized by means of mutual signal forwarding between the mesh routers. However, the above method can only use the seamless WiFi roaming technology in its coverage area if networking is performed according to the required mode, that is, it is necessary to perform targeted networking for different scenes, which results in poor versatility, and it is necessary to rely on high-quality hardware facilities, and the required cost is high.
Disclosure of Invention
Therefore, the present invention provides a roaming method for wlan in an attempt to solve the above technical problems.
According to an aspect of the present invention, there is provided a roaming method of a wireless local area network, adapted to be performed in a mobile terminal, the method including: when an event of starting or quitting a process is detected, judging whether a low-delay process exists in the currently running process; if the attribute exists, setting the service attribute of the wireless networking module in the mobile terminal as a low delay attribute, otherwise, setting the service attribute as a high delay attribute; and acquiring roaming parameters corresponding to the service attributes to realize roaming of the wireless local area network based on the roaming parameters, wherein the first roaming parameters corresponding to the high delay attributes are different from the second roaming parameters corresponding to the low delay attributes.
Optionally, the step of storing a data table in the mobile terminal, where the data table stores all running low-latency processes, and when an event of starting or exiting a process is detected, determining whether a low-latency process exists in a currently running process includes: judging whether the process started or exited currently is a low-delay process; if so, storing the information of the current starting process as a data item in a data table, or deleting the data item corresponding to the current quitting process from the data table; and if the data table is empty, determining that the low-delay process does not exist in the currently running process, otherwise, determining that the low-delay process exists in the currently running process.
Optionally, the mobile terminal further stores a configuration file, and the configuration file stores information of a low-latency process, wherein the step of determining whether the currently started or exited process is a low-latency process includes: acquiring information of a current starting or quitting process as target information; and if the target information is matched from the configuration file, judging that the process which is started or exited before is a low-delay process, otherwise, judging that the process which is started or exited currently is a high-delay process.
Optionally, the roaming parameters include a probe request frame transmission period, a highest RSSI threshold, a lowest RSSI threshold, an RSSI fluctuation range value, and an error rate threshold, where the probe request frame transmission period of the first roaming parameter is smaller than the probe request frame transmission period of the second roaming parameter, the error rate threshold of the first roaming parameter is smaller than the error rate threshold of the second roaming parameter, and the highest RSSI threshold of the first roaming parameter is greater than the highest RSSI threshold of the second roaming parameter.
Optionally, the step of implementing roaming of the wireless local area network based on the roaming parameter includes: acquiring the RSSI of all wireless local area networks and each network at the current position; acquiring the RSSI of the current connected wireless local area network as a first numerical value; judging whether the first value is lower than the highest RSSI threshold value; if the roaming number is not lower than the preset value, starting first roaming of the wireless local area network, and if the roaming number is not lower than the preset value, starting second roaming of the wireless local area network.
Optionally, the step of initiating the first roaming of the wireless local area network includes: determining the maximum RSSI in all wireless local area networks of the current position as a second numerical value; if the sum of the first numerical value and the RSSI fluctuation range value is smaller than a second numerical value, determining that the wireless local area corresponding to the second numerical value is a first target network; and switching the currently connected wireless local area network to the first target network.
Optionally, the step of initiating the second roaming of the wireless local area network includes: calculating the error rate of the current connection network as a third numerical value; if the third value is larger than the error rate threshold value, determining the maximum RSSI in all wireless local area networks of the current position as a fourth value; if the lowest RSSI threshold value and the difference between the first value and the RSSI fluctuation range value are both smaller than a fourth value, the wireless local area network corresponding to the fourth value is judged to be a second target network; and switching the currently connected wireless local area network to a second target network.
Optionally, before determining whether a low latency process exists in a currently running process, the roaming method for a wireless local area network provided by the present invention further includes the steps of: when the mobile terminal is started, the service attribute is set to be a high delay attribute.
Optionally, the low-delay process is a process sensitive to network delay, and the high-delay process is a process insensitive to network delay.
According to another aspect of the present invention, there is also provided a roaming apparatus for a wireless local area network, the apparatus including: the detection module is suitable for judging whether a low-delay process exists in the currently running process when an event of starting or quitting the process is detected; the service attribute determining module is suitable for setting the service attribute of the wireless networking module in the mobile terminal as the low delay attribute if the low delay process exists in the currently running process, and setting the service attribute as the high delay attribute if the low delay process does not exist; and the roaming module is suitable for acquiring roaming parameters corresponding to the service attributes so as to realize roaming of the wireless local area network based on the roaming parameters, wherein the first roaming parameters corresponding to the high delay attributes are different from the second roaming parameters corresponding to the low delay attributes.
According to still another aspect of the present invention, there is provided a mobile terminal including: at least one processor; and a memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, the program instructions comprising instructions for performing the above-described method.
According to still another aspect of the present invention, there is provided a readable storage medium storing program instructions, which, when read and executed by a mobile terminal, cause the mobile terminal to perform the above-mentioned method.
According to the roaming method of the wireless local area network, when the event of starting or quitting the process is detected, whether a low-delay process exists in the currently running process is judged, if yes, the current service attribute is set as the low-delay attribute, otherwise, the current service attribute is set as the high-delay attribute, and the roaming parameter corresponding to the current service attribute is obtained, so that the roaming of the wireless local area network is realized based on the roaming parameter. Therefore, the roaming method provided by the invention can realize WiFi roaming without independent control hardware, thereby reducing the influence of WiFi roaming on process operation on the premise of reducing cost and having strong universality.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which are indicative of various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to be within the scope of the claimed subject matter. The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description read in conjunction with the accompanying drawings. Throughout this disclosure, like reference numerals generally refer to like parts or elements.
Fig. 1 shows a schematic diagram of a roaming system 100 for a wireless local area network according to one embodiment of the invention;
FIG. 2 illustrates a block diagram of a mobile terminal 200 according to one embodiment of the present invention;
fig. 3 shows a flow diagram of a roaming method 300 for a wireless local area network according to an embodiment of the invention;
FIG. 4 illustrates a flow diagram of a method 400 of determining whether a low-latency process exists in a currently running process, according to one embodiment of the invention;
fig. 5 is a flow diagram illustrating a roaming method 500 for implementing a wlan based on roaming parameters according to an embodiment of the invention;
fig. 6 is a block diagram illustrating a roaming apparatus 600 of a wireless lan according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In order to solve the problems of poor universality and high required cost in the existing WiFi seamless roaming strategy, the present invention provides a roaming system of a wireless local area network, and fig. 1 shows a schematic diagram of a roaming system 100 of a wireless local area network according to an embodiment of the present invention.
As shown in fig. 1, the roaming system 100 of the wireless lan includes a mobile terminal 200, an AP110 and a wireless lan 120, where the AP110 is communicatively connected to the mobile terminal 200 and the wireless lan 120, respectively, for example, through a wired or wireless network connection. The APs 110 may be multiple (AP 1, AP2, … …, APN), the multiple APs 110 are located at different geographical locations, and the wlan 120 may be one or multiple (wlan 1, wlan 2, … …, wlan N) for covering the wlan in different area ranges. Wherein the AP1 is communicatively coupled to the wlan 1, the AP2 is communicatively coupled to the wlan 2, and so on, such that all APs 110 and 120 in the system are communicatively coupled.
The procedure of implementing wlan roaming by the wlan-based roaming system 100 includes: the mobile terminal 200 sets different types of roaming parameters corresponding to the service attributes of the wireless networking module. For example, a low delay attribute corresponds to a first roaming parameter and a high delay attribute corresponds to a second roaming parameter. The mobile terminal 200 determines whether to initiate roaming based on the set roaming parameter so as to be in communication connection with the target AP and to connect the wireless lan through the target AP.
In one embodiment, mobile terminal 200 is shown in fig. 2, fig. 2 is a block diagram of the structure of mobile terminal 200, and mobile terminal 200 may include a memory interface 202, one or more processors 204, and a peripheral interface 206.
The memory interface 202, the one or more processors 204, and/or the peripherals interface 206 can be discrete components or can be integrated in one or more integrated circuits. In the mobile terminal 200, the various elements may be coupled by one or more communication buses or signal lines. Sensors, devices, and subsystems can be coupled to peripheral interface 206 to facilitate a variety of functions.
For example, a motion sensor 210, a light sensor 212, and a distance sensor 214 may be coupled to the peripheral interface 206 to facilitate directional, lighting, and ranging functions. Other sensors 216 may also be coupled to the peripheral interface 206, such as a positioning system (e.g., a GPS receiver), a temperature sensor, a biometric sensor, or other sensing device, to facilitate related functions.
Camera subsystem 220 and optical sensor 222, which may be, for example, a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) optical sensor, may be used to facilitate implementation of camera functions such as recording photographs and video clips. Communication functions may be facilitated through one or more wireless communication subsystems 224, which may include radio frequency receivers and transmitters and/or optical (e.g., infrared) receivers and transmitters. The particular design and implementation of wireless communication subsystem 224 may depend on one or more communication networks supported by mobile terminal 200. For example, the mobile terminal 200 may include a network designed to support LTE, 3G, GSM, GPRS, EDGE, Wi-Fi or WiMax, and Bluetooth TM A communication subsystem 224 of the network.
The audio subsystem 226 may be coupled with a speaker 228 and a microphone 230 to facilitate voice-enabled functions, such as voice recognition, voice replication, digital recording, and telephony functions. The I/O subsystem 240 may include a touchscreen controller 242 and/or one or more other input controllers 244. The touch screen controller 242 may be coupled to a touch screen 246. For example, the touch screen 246 and touch screen controller 242 may detect contact and movement or pauses made therewith using any of a variety of touch sensing technologies, including but not limited to capacitive, resistive, infrared, and surface acoustic wave technologies. One or more other input controllers 244 can be coupled to other input/control devices 248, such as one or more buttons, rocker switches, thumbwheels, infrared ports, USB ports, and/or pointing devices such as styluses. The one or more buttons (not shown) may include up/down buttons for controlling the volume of the speaker 228 and/or the microphone 230.
The memory interface 202 may be coupled with a memory 250. The memory 250 may include high-speed random access memory and/or non-volatile memory, such as one or more magnetic disk storage devices, one or more optical storage devices, and/or flash memory (e.g., NAND, NOR). The memory 250 may store an operating system 272, such as an operating system like Android, iOS, or Windows Phone. The operating system 272 may include instructions for handling basic system services and for performing hardware dependent tasks. The memory 250 may also store programs 274. While the mobile device is running, the operating system 272 is loaded from memory 250 and executed by the processor 204. The program 274, when executed, is also loaded from the memory 250 and executed by the processor 204. The programs 274 run on top of the operating system and utilize the operating system and interfaces provided by the underlying hardware to implement various user-desired functions, such as instant messaging, web browsing, picture management, and the like. The programs 274 may be provided separately from the operating system or may be native to the operating system. In addition, the program 274 may also add a driver module to the operating system when installed in the mobile terminal 200.
In some embodiments, the mobile terminal 200 is configured to perform a roaming method 300 for wireless local area networks in accordance with the present invention. Among other things, one or more programs 274 of mobile terminal 200 include instructions for performing methods 300, 400, and 500 in accordance with the present invention.
The mobile terminal 200 shown in fig. 2 is only an example, and in practice, the mobile terminal for implementing the roaming method of the wireless local area network of the present invention may be any type of device, and the hardware configuration thereof may be the same as that of the mobile terminal 200 shown in fig. 2, or may be different from that of the mobile terminal 200 shown in fig. 2. In practice, the mobile terminal implementing the roaming method of the wlan of the present invention may add or delete hardware components of the mobile terminal 200 shown in fig. 2, and the present invention does not limit the specific hardware configuration of the mobile terminal.
Fig. 3 shows a flow chart of a roaming method 300 of a wireless local area network according to an embodiment of the invention, the method 300 being adapted to be executed in a mobile terminal 200 (e.g. the mobile terminal 200 shown in fig. 2). In one embodiment, the method 300 may be installed in the mobile terminal 200 in the form of software, or may be integrated in the operating system in the form of a plug-in, which is not limited by the present invention, and all manners of making the method 300 exist in the mobile terminal are within the scope of the present invention. Therefore, WiFi roaming is controlled based on software, which is equivalent to automatic deployment of a roaming strategy, so that hardware and different networking modes are not depended on, roaming cost is reduced, and universality of the roaming strategy is improved.
The invention divides the process running in the mobile terminal into two types, respectively: a low delay process that is sensitive to network delay and a high delay process that is not sensitive to network delay. Whether a process is sensitive to network delay or not means whether an application program corresponding to the process in the mobile terminal is sensitive to network delay or not, and a user of the mobile terminal can configure the process in a configuration file to determine whether a process is sensitive to network delay or not, and an initialized configuration file is also provided in the system.
Further, the current service attributes of the wireless networking module in the mobile terminal also include two types, which are respectively: low latency properties and high latency properties. The roaming parameters corresponding to the high delay attribute and the low delay attribute respectively comprise: a transmission probe request frame period T, a highest RSSI (signal strength indication) threshold (threshold to turn on roaming) a, a lowest RSSI threshold (lowest RSSI to allow handover during roaming) B, RSSI fluctuation range value C, and an error rate threshold D. Wherein, T is the period of the mobile terminal sending the probe request frame to the AP, and the error rate is the ratio of the number of erroneous symbols at the receiving end to the total number of symbols sent by the sending end.
Let the first roaming parameters corresponding to the high latency attribute be T1, a1, B, C, D1, and the second roaming parameters corresponding to the low latency attribute be T2, a2, B, C, D2, and the specific values of the roaming parameters may be set according to the actual application scenario, which is not limited in the present invention. For example, T1, A1, B1, C1, D1 can be 200ms, -60dbm, -95dbm, 5, 0.5%, respectively, T2, A2, B2, C2, D2 can be 500ms, -75dbm, -95dbm, 5, 2%, respectively.
It is noted that in one embodiment, the first roaming parameter corresponding to the high latency attribute is different from the second roaming parameter corresponding to the low latency attribute. For example, T1< T2, a1> a2, B1= B2, C1= C2, D1< D2 are set, that is, the transmission probe request frame period and the error rate threshold of the high latency attribute are reduced, and the threshold of the open roaming of the high latency attribute is increased. Conversely, the frame period and error rate threshold of the transmitted probe request of the low delay attribute are increased, and the highest RSSI threshold of the low delay attribute is decreased. Therefore, the range of the threshold value of the start roaming of the high delay attribute becomes larger, and the range of the threshold value of the start roaming of the low delay attribute becomes smaller, that is, the probability of the start roaming of the high delay attribute becomes larger, and the probability of the start roaming of the low delay attribute becomes smaller, so that the high delay process can be roamed as soon as possible without roaming the low delay process as much as possible.
From the above, the main ideas of the WiFi roaming method of the present invention are: for the low delay process, the roaming condition is improved, the roaming is avoided as much as possible, and for the high delay process, the roaming condition is reduced, and the roaming is carried out as soon as possible.
Therefore, the influence of roaming on the low-delay process can be effectively reduced, and in order to better operate the high-delay process, the current network is switched to the network with strong signals as soon as possible, so that the operation effect of the high-delay process can be improved, and the high-delay process is not sensitive to network delay, so that the operation of the process cannot be influenced in the roaming process.
It should be noted that the mobile terminal 200 stores the above configuration file, and the configuration file is configured by the user in advance and stored in the mobile terminal. The configuration file stores information of low-delay processes, and the process information only needs to be used for distinguishing each process, so that the specific content of the process information is not limited by the invention. For example, the process information may include a process name, a related parameter, and the like, wherein the process name may be an application name corresponding to the process, and the related parameter may include a command line parameter.
Taking the example of a sunflower remote control application, this is considered a low latency service and sets: the process name is the sunflower application name, sunlogic, whose command line parameters include-mod = remote _ plug, which when included in the command line indicates that the sunflower application is under remote control, i.e., is running.
The mobile terminal also stores a data table, and the data table stores all running low-delay process information. It is noted that the process information in the configuration file may be the same as or different from that in the data table, as long as the need to distinguish the processes is met. In one embodiment, the process information in the configuration file is set to be the same as the process information in the data table. The process information is described above and will not be described herein.
As shown in fig. 3, the method 300 includes steps S310 to S350.
When the mobile terminal is started, the service attribute of the wireless networking module in the mobile terminal is set as the high-latency attribute, and then step S310 is executed to detect an event of starting or exiting the process. In one embodiment, a process event connector may be employed to detect events that initiate or exit a process. The process event Connector may be selected according to an actual application scenario, which is not limited in the present invention, and for example, the process event Connector may be a Netlink Connector.
Specifically, a switch of the Netlink Connector is turned on first, and when the Netlink Connector monitors that a process is started and exited, a process number pid of the started or exited process is acquired. If the process is started, the process name and the related parameters may be obtained by accessing a process file, such as a/proc/pid/cmdline file, and the process parameters and the modification parameters are as described above, and are not described herein again.
When detecting the event of starting or exiting the process, step S320 is executed to determine whether a low-latency process exists in the currently running process.
According to an embodiment of the present invention, an example of the critical pseudo code for determining whether a low-latency process exists in a currently running process when detecting an event for starting or exiting a process is as follows:
v/Process event Notification to the receiving Kernel
switch (progress event)
{
case PROC_EVENT_FORK:
case PROC_EVENT_EXEC:
Starting an event by a process to acquire pid;
accessing/proc/pid/cmdline to obtain a process name and a starting parameter;
if (pid belongs to one of the configured low latency services)
{
Add the pid to the list;
modifying the current service attribute into low-delay service;
if (the current business attribute changes)
{
A notification roaming setting module;
}
}
break;
case PROC_EVENT_EXIT:
the process quits the event and acquires the pid;
if (pid is in the list)
{
Delete pid from the list;
if (empty list)
{
Modifying
The current service attribute is a high-delay service;
if (current service attribute changes)
{
A roaming setting notification module;
}
}
}
break;
}
the complete working flow of step S320 is shown in fig. 4, and fig. 4 shows a flow chart of a method 400 for determining whether a low-latency process exists in a currently running process according to an embodiment of the present invention, where the method 400 is suitable for being executed in a mobile terminal 200 (e.g., the mobile terminal 200 shown in fig. 2). As shown in fig. 4, the method 400 includes steps S410 to S450.
Firstly, step S410 is executed, whether the currently started or exited process is a low-latency process is determined, if yes, the data table needs to be updated, step S420 is executed, if no, step S410 is continuously executed, and the service attribute of the wireless networking module in the mobile terminal is not changed.
In one embodiment, step S410 includes: and acquiring information of the current starting or quitting process as target information, if the target information is matched from the configuration file, judging the process which is started or quitted before is a low-delay process, and otherwise, judging the process which is started or quitted at present is a high-delay process.
In step S420, the information of the currently started process is stored in the data table as a data item, or the data item corresponding to the currently exited process is deleted from the data table, so as to obtain an updated data table.
After the updated data table is obtained, step S430 is continuously executed, whether the data table is empty is detected, if not, step S440 is executed, it is determined that a low-latency process exists in the currently running process, otherwise, step S450 is executed, and it is determined that a low-latency process does not exist in the currently running process.
After determining that there is a low-latency process in the currently running processes based on the method 400, the method continues to perform step S330, and sets the service attribute to be the low-latency attribute. If there is no low-delay process in the currently running processes, step S340 is executed to set the service attribute as a high-delay attribute.
After determining the service attribute of the wireless networking module in the mobile terminal, step S350 is continuously executed to obtain the roaming parameter corresponding to the service attribute, so as to implement roaming of the wireless local area network based on the roaming parameter.
Fig. 5 is a flowchart of a roaming method 500 for implementing wlan based on roaming parameters according to an embodiment of the present invention. The method 500 is also suitable for execution in a mobile terminal 200, such as the mobile terminal 200 shown in fig. 2. As shown in fig. 5, the method 500 includes steps S501 to S510.
First, step S501 is executed to acquire the RSSI of the currently connected wlan as a first value. The RSSI of the currently connected wlan is obtained as the prior art, and the present invention is not limited thereto, but is within the scope of the present invention. For example, with T as an interval period, a probe request frame is sent to the AP110 currently connected to the communication, so as to acquire the WiFi network currently connected (also understood as the current location) and its RSSI. Or, acquiring the currently connected WiFi network and the RSSI thereof according to the received beacon frame sent by the AP.
Then, step S502 is executed to determine whether the first value is lower than the highest RSSI threshold, if so, it indicates that the current network signal strength value is lower than the set highest RSSI threshold, at this time, the first roaming of the wireless local area network is started, step S503 is continuously executed, if not lower than (i.e., greater than or equal to), the second roaming of the wireless local area network is started, and step S506 is continuously executed.
The first roaming is to switch the current connection network to the network with the maximum signal intensity in all the wireless local area networks at the current position. And second roaming, namely switching the current connection network to the network with the maximum signal intensity except the current connection network in the current position and the error rate lower than the error rate threshold value when the current connection network is the network with the maximum signal intensity.
In step S503, the RSSI values of all the wireless local area networks and each network at the current location are obtained, and the maximum RSSI in all the wireless local area networks at the current location is determined as the second numerical value.
After determining the maximum RSSI in all the wireless local area networks at the current location, continuing to execute step S504, determining whether the sum of the first numerical value and the RSSI fluctuation range value is smaller than the second numerical value, if so, executing step S505, determining that the wireless local area corresponding to the second numerical value is the first target network, and switching the currently connected wireless local area network to the first target network, specifically, sending an association request to the AP of the first target network, and simultaneously sending a request for canceling the association to the AP of the currently connected network, disconnecting the connection with the current network, and connecting with the first target network. If not, that is, if the sum of the first value and the RSSI fluctuation range is greater than the second value, step S506 is executed.
Therefore, based on steps S502 to S505, the current connection network is switched to the network with the maximum signal strength among all the wireless local area networks in the current location, so as to reduce the influence of roaming on the current running process as much as possible.
And when the signal intensity value of the current network is higher than the set highest RSSI threshold value, or the sum of the first numerical value and the RSSI fluctuation range value is higher than the maximum RSSI in all the wireless local area networks at the current position, the signal intensity of the current access network is high. However, considering that in a public network, if one network is very congested, the coarseness of the network may be relatively high, and switching to another network may be considered even if the signal strength of the network is slightly worse than that of the current network. Therefore, in order to improve the network effect of the wireless lan, it is necessary to determine the error rate of the network, and step S506 is continuously performed to calculate the error rate of the currently connected network as the third numerical value.
After the error rate of the current connection network is calculated, step S507 is executed to determine whether the third value is greater than the error rate threshold, if so, step S508 is executed, and if not, step S501 is executed.
In step S508, the maximum RSSI in all the wireless local area networks of the current location is determined as the fourth value, and step S509 is continuously performed to determine whether the lowest RSSI threshold and the difference between the first value and the RSSI fluctuation range value are both smaller than the fourth value, if yes, step S510 is performed, otherwise, step S501 is performed.
In step S510, the wlan corresponding to the fourth value is determined as the second target network, and the currently connected wlan is switched to the second target network. Specifically, an association request is sent to the AP of the second target network, and a request for disassociation is sent to the AP currently connected to the network, so that the current network is disconnected and the second target network is connected.
Therefore, based on steps S506 to S510, the network with high signal strength but high error rate (i.e. high error rate) connected currently is switched to the wireless lan with relatively high signal strength and low error rate, and the network is less crowded than the network connected previously, and the error rate is relatively low, so that the network effect of the wireless lan can be improved, and the operation effect of the current running process can be improved.
Therefore, the corresponding roaming parameters are selected according to different service attributes, and the roaming of the wireless local area network is realized based on the corresponding roaming parameters.
As can be seen from the above, according to the roaming method of the wireless local area network of the present invention, the roaming parameters are dynamically adjusted according to the scene of the current running process, so as to achieve that the roaming condition is improved for the low-delay process, the roaming is not performed as much as possible, while the roaming condition is reduced for the high-delay process, and the roaming is performed as soon as possible, so as to reduce the influence of the roaming on the current running process.
In addition, the roaming method provided by the invention can realize WiFi roaming without additional control hardware, thereby reducing the influence of WiFi roaming on process operation on the premise of reducing cost. And the method is a universal roaming method, so the method has strong universality.
Fig. 6 is a block diagram illustrating a roaming apparatus 600 of a wireless lan according to an embodiment of the present invention. The roaming apparatus 600 of the wireless local area network includes a detection module 610, a service attribute determination module 620 and a roaming module 630, which are coupled in sequence.
The detection module 610 is adapted to determine whether a low-latency process exists in the currently running processes when an event to start or exit the processes is detected.
The service attribute determining module 620 is adapted to set the service attribute of the wireless networking module in the mobile terminal to the low delay attribute if the low delay process exists in the currently running process, and to set the service attribute to the high delay attribute if the low delay process does not exist. The roaming module 630 is adapted to obtain a roaming parameter corresponding to the service attribute, so as to implement roaming of the wireless local area network based on the roaming parameter.
It should be noted that the operation principle of the roaming apparatus 600 of the wlan is similar to that of the roaming method 300 of the wlan, and reference may be made to the description of the roaming method 300 of the wlan for relevant points, which is not described herein again.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions thereof, may take the form of program code (i.e., instructions) embodied in tangible media, such as removable hard drives, U.S. disks, floppy disks, CD-ROMs, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the computing device will generally include a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code; the processor is configured to perform the roaming method of the wireless local area network of the present invention according to instructions in the program code stored in the memory.
By way of example, and not limitation, readable media may comprise readable storage media and communication media. Readable storage media store information such as computer readable instructions, data structures, program modules or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of readable media.
In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with examples of this invention. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
It should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed to reflect the intent: that the invention as claimed requires more features than are expressly recited in each claim. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in a device as described in this embodiment or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into multiple sub-modules.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments.
Furthermore, some of the described embodiments are described herein as a method or combination of method elements that can be performed by a processor of a computer system or by other means of performing the described functions. A processor having the necessary instructions for carrying out the method or method elements thus forms a means for carrying out the method or method elements. Further, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is used to implement the functions performed by the elements for the purpose of carrying out the invention.
As used herein, unless otherwise specified the use of the ordinal adjectives "first", "second", "third", etc., to describe a common object, merely indicate that different instances of like objects are being referred to, and are not intended to imply that the objects so described must be in a given sequence, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of this description, will appreciate that other embodiments can be devised which do not depart from the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. The present invention has been disclosed in an illustrative rather than a restrictive sense, and the scope of the present invention is defined by the appended claims.

Claims (7)

1. A roaming method of a wireless local area network, adapted to be executed in a mobile terminal having a data table stored therein, the data table storing all running low-latency processes therein, the method comprising:
when an event of starting or quitting a process is detected, judging whether a low-delay process exists in the currently running process;
if the attribute exists, setting the service attribute of a wireless networking module in the mobile terminal as a low delay attribute, otherwise, setting the service attribute as a high delay attribute;
acquiring roaming parameters corresponding to the service attributes to realize roaming of a wireless local area network based on the roaming parameters, wherein the roaming parameters comprise a frame period of a sending detection request, a highest RSSI threshold value, a lowest RSSI threshold value, an RSSI fluctuation range value and an error rate threshold value, and a first roaming parameter corresponding to a high delay attribute is different from a second roaming parameter corresponding to a low delay attribute;
when detecting an event for starting or exiting a process, the step of judging whether a low-delay process exists in the currently running process comprises the following steps:
judging whether the currently started or exited process is a low-delay process;
if so, storing the information of the current starting process as a data item in the data table, or deleting the data item corresponding to the current quitting process from the data table;
if the data table is empty, determining that a low-delay process does not exist in the currently running process, otherwise, determining that a low-delay process exists in the currently running process;
wherein the roaming of the wireless local area network based on the roaming parameter comprises:
acquiring the RSSI of the current connected wireless local area network as a first numerical value;
judging whether the first numerical value is lower than the highest RSSI threshold value, if so, acquiring signal strength values RSSI of all wireless local area networks and each network at the current position, and determining the maximum RSSI in all the wireless local area networks at the current position as a second numerical value;
judging whether the sum of the first numerical value and the RSSI fluctuation range value is smaller than a second numerical value, if so, judging that the wireless local area corresponding to the second numerical value is a first target network, and switching the currently connected wireless local area network to the first target network to realize the switching of the currently connected network to the network with the maximum signal intensity in all the wireless local area networks at the current position;
if the first value is not lower than the highest RSSI threshold value or the sum of the first value and the RSSI fluctuation range value is larger than a second value, calculating the error rate of the current connection network as a third value;
judging whether the third numerical value is larger than an error rate threshold value, if so, determining the maximum RSSI in all wireless local area networks at the current position as a fourth numerical value, and if not, acquiring the RSSI of the currently connected wireless local area network as a first numerical value;
and judging whether the lowest RSSI threshold value and the difference between the first numerical value and the RSSI fluctuation range value are both smaller than a fourth numerical value, if so, judging that the wireless local area network corresponding to the fourth numerical value is a second target network, and switching the currently connected wireless local area network to the second target network so as to realize switching the currently connected network with high signal strength and high error rate to the wireless local area network with relatively high signal strength and low error rate.
2. The method as claimed in claim 1, wherein a configuration file is further stored in the mobile terminal, and the configuration file stores information of low latency processes, wherein the step of determining whether the currently started or exited process is a low latency process comprises:
acquiring information of a current starting or quitting process as target information;
and if the target information is matched from the configuration file, judging that the currently started or exited process is a low-delay process, otherwise, judging that the currently started or exited process is a high-delay process.
3. The method of claim 1 or 2, wherein the transmit probe request frame period of the first roaming parameter is less than the transmit probe request frame period of the second roaming parameter, the error rate threshold of the first roaming parameter is less than the error rate threshold of the second roaming parameter, and the highest RSSI threshold of the first roaming parameter is greater than the highest RSSI threshold of the second roaming parameter.
4. The method of claim 1 or 2, further comprising, before determining whether there is a low-latency process among the currently running processes, the steps of:
and when the mobile terminal is started, setting the service attribute as a high delay attribute.
5. A roaming apparatus of a wireless local area network, the apparatus comprising:
the detection module is suitable for judging whether a low-delay process exists in the currently running process or not when an event of starting or quitting the process is detected;
the service attribute determining module is suitable for setting the service attribute of the wireless networking module in the mobile terminal as a low delay attribute if a low delay process exists in the current running process, and setting the service attribute as a high delay attribute if the low delay process does not exist;
the roaming module is suitable for acquiring roaming parameters corresponding to the service attributes so as to realize roaming of the wireless local area network based on the roaming parameters, wherein the roaming parameters comprise a frame period of a sending detection request, a highest RSSI threshold value, a lowest RSSI threshold value, an RSSI fluctuation range value and an error rate threshold value, and a first roaming parameter corresponding to the high delay attribute is different from a second roaming parameter corresponding to the low delay attribute;
wherein the roaming module implementing roaming of the wireless local area network based on the roaming parameter comprises: acquiring the RSSI of the current connected wireless local area network as a first numerical value; judging whether the first numerical value is lower than the highest RSSI threshold value, if so, acquiring signal strength values RSSI of all wireless local area networks and each network at the current position, and determining the maximum RSSI in all the wireless local area networks at the current position as a second numerical value; judging whether the sum of the first numerical value and the RSSI fluctuation range value is smaller than a second numerical value, if so, judging that the wireless local area corresponding to the second numerical value is a first target network, and switching the currently connected wireless local area network to the first target network to realize that the currently connected network is switched to a network with the maximum signal intensity in all the wireless local area networks at the current position; if the first value is not lower than the highest RSSI threshold value or the sum of the first value and the RSSI fluctuation range value is larger than a second value, calculating the error rate of the current connection network as a third value; judging whether the third numerical value is larger than an error rate threshold value, if so, determining the maximum RSSI in all wireless local area networks at the current position as a fourth numerical value, and if not, acquiring the RSSI of the currently connected wireless local area network as a first numerical value; and judging whether the lowest RSSI threshold value and the difference between the first numerical value and the RSSI fluctuation range value are both smaller than a fourth numerical value, if so, judging that the wireless local area network corresponding to the fourth numerical value is a second target network, and switching the currently connected wireless local area network to the second target network so as to realize switching the currently connected network with high signal strength and high error rate to the wireless local area network with relatively high signal strength and low error rate.
6. A mobile terminal, comprising:
at least one processor; and
a memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, the program instructions comprising instructions for performing the method of any of claims 1-4.
7. A readable storage medium storing program instructions that, when read and executed by a mobile terminal, cause the mobile terminal to perform the method of any one of claims 1-4.
CN202210700904.XA 2022-06-20 2022-06-20 Roaming method and device of wireless local area network, mobile terminal and readable storage medium Active CN114828129B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210700904.XA CN114828129B (en) 2022-06-20 2022-06-20 Roaming method and device of wireless local area network, mobile terminal and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210700904.XA CN114828129B (en) 2022-06-20 2022-06-20 Roaming method and device of wireless local area network, mobile terminal and readable storage medium

Publications (2)

Publication Number Publication Date
CN114828129A CN114828129A (en) 2022-07-29
CN114828129B true CN114828129B (en) 2022-09-30

Family

ID=82520258

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210700904.XA Active CN114828129B (en) 2022-06-20 2022-06-20 Roaming method and device of wireless local area network, mobile terminal and readable storage medium

Country Status (1)

Country Link
CN (1) CN114828129B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113543282A (en) * 2020-04-13 2021-10-22 杭州萤石软件有限公司 Wireless roaming method and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9137727B2 (en) * 2012-03-30 2015-09-15 Hewlett-Packard Development Company, L.P. Controlled client roaming
US9756543B2 (en) * 2013-03-01 2017-09-05 Apple Inc. Application-based radio-access technology switching
CN108834223B (en) * 2018-06-22 2020-12-08 中国联合网络通信集团有限公司 Method for switching WiFi frequency band and electronic equipment
CN109089261B (en) * 2018-10-18 2020-12-18 Oppo广东移动通信有限公司 Method, apparatus, computer device and storage medium for wireless roaming triggering

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113543282A (en) * 2020-04-13 2021-10-22 杭州萤石软件有限公司 Wireless roaming method and system

Also Published As

Publication number Publication date
CN114828129A (en) 2022-07-29

Similar Documents

Publication Publication Date Title
US10314098B2 (en) Method and apparatus for connecting short-range wireless communication in terminal
US20180302792A1 (en) Network connection method and apparatus, and computer storage medium
WO2021077267A1 (en) Cell reselection method and apparatus, and communication device
CN106817731B (en) Network switching method of terminal and terminal equipment
US20180359663A1 (en) Apparatus and method for communicating voice data in a wireless network
US10348952B2 (en) Using bluetooth low energy for wireless LAN access point detection notification
US20170272502A1 (en) Method, Mobile Device and System for Transmitting Files
US20230224992A1 (en) Inter-system ping-pong suppression method, apparatus, terminal and storage medium
TWI486084B (en) Wireless connection point and wireless mobile device connection control method
CN111683275B (en) Screen projection method, screen projection system and computer equipment
US20170201936A1 (en) Method and Device for Controlling Network Connection
CN108337696B (en) Method and device for processing SRVCC exception, storage medium and electronic equipment
CN109005574B (en) Cell selection method, mobile terminal and computer readable storage medium
WO2015123885A1 (en) Method for ensuring continuous reception of a service in user equipment and in wireless network
KR102148715B1 (en) Method and apparatus for connecting to network in electronic device
US20170289875A1 (en) Method and device for detecting neighboring cell in cell reselection process
US11638327B2 (en) Methods and systems for switching between service provider networks
CN106231640B (en) Wireless access point switching method and device
US20180110080A1 (en) Mobile phone wifi accelerator and method
CN112738745A (en) Method for controlling network connection and related product
CN110602707A (en) Method and terminal for connecting wireless network
CN114828129B (en) Roaming method and device of wireless local area network, mobile terminal and readable storage medium
US11134429B2 (en) Method and apparatus for controlling terminal access
KR102305063B1 (en) Roaming handoff method, central control device, and station
US20150072662A1 (en) Resumption of data connectivity between mobile devices via switching application

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