CN117528687A - Network roaming method and device, electronic equipment and readable storage medium - Google Patents

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

Info

Publication number
CN117528687A
CN117528687A CN202311799300.6A CN202311799300A CN117528687A CN 117528687 A CN117528687 A CN 117528687A CN 202311799300 A CN202311799300 A CN 202311799300A CN 117528687 A CN117528687 A CN 117528687A
Authority
CN
China
Prior art keywords
basic service
roaming
service set
network
duration
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
CN202311799300.6A
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202311799300.6A priority Critical patent/CN117528687A/en
Publication of CN117528687A publication Critical patent/CN117528687A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • H04W36/0016Hand-off preparation specially adapted for end-to-end data sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0055Transmission or use of information for re-establishing the radio link
    • H04W36/0077Transmission or use of information for re-establishing the radio link of access information of target 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

Landscapes

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

Abstract

The application discloses a network roaming method and device, electronic equipment and a readable storage medium, and belongs to the technical field of network roaming. The network roaming method comprises the following steps: acquiring basic service set information of connected access point equipment, and determining the network state of each basic service set according to roaming information corresponding to each basic service set of the electronic equipment under the condition that the basic service set information indicates that the access point equipment has at least two basic service sets; acquiring historical time information of roaming frames of a first basic service set sent by access point equipment under the condition that the network state of the first basic service set of at least two basic service sets is an abnormal state; preloading first data according to historical time information and roaming information corresponding to the first basic service set by the electronic equipment before roaming to the first basic service set by a second basic service set of at least two basic service sets; wherein the network state of the second basic service set is a normal state.

Description

Network roaming method and device, electronic equipment and readable storage medium
Technical Field
The application belongs to the technical field of network roaming, and particularly relates to a network roaming method and device, electronic equipment and a readable storage medium.
Background
When a user uses a network to communicate, the STA (Station) is typically connected to an AP (Access Point device) to enter a BSS (Basic Service Set ) of the AP, and surfs the internet through a Wi-Fi (Wireless-Fidelity) network. Currently, most users use a router with multiple frequency functions as an AP to access an external network.
A multifrequency integrated router is a router capable of supporting multiple radio frequency bands simultaneously, and can perform radio transmission on two frequency bands of 2.4GHz and 5GHz simultaneously, that is, provide network services for users through different BSSIDs (Basic Service Set Identifier, basic service set identifiers). One of the characteristics of the multi-frequency integrated function is that the optimal frequency band is automatically selected for transmission according to the load condition of the current network so as to achieve load balancing. Among them, the BTM (BSS Transition Management, BSS handoff management) roaming technology based on the 802.11v protocol is one of its important characteristics.
However, in the process of performing roaming switching on the frequency band of the multifrequency integrated router, due to faults such as poor network quality, slow network speed and the like of the frequency band, the problems of frequent disconnection and network blocking of the network often occur, which reduces the efficiency of using the network by the electronic equipment and reduces the communication efficiency of the electronic equipment.
Disclosure of Invention
An object of the embodiments of the present application is to provide a network roaming method and apparatus, an electronic device, and a readable storage medium, which can improve the efficiency of using a network by the electronic device, and improve the communication efficiency of the electronic device.
In a first aspect, an embodiment of the present application provides a network roaming method, where the method is performed by an electronic device, the network roaming method includes: acquiring basic service set information of connected access point equipment, and determining the network state of each basic service set according to roaming information corresponding to each basic service set of the electronic equipment under the condition that the basic service set information indicates that the access point equipment has at least two basic service sets; acquiring historical time information of roaming frames of a first basic service set sent by access point equipment under the condition that the network state of the first basic service set of at least two basic service sets is an abnormal state; preloading first data according to historical time information and roaming information corresponding to the first basic service set by the electronic equipment before roaming to the first basic service set by a second basic service set of at least two basic service sets; wherein the network state of the second basic service set is a normal state.
In a second aspect, an embodiment of the present application provides a network roaming device, where the network roaming device is applied to an electronic device, and the network roaming device includes: an acquisition unit, configured to acquire basic service set information of a connected access point device; the processing unit is used for determining the network state of each basic service set according to the roaming information corresponding to each basic service set of the electronic equipment under the condition that the basic service set information indicates that the access point equipment has at least two basic service sets; the acquisition unit is further used for acquiring historical time information of roaming frames of a first basic service set sent by the access point equipment under the condition that the network state of the first basic service set of at least two basic service sets is an abnormal state; the processing unit is further used for preloading first data according to the historical time information and roaming information corresponding to the first basic service set by the electronic equipment before roaming to the first basic service set by the second basic service set of the at least two basic service sets; wherein the network state of the second basic service set is a normal state.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor and a memory storing programs or instructions executable on the processor, which when executed by the processor implement the steps of the network roaming method as in the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor implement steps of a network roaming method as in the first aspect.
In a fifth aspect, embodiments of the present application provide a chip comprising a processor and a communication interface, the communication interface and the processor being coupled, the processor being configured to execute programs or instructions for implementing the steps of the network roaming method as in the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executable by at least one processor to perform the steps of the network roaming method as in the first aspect.
In the network roaming method provided by the embodiment of the application, basic service set information of the connected access point equipment is obtained, and the network state of each basic service set is determined according to roaming information corresponding to each basic service set of the electronic equipment under the condition that the basic service set information indicates that the access point equipment has at least two basic service sets; acquiring historical time information of roaming frames of a first basic service set sent by access point equipment under the condition that the network state of the first basic service set of at least two basic service sets is an abnormal state; preloading first data according to historical time information and roaming information corresponding to the first basic service set by the electronic equipment before roaming to the first basic service set by a second basic service set of at least two basic service sets; wherein the network state of the second basic service set is a normal state. Through the network roaming method, when the electronic equipment is connected with the access point equipment with at least two basic service sets, the electronic equipment can determine the network state of each basic service set according to the roaming information corresponding to each basic service set, and then the first data is preloaded before roaming to the basic service set in an abnormal state. Therefore, the problem of network blocking caused by frequent network disconnection and poor network quality of the electronic equipment in the network roaming process is reduced, the network utilization efficiency of the electronic equipment is improved, and the communication efficiency of the electronic equipment is improved.
Drawings
Fig. 1 is a schematic flow chart of a network roaming method according to an embodiment of the present application;
FIG. 2 is a second flow chart of a network roaming method according to the embodiment of the present application;
FIG. 3 is a third flow chart of a network roaming method according to the embodiment of the present application;
FIG. 4 is a flowchart illustrating a network roaming method according to an embodiment of the present disclosure;
fig. 5 is a block diagram of a network roaming device according to an embodiment of the present application;
fig. 6 is a block diagram of an electronic device according to an embodiment of the present application;
fig. 7 is a schematic hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
Technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application are within the scope of the protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or otherwise described herein, and that the objects identified by "first," "second," etc. are generally of a type and do not limit the number of objects, for example, the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The network roaming method provided by the embodiment of the application is described in detail below through specific embodiments and application scenarios thereof with reference to the accompanying drawings.
As shown in fig. 1, an embodiment of the present application provides a network roaming method, which may include the following steps S102 to S106:
s102: and acquiring basic service set information of the connected access point equipment, and determining the network state of each basic service set according to roaming information corresponding to each basic service set of the electronic equipment under the condition that the basic service set information indicates that the access point equipment has at least two basic service sets.
The network roaming method provided by the embodiment of the application is executed by an electronic device, namely an STA, and the electronic device can be specifically an intelligent electronic device such as a smart phone, a tablet computer, a notebook computer, an intelligent watch and the like, which is not particularly limited.
The basic service set information is used for indicating the number of basic service sets of the access point equipment.
Further, the roaming information includes a number of network roaming times of the electronic device corresponding to each basic service set, where the number of network roaming times may be specifically determined by a number of times the electronic device receives a roaming frame of each basic service set. The roaming frame is a BTM roaming frame, and the roaming frame is used for indicating the electronic device to roam from one basic service set to another basic service set of the access point device.
Further, the network status is used to indicate whether the network corresponding to each basic service set can work normally. The network states of the basic service set include a normal state and an abnormal state. Under the condition that the network state of the basic service set is normal, the network state corresponding to the basic service set is better, and the basic service set can work normally, namely, the electronic equipment can communicate normally through the basic service set; and under the condition that the network state of the basic service set is abnormal, the network state corresponding to the basic service set is poor, and the normal work of the basic service set is difficult to support, namely, the electronic equipment is difficult to normally communicate through the basic service set.
Specifically, in the network roaming method provided in the embodiment of the present application, when an electronic device is connected to an access point device, the electronic device obtains basic service set information of the connected access point device, and when the basic service set information indicates that the access point device has at least two basic service sets, determines a network state of each basic service set according to roaming information corresponding to each basic service set.
In the practical application process, the access point device may be a multifrequency integrated router, and the multifrequency integrated router may perform wireless transmission on two frequency bands of 2.4GHz and 5GHz simultaneously. Wherein one frequency band may correspond to a plurality of BSSIDs and one BSSID corresponds to one frequency band. On the basis, in the case that the access point device is a multi-frequency integrated router, the basic service set may correspond to a 2.4GHz band, and the basic service set may also correspond to a 5GHz band, which is not particularly limited herein. In the actual application process, the corresponding frequency band of the basic service set is related to the actual situation of the access point device, and in the case that the access point device is other devices, the basic service set may also correspond to other frequency bands, which is not particularly limited herein.
In the actual application process, the electronic device may also determine the network state of each basic service set by using the network information of each basic service set. The network information is information for judging the network quality of the basic service set. In an actual application process, the network information may specifically include: the information such as video katon information of the application layer, transmission data traffic of the data transmission layer, receiving and transmitting packet delay information RTT, proportion information of retransmission packets occupying all data packets, signal strength RSSI of a bottom layer such as a link layer and a physical layer, protocol rate of a network corresponding to the electronic device, namely STA, and the first basic service set, information such as packet sending and packet loss and receiving retransmission information of the electronic device, namely STA, and environmental interference index CCA is not particularly limited herein.
In addition, in the practical application process, a BTM roaming acceleration database is set in the electronic device, and after the electronic device is connected to the access point device, the electronic device stores network identification information and basic service set identification information corresponding to each basic service set of the access point device into the BTM roaming acceleration database. Wherein, the network identification information is SSID information, and the basic service set identification information is BSSID information.
Further, in the case that the electronic device determines that the network corresponding to a certain basic service set is in a normal state, the electronic device may communicate through the basic service set, and clear all information of the current SSID (Service Set Identifier, network name) from the BTM roaming acceleration database, while waiting for the access point device to send the next BTM roaming frame. And when the electronic device determines that the network corresponding to a certain basic service set is in an abnormal state, the electronic device reserves the information of the current SSID (Service Set Identifier, network name) in the BTM roaming acceleration database, such as the information of the signal strength RSSI, the environmental interference index CCA, the channel information and the like of the link layer, the physical layer and the like of the current SSID. Based on the above, the electronic device can determine whether the basic service set has a network anomaly problem by querying whether the BSSID corresponding to the basic service set exists in the BTM roaming acceleration database.
S104: and under the condition that the network state of the first basic service set of the at least two basic service sets is an abnormal state, acquiring historical time information of roaming frames of the first basic service set transmitted by the access point equipment.
Under the condition that the access point device is a multifrequency integrated router, the first basic service set may correspond to a 2.4GHz band of the multifrequency integrated router, and the first basic service set may also correspond to a 5GHz band of the multifrequency integrated router, which is not limited herein.
Further, the roaming frame is a BTM roaming frame, and the roaming frame of the first basic service set is used to instruct the electronic device to roam from other basic service sets of the access point device to the first basic service set.
For example, when the STA is surfing the internet by turning on the 2.4GHz band of the router with the multiple-in-one function, the router sends a BTM roaming frame to the STA for load balancing to inform the STA to connect to the 5GHz band of the router. After receiving the BTM roaming frame sent by the router, the STA roams to the 5GHz frequency band of the router according to the instruction of the BTM roaming frame so as to surf the Internet by starting the 5GHz frequency band of the router with the multi-frequency integrated function, and disconnect the connection with the 2.4GHz frequency band of the router.
Specifically, in the network roaming method provided in the embodiment of the present application, when the electronic device determines that the network state of the first basic service set of the at least two basic service sets is an abnormal state, the electronic device obtains historical time information of a roaming frame of the first basic service set, which is received by the electronic device and is sent by the access point device, for subsequent use.
S106: the method comprises the steps of preloading first data according to historical time information and roaming information corresponding to the first basic service set by the electronic equipment before roaming to the first basic service set by a second basic service set of at least two basic service sets.
Wherein the network state of the second basic service set is a normal state. In the case that the access point device is a multifrequency router, the first basic service set may correspond to a 2.4GHz band of the multifrequency router, and the first basic service set may also correspond to a 5GHz band of the multifrequency router, which is not limited herein.
Further, the network state of the first basic service set is an abnormal state. The roaming information of the electronic device corresponding to the first basic service set may specifically include a roaming duration of the electronic device corresponding to the first basic service set, where the roaming duration is a time spent in a process that the electronic device roams from another basic service set, such as the second basic service set, to the first basic service set, and then reconnects from the first basic service set to the original basic service set.
Further, the first data is data which is predicted to be used by the electronic device in a future period of time, that is, the first data is application data which needs to be loaded by an application program which is being used in the electronic device in the future period of time.
For example, the first data is an information stream such as a video, a comment, a bullet screen and the like which are required to be loaded by an audio and video application in the electronic equipment in a future period of time; the first data can also be information streams such as characters, pictures, comments and the like which are required to be loaded by the reading application in the electronic equipment in a future period of time.
It can be understood that, in the process that the electronic device, i.e., the STA, communicates through the access point device, e.g., the multiple-frequency integrated router, if the network corresponding to a certain basic service set of the multiple-frequency integrated router, e.g., the first BSSID, has an abnormal problem of slow internet surfing, no internet surfing, etc., the STA actively switches to the network corresponding to another basic service set of the multiple-frequency integrated router, e.g., the second BSSID, according to its algorithm. On the basis, if the multi-frequency integrated router transmits a BTM roaming frame to the STA by self-algorithm, the STA is required to roam to the network corresponding to the abnormal first BSSID, and after the STA roams to the network corresponding to the first BSSID based on the indication of the BTM roaming frame, the STA is actively switched back to the network corresponding to the second BSSID again by the abnormal problem of the network corresponding to the first BSSID. The network connected by the STA is continuously switched between the network corresponding to the first BSSID and the network corresponding to the second BSSID, and because the network corresponding to the first BSSID is abnormal, the electronic equipment can generate the problems of frequent disconnection of the network, even no network connection when the network is connected, and the like in the network switching process, thereby reducing the network utilization efficiency of the electronic equipment and reducing the communication efficiency of the electronic equipment.
Therefore, in the network roaming method provided in the embodiment of the present application, when the electronic device is connected to the access point device, the electronic device obtains basic service set information of the connected access point device, and when the basic service set information indicates that at least two basic service sets exist in the access point device, determines a network state of each basic service set according to roaming information corresponding to each basic service set. Further, in the case that the electronic device determines that the network state of the first basic service set of the at least two basic service sets is an abnormal state, the electronic device obtains historical time information of roaming frames of the first basic service set, which are sent by the access point device, received by the electronic device. On the basis, before the electronic equipment roams from the normal second basic service set to the abnormal first basic service set according to the roaming frame sent by the access point equipment, the electronic equipment pre-loads the first data according to the historical time information of the roaming frame received by the electronic equipment and the roaming information corresponding to the first basic service set. In this way, in the process of network roaming of the electronic equipment, the electronic equipment can still process the service according to the preloaded first data, so that the problem of network blocking in the process of network roaming is reduced, the efficiency of using the network by the electronic equipment is improved, and the communication efficiency of the electronic equipment is improved.
According to the network roaming method provided by the embodiment of the application, basic service set information of the connected access point equipment is obtained, and the network state of each basic service set is determined according to roaming information corresponding to each basic service set of the electronic equipment under the condition that the basic service set information indicates that the access point equipment has at least two basic service sets; acquiring historical time information of roaming frames of a first basic service set sent by access point equipment under the condition that the network state of the first basic service set of at least two basic service sets is an abnormal state; preloading first data according to historical time information and roaming information corresponding to the first basic service set by the electronic equipment before roaming to the first basic service set by a second basic service set of at least two basic service sets; wherein the network state of the second basic service set is a normal state. Through the network roaming method, when the electronic equipment is connected with the access point equipment with at least two basic service sets, the electronic equipment can determine the network state of each basic service set according to the roaming information corresponding to each basic service set, and then the first data is preloaded before roaming to the basic service set in an abnormal state. Therefore, the problem of network blocking caused by frequent network disconnection and poor network quality of the electronic equipment in the network roaming process is reduced, the network utilization efficiency of the electronic equipment is improved, and the communication efficiency of the electronic equipment is improved.
In this embodiment of the present application, the roaming information includes the number of roaming times of the network corresponding to each basic service set by the electronic device, and on this basis, the step of determining the network state of each basic service set according to the roaming information corresponding to each basic service set by the electronic device may specifically include the following steps S108 and S110:
s108: and under the condition that the network roaming times of the electronic equipment corresponding to the basic service set is smaller than the time threshold, determining that the network state of the basic service set is a normal state.
The number of roaming times of the network may be specifically determined by the number of times that the electronic device receives the roaming frame of each basic service set. Specifically, in the network roaming method provided in the embodiment of the present application, after the electronic device roams to each basic service set of the access point device according to the indication of the roaming frame, the electronic device records the number of network roaming times corresponding to each basic service set.
The electronic equipment is provided with a BTM roaming acceleration database, and when the electronic equipment roams to a certain basic service set for the first time, the electronic equipment can create the SSID of the basic service set and all BSSID information thereof in the BTM roaming acceleration database; otherwise, the electronic equipment only carries out the 1 adding operation on the network roaming times corresponding to the basic service set.
Further, the frequency threshold is used to indicate how often the electronic device roams to each basic service set.
Further, since the electronic device performs a handover of the basic service set, that is, performs a handover of the network, based on the BTM roaming frame each time the electronic device receives the BTM roaming frame, the frequency threshold may be further used to indicate how frequently the electronic device switches the basic service set, that is, switches the network.
Further, when the number of network roaming times corresponding to the basic service set by the electronic device is smaller than the number threshold, the electronic device is indicated to have lower frequent roaming to the basic service set, namely, the electronic device is indicated to have lower frequent switching of the basic service set; and when the number of times of network roaming of the electronic equipment corresponding to the basic service set is greater than or equal to the threshold number of times, the electronic equipment is indicated to roam to the basic service set more frequently, namely, the electronic equipment is indicated to switch the basic service set more frequently.
Specifically, in the network roaming method provided in the embodiment of the present application, in a case where at least two basic service sets exist in an access point device to which an electronic device is connected, the electronic device obtains the number of network roaming times corresponding to each basic service set of the access point device. On the basis, when the network roaming times of the electronic equipment corresponding to any one basic service set is smaller than the time threshold, the electronic equipment is indicated to have lower frequent roaming to the basic service set, namely, the electronic equipment is indicated to switch the basic service set to have lower frequent. At this time, the electronic device determines that the network state of the basic service set is a normal state, and can perform normal communication through the basic service set.
S110: and under the condition that the network roaming times of the electronic equipment corresponding to the basic service set is greater than or equal to a time threshold value, determining the network state of the basic service set as an abnormal state.
Specifically, in the network roaming method provided in the embodiment of the present application, after the electronic device obtains the network roaming times corresponding to each basic service set of the access point device, when the network roaming times corresponding to any one of the basic service sets of the electronic device is greater than or equal to the time threshold, it is indicated that the frequency of roaming of the electronic device to the basic service set is higher, that is, the frequency of switching the basic service set by the electronic device is higher. At this time, the electronic device determines that the network state of the basic service set is an abnormal state, and can perform normal communication through the basic service set.
According to the embodiment, the roaming information includes the network roaming times corresponding to each basic service set of the electronic device, and in the process of determining the network state of each basic service set according to the roaming information corresponding to each basic service set of the electronic device, the network state of the basic service set is determined to be a normal state under the condition that the network roaming times corresponding to the basic service set of the electronic device is smaller than a time threshold; and under the condition that the network roaming times of the electronic equipment corresponding to the basic service set is greater than or equal to a time threshold value, determining the network state of the basic service set as an abnormal state. In this way, the network state of each basic service set is determined based on the network roaming times of the electronic equipment corresponding to each basic service set, and the accuracy of determining the network state of the basic service set is ensured, so that the accuracy of subsequent network roaming control is ensured.
In this embodiment of the present application, the roaming information of the first basic service set includes a roaming duration of the electronic device corresponding to the first basic service set, and on this basis, the step of preloading the first data according to the historical time information and the roaming information of the electronic device corresponding to the first basic service set may specifically include the following steps S112 and S114:
s112: and determining the interval duration of the two adjacent roaming frames according to the historical time information.
Specifically, in the network roaming method provided in the embodiment of the present application, when the electronic device determines that the network state of the first basic service set of the at least two basic service sets is an abnormal state, the electronic device obtains historical time information of a roaming frame of the first basic service set that is received by the electronic device and sent by the access point device. On the basis, the electronic equipment determines the interval duration of the adjacent two roaming frames received by the electronic equipment according to the historical time information of the roaming frames received by the electronic equipment in the first basic service set.
In the practical application process, the electronic device may first determine whether the time interval between every two adjacent times of receiving the roaming frame converges with the sending time of the roaming frame, and under the condition that the time interval converges with the sending time of the roaming frame, the electronic device determines the interval duration according to the expected value of the time interval between every two adjacent times of receiving the roaming frame, which is not limited herein.
S114: and preloading the first data under the condition that the interval duration is less than or equal to the roaming duration.
The roaming information of the first basic service set includes a roaming duration of the electronic device corresponding to the first basic service set, where the roaming duration is a duration consumed in a process that the electronic device roams from the second basic service set to the first basic service set and then reconnects from the first basic service set to the second basic service set.
Further, the roaming duration is related to a duration of the electronic device disconnecting the second basic service set, a duration of connecting the first basic service set, a duration of disconnecting the first basic service set, and a duration of reconnecting to the second basic service set. Specifically, the roaming duration is the sum of four durations, namely, the duration that the electronic device disconnects the second basic service set, the duration that the electronic device connects the first basic service set, the duration that the electronic device disconnects the first basic service set, and the duration that the electronic device reconnects to the second basic service set.
Specifically, in the network roaming method provided in the embodiment of the present application, after the electronic device determines, according to the historical time information of the roaming frame that the electronic device receives the first basic service set, the interval duration that the electronic device receives the two adjacent roaming frames, the electronic device compares the interval duration with the roaming duration that the electronic device corresponds to the first basic service set. On the basis, under the condition that the interval duration is smaller than or equal to the roaming duration, the electronic equipment starts a data preloading function and dynamically preloads the first data. The data preloaded by the electronic equipment at any time is data in a first time period after the time, and the first time period is greater than or equal to the roaming time period. In this way, in the process that the electronic equipment roams to the abnormal basic service set, the electronic equipment can still process the service according to the preloaded first data, so that the problem of network blocking in the network roaming process is reduced, the network using efficiency of the electronic equipment is improved, and the communication efficiency of the electronic equipment is improved.
Specifically, the electronic device loads the information flow which takes longer than the roaming time in the application program in advance according to the data transmission rate and the application type of the application program in use. For example, the electronic device loads information streams such as videos, comments and barrages of a first duration in advance in an audio and video application; the electronic equipment loads information streams such as characters, pictures and comments of a first duration in advance in the reading application.
According to the embodiment, the roaming information of the first basic service set includes the roaming duration of the electronic device corresponding to the first basic service set, and in the process of preloading the first data according to the historical time information and the roaming information of the electronic device corresponding to the first basic service set, the interval duration of two adjacent roaming frames is determined according to the historical time information; preloading the first data under the condition that the interval duration is less than or equal to the roaming duration; the first data are data in a first time period after the current time; the roaming duration is the duration consumed by the process that the electronic device roams from the second basic service set to the first basic service set and then reconnects from the first basic service set to the second basic service set, and the first duration is greater than or equal to the roaming duration. In this way, in the process that the electronic equipment roams to the abnormal basic service set, the electronic equipment can still process the service according to the preloaded first data, so that the problem of network blocking in the network roaming process is reduced, the network using efficiency of the electronic equipment is improved, and the communication efficiency of the electronic equipment is improved.
In the embodiment of the present application, after the step S112, the network roaming method may further include the following steps S116 and S118:
s116: and under the condition that the interval time length is longer than the roaming time length, calculating a second time length from the current time to the time when the roaming frame is received next according to the interval time length and the time information of the previous time when the roaming frame is received.
Specifically, in the network roaming method provided in the embodiment of the present application, after the electronic device determines, according to the historical time information of the roaming frame that the electronic device receives the first basic service set, the interval duration that the electronic device receives the two adjacent roaming frames, the electronic device compares the interval duration with the roaming duration that the electronic device corresponds to the first basic service set. On the basis, under the condition that the interval time length is longer than the roaming time length, the electronic equipment dynamically calculates a second time length from the current time to the time when the electronic equipment receives the roaming frame of the first basic service set next time based on the interval time length and the time information of the roaming frame of the first basic service set received last time.
In an actual application process, the second duration may be specifically determined by the following formula:
T next =T slot -t,
wherein T is next Represents a second time period, T slot And t represents the duration between the current time and the time when the roaming frame of the first basic service set was received.
S118: and under the condition that the second time length is less than or equal to the roaming time length, preloading the first data according to the data transmission rate of the electronic equipment until the roaming frame is received.
Specifically, in the network roaming method provided in the embodiment of the present application, after the electronic device dynamically calculates a second duration between the current time and the time when the electronic device receives the roaming frame of the first basic service set next, the electronic device compares the second duration with the roaming duration. On the basis, under the condition that the second duration is less than or equal to the roaming duration, the electronic equipment starts a data preloading function, and the first data is dynamically preloaded according to the data transmission rate of the electronic equipment until the electronic equipment receives the roaming frame of the first basic service set again. The data preloaded by the electronic equipment at any time is data in a first time period after the time, and the first time period is greater than or equal to the roaming time period. In this way, on the one hand, when the second duration is less than or equal to the roaming duration, the data preloading function of the electronic equipment is started, so that the cache data volume of the electronic equipment is reduced; on the other hand, in the process that the electronic equipment roams to the abnormal basic service set, the electronic equipment can still process the service according to the preloaded first data, so that the problem of network blocking in the network roaming process is reduced, the network using efficiency of the electronic equipment is improved, and the communication efficiency of the electronic equipment is improved.
Specifically, the electronic device determines the transmission time consumption of the application data with the roaming time length in the application program according to the data transmission rate, and further loads the information flow with the loading time consumption greater than the roaming time length in the application program in advance according to the application type of the application program, the transmission time consumption and the roaming time length. For example, the electronic device loads information streams such as videos, comments and barrages of a first duration in advance in an audio and video application; the electronic equipment loads information streams such as characters, pictures and comments of a first duration in advance in the reading application.
According to the embodiment, after the interval time length of two adjacent roaming frames is determined according to the historical time information, calculating the second time length from the current time to the time when the roaming frame is received next according to the interval time length and the time information of the previous roaming frame received when the interval time length is longer than the roaming time length; and under the condition that the second time length is less than or equal to the roaming time length, preloading the first data according to the data transmission rate of the electronic equipment until the roaming frame is received. In this way, in the process that the electronic equipment roams to the abnormal basic service set, the electronic equipment can still process the service according to the preloaded first data, so that the problem of network blocking in the network roaming process is reduced, the network using efficiency of the electronic equipment is improved, and the communication efficiency of the electronic equipment is improved. And when the second time length is less than or equal to the roaming time length, starting the data preloading function of the electronic equipment, so that the cache data volume of the electronic equipment is reduced.
In summary, as shown in fig. 4, the network roaming method provided in the embodiment of the present application may specifically include the following steps S402 to S412:
s402: the STA connects to the AP.
S404: judging: the SSID belongs to the multifrequency router, if yes, S406 is executed, and if no, S412 is executed.
S406: judging: the electronic device starts data flow acceleration, if yes, S412 is executed, and if no, S408 is executed.
S408: judging: the BTM roaming acceleration needs to be triggered, if yes, S410 is executed, and if no, S412 is executed.
S410: the BTM roaming acceleration module is activated.
S412: the user normally surfs the internet.
The STA is an electronic device, the AP is an access point device, and the SSID is network identification information of the access point device.
Specifically, in the network roaming method provided in the embodiment of the present application, after the electronic device is connected to the access point device, the electronic device may determine whether the SSID of the access point device belongs to the multifrequency integrated access point device, that is, determine whether the access point device is in the multifrequency integrated mode. On the basis, the electronic equipment inquires the acceleration function information of the electronic equipment so as to judge whether the electronic equipment starts other acceleration functions such as data flow acceleration or not through the acceleration function information. Under the condition that the acceleration function information indicates that the electronic equipment does not start the acceleration function, the electronic equipment judges whether the basic service set of the access point equipment has a network abnormality problem or not, and further judges whether the basic service set needs to trigger the BTM roaming acceleration function or not. Further, under the condition that the electronic equipment determines that the basic service set of the access point equipment has a network abnormality problem, the electronic equipment determines that the electronic equipment needs to trigger a BTM roaming acceleration function and starts a BTM roaming acceleration module; and under the condition that the electronic equipment determines that the basic service set of the access point equipment has no network abnormality problem, the electronic equipment is used for a user to surf the internet in the current working state. Wherein the BTM roaming acceleration function is the data preloading function described above.
As shown in fig. 2, taking the second basic service set as the nth BSSID and the first basic service set as the n+1th BSSID as an example, the step of determining whether the electronic device needs to trigger the BTM roaming acceleration in S408 may specifically include the following steps S202 to S222:
s202: the STA accesses the nth BSSID.
S204: judging: and receiving the BTM roaming frame, if yes, executing S206, and if not, executing S222.
S206: the number of BTM roams is calculated, and BTM frame interval information is calculated.
S208: the STA roams to the n+1th BSSID.
S210: judging: the network quality of the n+1th BSSID is poor, if yes, S214 is executed, and if no, S212 is executed.
S212: and clearing the current SSID information in the BTM roaming acceleration database, and waiting for the AP to send the next BTM roaming frame.
S214: judging: the BTM roaming number is greater than or equal to the number threshold, if yes, S218 is executed, and if no, S216 is executed.
S216: disconnect the n+1th BSSID, reconnect the n BSSID, wait for the AP to send the next BTM roaming frame.
S218: recording current SSID information in a BTM roaming acceleration database: all BSSID information, including channel, RSSI, CCA, etc., the n+1th BSSID flag is abnormal, the other BSSID flags are unchanged.
S220: starting a network selection decision module, disconnecting the n+1BSSID, adding the n+1BSSID into a network abnormal blacklist, creating a blacklist timer, scanning and connecting the n BSSID.
S222: the user normally surfs the internet.
The BTM frame interval information corresponds to the interval duration, and the BTM roaming number is the network roaming number corresponding to the n+1th BSSID of the electronic device.
On this basis, as shown in fig. 3, after determining that the n+1th BSSID has a network anomaly problem, the network roaming method provided in the embodiment of the present application may specifically further include the following steps S302 to S318:
s302: the STA accesses the nth BSSID.
S304: judging: the electronic device needs to trigger the BTM roaming acceleration function, if yes, S306 is executed, and if no, S318 is executed.
S306: acquiring BTM frame interval information T for n+1BSSID slot
S308: judging: t (T) slot And (3) converging, if yes, executing S310, and if not, executing S316.
S310: judging: t (T) slot >T roam If yes, execution proceeds to S312, otherwise, execution proceeds to S316.
S312: estimating the next BTM roaming time T next =T slot -t。
S314: judging: t (T) next >T roam If yes, execution proceeds to S312, otherwise, execution proceeds to S316.
S316: preloading T roam Information flow of a duration.
S318: the user normally surfs the internet.
Wherein the BTM frame interval information T slot I.e. corresponding to the above-mentioned interval duration, T roam I.e. corresponding to the roaming time length, the next BTM roaming time T next Corresponding to the second duration, steps S306 to S316 are specific steps of activating the BTM roaming acceleration module in S410.
According to the network roaming method provided by the embodiment of the application, the execution main body can be a network roaming device. In the embodiment of the present application, the network roaming device provided in the embodiment of the present application is described by taking the network roaming device executing the above network roaming method as an example.
As shown in fig. 5, an embodiment of the present application provides a network roaming device 500, which may include an acquisition unit 502 and a processing unit 504 described below.
An obtaining unit 502, configured to obtain basic service set information of a connected access point device;
a processing unit 504, configured to determine, when the basic service set information indicates that the access point device has at least two basic service sets, a network state of each basic service set according to roaming information corresponding to each basic service set by the electronic device;
the obtaining unit 502 is further configured to obtain, when the network state of the first basic service set of the at least two basic service sets is an abnormal state, historical time information of a roaming frame of the first basic service set sent by the access point device;
the processing unit 504 is further configured to pre-load the first data according to the historical time information and roaming information corresponding to the first basic service set by the electronic device before roaming to the first basic service set by the second basic service set of the at least two basic service sets;
Wherein the network state of the second basic service set is a normal state.
The network roaming apparatus 500 provided in the embodiment of the present application obtains basic service set information of connected access point devices, and determines, when the basic service set information indicates that at least two basic service sets exist in the access point device, a network state of each basic service set according to roaming information corresponding to each basic service set by the electronic device; acquiring historical time information of roaming frames of a first basic service set sent by access point equipment under the condition that the network state of the first basic service set of at least two basic service sets is an abnormal state; preloading first data according to historical time information and roaming information corresponding to the first basic service set by the electronic equipment before roaming to the first basic service set by a second basic service set of at least two basic service sets; wherein the network state of the second basic service set is a normal state. Through the network roaming method, when the electronic equipment is connected with the access point equipment with at least two basic service sets, the electronic equipment can determine the network state of each basic service set according to the roaming information corresponding to each basic service set, and then the first data is preloaded before roaming to the basic service set in an abnormal state. Therefore, the problem of network blocking caused by frequent network disconnection and poor network quality of the electronic equipment in the network roaming process is reduced, the network utilization efficiency of the electronic equipment is improved, and the communication efficiency of the electronic equipment is improved.
In this embodiment of the present application, the roaming information includes the number of network roaming times of the electronic device corresponding to each basic service set, and the processing unit 504 is specifically configured to: under the condition that the network roaming times of the electronic equipment corresponding to the basic service set is smaller than a time threshold, determining that the network state of the basic service set is a normal state; and under the condition that the network roaming times of the electronic equipment corresponding to the basic service set is greater than or equal to a time threshold value, determining the network state of the basic service set as an abnormal state.
According to the embodiment, the roaming information includes the network roaming times corresponding to each basic service set of the electronic device, and in the process of determining the network state of each basic service set according to the roaming information corresponding to each basic service set of the electronic device, the network state of the basic service set is determined to be a normal state under the condition that the network roaming times corresponding to the basic service set of the electronic device is smaller than a time threshold; and under the condition that the network roaming times of the electronic equipment corresponding to the basic service set is greater than or equal to a time threshold value, determining the network state of the basic service set as an abnormal state. In this way, the network state of each basic service set is determined based on the network roaming times of the electronic equipment corresponding to each basic service set, and the accuracy of determining the network state of the basic service set is ensured, so that the accuracy of subsequent network roaming control is ensured.
In this embodiment of the present application, the roaming information of the first basic service set includes a roaming duration of the electronic device corresponding to the first basic service set, and the processing unit 504 is specifically configured to: determining the interval duration of two adjacent roaming frames according to the historical time information; preloading the first data under the condition that the interval duration is less than or equal to the roaming duration; the first data are data in a first time period after the current time; the roaming duration is the duration consumed by the process that the electronic device roams from the second basic service set to the first basic service set and then reconnects from the first basic service set to the second basic service set, and the first duration is greater than or equal to the roaming duration.
According to the embodiment, the roaming information of the first basic service set includes the roaming duration of the electronic device corresponding to the first basic service set, and in the process of preloading the first data according to the historical time information and the roaming information of the electronic device corresponding to the first basic service set, the interval duration of two adjacent roaming frames is determined according to the historical time information; preloading the first data under the condition that the interval duration is less than or equal to the roaming duration; the first data are data in a first time period after the current time; the roaming duration is the duration consumed by the process that the electronic device roams from the second basic service set to the first basic service set and then reconnects from the first basic service set to the second basic service set, and the first duration is greater than or equal to the roaming duration. In this way, in the process that the electronic equipment roams to the abnormal basic service set, the electronic equipment can still process the service according to the preloaded first data, so that the problem of network blocking in the network roaming process is reduced, the network using efficiency of the electronic equipment is improved, and the communication efficiency of the electronic equipment is improved.
In the embodiment of the present application, the processing unit 504 is further configured to: under the condition that the interval time length is longer than the roaming time length, calculating a second time length from the current time to the time when the roaming frame is received next according to the interval time length and the time information of the previous time when the roaming frame is received; and under the condition that the second time length is less than or equal to the roaming time length, preloading the first data according to the data transmission rate of the electronic equipment until the roaming frame is received.
According to the embodiment, after the interval time length of two adjacent roaming frames is determined according to the historical time information, calculating the second time length from the current time to the time when the roaming frame is received next according to the interval time length and the time information of the previous roaming frame received when the interval time length is longer than the roaming time length; and under the condition that the second time length is less than or equal to the roaming time length, preloading the first data according to the data transmission rate of the electronic equipment until the roaming frame is received. In this way, in the process that the electronic equipment roams to the abnormal basic service set, the electronic equipment can still process the service according to the preloaded first data, so that the problem of network blocking in the network roaming process is reduced, the network using efficiency of the electronic equipment is improved, and the communication efficiency of the electronic equipment is improved. And when the second time length is less than or equal to the roaming time length, starting the data preloading function of the electronic equipment, so that the cache data volume of the electronic equipment is reduced.
The network roaming device 500 in the embodiment of the present application may be an electronic device, or may be a component in an electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the electronic device may be a mobile phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, mobile internet appliance (Mobile Internet Device, MID), augmented reality (augmented reality, AR)/Virtual Reality (VR) device, robot, wearable device, ultra-mobile personal computer, UMPC, netbook or personal digital assistant (personal digital assistant, PDA), etc., but may also be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The network roaming device 500 in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
The network roaming device 500 provided in the embodiment of the present application can implement each process implemented by the embodiments of the methods of fig. 1 to 4, and in order to avoid repetition, a description is omitted here.
Optionally, as shown in fig. 6, the embodiment of the present application further provides an electronic device 600, including a processor 602 and a memory 604, where the memory 604 stores a program or instructions that can be executed on the processor 602, and the program or instructions implement the steps of the above-mentioned network roaming method embodiment when executed by the processor 602, and achieve the same technical effects, so that repetition is avoided, and no further description is given here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 7 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 700 includes, but is not limited to: radio frequency unit 701, network module 702, audio output unit 703, input unit 704, sensor 705, display unit 706, user input unit 707, interface unit 708, memory 709, and processor 710.
Those skilled in the art will appreciate that the electronic device 700 may also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 710 via a power management system so as to perform functions such as managing charge, discharge, and power consumption via the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
Wherein the processor 710 is configured to obtain basic service set information of a connected access point device.
The processor 710 is further configured to determine, if the basic service set information indicates that the access point device has at least two basic service sets, a network state of each basic service set according to roaming information of the electronic device corresponding to each basic service set.
The processor 710 is further configured to obtain, when the network status of the first basic service set of the at least two basic service sets is an abnormal status, historical time information of roaming frames of the first basic service set sent by the access point device.
The processor 710 is further configured to preload the first data according to the historical time information and roaming information corresponding to the first basic service set by the electronic device before roaming to the first basic service set by the second basic service set of the at least two basic service sets.
Wherein the network state of the second basic service set is a normal state.
In the embodiment of the application, basic service set information of connected access point equipment is obtained, and the network state of each basic service set is determined according to roaming information corresponding to each basic service set of electronic equipment under the condition that the basic service set information indicates that the access point equipment has at least two basic service sets; acquiring historical time information of roaming frames of a first basic service set sent by access point equipment under the condition that the network state of the first basic service set of at least two basic service sets is an abnormal state; preloading first data according to historical time information and roaming information corresponding to the first basic service set by the electronic equipment before roaming to the first basic service set by a second basic service set of at least two basic service sets; wherein the network state of the second basic service set is a normal state. Through the network roaming method, when the electronic equipment is connected with the access point equipment with at least two basic service sets, the electronic equipment can determine the network state of each basic service set according to the roaming information corresponding to each basic service set, and then the first data is preloaded before roaming to the basic service set in an abnormal state. Therefore, the problem of network blocking caused by frequent network disconnection and poor network quality of the electronic equipment in the network roaming process is reduced, the network utilization efficiency of the electronic equipment is improved, and the communication efficiency of the electronic equipment is improved.
Optionally, the roaming information includes a number of network roaming times of the electronic device corresponding to each basic service set, and the processor 710 is specifically configured to: under the condition that the network roaming times of the electronic equipment corresponding to the basic service set is smaller than a time threshold, determining that the network state of the basic service set is a normal state; and under the condition that the network roaming times of the electronic equipment corresponding to the basic service set is greater than or equal to a time threshold value, determining the network state of the basic service set as an abnormal state.
According to the embodiment, the roaming information includes the network roaming times corresponding to each basic service set of the electronic device, and in the process of determining the network state of each basic service set according to the roaming information corresponding to each basic service set of the electronic device, the network state of the basic service set is determined to be a normal state under the condition that the network roaming times corresponding to the basic service set of the electronic device is smaller than a time threshold; and under the condition that the network roaming times of the electronic equipment corresponding to the basic service set is greater than or equal to a time threshold value, determining the network state of the basic service set as an abnormal state. In this way, the network state of each basic service set is determined based on the network roaming times of the electronic equipment corresponding to each basic service set, and the accuracy of determining the network state of the basic service set is ensured, so that the accuracy of subsequent network roaming control is ensured.
Optionally, the roaming information of the first basic service set includes a roaming duration of the electronic device corresponding to the first basic service set, and the processor 710 is specifically configured to: determining the interval duration of two adjacent roaming frames according to the historical time information; preloading the first data under the condition that the interval duration is less than or equal to the roaming duration; the first data are data in a first time period after the current time; the roaming duration is the duration consumed by the process that the electronic device roams from the second basic service set to the first basic service set and then reconnects from the first basic service set to the second basic service set, and the first duration is greater than or equal to the roaming duration.
According to the embodiment, the roaming information of the first basic service set includes the roaming duration of the electronic device corresponding to the first basic service set, and in the process of preloading the first data according to the historical time information and the roaming information of the electronic device corresponding to the first basic service set, the interval duration of two adjacent roaming frames is determined according to the historical time information; preloading the first data under the condition that the interval duration is less than or equal to the roaming duration; the first data are data in a first time period after the current time; the roaming duration is the duration consumed by the process that the electronic device roams from the second basic service set to the first basic service set and then reconnects from the first basic service set to the second basic service set, and the first duration is greater than or equal to the roaming duration. In this way, in the process that the electronic equipment roams to the abnormal basic service set, the electronic equipment can still process the service according to the preloaded first data, so that the problem of network blocking in the network roaming process is reduced, the network using efficiency of the electronic equipment is improved, and the communication efficiency of the electronic equipment is improved.
Optionally, the processor 710 is further configured to: under the condition that the interval time length is longer than the roaming time length, calculating a second time length from the current time to the time when the roaming frame is received next according to the interval time length and the time information of the previous time when the roaming frame is received; and under the condition that the second time length is less than or equal to the roaming time length, preloading the first data according to the data transmission rate of the electronic equipment until the roaming frame is received.
According to the embodiment, after the interval time length of two adjacent roaming frames is determined according to the historical time information, calculating the second time length from the current time to the time when the roaming frame is received next according to the interval time length and the time information of the previous roaming frame received when the interval time length is longer than the roaming time length; and under the condition that the second time length is less than or equal to the roaming time length, preloading the first data according to the data transmission rate of the electronic equipment until the roaming frame is received. In this way, in the process that the electronic equipment roams to the abnormal basic service set, the electronic equipment can still process the service according to the preloaded first data, so that the problem of network blocking in the network roaming process is reduced, the network using efficiency of the electronic equipment is improved, and the communication efficiency of the electronic equipment is improved. And when the second time length is less than or equal to the roaming time length, starting the data preloading function of the electronic equipment, so that the cache data volume of the electronic equipment is reduced.
It should be appreciated that in embodiments of the present application, the input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042, with the graphics processor 7041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 707 includes at least one of a touch panel 7071 and other input devices 7072. The touch panel 7071 is also referred to as a touch screen. The touch panel 7071 may include two parts, a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
The memory 709 may be used to store software programs as well as various data. The memory 709 may mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 709 may include volatile memory or nonvolatile memory, or the memory 709 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). Memory 709 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 710 may include one or more processing units; optionally, processor 710 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, and the like, and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 710.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored, where the program or the instruction realizes each process of the above embodiment of the network roaming method when executed by a processor, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
The processor is a processor in the electronic device in the above embodiment. Readable storage media include computer readable storage media such as computer readable memory ROM, random access memory RAM, magnetic or optical disks, and the like.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running a program or instructions, each process of the above network roaming method embodiment is implemented, and the same technical effects can be achieved, so that repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
The embodiments of the present application provide a computer program product stored in a storage medium, where the program product is executed by at least one processor to implement the respective processes of the embodiments of the network roaming method described above, and achieve the same technical effects, and are not repeated herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods of the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (10)

1. A network roaming method, performed by an electronic device, the network roaming method comprising:
acquiring basic service set information of connected access point equipment, and determining the network state of each basic service set according to roaming information corresponding to each basic service set of the electronic equipment under the condition that the basic service set information indicates that the access point equipment has at least two basic service sets;
acquiring historical time information of roaming frames of a first basic service set sent by the access point equipment under the condition that network states of the first basic service set in at least two basic service sets are abnormal;
preloading first data according to the historical time information and the roaming information corresponding to the first basic service set by the electronic equipment before roaming to the first basic service set by a second basic service set of at least two basic service sets;
wherein the network state of the second basic service set is a normal state.
2. The network roaming method of claim 1, wherein the roaming information includes a number of network roaming times of the electronic device corresponding to each of the basic service sets, and the determining the network state of each of the basic service sets according to the roaming information of the electronic device corresponding to each of the basic service sets includes:
Determining that the network state of the basic service set is a normal state under the condition that the network roaming times of the electronic equipment corresponding to the basic service set is smaller than a time threshold;
and determining that the network state of the basic service set is an abnormal state under the condition that the network roaming times of the electronic equipment corresponding to the basic service set is greater than or equal to the times threshold value.
3. The network roaming method of claim 1 or 2, wherein the roaming information of the first basic service set includes a roaming duration of the electronic device corresponding to the first basic service set, and the preloading the first data according to the historical time information and the roaming information of the electronic device corresponding to the first basic service set includes:
determining interval duration of two adjacent roaming frames according to the historical time information;
preloading the first data under the condition that the interval duration is less than or equal to the roaming duration;
the first data are data in a first duration after the current moment;
the roaming duration is a duration consumed by the process that the electronic device roams from the second basic service set to the first basic service set and reconnects from the first basic service set to the second basic service set, and the first duration is greater than or equal to the roaming duration.
4. The network roaming method of claim 3, wherein after determining the interval duration of receiving two adjacent roaming frames according to the historical time information, the network roaming method further comprises:
calculating a second time length from the current time to the next time of receiving the roaming frame according to the interval time length and the time information of the previous time of receiving the roaming frame under the condition that the interval time length is longer than the roaming time length;
and under the condition that the second duration is less than or equal to the roaming duration, preloading the first data according to the data transmission rate of the electronic equipment until the roaming frame is received.
5. A network roaming device, characterized by being applied to an electronic apparatus, the network roaming device comprising:
an acquisition unit, configured to acquire basic service set information of a connected access point device;
the processing unit is used for determining the network state of each basic service set according to the roaming information corresponding to each basic service set of the electronic equipment under the condition that the basic service set information indicates that at least two basic service sets exist in the access point equipment;
The acquiring unit is further configured to acquire historical time information of a roaming frame of a first basic service set sent by the access point device when network states of the first basic service set in at least two basic service sets are abnormal;
the processing unit is further configured to pre-load first data according to the historical time information and the roaming information corresponding to the first basic service set by the electronic device before roaming to the first basic service set by a second basic service set of at least two basic service sets;
wherein the network state of the second basic service set is a normal state.
6. The network roaming device of claim 5, wherein the roaming information includes a number of network roaming times of the electronic equipment corresponding to each of the basic service sets, and the processing unit is specifically configured to:
determining that the network state of the basic service set is a normal state under the condition that the network roaming times of the electronic equipment corresponding to the basic service set is smaller than a time threshold;
and determining that the network state of the basic service set is an abnormal state under the condition that the network roaming times of the electronic equipment corresponding to the basic service set is greater than or equal to the times threshold value.
7. The network roaming apparatus according to claim 5 or 6, wherein the roaming information of the first basic service set includes a roaming duration of the electronic device corresponding to the first basic service set, and the processing unit is specifically configured to:
determining interval duration of two adjacent roaming frames according to the historical time information;
preloading the first data under the condition that the interval duration is less than or equal to the roaming duration;
the first data are data in a first duration after the current moment;
the roaming duration is a duration consumed by the process that the electronic device roams from the second basic service set to the first basic service set and reconnects from the first basic service set to the second basic service set, and the first duration is greater than or equal to the roaming duration.
8. The network roaming device of claim 7, wherein the processing unit is further configured to:
calculating a second time length from the current time to the next time of receiving the roaming frame according to the interval time length and the time information of the previous time of receiving the roaming frame under the condition that the interval time length is longer than the roaming time length;
And under the condition that the second duration is less than or equal to the roaming duration, preloading the first data according to the data transmission rate of the electronic equipment until the roaming frame is received.
9. An electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the network roaming method of any of claims 1 to 4.
10. A readable storage medium, characterized in that it has stored thereon a program or instructions which, when executed by a processor, implement the steps of the network roaming method according to any of claims 1 to 4.
CN202311799300.6A 2023-12-25 2023-12-25 Network roaming method and device, electronic equipment and readable storage medium Pending CN117528687A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311799300.6A CN117528687A (en) 2023-12-25 2023-12-25 Network roaming method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311799300.6A CN117528687A (en) 2023-12-25 2023-12-25 Network roaming method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN117528687A true CN117528687A (en) 2024-02-06

Family

ID=89745874

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311799300.6A Pending CN117528687A (en) 2023-12-25 2023-12-25 Network roaming method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN117528687A (en)

Similar Documents

Publication Publication Date Title
US8140120B2 (en) Apparatus and method for providing network service in a portable communication system
CN108965306B (en) Call processing method and mobile terminal
CN110831078B (en) Cell reselection method, terminal and network side equipment
CN107231159B (en) Radio frequency interference processing method, device, storage medium and terminal
CN106604314B (en) WiFi roaming network access method and terminal equipment
US7532903B2 (en) Method for performing TRS communication in a mobile communication terminal
CN112887927B (en) Voice fallback method and device and user equipment
CN110022553B (en) User identity identification card management method and mobile terminal
CN111866976B (en) Network switching method and device
CN111988771B (en) Wireless connection control method and device and electronic equipment
US20210377765A1 (en) Processing Method For Terminal Measurement and Terminal
US20240007906A1 (en) Voice service switching method and apparatus and user equipment
CN113316206A (en) Cell reselection method, device, terminal equipment and storage medium
CN112333763A (en) Network selection method and device
CN109565735A (en) The methods, devices and systems of network connection management
CN110351702B (en) System information area determining method, indicating method, terminal and network equipment
CN112333762B (en) Network registration method and device
CN114125739B (en) Network switching method and device, electronic equipment and storage medium
CN114143842B (en) Cell access method and device
CN115314962A (en) Cell access method and device
CN115460665A (en) Network switching method and device
CN117528687A (en) Network roaming method and device, electronic equipment and readable storage medium
US20070191049A1 (en) Method and apparatus of neighbor cell management for reducing power consumption in a mobile communication terminal
CN108476465B (en) CSFB network holding method and user terminal
CN113163477A (en) Price tag dormancy control method and equipment and computer readable storage medium

Legal Events

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