WiFi access node switching method and device, equipment and storage medium
By using independent target antennas in the terminal device to detect the communication quality of the WiFi access node and switch to a better access node, the disconnection and lag problems that the terminal device may encounter when switching the access node are solved, and communication quality and stability are improved.
Patent Information
- Application Number
- CN202411678011.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-21
- Publication Date
- 2025-03-07
AI Technical Summary
In the multi-wireless fidelity WiFi access node scenario, after the terminal device switches to other access nodes, it may cause disconnection, stuttering, or need to roam again, resulting in the inability to guarantee communication quality.
The communication quality of at least one access node is detected by independent target antennas and switched to a first target access node with better communication quality for communication, avoiding switching to an access node with worse quality.
It effectively avoids roaming and switching to access nodes with poorer communication quality, resulting in disconnection, lag or need to roam again, and improves communication quality and stability.
Smart Images

Figure CN119584225A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless fidelity WiFi communications, and in particular to a method, device, equipment and storage medium for switching WiFi access nodes. Background Art
[0002] In a multi-wireless fidelity (WiFi) access point (AP) scenario, the WiFi access point to which the terminal device is connected will roam from the current access point (Current AP) to other access points. The terminal device directly disconnects from the Current AP and connects to other access points, but the communication quality of other access points cannot be guaranteed. After the terminal device switches to other access points, it is likely to be disconnected, stuck, or need to roam again. Summary of the invention
[0003] The embodiments of the present application provide a method, apparatus, device and storage medium for switching a WiFi access node, which are used to detect the communication quality of at least one access node through an independent target antenna, switch to a first target access node with better communication quality for communication, and avoid roaming and switching to an access node with worse quality, resulting in disconnection, freeze, or the need for re-roaming.
[0004] In a first aspect, the present application provides a method for switching a WiFi access node, the method being applied to a terminal device, the terminal device including a target antenna, the method comprising: detecting the communication quality of at least one access node through the target antenna, the at least one access node being a current access node of the terminal device, and / or an adjacent access node of the current access node, the target antenna being different from the WiFi antenna in the terminal device; switching the current access node to a first target access node, the communication quality of the first target access node being greater than the communication quality of the current access node, the adjacent access nodes including the first target access node; and communicating through the first target access node.
[0005] A second aspect of the present application provides a switching device for a WiFi access node, the device being applied to a terminal device, the terminal device including a target antenna, and the device including:
[0006] A detection module, configured to detect the communication quality of at least one access node through the target antenna, wherein the at least one access node is a current access node of the terminal device and / or an adjacent access node of the current access node, and the target antenna is different from a WiFi antenna in the terminal device;
[0007] A switching module, configured to switch the current access node to a first target access node, wherein the communication quality of the first target access node is greater than the communication quality of the current access node, and the adjacent access node includes the first target access node;
[0008] A communication module is used to communicate through the first target access node.
[0009] The third aspect of the present application provides a terminal device, which may include a memory and a processor, and a transceiver, wherein the memory stores a computer program that can be executed on the processor, and when the terminal device executes the program, the method described in the first aspect of the present application is implemented.
[0010] A fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect of the present application.
[0011] Yet another aspect of an embodiment of the present application discloses a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the method described in the first aspect of the present application.
[0012] Another aspect of an embodiment of the present application discloses an application publishing platform, which is used to publish a computer program product. When the computer program product runs on a computer, the computer executes the method described in the first aspect of the present application.
[0013] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0014] In an embodiment of the present application, the communication quality of at least one access node is detected by the target antenna, the at least one access node is the current access node of the terminal device, and / or, the adjacent access node of the current access node, the target antenna is different from the WiFi antenna in the terminal device; the current access node is switched to a first target access node, the communication quality of the first target access node is greater than the communication quality of the current access node, and the adjacent access nodes include the first target access node; communication is performed through the first target access node. The communication quality of at least one access node can be detected by an independent target antenna, and communication can be switched to the first target access node with better communication quality, so as to avoid roaming and switching to an access node with worse communication quality, resulting in disconnection, freezing, or the need to re-roam. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments and the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application, and other drawings can be obtained based on these drawings.
[0016] Figure 1 A schematic diagram of roaming multiple WiFi access nodes in an embodiment of the present application;
[0017] Figure 2 A schematic diagram of a terminal device including a WiFi antenna and a target antenna in an embodiment of the present application;
[0018] Figure 3 A schematic diagram of an embodiment of a method for switching a WiFi access node in an embodiment of the present application;
[0019] Figure 4 A schematic diagram of an embodiment of a switching device for a WiFi access node in an embodiment of the present application;
[0020] Figure 5 This is a schematic diagram of an embodiment of a terminal device in an embodiment of the present application;
[0021] Figure 6 This is another schematic diagram of a terminal device in an embodiment of the present application. DETAILED DESCRIPTION
[0022] The embodiments of the present application provide a method, apparatus, device and storage medium for switching a WiFi access node, which are used to detect the communication quality of at least one access node through an independent target antenna, switch to a first target access node with better communication quality for communication, and avoid roaming and switching to an access node with worse quality, resulting in disconnection, freeze, or the need for re-roaming.
[0023] In order to make the technical personnel in the technical field better understand the scheme of the present application, the technical scheme in the embodiment of the present application will be described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, not all of the embodiments. Based on the embodiments in the present application, they should all fall within the scope of protection of the present application.
[0024] The following is a brief description of some terms involved in this application, as follows:
[0025] Wi-Fi access point (AP) is a key component in wireless local area network (WLAN), which allows wireless devices (such as smartphones, laptops, tablets, etc.) to connect to wired networks and access the Internet or other network resources. Many APs support MIMO (multiple input multiple output) technology, which uses multiple antennas to increase data transmission rate and signal coverage. It can increase system capacity, coverage and signal-to-noise ratio, and improve the transmission quality of wireless signals without increasing bandwidth and transmission power.
[0026] Frequency Division Coexistence (FDC) refers to the fact that in a wireless communication system, multiple devices or systems transmit signals on different frequencies to achieve harmonious coexistence in the same area and avoid mutual interference. This technology allows different communication systems or different parts of the same system to operate simultaneously on different frequency bands, thereby improving the efficiency of spectrum utilization.
[0027] In the existing technical solutions, the terminal device cannot connect to the current access node and other access nodes at the same time. The WiFi access node to which the terminal device is connected will roam from the current access node (Current AP) to other access nodes. However, the communication quality of other access nodes cannot be guaranteed. After the terminal device switches to other access nodes, it is likely to be disconnected, stuck, or need to roam again. Figure 1 As shown, it is a schematic diagram of roaming of multiple WiFi access nodes in an embodiment of the present application.
[0028] In an embodiment of the present application, the terminal device includes a WiFi antenna and a target antenna, and the number of WiFi antennas is at least one; the terminal device can simultaneously connect to the current access node and pre-connect to other access nodes through the target antenna. In WiFi multiple input multiple output (MIMO), the number of WiFi antennas is at least two. For example: the WiFi antennas are ANT0 and ANT1, that is, ANT0 and ANT1 are used as WiFi MIMO for AP connection, and the target antenna is ANT2, for example. During the user's movement, ANT0 and ANT1 communicate normally, and ANT2 independently scans and pre-connects the surrounding APs to detect the communication quality of the surrounding APs, so that the terminal device switches to an access node with higher communication quality for communication. Figure 2 As shown, it is a schematic diagram of a terminal device including a WiFi antenna and a target antenna in an embodiment of the present application.
[0029] In the embodiment of the present application, the terminal device can be a mobile phone, a tablet computer, a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal device in industrial control, a wireless terminal device in self driving, a wireless terminal device in remote medical, a wireless terminal device in a smart grid, a wireless terminal device in transportation safety, a wireless terminal device in a smart city, or a wireless terminal device in a smart home, etc.
[0030] As an example but not limitation, in the embodiments of the present application, the terminal device may also be a wearable device. Wearable devices may also be referred to as wearable smart devices, which are a general term for wearable devices that are intelligently designed and developed using wearable technology for daily wear, such as glasses, gloves, watches, clothing, and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not only hardware devices, but also powerful functions achieved through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include full-featured, large-sized, and fully or partially independent of smartphones, such as smart watches or smart glasses, as well as devices that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various types of smart bracelets and smart jewelry for vital sign monitoring.
[0031] like Figure 3 FIG. 1 is a schematic diagram of an embodiment of a method for switching a WiFi access node in an embodiment of the present application. The method is applied to a terminal device, the terminal device includes a target antenna and a WiFi antenna; the method may include the following steps:
[0032] 301. Detect the communication quality of at least one access node through the target antenna, where the at least one access node is a current access node of the terminal device and / or an adjacent access node of the current access node, and the target antenna is different from the WiFi antenna.
[0033] Exemplarily, when a user is using a terminal device, for example, while moving in an office building, an airport, a railway station, a high-speed railway station, etc., because the terminal device includes a target antenna, the communication quality of at least one access node can be detected through the target antenna.
[0034] The at least one access node may include the current access node of the terminal device, or may include the current access node of the terminal device and an adjacent access node of the current access node, or may include an adjacent access node of the current access node, which is not limited in the embodiments of the present application.
[0035] The target antenna is different from the WiFi antenna, that is, it can be understood that the target antenna is an independent antenna on the terminal device and does not belong to the existing WiFi antenna. It is specifically used to detect the communication quality of at least one access node to determine the first target access node with better communication quality and switch communication.
[0036] Optionally, in some possible implementations of the present application, the target antenna is set at any position of the terminal device. For example, the middle position of the top, or the position of the top close to the left, or the position of the top close to the right, or the middle position of the left, or the position of the left close to the top, or the position of the left close to the bottom, or the middle position of the right, or the position of the right close to the top, or the position of the right close to the bottom, etc. The specific embodiments of the present application are not limited and can be determined according to actual needs.
[0037] Optionally, in some possible implementations of the present application, the communication quality includes at least one of a received signal strength indication, a signal-to-noise ratio, an Internet access rate, a delay, a link quality, and a noise level.
[0038] Received Signal Strength Indicator (RSSI): RSSI is a common indicator for measuring wireless signal strength. It indicates the signal strength received by the receiving end. The RSSI value range is usually 0-60 or 0-255, but this value is not standardized and different devices may have different representations. In actual applications, the higher the RSSI value, the better the signal strength.
[0039] Signal to Interference plus Noise Ratio (SINR): SINR refers to the ratio of the strength of the received useful signal to the strength of the received interference signal (noise and interference). SINR is usually expressed in decibels (dB), which reflects the purity of the signal, that is, the ratio of useful information to noise and interference in the signal.
[0040] Link Quality: Link quality is a percentage value that indicates the relative level between the "worst" link and the "best" link. The higher the Link Quality value, the better the link quality.
[0041] Noise Level: The noise level indicates the link noise level at a specific frequency, in dBm or percentage. The lower the noise level, the cleaner the channel and the better the communication quality.
[0042] In this technical solution, the communication quality includes at least one of the received signal strength indication, signal-to-noise ratio, Internet access rate, delay, link quality and noise level. The communication quality of the access node can be indicated by specific parameters, which improves the feasibility of the solution.
[0043] Optionally, the communication quality is characterized by a quality score, which is a score obtained by multiplying the weight of each parameter among at least one of the received signal strength indication, signal-to-noise ratio, Internet access rate, delay, link quality and noise level by the corresponding parameter value and then adding them together.
[0044] Exemplarily, if the communication quality of an access node is detected to include received signal strength indication RSSI, signal-to-noise ratio SINR, Internet access rate V, delay T, link quality Q and noise level N, where the weight of the received signal strength indication is X1, the weight of the signal-to-noise ratio is X2, the weight of the Internet access rate is X3, the weight of the delay is X4, the weight of the link quality is X5, and the weight of the noise level is X6, then the quality score of this access node is: RSSI*X1+SINR*X2+V*X3+T*X4+Q*X5+N*X6.
[0045] In the present technical solution, the communication quality can be characterized by a quality score, wherein the quality score is a score obtained by multiplying the weight of each parameter by the corresponding parameter value among at least one parameter of the received signal strength indication, signal-to-noise ratio, Internet access rate, delay, link quality, and noise level, and then adding the sum of the weights. The communication quality of the access node can be judged more intuitively through the quality score, thereby improving the accuracy of selecting the first target access node for switching and performing switching.
[0046] Optionally, in some possible implementations of the present application, an operating frequency of the WiFi antenna is different from an operating frequency of the target antenna.
[0047] For example, when the WiFi antenna (such as ANT0+ANT1) and the target antenna (such as ANT2) work at the same time, there may be radio frequency interference that affects the performance of WiFi. The coexistence of the WiFi antenna (such as ANT0+ANT1) and the target antenna (such as ANT2) can be implemented in a frequency division manner. That is, the WiFi antenna (such as ANT0+ANT1) works in one channel, and the target antenna (such as ANT2) works in another channel. The different operating frequencies of the two channels can reduce co-channel interference.
[0048] In the present technical solution, the mutual interference caused by the operation of the target antenna and the operation of the WiFi antenna can be reduced by frequency division, that is, the operating frequency of the WiFi antenna is different from the operating frequency of the target antenna.
[0049] Optionally, in some possible implementations of the present application, detecting the communication quality of at least one access node through the target antenna may include: when a frequency difference between an operating frequency of the current access node and an operating frequency of a second target access node is greater than a frequency threshold, accessing the second target access node, and detecting the communication quality of the second target access node through the target antenna, the at least one access node including the current access node and the second target access node.
[0050] When the operating frequency of the WiFi antenna is different from the operating frequency of the target antenna, if the frequency difference between the operating frequencies of the current access node (Current AP) and a certain access node (APx) is greater than the frequency threshold (e.g., 100M), it can be determined that the mutual interference between the WiFi antenna (e.g., ANT0+ANT1) and the target antenna (e.g., ANT2) is lower than the influence of environmental noise. At this time, simultaneous transmission and reception control is not required, that is, the free transmission and reception (Free Run) method is used, and the WiFi antenna and the target antenna work independently according to their respective transmission and reception timings.
[0051] In the present technical solution, the mutual interference caused by the operation of the target antenna and the operation of the WiFi antenna can be further reduced by frequency division, that is, when the frequency difference between the operating frequency of the WiFi antenna and the operating frequency of the target antenna is greater than the frequency threshold.
[0052] In the above technical solution, if the target antenna (such as ANT2) is limited in the WiFi roaming scenario to only pre-connect to an AP whose working frequency is different from that of the WiFi antenna (such as ANT0+ANT1), then to a certain extent, the effective scenario of WiFi roaming is limited, and the isolation between the antennas of the whole machine is required to be high. Therefore, the present application also proposes a free transceiver method, a simultaneous transmission control method, or a simultaneous reception control method, which can realize the scanning and pre-connection of any frequency of the target antenna (such as ANT2) without being restricted by the working frequency of the WiFi antenna (such as ANT0+ANT1); the technical solution of the present application realizes simultaneous transmission or reception with the WiFi antenna, or free transmission and reception, by controlling the timing of the target antenna TX (transport, sending) / RX (receive), thereby avoiding mutual interference between the WiFi antenna and the target antenna.
[0053] It should be noted that since the target antenna (such as ANT2) is mainly used for AP scanning and pre-connection, the data transmitted is small and the working time is short; therefore, in the simultaneous transmission control method or the simultaneous reception control method, the timing of the WiFi antenna (such as ANT0+ANT1) is mainly used, and the target antenna (such as ANT2) follows the timing of the WiFi antenna (such as ANT0+ANT1).
[0054] Optionally, in some possible implementations of the present application, the method may further include: transmitting a first signal to the current access node via the WiFi antenna; and receiving a second signal sent by the current access node based on the first signal via the WiFi antenna.
[0055] In this technical solution, by scanning the target antenna and pre-connecting to other access nodes, the communication quality of other access nodes is detected, and the WiFi antenna will continue to work normally, but may be interfered by the target antenna.
[0056] 1. Free sending and receiving method
[0057] Optionally, in some possible implementations of the present application, the operating frequency of the WiFi antenna is the same as or different from the operating frequency of the target antenna; and detecting the communication quality of at least one access node through the target antenna may include:
[0058] Scanning WiFi access nodes to obtain a received signal strength indication of at least one access node;
[0059] When the received signal strength indication of the current access node is greater than the first signal strength threshold and the received signal strength indication of the second target access node is greater than the first signal strength threshold, access the second target access node and detect the communication quality of the second target access node through the target antenna, and the at least one access node includes the current access node and the second target access node.
[0060] Exemplarily, the second target access node may be any access node among at least one access node. When the received signal strength indications of the current access node (Current AP) and a certain access node (APx) are both greater than the first signal strength threshold A1, it indicates that both the Current AP and APx are strong signals, and it can be determined that the mutual interference between the WiFi antenna (e.g., ANT0+ANT1) and the target antenna (e.g., ANT2) is lower than the influence of environmental noise. At this time, simultaneous transmission and reception control may not be performed, that is, the free transmission and reception (Free Run) method is used, and the WiFi antenna and the target antenna work independently according to their respective transmission and reception timings.
[0061] 2. Simultaneous control method
[0062] Optionally, in some possible implementations of the present application, the operating frequency of the WiFi antenna is the same as or different from the operating frequency of the target antenna; detecting the communication quality of at least one access node through the target antenna may include: performing WiFi access node scanning to obtain a received signal strength indication of at least one access node; when the received signal strength indication of the current access node is less than or equal to a second signal strength threshold, and the received signal strength indication of the second target access node is greater than the first signal strength threshold, accessing the second target access node, and detecting the communication quality of the second target access node through the target antenna according to a co-transmission control method, the first signal strength threshold is greater than the second signal strength threshold; wherein the co-transmission control method is that the target antenna is also in a signal sending state for at least part of the duration during which the WiFi antenna is in a signal sending state, the second target access node is the same as or different from the first target access node, and the at least one access node includes the current access node and the second target access node.
[0063] Exemplarily, the second target access node may be any access node among at least one access node. The received signal strength indication of the current access node (Current AP) is less than or equal to the second signal strength threshold value A2, and the received signal strength indication of a certain access node (APx) is greater than the first signal strength threshold value A1, indicating that the Current AP is a weak signal and APx is a strong signal. At this time, it can be determined that the strong signal scene interference of the WiFi antenna (e.g., ANT0+ANT1) to the target antenna (e.g., ANT2) is relatively weak, so the reception (RX) of the target antenna (e.g., ANT2) can be free reception (Free run), and the weak signal scene interference of the target antenna (e.g., ANT2) to the WiFi antenna (e.g., ANT0+ANT1) is relatively strong, so it is necessary to perform simultaneous transmission control on the transmission (TX) of the target antenna (e.g., ANT2). When using the simultaneous transmission control method, the WiFi antenna is in the signal transmission period, and the target antenna also needs to send a signal during the WiFi antenna signal transmission period to detect the communication quality of a certain access node (APx). Generally speaking, the target antenna has a signal transmission period shorter than the WiFi antenna, so when the WiFi antenna's signal transmission period ends, the target antenna's signal will be completely transmitted.
[0064] Optionally, in some possible implementations, detecting the communication quality of the second target access node according to the simultaneous transmission control method may include: obtaining the transmission timing of the WiFi antenna; and detecting the communication quality of the second target access node according to the transmission timing of the WiFi antenna.
[0065] Exemplarily, the transmission timing of the WiFi antenna (e.g., ANT0+ANT1) can be synchronized to the controller through the WiFi system on chip (SoC), and the controller controls the target antenna (e.g., ANT2), and detects the communication quality of the second target access node according to the transmission timing of the WiFi antenna, thereby improving the feasibility of the solution.
[0066] 3. Same-acceptance control method
[0067] Optionally, in some possible implementations of the present application, the operating frequency of the WiFi antenna is the same as or different from the operating frequency of the target antenna; detecting the communication quality of at least one access node through the target antenna may include: performing a WiFi access node scan to obtain a received signal strength indication of at least one access node; when the received signal strength indication of the current access node is greater than a first signal strength threshold and the received signal strength indication of the second target access node is less than or equal to a second signal strength threshold, accessing the second target access node, and detecting the communication quality of the second target access node through the target antenna according to a simultaneous reception control method, the first signal strength threshold being greater than the second signal strength threshold; wherein the simultaneous reception control method is that the target antenna is also in a received signal state for at least part of the duration during which the WiFi antenna is in a received signal state, the second target access node is the same as or different from the first target access node, and the at least one access node includes the current access node and the second target access node.
[0068] Exemplarily, the second target access node may be any access node among at least one access node. The received signal strength indication of the current access node (Current AP) is greater than the first signal strength threshold value A1, and the received signal strength indication of a certain access node (APx) is less than or equal to the second signal strength threshold value A2, indicating that the Current AP is a strong signal and APx is a weak signal. At this time, it can be determined that the strong signal scene interference of the WiFi antenna (e.g., ANT0+ANT1) to the target antenna (e.g., ANT2) is relatively strong, so the reception (RX) of the target antenna (e.g., ANT2) is subjected to simultaneous reception control, and the weak signal scene interference of the target antenna (e.g., ANT2) to the WiFi antenna (e.g., ANT0+ANT1) is relatively weak, so the transmission (TX) to the target antenna (e.g., ANT2) can be free transmission (Free run). When using the simultaneous reception control method, the WiFi antenna is in the reception signal cycle, and the target antenna also needs to receive the signal within the WiFi antenna reception signal cycle to detect the communication quality of a certain access node (APx). Generally speaking, the target antenna reception signal cycle is less than the WiFi antenna reception signal cycle, so at the end of the WiFi antenna reception signal cycle, the signal of the target antenna will be received.
[0069] Optionally, in some possible implementations, detecting the communication quality of the second target access node according to the reception control method may include: acquiring the reception timing of the WiFi antenna; and detecting the communication quality of the second target access node according to the reception timing of the WiFi antenna.
[0070] Exemplarily, the receiving timing of the WiFi antenna (e.g., ANT0+ANT1) can be synchronized to the controller through the WiFi system on chip (SoC), and the controller controls the target antenna (e.g., ANT2), and detects the communication quality of the second target access node according to the receiving timing of the WiFi antenna, thereby improving the feasibility of the solution.
[0071] In the above technical solution, according to the above free transmission and reception method, the same transmission control method, and the same reception control method, the terminal device can control the channels of the WiFi antenna and the target antenna according to the actual situation, and can work at the same frequency or at different frequencies. The interference problem caused by the target antenna in the roaming scene is avoided, so that the working frequency of the target antenna is not limited by the working frequency of the WiFi antenna, making the seamless roaming solution more practical, and it is expected that the delay of the seamless roaming scene can be reduced a lot. For example, it is reduced from 200s to 30ms, which improves the trigger rate of the seamless roaming function.
[0072] 302. Switch the current access node to a first target access node, where the communication quality of the first target access node is greater than the communication quality of the current access node, and the adjacent access nodes include the first target access node.
[0073] Because the communication quality of the first target access node is greater than the communication quality of the current access node of the terminal device, the communication quality of the terminal device can be improved after the current access node is switched to the first target access node.
[0074] Optionally, in some possible implementations of the present application, the quality score of the first target access node is greater than the quality score of the current access node of the terminal device.
[0075] Exemplarily, the communication quality of the access node can be characterized by a quality score, combined with Figure 2 The terminal device shown includes a schematic diagram of a target antenna and a WiFi antenna. The WiFi roaming solution in this application is to add an additional ANT2 channel on the basis of the two WiFi MIMO channels (ANT0 and ANT1) for separate scanning. The surrounding access nodes AP1, AP2, AP3... are scanned through the independent ANT2 channel, and the AP communication quality is pre-connected and evaluated.
[0076] In this technical solution, adjacent access nodes AP are scored, such as X, Y, Z... and sorted, for example, the highest score such as Y is selected, corresponding to AP2; the ANT1+ANT2 MIMO on the terminal device is switched from the Current AP to AP2 whose quality score is greater than the Current AP, thereby achieving seamless roaming; avoiding the existing technical solution of roaming and switching to an AP with worse communication quality, resulting in disconnection and the need to re-roam.
[0077] Optionally, in some possible implementations of the present application, switching the current access node to the first target access node may include: when the communication quality of the current access node is less than or equal to a first quality threshold, switching the current access node to the first target access node.
[0078] In the present technical solution, when the communication quality of the current access node is less than or equal to the first quality threshold, it means that the communication quality of the current access node is relatively poor, and the current access node can be switched to the first target access node. The communication quality of the first target access node is greater than the communication quality of the current access node. Therefore, the communication quality of the terminal device can be guaranteed to avoid roaming switching to an access node with worse communication quality, resulting in disconnection, freeze, or the need to re-roam.
[0079] Optionally, in some possible implementations of the present application, switching the current access node to the first target access node may include: switching the current access node to the first target access node when the quality score of the current access node is less than or equal to a first score threshold.
[0080] Exemplarily, adjacent access nodes AP are scored, such as X, Y, Z... and sorted, for example, the highest score such as Y is selected, corresponding to AP2; when the quality score of the current access node (Current AP) is lower than the first score threshold B1, roaming is triggered, and the ANT1+ANT2 MIMO on the terminal device is switched from the Current AP to AP2 whose quality score is greater than the Current AP, thereby achieving seamless roaming.
[0081] In the present technical solution, when the quality score of the current access node is less than or equal to the first score threshold, it means that the communication quality of the current access node is relatively poor, and the current access node can be switched to the first target access node. The quality score of the first target access node is greater than the quality score of the current access node. Therefore, the communication quality of the terminal device can be guaranteed to avoid roaming and switching to an access node with worse communication quality, resulting in disconnection, freeze, or the need to re-roam.
[0082] Optionally, in some possible implementations of the present application, the communication quality of the first target access node is greater than a second quality threshold, and the second quality threshold is greater than the first quality threshold.
[0083] In the present technical solution, the communication quality of the first target access node is not only greater than the communication quality of the current access node, but also greater than the second quality threshold, and the second quality threshold is greater than the first quality threshold. Therefore, the communication quality of the terminal device can be guaranteed to a large extent; it avoids the situation where the communication quality of the selected first target access node is only slightly higher than the communication quality of the current access node, and when the terminal device switches to the first target access node for communication, the overall communication quality is not greatly improved.
[0084] Optionally, in some possible implementations of the present application, the quality score of the first target access node is greater than a second score threshold, and the second score threshold is greater than the first score threshold.
[0085] Exemplarily, adjacent access nodes AP are scored, such as X, Y, Z... and sorted, for example, the highest score such as Y is selected, corresponding to AP2; when the quality score of the current access node (Current AP) is lower than the first score threshold B1, roaming is triggered, and the ANT1+ANT2 MIMO on the terminal device is switched from the Current AP to AP2 whose quality score is greater than the second score threshold B2, thereby achieving seamless roaming, and the second score threshold B2 is greater than the first score threshold B1.
[0086] In the present technical solution, the quality score of the first target access node is not only greater than the quality score of the current access node, but also greater than the second score threshold, and the second score threshold is greater than the first score threshold. Therefore, the communication quality of the terminal device can be guaranteed to a large extent; it avoids the situation where the quality score of the selected first target access node is only slightly higher than the quality score of the current access node, and when the terminal device switches to the first target access node for communication, the overall communication quality is not greatly improved.
[0087] Optionally, in some possible implementations of the present application, the communication quality of the first target access node is optimal.
[0088] Exemplarily, adjacent access nodes AP are scored, such as X, Y, Z... and sorted, for example, the highest score such as Y is selected, corresponding to AP2; when the quality score of the current access node (Current AP) is lower than the first score threshold B1, roaming is triggered, and the ANT1+ANT2 MIMO on the terminal device is switched from the Current AP to the AP2 with the highest quality score, thereby achieving seamless roaming.
[0089] In the present technical solution, the communication quality of the first target access node is the best, which means that the first target access node is an access node with the best communication quality among at least one access node. At this time, if the terminal device switches to the first target access node, the communication quality is theoretically the best, so the communication quality of the terminal device can be guaranteed to the greatest extent.
[0090] Optionally, in some possible implementations of the present application, the quality score of the first target access node is the largest.
[0091] In this technical solution, the quality score of the first target access node is the largest, indicating that the first target access node is the access node with the highest communication quality among at least one access node. At this time, if the terminal device switches to the first target access node, the communication quality is theoretically the best, so the communication quality of the terminal device can be guaranteed to the greatest extent.
[0092] 303. Communicate through the first target access node.
[0093] After the terminal device switches from the current access node to the first target access node, it can communicate through the first target access node. At the same time, the terminal device can also scan and pre-connect through the target antenna to detect the communication quality of the surrounding access nodes. As the terminal device moves, when the communication quality of the first target access node decreases, if there are access nodes with higher communication quality than the first target access node among the surrounding access nodes, then the terminal device can switch to an access node with higher communication quality than the first target access node for communication.
[0094] Optionally, in some possible implementations, the operating frequency band of the WiFi antenna includes a 2.4G frequency band, or a 5G frequency band.
[0095] Optionally, in some possible implementations, when the working frequency band of the WiFi antenna includes a 2.4G frequency band, the working frequency band of the target antenna includes a 2.4G frequency band; when the working frequency band of the WiFi antenna includes a 5G frequency band, the working frequency band of the target antenna includes a 5G frequency band.
[0096] Optionally, in some possible implementations, the method is applied to a WiFi roaming scenario, or a scenario where multiple IoT devices are connected.
[0097] This technical solution is applicable to roaming scenarios in 2.4G band or 5G band, or scenarios such as multi-device connection in IoT. Using an independent target antenna (such as ANT2) through a co-transmission control method, or a co-reception control method, or a free transmission and reception method can avoid the problem of co-frequency interference and improve the communication quality of the terminal device during WiFi roaming or in scenarios of multi-device connection in IoT.
[0098] In an embodiment of the present application, the communication quality of at least one access node is detected by the target antenna, the at least one access node is the current access node of the terminal device, and / or, the adjacent access node of the current access node, the target antenna is different from the WiFi antenna in the terminal device; the current access node is switched to a first target access node, the communication quality of the first target access node is greater than the communication quality of the current access node, and the adjacent access nodes include the first target access node; communication is performed through the first target access node. The communication quality of at least one access node can be detected by an independent target antenna, and communication can be switched to the first target access node with better communication quality, so as to avoid roaming and switching to an access node with worse communication quality, resulting in disconnection, freezing, or the need to re-roam. Furthermore, in the process of detecting the communication quality of at least one access node through the target antenna, the target antenna and the WiFi antenna work at the same time, which may cause mutual interference. Therefore, the present application proposes a free transmission and reception method, a simultaneous transmission control method, or a simultaneous reception control method, a different frequency method. Different methods can be selected according to different scenarios. The WiFi antenna (for example, ANT0+ANT1) and the target antenna (for example, ANT2) can work at the same frequency, breaking through the limitation of frequency division coexistence. The target antenna (for example, ANT2) can always be used in the seamless roaming scenario for scanning and pre-connection evaluation of the communication quality of adjacent APs, thereby improving the trigger rate of seamless roaming.
[0099] like Figure 4 FIG. 1 is a schematic diagram of an embodiment of a switching device for a WiFi access node in an embodiment of the present application. The device is applied to a terminal device, and the terminal device includes a target antenna and a WiFi antenna. The device includes:
[0100] A detection module 401 is configured to detect the communication quality of at least one access node through the target antenna, where the at least one access node is a current access node of the terminal device and / or an adjacent access node of the current access node, and the target antenna is different from the WiFi antenna;
[0101] A switching module 402 is configured to switch the current access node to a first target access node, wherein the communication quality of the first target access node is greater than the communication quality of the current access node, and the adjacent access node includes the first target access node;
[0102] The communication module 403 is configured to communicate via the first target access node.
[0103] Optionally, in some possible implementations, the operating frequency of the WiFi antenna is the same as or different from the operating frequency of the target antenna;
[0104] The detection module 401 is specifically used to scan WiFi access nodes and obtain a received signal strength indication of at least one access node; when the received signal strength indication of the current access node is greater than a first signal strength threshold and the received signal strength indication of the second target access node is greater than the first signal strength threshold, access the second target access node, and detect the communication quality of the second target access node through the target antenna, wherein the at least one access node includes the current access node and the second target access node.
[0105] Optionally, in some possible implementations, the operating frequency of the WiFi antenna is the same as or different from the operating frequency of the target antenna;
[0106] The detection module 401 is specifically used to scan the WiFi access nodes and obtain the received signal strength indication of at least one access node; when the received signal strength indication of the current access node is less than or equal to the second signal strength threshold, and the received signal strength indication of the second target access node is greater than the first signal strength threshold, access the second target access node, and detect the communication quality of the second target access node through the target antenna according to the co-transmission control method, and the first signal strength threshold is greater than the second signal strength threshold; wherein the co-transmission control method is that the target antenna is also in the signal transmission state during at least part of the time duration during which the WiFi antenna is in the signal transmission state, the second target access node is the same as or different from the first target access node, and the at least one access node includes the current access node and the second target access node.
[0107] Optionally, in some possible implementations, the operating frequency of the WiFi antenna is the same as or different from the operating frequency of the target antenna;
[0108] The detection module 401 is specifically used to scan the WiFi access nodes and obtain the received signal strength indication of at least one access node; when the received signal strength indication of the current access node is greater than the first signal strength threshold and the received signal strength indication of the second target access node is less than or equal to the second signal strength threshold, access the second target access node, and detect the communication quality of the second target access node through the target antenna according to the simultaneous reception control method, and the first signal strength threshold is greater than the second signal strength threshold; wherein the simultaneous reception control method is that the target antenna is also in the received signal state for at least part of the time duration during which the WiFi antenna is in the received signal state, the second target access node is the same as or different from the first target access node, and the at least one access node includes the current access node and the second target access node.
[0109] Optionally, in some possible implementations, an operating frequency of the WiFi antenna is different from an operating frequency of the target antenna.
[0110] Optionally, in some possible implementations, the detection module 401 is specifically used to access the second target access node when the frequency difference between the operating frequency of the current access node and the operating frequency of the second target access node is greater than a frequency threshold, and detect the communication quality of the second target access node through the target antenna, and the at least one access node includes the current access node and the second target access node.
[0111] Optionally, in some possible implementations, the switching module 402 is specifically configured to switch the current access node to a first target access node when the communication quality of the current access node is less than or equal to a first quality threshold.
[0112] Optionally, in some possible implementations, the communication quality of the first target access node is greater than a second quality threshold, and the second quality threshold is greater than the first quality threshold.
[0113] Optionally, in some possible implementations, the communication quality of the first target access node is optimal.
[0114] like Figure 5 As shown, it is a schematic diagram of an embodiment of a terminal device in an embodiment of the present application, which may include: Figure 4 The switching device of the WiFi access node is shown.
[0115] like Figure 6 FIG. 1 is a schematic diagram of another embodiment of a terminal device in an embodiment of the present application. Figure 6 A detailed introduction to the various components of the mobile phone in the terminal device:
[0116] The RF circuit 610 can be used for receiving and sending signals during the process of sending and receiving information or making calls. In particular, after receiving the downlink information of the base station, it is sent to the processor 680 for processing; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit 610 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, etc. In addition, the RF circuit 610 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to the Global System of Mobile communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (SMS), etc.
[0117] The memory 620 can be used to store software programs and modules. The processor 680 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 620. The memory 620 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 620 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0118] The input unit 630 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile phone. Specifically, the input unit 630 may include a touch panel 631 and other input devices 632. The touch panel 631, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 631 or near the touch panel 631 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel 631 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 680, and can receive and execute commands sent by the processor 680. In addition, the touch panel 631 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 631, the input unit 630 may also include other input devices 632. Specifically, the other input devices 632 may include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, etc.
[0119] The display unit 640 can be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 640 may include a display panel 641. Optionally, the display panel 641 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch panel 631 may cover the display panel 641. When the touch panel 631 detects a touch operation on or near it, it is transmitted to the processor 680 to determine the type of touch event. Subsequently, the processor 680 provides a corresponding visual output on the display panel 641 according to the type of touch event. Although in Figure 6 In the embodiment, the touch panel 631 and the display panel 641 are used as two independent components to realize the input and output functions of the mobile phone, but in some embodiments, the touch panel 631 and the display panel 641 can be integrated to realize the input and output functions of the mobile phone.
[0120] The mobile phone may also include at least one sensor 650, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 641 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 641 and / or the backlight when the mobile phone is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the mobile phone, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
[0121] The audio circuit 660, the speaker 661, and the microphone 662 can provide an audio interface between the user and the mobile phone. The audio circuit 660 can transmit the received audio data to the speaker 661 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 662 converts the collected sound signal into an electrical signal, which is received by the audio circuit 660 and converted into audio data, and then the audio data is output to the processor 680 for processing, and then sent to another mobile phone through the RF circuit 610, or the audio data is output to the memory 620 for further processing.
[0122] Wi-Fi is a short-range wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages and access streaming media through the Wi-Fi module 670, which provides users with wireless broadband Internet access. Figure 6 A Wi-Fi module 670 is shown, but it is understandable that it is not an essential component of the mobile phone and can be omitted as needed without changing the essence of the invention.
[0123] The processor 680 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 620, and calling data stored in the memory 620, it executes various functions of the mobile phone and processes data, thereby monitoring the mobile phone as a whole. Optionally, the processor 680 may include one or more processing units; preferably, the processor 680 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 680.
[0124] The mobile phone also includes a power supply 690 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 680 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions.
[0125] Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be described in detail here.
[0126] In an embodiment of the present application, the terminal device includes a target antenna and a WiFi antenna, and the processor 680 is used to detect the communication quality of at least one access node through the target antenna, the at least one access node is the current access node of the terminal device, and / or, an adjacent access node of the current access node, and the target antenna is different from the WiFi antenna; the current access node is switched to a first target access node, the communication quality of the first target access node is greater than the communication quality of the current access node, and the adjacent access node includes the first target access node; and communication is performed through the first target access node.
[0127] Optionally, in some implementations of the present application, the operating frequency of the WiFi antenna is the same as or different from the operating frequency of the target antenna;
[0128] Processor 680 is specifically used to scan WiFi access nodes and obtain a received signal strength indication of at least one access node; when the received signal strength indication of the current access node is greater than a first signal strength threshold and the received signal strength indication of the second target access node is greater than the first signal strength threshold, access the second target access node, and detect the communication quality of the second target access node through the target antenna, wherein the at least one access node includes the current access node and the second target access node.
[0129] Optionally, in some implementations of the present application, the operating frequency of the WiFi antenna is the same as or different from the operating frequency of the target antenna;
[0130] Processor 680 is specifically used to scan WiFi access nodes and obtain a received signal strength indication of at least one access node; when the received signal strength indication of the current access node is less than or equal to a second signal strength threshold and the received signal strength indication of the second target access node is greater than the first signal strength threshold, access the second target access node, and detect the communication quality of the second target access node through the target antenna according to the co-transmission control method, and the first signal strength threshold is greater than the second signal strength threshold; wherein the co-transmission control method is that the target antenna is also in a signal transmission state during at least part of the time duration during which the WiFi antenna is in a signal transmission state, the second target access node is the same as or different from the first target access node, and the at least one access node includes the current access node and the second target access node.
[0131] Optionally, in some implementations of the present application, the operating frequency of the WiFi antenna is the same as or different from the operating frequency of the target antenna;
[0132] Processor 680 is specifically used to scan WiFi access nodes and obtain a received signal strength indication of at least one access node; when the received signal strength indication of the current access node is greater than the first signal strength threshold and the received signal strength indication of the second target access node is less than or equal to the second signal strength threshold, access the second target access node, and detect the communication quality of the second target access node through the target antenna according to the simultaneous reception control method, and the first signal strength threshold is greater than the second signal strength threshold; wherein the simultaneous reception control method is that the target antenna is also in the received signal state for at least part of the time duration during which the WiFi antenna is in the received signal state, the second target access node is the same as or different from the first target access node, and the at least one access node includes the current access node and the second target access node.
[0133] Optionally, in some implementations of the present application, an operating frequency of the WiFi antenna is different from an operating frequency of the target antenna.
[0134] Optionally, in some implementations of the present application, the processor 680 is specifically used to access the second target access node when the frequency difference between the operating frequency of the current access node and the operating frequency of the second target access node is greater than a frequency threshold, and detect the communication quality of the second target access node through the target antenna, and the at least one access node includes the current access node and the second target access node.
[0135] Optionally, in some implementations of the present application, the processor 680 is specifically configured to switch the current access node to a first target access node when the communication quality of the current access node is less than or equal to a first quality threshold.
[0136] Optionally, in some implementations of the present application, the communication quality of the first target access node is greater than a second quality threshold, and the second quality threshold is greater than the first quality threshold.
[0137] Optionally, in some implementations of the present application, the communication quality of the first target access node is optimal.
[0138] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a server, data center, etc. that contains one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).
[0139] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0140] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0141] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0142] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0143] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0144] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for switching a WiFi access node, characterized in that: The method is applied to a terminal device, the terminal device includes a target antenna and a WiFi antenna, and the method includes: Detecting the communication quality of at least one access node through the target antenna, the at least one access node is a current access node of the terminal device and / or an adjacent access node of the current access node, and the target antenna is different from the WiFi antenna; Switching the current access node to a first target access node, wherein the communication quality of the first target access node is greater than the communication quality of the current access node, and the adjacent access nodes include the first target access node; Communicate via the first target access node.
2. The method according to claim 1, characterized in that The operating frequency of the WiFi antenna is the same as or different from the operating frequency of the target antenna; and detecting the communication quality of at least one access node through the target antenna includes: Scanning WiFi access nodes to obtain a received signal strength indication of at least one access node; When the received signal strength indication of the current access node is greater than the first signal strength threshold and the received signal strength indication of the second target access node is greater than the first signal strength threshold, access the second target access node and detect the communication quality of the second target access node through the target antenna, and the at least one access node includes the current access node and the second target access node.
3. The method according to claim 1, characterized in that The operating frequency of the WiFi antenna is the same as or different from the operating frequency of the target antenna; and detecting the communication quality of at least one access node through the target antenna includes: Scanning WiFi access nodes to obtain a received signal strength indication of at least one access node; When the received signal strength indication of the current access node is less than or equal to the second signal strength threshold, and the received signal strength indication of the second target access node is greater than the first signal strength threshold, access the second target access node, and detect the communication quality of the second target access node through the target antenna according to the co-transmission control method, and the first signal strength threshold is greater than the second signal strength threshold; Among them, the simultaneous transmission control method is that during at least part of the time when the WiFi antenna is in the signal sending state, the target antenna is also in the signal sending state, the second target access node is the same or different from the first target access node, and the at least one access node includes the current access node and the second target access node.
4. The method according to claim 1, characterized in that: The operating frequency of the WiFi antenna is the same as or different from the operating frequency of the target antenna; and detecting the communication quality of at least one access node through the target antenna includes: Scanning WiFi access nodes to obtain a received signal strength indication of at least one access node; When the received signal strength indication of the current access node is greater than the first signal strength threshold and the received signal strength indication of the second target access node is less than or equal to the second signal strength threshold, access the second target access node, and detect the communication quality of the second target access node through the target antenna according to the receiving control method, and the first signal strength threshold is greater than the second signal strength threshold; Among them, the simultaneous reception control method is that during at least part of the time period when the WiFi antenna is in the signal receiving state, the target antenna is also in the signal receiving state, the second target access node is the same or different from the first target access node, and the at least one access node includes the current access node and the second target access node.
5. The method according to claim 1, characterized in that The operating frequency of the WiFi antenna is different from the operating frequency of the target antenna.
6. The method according to claim 5, characterized in that The detecting the communication quality of at least one access node through the target antenna comprises: When the frequency difference between the working frequency of the current access node and the working frequency of the second target access node is greater than a frequency threshold, the second target access node is accessed, and the communication quality of the second target access node is detected through the target antenna, and the at least one access node includes the current access node and the second target access node.
7. The method according to any one of claims 1 to 6, characterized in that The switching the current access node to the first target access node includes: When the communication quality of the current access node is less than or equal to a first quality threshold, the current access node is switched to a first target access node.
8. The method according to any one of claims 1 to 6, characterized in that The communication quality of the first target access node is greater than a second quality threshold, and the second quality threshold is greater than the first quality threshold.
9. The method according to any one of claims 1 to 6, characterized in that: The communication quality of the first target access node is optimal.
10. A switching device for a WiFi access node, characterized in that: The device is applied to a terminal device, the terminal device includes a target antenna and a WiFi antenna, and the device includes: A detection module, configured to detect the communication quality of at least one access node through the target antenna, wherein the at least one access node is a current access node of the terminal device and / or an adjacent access node of the current access node, and the target antenna is different from the WiFi antenna; A switching module, configured to switch the current access node to a first target access node, wherein the communication quality of the first target access node is greater than the communication quality of the current access node, and the adjacent access node includes the first target access node; A communication module is used to communicate through the first target access node.
11. A terminal device, characterized in that: include: A memory and a processor, and a transceiver, wherein the memory stores a computer program that can be run on the processor, and when the terminal device executes the program, the method according to any one of claims 1 to 9 is implemented.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.