WO2022233198A1 - Wireless network switching method and apparatus, chip, electronic device, and storage medium - Google Patents

Wireless network switching method and apparatus, chip, electronic device, and storage medium Download PDF

Info

Publication number
WO2022233198A1
WO2022233198A1 PCT/CN2022/083155 CN2022083155W WO2022233198A1 WO 2022233198 A1 WO2022233198 A1 WO 2022233198A1 CN 2022083155 W CN2022083155 W CN 2022083155W WO 2022233198 A1 WO2022233198 A1 WO 2022233198A1
Authority
WO
WIPO (PCT)
Prior art keywords
wireless
channel
electronic device
access component
sub
Prior art date
Application number
PCT/CN2022/083155
Other languages
French (fr)
Chinese (zh)
Inventor
许超杰
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022233198A1 publication Critical patent/WO2022233198A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application relates to the field of wireless communication technologies, and in particular, to a wireless network switching method, device, chip, electronic device and storage medium.
  • Wi-Fi Wireless-Fidelity
  • VoIP Voice over Internet Protocol
  • IP-based voice transmission multimedia and data transmission
  • two or more sets of independent MAC (Media Access Control, physical address) layers and The PHY (Physical Layer, port physical) layer and the independent radio frequency antenna hardware configuration can ensure that they can work independently of each other without interfering with each other, so Wi-Fi terminals can connect to two or more WI-FIs at the same time.
  • the terminal can also achieve network connection through other connected WI-FIs.
  • Embodiments of the present application provide a wireless network switching method, apparatus, chip, electronic device, and storage medium.
  • the technical solution is as follows:
  • a wireless network switching method is provided, the method is performed by an electronic device, when the electronic device establishes a connection with a wireless network through a first wireless access component through a first wireless channel, a second wireless The access component is in a state of no network connection, and the method includes:
  • the electronic device When the first wireless channel is in an abnormal state, the electronic device establishes a connection with the wireless network by using the second wireless channel through the second wireless access component;
  • the electronic device In response to the electronic device establishing a connection with the wireless network through the second wireless access component with the second wireless channel, the electronic device disconnects the first wireless access component from the wireless network Internet connection.
  • a wireless network switching apparatus when an electronic device establishes a connection with a wireless network through a first wireless access component through a first wireless channel, the second wireless access component of the electronic device has no network connection state, the device includes:
  • a first connection module configured to establish a connection between the electronic device and the wireless network through a second wireless channel through a second wireless access component when the first wireless channel is in an abnormal state
  • a first disconnecting module configured to disconnect the first wireless access component from the electronic device in response to the electronic device establishing a connection with the wireless network through the second wireless channel through the second wireless access component A network connection to the wireless network.
  • an embodiment of the present application provides a communication chip, in which the wireless network switching device according to the above aspect is provided.
  • an embodiment of the present application provides an electronic device, the electronic device includes a communication chip and a memory, the communication chip and the memory are connected through a bus; the communication chip includes the above-mentioned aspect Wireless network switching device.
  • an embodiment of the present application provides a terminal, the terminal includes a processor, a memory, and a transceiver, the memory stores a computer program, and the computer program is used to be executed by the processor to implement the above-mentioned Wireless network switching method.
  • an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the storage medium, and the computer program is loaded and executed by a processor to implement the above wireless network switching method.
  • a computer program product or computer program comprising computer instructions stored in a computer-readable storage medium.
  • the processor of the terminal reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the terminal executes the above wireless network switching method.
  • FIG. 1 is a schematic diagram of a network architecture of a provided communication system according to an exemplary embodiment
  • FIG. 2 shows a schematic diagram of the hardware structure of a dual-connection chip
  • FIG. 3 is a schematic flowchart of a wireless network handover method according to an exemplary embodiment
  • FIG. 4 is a method flowchart of a wireless network handover method provided according to an exemplary embodiment
  • Fig. 5 shows a schematic diagram of a physical link of an electronic device involved in the embodiment shown in Fig. 4;
  • FIG. 6 is a flowchart of a wireless network switching method according to an exemplary embodiment
  • FIG. 7 is a structural block diagram of a wireless network switching apparatus according to an exemplary embodiment
  • FIG. 8 shows a schematic structural diagram of a computer device provided by an embodiment of the present application.
  • A indicates B
  • it can indicate that A directly indicates B for example, B can be obtained through A
  • the term "corresponding" may indicate that there is a direct or indirect corresponding relationship between the two, or may indicate that there is an associated relationship between the two, or indicate and be instructed, configure and be instructed configuration, etc.
  • "predefinition" may be implemented by pre-saving corresponding codes, forms, or other means that can be used to indicate relevant information in devices (for example, including terminal devices and network devices).
  • predefined may refer to the definition in the protocol.
  • Wi-Fi also known as "mobile hotspot” in Chinese, is the trademark of the Wi-Fi Alliance manufacturer as the brand certification of the product. It is a wireless local area network technology created in the IEEE 802.11 standard. Based on the close relationship between the two systems, Wi-Fi is often used as a synonym for the IEEE 802.11 standard.
  • a link refers to a passive point-to-point physical connection.
  • a link refers to the physical line, such as a cable or fiber optics, between two nodes.
  • the link In radio communication, the link refers to the path space for the propagation of electromagnetic waves between the base station and the terminal. In underwater acoustic communication, the link refers to the path space of the propagating sound wave between the transducer and the hydrophone.
  • FIG. 1 is a schematic diagram of a network architecture of a communication system according to an exemplary embodiment.
  • the network architecture may include: a terminal 10 and a network-side device 20 .
  • the same network-side device 20 can usually access multiple terminals 10 at the same time.
  • the terminal 10 may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to the wireless modem, as well as various forms of user equipment (User Equipment, UE), mobile stations ( Mobile Station, MS), terminal device, etc.
  • UE User Equipment
  • MS Mobile Station
  • terminals the devices mentioned above are collectively referred to as terminals.
  • the network-side device 20 is a device deployed in an access network to provide a wireless communication function for the terminal 10 .
  • the network-side device 20 may include various forms of macro base stations, micro base stations, relay stations, access points, and the like.
  • the names of devices with base station functions may be different, for example, in 5G New Radio (NR) systems, they are called gNodeBs or gNBs.
  • NR 5G New Radio
  • the name "base station” may change.
  • the above-mentioned apparatuses for providing a wireless communication function for the terminal 10 are collectively referred to as network-side devices.
  • the above-mentioned network architecture also includes other network devices, such as: a central control node (Central Network Control, CNC), an access and mobility management function (Access and Mobility Management Function, AMF) ) device, session management function (Session Management Function, SMF) or user plane function (User Plane Function, UPF) device, etc.
  • a central control node Central Network Control, CNC
  • AMF Access and Mobility Management Function
  • SMF Session Management Function
  • UPF User Plane Function
  • FIG. 2 shows a schematic diagram of the hardware structure of a dual-connection chip.
  • the Wi-Fi terminal implements two or more sets of independent wireless access components on its chip structure.
  • Each wireless access component includes MAC (Media Access Control, physical address) layer, PHY The (Physical Layer, port physical) layer and the hardware configuration of the radio frequency antenna can ensure that each wireless access component can work independently of each other without interfering with each other.
  • the second wireless access component in the electronic device is in a state of no network connection
  • the electronic device When the first wireless channel is in an abnormal state, the electronic device establishes a connection with the wireless network by using the second wireless channel through the second wireless access component;
  • the electronic device In response to the electronic device establishing a connection with the wireless network through the second wireless access component through the second wireless channel, the electronic device disconnects the network connection between the first wireless access component and the wireless network.
  • the second wireless channel is a wireless channel other than the first wireless channel among the wireless channels corresponding to the first terminal.
  • the method further includes:
  • the electronic device obtains the first monitoring information; the first monitoring information is the monitoring information of the second wireless channel by the second wireless access component;
  • the electronic device When the first wireless channel is in an abnormal state, the electronic device establishes a connection with the wireless network through the second wireless access component through the second wireless channel, including:
  • the electronic device When the first wireless channel is in an abnormal state, the electronic device establishes a connection with the wireless network by using the second wireless channel through the second wireless access component according to the first monitoring information.
  • the second wireless channel includes at least one wireless sub-channel
  • the electronic device obtains the first monitoring information, including:
  • the electronic device monitors at least one wireless sub-channel through the second wireless access component, and obtains first monitoring information, where the first monitoring information includes monitoring information corresponding to at least one wireless sub-channel.
  • the electronic device when the first wireless channel is in an abnormal state, according to the first monitoring information, the electronic device establishes a connection with the wireless network by using the second wireless channel through the second wireless access component, including:
  • the electronic device determines the first wireless sub-channel in at least one wireless sub-channel according to the first monitoring information
  • the electronic device establishes a connection with the wireless network by using the first wireless sub-channel through the second wireless access component.
  • the electronic device determines the first wireless sub-channel in at least one wireless sub-channel according to the first monitoring information, including:
  • the electronic device When the first wireless channel is in an abnormal state, the electronic device obtains a channel quality value corresponding to each wireless sub-channel in the at least one wireless sub-channel according to the monitoring information corresponding to the at least one wireless sub-channel;
  • the electronic device determines the first wireless sub-channel in the at least one wireless sub-channel according to the channel quality values corresponding to each wireless sub-channel in the at least one wireless sub-channel.
  • the electronic device determines the first wireless sub-channel in the at least one wireless sub-channel according to the channel quality values corresponding to each wireless sub-channel in the at least one wireless sub-channel, including:
  • the electronic device determines at least one candidate subchannel in the at least one wireless subchannel according to the channel quality value corresponding to each wireless subchannel in the at least one wireless subchannel; the channel quality value of the candidate subchannel is greater than the quality threshold;
  • the electronic device determines the first wireless subchannel among at least one candidate subchannel.
  • the monitoring information corresponding to the wireless subchannel includes the service set identifier SSID corresponding to the wireless subchannel, the basic service set identifier BSSID corresponding to the wireless subchannel, the wireless received signal strength RSSI corresponding to the wireless subchannel, and the corresponding wireless subchannel. At least one of the idle channel assessment CCA, the round-trip delay RTT corresponding to the wireless subchannel, the physical layer rate of the transmitted data packet corresponding to the wireless subchannel, and the physical layer rate of the received data packet corresponding to the wireless subchannel.
  • the method also includes:
  • the electronic device monitors the first wireless channel through the first wireless access component.
  • the electronic device needs to ensure the stability of the network connection, it can use multiple sets of independent wireless access components at the same time, and connect with Wi-Fi through different channels to ensure that when a wireless access component accesses the network
  • it can be switched to the network accessed by another wireless access component in real time to ensure that the network connection is not interrupted, but at the same time, it is connected to multiple Wi-Fi through multiple sets of independent wireless access components.
  • Resource consumption is high.
  • the present application provides a wireless network switching method, which can realize seamless switching of network connections and reduce resource consumption of electronic devices.
  • FIG. 3 is a schematic flowchart of a wireless network switching method according to an exemplary embodiment.
  • the method may be performed by an electronic device, where the electronic device may be the terminal 10 in the embodiment shown in FIG. 1 above.
  • the electronic device when the electronic device establishes a connection with the wireless network through the first wireless access component through the first wireless channel, the second wireless access component is in a state of no network connection, and the process of the wireless network switching method may include:
  • the process of the wireless network switching method may include:
  • Step 31 when the first wireless channel is in an abnormal state, the electronic device establishes a connection with the wireless network through the second wireless access component through the second wireless channel.
  • the electronic device When the electronic device establishes a connection with the wireless network through the first wireless access component through the first wireless channel, and the second wireless access component does not establish a connection with the wireless network (that is, the second wireless access component has no network connection state), at this time, if the first wireless channel is in an abnormal state (such as disconnected or unstable connection), then the first wireless channel is not suitable as the channel corresponding to the network connection at this time, and the electronic device can pass the wireless
  • the second wireless access component in the network connection state establishes a connection with the wireless network through the second wireless channel.
  • Step 32 in response to the electronic device establishing a connection with the wireless network through the second wireless access component through the second wireless channel, disconnect the network connection between the first wireless access component and the wireless network.
  • the electronic device After the electronic device establishes a connection with the wireless network through the second wireless access component through the second wireless channel, the electronic device has achieved the network connection through the second wireless access component, and the first wireless access component can be used at this time.
  • the component is disconnected from the network connection of the wireless network, reducing the power consumption of the electronic device.
  • the first wireless access component establishes a connection with the wireless network
  • the second wireless access component establishes a connection with the wireless network.
  • FIG. 4 is a method flowchart of a wireless network switching method provided according to an exemplary embodiment.
  • the method may be performed by an electronic device, and the electronic device may be a terminal, where the terminal may be the terminal 10 in the embodiment shown in FIG. 1 above.
  • the wireless network switching method may include the following steps:
  • Step 401 the electronic device acquires first monitoring information.
  • the first monitoring information is monitoring information of the second wireless channel by the second wireless access component.
  • the electronic device when the electronic device establishes a connection with the wireless network through the first wireless access component through the first wireless channel, and the second wireless access component is in a disconnected state, the electronic device uses the first wireless access component to establish a connection with the wireless network.
  • the second wireless access component is determined to be in a listening state.
  • the first wireless access component and the second wireless access component are any two sets of the at least two sets of wireless access components.
  • the electronic device within the first specified time, establishes a connection with the wireless network through the first wireless access component through the first wireless channel, and when the second wireless access component is in a disconnected state, The electronic device determines that the second wireless access component is in a listening state.
  • the electronic device when the electronic device establishes a connection with the wireless network through the first wireless access component through the first wireless channel, the electronic device may first detect the connection status of the first wireless access component and the second wireless access component, When it is detected that the first wireless access component is in the network connection state and the second wireless access component is in the disconnected state within the first specified time, it means that the second wireless access component is not occupied by other applications at this time, The electronic device can use the second wireless access component normally without causing interference to other applications.
  • the first wireless access component and the second wireless access component may be two sets of mutually independent wireless access components as shown in FIG. 2 , and the electronic device may use the first wireless channel through the first wireless access component at this time.
  • a connection is established with a wireless network, so the first wireless access component can also be called a primary physical link; the second wireless access component can be called a secondary physical link, and the secondary physical link can be connected to the primary physical link
  • the road is abnormal, it assists the electronic device to connect to the network.
  • the electronic device has a first network application program that controls the Wi-Fi access component, and the first network application program monitors that the first wireless access component is in a working state, and The second wireless access component is in a disconnected state, when it is detected that the first wireless access component is in a working state and the second wireless access component is in a disconnected state and remains in a first specified time, the The first network application may send a configuration command to the second wireless access component, indicating that the second wireless access component is in a listening state.
  • the first wireless channel is any one of various wireless channels corresponding to the electronic device.
  • the electronic device monitors each wireless channel through the first wireless access component, obtains the channel quality corresponding to each wireless channel, and determines the first wireless channel according to the channel quality corresponding to each wireless channel channel; the electronic device establishes a connection with the wireless network through the first wireless access component through the first wireless channel.
  • the electronic device monitors at least one wireless sub-channel through the second wireless access component to obtain the first monitoring information.
  • the second wireless channel includes at least one wireless sub-channel; the first monitoring information includes monitoring information corresponding to the at least one wireless sub-channel.
  • the second wireless channel is a wireless channel other than the first wireless channel among the wireless channels corresponding to the electronic device.
  • the second wireless access component can connect to the wireless channel other than the first wireless channel (That is, the second wireless channel) is detected to ensure that while monitoring other idle channels, interference to the first wireless channel caused by the detection of the second wireless access component is avoided.
  • the second wireless access component can work in a listening state, and the second wireless access component can perform the second wireless channel
  • Each wireless sub-channel in the device is monitored, and the monitoring information is uploaded to the first network application, so that the first network application can count the channel status of each channel.
  • the monitoring information corresponding to the wireless sub-channel includes an SSID (Service Set Identifier, service set identifier) corresponding to the wireless sub-channel, a BSSID (Basic Service Set Identifier, basic service set identifier) corresponding to the wireless sub-channel Service Set Identifier), RSSI (Received Signal Strength Indicator, wireless received signal strength) corresponding to the wireless sub-channel, CCA (Clear Channel Assessment, idle channel assessment) corresponding to the wireless sub-channel, RTT ( Round-trip time, round-trip delay), at least one of the physical layer rate of sending data packets corresponding to the wireless subchannel, and the physical layer rate of receiving data packets corresponding to the wireless subchannel.
  • SSID Service Set Identifier, service set identifier
  • BSSID Basic Service Set Identifier, basic service set identifier
  • RSSI Receiveived Signal Strength Indicator, wireless received signal strength
  • CCA Charge Channel Assessment
  • RTT Round-trip time, round-trip delay
  • the electronic device determines each wireless sub-channel in the second wireless channel, performs background scanning on each wireless sub-channel at the frequency point of each wireless sub-channel, and obtains each wireless sub-channel channel status.
  • the electronic device performs background scanning on each wireless sub-channel at the frequency point of each wireless sub-channel according to a specified period through the second wireless access component, and obtains the channel status of each wireless sub-channel .
  • each wireless sub-channel in the second wireless channel, the designated period and the listening time of each channel may be configured by the first network application.
  • Step 402 when the first wireless channel is in an abnormal state, the electronic device establishes a connection with the wireless network through the second wireless access component through the second wireless channel according to the first monitoring information.
  • the first wireless sub-channel is determined in the at least one wireless sub-channel according to the first monitoring information.
  • that the first wireless channel is in an abnormal state means that the communication connection established by the first wireless access component and the first wireless channel is abnormal.
  • the electronic device detects the first network connection established by the first wireless access component and the first wireless channel, and when detecting that the network quality of the first network connection is lower than a quality threshold, the electronic device The device determines that the first wireless channel is in an abnormal state.
  • the network quality of the first network connection is lower than the quality threshold, it means that the first network connection established by the first wireless access component and the first wireless channel is not stable enough, so the first wireless channel is determined to be abnormal state.
  • the electronic device detects the first network connection established by the first wireless access component and the first wireless channel, and when detecting that the bit error rate of the information received through the first network connection is greater than The error threshold is used to determine the first wireless channel as an abnormal state.
  • the electronic device detects a first application program, where the first application program is an application program that performs data transmission through a first network connection established between the first wireless access component and the first wireless channel , when it is detected that the data transmission of the first application is abnormal, the first wireless channel is determined to be in an abnormal state.
  • the first application may be the first web application. That is, after the electronic device establishes a first network connection with the first wireless channel through the first wireless access component, the first network application can detect the data transmission status of the first network connection. When the data transmission state of the network connection is abnormal, the first wireless channel is marked as an abnormal state, so that the electronic device can reselect the wireless channel for network connection.
  • the electronic device when the first wireless channel is in an abnormal state, obtains, according to the monitoring information corresponding to the at least one wireless sub-channel, a channel corresponding to each wireless sub-channel in the at least one wireless sub-channel respectively quality value; the electronic device determines the first wireless sub-channel in the at least one wireless sub-channel according to the channel quality value corresponding to each wireless sub-channel in the at least one wireless sub-channel.
  • the electronic device can select the most suitable wireless channel from the second wireless channel as the first wireless channel channel, so that the electronic device realizes network connection with the first wireless sub-channel through the second wireless access component.
  • the electronic device determines at least one candidate sub-channel in the at least one wireless sub-channel according to the channel quality values corresponding to each wireless sub-channel in the at least one wireless sub-channel; the candidate sub-channel The channel quality value of the channel is greater than the quality threshold; the electronic device determines the first wireless subchannel in the at least one candidate subchannel.
  • the electronic device can compare the channel quality value corresponding to each wireless subchannel with a quality threshold to determine the candidate subchannel , so that when the first wireless channel is in an abnormal state, the first wireless sub-channel can be selected from the candidate sub-channels to realize network connection.
  • the electronic device obtains monitoring information corresponding to each wireless sub-channel in the second channel through the first network application, and determines at least one available sub-channel according to the channel information, and according to the The first wireless subchannel is determined by the channel quality value of at least one available subchannel.
  • the monitoring information includes the SSID, BSSID in each channel and the signal strength RSSI of the matching frame. After detecting the monitoring information corresponding to each wireless sub-channel in the second channel, the monitoring information can be obtained according to the SSID and BSSID in each channel. , determine whether the electronic device has a wireless network that can be accessed in each wireless sub-channel, and when there is a wireless sub-channel that can be accessed, determine the wireless sub-channel as an available sub-channel; the electronic device then passes the RSSI in each channel, determine the signal attenuation degree of the available wireless network in each channel, determine the channel quality value of the available subchannel, and determine the available subchannel with the highest channel quality value as the first wireless subchannel .
  • the electronic device records the SSID, BSSID of each monitoring channel and the signal strength RSSI of the matching frame through the upper-layer application program, and at the same time uses the CCA busy state of the channel to sequentially calculate the amount of interference and the strength indication of each channel, and the statistical results are real-time.
  • Update determine the first wireless sub-channel to be accessed by the second wireless access component according to the statistical result.
  • the monitoring information corresponding to each wireless sub-channel also includes the RTT (Round-Trip Time, round-trip delay) delay in each wireless sub-channel or the sending Tx (transmitting data), receiving Rx (received data) physical layer rate.
  • RTT Red-Trip Time, round-trip delay
  • the upper-layer APP triggers the network connection of the auxiliary link, and sequentially selects According to the RTT delay or the physical layer rate of transmission/reception, the maximum throughput and effectiveness of the current network connection are indirectly evaluated, and the optimal auxiliary link working channel is selected, while maintaining the physical network connection.
  • FIG. 5 shows a schematic diagram of a physical link of an electronic device according to an embodiment of the present application.
  • the electronic device includes an upper-layer application program 501 (APP, application) and a WI-FI module 502 , and the upper-layer application program includes an arbitration module, and the arbitration module is used to instruct the WI-FI module 502 to pass the Any one of the wireless access modules is connected to the wireless channel, or used to instruct any one of the wireless access modules in the WI-FI module 502 to disconnect the network from the wireless channel.
  • APP upper-layer application program
  • WI-FI module 502 the electronic device includes an upper-layer application program 501 (APP, application) and a WI-FI module 502
  • the upper-layer application program includes an arbitration module, and the arbitration module is used to instruct the WI-FI module 502 to pass the Any one of the wireless access modules is connected to the wireless channel, or used to instruct any one of the wireless access modules in the WI-FI module 502 to disconnect the network from the wireless channel.
  • the electronic device establishes a connection with the wireless network by using the first wireless sub-channel through the second wireless access component.
  • the electronic device may establish a connection with the wireless network by using the first wireless sub-channel through the second wireless component.
  • the electronic device establishes a connection with the wireless network through the first wireless access component through the first wireless channel, and the second wireless access component establishes a connection with the wireless network with the first wireless sub-channel. That is, at this time, before the electronic device switches the physical link accessing the network from the first wireless access component to the second wireless access component, a brief dual access process is required, that is, the electronic device passes through the first wireless access component. While the access component establishes a connection with the wireless network through the first wireless channel, the electronic device establishes a connection with the wireless network through the second wireless access component through the first wireless sub-channel to avoid network connection caused by physical link switching Disconnect for seamless network switching.
  • Step 403 in response to the electronic device establishing a connection with the wireless network through the second wireless access component through the second wireless channel, the electronic device disconnects the network connection between the first wireless access component and the wireless network.
  • the electronic device When the electronic device detects that the connection is successfully established with the wireless network through the second wireless access component through the second wireless channel, it indicates that the electronic device is connected to the physical link of the network and successfully switched. At this time, the electronic device can The first wireless access component is disconnected from the first wireless channel to reduce resource consumption of the electronic device.
  • the electronic device can maintain the dual connection state for a period of time to ensure that the network connection established by the second wireless access component is disconnected.
  • Each application that needs to perform data transmission through the network is successfully switched to perform data transmission through the network connection established by the second wireless access component, avoiding network interruption of some applications caused by too fast switching.
  • the electronic device obtains a list of application programs corresponding to the first wireless access component, and when it is detected that all applications in the application program list perform data processing through the network connection established by the second wireless access component During transmission, the network connection of the first wireless access component is disconnected.
  • the electronic device needs to disconnect the network connection established by the first wireless access component, it needs to ensure that disconnecting the network connection will not affect each application in the electronic device, so the first wireless access can be obtained first
  • the list of application programs corresponding to the components to determine the application programs that communicate through the network connection established by the first wireless access component, when the application programs that communicate through the network connection established by the first wireless access component are all communicated through the second wireless access component.
  • the access component After the access component performs data transmission, the network connection of the first wireless access component is disconnected at this time, which will not affect the application program of the electronic device, and the network connection of the first wireless access component can be disconnected at this time.
  • the electronic device determines that the first wireless access component is in a listening state, so as to use the first wireless access component to connect to the first wireless access component. Monitor the wireless channel.
  • the second wireless access component When the first wireless access component is disconnected and is in a disconnected state, the second wireless access component replaces the first wireless access component as a main physical link, and performs network connection through a second wireless channel.
  • the first wireless access component can be determined to be in a monitoring state, and the first wireless channel can be monitored to ensure that when the network connection established by the second wireless access component is abnormal, the first wireless access Enter the component and switch back to the network connection established through the first wireless channel.
  • the electronic device in response to the electronic device disconnecting the network connection between the first wireless access component and the wireless network, uses the first wireless access component to connect to the second wireless channel except for Wireless sub-channels other than the first wireless sub-channel are monitored.
  • the first wireless access component After the electronic device establishes a connection with the wireless network through the second wireless access component through the first wireless sub-channel, the first wireless access component is in a listening state, and the first wireless access component is in addition to the first wireless channel.
  • the second wireless channel can also be monitored on wireless sub-channels other than the first wireless sub-channel, and the signal strength can be found in other wireless channels except the first wireless sub-channel. Higher and more stable wireless channel.
  • the electronic device determines that the first wireless access component is in a listening state, so as to use the first wireless access component The component listens to the first wireless channel.
  • the first wireless access component When the first wireless access component is in the disconnected state and reaches the third specified time period, the first wireless access component is determined to be in the listening state, which can avoid the electronic device being in the first wireless access component due to network instability. Frequent handover between the connected wireless network and the wireless network connected to the second wireless access component avoids unnecessary resource consumption.
  • the method proposed in this scheme can use idle Wi-Fi independent hardware devices to realize real-time detection of wireless air interface environment, and indirectly estimate the busy state (CCA detection) by listening to the busy state of the non-current working channel through the configured real-time channel traversal background scan.
  • Monitor the interference of the channel and report the RSSI, SSID, BSSID and other information of the 802.11 frame of the wireless air interface to the upper layer, and cooperate with the software algorithm to detect the interference strength, so as to lock and select the potential secondary working channel and provide it to the upper layer Software a better channel quality selection.
  • the upper layer will cooperate with the previously idle Wi-
  • the internal hardware of Fi establishes a new wireless network connection. Once the connection is completed, it notifies the upper layer of service switching, and the service layer can open two independent port communication at the same time. The link is disconnected, as a detection link, so as to realize the Ping-Pong operation on the physical connection.
  • the upper layer can work in the listening state after the secondary link is issued by the configuration command (pay attention to avoid the current main working channel and working bandwidth at the same time, to prevent the false statistics of the interference state), then the secondary link periodic timing is in different non-interference states.
  • Enable background scanning between working frequency points record the busy status of the CCA monitoring channel, and mark the status of the idle physical link as the Monitor status. Parameters such as the dwell time of each channel, the list of monitoring channels, and the monitoring period of CCA can be modified through the configuration commands issued;
  • the upper-layer APP records the SSID, BSSID of each monitoring channel and the signal strength RSSI of the matching frame, and simultaneously utilizes the CCA busy state of the channel to sequentially calculate the amount of interference and the strength indication of each channel, and the statistical results are updated in real time;
  • the upper-layer APP is notified, the physical link migration of the main network can be realized, the network request for disconnecting the first wireless access component is sent, and the second wireless access component is marked as the main working link.
  • the first wireless access component is marked as a secondary working link, and the state is Ready.
  • the monitoring function may continue to be implemented by using the secondary physical link of the first radio access component as required.
  • the idle secondary Wi-Fi physical link is used as the interference monitoring mode, which can dynamically monitor the amount and strength of the interference of the non-working channel in real time, and report the monitoring status to the upper-layer application, so as to realize the business capability of the main working channel.
  • alternative channels can be selected to realize seamless switching of network status.
  • This solution keeps only one physical link working at the same time, so it has more advantages in power consumption compared to the physical links with multiple connections at the same time.
  • This solution can continuously monitor the optimal working channel in the current working environment, thereby ensuring that the next network handover has a higher handover success rate and satisfies the fluency of services.
  • the first wireless access component establishes a connection with the wireless network
  • the second wireless access component establishes a connection with the wireless network.
  • FIG. 6 is a flow chart of a wireless network switching method according to an exemplary embodiment. As shown in Figure 6, the wireless network switching method includes the following steps:
  • the main connection is running (that is, the first wireless access component is in a normal working state), at this time, the electronic device accesses the first wireless channel through the first wireless access component to construct a network connection.
  • the electronic device detects whether the electronic device is connected to two channels simultaneously through two physical links, and when the electronic device is simultaneously connected to two channels through two physical links, it indicates that the two physical links ( That is, the two wireless access components) are in the connected state, and the working state of the two physical links continues to be detected.
  • the electronic device detects that the electronic device is not connected to the two channels, it can be considered that the The second wireless access component is in a disconnected state.
  • the electronic device determines the current connection (ie, the second wireless access component) as a ready state, and determines that the second wireless access component is not connected at this time, and the electronic device can perform the second wireless access component at any time. configuration.
  • the electronic device determines the current connection as a monitor state, uses the second wireless access component to monitor all channels except the channel corresponding to the main connection, and obtains monitoring results of the respective channels.
  • S605 when the monitoring of each channel by the electronic device using the second wireless access component is not completed, continue to monitor each channel by using the second wireless access component, and when the second wireless access component monitors each channel After completion, upload the monitoring result to the upper-layer application.
  • the first channel corresponding to the main connection ie, the first wireless access component
  • the second wireless connection The monitoring result of the incoming component is used to determine the wireless channel to be accessed by the second wireless access component, and then the second wireless access component is used to access the wireless channel to implement the switching process between the primary connection and the secondary connection.
  • the electronic device can determine whether to configure the first wireless access component in the disconnected state after switching to the listening state, when the electronic device configures the first wireless access component in the disconnected state to the listening state, the first wireless access component in the disconnected state
  • One wireless access component is the secondary connection
  • the second wireless access component is the primary connection
  • the terminal can switch the idle wireless access component to the idle wireless access component when the network connection state of the working wireless access component is not good by configuring the idle wireless access component to the listening state, and
  • the channel with the best channel condition monitored by the wireless access component can realize seamless handover of the wireless network only by configuring the idle wireless access component to be in the listening state, thereby reducing the resource consumption of the terminal.
  • Fig. 7 is a structural block diagram of a wireless network switching apparatus according to an exemplary embodiment.
  • the wireless network switching apparatus may implement all or part of the steps in the method provided by the embodiment shown in FIG. 3 or FIG. 4 .
  • the wireless network switching device may include:
  • a first connection module 701 configured to establish a connection between the electronic device and the wireless network through a second wireless channel through a second wireless access component when the first wireless channel is in an abnormal state
  • a first disconnecting module 702 configured to disconnect the electronic device from the first wireless access in response to the electronic device establishing a connection with the wireless network through the second wireless access component through the second wireless channel
  • the components are connected to the network of the wireless network.
  • the second wireless channel is a wireless channel other than the first wireless channel among the wireless channels corresponding to the first terminal.
  • the apparatus further includes:
  • a monitoring information acquisition module configured to instruct the electronic device to acquire first monitoring information;
  • the first monitoring information is monitoring information of the second wireless channel by the second wireless access component;
  • the first connection module 701 is also used for:
  • the electronic device When the first wireless channel is in an abnormal state, the electronic device is instructed to establish a connection with the wireless network by using the second wireless channel through the second wireless access component according to the first monitoring information.
  • the second wireless channel includes at least one wireless sub-channel
  • the monitoring information acquisition module is also used for,
  • the electronic device monitors the at least one wireless sub-channel through the second wireless access component, and obtains the first monitoring information, where the first monitoring information includes monitoring information corresponding to the at least one wireless sub-channel.
  • the first connection module 701 further includes:
  • a first sub-channel acquisition unit configured to determine, by the electronic device, a first wireless sub-channel in the at least one wireless sub-channel according to the first monitoring information when the first wireless channel is in an abnormal state
  • a first connection unit used for the electronic device to establish a connection with the wireless network by using the first wireless sub-channel through the second wireless access component.
  • the first sub-channel obtaining unit is further configured to:
  • the electronic device obtains, according to the monitoring information corresponding to the at least one wireless sub-channel, a channel quality value corresponding to each wireless sub-channel in the at least one wireless sub-channel;
  • the electronic device determines the first wireless subchannel in the at least one wireless subchannel according to channel quality values corresponding to each wireless subchannel in the at least one wireless subchannel.
  • the first sub-channel obtaining unit is further configured to:
  • the electronic device determines at least one candidate subchannel in the at least one wireless subchannel according to channel quality values corresponding to each wireless subchannel in the at least one wireless subchannel; the channel quality of the candidate subchannel value is greater than the quality threshold;
  • the electronic device determines the first wireless subchannel in the at least one candidate subchannel.
  • the monitoring information corresponding to the wireless subchannel includes a service set identifier SSID corresponding to the wireless subchannel, a basic service set identifier BSSID corresponding to the wireless subchannel, the wireless subchannel
  • the apparatus further includes:
  • a first monitoring module configured to disconnect the network connection between the first wireless access component and the wireless network in response to the electronic device, the electronic device communicates with the first wireless access component through the first wireless access component. Monitor the wireless channel.
  • the first wireless access component establishes a connection with the wireless network
  • the second wireless access component establishes a connection with the wireless network.
  • the present application also provides a communication chip, in which the wireless network switching device shown in the above-mentioned embodiment is set.
  • the communication chip is implemented in a computer device, when the electronic device establishes a connection with a wireless network through a first wireless access component through a first wireless channel, the second wireless access component is in a state of no network connection, and when the electronic device establishes a connection with a wireless network through a first wireless channel
  • the first wireless channel is in an abnormal state
  • the electronic device establishes a connection with the wireless network through the second wireless access component through the second wireless channel; in response to the electronic device using the first wireless access component through the second wireless access component
  • the second wireless channel establishes a connection with the wireless network, and disconnects the network connection between the first wireless access component and the wireless network.
  • FIG. 8 shows a schematic structural diagram of a computer device provided by an exemplary embodiment of the present application.
  • the computer equipment includes a communication chip 810 and a memory 820, the communication chip 810 and the memory 820 are connected through a bus 830, and the communication chip 810 is provided with the wireless network switching device provided in the above embodiment.
  • Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the storage medium, and the computer program is loaded and executed by a processor to implement the wireless network switching method shown in FIG. 3 or FIG. 4 . in each step.
  • the application also provides a computer program product or computer program, the computer program product or computer program comprising computer instructions stored in a computer-readable storage medium.
  • the processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device performs each step in the wireless network switching method shown in the above 3 or FIG. 4 .
  • Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
  • a storage medium can be any available medium that can be accessed by a general purpose or special purpose computer.

Abstract

The present application mainly relates to the field of wireless communications and relates to a wireless network switching method and apparatus, a chip, an electronic device, and a storage medium. The method comprises: when a first wireless channel is in an abnormal state, an electronic device establishing a connection with a wireless network by means of a second wireless channel by using a second wireless access component (31); and in response to the electronic device establishing a connection with the wireless network by means of the second wireless channel by using the second wireless access component, disconnecting the network connection between a first wireless access component and the wireless network (32). In the solution, when the first wireless channel is abnormal, the electronic device can use the second wireless access component to perform network connection by means of a backup channel, without needing to access two Wi-Fi networks at the same time, thereby reducing resource consumption by the electronic device while ensuring seamless network switching.

Description

无线网络切换方法、装置、芯片、电子设备及存储介质Wireless network switching method, device, chip, electronic device and storage medium
本申请要求于2021年05月06日提交的申请号为202110491014.8、发明名称为“无线网络切换方法、装置、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application No. 202110491014.8 filed on May 06, 2021, and the invention title is "Wireless Network Switching Method, Device, Electronic Device and Storage Medium", the entire content of which is incorporated herein by reference Applying.
技术领域technical field
本申请涉及无线通信技术领域,特别涉及一种无线网络切换方法、装置、芯片、电子设备及存储介质。The present application relates to the field of wireless communication technologies, and in particular, to a wireless network switching method, device, chip, electronic device and storage medium.
背景技术Background technique
近年来,无线局域网技术得到了迅速的发展和成功的应用,普及程度不断提高。通过Wi-Fi(Wireless-Fidelity,无线保真)网络接入Internet可以为用户提供各种服务,比如VoIP(Voice over Internet Protocol,基于IP的语音传输)、多媒体和数据传输等等。In recent years, wireless local area network technology has been rapidly developed and successfully applied, and its popularity has been continuously improved. Accessing the Internet through a Wi-Fi (Wireless-Fidelity) network can provide users with various services, such as VoIP (Voice over Internet Protocol, IP-based voice transmission), multimedia and data transmission, and so on.
在相关技术中,随着Wi-Fi硬件技术的越来越成熟,以及使用频段的扩展,其芯片结构内部可以实现有两套或多套相互独立的MAC(Media Access Control,物理地址)层和PHY(Physical Layer,端口物理)层以及相互独立的射频天线硬件配置,可以保证彼此之间可以独立工作而不相互干扰,因此Wi-Fi终端可以同时与两个或多个WI-FI进行连接,以保证当一个WI-FI出现问题时,终端还可以通过连接的其他WI-FI实现网络连接。In related technologies, with the maturity of Wi-Fi hardware technology and the expansion of frequency bands, two or more sets of independent MAC (Media Access Control, physical address) layers and The PHY (Physical Layer, port physical) layer and the independent radio frequency antenna hardware configuration can ensure that they can work independently of each other without interfering with each other, so Wi-Fi terminals can connect to two or more WI-FIs at the same time. To ensure that when there is a problem with one WI-FI, the terminal can also achieve network connection through other connected WI-FIs.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种无线网络切换方法、装置、芯片、电子设备及存储介质。所述技术方案如下:Embodiments of the present application provide a wireless network switching method, apparatus, chip, electronic device, and storage medium. The technical solution is as follows:
一方面,提供了一种无线网络切换方法,所述方法由电子设备执行,当电子设备通过第一无线接入组件以第一无线信道与无线网络建立连接时,所述电子设备的第二无线接入组件为无网络连接状态,所述方法包括:In one aspect, a wireless network switching method is provided, the method is performed by an electronic device, when the electronic device establishes a connection with a wireless network through a first wireless access component through a first wireless channel, a second wireless The access component is in a state of no network connection, and the method includes:
当所述第一无线信道处于异常状态时,所述电子设备通过所述第二无线接入组件以第二无线信道与所述无线网络建立连接;When the first wireless channel is in an abnormal state, the electronic device establishes a connection with the wireless network by using the second wireless channel through the second wireless access component;
响应于所述电子设备通过所述第二无线接入组件以所述第二无线信道与所述无线网络建立连接,所述电子设备断开所述第一无线接入组件与所述无线网络的网络连接。In response to the electronic device establishing a connection with the wireless network through the second wireless access component with the second wireless channel, the electronic device disconnects the first wireless access component from the wireless network Internet connection.
又一方面,提供了一种无线网络切换装置,当电子设备通过第一无线接入组件以第一无线信道与无线网络建立连接时,所述电子设备的第二无线接入组件为无网络连接状态,所述装置包括:In yet another aspect, a wireless network switching apparatus is provided, when an electronic device establishes a connection with a wireless network through a first wireless access component through a first wireless channel, the second wireless access component of the electronic device has no network connection state, the device includes:
第一连接模块,用于当所述第一无线信道处于异常状态时,所述电子设备通过第二无线接入组件以第二无线信道与所述无线网络建立连接;a first connection module, configured to establish a connection between the electronic device and the wireless network through a second wireless channel through a second wireless access component when the first wireless channel is in an abnormal state;
第一断开模块,用于响应于所述电子设备通过第二无线接入组件以所述第二无线信道与所述无线网络建立连接,所述电子设备断开所述第一无线接入组件与所述无线网络的网络连接。A first disconnecting module, configured to disconnect the first wireless access component from the electronic device in response to the electronic device establishing a connection with the wireless network through the second wireless channel through the second wireless access component A network connection to the wireless network.
另一方面,本申请实施例提供了一种通信芯片,所述通信芯片中设置有如上述方面所述的无线网络切换装置。On the other hand, an embodiment of the present application provides a communication chip, in which the wireless network switching device according to the above aspect is provided.
另一方面,本申请实施例提供了一种电子设备,所述电子设备包括通信芯片和存储器, 所述通信芯片和所述存储器之间通过总线相连;所述通信芯片包括如上述方面所述的无线网络切换装置。On the other hand, an embodiment of the present application provides an electronic device, the electronic device includes a communication chip and a memory, the communication chip and the memory are connected through a bus; the communication chip includes the above-mentioned aspect Wireless network switching device.
再一方面,本申请实施例提供了一种终端,所述终端包括处理器、存储器和收发器,所述存储器存储有计算机程序,所述计算机程序用于被所述处理器执行,以实现上述无线网络切换方法。In another aspect, an embodiment of the present application provides a terminal, the terminal includes a processor, a memory, and a transceiver, the memory stores a computer program, and the computer program is used to be executed by the processor to implement the above-mentioned Wireless network switching method.
又一方面,本申请实施例还提供了一种计算机可读存储介质,所述存储介质中存储有计算机程序,所述计算机程序由处理器加载并执行以实现上述无线网络切换方法。In another aspect, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the storage medium, and the computer program is loaded and executed by a processor to implement the above wireless network switching method.
另一方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。终端的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该终端执行上述无线网络切换方法。In another aspect, a computer program product or computer program is provided, the computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the terminal reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the terminal executes the above wireless network switching method.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description serve to explain the principles of the application.
图1是根据一示例性实施例示出的提供的通信系统的网络架构的示意图;1 is a schematic diagram of a network architecture of a provided communication system according to an exemplary embodiment;
图2示出了一种双连接芯片硬件结构示意图;FIG. 2 shows a schematic diagram of the hardware structure of a dual-connection chip;
图3是根据一示例性实施例示出的一种无线网络切换方法的流程示意图;3 is a schematic flowchart of a wireless network handover method according to an exemplary embodiment;
图4是根据一示例性实施例提供的一种无线网络切换方法的方法流程图;4 is a method flowchart of a wireless network handover method provided according to an exemplary embodiment;
图5示出了图4所示实施例涉及的一种电子设备物理链路示意图;Fig. 5 shows a schematic diagram of a physical link of an electronic device involved in the embodiment shown in Fig. 4;
图6是根据一示例性实施例示出的一种无线网络切换方法的流程图;FIG. 6 is a flowchart of a wireless network switching method according to an exemplary embodiment;
图7是根据一示例性实施例示出的一种无线网络切换装置的结构方框图;7 is a structural block diagram of a wireless network switching apparatus according to an exemplary embodiment;
图8示出了本申请一个实施例提供的计算机设备的结构示意图。FIG. 8 shows a schematic structural diagram of a computer device provided by an embodiment of the present application.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as recited in the appended claims.
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。本申请实施例描述的网络架构以及业务场景是为了更加清楚地说明本申请实施例的技术方案,并不构成对本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着网络架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。应理解,在本申请的实施例中提到的“指示”可以是直接指示,也可以是间接指示,还可以是表示具有关联关系。举例说明,A指示B,可以表示A直接指示B,例如B可以通过A获取;也可以表示A间接指示B,例如A指示C,B可以通过C获取;还可以表示A和B之间具有关联关系。在本申请实施例的描述中,术语“对应”可表示两者之间具有直接对应或间接对应的关系,也可以表示两者之间具有关联关系,也可以是指示与被指示、配置与被配置等关系。本申请实施例中,“预定义”可以通过在设备(例如,包括终端设备和网络设备)中预先保存相应的代码、表格或其他可用于指示相关信息的方式来实现,本申请对于其具体的实现方式不做限定。比如预定义可以是指协议中定义的。In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings. The network architecture and service scenarios described in the embodiments of the present application are for the purpose of illustrating the technical solutions of the embodiments of the present application more clearly, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. The evolution of new business scenarios and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems. It should be understood that the "instruction" mentioned in the embodiments of the present application may be a direct instruction, an indirect instruction, or an associated relationship. For example, if A indicates B, it can indicate that A directly indicates B, for example, B can be obtained through A; it can also indicate that A indicates B indirectly, such as A indicates C, and B can be obtained through C; it can also indicate that there is an association between A and B relation. In the description of the embodiments of the present application, the term "corresponding" may indicate that there is a direct or indirect corresponding relationship between the two, or may indicate that there is an associated relationship between the two, or indicate and be instructed, configure and be instructed configuration, etc. In this embodiment of the present application, "predefinition" may be implemented by pre-saving corresponding codes, forms, or other means that can be used to indicate relevant information in devices (for example, including terminal devices and network devices). The implementation method is not limited. For example, predefined may refer to the definition in the protocol.
在对本申请所示的各个实施例进行说明之前,首先对本申请涉及到的几个概念进行介绍:Before describing the various embodiments shown in this application, several concepts involved in this application are first introduced:
1)Wi-Fi1) Wi-Fi
Wi-Fi,在中文里又称作“行动热点”,是Wi-Fi联盟制造商的商标做为产品的品牌认证,是一个创建于IEEE 802.11标准的无线局域网技术。基于两套系统的密切相关,也常有人把Wi-Fi当做IEEE 802.11标准的同义术语。Wi-Fi, also known as "mobile hotspot" in Chinese, is the trademark of the Wi-Fi Alliance manufacturer as the brand certification of the product. It is a wireless local area network technology created in the IEEE 802.11 standard. Based on the close relationship between the two systems, Wi-Fi is often used as a synonym for the IEEE 802.11 standard.
2)链路(Link)2) Link (Link)
链路指无源的点到点的物理连接。有线通信时,链路指两个节点之间的物理线路,如电缆或光纤。无线电通信时,链路指基站和终端之间传播电磁波的路径空间。水声通信时链路指换能器和水听器之间的传播声波的路径空间。A link refers to a passive point-to-point physical connection. In wired communication, a link refers to the physical line, such as a cable or fiber optics, between two nodes. In radio communication, the link refers to the path space for the propagation of electromagnetic waves between the base station and the terminal. In underwater acoustic communication, the link refers to the path space of the propagating sound wave between the transducer and the hydrophone.
请参考图1,其是根据一示例性实施例示出的通信系统的网络架构的示意图。该网络架构可以包括:终端10和网络侧设备20。Please refer to FIG. 1 , which is a schematic diagram of a network architecture of a communication system according to an exemplary embodiment. The network architecture may include: a terminal 10 and a network-side device 20 .
同一个网络侧设备20通常可以同时接入多个终端10。终端10可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其它处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminal device)等等。为方便描述,本申请实施例中,上面提到的设备统称为终端。The same network-side device 20 can usually access multiple terminals 10 at the same time. The terminal 10 may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to the wireless modem, as well as various forms of user equipment (User Equipment, UE), mobile stations ( Mobile Station, MS), terminal device, etc. For convenience of description, in the embodiments of the present application, the devices mentioned above are collectively referred to as terminals.
网络侧设备20是一种部署在接入网中用以为终端10提供无线通信功能的装置。网络侧设备20可以包括各种形式的宏基站,微基站,中继站,接入点等等。在采用不同的无线接入技术的系统中,具备基站功能的设备的名称可能会有所不同,例如在5G新空口(New Radio,NR)系统中,称为gNodeB或者gNB。随着通信技术的演进,“基站”这一名称可能会变化。为方便描述,本申请实施例中,上述为终端10提供无线通信功能的装置统称为网络侧设备。The network-side device 20 is a device deployed in an access network to provide a wireless communication function for the terminal 10 . The network-side device 20 may include various forms of macro base stations, micro base stations, relay stations, access points, and the like. In systems using different radio access technologies, the names of devices with base station functions may be different, for example, in 5G New Radio (NR) systems, they are called gNodeBs or gNBs. As communication technology evolves, the name "base station" may change. For convenience of description, in the embodiments of the present application, the above-mentioned apparatuses for providing a wireless communication function for the terminal 10 are collectively referred to as network-side devices.
可选的,图1中未示出的是,上述网络架构还包括其它网络设备,比如:中心控制节点(Central Network Control,CNC)、接入和移动性管理功能(Access and Mobility Management Function,AMF)设备、会话管理功能(Session Management Function,SMF)或者用户面功能(User Plane Function,UPF)设备等等。Optionally, what is not shown in FIG. 1 is that the above-mentioned network architecture also includes other network devices, such as: a central control node (Central Network Control, CNC), an access and mobility management function (Access and Mobility Management Function, AMF) ) device, session management function (Session Management Function, SMF) or user plane function (User Plane Function, UPF) device, etc.
随着Wi-Fi硬件技术的越来越成熟,以及使用频段的扩展(2.4GHz、5GHz、以及6GHz),越来越多的Wi-Fi终端都有双连接或者多连接同时使用场景。图2示出了一种双连接芯片硬件结构示意图。如图2所示,Wi-Fi终端在其芯片结构上实现有两套或多套彼此相独立的无线接入组件,各个无线接入组件中包括MAC(Media Access Control,物理地址)层、PHY(Physical Layer,端口物理)层以及射频天线硬件配置,可以保证各个无线接入组件之间可以相互独立工作,且不相互干扰。With the maturity of Wi-Fi hardware technology and the expansion of frequency bands (2.4GHz, 5GHz, and 6GHz), more and more Wi-Fi terminals have dual-connection or multi-connection simultaneous use scenarios. FIG. 2 shows a schematic diagram of the hardware structure of a dual-connection chip. As shown in Figure 2, the Wi-Fi terminal implements two or more sets of independent wireless access components on its chip structure. Each wireless access component includes MAC (Media Access Control, physical address) layer, PHY The (Physical Layer, port physical) layer and the hardware configuration of the radio frequency antenna can ensure that each wireless access component can work independently of each other without interfering with each other.
本申请实施例提供的无线网络切换方法包括:The wireless network switching method provided by the embodiment of the present application includes:
当电子设备通过第一无线接入组件以第一无线信道与无线网络建立连接时,电子设备中的第二无线接入组件为无网络连接状态;When the electronic device establishes a connection with the wireless network by using the first wireless channel through the first wireless access component, the second wireless access component in the electronic device is in a state of no network connection;
当第一无线信道处于异常状态时,电子设备通过第二无线接入组件以第二无线信道与无线网络建立连接;When the first wireless channel is in an abnormal state, the electronic device establishes a connection with the wireless network by using the second wireless channel through the second wireless access component;
响应于电子设备通过第二无线接入组件以第二无线信道与无线网络建立连接,电子设备断开第一无线接入组件与无线网络的网络连接。In response to the electronic device establishing a connection with the wireless network through the second wireless access component through the second wireless channel, the electronic device disconnects the network connection between the first wireless access component and the wireless network.
可选的,第二无线信道是第一终端对应的无线信道中,除第一无线信道外的无线信道。Optionally, the second wireless channel is a wireless channel other than the first wireless channel among the wireless channels corresponding to the first terminal.
可选的,当第一无线信道处于异常状态时,电子设备通过第二无线接入组件以第二无线信道与无线网络建立连接之前,方法还包括:Optionally, when the first wireless channel is in an abnormal state, before the electronic device establishes a connection with the wireless network through the second wireless access component through the second wireless channel, the method further includes:
电子设备获取第一监听信息;第一监听信息是第二无线接入组件对第二无线信道的监听信息;The electronic device obtains the first monitoring information; the first monitoring information is the monitoring information of the second wireless channel by the second wireless access component;
当第一无线信道处于异常状态时,电子设备通过第二无线接入组件以第二无线信道与无线网络建立连接,包括:When the first wireless channel is in an abnormal state, the electronic device establishes a connection with the wireless network through the second wireless access component through the second wireless channel, including:
当第一无线信道处于异常状态时,电子设备根据第一监听信息,通过第二无线接入组件以第二无线信道与无线网络建立连接。When the first wireless channel is in an abnormal state, the electronic device establishes a connection with the wireless network by using the second wireless channel through the second wireless access component according to the first monitoring information.
可选的,第二无线信道包含至少一个无线子信道;Optionally, the second wireless channel includes at least one wireless sub-channel;
电子设备获取第一监听信息,包括:The electronic device obtains the first monitoring information, including:
电子设备通过第二无线接入组件对至少一个无线子信道进行监听,获取第一监听信息,第一监听信息包含至少一个无线子信道对应的监听信息。The electronic device monitors at least one wireless sub-channel through the second wireless access component, and obtains first monitoring information, where the first monitoring information includes monitoring information corresponding to at least one wireless sub-channel.
可选的,当第一无线信道处于异常状态时,电子设备根据第一监听信息,通过第二无线接入组件以第二无线信道与无线网络建立连接,包括:Optionally, when the first wireless channel is in an abnormal state, according to the first monitoring information, the electronic device establishes a connection with the wireless network by using the second wireless channel through the second wireless access component, including:
当第一无线信道处于异常状态时,电子设备根据第一监听信息,在至少一个无线子信道中确定第一无线子信道;When the first wireless channel is in an abnormal state, the electronic device determines the first wireless sub-channel in at least one wireless sub-channel according to the first monitoring information;
电子设备通过第二无线接入组件以第一无线子信道与无线网络建立连接。The electronic device establishes a connection with the wireless network by using the first wireless sub-channel through the second wireless access component.
可选的,当第一无线信道处于异常状态时,电子设备根据第一监听信息,在至少一个无线子信道中确定第一无线子信道,包括:Optionally, when the first wireless channel is in an abnormal state, the electronic device determines the first wireless sub-channel in at least one wireless sub-channel according to the first monitoring information, including:
当第一无线信道处于异常状态时,电子设备根据至少一个无线子信道对应的监听信息,获得至少一个无线子信道中各个无线子信道分别对应的信道质量值;When the first wireless channel is in an abnormal state, the electronic device obtains a channel quality value corresponding to each wireless sub-channel in the at least one wireless sub-channel according to the monitoring information corresponding to the at least one wireless sub-channel;
电子设备根据至少一个无线子信道中各个无线子信道分别对应的信道质量值,在至少一个无线子信道中确定第一无线子信道。The electronic device determines the first wireless sub-channel in the at least one wireless sub-channel according to the channel quality values corresponding to each wireless sub-channel in the at least one wireless sub-channel.
可选的,电子设备根据至少一个无线子信道中各个无线子信道分别对应的信道质量值,在至少一个无线子信道中确定第一无线子信道,包括:Optionally, the electronic device determines the first wireless sub-channel in the at least one wireless sub-channel according to the channel quality values corresponding to each wireless sub-channel in the at least one wireless sub-channel, including:
电子设备根据至少一个无线子信道中各个无线子信道分别对应的信道质量值,在至少一个无线子信道中确定至少一个备选子信道;备选子信道的信道质量值大于质量阈值;The electronic device determines at least one candidate subchannel in the at least one wireless subchannel according to the channel quality value corresponding to each wireless subchannel in the at least one wireless subchannel; the channel quality value of the candidate subchannel is greater than the quality threshold;
电子设备在至少一个备选子信道中确定第一无线子信道。The electronic device determines the first wireless subchannel among at least one candidate subchannel.
可选的,无线子信道对应的监听信息包括无线子信道对应的服务集标识符SSID、无线子信道对应的基本服务集标识符BSSID、无线子信道对应的无线接收信号强度RSSI、无线子信道对应的空闲信道评估CCA、无线子信道对应的往返时延RTT、无线子信道对应的发送数据包的物理层速率以及无线子信道对应的接收数据包的物理层速率中的至少一种。Optionally, the monitoring information corresponding to the wireless subchannel includes the service set identifier SSID corresponding to the wireless subchannel, the basic service set identifier BSSID corresponding to the wireless subchannel, the wireless received signal strength RSSI corresponding to the wireless subchannel, and the corresponding wireless subchannel. At least one of the idle channel assessment CCA, the round-trip delay RTT corresponding to the wireless subchannel, the physical layer rate of the transmitted data packet corresponding to the wireless subchannel, and the physical layer rate of the received data packet corresponding to the wireless subchannel.
可选的,方法还包括:Optionally, the method also includes:
响应于电子设备断开第一无线接入组件与无线网络的网络连接,电子设备通过第一无线接入组件对第一无线信道进行监听。In response to the electronic device disconnecting the first wireless access component from the wireless network, the electronic device monitors the first wireless channel through the first wireless access component.
在实际的使用中,大多数的使用场景是只有一套独立的硬件在工作,而另一套硬件处于待机闲置状态(如单纯的使用手机上网等场景)。而当电子设备需要保证网络连接的稳定性时,可以同时使用多套彼此独立的无线接入组件,分别通过不同的信道与Wi-Fi进行连接,以保证当一个无线接入组件接入的网络不稳定时,可以实时切换为另一个无线接入组件接入的网络,以保证网络连接不中断,但同时通过多套彼此独立的无线接入组件与多个Wi-Fi进行连接,对于终端的资源消耗较大。本申请提供了一种无线网络切换方法,可以实现网络连接无缝切换的同时,降低电子设备的资源消耗。请参考图3,其是根据一示例性实施例示出的一种无线网络切换方法的流程示意图。该方法可以由电子设备执行,其中,该电子设备可以是上述图1所示的实施例中的终端10。如图3所示,当电子设备通过第一无线接入组件以第一无线信道与无线网络建立连接时,该第二无线接入组件为无网络连接状态,该无线网络切换方法的流程可以包括如下步骤:In actual use, most of the usage scenarios are that only one set of independent hardware is working, and the other set of hardware is in a standby idle state (such as a scenario of simply using a mobile phone to surf the Internet). When the electronic device needs to ensure the stability of the network connection, it can use multiple sets of independent wireless access components at the same time, and connect with Wi-Fi through different channels to ensure that when a wireless access component accesses the network When unstable, it can be switched to the network accessed by another wireless access component in real time to ensure that the network connection is not interrupted, but at the same time, it is connected to multiple Wi-Fi through multiple sets of independent wireless access components. Resource consumption is high. The present application provides a wireless network switching method, which can realize seamless switching of network connections and reduce resource consumption of electronic devices. Please refer to FIG. 3 , which is a schematic flowchart of a wireless network switching method according to an exemplary embodiment. The method may be performed by an electronic device, where the electronic device may be the terminal 10 in the embodiment shown in FIG. 1 above. As shown in FIG. 3 , when the electronic device establishes a connection with the wireless network through the first wireless access component through the first wireless channel, the second wireless access component is in a state of no network connection, and the process of the wireless network switching method may include: Follow the steps below:
步骤31,当该第一无线信道处于异常状态时,电子设备通过第二无线接入组件以第二无线信道与该无线网络建立连接。 Step 31, when the first wireless channel is in an abnormal state, the electronic device establishes a connection with the wireless network through the second wireless access component through the second wireless channel.
当电子设备通过第一无线接入组件以第一无线信道与无线网络建立连接时,且该第二无线接入组件不与无线网络建立连接时(即该第二无线接入组件为无网络连接状态),此时若当该第一无线信道处于异常状态(例如断开或连接不稳定)时,则该第一无线信道此时不适合作为网络连接对应的信道,此时电子设备可以通过无网络连接状态的第二无线接入组件,以第二无线信道与该无线网络建立连接。When the electronic device establishes a connection with the wireless network through the first wireless access component through the first wireless channel, and the second wireless access component does not establish a connection with the wireless network (that is, the second wireless access component has no network connection state), at this time, if the first wireless channel is in an abnormal state (such as disconnected or unstable connection), then the first wireless channel is not suitable as the channel corresponding to the network connection at this time, and the electronic device can pass the wireless The second wireless access component in the network connection state establishes a connection with the wireless network through the second wireless channel.
步骤32,响应于该电子设备通过第二无线接入组件以该第二无线信道与该无线网络建立连接,断开该第一无线接入组件与该无线网络的网络连接。 Step 32, in response to the electronic device establishing a connection with the wireless network through the second wireless access component through the second wireless channel, disconnect the network connection between the first wireless access component and the wireless network.
当电子设备通过第二无线接入组件以第二无线信道与该无线网络建立连接之后,此时该电子设备已通过第二无线接入组件实现网络连接,此时可以将该第一无线接入组件与该无线网络的网络连接断开,减小该电子设备的电量消耗。After the electronic device establishes a connection with the wireless network through the second wireless access component through the second wireless channel, the electronic device has achieved the network connection through the second wireless access component, and the first wireless access component can be used at this time. The component is disconnected from the network connection of the wireless network, reducing the power consumption of the electronic device.
综上所述,在本申请实施例所示的方案中,在电子设备中存在第一无线接入组件以及第二无线接入组件,且第一无线接入组件与无线网络建立连接,第二无线网络处于无网络连接状态的情况下,当第一无线接入组件对应的第一无线信道处于异常状态时,电子设备可以通过第二无线接入组件以第二无线信道与无线网络建立连接,并在连接成功后断开第一无线接入组件的网络连接,使得电子设备不需要同时接入两个无线网络就可以实现网络的无缝切换,在保证无缝切换网络的同时,降低了电子设备的资源消耗。To sum up, in the solutions shown in the embodiments of the present application, there are a first wireless access component and a second wireless access component in the electronic device, and the first wireless access component establishes a connection with the wireless network, and the second wireless access component establishes a connection with the wireless network. When the wireless network is in a state of no network connection, when the first wireless channel corresponding to the first wireless access component is in an abnormal state, the electronic device can establish a connection with the wireless network through the second wireless access component through the second wireless channel, And after the connection is successful, the network connection of the first wireless access component is disconnected, so that the electronic device does not need to access two wireless networks at the same time to achieve seamless network switching. The resource consumption of the device.
请参考图4,其是根据一示例性实施例提供的一种无线网络切换方法的方法流程图。该方法可以由电子设备执行,该电子设备可以是终端,其中,该终端可以是上述图1所示的实施例中的终端10。如图4所示,该无线网络切换方法可以包括如下步骤:Please refer to FIG. 4 , which is a method flowchart of a wireless network switching method provided according to an exemplary embodiment. The method may be performed by an electronic device, and the electronic device may be a terminal, where the terminal may be the terminal 10 in the embodiment shown in FIG. 1 above. As shown in FIG. 4 , the wireless network switching method may include the following steps:
步骤401,电子设备获取第一监听信息。 Step 401, the electronic device acquires first monitoring information.
其中,第一监听信息是第二无线接入组件对第二无线信道的监听信息。The first monitoring information is monitoring information of the second wireless channel by the second wireless access component.
在一种可能的实现方式中,当所述电子设备通过第一无线接入组件通过第一无线信道与无线网络建立连接,且第二无线接入组件处于无连接状态时,电子设备将该第二无线接入组件确定为监听状态。In a possible implementation manner, when the electronic device establishes a connection with the wireless network through the first wireless access component through the first wireless channel, and the second wireless access component is in a disconnected state, the electronic device uses the first wireless access component to establish a connection with the wireless network. The second wireless access component is determined to be in a listening state.
其中,该第一无线接入组件与该第二无线接入组件是该至少两套无线接入组件中的任意两套。Wherein, the first wireless access component and the second wireless access component are any two sets of the at least two sets of wireless access components.
在一种可能的实现方式中,在第一指定时间内,电子设备通过第一无线接入组件以第一无线信道与无线网络建立连接,其该第二无线接入组件处于无连接状态时,电子设备将该第二无线接入组件确定为监听状态。In a possible implementation manner, within the first specified time, the electronic device establishes a connection with the wireless network through the first wireless access component through the first wireless channel, and when the second wireless access component is in a disconnected state, The electronic device determines that the second wireless access component is in a listening state.
其中,当电子设备通过该第一无线接入组件以第一无线信道与无线网络建立连接时,电子设备可以先对该第一无线接入组件以及第二无线接入组件的连接状态进行检测,当检测到第一指定时间内,第一无线接入组件处于网络连接状态,且第二无线接入组件处于无连接状态时,说明该第二无线接入组件此时不被其他应用程序占用,电子设备可以正常使用该第二无线接入组件,不会对其他应用程序造成干扰。Wherein, when the electronic device establishes a connection with the wireless network through the first wireless access component through the first wireless channel, the electronic device may first detect the connection status of the first wireless access component and the second wireless access component, When it is detected that the first wireless access component is in the network connection state and the second wireless access component is in the disconnected state within the first specified time, it means that the second wireless access component is not occupied by other applications at this time, The electronic device can use the second wireless access component normally without causing interference to other applications.
该第一无线接入组件与该第二无线接入组件可以是图2所示的两套彼此独立的无线接入组件,此时电子设备可以通过该第一无线接入组件以第一无线信道与无线网络建立连接,因此该第一无线接入组件也可以称为主物理链路;该第二无线接入组件可以被称为辅物理链路,该辅物理链路可以在该主物理链路出现异常时辅助该电子设备进行网络连接。The first wireless access component and the second wireless access component may be two sets of mutually independent wireless access components as shown in FIG. 2 , and the electronic device may use the first wireless channel through the first wireless access component at this time. A connection is established with a wireless network, so the first wireless access component can also be called a primary physical link; the second wireless access component can be called a secondary physical link, and the secondary physical link can be connected to the primary physical link When the road is abnormal, it assists the electronic device to connect to the network.
在一种可能的实现方式中,该电子设备中具有控制该Wi-Fi接入组件的第一网络应用程序,通过该第一网络应用程序,监测该第一无线接入组件处于工作状态,且该第二无线接入组件处于无连接状态,当检测到该第一无线接入组件处于工作状态,且该第二无线接入组件处于无连接状态,且在第一指定时间内保持时,该第一网络应用程序可以向该第二 无线接入组件发送配置命令,指示该第二无线接入组件处于监听状态。In a possible implementation manner, the electronic device has a first network application program that controls the Wi-Fi access component, and the first network application program monitors that the first wireless access component is in a working state, and The second wireless access component is in a disconnected state, when it is detected that the first wireless access component is in a working state and the second wireless access component is in a disconnected state and remains in a first specified time, the The first network application may send a configuration command to the second wireless access component, indicating that the second wireless access component is in a listening state.
在一种可能的实现方式中,该第一无线信道是该电子设备对应的各个无线信道中的任意一个。In a possible implementation manner, the first wireless channel is any one of various wireless channels corresponding to the electronic device.
在一种可能的实现方式中,电子设备通过第一无线接入组件对各个无线信道进行监听,获取该各个无线信道对应的信道质量,根据该各个无线信道对应的信道质量,确定该第一无线信道;该电子设备通过该第一无线接入组件以该第一无线信道与无线网络建立连接。In a possible implementation manner, the electronic device monitors each wireless channel through the first wireless access component, obtains the channel quality corresponding to each wireless channel, and determines the first wireless channel according to the channel quality corresponding to each wireless channel channel; the electronic device establishes a connection with the wireless network through the first wireless access component through the first wireless channel.
在一种可能的实现方式中,电子设备通过该第二无线接入组件对至少一个无线子信道进行监听,获得第一监听信息。In a possible implementation manner, the electronic device monitors at least one wireless sub-channel through the second wireless access component to obtain the first monitoring information.
该第二无线信道包含至少一个无线子信道;该第一监听信息包含该至少一个无线子信道对应的监听信息。The second wireless channel includes at least one wireless sub-channel; the first monitoring information includes monitoring information corresponding to the at least one wireless sub-channel.
在一种可能的实现方式中,该第二无线信道是该电子设备对应的无线信道中,除该第一无线信道外的无线信道。In a possible implementation manner, the second wireless channel is a wireless channel other than the first wireless channel among the wireless channels corresponding to the electronic device.
在一种可能的实现方式中,当电子设备通过该第一无线接入组件以第一无线信道实现网络连接后,该第二无线接入组件可以对该第一无线信道之外的无线信道(即第二无线信道)进行检测,保证在对其他空闲信道进行监控的同时,避免第二无线接入组件的检测对第一无线信道的干扰。In a possible implementation manner, after the electronic device implements a network connection through the first wireless access component through the first wireless channel, the second wireless access component can connect to the wireless channel other than the first wireless channel ( That is, the second wireless channel) is detected to ensure that while monitoring other idle channels, interference to the first wireless channel caused by the detection of the second wireless access component is avoided.
在一种可能的实现方式中,该电子设备通过第一网络应用程序,配置命令下发第二无线接入组件可以工作在监听状态后,该第二无线接入组件可以对该第二无线信道中的各个无线子信道进行监听,并将监听信息上传至该第一网络应用程序,以便该第一网络应用程序统计该各个信道的信道状态。In a possible implementation manner, after the electronic device sends a configuration command through the first network application, the second wireless access component can work in a listening state, and the second wireless access component can perform the second wireless channel Each wireless sub-channel in the device is monitored, and the monitoring information is uploaded to the first network application, so that the first network application can count the channel status of each channel.
在一种可能的实现方式中,该无线子信道对应的监听信息包括该无线子信道对应的SSID(Service Set Identifier,服务集标识符)、该无线子信道对应的BSSID(Basic Service Set Identifier,基本服务集标识符)、该无线子信道对应的RSSI(Received Signal Strength Indicator,无线接收信号强度)、该无线子信道对应的CCA(Clear Channel Assessment,空闲信道评估)、该无线子信道对应的RTT(Round-trip time,往返时延)、该无线子信道对应的发送数据包的物理层速率以及该无线子信道对应的接收数据包的物理层速率中的至少一种。In a possible implementation manner, the monitoring information corresponding to the wireless sub-channel includes an SSID (Service Set Identifier, service set identifier) corresponding to the wireless sub-channel, a BSSID (Basic Service Set Identifier, basic service set identifier) corresponding to the wireless sub-channel Service Set Identifier), RSSI (Received Signal Strength Indicator, wireless received signal strength) corresponding to the wireless sub-channel, CCA (Clear Channel Assessment, idle channel assessment) corresponding to the wireless sub-channel, RTT ( Round-trip time, round-trip delay), at least one of the physical layer rate of sending data packets corresponding to the wireless subchannel, and the physical layer rate of receiving data packets corresponding to the wireless subchannel.
在一种可能的实现方式中,电子设备确定该第二无线信道中的各个无线子信道,在该各个无线子信道的频点,对该各个无线子信道进行背景扫描,获取该各个无线子信道的信道状态。In a possible implementation manner, the electronic device determines each wireless sub-channel in the second wireless channel, performs background scanning on each wireless sub-channel at the frequency point of each wireless sub-channel, and obtains each wireless sub-channel channel status.
在一种可能的实现方式中,电子设备通过该第二无线接入组件在根据指定周期,在各个无线子信道的频点,对各个无线子信道进行背景扫描,获取各个无线子信道的信道状态。In a possible implementation manner, the electronic device performs background scanning on each wireless sub-channel at the frequency point of each wireless sub-channel according to a specified period through the second wireless access component, and obtains the channel status of each wireless sub-channel .
其中,该第二无线信道中的各个无线子信道、该指定周期以及各个信道的监听时间可以是该第一网络应用程序配置的。Wherein, each wireless sub-channel in the second wireless channel, the designated period and the listening time of each channel may be configured by the first network application.
步骤402,当该第一无线信道处于异常状态时,该电子设备根据该第一监听信息,通过该第二无线接入组件以该第二无线信道与该无线网络建立连接。 Step 402, when the first wireless channel is in an abnormal state, the electronic device establishes a connection with the wireless network through the second wireless access component through the second wireless channel according to the first monitoring information.
在一种可能的实现方式中,当第一无线信道处于异常状态时,根据该第一监听信息,在该至少一个无线子信道中确定第一无线子信道。In a possible implementation manner, when the first wireless channel is in an abnormal state, the first wireless sub-channel is determined in the at least one wireless sub-channel according to the first monitoring information.
其中,该第一无线信道处于异常状态,指该第一无线接入组件与该第一无线信道建立的通信连接出现异常。Wherein, that the first wireless channel is in an abnormal state means that the communication connection established by the first wireless access component and the first wireless channel is abnormal.
在一种可能的实现方式中,电子设备检测该第一无线接入组件与该第一无线信道建立的第一网络连接,当检测到该第一网络连接的网络质量低于质量阈值时,电子设备将该第一无线信道确定为异常状态。In a possible implementation manner, the electronic device detects the first network connection established by the first wireless access component and the first wireless channel, and when detecting that the network quality of the first network connection is lower than a quality threshold, the electronic device The device determines that the first wireless channel is in an abnormal state.
当检测到该第一网络连接的网络质量低于质量阈值时,说明该第一无线接入组件与该 第一无线信道建立的第一网络连接不够稳定,因此将该第一无线信道确定为异常状态。When it is detected that the network quality of the first network connection is lower than the quality threshold, it means that the first network connection established by the first wireless access component and the first wireless channel is not stable enough, so the first wireless channel is determined to be abnormal state.
在另一种可能的实现方式中,电子设备检测该第一无线接入组件与该第一无线信道建立的第一网络连接,当检测到通过该第一网络连接接受的信息的误码率大于误码阈值,将该第一无线信道确定为异常状态。In another possible implementation manner, the electronic device detects the first network connection established by the first wireless access component and the first wireless channel, and when detecting that the bit error rate of the information received through the first network connection is greater than The error threshold is used to determine the first wireless channel as an abnormal state.
在另一种可能的实现方式中,电子设备检测第一应用程序,该第一应用程序是通过该第一无线接入组件与该第一无线信道建立的第一网络连接进行数据传输的应用程序,检测到该第一应用程序的数据传输异常时,将该第一无线信道确定为异常状态。In another possible implementation manner, the electronic device detects a first application program, where the first application program is an application program that performs data transmission through a first network connection established between the first wireless access component and the first wireless channel , when it is detected that the data transmission of the first application is abnormal, the first wireless channel is determined to be in an abnormal state.
在一种可能的实现方式中,该第一应用程序可以是该第一网络应用程序。即在该电子设备通过该第一无线接入组件与该第一无线信道建立第一网络连接后,该第一网络应用程序可以检测该第一网络连接的数据传输状态,当检测到该第一网络连接的数据传输状态出现异常时,将该第一无线信道标记为异常状态,以便该电子设备重新选择无线信道进行网络连接。In a possible implementation manner, the first application may be the first web application. That is, after the electronic device establishes a first network connection with the first wireless channel through the first wireless access component, the first network application can detect the data transmission status of the first network connection. When the data transmission state of the network connection is abnormal, the first wireless channel is marked as an abnormal state, so that the electronic device can reselect the wireless channel for network connection.
在一种可能的实现方式中,当该第一无线信道处于异常状态时,电子设备根据该至少一个无线子信道对应的监听信息,获得该至少一个无线子信道中各个无线子信道分别对应的信道质量值;电子设备根据该至少一个无线子信道中各个无线子信道分别对应的信道质量值,在该至少一个无线子信道中确定该第一无线子信道。In a possible implementation manner, when the first wireless channel is in an abnormal state, the electronic device obtains, according to the monitoring information corresponding to the at least one wireless sub-channel, a channel corresponding to each wireless sub-channel in the at least one wireless sub-channel respectively quality value; the electronic device determines the first wireless sub-channel in the at least one wireless sub-channel according to the channel quality value corresponding to each wireless sub-channel in the at least one wireless sub-channel.
当该第一无线信道处于异常状态时,可以确定该第一无线信道已经不能满足正常工作的需要,因此该电子设备可以在该第二无线信道中选择其中最合适的无线信道作为第一无线子信道,以便电子设备通过该第二无线接入组件以该第一无线子信道实现网络连接。When the first wireless channel is in an abnormal state, it can be determined that the first wireless channel can no longer meet the needs of normal operation, so the electronic device can select the most suitable wireless channel from the second wireless channel as the first wireless channel channel, so that the electronic device realizes network connection with the first wireless sub-channel through the second wireless access component.
在一种可能的实现方式中,电子设备根据该至少一个无线子信道中各个无线子信道分别对应的信道质量值,在该至少一个无线子信道中确定至少一个备选子信道;该备选子信道的信道质量值大于质量阈值;电子设备在该至少一个备选子信道中确定该第一无线子信道。In a possible implementation manner, the electronic device determines at least one candidate sub-channel in the at least one wireless sub-channel according to the channel quality values corresponding to each wireless sub-channel in the at least one wireless sub-channel; the candidate sub-channel The channel quality value of the channel is greater than the quality threshold; the electronic device determines the first wireless subchannel in the at least one candidate subchannel.
其中,电子设备获取到该至少一个无线子信道中的各个无线子信道分别对应的信道质量值后,可以将该各个无线子信道分别对应的信道质量值与质量阈值进行比较,确定备选子信道,以便该第一无线信道处于异常状态时,可以在该各个备选子信道中选择第一无线子信道实现网络连接。Wherein, after obtaining the channel quality values corresponding to each wireless subchannel in the at least one wireless subchannel, the electronic device can compare the channel quality value corresponding to each wireless subchannel with a quality threshold to determine the candidate subchannel , so that when the first wireless channel is in an abnormal state, the first wireless sub-channel can be selected from the candidate sub-channels to realize network connection.
在一种可能的实现方式中,该电子设备通过该第一网络应用程序,获取该第二信道中的各个无线子信道对应的监听信息,并根据该信道信息确定至少一个可用子信道,根据该至少一个可用子信道的信道质量值,确定该第一无线子信道。In a possible implementation manner, the electronic device obtains monitoring information corresponding to each wireless sub-channel in the second channel through the first network application, and determines at least one available sub-channel according to the channel information, and according to the The first wireless subchannel is determined by the channel quality value of at least one available subchannel.
其中该监听信息包括该各个信道中的SSID、BSSID以及匹配帧的信号强度RSSI,当检测到该第二信道中的各个无线子信道对应的监听信息后,可以根据该各个信道中的SSID、BSSID,确定该电子设备在该各个无线子信道中,是否存在可以接入的无线网络,当存在可以接入的无线子信道时,将该无线子信道确定为可用子信道;该电子设备再通过该各个信道中的RSSI,确定该各个信道中可用的无线网络的信号衰减程度,以确定该可用子信道的信道质量值,并将信道质量值最高的可用子信道,确定为该第一无线子信道。The monitoring information includes the SSID, BSSID in each channel and the signal strength RSSI of the matching frame. After detecting the monitoring information corresponding to each wireless sub-channel in the second channel, the monitoring information can be obtained according to the SSID and BSSID in each channel. , determine whether the electronic device has a wireless network that can be accessed in each wireless sub-channel, and when there is a wireless sub-channel that can be accessed, determine the wireless sub-channel as an available sub-channel; the electronic device then passes the RSSI in each channel, determine the signal attenuation degree of the available wireless network in each channel, determine the channel quality value of the available subchannel, and determine the available subchannel with the highest channel quality value as the first wireless subchannel .
即该电子设备通过上层应用程序记录各个监听信道的SSID、BSSID以及匹配帧的信号强度RSSI,同时利用该信道的CCA繁忙状态,依次计算出各个信道的干扰多少以及强弱指示,该统计结果实时更新,根据统计结果确定第二无线接入组件将要接入的第一无线子信道。That is, the electronic device records the SSID, BSSID of each monitoring channel and the signal strength RSSI of the matching frame through the upper-layer application program, and at the same time uses the CCA busy state of the channel to sequentially calculate the amount of interference and the strength indication of each channel, and the statistical results are real-time. Update, determine the first wireless sub-channel to be accessed by the second wireless access component according to the statistical result.
在一种可能的实现方式中,该各个无线子信道对应的监听信息,还包括各个无线子信道中的RTT(Round-Trip Time,往返时延)时延或者发送Tx(发送数据)、接收Rx(接收数据)的物理层速率。In a possible implementation manner, the monitoring information corresponding to each wireless sub-channel also includes the RTT (Round-Trip Time, round-trip delay) delay in each wireless sub-channel or the sending Tx (transmitting data), receiving Rx (received data) physical layer rate.
即当主工作信道出现连续的业务不流畅或者抖动较大时,可以断定当前的工作主信道已经不能满足当前的业务需要,上层APP触发辅链路的网络连接,依次从备选的网络连接 中,根据RTT时延或者发送/接收的物理层速率来间接评估当前网络连接的最大吞吐和有效性,来选出最佳辅链路工作信道,同时保持物理网络链接。That is, when continuous service is not smooth or the jitter is large on the main working channel, it can be concluded that the current working main channel can no longer meet the current business needs, and the upper-layer APP triggers the network connection of the auxiliary link, and sequentially selects According to the RTT delay or the physical layer rate of transmission/reception, the maximum throughput and effectiveness of the current network connection are indirectly evaluated, and the optimal auxiliary link working channel is selected, while maintaining the physical network connection.
请参考图5,其示出了本申请实施例的一种电子设备物理链路示意图。如图5所示,该电子设备包括上层应用程序501(APP,application)以及WI-FI模块502,该上层应用程序中包含仲裁模块,该仲裁模块用于指示通过该WI-FI模块502中的任意一个无线接入模块与无线信道进行网络连接,或用于指示通过该WI-FI模块502中的任意一个无线接入模块与无线信道断开网络连接。Please refer to FIG. 5 , which shows a schematic diagram of a physical link of an electronic device according to an embodiment of the present application. As shown in FIG. 5 , the electronic device includes an upper-layer application program 501 (APP, application) and a WI-FI module 502 , and the upper-layer application program includes an arbitration module, and the arbitration module is used to instruct the WI-FI module 502 to pass the Any one of the wireless access modules is connected to the wireless channel, or used to instruct any one of the wireless access modules in the WI-FI module 502 to disconnect the network from the wireless channel.
在一种可能的实现方式中,电子设备通过该第二无线接入组件以该第一无线子信道与无线网络建立连接。In a possible implementation manner, the electronic device establishes a connection with the wireless network by using the first wireless sub-channel through the second wireless access component.
当确定了该第二无线接入组件将要接入的第一无线子信道后,电子设备可以通过该第二无线组件以该第一无线子信道与无线网络建立连接。After the first wireless sub-channel to be accessed by the second wireless access component is determined, the electronic device may establish a connection with the wireless network by using the first wireless sub-channel through the second wireless component.
此时电子设备通过该第一无线接入组件以第一无线信道与无线网络建立连接,且该第二无线接入组件与该第一无线子信道与无线网络建立连接。即此时该电子设备在将接入网络的物理链路由第一无线接入组件切换为第二无线接入组件之前,需要有一个短暂的双接入过程,即电子设备通过该第一无线接入组件以第一无线信道与无线网络建立连接的同时,电子设备通过该第二无线接入组件以该第一无线子信道与无线网络建立连接,避免由于物理链路切换所导致的网络连接断开,以实现网络的无缝切换。At this time, the electronic device establishes a connection with the wireless network through the first wireless access component through the first wireless channel, and the second wireless access component establishes a connection with the wireless network with the first wireless sub-channel. That is, at this time, before the electronic device switches the physical link accessing the network from the first wireless access component to the second wireless access component, a brief dual access process is required, that is, the electronic device passes through the first wireless access component. While the access component establishes a connection with the wireless network through the first wireless channel, the electronic device establishes a connection with the wireless network through the second wireless access component through the first wireless sub-channel to avoid network connection caused by physical link switching Disconnect for seamless network switching.
步骤403,响应于该电子设备通过第二无线接入组件以该第二无线信道与该无线网络建立连接,电子设备断开该第一无线接入组件与该无线网络的网络连接。 Step 403, in response to the electronic device establishing a connection with the wireless network through the second wireless access component through the second wireless channel, the electronic device disconnects the network connection between the first wireless access component and the wireless network.
当电子设备检测到成功通过该第二无线接入组件以该第二无线信道与无线网络建立连接后,说明该电子设备接入网络的物理链路以及成功切换,此时该电子设备可以将该第一无线接入组件与该第一无线信道断开,以减少电子设备的资源消耗。When the electronic device detects that the connection is successfully established with the wireless network through the second wireless access component through the second wireless channel, it indicates that the electronic device is connected to the physical link of the network and successfully switched. At this time, the electronic device can The first wireless access component is disconnected from the first wireless channel to reduce resource consumption of the electronic device.
在一种可能的实现方式中,当电子设备通过该第二无线接入组件以该第二无线信道与无线网络建立连接,且持续第二指定时长后,断开该第一无线接入组件的网络连接。In a possible implementation manner, when the electronic device establishes a connection with the wireless network through the second wireless access component through the second wireless channel for a second specified period of time, disconnects the first wireless access component from the wireless network. Internet connection.
当检测到该成功通过第二无线接入组件以该第二无线信道与无线网络建立连接,可以保持双连接状态一段时间,保证断开第二无线接入组件建立的网络连接后,该电子设备的各个需要通过网络进行数据传输的各个应用程序,成功切换为通过第二无线接入组件建立的网络连接进行数据传输,避免由于切换过快导致的某些应用程序的网络中断。When it is detected that the second wireless access component successfully establishes a connection with the wireless network through the second wireless channel, the electronic device can maintain the dual connection state for a period of time to ensure that the network connection established by the second wireless access component is disconnected. Each application that needs to perform data transmission through the network is successfully switched to perform data transmission through the network connection established by the second wireless access component, avoiding network interruption of some applications caused by too fast switching.
在一种可能的实现方式中,电子设备获取第一无线接入组件对应的应用程序列表,当检测到该应用程序列表中的所有应用程序通过该第二无线接入组件建立的网络连接进行数据传输时,断开该第一无线接入组件的网络连接。In a possible implementation manner, the electronic device obtains a list of application programs corresponding to the first wireless access component, and when it is detected that all applications in the application program list perform data processing through the network connection established by the second wireless access component During transmission, the network connection of the first wireless access component is disconnected.
当电子设备需要断开该第一无线接入组件建立的网络连接时,需要确保断开该网络连接不会对该电子设备中的各个应用程序造成影响,因此可以先获取该第一无线接入组件对应的应用程序列表,确定通过该第一无线接入组件建立的网络连接进行通信的应用程序,当通过该第一无线接入组件建立的网络连接进行通信的应用程序,均通过第二无线接入组件进行数据传输后,此时断开第一无线接入组件的网络连接,不会对该电子设备的应用程序造成影响,此时可以断开该第一无线接入组件的网络连接。When the electronic device needs to disconnect the network connection established by the first wireless access component, it needs to ensure that disconnecting the network connection will not affect each application in the electronic device, so the first wireless access can be obtained first The list of application programs corresponding to the components, to determine the application programs that communicate through the network connection established by the first wireless access component, when the application programs that communicate through the network connection established by the first wireless access component are all communicated through the second wireless access component. After the access component performs data transmission, the network connection of the first wireless access component is disconnected at this time, which will not affect the application program of the electronic device, and the network connection of the first wireless access component can be disconnected at this time.
在一种可能的实现方式中,当该第一无线接入组件处于无连接状态,电子设备将该第一无线接入组件确定为监听状态,以便通过该第一无线接入组件对该第一无线信道进行监听。In a possible implementation manner, when the first wireless access component is in a disconnected state, the electronic device determines that the first wireless access component is in a listening state, so as to use the first wireless access component to connect to the first wireless access component. Monitor the wireless channel.
当该第一无线接入组件被断开,且处于无连接状态时,该第二无线接入组件替代该第一无线接入组件作为主物理链路,通过第二无线信道进行网络连接。此时可以将该第一无线接入组件确定为监听状态,对该第一无线信道进行监听,以保证该第二无线接入组件建立的网络连接出现异常时,还可以通过该第一无线接入组件,切换回通过该第一无线信道构建的网络连接。When the first wireless access component is disconnected and is in a disconnected state, the second wireless access component replaces the first wireless access component as a main physical link, and performs network connection through a second wireless channel. At this time, the first wireless access component can be determined to be in a monitoring state, and the first wireless channel can be monitored to ensure that when the network connection established by the second wireless access component is abnormal, the first wireless access Enter the component and switch back to the network connection established through the first wireless channel.
在一种可能的实现方式中,响应于该电子设备断开该第一无线接入组件与该无线网络的网络连接,电子设备通过该第一无线接入组件对该第二无线信道中,除该第一无线子信道之外的无线子信道进行监听。In a possible implementation manner, in response to the electronic device disconnecting the network connection between the first wireless access component and the wireless network, the electronic device uses the first wireless access component to connect to the second wireless channel except for Wireless sub-channels other than the first wireless sub-channel are monitored.
在电子设备通过该第二无线接入组件以该第一无线子信道与无线网络建立连接后,该第一无线接入组件处于监听状态,该第一无线接入组件除了对该第一无线信道进行监听外,还可以对该第二无线信道中,除了该第一无线子信道之外的无线子信道进行监听,可以在除了该第一无线子信道之外的其他无线信道中,找到信号强度较高且较稳定的无线信道。After the electronic device establishes a connection with the wireless network through the second wireless access component through the first wireless sub-channel, the first wireless access component is in a listening state, and the first wireless access component is in addition to the first wireless channel. In addition to monitoring, the second wireless channel can also be monitored on wireless sub-channels other than the first wireless sub-channel, and the signal strength can be found in other wireless channels except the first wireless sub-channel. Higher and more stable wireless channel.
在一种可能的实现方式中,当该第一无线接入组件处于无连接状态达到第三指定时长,电子设备将该第一无线接入组件确定为监听状态,以便使用该第一无线接入组件对该第一无线信道进行监听。In a possible implementation manner, when the first wireless access component is in a disconnected state for a third specified time period, the electronic device determines that the first wireless access component is in a listening state, so as to use the first wireless access component The component listens to the first wireless channel.
当该第一无线接入组件处于无连接状态,且达到第三指定时长,才将该第一无线接入组件确定为监听状态,可以避免由于网络不稳定造成电子设备在第一无线接入组件连接的无线网络与第二无线接入组件连接的无线网络之间的频繁切换,避免了不必要的资源消耗。When the first wireless access component is in the disconnected state and reaches the third specified time period, the first wireless access component is determined to be in the listening state, which can avoid the electronic device being in the first wireless access component due to network instability. Frequent handover between the connected wireless network and the wireless network connected to the second wireless access component avoids unnecessary resource consumption.
本方案提出的方法,可以利用闲置的Wi-Fi独立硬件设备实现无线空口环境的实时检测,通过配置的实时信道遍历背景扫描,侦听非当前工作信道的繁忙状态(CCA检测)来间接地估计侦听信道的干扰多少,同时将侦听到的无线空口802.11帧RSSI、SSID、BSSID等信息上报给上层,配合软件算法来实现干扰强度的检测,从而锁定选择潜在的次工作信道,提供给上层软件一种更好的信道质量选择。The method proposed in this scheme can use idle Wi-Fi independent hardware devices to realize real-time detection of wireless air interface environment, and indirectly estimate the busy state (CCA detection) by listening to the busy state of the non-current working channel through the configured real-time channel traversal background scan. Monitor the interference of the channel, and report the RSSI, SSID, BSSID and other information of the 802.11 frame of the wireless air interface to the upper layer, and cooperate with the software algorithm to detect the interference strength, so as to lock and select the potential secondary working channel and provide it to the upper layer Software a better channel quality selection.
一旦当前的工作网络出现业务不稳定或抖动较大,从而不满足当前的正常业务要求时(如实时语音业务、Gaming场景等),上层根据之前锁定的次工作信道,配合之前的闲置的Wi-Fi内部硬件,建立一条新的无线网络连接,一旦连接完成后,通知上层业务切换,业务层可同时开启两条独立的端口通信,在确定另一条已经完成业务通路后,可将之前恶化的物理链路断开,作为检测链路,从而在物理连接上实现Ping-Pong操作。Once the current working network has unstable services or large jitter, and thus does not meet the current normal service requirements (such as real-time voice services, Gaming scenarios, etc.), the upper layer will cooperate with the previously idle Wi- The internal hardware of Fi establishes a new wireless network connection. Once the connection is completed, it notifies the upper layer of service switching, and the service layer can open two independent port communication at the same time. The link is disconnected, as a detection link, so as to realize the Ping-Pong operation on the physical connection.
其实现步骤可以如下:The implementation steps can be as follows:
1)当Wi-Fi模块启动后,上层APP软件统计连续一段时间只有一条主物理链路在工作时,则另一条辅闲置物理链路的状态处于Ready状态;1) After the Wi-Fi module is started, and the upper-layer APP software counts only one main physical link working for a period of time, the state of the other auxiliary idle physical link is in the Ready state;
2)上层通过配置命令下发辅链路可以工作在监听状态后(注意同时避开当前的主工作信道以及工作带宽,防止干扰状态的误统计),则辅链路周期定时的在不同的非工作频点间使能背景扫描,记录监听信道的CCA的繁忙状态,同时标记该闲置物理链路的状态为Monitor状态。每个信道的停留时间,监听信道列表以及CCA的监听周期等参数,均可以通过下发的配置命令来修改;2) The upper layer can work in the listening state after the secondary link is issued by the configuration command (pay attention to avoid the current main working channel and working bandwidth at the same time, to prevent the false statistics of the interference state), then the secondary link periodic timing is in different non-interference states. Enable background scanning between working frequency points, record the busy status of the CCA monitoring channel, and mark the status of the idle physical link as the Monitor status. Parameters such as the dwell time of each channel, the list of monitoring channels, and the monitoring period of CCA can be modified through the configuration commands issued;
3)上层APP记录各个监听信道的SSID、BSSID以及匹配帧的信号强度RSSI,同时利用该信道的CCA繁忙状态,依次计算出各个信道的干扰多少以及强弱指示,该统计结果实时更新;3) The upper-layer APP records the SSID, BSSID of each monitoring channel and the signal strength RSSI of the matching frame, and simultaneously utilizes the CCA busy state of the channel to sequentially calculate the amount of interference and the strength indication of each channel, and the statistical results are updated in real time;
4)当主工作信道出现连续的业务不流畅或者抖动较大时,可以断定当前的工作主信道已经不能满足当前的业务需要,上层APP触发辅链路的网络连接,依次从备选的网络连接中,根据RTT时延或者发送Tx、接收Rx的物理层速率来间接评估当前网络连接的最大吞吐和有效性,来选出最佳辅链路工作信道,同时保持物理网络链接;4) When continuous service is not smooth or the jitter is large in the main working channel, it can be concluded that the current working main channel can no longer meet the current business needs. , according to the RTT delay or the physical layer rate of sending Tx and receiving Rx to indirectly evaluate the maximum throughput and effectiveness of the current network connection, to select the best auxiliary link working channel, while maintaining the physical network link;
5)一旦新的物理网络连接建立后,通知上层APP,可以实现主网络物理链接迁移,发送断开第一无线接入组件网络请求,同时标记第二无线接入组件为主工作链路,状态为Working,标记第一无线接入组件为辅工作链路,状态为Ready。可以根据需要利用第一无线接入组件辅物理链路来继续实现监听功能。5) Once the new physical network connection is established, the upper-layer APP is notified, the physical link migration of the main network can be realized, the network request for disconnecting the first wireless access component is sent, and the second wireless access component is marked as the main working link. For Working, the first wireless access component is marked as a secondary working link, and the state is Ready. The monitoring function may continue to be implemented by using the secondary physical link of the first radio access component as required.
本方案中利用闲置的辅Wi-Fi物理链路作为干扰监听模式,可实时动态的监听非工作 信道的干扰多少和强弱,上报监听状态提供给上层应用程序,从而实现在主工作信道业务能力不满足要求时,能够选择备选信道实现网络状态的无缝切换。本方案同时保持只有一条物理链路工作,因此相对于同时多连接的物理链路在功耗上更有优势。本方案能够连续实现监听当前工作环境中的最优工作信道,从而能够保证下一次的网络切换更具有高切换成功率和满足业务的流畅性。In this solution, the idle secondary Wi-Fi physical link is used as the interference monitoring mode, which can dynamically monitor the amount and strength of the interference of the non-working channel in real time, and report the monitoring status to the upper-layer application, so as to realize the business capability of the main working channel. When the requirements are not met, alternative channels can be selected to realize seamless switching of network status. This solution keeps only one physical link working at the same time, so it has more advantages in power consumption compared to the physical links with multiple connections at the same time. This solution can continuously monitor the optimal working channel in the current working environment, thereby ensuring that the next network handover has a higher handover success rate and satisfies the fluency of services.
综上所述,在本申请实施例所示的方案中,在电子设备中存在第一无线接入组件以及第二无线接入组件,且第一无线接入组件与无线网络建立连接,第二无线网络处于无网络连接状态的情况下,当第一无线接入组件对应的第一无线信道处于异常状态时,电子设备可以通过第二无线接入组件以第二无线信道与无线网络建立连接,并在连接成功后断开第一无线接入组件的网络连接,使得电子设备不需要同时接入两个无线网络就可以实现网络的无缝切换,在保证无缝切换网络的同时,降低了电子设备的资源消耗。To sum up, in the solutions shown in the embodiments of the present application, there are a first wireless access component and a second wireless access component in the electronic device, and the first wireless access component establishes a connection with the wireless network, and the second wireless access component establishes a connection with the wireless network. When the wireless network is in a state of no network connection, when the first wireless channel corresponding to the first wireless access component is in an abnormal state, the electronic device can establish a connection with the wireless network through the second wireless access component through the second wireless channel, And after the connection is successful, the network connection of the first wireless access component is disconnected, so that the electronic device does not need to access two wireless networks at the same time to achieve seamless network switching. The resource consumption of the device.
请参考图6,其是根据一示例性实施例示出的一种无线网络切换方法的流程图。如图6所示,该无线网络切换方法包括如下步骤:Please refer to FIG. 6 , which is a flow chart of a wireless network switching method according to an exemplary embodiment. As shown in Figure 6, the wireless network switching method includes the following steps:
S601,主连接运行中(即第一无线接入组件处于正常工作状态),此时电子设备通过该第一无线接入组件,接入第一无线信道构建网络连接。S602,该电子设备检测该电子设备是否通过两个物理链路同时连接两个信道,当该电子设备通过两个物理链路同时连接两个信道时,说明该电子设备的两个物理链路(即两个无线接入组件)都处于连接状态,此时继续对该两个物理链路的工作状态进行检测,当该电子设备检测到该电子设备未连接两个信道时,此时可以认为该第二无线接入组件处于未连接状态。S603,该电子设备将该次连接(即第二无线接入组件)确定为准备态,确定该第二无线接入组件此时处于无连接,电子设备可以随时对该第二无线接入组件进行配置。S604,该电子设备将该次连接确定为监听(monitor)态,使用该第二无线接入组件对除了主连接对应的信道之外的所有信道进行监听,并获取该各个信道的监听结果。S605,当电子设备使用该第二无线接入组件对各个信道的监听未完成时,使用该第二无线接入组件继续对各个信道进行监听,当该第二无线接入组件对各个信道的监听完成后,将监听结果上传至上层应用程序。S606,当该上层应用程序检测到该主连接对应的网络连接出现问题,则将该主连接(即第一无线接入组件)对应的第一信道确定为异常状态,并根据该第二无线接入组件的监听结果,确定该第二无线接入组件将要接入的无线信道,再通过该第二无线接入组件,接入该无线信道,以实现该主连接与次连接的切换流程。S607,电子设备可以判断是否将切换后处于无连接状态的第一无线接入组件配置为监听状态,当该电子设备将该无连接状态的第一无线接入组件配置为监听状态后,该第一无线接入组件为次连接,该第二无线接入组件为主连接,重新执行上述S601至S606的步骤;当该电子设备不进行继续监听时,结束流程。S601 , the main connection is running (that is, the first wireless access component is in a normal working state), at this time, the electronic device accesses the first wireless channel through the first wireless access component to construct a network connection. S602, the electronic device detects whether the electronic device is connected to two channels simultaneously through two physical links, and when the electronic device is simultaneously connected to two channels through two physical links, it indicates that the two physical links ( That is, the two wireless access components) are in the connected state, and the working state of the two physical links continues to be detected. When the electronic device detects that the electronic device is not connected to the two channels, it can be considered that the The second wireless access component is in a disconnected state. S603, the electronic device determines the current connection (ie, the second wireless access component) as a ready state, and determines that the second wireless access component is not connected at this time, and the electronic device can perform the second wireless access component at any time. configuration. S604, the electronic device determines the current connection as a monitor state, uses the second wireless access component to monitor all channels except the channel corresponding to the main connection, and obtains monitoring results of the respective channels. S605, when the monitoring of each channel by the electronic device using the second wireless access component is not completed, continue to monitor each channel by using the second wireless access component, and when the second wireless access component monitors each channel After completion, upload the monitoring result to the upper-layer application. S606, when the upper-layer application detects that there is a problem with the network connection corresponding to the main connection, the first channel corresponding to the main connection (ie, the first wireless access component) is determined to be in an abnormal state, and according to the second wireless connection The monitoring result of the incoming component is used to determine the wireless channel to be accessed by the second wireless access component, and then the second wireless access component is used to access the wireless channel to implement the switching process between the primary connection and the secondary connection. S607, the electronic device can determine whether to configure the first wireless access component in the disconnected state after switching to the listening state, when the electronic device configures the first wireless access component in the disconnected state to the listening state, the first wireless access component in the disconnected state One wireless access component is the secondary connection, and the second wireless access component is the primary connection, and the above steps S601 to S606 are re-executed; when the electronic device does not continue to monitor, the process ends.
通过上述步骤,终端可以通过将闲置的无线接入组件配置为监听态,以实现在工作中的无线接入组件的网络连接状态不好的情况下,切换为该闲置的无线接入组件,以及该无线接入组件监听到的信道状况最好的信道,仅仅通过将闲置的无线接入组件配置为监听态就可以实现无线网络的无缝切换,降低了终端的资源消耗。Through the above steps, the terminal can switch the idle wireless access component to the idle wireless access component when the network connection state of the working wireless access component is not good by configuring the idle wireless access component to the listening state, and The channel with the best channel condition monitored by the wireless access component can realize seamless handover of the wireless network only by configuring the idle wireless access component to be in the listening state, thereby reducing the resource consumption of the terminal.
图7是根据一示例性实施例示出的一种无线网络切换装置的结构方框图。该无线网络切换装置可以实现图3或图4所示实施例提供的方法中的全部或者部分步骤。该无线网络切换装置可以包括:Fig. 7 is a structural block diagram of a wireless network switching apparatus according to an exemplary embodiment. The wireless network switching apparatus may implement all or part of the steps in the method provided by the embodiment shown in FIG. 3 or FIG. 4 . The wireless network switching device may include:
第一连接模块701,用于当所述第一无线信道处于异常状态时,所述电子设备通过第二无线接入组件以第二无线信道与所述无线网络建立连接;A first connection module 701, configured to establish a connection between the electronic device and the wireless network through a second wireless channel through a second wireless access component when the first wireless channel is in an abnormal state;
第一断开模块702,用于响应于所述电子设备通过第二无线接入组件以所述第二无线信道与所述无线网络建立连接,所述电子设备断开所述第一无线接入组件与所述无线网络 的网络连接。A first disconnecting module 702, configured to disconnect the electronic device from the first wireless access in response to the electronic device establishing a connection with the wireless network through the second wireless access component through the second wireless channel The components are connected to the network of the wireless network.
在一种可能的实现方式中,所述第二无线信道是所述第一终端对应的无线信道中,除所述第一无线信道外的无线信道。In a possible implementation manner, the second wireless channel is a wireless channel other than the first wireless channel among the wireless channels corresponding to the first terminal.
在一种可能的实现方式中,所述装置还包括:In a possible implementation, the apparatus further includes:
监听信息获取模块,用于指示所述电子设备获取第一监听信息;所述第一监听信息是所述第二无线接入组件对所述第二无线信道的监听信息;a monitoring information acquisition module, configured to instruct the electronic device to acquire first monitoring information; the first monitoring information is monitoring information of the second wireless channel by the second wireless access component;
所述第一连接模块701,还用于,The first connection module 701 is also used for:
当所述第一无线信道处于异常状态时,指示所述电子设备根据所述第一监听信息,通过所述第二无线接入组件以所述第二无线信道与所述无线网络建立连接。When the first wireless channel is in an abnormal state, the electronic device is instructed to establish a connection with the wireless network by using the second wireless channel through the second wireless access component according to the first monitoring information.
在一种可能的实现方式中,所述第二无线信道包含至少一个无线子信道;In a possible implementation, the second wireless channel includes at least one wireless sub-channel;
所述监听信息获取模块,还用于,The monitoring information acquisition module is also used for,
所述电子设备通过所述第二无线接入组件对所述至少一个无线子信道进行监听,获取所述第一监听信息,所述第一监听信息包含至少一个无线子信道对应的监听信息。The electronic device monitors the at least one wireless sub-channel through the second wireless access component, and obtains the first monitoring information, where the first monitoring information includes monitoring information corresponding to the at least one wireless sub-channel.
在一种可能的实现方式中,所述第一连接模块701,还包括:In a possible implementation manner, the first connection module 701 further includes:
第一子信道获取单元,用于当所述第一无线信道处于异常状态时,所述电子设备根据所述第一监听信息,在所述至少一个无线子信道中确定第一无线子信道;a first sub-channel acquisition unit, configured to determine, by the electronic device, a first wireless sub-channel in the at least one wireless sub-channel according to the first monitoring information when the first wireless channel is in an abnormal state;
第一连接单元,用于所述电子设备通过所述第二无线接入组件以所述第一无线子信道与所述无线网络建立连接。A first connection unit, used for the electronic device to establish a connection with the wireless network by using the first wireless sub-channel through the second wireless access component.
在一种可能的实现方式中,所述第一子信道获取单元,还用于,In a possible implementation manner, the first sub-channel obtaining unit is further configured to:
当所述第一无线信道处于异常状态时,所述电子设备根据至少一个无线子信道对应的监听信息,获得所述至少一个无线子信道中各个无线子信道分别对应的信道质量值;When the first wireless channel is in an abnormal state, the electronic device obtains, according to the monitoring information corresponding to the at least one wireless sub-channel, a channel quality value corresponding to each wireless sub-channel in the at least one wireless sub-channel;
所述电子设备根据所述至少一个无线子信道中各个无线子信道分别对应的信道质量值,在所述至少一个无线子信道中确定所述第一无线子信道。The electronic device determines the first wireless subchannel in the at least one wireless subchannel according to channel quality values corresponding to each wireless subchannel in the at least one wireless subchannel.
在一种可能的实现方式中,所述第一子信道获取单元,还用于,In a possible implementation manner, the first sub-channel obtaining unit is further configured to:
所述电子设备根据所述至少一个无线子信道中各个无线子信道分别对应的信道质量值,在所述至少一个无线子信道中确定至少一个备选子信道;所述备选子信道的信道质量值大于质量阈值;The electronic device determines at least one candidate subchannel in the at least one wireless subchannel according to channel quality values corresponding to each wireless subchannel in the at least one wireless subchannel; the channel quality of the candidate subchannel value is greater than the quality threshold;
所述电子设备在所述至少一个备选子信道中确定所述第一无线子信道。The electronic device determines the first wireless subchannel in the at least one candidate subchannel.
在一种可能的实现方式中,所述无线子信道对应的监听信息包括所述无线子信道对应的服务集标识符SSID、所述无线子信道对应的基本服务集标识符BSSID、所述无线子信道对应的无线接收信号强度RSSI、所述无线子信道对应的空闲信道评估CCA、所述无线子信道对应的往返时延RTT、所述无线子信道对应的发送数据包的物理层速率以及所述无线子信道对应的接收数据包的物理层速率中的至少一种。In a possible implementation manner, the monitoring information corresponding to the wireless subchannel includes a service set identifier SSID corresponding to the wireless subchannel, a basic service set identifier BSSID corresponding to the wireless subchannel, the wireless subchannel The wireless received signal strength RSSI corresponding to the channel, the idle channel evaluation CCA corresponding to the wireless subchannel, the round-trip delay RTT corresponding to the wireless subchannel, the physical layer rate of the transmitted data packet corresponding to the wireless subchannel, and the At least one of the physical layer rates of the received data packets corresponding to the wireless subchannel.
在一种可能的实现方式中,所述装置还包括:In a possible implementation, the apparatus further includes:
第一监听模块,用于响应于所述电子设备断开所述第一无线接入组件与所述无线网络的网络连接,所述电子设备通过所述第一无线接入组件对所述第一无线信道进行监听。A first monitoring module, configured to disconnect the network connection between the first wireless access component and the wireless network in response to the electronic device, the electronic device communicates with the first wireless access component through the first wireless access component. Monitor the wireless channel.
综上所述,在本申请实施例所示的方案中,在电子设备中存在第一无线接入组件以及第二无线接入组件,且第一无线接入组件与无线网络建立连接,第二无线网络处于无网络连接状态的情况下,当第一无线接入组件对应的第一无线信道处于异常状态时,电子设备可以通过第二无线接入组件以第二无线信道与无线网络建立连接,并在连接成功后断开第一无线接入组件的网络连接,使得电子设备不需要同时接入两个无线网络就可以实现网络的无缝切换,在保证无缝切换网络的同时,降低了电子设备的资源消耗。To sum up, in the solutions shown in the embodiments of the present application, there are a first wireless access component and a second wireless access component in the electronic device, and the first wireless access component establishes a connection with the wireless network, and the second wireless access component establishes a connection with the wireless network. When the wireless network is in a state of no network connection, when the first wireless channel corresponding to the first wireless access component is in an abnormal state, the electronic device can establish a connection with the wireless network through the second wireless access component through the second wireless channel, And after the connection is successful, the network connection of the first wireless access component is disconnected, so that the electronic device does not need to access two wireless networks at the same time to achieve seamless network switching. The resource consumption of the device.
本申请还提供了一种通信芯片,该通信芯片中设置有如上述实施例所示的无线网络切换装置。该通信芯片中实现在计算机设备中时,用于当电子设备通过第一无线接入组件以 第一无线信道与无线网络建立连接时,所述第二无线接入组件为无网络连接状态,当所述第一无线信道处于异常状态时,电子设备通过第二无线接入组件以第二无线信道与所述无线网络建立连接;响应于所述电子设备通过第二无线接入组件以所述第二无线信道与所述无线网络建立连接,断开所述第一无线接入组件与所述无线网络的网络连接。The present application also provides a communication chip, in which the wireless network switching device shown in the above-mentioned embodiment is set. When the communication chip is implemented in a computer device, when the electronic device establishes a connection with a wireless network through a first wireless access component through a first wireless channel, the second wireless access component is in a state of no network connection, and when the electronic device establishes a connection with a wireless network through a first wireless channel When the first wireless channel is in an abnormal state, the electronic device establishes a connection with the wireless network through the second wireless access component through the second wireless channel; in response to the electronic device using the first wireless access component through the second wireless access component The second wireless channel establishes a connection with the wireless network, and disconnects the network connection between the first wireless access component and the wireless network.
请参考图8,其示出了本申请一个示例性实施例提供的计算机设备的结构示意图。该计算机设备中包括通信芯片810和存储器820,通信芯片810和存储器820之间通过总线830相连,且通信芯片810中设置有上述实施例提供的无线网络切换装置。Please refer to FIG. 8 , which shows a schematic structural diagram of a computer device provided by an exemplary embodiment of the present application. The computer equipment includes a communication chip 810 and a memory 820, the communication chip 810 and the memory 820 are connected through a bus 830, and the communication chip 810 is provided with the wireless network switching device provided in the above embodiment.
本申请实施例还提供了一种计算机可读存储介质,所述存储介质中存储有计算机程序,所述计算机程序由处理器加载并执行以实现上述图3或图4所示的无线网络切换方法中的各个步骤。Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the storage medium, and the computer program is loaded and executed by a processor to implement the wireless network switching method shown in FIG. 3 or FIG. 4 . in each step.
本申请还提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述3或图4所示的无线网络切换方法中的各个步骤。The application also provides a computer program product or computer program, the computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device performs each step in the wireless network switching method shown in the above 3 or FIG. 4 .
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should realize that, in one or more of the above examples, the functions described in the embodiments of the present application may be implemented by hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage medium can be any available medium that can be accessed by a general purpose or special purpose computer.
以上所述仅为本申请的示例性实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only exemplary embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the protection of the present application. within the range.

Claims (22)

  1. 一种无线网络切换方法,所述方法由电子设备执行,当所述电子设备通过第一无线接入组件以第一无线信道与无线网络建立连接时,所述电子设备中的第二无线接入组件为无网络连接状态,所述方法包括:A wireless network switching method, the method is performed by an electronic device, when the electronic device establishes a connection with a wireless network through a first wireless access component through a first wireless channel, a second wireless access The component is in a state of no network connection, and the method includes:
    当所述第一无线信道处于异常状态时,所述电子设备通过所述第二无线接入组件以第二无线信道与所述无线网络建立连接;When the first wireless channel is in an abnormal state, the electronic device establishes a connection with the wireless network by using the second wireless channel through the second wireless access component;
    响应于所述电子设备通过所述第二无线接入组件以所述第二无线信道与所述无线网络建立连接,所述电子设备断开所述第一无线接入组件与所述无线网络的网络连接。In response to the electronic device establishing a connection with the wireless network through the second wireless access component with the second wireless channel, the electronic device disconnects the first wireless access component from the wireless network Internet connection.
  2. 根据权利要求1所述的方法,所述第二无线信道是所述第一终端对应的无线信道中,除所述第一无线信道外的无线信道。The method according to claim 1, wherein the second wireless channel is a wireless channel other than the first wireless channel among the wireless channels corresponding to the first terminal.
  3. 根据权利要求2所述的方法,所述当所述第一无线信道处于异常状态时,所述电子设备通过所述第二无线接入组件以第二无线信道与所述无线网络建立连接之前,所述方法还包括:The method according to claim 2, wherein when the first wireless channel is in an abnormal state, before the electronic device establishes a connection with the wireless network through the second wireless access component through the second wireless channel, The method also includes:
    所述电子设备获取第一监听信息;所述第一监听信息是所述第二无线接入组件对所述第二无线信道的监听信息;obtaining, by the electronic device, first monitoring information; the first monitoring information is monitoring information of the second wireless channel by the second wireless access component;
    所述当所述第一无线信道处于异常状态时,所述电子设备通过所述第二无线接入组件以第二无线信道与所述无线网络建立连接,包括:When the first wireless channel is in an abnormal state, the electronic device establishes a connection with the wireless network through the second wireless access component through the second wireless channel, including:
    当所述第一无线信道处于异常状态时,所述电子设备根据所述第一监听信息,通过所述第二无线接入组件以所述第二无线信道与所述无线网络建立连接。When the first wireless channel is in an abnormal state, the electronic device establishes a connection with the wireless network by using the second wireless channel through the second wireless access component according to the first monitoring information.
  4. 根据权利要求3所述的方法,所述第二无线信道包含至少一个无线子信道;The method of claim 3, the second wireless channel comprising at least one wireless sub-channel;
    所述电子设备获取第一监听信息,包括:The electronic device obtains the first monitoring information, including:
    所述电子设备通过所述第二无线接入组件对所述至少一个无线子信道进行监听,获取所述第一监听信息,所述第一监听信息包含至少一个无线子信道对应的监听信息。The electronic device monitors the at least one wireless sub-channel through the second wireless access component, and obtains the first monitoring information, where the first monitoring information includes monitoring information corresponding to the at least one wireless sub-channel.
  5. 根据权利要求4所述的方法,所述当所述第一无线信道处于异常状态时,所述电子设备根据所述第一监听信息,通过所述第二无线接入组件以所述第二无线信道与所述无线网络建立连接,包括:The method according to claim 4, wherein when the first wireless channel is in an abnormal state, the electronic device uses the second wireless access component to connect to the second wireless channel according to the first monitoring information. The channel establishes a connection with the wireless network, including:
    当所述第一无线信道处于异常状态时,所述电子设备根据所述第一监听信息,在所述至少一个无线子信道中确定第一无线子信道;When the first wireless channel is in an abnormal state, the electronic device determines a first wireless sub-channel in the at least one wireless sub-channel according to the first monitoring information;
    所述电子设备通过所述第二无线接入组件以所述第一无线子信道与所述无线网络建立连接。The electronic device establishes a connection with the wireless network through the second wireless access component through the first wireless sub-channel.
  6. 根据权利要求5所述的方法,所述当所述第一无线信道处于异常状态时,所述电子设备根据所述第一监听信息,在所述至少一个无线子信道中确定第一无线子信道,包括:The method according to claim 5, wherein when the first wireless channel is in an abnormal state, the electronic device determines a first wireless sub-channel in the at least one wireless sub-channel according to the first monitoring information ,include:
    当所述第一无线信道处于异常状态时,所述电子设备根据所述至少一个无线子信道对应的监听信息,获得所述至少一个无线子信道中各个无线子信道分别对应的信道质量值;When the first wireless channel is in an abnormal state, the electronic device obtains, according to the monitoring information corresponding to the at least one wireless sub-channel, a channel quality value corresponding to each wireless sub-channel in the at least one wireless sub-channel;
    所述电子设备根据所述至少一个无线子信道中各个无线子信道分别对应的信道质量值,在所述至少一个无线子信道中确定所述第一无线子信道。The electronic device determines the first wireless subchannel in the at least one wireless subchannel according to channel quality values corresponding to each wireless subchannel in the at least one wireless subchannel.
  7. 根据权利要求5所述的方法,所述电子设备根据所述至少一个无线子信道中各个无线子信道分别对应的信道质量值,在所述至少一个无线子信道中确定所述第一无线子信 道,包括:The method according to claim 5, wherein the electronic device determines the first wireless sub-channel in the at least one wireless sub-channel according to channel quality values corresponding to each wireless sub-channel in the at least one wireless sub-channel ,include:
    所述电子设备根据所述至少一个无线子信道中各个无线子信道分别对应的信道质量值,在所述至少一个无线子信道中确定至少一个备选子信道;所述备选子信道的信道质量值大于质量阈值;The electronic device determines at least one candidate subchannel in the at least one wireless subchannel according to channel quality values corresponding to each wireless subchannel in the at least one wireless subchannel; the channel quality of the candidate subchannel value is greater than the quality threshold;
    所述电子设备在所述至少一个备选子信道中确定所述第一无线子信道。The electronic device determines the first wireless subchannel in the at least one candidate subchannel.
  8. 根据权利要求4至7任一所述的方法,所述无线子信道对应的监听信息包括所述无线子信道对应的服务集标识符SSID、所述无线子信道对应的基本服务集标识符BSSID、所述无线子信道对应的无线接收信号强度RSSI、所述无线子信道对应的空闲信道评估CCA、所述无线子信道对应的往返时延RTT、所述无线子信道对应的发送数据包的物理层速率以及所述无线子信道对应的接收数据包的物理层速率中的至少一种。The method according to any one of claims 4 to 7, wherein the monitoring information corresponding to the wireless subchannel comprises a service set identifier SSID corresponding to the wireless subchannel, a basic service set identifier BSSID corresponding to the wireless subchannel, The wireless received signal strength RSSI corresponding to the wireless sub-channel, the idle channel assessment CCA corresponding to the wireless sub-channel, the round-trip delay RTT corresponding to the wireless sub-channel, and the physical layer of the transmitted data packet corresponding to the wireless sub-channel at least one of the rate and the physical layer rate of the received data packet corresponding to the wireless subchannel.
  9. 根据权利要求1所述的方法,所述方法还包括:The method of claim 1, further comprising:
    响应于所述电子设备断开所述第一无线接入组件与所述无线网络的网络连接,所述电子设备通过所述第一无线接入组件对所述第一无线信道进行监听。In response to the electronic device disconnecting the first wireless access component from the wireless network, the electronic device monitors the first wireless channel through the first wireless access component.
  10. 一种无线网络切换装置,当电子设备通过第一无线接入组件以第一无线信道与无线网络建立连接时,所述第二无线接入组件为无网络连接状态,所述装置包括:A wireless network switching device, when an electronic device establishes a connection with a wireless network through a first wireless access component through a first wireless channel, the second wireless access component is in a state of no network connection, and the device includes:
    第一连接模块,用于当所述第一无线信道处于异常状态时,所述电子设备通过第二无线接入组件以第二无线信道与所述无线网络建立连接;a first connection module, configured to establish a connection between the electronic device and the wireless network through a second wireless channel through a second wireless access component when the first wireless channel is in an abnormal state;
    第一断开模块,用于响应于所述电子设备通过第二无线接入组件以所述第二无线信道与所述无线网络建立连接,所述电子设备断开所述第一无线接入组件与所述无线网络的网络连接。A first disconnecting module, configured to disconnect the first wireless access component from the electronic device in response to the electronic device establishing a connection with the wireless network through the second wireless channel through the second wireless access component A network connection to the wireless network.
  11. 根据权利要求10所述的装置,所述第二无线信道是所述第一终端对应的无线信道中,除所述第一无线信道外的无线信道。The apparatus according to claim 10, wherein the second wireless channel is a wireless channel other than the first wireless channel among the wireless channels corresponding to the first terminal.
  12. 根据权利要求11所述的装置,所述装置还包括:The apparatus of claim 11, further comprising:
    监听信息获取模块,用于当所述第一无线信道处于异常状态时,所述电子设备通过所述第二无线接入组件以第二无线信道与所述无线网络建立连接之前,所述电子设备获取第一监听信息;所述第一监听信息是所述第二无线接入组件对所述第二无线信道的监听信息;The monitoring information acquisition module is used for, when the first wireless channel is in an abnormal state, before the electronic device establishes a connection with the wireless network through the second wireless access component through the second wireless channel, the electronic device acquiring first monitoring information; the first monitoring information is the monitoring information of the second wireless channel by the second wireless access component;
    所述第一连接模块,用于,The first connection module is used for,
    当所述第一无线信道处于异常状态时,所述电子设备根据所述第一监听信息,通过所述第二无线接入组件以所述第二无线信道与所述无线网络建立连接。When the first wireless channel is in an abnormal state, the electronic device establishes a connection with the wireless network by using the second wireless channel through the second wireless access component according to the first monitoring information.
  13. 根据权利要求12所述的装置,所述第二无线信道包含至少一个无线子信道;The apparatus of claim 12, the second wireless channel comprises at least one wireless subchannel;
    所述监听信息获取模块,用于,The monitoring information acquisition module is used for,
    所述电子设备通过所述第二无线接入组件对所述至少一个无线子信道进行监听,获取所述第一监听信息,所述第一监听信息包含至少一个无线子信道对应的监听信息。The electronic device monitors the at least one wireless sub-channel through the second wireless access component, and obtains the first monitoring information, where the first monitoring information includes monitoring information corresponding to the at least one wireless sub-channel.
  14. 根据权利要求13所述的装置,所述第一连接模块,包括:The apparatus according to claim 13, the first connection module, comprising:
    第一子信道获取单元,用于当所述第一无线信道处于异常状态时,所述电子设备根据所述第一监听信息,在所述至少一个无线子信道中确定第一无线子信道;a first sub-channel acquisition unit, configured to determine, by the electronic device, a first wireless sub-channel in the at least one wireless sub-channel according to the first monitoring information when the first wireless channel is in an abnormal state;
    第一连接单元,用于所述电子设备通过所述第二无线接入组件以所述第一无线子信道与所述无线网络建立连接。A first connection unit, used for the electronic device to establish a connection with the wireless network by using the first wireless sub-channel through the second wireless access component.
  15. 根据权利要求14所述的装置,所述第一子信道获取单元,用于,The apparatus according to claim 14, wherein the first sub-channel obtaining unit is configured to:
    当所述第一无线信道处于异常状态时,所述电子设备根据所述至少一个无线子信道对应的监听信息,获得所述至少一个无线子信道中各个无线子信道分别对应的信道质量值;When the first wireless channel is in an abnormal state, the electronic device obtains, according to the monitoring information corresponding to the at least one wireless sub-channel, a channel quality value corresponding to each wireless sub-channel in the at least one wireless sub-channel;
    所述电子设备根据所述至少一个无线子信道中各个无线子信道分别对应的信道质量值,在所述至少一个无线子信道中确定所述第一无线子信道。The electronic device determines the first wireless subchannel in the at least one wireless subchannel according to channel quality values corresponding to each wireless subchannel in the at least one wireless subchannel.
  16. 根据权利要求14所述的装置,所述第一子信道获取单元,用于,The apparatus according to claim 14, wherein the first sub-channel obtaining unit is configured to:
    所述电子设备根据所述至少一个无线子信道中各个无线子信道分别对应的信道质量值,在所述至少一个无线子信道中确定至少一个备选子信道;所述备选子信道的信道质量值大于质量阈值;The electronic device determines at least one candidate subchannel in the at least one wireless subchannel according to channel quality values corresponding to each wireless subchannel in the at least one wireless subchannel; the channel quality of the candidate subchannel value is greater than the quality threshold;
    所述电子设备在所述至少一个备选子信道中确定所述第一无线子信道。The electronic device determines the first wireless subchannel in the at least one candidate subchannel.
  17. 根据权利要求13至16任一所述的装置,所述无线子信道对应的监听信息包括所述无线子信道对应的服务集标识符SSID、所述无线子信道对应的基本服务集标识符BSSID、所述无线子信道对应的无线接收信号强度RSSI、所述无线子信道对应的空闲信道评估CCA、所述无线子信道对应的往返时延RTT、所述无线子信道对应的发送数据包的物理层速率以及所述无线子信道对应的接收数据包的物理层速率中的至少一种。The apparatus according to any one of claims 13 to 16, wherein the monitoring information corresponding to the wireless subchannel comprises a service set identifier SSID corresponding to the wireless subchannel, a basic service set identifier BSSID corresponding to the wireless subchannel, The wireless received signal strength RSSI corresponding to the wireless sub-channel, the idle channel assessment CCA corresponding to the wireless sub-channel, the round-trip delay RTT corresponding to the wireless sub-channel, and the physical layer of the transmitted data packet corresponding to the wireless sub-channel at least one of the rate and the physical layer rate of the received data packet corresponding to the wireless subchannel.
  18. 根据权利要求10所述的装置,所述装置还包括:The apparatus of claim 10, further comprising:
    第一监听模块,用于响应于所述电子设备断开所述第一无线接入组件与所述无线网络的网络连接,所述电子设备通过所述第一无线接入组件对所述第一无线信道进行监听。A first monitoring module, configured to disconnect the network connection between the first wireless access component and the wireless network in response to the electronic device, the electronic device communicates with the first wireless access component through the first wireless access component. Monitor the wireless channel.
  19. 一种通信芯片,所述通信芯片中设置有如权利要求10所述的无线网络切换装置。A communication chip, wherein the communication chip is provided with the wireless network switching device according to claim 10 .
  20. 一种电子设备,所述电子设备包括通信芯片和存储器,所述通信芯片和所述存储器之间通过总线相连;所述通信芯片包括如权利要求10所述的无线网络切换装置。An electronic device, the electronic device comprising a communication chip and a memory, the communication chip and the memory are connected through a bus; the communication chip comprises the wireless network switching device according to claim 10 .
  21. 一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,所述计算机程序由处理器加载并执行以实现如权利要求1至9任一所述的无线网络切换方法。A computer-readable storage medium, storing a computer program in the computer-readable storage medium, the computer program being loaded and executed by a processor to implement the wireless network switching method according to any one of claims 1 to 9.
  22. 一种计算机程序产品,所述计算机程序产品包括计算机指令,所述计算机指令由处理器加载并执行以实现如权利要求1至9任一所述的无线网络切换方法。A computer program product, the computer program product comprising computer instructions, the computer instructions being loaded and executed by a processor to implement the wireless network switching method according to any one of claims 1 to 9.
PCT/CN2022/083155 2021-05-06 2022-03-25 Wireless network switching method and apparatus, chip, electronic device, and storage medium WO2022233198A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110491014.8A CN115314966A (en) 2021-05-06 2021-05-06 Wireless network switching method and device, electronic equipment and storage medium
CN202110491014.8 2021-05-06

Publications (1)

Publication Number Publication Date
WO2022233198A1 true WO2022233198A1 (en) 2022-11-10

Family

ID=83853930

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/083155 WO2022233198A1 (en) 2021-05-06 2022-03-25 Wireless network switching method and apparatus, chip, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN115314966A (en)
WO (1) WO2022233198A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105578499A (en) * 2015-05-29 2016-05-11 宇龙计算机通信科技(深圳)有限公司 WIFI wireless fidelity processing method and terminal
WO2016197331A1 (en) * 2015-06-09 2016-12-15 华为技术有限公司 Frequency band switching method and terminal
CN106376054A (en) * 2016-08-29 2017-02-01 上海纽菲斯信息科技有限公司 Dual-wifi system and network connection control method of mobile device
CN107852655A (en) * 2016-05-31 2018-03-27 华为技术有限公司 Switch the method and terminal device of access point
WO2018098943A1 (en) * 2016-12-01 2018-06-07 华为技术有限公司 Wireless local area network access point switching method, and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105578499A (en) * 2015-05-29 2016-05-11 宇龙计算机通信科技(深圳)有限公司 WIFI wireless fidelity processing method and terminal
WO2016197331A1 (en) * 2015-06-09 2016-12-15 华为技术有限公司 Frequency band switching method and terminal
CN107852655A (en) * 2016-05-31 2018-03-27 华为技术有限公司 Switch the method and terminal device of access point
CN106376054A (en) * 2016-08-29 2017-02-01 上海纽菲斯信息科技有限公司 Dual-wifi system and network connection control method of mobile device
WO2018098943A1 (en) * 2016-12-01 2018-06-07 华为技术有限公司 Wireless local area network access point switching method, and terminal

Also Published As

Publication number Publication date
CN115314966A (en) 2022-11-08

Similar Documents

Publication Publication Date Title
CN107211369B (en) Method of selectively enabling a wireless access point or repeater
US7515548B2 (en) End-point based approach for determining network status in a wireless local area network
CA2534976C (en) Passive probing for handover in a local area network
US10959150B2 (en) Method and apparatus for transmitting data
KR20080017451A (en) Method and apparatus for performing dynamic link selection
JP5981172B2 (en) Wireless communication system, communication method, base station apparatus, and communication terminal
US20090290555A1 (en) Autonomous anonymous association between a mobile station and multiple network elements in a wireless communication system
US20090291686A1 (en) Autonomous connectivity between a mobile station and multiple network elements for minimizing service discontinuities during handovers in a wireless communication system
US20080025275A1 (en) Wireless local area network and method thereof
KR20060054414A (en) Bss-switch module for wireless devices
US20220394575A1 (en) Measurement Configuration Method and Apparatus
WO2007128226A1 (en) A method and ue for measuring the adjacent cell
US8620312B2 (en) Combined background and 20/40 coexistence scan
JP2010154524A (en) Method and device for determining channel quality
WO2020248237A1 (en) Method and device for establishing aggregated connection, and storage medium
WO2020228454A1 (en) Communication method and related product
WO2023151063A1 (en) Measurement relaxation method and apparatus, device, and storage medium
EP1883186B1 (en) Using multiple internet protocol addresses for WIFI handover
WO2021135413A1 (en) Energy saving control method and related device
JP7386601B2 (en) Communication device, communication device control method, and program
WO2022233198A1 (en) Wireless network switching method and apparatus, chip, electronic device, and storage medium
WO2014113926A1 (en) Cell measurement method, radio network controller and user equipment
WO2021143283A1 (en) Method for performing signal transmission and reception in measurement gap, network element device, and readable storage medium
WO2017028561A1 (en) Communication method, device, and system
WO2024066812A1 (en) Cell handover method, terminal device, and network device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22798539

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE