Channel switching method, access point (AP) and communication system
By using multiple spatial streams to perform channel switching in wireless communication, and dynamically adjusting the channel to avoid signal flow interruption, the problem of communication quality degradation caused by channel switching in the prior art is solved, and higher communication stability and adaptability are achieved.
Patent Information
- Application Number
- CN202411418297.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-11
- Publication Date
- 2025-01-14
AI Technical Summary
The existing wireless communication technology has signal flow interruption during channel switching, resulting in a decline in communication quality and being unable to dynamically adapt to environmental changes. It is difficult to ensure communication continuity in scenarios with high real-time requirements.
By using the initial channel between the access point AP and the terminal for signal transmission, if the initial channel does not meet the predetermined performance conditions, a partial spatial stream is used to scan the candidate channel, determine the target channel, and the remaining spatial stream is used to scan the remaining spatial stream Switch to the target channel to achieve seamless switching and avoid signal flow interruption.
It achieves a significant improvement in communication stability and adaptability during channel switching, ensures the sustainability of communication quality, and is suitable for scenarios with high real-time and high anti-interference.
Smart Images

Figure CN119316896A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communications, and in particular to a channel switching method, an access point (AP), and a communication system. Background Art
[0002] Channel selection directly affects the rate, latency and coverage of wireless communications. By selecting the best channel, the network speed and throughput can be maximized while reducing latency and improving user experience. Currently, wireless devices mostly rely on channel scanning at power-on to select the best channel. Even if the channel quality deteriorates later, it will not automatically adjust, which limits the user experience. Limited by the static channel selection mechanism, it cannot dynamically adapt to environmental changes.
[0003] The wireless communication environment is dynamic, and factors such as channel quality, number of devices, and signal strength may change over time. Related technologies rely on users to manually switch channels or adjust configurations, and the channel switching process provided causes disconnection and delay surges at the moment of switching, which is particularly disadvantageous for scenarios such as industrial control and medical monitoring that require high real-time performance.
[0004] Therefore, the related technology is difficult to dynamically adapt to environmental changes, and thus there is a problem of being unable to guarantee communication continuity during the channel optimization selection process.
[0005] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0006] The embodiments of the present application provide a channel switching method, an access point AP, and a communication system to at least solve the technical problem in the related art that signal interruption occurs during the channel switching process, resulting in a decrease in communication quality.
[0007] According to one aspect of an embodiment of the present application, a channel switching method is provided, comprising: determining a plurality of spatial streams for signal transmission using an initial channel between an access point AP and a terminal, wherein the plurality of spatial streams are signal streams transmitted based on different combinations of an antenna of the AP and an antenna of the terminal; when the initial channel does not meet a predetermined performance condition, using some of the plurality of spatial streams to perform channel scanning on a plurality of candidate channels respectively to determine a target channel; switching the some of the spatial streams from the initial channel to the target channel; and switching the remaining spatial streams of the plurality of spatial streams to the target channel, wherein the remaining spatial streams are spatial streams of the plurality of spatial streams other than the some of the spatial streams.
[0008] Optionally, switching the remaining spatial streams among the multiple spatial streams to the target channel includes: determining a first performance indicator for signal transmission between the AP and the terminal on the target channel; and switching the remaining spatial streams among the multiple spatial streams to the target channel when the first performance indicator satisfies a first indicator condition.
[0009] Optionally, the first performance indicator is at least one of the following: packet loss rate, bit error rate, signal strength, and transmission delay.
[0010] Optionally, when the initial channel does not meet a predetermined performance condition, using some of the multiple spatial streams to perform channel scanning on multiple candidate channels respectively to determine the target channel, including: using some of the multiple spatial streams to perform channel scanning on the multiple candidate channels respectively to determine second performance indicators respectively corresponding to the multiple candidate channels; and determining the target channel among the multiple candidate channels based on the second performance indicators respectively corresponding to the multiple candidate channels.
[0011] Optionally, the second performance indicator is at least one of the following: packet loss rate, channel utilization, channel noise level, and transmission delay.
[0012] Optionally, the method further includes: determining that the initial channel does not meet the predetermined performance condition when an initial packet loss rate of the initial channel is greater than or equal to a predetermined packet loss rate threshold, and / or a utilization rate of the initial channel is greater than or equal to a predetermined utilization rate threshold.
[0013] Optionally, switching the remaining spatial streams among the multiple spatial streams to the target channel includes: determining a switching strategy based on communication requirements between the AP and the terminal; and switching the remaining spatial streams among the multiple spatial streams to the target channel based on the switching strategy.
[0014] Optionally, the switching strategy is at least one of the following: switching the remaining spatial streams to the target channel in sequence; switching the remaining spatial streams to the target channel at one time; switching the remaining spatial streams to the target channel in batches according to a predetermined batch interval.
[0015] Optionally, the remaining spatial streams are most of the multiple spatial streams.
[0016] According to another aspect of an embodiment of the present application, an access point AP is provided, and the access point AP adopts any one of the channel switching methods described above.
[0017] According to another aspect of an embodiment of the present application, a communication system is provided, including: the above-mentioned access point AP, and a terminal interacting with the AP.
[0018] Optionally, the terminal is at least one of the following: a mobile phone, a sub-router of a wireless mesh network, and the AP is a router.
[0019] According to another aspect of an embodiment of the present application, a channel switching device is provided, including: an initial communication module, used to determine a plurality of spatial streams for signal transmission between an access point AP and a terminal using an initial channel, wherein the plurality of spatial streams are signal streams transmitted based on different combinations of an antenna of the AP and an antenna of the terminal; a target channel determination module, used to, if the initial channel does not meet a predetermined performance condition, use some of the plurality of spatial streams to perform channel scanning on a plurality of candidate channels respectively to determine a target channel; a first switching module, used to switch the some of the spatial streams from the initial channel to the target channel; and a second switching module, used to switch the remaining spatial streams of the plurality of spatial streams to the target channel, wherein the remaining spatial streams are spatial streams of the plurality of spatial streams other than the some of the spatial streams.
[0020] According to another aspect of an embodiment of the present application, a non-volatile storage medium is provided, wherein the non-volatile storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing any one of the channel switching methods.
[0021] According to another aspect of an embodiment of the present application, an electronic device is provided, comprising: one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement any one of the channel switching methods described.
[0022] According to another aspect of an embodiment of the present application, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, any one of the channel switching methods described above is implemented.
[0023] In the embodiment of the present application, a seamless switching method is adopted, by determining multiple spatial streams for signal transmission using an initial channel between an access point AP and a terminal, wherein the multiple spatial streams are signal streams transmitted based on different combinations of the antenna of the AP and the antenna of the terminal; when the initial channel does not meet the predetermined performance conditions, some of the spatial streams in the multiple spatial streams are used to perform channel scanning on multiple candidate channels respectively to determine the target channel; the partial spatial streams are switched from the initial channel to the target channel; the remaining spatial streams in the multiple spatial streams are switched to the target channel, wherein the remaining spatial streams are the spatial streams in the multiple spatial streams other than the partial spatial streams. The purpose of avoiding signal interruption is achieved, and the technical effect of improving the communication stability during adaptive channel switching is achieved, thereby solving the technical problem of signal interruption during channel switching in the related art, which leads to a decrease in communication quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0025] Figure 1 is a flow chart of an optional channel switching method provided according to an embodiment of the present application;
[0026] Figure 2 is a schematic diagram of a spatial flow of an optional channel switching method provided according to an embodiment of the present application;
[0027] Figure 3 is a schematic flow chart of an optional channel switching method provided according to an embodiment of the present application;
[0028] Figure 4 is a structural block diagram of an optional communication system provided according to an embodiment of the present application;
[0029] Figure 5 It is a schematic diagram of an optional channel switching device provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0032] For the convenience of description, some nouns or terms involved in the embodiments of the present application are explained below:
[0033] Access Point (AP) is a key device in a wireless network. It is a bridge for wireless network clients to connect to wired networks (such as Ethernet). AP can convert wireless network signals into wired network signals to enable network access for wireless devices.
[0034] Spatial Streams: Spatial streams refer to signal streams transmitted in parallel between transmitters and receivers using multiple antennas through MIMO (Multiple-Input Multiple-Output) technology in wireless networks. These signal streams propagate in space, forming multiple electromagnetic waves, thereby improving data transmission efficiency and network capacity. The number of spatial streams is usually related to the number of antennas of the AP and terminal, and the level of MIMO technology supported. There is a theoretical maximum value, and the number of spatial streams actually transmitted is also limited by the protocol and the capabilities of the receiving end.
[0035] Wireless mesh network mesh networking is a multi-hop network structure. Through wireless connections between multiple nodes, mesh networking can expand the coverage of wireless networks, improve network reliability and capacity, and is suitable for scenarios that require large-scale coverage and redundant connections. In mesh networking, sub-routers refer to other router devices in the mesh network structure, in addition to the main router (also called the mother router), which are used to expand network coverage, enhance signal strength, or provide additional network access points. Mesh sub-routers are connected to the main router wirelessly or wired, and together they form a distributed, self-organizing wireless network system.
[0036] In related technologies, when a wireless device is powered on, it scans all channels in the working frequency band, calculates the current optimal channel based on the channel utilization and channel noise floor, and then all spatial streams will work on this channel. Even if the channel utilization deteriorates or strong interference occurs, it will not actively switch to a better channel without manual configuration or dynamic frequency selection DFS (Dynamic Frequency Selection) radar avoidance. When all spatial streams work in the same frequency band, they will face common interference problems, which limits the implementation of multi-band multi-link operation MLO (Multi-Link Operation).
[0037] When searching for a better channel, the related technology needs to rescan the spectrum. If the working spatial stream is used for scanning, the existing communication connection will be disconnected. If an additional independent spatial stream is used for scanning, although the existing connection will not be disconnected during the scanning process, during the channel switching process, the connected terminals and the sub-routes of the mesh network will still be disconnected when following the AP to switch channels. Therefore, the related technology cannot adaptively switch the working channel and keep the signal flowing continuously.
[0038] In response to the above problems, an embodiment of the present application provides a method embodiment of channel switching. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0039] Figure 1 is a flow chart of an optional channel switching method provided according to an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:
[0040] Step S102, determining a plurality of spatial streams for signal transmission between an access point AP and a terminal using an initial channel, wherein the plurality of spatial streams are signal streams transmitted based on different combinations of an antenna of the AP and an antenna of the terminal;
[0041] It can be understood that spatial stream refers to the signal stream transmitted in parallel through different antenna combinations in the MIMO system. The above signal streams are independent in space and are regarded as information transmitted on different channels. By utilizing the multipath effect in space and the spatial separation between antennas, the MIMO system can transmit multiple spatial streams simultaneously, thereby improving the rate and reliability of data transmission. Determine multiple spatial streams for signal transmission between the access point AP and the terminal based on the initial channel. The above multiple spatial streams are signal streams transmitted through different combinations of the antennas of the AP and the terminal, and together constitute the basis of the current communication link.
[0042] It should be noted that in a MIMO system, signals are transmitted simultaneously through multiple antennas to form multiple spatial streams. The above spatial streams are transmitted in parallel in space, thereby improving the rate and efficiency of data transmission. The number of spatial streams is less than or equal to the smaller of the number of AP antennas and the number of terminal antennas. Since the generation of spatial streams depends on the spatial separation between antennas and the multipath effect of the channel, not all antennas can transmit independent spatial streams at the same time, because the correlation between antennas will limit the independence of spatial streams. In addition, different wireless communication protocols have different regulations on the number of spatial streams. For example, the protocol stipulates that a radio frequency has a maximum of 8 spatial streams. Even if the number of antennas exceeds 8, there can only be 8 spatial streams, which is conducive to ensuring the compatibility and interoperability between different APs and terminals.
[0043] Figure 2 is a schematic diagram of a spatial flow of an optional channel switching method provided in an embodiment of the present application, such as Figure 2 As shown in the figure, if the number of transmitting and receiving antennas is not equal, the number of spatial streams is equal to or less than the minimum number of antennas at the transmitting and receiving ends (i.e., AP and terminal). For example, a 3x2 MIMO system (indicates that the AP has 3 antennas and the terminal has 2 antennas) can transmit 2 or less spatial streams.
[0044] In a MIMO system, the more spatial streams there are, the more ways to independently process data, and the higher the rate. For example, the maximum transmission rate changes linearly with the change of spatial streams. The maximum rate of 1 independent spatial stream can reach 150Mbps (megabits per second), and the maximum rate of 2 independent spatial streams is 300Mbps. If a maximum of 4 spatial streams are supported, the communication rate can be as high as 600Mbps. It can be understood that the number of spatial streams is the parameter that determines the maximum physical transmission rate.
[0045] Optionally, wireless devices, such as access points APs and terminals, scan all channels in the working frequency band when powered on, and calculate the optimal channel in the initial state, i.e., the initial channel, based on the channel utilization and the channel noise floor. All spatial streams will work on this channel. All spatial streams work in the same channel, which can effectively improve the peak rate of signal transmission, cover a wider range, improve anti-interference capability, and reduce latency.
[0046] Step S104, when the initial channel does not meet the predetermined performance condition, using some of the multiple spatial streams to perform channel scanning on multiple candidate channels respectively to determine the target channel;
[0047] It can be understood that when it is detected that the initial channel does not meet the predetermined performance conditions, some of the multiple spatial streams are used to scan multiple candidate channels. In this way, the performance of each candidate channel can be efficiently evaluated and an optimal target channel can be determined. The key to avoiding signal interruption is to select some spatial streams for scanning instead of using all spatial streams for scanning, so as to ensure that the best channel is found and locked as soon as possible while maintaining a certain communication continuity.
[0048] It should be noted that as long as one of the multiple spatial streams maintains the transmission and reception communication, there will be no communication interruption between the AP and the terminal. This is due to the redundancy of the MIMO system. Through multiple spatial streams, data is transmitted in parallel. Even if one or more of the spatial streams are interrupted during the channel switching process, the remaining spatial streams can still maintain stable communication, thereby ensuring that the overall communication is not interrupted, which helps to improve the reliability of the overall communication.
[0049] Optionally, the partial spatial stream may be one or more, and the switching of the partial spatial stream is achieved by respectively switching channels of the antenna of the AP and the antenna of the terminal. The AP may have multiple antennas and the terminal may have multiple antennas to form a MIMO system.
[0050] In an optional embodiment, the method further includes: determining that the initial channel does not meet the predetermined performance condition when the initial packet loss rate of the initial channel is greater than or equal to a predetermined packet loss rate threshold, and / or the utilization rate of the initial channel is greater than or equal to a predetermined utilization rate threshold.
[0051] It can be understood that the packet loss rate reflects the proportion of data packets lost during the data transmission process. If the packet loss rate of the initial channel is too high, it means that the transmission quality of the initial channel is poor, which may cause delays, errors or losses in data transmission, thereby affecting the overall communication quality. Channel utilization reflects the busyness of the channel. If the utilization rate of the initial channel is too high, it means that the data transmission volume on the channel has approached or reached its carrying capacity. The subsequent increase in data transmission volume may cause congestion, delays, etc., resulting in problems such as decreased communication quality. If one of the following two conditions is met, it will trigger the judgment that the initial channel performance does not meet the predetermined conditions: the initial packet loss rate of the initial channel is greater than or equal to the predetermined packet loss rate threshold, and the utilization rate of the initial channel is greater than or equal to the predetermined utilization threshold. The above processing helps to timely discover channel problems of the initial channel, realize adaptive channel optimization processing, and ensure the reliability and efficiency of data transmission between the AP and the end point.
[0052] Optionally, when the channel utilization is high, it means that there are more APs using the current channel, the available time slots become shorter, the duty cycle increases, and the actual throughput decreases. At the same time, multiple APs work on the same channel, and the same-frequency interference increases, resulting in an increase in the AP data packet retransmission rate, an increase in the bad packet rate, and an increase in the packet loss rate. Not only will multiple APs interfere with each other when using the same channel, but in actual application scenarios, interference from other wireless signals such as Bluetooth and microwave ovens will also cause an increase in the packet loss rate. Therefore, it is necessary to continuously detect the channel utilization and packet loss rate of the initial channel where multiple spatial streams are located. When the initial channel utilization is higher than the predetermined utilization threshold, and / or the initial packet loss rate is higher than the predetermined packet loss rate threshold, the channel adaptive switching mechanism is triggered.
[0053] In an optional embodiment, when the initial channel does not meet the predetermined performance condition, some spatial streams among the multiple spatial streams are used to perform channel scanning on multiple candidate channels respectively to determine the target channel, including: using some spatial streams among the multiple spatial streams to perform channel scanning on multiple candidate channels respectively to determine second performance indicators respectively corresponding to the multiple candidate channels; and determining the target channel among the multiple candidate channels based on the second performance indicators respectively corresponding to the multiple candidate channels.
[0054] It can be understood that part of the spatial streams in the multiple spatial streams is used to scan multiple candidate channels to avoid interference with the communication between the AP and the terminal during the scanning process. For each candidate channel, a second performance indicator is determined according to the result of the channel scanning to quantify the performance of the candidate channel. Based on the second performance indicators corresponding to the multiple candidate channels, the target channel with the best performance is selected.
[0055] Optionally, in order to perform the switching of some spatial streams, the antenna of the AP associated with some spatial streams is switched from the initial channel to the target channel. After the switching of the AP antenna is completed, the AP will issue a command to notify the connected terminal (the sub-route of the mesh network) to perform the switching of the corresponding antenna, and also switch from the initial channel to the target channel, and establish a connection with the AP. In the above switching process, the original initial channel still has some or even most of the spatial streams (i.e., the remaining spatial streams) working. Therefore, in the above switching process of some spatial streams, there will be no interruption of signal transmission and reception, or a significant increase in communication delay. For the AP that has switched to the current optimal channel (i.e., the target channel), after the target channel and the connected terminal (such as the sub-route of the mesh network) have stable communication (i.e., the first performance indicator of the target channel meets the first indicator condition), the remaining spatial streams are switched to the target channel.
[0056] In an optional embodiment, the second performance indicator may be at least one of the following: packet loss rate, channel utilization rate, channel noise level, and transmission delay.
[0057] It can be understood that in the process of determining the target channel, the candidate channels are quantitatively evaluated based on the above-mentioned second performance indicator. The second performance indicator can be at least one of the following: packet loss rate, channel utilization, channel noise level, and transmission delay. The packet loss rate reflects the proportion of data packets lost during data transmission, the channel utilization reflects the busyness of the channel, and the channel noise level refers to the strength of the interference signal or useless signal in the channel. A lower channel noise level means that the signal is less interfered during transmission, which is conducive to improving the accuracy and reliability of data transmission. The transmission delay reflects the transmission capacity of the candidate channel. If the channel quality is poor, it may cause unstable signal transmission, requiring retransmission or error correction. The more the communication is stuck, the longer the delay and waiting time perceived by the user, which is an important indicator for channel evaluation.
[0058] Optionally, the above channel noise level may come from various interference sources, such as electromagnetic interference, thermal noise, multipath effect, etc.
[0059] Optionally, when there are multiple second performance indicators, weights can be set according to different application scenarios. Based on the multiple second performance indicators and the weights corresponding to the multiple second performance indicators, the second score values corresponding to the multiple candidate channels can be obtained, and then the target channel can be selected based on the high and low second score values corresponding to the multiple candidate channels.
[0060] Step S106, switching part of the spatial streams from the initial channel to the target channel;
[0061] It can be understood that after the target channel is determined, part of the spatial streams used for channel scanning are switched from the initial channel to the target channel. Due to the existence of the remaining spatial streams, seamless switching can be achieved to avoid the delay and impact of signal interruption.
[0062] In an optional embodiment, switching the remaining spatial streams among the multiple spatial streams to the target channel includes: determining a switching strategy based on communication requirements between the AP and the terminal; and switching the remaining spatial streams among the multiple spatial streams to the target channel based on the switching strategy.
[0063] It can be understood that in order to smoothly switch the spatial streams, a switching strategy can be determined according to the communication requirements between the AP and the terminal. The switching strategy is used to switch the remaining spatial streams in the multiple spatial streams to the target channel. During the switching process, data transmission delay, communication quality and user experience can be guaranteed.
[0064] In an optional embodiment, the switching strategy is at least one of the following: switching the remaining spatial streams to the target channel in sequence; switching the remaining spatial streams to the target channel at one time; switching the remaining spatial streams to the target channel in batches according to a predetermined batch interval.
[0065] It can be understood that the above switching strategy is at least one of the following, which can be determined according to the needs of the specific application scenario: Switch the remaining spatial streams to the target channel in sequence. Switching in sequence can ensure that each spatial stream has enough time to establish a communication connection during the switching process, reducing the conflict or interference that may be caused by switching multiple spatial streams at the same time. The switching speed can be adjusted according to the actual situation. Switch the remaining spatial streams to the target channel at one time. The one-time switching can quickly complete the switching of all remaining spatial streams, reducing the time delay in the switching process. According to the predetermined batch interval, the remaining spatial streams are switched to the target channel in batches. Adjust the batch size and interval according to the actual situation to adapt to different communication needs, and balance the switching speed and the use of system resources. The switching strategies have their own advantages and adaptability. It can be switched one by one. This method has a smoother transition and minimal impact. It can also be switched at one time for the remaining spatial streams. The entire switching process is the fastest. Specifically, it is switched one by one, switched in batches, or switched together with the remaining spatial streams. The method can be optimized and adjusted according to actual measurements.
[0066] Through the above switching control, in scenarios that require high real-time and stability, it is more inclined to switch sequentially or in batches, while in scenarios with strict requirements on switching time, it may choose to switch all at once. In addition, it can also be dynamically adjusted and optimized according to factors such as system resources, channel conditions, and user feedback.
[0067] Step S108: Switch the remaining spatial streams among the multiple spatial streams to the target channel, wherein the remaining spatial streams are the spatial streams among the multiple spatial streams except for some of the spatial streams.
[0068] It can be understood that after some spatial streams are successfully switched to the target channel, the remaining spatial streams that do not participate in the channel scanning are also switched to the target channel, ensuring that all spatial streams can send and receive signals on the target channel.
[0069] Optionally, for wireless products, such as point-to-point bridges, multiple spatial streams in one channel frequency band can effectively improve the coverage distance and peak rate in the long-distance case. Switching the remaining spatial streams in the multiple spatial streams to the target channel is to take into account the peak rate improvement brought by multiple spatial streams, a larger coverage range, and can also improve anti-interference ability and reduce latency.
[0070] In an optional embodiment, switching the remaining spatial streams among the multiple spatial streams to the target channel includes: determining a first performance indicator for signal transmission between the AP and the terminal on the target channel; and switching the remaining spatial streams among the multiple spatial streams to the target channel when the first performance indicator satisfies the first indicator condition.
[0071] It can be understood that before trying to switch the remaining spatial streams to the target channel, it is necessary to determine the first performance indicator when the AP and the terminal transmit signals on the target channel. The first performance indicator is compared with the preset first indicator condition, which is used to determine whether the AP and the terminal can establish a stable connection, and can indicate whether the target channel is suitable for carrying the remaining spatial streams. If the first performance indicator meets the first indicator condition, it means that the target channel can provide good transmission performance in the current state, so the spatial stream switching can continue.
[0072] Optionally, the switching process for the remaining spatial streams may include multiple operations, including adjusting the beam direction of the antenna, allocating channel resources, updating routing information, etc.
[0073] Optionally, in order to ensure the communication quality after switching to the target channel, it is also necessary to continue to detect the performance of the target channel after switching. If it is found that the target channel does not meet the predetermined performance conditions in subsequent changes, the spatial stream switching process can be performed again. This avoids communication problems caused by poor channel performance, and subsequent channel detection can further improve the stability of communication.
[0074] Optionally, if the first performance indicator of the target channel does not meet the first indicator condition, multiple candidate channels are scanned again, and after the above-mentioned part of the spatial streams is switched to the new target channel, a channel whose first performance indicator meets the first indicator condition is determined, and then the remaining spatial streams are switched to the new target channel.
[0075] In an optional embodiment, the first performance indicator is at least one of the following: packet loss rate, bit error rate, signal strength, and transmission delay.
[0076] It can be understood that the above-mentioned first performance indicator is used to reflect the channel stability of the target channel, and can be at least one of the following: packet loss rate, bit error rate, signal strength, and transmission delay. The bit error rate refers to the ratio of the number of received error bits to the total number of transmitted bits during data transmission. A lower bit error rate indicates that the data quality transmitted by the target channel is higher and the stability of the target channel is better. Signal strength refers to the signal power level of signal transmission and reception. A stronger signal strength means better communication quality and a longer transmission distance. Transmission delay refers to the time from sending data to the time when the data reaches the receiving end, which reflects the speed and stability of data signal transmission on the channel. In the communication between AP and terminal, if the transmission delay is longer, it means that the queue is longer and the channel quality is poor. When evaluating the stability of the target channel, it may be necessary to comprehensively consider the performance of the above-mentioned multiple first performance indicators. In practical applications, any one or more of the above-mentioned first performance indicators can be selectively used for performance evaluation to meet different wireless communication needs.
[0077] Optionally, the first performance indicator may also be throughput, depending on the requirements and configuration of the network. In the case where there are multiple first performance indicators, weights may be set according to different application scenarios, and based on the multiple first performance indicators and the weights corresponding to the multiple second performance indicators, a first score value corresponding to the target channel is obtained, and based on the comparison between the first score value and the first indicator condition, it is determined whether to perform switching processing on the remaining channels.
[0078] In an optional embodiment, the remaining spatial streams are most of the multiple spatial streams.
[0079] It can be understood that by setting the remaining spatial streams to be the majority of the multiple spatial streams, by allowing a few spatial streams to perform scanning processing while keeping most of the spatial streams in a stable communication state, the impact of the scanning operation on the overall transmission rate can be reduced, and seamless adaptive channel switching can be achieved.
[0080] Optionally, the majority of the spatial streams may be a predetermined proportion of the multiple spatial streams, or a predetermined number of spatial streams, so that the number of remaining spatial streams is greater than the partial spatial streams used for scanning.
[0081] Optionally, channel switching is performed during a period when the communication load is low or the data transmission gap is large to reduce the data transmission pressure of the remaining spatial streams.
[0082] Through the above step S102, multiple spatial streams for signal transmission between the access point AP and the terminal using the initial channel are determined, wherein the multiple spatial streams are signal streams transmitted based on different combinations of the antenna of the AP and the antenna of the terminal; step S104, when the initial channel does not meet the predetermined performance conditions, some spatial streams in the multiple spatial streams are used to perform channel scanning on multiple candidate channels respectively to determine the target channel; step S106, some spatial streams are switched from the initial channel to the target channel; step S108, the remaining spatial streams in the multiple spatial streams are switched to the target channel, wherein the remaining spatial streams are the spatial streams in the multiple spatial streams other than some spatial streams. The purpose of avoiding signal interruption is achieved, and the technical effect of improving the communication stability during the adaptive channel switching process is achieved, thereby solving the technical problem of signal interruption in the channel switching process in the related art, which leads to a decrease in communication quality.
[0083] Based on the above embodiments and optional embodiments, the present application proposes an optional implementation method, which is applied to the interaction processing between the AP and the terminal. The AP is provided with multiple antennas, and the terminal is also provided with multiple antennas. There can be multiple spatial streams for the interaction between the two. Figure 3 is a schematic flow chart of an optional channel switching method provided according to an embodiment of the present application, such as Figure 3As shown, in step S302, when the wireless device (AP) is powered on, all spatial streams select the current best channel as the initial channel for communication. The above initial channel can be determined by scanning all channels in the working frequency band and calculating the current best channel according to the channel utilization and channel noise floor.
[0084] Step S304, detect the utilization rate and packet loss rate of the AP's current communication channel. When the packet loss rate rises and the channel utilization rate becomes high, it is considered that there are too many APs using the channel or other wireless interference is serious, triggering the channel adaptive switching mechanism. All channels in the working frequency band will be scanned, and the current optimal channel will be calculated based on the channel utilization rate and channel noise floor.
[0085] When the channel utilization is high, it means that there are more APs using the initial channel, the available time slots become shorter, the duty cycle increases, and the actual throughput decreases. At the same time, when working on the same channel with multiple other APs, the same-frequency interference increases, resulting in an increase in the AP data packet retransmission rate, an increase in the bad packet rate, and an increase in the packet loss rate. Not only will multiple APs interfere with each other when using the same channel, but in actual application scenarios, interference from other wireless signals such as Bluetooth and microwave ovens will also cause an increase in the packet loss rate. Therefore, it is necessary to continuously detect the channel utilization and packet loss rate of the initial channel where multiple spatial streams are located. When the initial channel utilization is higher than the predetermined utilization threshold, and / or the initial packet loss rate is higher than the predetermined packet loss rate threshold, the channel adaptive switching mechanism is triggered. The above-mentioned predetermined utilization threshold and predetermined packet loss rate threshold can be adjusted according to the requirements of the predetermined scenario and the adaptive test.
[0086] Step S306: The AP device may be integrated with a radio chip supporting Split PHY, and multiple spatial streams may operate in different frequency bands. At this time, a single or a preset number / ratio (such as half) of spatial streams are used to perform channel scanning to find a new current best channel, that is, the target channel.
[0087] When the channel adaptive switching mechanism is triggered, the chip will control a single or multiple spatial streams. The number of spatial streams can be determined according to the strategy, and the channels in other frequency bands will be scanned. For example, if there are currently N spatial streams (i.e., the remaining spatial streams) working in 5G band1 (i.e., the initial channel), then there will be a single or multiple spatial streams (i.e., some spatial streams) less than N that will scan channels in 5G band3, band4 or 6G (i.e., multiple candidate channels) to find the optimal channel with the lowest current utilization, i.e., the above target channel. Among them, the above band1, 3, and 4 represent different frequency band identifiers.
[0088] Step S308: After some spatial streams jump to the best channel (ie, the target channel) to communicate stably with the other end, the channels of the remaining spatial streams are switched.
[0089] In order to perform the switching of some spatial streams, the antenna of the AP associated with some spatial streams is switched from the initial channel to the target channel. After the switching of the AP antenna is completed, the AP will issue a command to notify the connected terminal (the sub-route of the mesh network) to perform the switching of the corresponding antenna, and also switch from the initial channel to the target channel, and establish a connection with the AP. In the above switching process, the original initial channel still has some or even most of the spatial streams (i.e., the remaining spatial streams) working. Therefore, in the above switching process of some spatial streams, there will be no interruption of signal transmission and reception, or a significant increase in communication delay. For the AP that has switched to the current optimal channel (i.e., the target channel), after the target channel and the connected terminal (such as the sub-route of the mesh network) have stable communication (i.e., the first performance indicator of the target channel meets the first indicator condition), the remaining spatial streams are switched to the target channel.
[0090] In order to smoothly switch the spatial streams, a switching strategy may be used for control according to the communication requirements between the AP and the terminal. The switching strategy is at least one of the following: switching the remaining spatial streams to the target channel in sequence; switching the remaining spatial streams to the target channel at one time; switching the remaining spatial streams to the target channel in batches according to a predetermined batch interval.
[0091] In the related art, after power-on, the user needs to manually modify the configuration to switch to the optimal channel, while adaptive adjustment of the optimal channel can be achieved. Compared with the related art, the channel switching method provided by the above optional implementation method can achieve seamless channel switching, and there will be no interruption or increase in delay during the channel switching process. While taking into account the low latency of multi-band multi-link operation MLO, the above optional implementation method also achieves a greater combining gain, increases the coverage range, and optimizes the user's Internet experience. The interference level is determined based on the current communication packet loss rate and negotiation rate, thereby triggering the mechanism to adaptively switch the optimal channel, greatly improving the system's anti-interference ability.
[0092] The above optional implementation method achieves at least the following effects: without sacrificing coverage range and peak rate, it can not only improve the anti-interference ability of wireless communication, but also solve the problem of excessive delay in the channel switching process, and there will be no temporary disconnection when switching channels. It has good adaptability to meet some scenarios with high latency requirements, such as industry and medical scenarios.
[0093] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0094] An access point AP is also provided in an embodiment of the present application. The access point AP adopts the channel switching method provided in any of the above embodiments.
[0095] Optionally, the AP is integrated with a radio chip, which is responsible for the functions of receiving and transmitting radio frequency signals, frequency synthesis, power amplification, etc. The radio chip supports Split PHY. Split PHY is a technology that separates the physical layer (PHY) functions, allowing the PHY layer processing tasks to be distributed to different hardware components. It can improve the flexibility and scalability of the system while reducing power consumption and cost. The radio chip supports Split PHY, which means that channel bands and spatial streams can be configured more flexibly.
[0096] For ease of understanding, take a certain chip as an example, which supports 4 spatial streams, and can be freely matched, such as 4*2G, 4*5G, 4*6G, 2*2G+2*5G, 2*2G+2*6G, and 2*5G+2*6G. 4*2G means that all 4 spatial streams are configured on the 2.4GHz channel band, 4*5G means that all 4 spatial streams are configured on the 5GHz channel band, and 4*6G means that all 4 spatial streams are configured on the 6GHz channel band. 2*2G+2*5G means that 2 spatial streams are configured on the 2.4GHz band, and the other 2 spatial streams are configured on the 5GHz band. 2*2G+2*6G means that 2 spatial streams are configured on the 2.4GHz band, and the other 2 spatial streams are configured on the 6GHz band. 2*5G+2*6G means that 2 spatial streams are configured on the 5GHz band, and the other 2 spatial streams are configured on the 6GHz band.
[0097] Due to the characteristics of wireless network WiFi (Wireless Fidelity)7, multi-band multi-link operation MLO (Multi-Link Operation) can be performed on different frequency bands. When serious interference is detected on a certain frequency band, another frequency band can be switched immediately to greatly reduce the delay. However, when configured as 2*2G+2*5G, 2*2G+2*6G, and 2*5G+2*6G, although multi-band multi-link operation MLO can be performed, the combined gain of 4*2G, 4*5G, and 4*6G is lost, the coverage range and peak rate are reduced. For example, the peak rate of 2*5G+2*6G is definitely lower than that of 4*6G. Combined gain refers to the gain effect generated when multiple spatial streams work together on the same frequency band, which can increase the coverage range and peak rate of the signal. Therefore, in a mixed frequency band configuration, although the connection performance can be optimized through the MLO feature, the overall coverage range and peak rate may be lower than that of a full frequency band configuration.
[0098] When the channel adaptive switching mechanism is triggered, the chip will control a single or multiple spatial streams (i.e., some of the above spatial streams). The number of spatial streams can be determined according to the strategy, and channels in other frequency bands will be scanned. For example, if there are N spatial streams working in 5G band1, there will be a single or multiple spatial streams (less than N) scanning channels in 5G band3, band4 or 6G to find the optimal channel with the lowest current utilization. Among them, band1, 3, and 4 represent different frequency band identifiers.
[0099] A communication system is also provided in an embodiment of the present application. The communication system provided in an embodiment of the present application is introduced below.
[0100] Figure 4 is a structural block diagram of a communication system provided according to an embodiment of the present application, such as Figure 4 As shown, the communication system includes: the access point AP402 provided in the above embodiment, and a terminal 404 interacting with the AP402.
[0101] In an optional embodiment, the terminal is at least one of the following: a mobile phone, a sub-router of a wireless mesh network, and the AP is a router.
[0102] It can be understood that an AP can be a router. A router is a network device used to forward data packets between different networks, usually connected between an internal network and an external network (such as the Internet). It can also be configured to forward data packets between different local area networks (LANs) to act as a bridge. The terminal is a device that interacts with the AP. In a communication system, a terminal can be a mobile phone or a sub-router of a wireless mesh network (mesh networking). A mobile phone is a common wireless terminal device used to access the network through wireless technologies such as Wi-Fi. When the terminal is a sub-router of a wireless mesh network mesh networking, it can access the network as a terminal and can also forward data to other sub-routers or terminals, thereby expanding the coverage of the network.
[0103] In an optional embodiment, the above-mentioned communication system is a point-to-point bridge. The point-to-point bridge is used to connect two or more local area networks (LANs) and forward data. The AP is a router that can simulate the behavior of the bridge, for example, it can connect two LANs interactively with the terminal through the bridge mode. The point-to-point bridge can be used to implement a point-to-point (Point-to-Point) wireless connection device between two network nodes. The point-to-point bridge works at the data link layer and determines whether to forward the data packet by identifying the media access control address MAC (Media Access Control Address) address in the data packet. When network A sends a data packet to network B, the AP in the point-to-point bridge will receive the data packet and check the MAC address therein. If the MAC address belongs to network B, the network AP will forward the data packet to network B through the terminal. If the MAC address belongs to network A or other networks, the bridge will discard the data packet. Through the above processing, the filtering and forwarding functions of the data can be realized, ensuring the accuracy and efficiency of data transmission.
[0104] In a communication system provided by an embodiment of the present application, an access point AP402 and a terminal 404 interacting with the AP402 are set to avoid signal interruption and improve the communication stability during adaptive channel switching, thereby solving the technical problem in the related art that signal interruption during channel switching causes a decrease in communication quality.
[0105] In this embodiment, a channel switching device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the terms "module" and "device" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0106] According to an embodiment of the present application, a device embodiment for implementing a channel switching method is also provided. Figure 5 is a schematic diagram of a channel switching device according to an embodiment of the present application, such as Figure 5 As shown, the channel switching device includes: an initial communication module 502, a target channel determination module 504, a first switching module 506, and a second switching module 508. The device is described below.
[0107] An initial communication module 502 is used to determine a plurality of spatial streams for signal transmission between an access point AP and a terminal using an initial channel, wherein the plurality of spatial streams are signal streams transmitted based on different combinations of antennas of the AP and antennas of the terminal;
[0108] The target channel determination module 504 is connected to the initial channel determination module 502 and is used to use some of the multiple spatial streams to perform channel scanning on multiple candidate channels respectively to determine the target channel when the initial channel does not meet the predetermined performance condition;
[0109] The first switching module 506 is connected to the target channel determination module 504 and switches part of the spatial streams from the initial channel to the target channel;
[0110] The second switching module 508 is connected to the first switching module 506 and switches the remaining spatial streams among the multiple spatial streams to the target channel, wherein the remaining spatial streams are the spatial streams among the multiple spatial streams except for some spatial streams.
[0111] In a channel switching device provided by an embodiment of the present application, an initial communication module 502 is set to determine multiple spatial streams for signal transmission between an access point AP and a terminal using an initial channel, wherein the multiple spatial streams are signal streams transmitted based on different combinations of the antenna of the AP and the antenna of the terminal; a target channel determination module 504 is connected to the initial channel determination module 502, and is used to use part of the spatial streams in the multiple spatial streams to perform channel scanning on multiple candidate channels respectively to determine the target channel when the initial channel does not meet the predetermined performance conditions; a first switching module 506 is connected to the target channel determination module 504 to switch part of the spatial streams from the initial channel to the target channel; a second switching module 508 is connected to the first switching module 506 to switch the remaining spatial streams in the multiple spatial streams to the target channel, wherein the remaining spatial streams are the spatial streams in the multiple spatial streams except for part of the spatial streams. The purpose of avoiding signal interruption is achieved, and the technical effect of improving the communication stability in the process of adaptive channel switching is achieved, thereby solving the technical problem of signal interruption in the channel switching process in the related art, which leads to a decrease in communication quality.
[0112] It should be noted that the above modules can be implemented by software or hardware. For example, for the latter, it can be implemented in the following ways: the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.
[0113] It should be noted that the above initial communication module 502, target channel determination module 504, first switching module 506, and second switching module 508 correspond to steps S102 to S108 in the embodiment, and the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments. It should be noted that the above modules as part of the device can be run in a computer terminal.
[0114] It should be noted that the optional or preferred implementation of this embodiment can refer to the relevant description in the embodiment, which will not be repeated here.
[0115] The above-mentioned channel switching device may also include a processor and a memory, and the initial communication module 502, the target channel determination module 504, the first switching module 506, the second switching module 508, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize the corresponding functions.
[0116] The processor includes a kernel, which retrieves the corresponding program unit from the memory. There can be one or more kernels. The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one storage chip.
[0117] An embodiment of the present application provides a non-volatile storage medium on which a program is stored. When the program is executed by a processor, the channel switching method provided in any one of the above embodiments is implemented.
[0118] The embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program stored in the memory and can be run on the processor. When the processor executes the program, the following steps are implemented: determining multiple spatial streams for signal transmission using an initial channel between an access point AP and a terminal, wherein the multiple spatial streams are signal streams transmitted based on different combinations of the antenna of the AP and the antenna of the terminal; when the initial channel does not meet the predetermined performance conditions, using some of the spatial streams in the multiple spatial streams, performing channel scanning on multiple candidate channels respectively, and determining a target channel; switching some of the spatial streams from the initial channel to the target channel; switching the remaining spatial streams in the multiple spatial streams to the target channel, wherein the remaining spatial streams are spatial streams other than some of the spatial streams in the multiple spatial streams. The device in this article can be a server, etc.
[0119] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that is initialized with the following method steps: determining multiple spatial streams for signal transmission between an access point AP and a terminal using an initial channel, wherein the multiple spatial streams are signal streams transmitted based on different combinations of an antenna of the AP and an antenna of the terminal; when the initial channel does not meet a predetermined performance condition, using some spatial streams among the multiple spatial streams to perform channel scanning on multiple candidate channels respectively to determine a target channel; switching some spatial streams from the initial channel to the target channel; and switching the remaining spatial streams among the multiple spatial streams to the target channel, wherein the remaining spatial streams are spatial streams other than some spatial streams among the multiple spatial streams.
[0120] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0121] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0122] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0123] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0124] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0125] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0126] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0127] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0128] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0129] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A channel switching method, characterized in that: include: Determine a plurality of spatial streams for signal transmission between an access point AP and a terminal using an initial channel, wherein the plurality of spatial streams are signal streams transmitted based on different combinations of an antenna of the AP and an antenna of the terminal; When the initial channel does not meet the predetermined performance condition, using some of the multiple spatial streams to perform channel scanning on multiple candidate channels respectively to determine a target channel; Switching the part of spatial streams from the initial channel to the target channel; Switching remaining spatial streams among the multiple spatial streams to the target channel, wherein the remaining spatial streams are spatial streams among the multiple spatial streams except the partial spatial streams.
2. The method according to claim 1, characterized in that The switching the remaining spatial streams among the multiple spatial streams to the target channel comprises: Determine a first performance indicator of signal transmission between the AP and the terminal on the target channel; If the first performance indicator satisfies a first indicator condition, the remaining spatial streams of the multiple spatial streams are switched to the target channel.
3. The method according to claim 2, characterized in that The first performance indicator is at least one of the following: packet loss rate, bit error rate, signal strength, and transmission delay.
4. The method according to claim 1, characterized in that: When the initial channel does not meet the predetermined performance condition, using some of the multiple spatial streams to perform channel scanning on multiple candidate channels respectively to determine the target channel includes: Using some of the multiple spatial streams to perform channel scanning on the multiple candidate channels respectively, and determining second performance indicators corresponding to the multiple candidate channels respectively; The target channel is determined from the multiple candidate channels based on second performance indicators respectively corresponding to the multiple candidate channels.
5. The method according to claim 4, characterized in that The second performance indicator is at least one of the following: packet loss rate, channel utilization, channel noise level, and transmission delay.
6. The method according to claim 1, characterized in that The method further comprises: When the initial packet loss rate of the initial channel is greater than or equal to a predetermined packet loss rate threshold, and / or the utilization rate of the initial channel is greater than or equal to a predetermined utilization rate threshold, it is determined that the initial channel does not meet the predetermined performance condition.
7. The method according to claim 1, characterized in that The switching the remaining spatial streams among the multiple spatial streams to the target channel comprises: Determining a switching strategy based on communication requirements between the AP and the terminal; Based on the switching strategy, remaining spatial streams among the multiple spatial streams are switched to the target channel.
8. The method according to claim 7, characterized in that in, The switching strategy is at least one of the following: Switching the remaining spatial streams to the target channel in sequence; Switching the remaining spatial streams to the target channel at one time; The remaining spatial streams are switched to the target channel in batches according to a predetermined batch interval.
9. The method according to any one of claims 1 to 8, characterized in that The remaining spatial streams are most of the plurality of spatial streams.
10. An access point AP, characterized in that: The access point AP adopts the channel switching method described in any one of claims 1 to 9.
11. A communication system, characterized in that: include: The access point AP as claimed in claim 10, and a terminal interacting with the AP.
12. The system according to claim 11, characterized in that The terminal is at least one of the following: a mobile phone, a sub-router of a wireless mesh network, and the AP is a router.
13. A channel switching device, characterized in that: include: An initial communication module, used to determine a plurality of spatial streams for signal transmission between an access point AP and a terminal using an initial channel, wherein the plurality of spatial streams are signal streams transmitted based on different combinations of antennas of the AP and antennas of the terminal; A target channel determination module, configured to, when the initial channel does not meet a predetermined performance condition, use some of the multiple spatial streams to perform channel scanning on multiple candidate channels respectively to determine a target channel; A first switching module, configured to switch the part of the spatial streams from the initial channel to the target channel; The second switching module is configured to switch the remaining spatial streams among the multiple spatial streams to the target channel, wherein the remaining spatial streams are the spatial streams among the multiple spatial streams except the partial spatial streams.
14. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the channel switching method described in any one of claims 1 to 9.
15. An electronic device, characterized in that: include: One or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the channel switching method described in any one of claims 1 to 9.
16. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the channel switching method according to any one of claims 1 to 9 is implemented.