Channel switching method, device, terminal and storage medium

By disconnecting the connection to the first access point in the Wi-Fi protocol and establishing a new connection between the second access point, the problem of channel resources was solved in the Wi-Fi 7 era, and the master-slave system was achieved. The effective utilization of channel switching improves the performance and efficiency of Wi-Fi networks.

CN118400813BActive Publication Date: 2024-11-05CLOURNEY SEMICONDUCTOR (NANJING) +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410851266.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-11-05
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

When the existing Wi-Fi protocol exists both the main channel and the slave channel, it is difficult for devices to effectively switch channels, resulting in waste of channel resources, especially in the high-bandwidth environment in the Wi-Fi 7 era.

Method used

By disconnecting the connection from the first access point on the first wireless channel and establishing a connection between the second wireless channel and the second access point, the terminal is allocated to the second wireless according to the support of the access point. The working channel in the channel ensures the smooth progress of channel switching.

Benefits of technology

Channel switching is realized when both master and slave channels exist, ensuring that multiple wireless devices can share wireless resources fairly and effectively, and improving the performance and efficiency of Wi-Fi networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118400813B_ABST
    Figure CN118400813B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention relate to the field of wireless communication technology, and disclose a channel switching method, device, terminal and storage medium. In the present invention, the connection with the first access point is disconnected on the first wireless channel, and a connection is established between the second wireless channel and the second access point to perform channel switching; when the second access point supports the terminal to access the slave channel, the second access point is used to allocate a working channel in the second wireless channel to the terminal according to each working channel in the first wireless channel; when the second access point does not support the terminal to access the slave channel, the second access point is used to allocate a working channel in the second wireless channel to the terminal according to the functions of the terminal. This enables channel switching to be performed when both the master and slave channels exist and ensures that multiple wireless devices can share wireless resources fairly and effectively.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of wireless communication technology, and in particular to a channel switching method, device, terminal and storage medium. Background Art

[0002] In the development of Wi-Fi technology, the concepts of primary channel and secondary channel were introduced to expand the bandwidth of the original channel to improve the efficiency and capacity of data transmission. The primary channel, as the core channel of the Wi-Fi network, is responsible for the transmission of management frames and the maintenance of network stability. Its main function is to ensure the normal operation of the network, including device access, authentication, and broadcast of network status. At the same time, the primary channel also ensures compatibility with old devices, allowing new and old devices to coexist harmoniously in the same network environment. The secondary channel, as a supplement and extension of the primary channel, is mainly used for data transmission to improve the throughput and efficiency of the network. By introducing the secondary channel, the Wi-Fi system can achieve high-speed data transmission without interfering with the normal operation of the primary channel, thereby meeting the growing demand for data transmission.

[0003] The inventors have found that there are at least the following problems in the related art: A strict access strategy is followed in the current Wi-Fi protocol. The device will only access when both the main channel and the slave channel are idle. If the main channel is idle and the slave channel is busy, the device chooses to access the main channel to ensure smooth communication. However, when the main channel is busy and the slave channel is idle, the traditional access strategy chooses not to access any channel, which to some extent leads to a waste of channel resources. Especially in the Wi-Fi 7 era, the maximum channel bandwidth has reached 320MHz, and the slave channel bandwidth can be as high as 160MHz or 80MHz, and this waste of resources is becoming more and more significant. However, the current design of slave channel access is not perfect, and how to switch channels when both master and slave channels exist is still a technical gap. The channel switching solution after slave channel access is not yet complete. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a channel switching method, device, terminal and storage medium, so that when performing channel switching on a slave channel, the potential of the slave channel can be fully utilized, thereby further improving the performance and efficiency of the Wi-Fi network.

[0005] To solve the above technical problems, an embodiment of the present invention provides a channel switching method, including: performing channel switching by disconnecting a connection with a first access point on a first wireless channel and establishing a connection between a second wireless channel and a second access point; when the second access point supports the terminal to access a slave channel, allocating a working channel in the second wireless channel to the terminal through the second access point according to each working channel in the first wireless channel; when the second access point does not support the terminal to access a slave channel, allocating a working channel in the second wireless channel to the terminal through the second access point according to the functions of the terminal.

[0006] An embodiment of the present invention also provides a channel switching device, comprising: a channel switching module, used to perform channel switching by disconnecting the connection with the first access point on the first wireless channel and establishing a connection between the second wireless channel and the second access point; a service allocation module, used to allocate a working channel in the second wireless channel to the terminal through the second access point according to each working channel in the first wireless channel when the second access point supports the terminal to access the slave channel; when the second access point does not support the terminal to access the slave channel, allocate a working channel in the second wireless channel to the terminal through the second access point according to the functions of the terminal.

[0007] An embodiment of the present invention also provides a terminal, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned channel switching method.

[0008] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program, and the computer program implements the above-mentioned channel switching method when executed by a processor.

[0009] In the embodiment of the present invention, the connection with the first access point is disconnected on the first wireless channel and a connection is established between the second wireless channel and the second access point to perform channel switching; when the second access point supports the terminal to perform slave channel access, the second access point allocates a working channel in the second wireless channel to the terminal according to each working channel in the first wireless channel; when the second access point does not support the terminal to perform slave channel access, the second access point allocates a working channel in the second wireless channel to the terminal according to the functions of the terminal. This enables channel switching to be performed when both the master and slave channels exist and ensures that multiple wireless devices can share wireless resources fairly and effectively. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0011] Figure 1 is a flow chart of a channel switching method provided according to an embodiment of the present invention;

[0012] Figure 2 is a schematic diagram of a wireless connection relationship between a terminal and an access point provided according to an embodiment of the present invention;

[0013] Figure 3 is a schematic diagram of the data transmission and reception relationship during seamless switching according to an embodiment of the present invention;

[0014] Figure 4 is a structural schematic diagram of a channel switching device according to another embodiment of the present invention;

[0015] Figure 5 It is a schematic diagram of the structure of a terminal according to another embodiment of the present invention. DETAILED DESCRIPTION

[0016] To make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present invention, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented. The division of the following embodiments is for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined and referenced with each other without contradiction.

[0017] An embodiment of the present invention relates to a channel switching method, which can be applied to terminal (STA) devices such as mobile phones and computers. In this embodiment, the channel switching is performed by disconnecting the connection with the first access point on the first wireless channel and establishing a connection between the second wireless channel and the second access point; when the second access point supports the terminal to access the slave channel, the second access point is used to allocate a working channel in the second wireless channel to the terminal according to each working channel in the first wireless channel; when the second access point does not support the terminal to access the slave channel, the second access point is used to allocate a working channel in the second wireless channel to the terminal according to the functions of the terminal. This enables channel switching to be performed when both the master and slave channels exist and ensures that multiple wireless devices can share wireless resources fairly and effectively. The implementation details of the channel switching method of this embodiment are described in detail below. The following content is only the implementation details provided for the convenience of understanding and is not necessary for the implementation of this solution.

[0018] like Figure 1 As shown, in step 101, the terminal (STA) disconnects from the first access point (AP1) on the first wireless channel and establishes a connection with the second access point (AP2) on the second wireless channel to perform channel switching; at the edge of the base station (Basic service set, referred to as BSS), the terminal device may be located at the overlap of the coverage of two access points (AP). Figure 2 As shown in the figure, inside BSS1, STA1 and STA2 establish an association with the first access point (AP1) and can communicate normally. However, since STA1 and STA2 are located at the edge of BSS1 and overlap with the coverage of BSS2, their communication with AP1 may be interfered by the second access point (AP2). According to the actual situation, in order to ensure the quality and stability of communication, STA1 and STA2 may need to switch to BSS2 with a better communication environment and establish an association with AP2. In this case, if STA1 communicates with AP1 on the primary channel of BSS1 and STA2 communicates with AP1 on the secondary channel, the working channels of STA1 and STA2 must be properly configured when switching to AP2. The relevant protocols have not yet provided a clear solution to this problem. The following will explore the processing flow in different situations to ensure that the terminal device can complete the channel configuration efficiently and stably when switching access points, thereby optimizing the overall network communication performance.

[0019] In step 102, when the second access point supports the terminal to access the slave channel, the second access point allocates a working channel in the second wireless channel to the terminal according to each working channel in the first wireless channel; the terminal will process the service on the allocated working channel; in step 103, when the second access point does not support the terminal to access the slave channel, the second access point allocates a working channel in the second wireless channel to the terminal according to the functions of the terminal, and the terminal will process the service on the allocated working channel.

[0020] The following divides the switching process into two categories, with examples and discussions on conventional switching and seamless switching respectively:

[0021] The conventional handover process requires the terminal device (STA) to first send a disassociation frame to the access point (AP) to notify it to disassociate from the current state and start the association process with the new AP (such as AP2). For STA1 and STA2 working on different channels, the disassociation method can be flexible and diverse, and there are several specific solutions:

[0022] The first solution is to let STA2 switch back to the primary channel and send a disassociation frame to AP1 on the primary channel to notify it of the disassociation.

[0023] The second solution is that STA2 transmits a Disassociation frame to AP1 on its currently working slave channel. The slave channel here can be any sub-band on the slave channel.

[0024] The third solution is to disassociate with the temporary main channel mentioned below. If STA2 defines a temporary main channel on the slave channel, it can only send a disassociation frame to the AP on this temporary main channel to notify it to disassociate. There are many definitions and generation methods of temporary main channels, which will be explained in detail below. I will not go into details here. The above three different disassociation methods can also be selected according to the actual network environment and device configuration.

[0025] After the terminal uses the conventional switching method to disassociate with the original access point (AP1), the edge terminal devices (STA1, STA2) must be reconfigured to access the new basic service set (BSS) and establish a connection with the new access point (AP2). In some cases, the new AP2 does not support the slave channel access function, or is configured not to enable this function, then STA1 and STA2 can only establish a connection with AP2 through the main channel, and send authentication, association and other related frames on the main channel. After associating with AP2, AP2 will allocate whether to assign the corresponding STA to work on the slave channel according to the actual situation.

[0026] In some cases, if the second access point (AP2) supports and enables the slave channel access function, the edge terminal devices (STA1, STA2) can switch according to the working channels originally allocated in BSS1. For example, in BSS1, STA1 transmits data on the main channel (PCH), while STA2 operates on the slave channel (NPCH). When these devices switch to the new BSS2, they will keep the original channel allocation unchanged: STA1 continues to transmit on the main channel, while STA2 remains on the slave channel. AP2 should broadcast Beacon frames on both the main channel and the slave channel in the new BSS2 to inform all terminal devices about the working status and related configuration information of the main channel and the slave channel. In this way, STA1 and STA2 can establish connections with AP2 on their designated main channel and slave channel, respectively. Combined with the previous embodiment, STA2 can establish a connection with AP2 through a temporary main channel in the slave channel.

[0027] In some cases, edge terminal devices (STA1, STA2) have the flexibility to autonomously select connection channels, and can decide whether to establish a connection with a new access point (AP2) through the primary channel or the secondary channel based on their actual needs and factors such as channel quality. When AP2 supports and enables the secondary channel access function, STA1 and STA2 will consider a variety of factors, such as network traffic, signal strength, interference conditions, etc., to make the best channel selection decision. If two terminal devices select the same channel for access, the access point (AP2) will decide how to allocate channels and notify STA1 and STA2 by broadcasting Beacon frames, or other management frames or control frames, which channel they should reside on for subsequent data transmission.

[0028] Next, we will discuss the example of seamless handover. In future Wi-Fi systems, in order to ensure high system reliability and reduce data packet loss, the concept of seamless roaming is proposed. In the current Wi-Fi system, once the terminal device moves, it may trigger the switching of access points. When switching access points, the terminal will first disconnect from the current access point and then establish a new connection with the target access point. After completing the authentication and association process, the terminal and the target access point will perform a four-way handshake to generate an encryption key and then start transmitting encrypted data. However, this disconnection and then connection switching method is prone to data packet loss. Seamless roaming, also known as seamless handover, aims to solve the above problem. Its core idea is to maintain the connection with the original access point while establishing a connection with the target access point. In this way, the terminal can complete the smooth switching of access points without interrupting data transmission, thereby significantly reducing the risk of data packet loss and improving the continuity and stability of network connection. This technology is of great significance to improving the performance and user experience of future Wi-Fi systems.

[0029] The current seamless switching process is as follows Figure 3 As shown, the terminal first sends a seamless roaming request frame to access point 2 (target access point). After receiving the seamless roaming request frame, access point 2 sends a seamless roaming response frame to the terminal, and then the terminal switches the connection to the target access point. The switching process can switch the terminal's connection to access point 2 one by one, or switch the terminal's connection to the target access point multiple times at a time. After the switching is completed, the terminal sends a seamless roaming confirmation frame to access point 1 (initial access point), indicating that the switching is complete. In some cases, transmitting a seamless roaming confirmation frame is optional. In some cases, a seamless roaming confirmation frame is not sent to access point 1.

[0030] Under the premise of seamless switching, if the edge terminal in the BSS needs to switch BSS, corresponding adjustments must be made during the seamless switching process. The following solutions are given in this case:

[0031] 1) Seamless switching through the main channel

[0032] First, if the new access point (access point 2) does not support slave channel access or is not configured with this function, then the terminal (for example Figure 2 STA2 in the seamless roaming process should first switch back to the primary channel and then perform seamless handover. In this process, the seamless roaming request frame will contain the primary channel, the secondary channel, and the resident information of the terminal on the corresponding channel. The new access point will evaluate whether seamless handover is allowed based on this information and give feedback by sending a seamless roaming response frame. If access point 2 allows seamless handover, the handover process will start, and access point 2 will decide and confirm which channel the newly connected terminal should reside on.

[0033] After the seamless roaming handover is completed, the terminal sends a seamless roaming confirmation frame to the original access point (access point 1) to notify that the handover has ended. In addition, in some cases, the terminal can also choose to include the channel switch result between it and access point 2 in this confirmation frame so that access point 1 can make other decisions based on this information.

[0034] 2) The master channel and slave channel are switched separately

[0035] If the new access point (access point 2) supports slave channel access and is configured with this function, then the terminal (for example Figure 2 STA2 in the seamless roaming request frame can initiate seamless switching in the original channel, that is, the seamless roaming request frame includes a request for seamless switching on the slave channel. On this basis, the seamless roaming request frame should also include the master channel, slave channel and the terminal's residence information on the corresponding channel. The new access point will evaluate whether to allow seamless switching on the channel recommended by the terminal based on this information, and give feedback by sending a seamless roaming response frame. If access point 2 allows seamless switching on the channel recommended by the terminal, the switching process will start. If access point 2 does not allow seamless switching on the channel recommended by the terminal, the seamless roaming response frame indicates the channel it should reside on, and the terminal should start the seamless switching process based on the instruction of access point 2. In addition, the above slave channel can also be a temporary master channel in the slave channel. It can be seen that channel switching is performed by seamless switching. When the second access point supports the terminal to access the slave channel, the terminal will start channel switching by initiating a seamless roaming request frame on the current working channel; when the second access point does not support the terminal to access the slave channel, the terminal switches the current working channel to the master channel of the first wireless channel, and initiates a seamless roaming request frame to start channel switching.

[0036] After the seamless roaming handover is completed, the terminal sends a seamless roaming confirmation frame to the original access point (access point 1) to notify that the handover has ended. In addition, in some cases, the terminal can also choose to include the channel switch result between it and access point 2 in this confirmation frame so that access point 1 can make other decisions based on this information.

[0037] In some cases, it is particularly important to group terminals reasonably. In particular, terminals with the ability to access from a channel should be uniformly divided into at least one independent group to clearly distinguish those terminals that do not have this ability. In one example, the second access point allocates the corresponding working channel to the terminal to process the service according to the functions of the terminal. It can be: first, the terminal is divided into two groups, namely, supporting the access from the channel and not supporting the access from the channel, according to whether the terminal supports the access from the channel function. For the terminals that support the access from the channel function, they are further grouped according to factors such as the supported bandwidth and the granularity of the channel, or the second access point can be used to group the terminals with the access from the channel function that access the second access point according to the bandwidth supported by the terminal and the granularity of the access from the channel supported by the terminal, so as to achieve the purpose of allocating working channels for terminals with the access from the channel function. Furthermore, this process can be realized by the joint identification of the group number and the terminal ID, which can accurately indicate the terminal with the access from the channel function, thereby improving the accuracy and efficiency of the identification. For the terminals that originally did not have the ability to access from the channel, the terminal ID continues to be used for identification.

[0038] As for how to group these terminals with the ability to access the slave channel, it can also be based on the bandwidth they support, the granularity of the slave channel access, or the number of temporary master channels at a specific granularity. Such a grouping strategy can not only better meet the needs of channel access, but also optimize the utilization efficiency and overall performance of the channel. Grouping indication can be indicated by control frames such as beacon frames or trigger frames.

[0039] In the process of accessing the slave channel, a temporary main channel may be defined in the slave channel, and the role of the temporary main channel is to replace the original main channel and perform some functions. That is, a connection is established with the second access point on the slave channel corresponding to the temporary main channel in the second wireless channel, wherein the temporary main channel is in the slave channel in the second wireless channel and is formed by the second access point through definition; wherein the temporary main channel can perform some functions of the main channel in the second wireless channel; for example, on the temporary main channel, the terminal can access the current AP. In some embodiments, the terminal cannot directly access the current AP through the temporary main channel, so the terminal needs to obtain beacon information access through the main channel of the current AP. After accessing the second access point, the second access point processes the service on the working channel allocated to the terminal according to the functions of the terminal; the functions of the terminal are determined by the current capabilities of the terminal, for example, the functions of the terminal may be: the main channel, the slave channel, and the resident function of the terminal in the corresponding channel, the slave channel access function, the bandwidth supported by the terminal, the granularity of the access to the slave channel supported by the terminal, etc.

[0040] In one example, when the working channel belongs to the main channel in the wireless channel, and the main channel is in a busy state and the slave channel is in an idle state, the terminal with the slave channel access function will process the service on the slave channel in an idle state through the slave channel access function. Specifically, when the main channel is in a busy (BUSY) state and the slave channel is in an idle (IDLE) state, sending and receiving data on the slave channel is a capability. The configuration of this capability is included in a capability element, a beacon, or a probe response frame.

[0041] In some cases, accessing the current AP through a temporary primary channel is a capability that is configured in a beacon or a probe response frame. In some cases, the temporary primary channel access capability is included in an enhanced multi-link element or in a basic multi-link element. At the same time, the above capability may also be included in a newly defined secondary channel access element or in a newly defined non-primary channel access element (NPCA element). In some embodiments, the recommended frame is an association request frame and the response frame is an association response frame.

[0042] In the slave channel, there may be multiple temporary main channels at the same time. There are one or more temporary main channels in the second wireless channel, and at least one temporary main channel allows the terminal to directly access the access point; that is, among these temporary main channels, at least one has the access function, allowing the terminal to directly access. The existence or non-existence of this access function is usually indicated by beacon broadcast. That is, before accessing the second access point through the temporary main channel in the second wireless channel, the beacon frame sent by the access point in the form of broadcast is received to confirm the channel in the second wireless channel that allows the terminal to directly access the access point. In some cases, this indication is also included in the probe response frame. It is worth noting that this indication is not used to identify which are the main channels, but to indicate which sub-channels or slave channels have access capabilities, thereby allowing the terminal to directly access. In some cases, the indication may be in the form of a bitmap, with the channel granularity in the slave channel as the unit, and the sub-channel with access capability is marked as 1, otherwise it is 0. This design is intended to clearly show which channel resources can be directly used by the terminal.

[0043] In some cases, the terminal working in the slave channel is jointly indicated by [slave channel indication, terminal ID]. The slave channel indication indicates a specific slave channel granularity, or a temporary master channel in a specific slave channel, which can be a bitmap.

[0044] In some cases, the terminal indicated by the terminal ID works on the primary channel, and when the primary channel is busy and the secondary channel is idle, the terminal can send and receive data on the secondary channel. The terminal ID can be AID (Association ID) or STA_ID.

[0045] In some cases, all terminals with slave channel access capability use a joint indication of [slave channel indication, terminal ID].

[0046] In some cases, all terminals with slave channel access capability are indicated using only the terminal ID.

[0047] In some cases, a terminal that directly accesses an AP through a slave channel uses a joint indication of [slave channel indication, terminal ID].

[0048] In some cases, the terminal indication from the channel access may also be completed by defining a new field, or by combining the channel access element related information, such as the channel access element ID, with the original terminal ID.

[0049] In some cases, the terminal indication is a combination of the terminal operating frequency band / frequency point number and the terminal ID, such as [frequency band change, terminal ID]. In some cases, the number is the terminal's operation class related number.

[0050] In some cases, the number of terminals supported by the temporary primary channel should be limited. The limited number of terminals can be directly accessed through the temporary primary channel in the secondary channel; in some cases, the limited number of terminals can also be accessed through the primary channel of the AP, and then switched to the secondary channel for transmission and parked in the secondary channel; in some cases, the limited number of terminals is the sum of the above two types of terminals.

[0051] In one example, not only the number of terminals supported by the temporary primary channel should be limited, but also the number of terminals allowed to reside simultaneously in each of the first and second wireless channels should be limited. After the channel switching is completed, the number of terminals residing on each channel should also be limited to ensure the performance and stability of the network, optimize resource management, enhance security, and improve user experience. This article gives examples of the following three solutions:

[0052] 1. Specify the number of terminals that reside on each channel

[0053] First, the number of terminals that can reside on each channel can be limited. The specific value of this limit should be determined by the access point (AP) based on multiple factors, including but not limited to the bandwidth of the channel, the amount of data accessed by the terminal, etc. If the number of terminals accessed exceeds the threshold, the terminal devices that accessed later will be cut off or assigned to communicate on a slave channel in the order of access. Optionally, the threshold can be notified to the terminal through a Beacon frame when the terminal device accesses the channel.

[0054] 2. Specify the terminal traffic on each channel

[0055] In addition, the throughput on the channel can also be used as a basis. When the throughput on the channel exceeds a preset threshold, the communication of some terminals will be interrupted. The interrupted terminals can be determined based on the order of terminal access or the service priority of terminal transmission. The interrupted terminals can be assigned to a slave channel for transmission according to actual conditions, or be disconnected from the current AP. Similarly, the threshold can be determined by the AP based on multiple factors, including but not limited to the bandwidth of the channel, the amount of data accessed by the terminal, etc.

[0056] 3. Specify the service type of the terminal on each channel

[0057] Combining the above two solutions, the service types of terminal transmission can be further refined. If there is a terminal transmitting low-latency services on the current channel, the AP has the right to suspend the transmission of other terminal devices that are not low-latency services, and reconfigure these non-low-latency service terminals to other channels (such as slave channels) for transmission to ensure that low-latency services are not interfered with. In addition, the TID (Traffic Identifier) ​​or AC (Access Category) type of the terminal device transmission service can be restricted. For example, if the number of resident terminal devices on the current channel exceeds the preset threshold, the AP can give priority to retaining terminals with TID higher than Th1 for transmission, while other terminals may be switched to slave channels or temporarily terminate transmission. The specific value of Th1 here should be dynamically determined by the AP based on the current channel bandwidth, transmission quality and other network conditions to achieve more intelligent and flexible resource management. Through these measures, not only can network performance be optimized and user experience be improved, but also efficient and stable transmission of key services can be ensured.

[0058] In this embodiment, the channel switching is performed by disconnecting the connection with the first access point on the first wireless channel and establishing a connection between the second wireless channel and the second access point; when the second access point supports the terminal to access the slave channel, the second access point allocates a working channel in the second wireless channel to the terminal according to each working channel in the first wireless channel; when the second access point does not support the terminal to access the slave channel, the second access point allocates a working channel in the second wireless channel to the terminal according to the functions of the terminal. This enables channel switching to be performed when both the master and slave channels exist and ensures that multiple wireless devices can share wireless resources fairly and effectively.

[0059] The steps of the above method are divided only for clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this application; adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are all within the scope of protection of this application.

[0060] Another embodiment of the present invention relates to a channel switching device, such as Figure 4 As shown, it includes: a channel switching module 401, which is used to disconnect the connection with the first access point on the first wireless channel and establish a connection between the second wireless channel and the second access point to perform channel switching; a service allocation module 402, which is used to allocate a working channel in the second wireless channel to the terminal through the second access point according to each working channel in the first wireless channel when the second access point supports the terminal to access from the channel; when the second access point does not support the terminal to access from the channel, allocate a working channel in the second wireless channel to the terminal through the second access point according to the function of the terminal.

[0061] In one example, through the second access point, terminals with a slave channel access function accessing the second access point are grouped according to the bandwidth supported by the terminal and the granularity of accessing the slave channel supported by the terminal, so as to allocate working channels in the second wireless channel to the terminals with the slave channel access function.

[0062] In one example, the method includes: performing channel switching by seamless switching, and when the second access point supports the terminal to access the slave channel, initiating a seamless roaming request frame on the current working channel to start channel switching; when the second access point does not support the terminal to access the slave channel, switching the current working channel to the main channel of the first wireless channel, and then initiating a seamless roaming request frame to start channel switching.

[0063] In one example, the device also includes a channel access module, which is used to access the second access point through a temporary main channel in the second wireless channel after establishing the second wireless channel; wherein the temporary main channel is in the slave channel in the second wireless channel and is formed by definition by the second access point; wherein the temporary main channel can perform part of the functions of the main channel in the second wireless channel; after accessing the second access point, the second access point processes the service on the working channel allocated to the terminal according to the functions possessed by the terminal; wherein the functions possessed by the terminal include: slave channel access function.

[0064] In an example, when the working channel belongs to the main channel or temporary main channel in the wireless channel, and the main channel or temporary main channel is in a busy state and the slave channel is in an idle state, the terminal with the slave channel access function will use the slave channel access function to process the service on the idle slave channel.

[0065] In one example, there are one or more temporary main channels in the second wireless channel, and at least one temporary main channel allows the terminal to directly access the access point; the device also includes a signal receiving module, which is used to confirm the channel in the second wireless channel that allows the terminal to directly access the access point by receiving a beacon frame sent in a broadcast form by the access point before accessing the second access point through the temporary main channel in the second wireless channel.

[0066] In one example, the number of terminals allowed to reside simultaneously in each of the first wireless channel and the second wireless channel is limited.

[0067] In this embodiment, the channel switching is performed by disconnecting the connection with the first access point on the first wireless channel and establishing a connection between the second wireless channel and the second access point; when the second access point supports the terminal to access the slave channel, the second access point allocates a working channel in the second wireless channel to the terminal according to each working channel in the first wireless channel; when the second access point does not support the terminal to access the slave channel, the second access point allocates a working channel in the second wireless channel to the terminal according to the functions of the terminal. This enables channel switching to be performed when both the master and slave channels exist and ensures that multiple wireless devices can share wireless resources fairly and effectively.

[0068] It is not difficult to find that this embodiment is a device embodiment corresponding to the above method embodiment, and this embodiment can be implemented in conjunction with the above method embodiment. The relevant technical details mentioned in the above method embodiment are still valid in this embodiment, and in order to reduce repetition, they are not repeated here. Accordingly, the relevant technical details mentioned in this embodiment can also be applied in the above method embodiment.

[0069] It is worth mentioning that all modules involved in this embodiment are logic modules. In practical applications, a logic unit can be a physical unit, a part of a physical unit, or a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, this embodiment does not introduce units that are not closely related to solving the technical problem proposed by the present invention, but this does not mean that there are no other units in this embodiment.

[0070] Another embodiment of the present invention relates to a terminal, such as Figure 5 As shown, it includes at least one processor 501; and a memory 502 that is communicatively connected to the at least one processor; wherein the memory 502 stores instructions that can be executed by the at least one processor 501, and the instructions are executed by the at least one processor 501 so that the at least one processor 501 can execute the channel switching method as described above.

[0071] The memory 502 and the processor 501 are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors 501 and the memory 502 together. The bus can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor 501 is transmitted on a wireless medium via an antenna, and further, the antenna also receives data and transmits the data to the processor 501.

[0072] The processor 501 is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management and other control functions. The memory 502 can be used to store data used by the processor 501 when performing operations.

[0073] Another embodiment of the present invention relates to a computer-readable storage medium storing a computer program, which implements the above method embodiment when executed by a processor.

[0074] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0075] Those skilled in the art will appreciate that the above-mentioned embodiments are specific examples for implementing the present invention, and in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present invention.

Claims

1. A channel switching method, It is characterized in that Applied to terminals, including: Performing channel switching by disconnecting a connection with a first access point on a first wireless channel and establishing a connection between a second wireless channel and a second access point; When the second access point supports the terminal to perform secondary channel access, allocating a working channel in a second wireless channel to the terminal through the second access point according to each working channel in the first wireless channel; When the second access point does not support the terminal to access the secondary channel, allocating a working channel in the second wireless channel to the terminal through the second access point according to the function of the terminal; The method of disconnecting the connection with the first access point on the first wireless channel and establishing a connection between the second wireless channel and the second access point includes: Perform the channel switching by conventional switching, first disconnecting the connection with the first access point, and then establishing a connection with the second access point; or, The channel switching is performed in a seamless switching manner, a connection is established with the second access point while maintaining a connection with the first access point, and when the switching is completed, the connection with the first access point is disconnected, and when the second access point supports the terminal to access a secondary channel, the channel switching is started by initiating a seamless roaming request frame on the current working channel; When the second access point does not support the terminal to access the secondary channel, after the current working channel is switched to the primary channel of the first wireless channel, the seamless roaming request frame is initiated to start the channel switching.

2. The channel switching method according to claim 1, It is characterized in that The allocating, by the second access point, a working channel in the second wireless channel to the terminal according to the function of the terminal, includes: Through the second access point, terminals with a secondary channel access function accessing the second access point are grouped according to the bandwidth supported by the terminals and the granularity of accessing the secondary channels supported by the terminals, so as to allocate working channels in the second wireless channel to the terminals with the secondary channel access function.

3. The channel switching method according to claim 1, It is characterized in that The establishing a connection between the second wireless channel and the second access point comprises: Establishing a connection with the second access point on a slave channel corresponding to the temporary master channel in the second wireless channel; The temporary main channel is in a slave channel corresponding to the temporary main channel, and the temporary main channel is formed by definition by the second access point; The temporary main channel can perform some functions of the main channel in the second wireless channel; After accessing the second access point, processing services on a working channel allocated to the terminal at the second access point according to functions of the terminal; Among them, the functions of the terminal include: a channel access function.

4. The channel switching method according to claim 3, It is characterized in that The method further comprises: When the current working channel belongs to the main channel in the first wireless channel or the second wireless channel, and the main channel in the first wireless channel or the second wireless channel is in a busy state, and the slave channel in the first wireless channel or the second wireless channel is in an idle state, the terminal with the slave channel access function will process services on the slave channel in the first wireless channel or the second wireless channel in the idle state through the slave channel access function in the first wireless channel or the second wireless channel.

5. The channel switching method according to claim 3, It is characterized in that There are one or more temporary main channels in the second wireless channel, and at least one of the temporary main channels allows the terminal to directly access the access point; The method further comprises: Before accessing the second access point through the temporary primary channel in the second wireless channel, a beacon frame sent by the access point in a broadcast form is received to confirm a channel in the second wireless channel that allows the terminal to directly access the access point.

6. The channel switching method according to claim 1, It is characterized in that The number of terminals that are allowed to reside simultaneously in each of the first wireless channel and the second wireless channel is limited.

7. A channel access device, It is characterized in that include: A channel switching module, configured to switch the channel of the terminal by disconnecting the connection with the first access point on the first wireless channel and establishing a connection between the second wireless channel and the second access point; a service allocation module, configured to allocate, through the second access point and according to each working channel in the first wireless channel, a working channel in the second wireless channel to the terminal when the second access point supports the terminal to access the secondary channel; When the second access point does not support the terminal to access the secondary channel, allocating a working channel in the second wireless channel to the terminal through the second access point according to the function of the terminal; The method of disconnecting the connection with the first access point on the first wireless channel and establishing a connection between the second wireless channel and the second access point includes: Perform the channel switching by conventional switching, first disconnecting the connection with the first access point, and then establishing a connection with the second access point; or, The channel switching is performed in a seamless switching manner, a connection is established with the second access point while maintaining a connection with the first access point, and when the switching is completed, the connection with the first access point is disconnected, and when the second access point supports the terminal to access a secondary channel, the channel switching is started by initiating a seamless roaming request frame on the current working channel; When the second access point does not support the terminal to access the secondary channel, after the current working channel is switched to the primary channel of the first wireless channel, the seamless roaming request frame is initiated to start the channel switching.

8. A terminal, It is characterized in that include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the channel switching method according to any one of claims 1 to 6.

9. A computer-readable storage medium storing a computer program, It is characterized in that When the computer program is executed by a processor, the channel switching method according to any one of claims 1 to 6 is implemented.