CN114885390A - Wireless roaming method, device, electronic equipment and readable storage medium - Google Patents

Wireless roaming method, device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN114885390A
CN114885390A CN202210623180.3A CN202210623180A CN114885390A CN 114885390 A CN114885390 A CN 114885390A CN 202210623180 A CN202210623180 A CN 202210623180A CN 114885390 A CN114885390 A CN 114885390A
Authority
CN
China
Prior art keywords
access point
virtual client
data link
electronic device
data
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.)
Pending
Application number
CN202210623180.3A
Other languages
Chinese (zh)
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.)
TP Link Technologies Co Ltd
Original Assignee
TP Link Technologies 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 TP Link Technologies Co Ltd filed Critical TP Link Technologies Co Ltd
Priority to CN202210623180.3A priority Critical patent/CN114885390A/en
Publication of CN114885390A publication Critical patent/CN114885390A/en
Pending legal-status Critical Current

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
    • H04W36/18Performing reselection for specific purposes for allowing seamless reselection, e.g. soft reselection
    • 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

Abstract

The present application relates to the field of wireless roaming, and in particular, to a wireless roaming method, apparatus, electronic device and readable storage medium. The method comprises the following steps: when the first virtual client side is in data communication with the first access point, determining a data link between the second virtual client side and the second access point; and the electronic equipment performs data communication with the second access point according to the data link between the second virtual client and the second access point. According to the method and the device, when the first virtual client side is in data communication with the first access point, the data link between the second virtual client side and the second access point is determined, the electronic equipment is in data communication with the second access point, and the data link between the electronic equipment and the second access point is determined without disconnecting the electronic equipment and the first access point, so that the roaming time is shortened, and the internet surfing experience of a user is improved.

Description

Wireless roaming method, device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of wireless roaming, and in particular, to a wireless roaming method, apparatus, electronic device, and readable storage medium.
Background
The existing roaming method of the wireless equipment comprises the following steps: 1. the client device disconnects with a first Access Point (AP 1), 2, the client device switches channels, and 3, the client device wirelessly connects with a second Access Point AP2 again.
The wireless roaming method needs a long time, and it takes about 11 milliseconds for the client device to disconnect from the first access point in step 1, about 11 milliseconds for the client device to switch channels in step 2, and about 33 milliseconds for the client device to wirelessly connect to the second access point again in step 3, which amounts to about 55 milliseconds of roaming time, and thus the user's internet experience is seriously affected.
Disclosure of Invention
The embodiment of the application provides a wireless roaming method and device, an electronic device and a readable storage medium, which can reduce roaming time and improve internet experience of a user.
In a first aspect, an embodiment of the present application provides a wireless roaming method, which is applied to an electronic device, where the electronic device includes a first virtual client and a second virtual client, and the method includes:
determining a data link between the second virtual client and a second access point when the first virtual client is in data communication with the first access point;
and the electronic equipment performs data communication with the second access point according to the data link between the second virtual client and the second access point.
In a possible implementation manner of the first aspect, the determining a data link between the second virtual client and the second access point includes:
establishing a data link between the second virtual client and a target access point, wherein the target access point is an access point which is not associated with the electronic equipment;
and determining the data link between the second virtual client and the second access point according to the data link between the second virtual client and the target access point, wherein the second access point is one of the target access points.
Wherein the establishing of the data link between the second virtual client and the target access point includes:
packaging the association message of the second virtual client and the target access point to obtain a packaged message;
and transmitting the encapsulation message through a data link between the first virtual client and the first access point and a data transmission network between the first access point and the target access point, and establishing a data link between the second virtual client and the target access point.
Wherein, when a channel when the electronic device communicates with the first access point is the same as a channel when the electronic device communicates with a second access point, the electronic device performs data communication with the second access point according to a data link between the second virtual client and the second access point, and the method includes:
enabling a data link of the second virtual client with the second access point;
after enabling the data link of the second virtual client with the second access point, disabling the data link of the first virtual client with the first access point.
When a channel of the electronic device when communicating with a first access point is different from a channel of the electronic device when communicating with a second access point, the electronic device performs data communication with the second access point according to a data link between the second virtual client and the second access point, including:
deactivating a data link of the first virtual client with the first access point;
enabling the data link of the second virtual client with the second access point after disabling the data link of the first virtual client with the first access point.
Wherein the method further comprises:
before starting a data link between the second virtual client and the second access point, acquiring a first data message sent by the electronic equipment, and storing the first data message;
after enabling a data link between the second virtual client and the second access point, sending the first data packet to the second access point.
Wherein the method further comprises:
before a data link between the second virtual client and the second access point is enabled, storing a second data message through the second access point, wherein the second data message is a data message sent by the first access point to the electronic device;
and after the data link between the second virtual client and the second access point is enabled, receiving the second data message sent by the second access point.
In a second aspect, an embodiment of the present application provides a wireless roaming apparatus, which is applied to an electronic device, where the electronic device includes a first virtual client and a second virtual client, and the apparatus includes:
a determining module, configured to determine a data link between the second virtual client and a second access point when the first virtual client performs data communication with a first access point;
and the switching module is used for carrying out data communication between the electronic equipment and the second access point according to the data link between the second virtual client and the second access point.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor, when executing the computer program, implements the wireless roaming method according to any one of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the wireless roaming method according to any one of the first aspect.
Compared with the prior art, the embodiment of the application has the advantages that: when the first virtual client side is in data communication with the first access point, determining a data link between the second virtual client side and the second access point; and the electronic equipment performs data communication with the second access point according to the data link between the second virtual client and the second access point. According to the method and the device, when the first virtual client side is in data communication with the first access point, the data link between the second virtual client side and the second access point is determined, the electronic equipment is in data communication with the second access point, and the data link between the electronic equipment and the second access point is determined without disconnecting the electronic equipment and the first access point, so that the roaming time is shortened, and the internet surfing experience of a user is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a wireless roaming method according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a wireless roaming method according to an embodiment of the present application;
fig. 3 is a schematic flow chart of a method for determining a data link between a second virtual client and a second access point according to an embodiment of the present application;
fig. 4 is a schematic flow chart of a method for establishing a data link between a second virtual client and a target access point according to an embodiment of the present application;
fig. 5 is a schematic flow chart of a method for an electronic device to communicate data with a second access point according to an embodiment of the present application;
fig. 6 is a schematic flow chart of a method for an electronic device to communicate data with a second access point according to an embodiment of the present application;
fig. 7 is a schematic flow chart of a method for ensuring that data is not lost during roaming according to an embodiment of the present application;
fig. 8 is a schematic flow chart of another method for ensuring that data is not lost during roaming according to the embodiment of the present application;
fig. 9 is a schematic structural diagram of a wireless roaming device according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail, and in other instances, specific technical details may be mutually referenced in various embodiments, and a specific system not described in one embodiment may be referenced in other embodiments.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Reference throughout this specification to "one embodiment of the present application" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in other embodiments," "an embodiment of the present application," "other embodiments of the present application," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather mean "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
The existing roaming method of the wireless equipment comprises the following steps: 1. the client device disconnects with a first access point (AP 1), 2, the client device switches channels, and 3, the client device wirelessly connects with a second access point AP2 again.
The wireless roaming method needs a long time, and it takes about 11 milliseconds for the client device to disconnect from the first access point in step 1, about 11 milliseconds for the client device to switch channels in step 2, and about 33 milliseconds for the client device to wirelessly connect to the second access point again in step 3, which amounts to about 55 milliseconds of roaming time, and thus the user's internet experience is seriously affected.
In order to solve the above defects, the inventive concept of the present application is:
when the client device performs data communication with the first access point, a data link between the client device and the second access point is established in advance, the data communication between the client device and the second access point is realized by using the data link between the client device and the second access point which is established in advance at a proper time, and the data link between the client device and the second access point is not established after the client device is disconnected from the first access point, so that the roaming time is reduced, and the internet experience of a user is improved.
In order to explain the technical means of the present application, the following description will be given by way of specific examples.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of a wireless roaming method according to an embodiment of the present application, and only a portion related to the present application is shown for convenience of description. The application scenario includes: an access point and an electronic device 300.
The access point, i.e. the wireless access point, is an access point of a wireless network, commonly called a "hot spot", and is equivalent to a bridge connected with a wire network and a wireless network, and is mainly used for connecting the wireless network electronic devices 300 together and then connecting the wireless network into an ethernet, thereby achieving the purpose of wireless coverage of the network. One access point 200 can be connected to 255 electronic devices 300 at the maximum. The access point of the embodiment of the present application includes a first access point 201 and a second access point 202.
The electronic device 300 includes, but is not limited to, a mobile phone, a tablet computer, a wearable device, an in-vehicle device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), and the like, and the embodiment of the present application does not limit the specific type of the electronic device.
When the electronic device 300 performs data communication with the first access point 201, the first access point 201 realizes the internet access function, when the electronic device 300 finds that the second access point 202 supports wireless disassociation, a data link with the second access point 202 is established in advance, and the data link between the electronic device 300 and the second access point 202 is enabled to perform data communication at an appropriate time, thereby completing wireless roaming.
The wireless disassociation in the embodiment of the present application refers to a roaming manner in which the electronic device establishes a data link with the access point in advance without performing data communication.
In this embodiment, the electronic device may pre-establish the data link between the electronic device 300 and the second access point 202 by performing authentication interaction, association interaction, and four-way handshake interaction with the second access point to perform key agreement.
In an embodiment of the present application, an electronic device 300 is used to implement a roaming method of the present application, and please refer to fig. 2 for a specific roaming method, and fig. 2 is a schematic flowchart of a wireless roaming method provided in the embodiment of the present application. The execution subject of the method in fig. 2 may be the electronic device 300 in fig. 1. As shown in fig. 2, the method includes: s201 to S202.
S201, when the first virtual client side and the first access point carry out data communication, the electronic equipment determines a data link between the second virtual client side and the second access point.
Specifically, in this embodiment of the application, the first virtual client and the second virtual client are virtual clients configured for the electronic device, and the virtual clients are used for implementing the same function as the electronic device. In the embodiment of the present application, an electronic device is configured with virtual clients with the same frequency, in other embodiments, the electronic device is configured with a plurality of virtual clients with the same frequency, each virtual client is used for associating with one access point, and the number of the virtual clients is not limited in the embodiment of the present application.
In the embodiment of the application, the electronic device configures a plurality of virtual clients with the same frequency, so that the situation of data packet loss can not occur when the plurality of virtual clients roam in the same frequency band, and the time delay is reduced.
In this embodiment, when the electronic device performs data communication with the first access point at the first virtual client, the electronic device is connected to the wireless network through a data link established with the first access point. In the embodiment of the present application, please refer to fig. 3 for a method for determining a data link between a second virtual client and a second access point, where fig. 3 is a schematic flowchart of the method for determining a data link between a second virtual client and a second access point according to the embodiment of the present application. The execution subject of the method in fig. 3 may be the electronic device 300 in fig. 1. As shown in fig. 3, the method includes: s301 to S302.
S301, the electronic equipment establishes a data link between the second virtual client and the target access point.
Specifically, the target access point is an access point that is not associated with the electronic device. The number of target access points is not limited in the embodiments of the present application.
In the embodiment of the application, when the first virtual client performs data communication with the first access point, the electronic device establishes a data link with the target access point through the second virtual client in advance.
Illustratively, when only a single target access point exists in the network, a data link with the single target access point is established in advance through the second virtual client.
When there are multiple target access points in the network, for example: target access point 1, target access point 2 and target access point 3, in which case the electronic device configures a plurality of virtual clients, for example: the electronic equipment comprises a virtual client 1, a virtual client 2 and a virtual client 3, wherein the electronic equipment can establish a data link with a target access point 1 through the virtual client 1 in advance, establish a data link with the target access point 2 through the virtual client 2 and establish a data link with the target access point 3 through the virtual client 3. Of course, the virtual client 1 may also establish a data link with any one of the target access points 2 or 3, and the embodiment of the present application does not limit that a specific virtual client establishes a data link with a specific target access point.
In an embodiment of the present application, please refer to fig. 4 for a method for an electronic device to establish a data link between a second virtual client and a target access point, where fig. 4 is a schematic flowchart of a method for establishing a data link between a second virtual client and a target access point according to an embodiment of the present application. The execution subject of the method in fig. 4 may be the electronic device 300 in fig. 1. As shown in fig. 4, the method includes: s401 to S402.
S401, the electronic equipment encapsulates the association message of the second virtual client and the target access point to obtain an encapsulation message.
Specifically, in the embodiment of the present application, an association packet between the second virtual client and the target access point is encapsulated by a private protocol, where the association packet includes: the system comprises a detection request message Probe Rsp, an identity authentication message Auth, an association request message Assoc Req, a secret Key message EAPOL-Key and the like.
S402, the electronic device transmits the encapsulation message through a data link between the first virtual client and the first access point and a data transmission network between the first access point and the target access point, and establishes a data link between the second virtual client and the target access point.
Specifically, in the embodiment of the present application, a data transmission network between the first access point and the target access point, that is, a backbone network for transmitting data between the access point and the target access point, where the backbone network is a large transmission network, and is used to connect to a small transmission network and transmit data.
In the embodiment of the application, the electronic device sends the encapsulation message to the target access point through the data link between the first virtual client and the first access point and the backbone networks of the first access point and the target access point, the target access point receives the encapsulation message and sends the feedback message agreeing to be associated to the electronic device through the backbone networks of the first access point and the target access point and the data link between the first virtual client and the first access point, so that message interaction is completed, and the data link between the second virtual client and the target access point can be established.
S302, the electronic device determines a data link between the second virtual client and the second access point according to the data link between the second virtual client and the target access point.
Specifically, the second access point is one of the target access points.
In this embodiment of the present application, the data link between the second virtual client and the second access point may be determined according to the parameter of the data link between the second virtual client and the target access point. Wherein, the parameters of the data link include: data quality of the data link, throughput of the number link, reliability of the data link, signal strength, etc.
In this embodiment of the present application, the data link between the second virtual client and the second access point may be determined according to any parameter of the parameters of the data link, and the signal strength is exemplified in this embodiment of the present application.
For example, when the target access point is single, when the signal strength of the electronic device and the target access point is greater than the signal strength of the electronic device and the first access point, the data link between the second virtual client and the target access point is determined as the data link between the second virtual client and the second access point.
For example, when the number of the target access points is multiple, when the signal strength of the electronic device and one of the multiple target access points is greater than the signal strength of the electronic device and the first access point, the data link between the second virtual client and the one of the multiple target access points is determined as the data link between the second virtual client and the second access point.
S202, the electronic equipment performs data communication with the second access point according to the data link between the second virtual client and the second access point.
Specifically, in order to reduce the roaming switching time in the embodiment of the present application, when a channel when the electronic device communicates with the first access point is the same as a channel when the electronic device communicates with the second access point, referring to fig. 5, a method for the electronic device to perform data communication with the second access point according to a data link between the second virtual client and the second access point is provided, and fig. 5 is a schematic flowchart of a method for the electronic device to perform data communication with the second access point according to the embodiment of the present application. The execution subject of the method in fig. 5 may be the electronic device 300 in fig. 1. As shown in fig. 5, the method includes: s501 to S502.
S501, enabling a data link between a second virtual client and a second access point by the electronic equipment.
Specifically, in order to reduce the roaming time, the embodiment of the present application defines a sequence of enabling the data link between the second virtual client and the second access point and disabling the data link between the first virtual client and the first access point of the electronic device.
In the embodiment of the application, the data link between the second virtual client and the second access point is started first, and then the data link between the first virtual client and the first access point is stopped.
For example, please refer to table 1, where table 1 lists the time delay of receiving a message when the roaming method of the embodiment of the present application and the existing roaming method roam.
In table 1, the co-channel represents a channel when the electronic device communicates with the first access point, and is the same as a channel when the electronic device communicates with the second access point. When roaming is performed, the time delay for receiving the message is in the range of 0 to 4ms, and in the conventional roaming method, when the channel is the same, the time delay for receiving the message is in the range of 42 to 53ms, so that it can be known that the time delay for receiving the message by the roaming method of the embodiment of the present application is far less than the time delay for receiving the message by the conventional roaming method, and therefore the roaming time consumption of the roaming method of the embodiment of the present application is far less than the roaming time consumption of the conventional roaming method, and the internet experience of the user is improved.
Figure BDA0003677662270000101
TABLE 1
S502, after the electronic device starts the data link between the second virtual client and the second access point, the electronic device stops the data link between the first virtual client and the first access point.
In this embodiment of the present application, in order to reduce the time consumption for switching the channel too much, when a channel when the electronic device communicates with the first access point is different from a channel when the electronic device communicates with the second access point, referring to fig. 6, a method for the electronic device to perform data communication with the second access point according to a data link between the second virtual client and the second access point is provided, and fig. 6 is a schematic flowchart of a method for the electronic device to perform data communication with the second access point according to the embodiment of the present application. The execution subject of the method in fig. 6 may be the electronic device 300 in fig. 1. As shown in fig. 6, the method includes: s601 to S603.
S601, the electronic device disables the data link between the first virtual client and the first access point.
Specifically, in the embodiment of the present application, in order to reduce the time consumption for switching the channel, the data link between the first virtual client and the first access point is first disabled, and then the data link between the second virtual client and the second access point is enabled.
For example, please refer to table 1, in table 1, different channels represent channels when the electronic device communicates with the first access point, and are different from channels when the electronic device communicates with the second access point, and when the channels are different, the application first disables the data link between the first virtual client and the first access point, switches the channels when the electronic device communicates with the first access point to signals of the electronic device and the second access point, and then enables the data link between the second virtual client and the second access point. When roaming is performed, the time delay for receiving the message is within a range of 9 to 14ms, and when the channels are different in the conventional roaming method, the time delay for receiving the message is within a range of 53 to 67ms, so that it can be known that the time delay for receiving the message by the roaming method in the embodiment of the present application is far less than the time delay for receiving the message by the conventional roaming method, and therefore, the time consumed for switching the channel by the roaming method in the embodiment of the present application is far less than the time consumed by the conventional roaming method, and the time consumed by roaming by the roaming method in the embodiment of the present application is far less than the time consumed by roaming by the conventional roaming method, thereby improving the internet experience of the user.
S602, after deactivating the data link between the first virtual client and the first access point, the electronic device switches a channel when the electronic device communicates with the first access point to a channel between the electronic device and the second access point.
And S603, enabling a data link between the second virtual client and the second access point.
In order to ensure that data is not lost in the roaming process and improve the internet surfing experience of the user, the following method is adopted in the embodiment of the present application, and please refer to fig. 7, where fig. 7 is a schematic flow chart of a method for ensuring that data is not lost in the roaming process provided in the embodiment of the present application. The execution subject of the method in fig. 7 may be the electronic device 300 in fig. 1. As shown in fig. 7, the method includes: s701 to S702.
S701, before the electronic device starts a data link between the second virtual client and the second access point, obtaining a first data message sent by the electronic device, and storing the first data message.
Specifically, after determining a data link between the second virtual client and the second access point, the electronic device obtains a data packet sent by the electronic device before starting the data link between the second virtual client and the second access point, where the electronic device sends a packet to the second access point, which may also be referred to as an uplink packet.
In order to ensure that data is not lost in the roaming process, the uplink message is stored in the electronic equipment.
S702, after the data link between the second virtual client and the second access point is enabled, the electronic device sends a first data message to the second access point.
For example, referring to table 1, after the method shown in fig. 7 is adopted, when the roaming method according to the embodiment of the present application sends an uplink packet, there is no phenomenon of data packet loss, and compared with the existing roaming method, when the uplink packet is sent, there are two phenomena of occasional packet loss and inevitable packet loss, which improves the internet experience of the user.
Referring to fig. 8, fig. 8 is a schematic flow chart of another method for ensuring that data is not lost during roaming according to the embodiment of the present application. The execution subject of the method in fig. 8 may be the electronic device 300 in fig. 1. As shown in fig. 8, the method includes: s801 to S802.
S801, before enabling a data link between the second virtual client and the second access point, the electronic device stores the second data packet through the second access point.
Specifically, after determining the data link between the second virtual module and the second access point, and before starting the data link between the second virtual client and the second access point and the data link between the second virtual client and the second access point, the electronic device stores a second data message through the second access point, where the second data message is a data message sent to the electronic device by the first access point, and the second data message may also be referred to as a downlink message.
S802, after the data link between the second virtual client and the second access point is enabled, the electronic device receives a second data message sent by the second access point.
For example, referring to table 1, after the method in fig. 8 is adopted, when the roaming method in the embodiment of the present application sends a downlink packet, there is no phenomenon of data packet loss, and compared with the existing roaming method, when sending a downlink packet, there are two phenomena of packet loss and inevitable packet loss occasionally, which improves the internet experience of the user.
In summary, in the technical solution of the present application, when a first virtual client associates with a first access point, a data link between a second virtual client and a second access point is determined; and the electronic equipment performs data communication with the second access point according to the data link between the second virtual client and the second access point. Namely, according to the method and the device, when the first virtual client is associated with the first access point, the data link between the second virtual client and the second access point is determined, and the data link between the electronic equipment and the second access point is determined without disconnecting the electronic equipment from the first access point, so that the roaming time is reduced, and the internet surfing experience of a user is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a wireless roaming apparatus provided in an embodiment of the present application, which is applied to an electronic device, where the electronic device includes a first virtual client and a second virtual client, and the apparatus includes:
a determining module 91, configured to determine a data link between a second virtual client and a second access point when the first virtual client performs data communication with the first access point.
And a switching module 92, configured to perform data communication between the electronic device and the second access point according to a data link between the second virtual client and the second access point.
The determining module 91 is further configured to establish a data link between the second virtual client and a target access point, where the target access point is an access point that is not associated with the electronic device;
and determining a data link between the second virtual client and a second access point according to the data link between the second virtual client and the target access point, wherein the second access point is one of the target access points.
The determining module 91 is further configured to encapsulate an association packet between the second virtual client and the target access point, and obtain an encapsulation packet;
and transmitting the encapsulation message through a data link between the first virtual client and the first access point and a data transmission network between the first access point and the target access point, and establishing a data link between the second virtual client and the target access point.
Wherein, when the channel when the electronic device communicates with the first access point is the same as the channel when the electronic device communicates with the second access point, the switching module 92 is further configured to enable the data link between the second virtual client and the second access point;
after enabling the data link of the second virtual client with the second access point, the data link of the first virtual client with the first access point is disabled.
When the channel of the electronic device in communication with the first access point is different from the channel of the electronic device in communication with the second access point, the switching module 92 is further configured to deactivate the data link between the first virtual client and the first access point;
after disabling the data link of the first virtual client with the first access point, enabling the data link of the second virtual client with the second access point.
The apparatus further includes a first saving module 93, configured to obtain a first data packet sent by the electronic device before starting a data link between the second virtual client and the second access point, and save the first data packet;
and after the data link between the second virtual client and the second access point is enabled, sending the first data message to the second access point.
The apparatus further includes a second storing module 94, configured to store a second data packet through the second access point before enabling a data link between the second virtual client and the second access point, where the second data packet is a data packet sent by the first access point to the electronic device;
and after the data link between the second virtual client and the second access point is enabled, receiving a second data message sent by the second access point.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
As shown in fig. 10, an electronic device 200 according to an embodiment of the present application further includes a memory 21, a processor 22, and a computer program 23 stored in the memory 21 and executable on the processor 22, where the processor 22 executes the computer program 23 to implement the wireless roaming method according to the foregoing embodiments.
The Processor 22 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 21 may be an internal storage unit of the electronic device 200. The memory 21 may also be an external storage device of the electronic device 200, such as a plug-in hard disk, a Smart Memory Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the electronic device 200. Further, the memory 21 may also include both an internal storage unit and an external storage device of the electronic apparatus 200. The memory 21 is used for storing computer programs and other programs and data required by the electronic device 200. The memory 21 may also be used to temporarily store data that has been output or is to be output.
The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the wireless roaming method of the foregoing embodiments is implemented.
The embodiment of the present application provides a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the wireless roaming method of the above embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be implemented by a computer program, which can be stored in a computer readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable storage medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/electronic device, a recording medium, computer memory, read-only memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunication signals, and software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In some jurisdictions, computer-readable storage media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and proprietary practices.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiments of the present application.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A wireless roaming method applied to an electronic device, wherein the electronic device comprises a first virtual client and a second virtual client, the method comprising:
when the first virtual client is in data communication with a first access point, determining a data link between the second virtual client and a second access point;
and the electronic equipment performs data communication with the second access point according to the data link between the second virtual client and the second access point.
2. The method of claim 1, wherein determining the data link between the second virtual client and the second access point comprises:
establishing a data link between the second virtual client and a target access point, wherein the target access point is an access point which is not associated with the electronic equipment;
and determining the data link between the second virtual client and the second access point according to the data link between the second virtual client and the target access point, wherein the second access point is one of the target access points.
3. The method of claim 2, wherein the establishing the data link between the second virtual client and the target access point comprises:
packaging the association message of the second virtual client and the target access point to obtain a packaged message;
and transmitting the encapsulation message through a data link between the first virtual client and the first access point and a data transmission network between the first access point and the target access point, and establishing a data link between the second virtual client and the target access point.
4. The method of claim 1, wherein when a channel of the electronic device when communicating with the first access point is the same as a channel of the electronic device when communicating with a second access point, the electronic device communicates data with the second access point according to the data link of the second virtual client with the second access point, comprising:
enabling a data link of the second virtual client with the second access point;
after enabling the data link of the second virtual client with the second access point, disabling the data link of the first virtual client with the first access point.
5. The method of claim 1, wherein when a channel of the electronic device when communicating with a first access point is different from a channel of the electronic device when communicating with a second access point, the electronic device communicates data with the second access point according to the data link of the second virtual client with the second access point, comprising:
deactivating a data link of the first virtual client with the first access point;
switching a channel when the electronic device is in communication with the first access point to a channel of the electronic device with a second access point after deactivating a data link of the first virtual client with the first access point;
enabling a data link of the second virtual client with the second access point.
6. The method according to any one of claims 4 to 5, further comprising:
before starting a data link between the second virtual client and the second access point, acquiring a first data message sent by the electronic equipment, and storing the first data message;
after enabling a data link between the second virtual client and the second access point, sending the first data packet to the second access point.
7. The method according to any one of claims 4 to 5, further comprising:
before a data link between the second virtual client and the second access point is enabled, storing a second data message through the second access point, wherein the second data message is a data message sent by the first access point to the electronic device;
and after the data link between the second virtual client and the second access point is enabled, receiving the second data message sent by the second access point.
8. A wireless roaming apparatus applied to an electronic device, the electronic device including a first virtual client and a second virtual client, the apparatus comprising:
a determining module, configured to determine a data link between the second virtual client and a second access point when the first virtual client performs data communication with a first access point;
and the switching module is used for carrying out data communication between the electronic equipment and the second access point according to the data link between the second virtual client and the second access point.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the wireless roaming method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the wireless roaming method as claimed in any one of claims 1 to 7.
CN202210623180.3A 2022-06-02 2022-06-02 Wireless roaming method, device, electronic equipment and readable storage medium Pending CN114885390A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210623180.3A CN114885390A (en) 2022-06-02 2022-06-02 Wireless roaming method, device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210623180.3A CN114885390A (en) 2022-06-02 2022-06-02 Wireless roaming method, device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN114885390A true CN114885390A (en) 2022-08-09

Family

ID=82680173

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210623180.3A Pending CN114885390A (en) 2022-06-02 2022-06-02 Wireless roaming method, device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN114885390A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107071840A (en) * 2017-06-20 2017-08-18 成都西加云杉科技有限公司 Netsurfing switching method and device
CN107666696A (en) * 2016-07-27 2018-02-06 中兴通讯股份有限公司 The switching method and terminal of a kind of wireless network
CN110290563A (en) * 2019-05-28 2019-09-27 菜鸟智能物流控股有限公司 Wireless access switching method, device and system and electronic equipment
CN110602704A (en) * 2019-09-19 2019-12-20 深圳市瑞科慧联科技有限公司 Non-sensing roaming system and method
CN114125968A (en) * 2021-11-19 2022-03-01 深圳市联平半导体有限公司 Method and device for switching wireless access point of wireless terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107666696A (en) * 2016-07-27 2018-02-06 中兴通讯股份有限公司 The switching method and terminal of a kind of wireless network
CN107071840A (en) * 2017-06-20 2017-08-18 成都西加云杉科技有限公司 Netsurfing switching method and device
CN110290563A (en) * 2019-05-28 2019-09-27 菜鸟智能物流控股有限公司 Wireless access switching method, device and system and electronic equipment
CN110602704A (en) * 2019-09-19 2019-12-20 深圳市瑞科慧联科技有限公司 Non-sensing roaming system and method
CN114125968A (en) * 2021-11-19 2022-03-01 深圳市联平半导体有限公司 Method and device for switching wireless access point of wireless terminal

Similar Documents

Publication Publication Date Title
CN106793090B (en) The selection method and system of D2D direct communication resources
US11711711B2 (en) Method for configuring measurement gap, access network device and terminal
US10484939B2 (en) Service provider selection in a wireless network
US11026274B2 (en) Session connection establishment method and system, and related device
CN103379590B (en) Data transmission method and device
US9769721B2 (en) Channel switching method, apparatus, and device
US11412413B2 (en) Service flow offload method, network device, and terminal device
CN113676904B (en) Slice authentication method and device
CN113132983A (en) Intelligent terminal network disconnection reconnection method
CN112019489B (en) Verification method and device
CN103384365A (en) Method and system for network access, method for processing business and equipment
US11310794B2 (en) Data transmission method in internet of vehicles and terminal
CN102892157A (en) Method and system for guaranteeing continuity of services during switching of wireless local area network (WLAN) to WLAN or third-generation (3G) network
CN114885390A (en) Wireless roaming method, device, electronic equipment and readable storage medium
US20160308600A1 (en) Base station apparatus, terminal apparatus, and wireless access system
EP3089501B1 (en) Method, apparatus and system for establishing cooperative communication
US7391752B1 (en) Method for generation of unique mobile station IDs in a 1×EVDO network
US20230337091A1 (en) Network handover method, terminal device, and access point device
EP3506699B1 (en) Data transmission methods, radio access network device and mobile terminal for configuring a preset data bearer
CN116233948A (en) Channel switching method, device, terminal equipment and storage medium
US20100208661A1 (en) Method, apparatus and system for a mobile station cell system
KR101184722B1 (en) Terminal Connected to Access Point FMC Service is available
CN115119334A (en) Information interaction method and device
CN115209510A (en) Wireless network connection method and device, electronic equipment and storage medium
CN115835416A (en) Device connection method, system, electronic device and 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