Channel switching method and apparatus, terminal device, and storage medium

By using a second terminal to filter and pre-connect to the optimal wireless access point, the problem of high latency when the terminal switches between different channel wireless access points is solved, achieving fast switching and low latency.

CN116233948BActive Publication Date: 2025-11-25ZHEJIANG DAHUA TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211621512.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-16
Publication Date
2025-11-25
Estimated Expiration
2042-12-16

AI Technical Summary

Technical Problem

In existing technologies, the switching latency between different wireless access points is relatively high, making it impossible to achieve fast switching, which is a problem, especially in application scenarios with high latency requirements.

Method used

The second terminal obtains information on connectable wireless access points, selects the optimal target access point, and establishes a connection with it in advance. The first terminal switches through a virtual connection to avoid re-authentication and association.

Benefits of technology

It reduces channel switching latency, enables terminals to quickly switch between different channel wireless access points, and reduces data packet loss and retransmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116233948B_ABST
    Figure CN116233948B_ABST
Patent Text Reader

Abstract

The application relates to a channel switching method and device, a terminal device and a storage medium. The method is applied to a terminal device, the terminal device has a first terminal and a second terminal; the method comprises the following steps: when the signal strength of a wireless access point currently connected by the first terminal is smaller than a channel switching threshold, obtaining the information of connectable wireless access points by the second terminal; based on the terminal device, the second terminal is connected with a target wireless access point obtained through screening based on the information of the connectable wireless access points; based on the connection between the second terminal and the target wireless access point, the first terminal is disconnected with the currently connected wireless access point and connected with the target wireless access point. The second terminal is connected with the screened target wireless access point, so that the first terminal can directly perform channel switching through the second terminal, the time delay of channel switching is reduced, and the problem that the terminal cannot be quickly switched between different channel wireless access points is solved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of communication, and in particular to a channel switching method and device, a terminal device and a storage medium. BACKGROUND

[0002] At present, the wireless connection service of the local area network provided by WLAN (Wireless Local Access Network) has been widely applied in various public places, and in order to expand the coverage of the network, the number of APs (Access Points) in the network is usually increased to form an ESS (Extended Service Set). Within the coverage of the same ESS, a STA (Station) can be associated with different APs to access the network service through WLAN and complete the roaming switching process.

[0003] In actual application, when the terminal switches between different channel APs, the terminal disconnects the connection with the current AP and then connects to the next AP. Such a channel switching method causes high data delay of the terminal in the roaming process between APs, and especially in some application scenarios with high delay requirements, the terminal cannot be quickly switched between different channel APs.

[0004] At present, there is no effective solution to the problem that the terminal cannot be quickly switched between different channel APs in the related art. SUMMARY

[0005] The present application provides a channel switching method, device, terminal device and storage medium to solve the problem that the terminal cannot be quickly switched between different channel APs in the related art.

[0006] In a first aspect, the present application provides a channel switching method applied to a terminal device, wherein the terminal device has a first terminal and a second terminal. The channel switching method comprises the following steps.

[0007] When the signal strength of the wireless access point currently connected by the first terminal is less than a channel switching threshold, the second terminal acquires information of connectable wireless access points.

[0008] Based on the terminal device, the second terminal is connected to a target wireless access point selected based on the information of the connectable wireless access points.

[0009] Based on the connection between the second terminal and the target wireless access point, the first terminal is disconnected from the wireless access point currently connected and connected to the target wireless access point.

[0010] In some embodiments, the obtaining, by the second terminal, the information of the connectable wireless access points comprises:

[0011] The second terminal scans all channels and listens to the beacon frames sent by the wireless access points on each channel to obtain the information of the connectable wireless access points.

[0012] In some embodiments, the beacon frame sent by the wireless access point comprises a field of interference condition in the corresponding channel.

[0013] In some embodiments, the establishing, by the second terminal, a connection with the target wireless access point obtained by the screening comprises:

[0014] According to the information of the connectable wireless access points and the information of the terminal device, a metric value of the connectable wireless access points is calculated.

[0015] According to the metric value and the bandwidth requirement, a wireless access point with the minimum metric value is selected from the connectable wireless access points as the target wireless access point.

[0016] The second terminal is authenticated and associated with the target wireless access point, and a connection is established.

[0017] In some embodiments, the calculating, according to the information of the connectable wireless access points and the information of the terminal device, the metric value of the connectable wireless access points comprises:

[0018] The signal strength and the interference value in the information of the connectable wireless access points and the interference value of the terminal device are weighted to calculate the metric value.

[0019] In some embodiments, the disconnecting, by the second terminal, the first terminal from the currently connected wireless access point and switching the first terminal to connect with the target wireless access point comprises:

[0020] The second terminal establishes a virtual connection between the first terminal and the target wireless access point.

[0021] After the first terminal is disconnected from the currently connected wireless access point, the first terminal is switched to connect with the target wireless access point through the virtual connection, and the connection between the second terminal and the target wireless access point is disconnected.

[0022] In some embodiments, after the first terminal establishes a virtual connection with the target wireless access point, the method further comprises:

[0023] suspending data interaction with the currently connected wireless access point and storing the downlink data in the network hub of all wireless access points;

[0024] requesting the downlink data from the network hub until the first terminal switches to connect with the target wireless access point.

[0025] In a second aspect, a channel switching device is provided in the embodiment, which is applied to a terminal device having a first terminal and a second terminal. The channel switching device comprises an acquisition module, a screening module and a switching module.

[0026] The acquisition module is configured to acquire information of connectable wireless access points through the second terminal when the signal strength of the wireless access point currently connected by the first terminal is less than a channel switching threshold.

[0027] The screening module is configured to screen the second terminal based on the terminal device and the information of the connectable wireless access points, and establish a connection between the second terminal and a target wireless access point obtained through the screening.

[0028] The switching module is configured to disconnect the first terminal from the currently connected wireless access point and switch to connect with the target wireless access point based on the connection between the second terminal and the target wireless access point.

[0029] In a third aspect, a terminal device is provided in the embodiment, which comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the channel switching method of the first aspect is implemented.

[0030] In a fourth aspect, a storage medium is provided in the embodiment, which stores a computer program executable by a processor to implement the channel switching method of the first aspect.

[0031] Compared with the related art, the channel switching method, device, terminal equipment and storage medium provided in the embodiment are applied to a terminal equipment having a first terminal and a second terminal. The method comprises: when the signal strength of a wireless access point currently connected by the first terminal is less than a channel switching threshold, obtaining information of connectable wireless access points by the second terminal; based on the terminal equipment, screening the connectable wireless access points based on the information, and establishing a connection between the second terminal and a target wireless access point obtained by the screening; and based on the connection between the second terminal and the target wireless access point, disconnecting the first terminal from the currently connected wireless access point and switching to the target wireless access point. The first terminal can perform channel switching through the second terminal, without authentication and association with the target wireless access point, thereby reducing the time delay of channel switching and solving the problem that the terminal cannot be quickly switched between different channel wireless access points.

[0032] The details of one or more embodiments of the present application are presented in the following drawings and description to make other features, objects and advantages of the present application more apparent. BRIEF DESCRIPTION OF DRAWINGS

[0033] The accompanying drawings, which are included to provide a further understanding of the present application, constitute a part of the present application and illustrate the illustrative embodiments of the present application and their description serves to explain the present application, and do not constitute an improper limitation on the present application. In the drawings:

[0034] Figure 1 Fig. 1 is a hardware structure block diagram of a terminal of the channel switching method in an embodiment;

[0035] Figure 2 Fig. 2 is a flowchart of the channel switching method in an embodiment;

[0036] Figure 3 Fig. 3 is an architecture schematic diagram of the channel switching method applied to a terminal equipment in an embodiment;

[0037] Figure 4 Fig. 4 is a flowchart of the channel switching method in a preferred embodiment;

[0038] Figure 5 Fig. 5 is a structure block diagram of the channel switching device in an embodiment.

[0039] In the drawings: 102, processor; 104, memory; 106, transmission equipment; 108, input and output equipment; 10, obtaining module; 20, screening module; 30, switching module. DETAILED DESCRIPTION

[0040] In order to clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and explained below in conjunction with the accompanying drawings and embodiments.

[0041] Unless otherwise defined, technical terms or scientific terms used in the present application shall have the general meaning understood by a person skilled in the art to which the present application belongs. In the present application, the terms "one", "a", "an", "the", "these", and similar words do not represent a quantitative limitation, but can be singular or plural. In the present application, the terms "include", "contain", "have" and any variants thereof are intended to cover non-exclusive inclusion; for example, a process, method and system, product or device containing a series of steps or modules (units) are not limited to the listed steps or modules (units), but can include steps or modules (units) not listed, or can include other steps or modules (units) inherent to the process, method, product or device. In the present application, the terms "connected", "connected", "coupled" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. In the present application, "multiple" means two or more. The association between the associated objects is described by the term "and / or", which means that there can be three relationships, for example, "A and / or B" can mean that A exists alone, A and B exist together, and B exists alone. In general, the character " / " represents an "or" relationship between the objects before and after it. In the present application, the terms "first", "second", "third" and the like are only used to distinguish similar objects, and do not represent a specific order for the objects.

[0042] The method embodiments provided in the present embodiment can be executed in a terminal, a computer or a similar computing device. For example, the method embodiments are executed on a terminal, Figure 1 is a hardware structure diagram of the terminal of the channel switching method of the present embodiment. As shown in Figure 1 , the terminal can include one or more (only one is shown in Figure 1 ) processor 102 and memory 104 for storing data, wherein the processor 102 can include but is not limited to processing devices such as microprocessor MCU or programmable logic device FPGA. The above terminal can also include a transmission device 106 for communication function and an input / output device 108. Those skilled in the art can understand that Figure 1 The structure shown is only schematic, which does not limit the structure of the above terminal. For example, the terminal can include more or fewer components than Figure 1 shown, or have a different configuration from Figure 1 shown.

[0043] The memory 104 can be used to store computer programs, such as software programs of application software and modules, such as a computer program corresponding to the channel switching method in the embodiment. The processor 102 can execute various functional applications and data processing, i.e., implement the method described above, by running the computer program stored in the memory 104. The memory 104 can include a high-speed random access memory, and can further include a non-volatile memory, such as one or more magnetic storage devices, a flash memory, or other non-volatile solid-state memories. In some examples, the memory 104 can further include a memory remotely arranged with respect to the processor 102, which can be connected to the terminal through a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0044] The transmission device 106 is configured to receive or send data via a network. The network includes a wireless network provided by a communication provider of the terminal. In an example, the transmission device 106 includes a network interface controller (NIC) which can be connected to other network devices through a base station to communicate with the Internet. In an example, the transmission device 106 can be a radio frequency (RF) module configured to communicate with the Internet in a wireless manner.

[0045] At present, a wireless connection service of a local area network provided by a WLAN has been widely applied to various public places. In order to expand the coverage of the network, the number of APs (Access Points) in the network is usually increased to form an ESS (Extended Service Set). Within the coverage of the same ESS, a STA (Station) can be associated with different APs to obtain network services through the WLAN and complete a roaming switching process.

[0046] In actual applications, when the terminal switches between different channel APs, the terminal disconnects the connection with the current AP and then connects to the next AP. Such a channel switching method causes a high data delay of the terminal during roaming between APs, and especially in some application scenarios with high delay requirements, the terminal cannot be quickly switched between different channel wireless access points.

[0047] To solve the above problems, a channel switching method, device, terminal equipment and storage medium are provided in the following embodiments, which can filter out a target wireless access point when channel switching is needed, and establish a connection with the target wireless access point in advance through a second terminal, so that the first terminal can perform channel switching through the second terminal without authentication and association with the target wireless access point, thereby reducing the time delay of channel switching and solving the problem of inability to quickly switch between different channel wireless access points.

[0048] A channel switching method is provided in the present embodiment, which is applied to terminal equipment, and the terminal equipment has a first terminal and a second terminal. The terminal equipment includes but is not limited to various user terminals such as smart phones, mobile multimedia and wireless robots, etc. The first terminal and the second terminal can be wireless terminal (STA) modules or other wireless communication modules in the terminal equipment, and the terminal equipment is a carrier device of the first terminal and the second terminal.

[0049] Figure 2 The channel switching method in the present embodiment is shown in the flowchart as Figure 2 The method includes the following steps:

[0050] Step S210, when the signal strength of the wireless access point currently connected by the first terminal is less than a channel switching threshold, obtaining information of connectable wireless access points through the second terminal.

[0051] Specifically, the terminal equipment accesses a wireless access point (AP) through the wireless terminal after verification, and the AP is the currently connected wireless access point. For example, during the movement of the terminal equipment, the signal of the currently connected wireless access point is weakened due to the distance or other factors. When the signal strength of the currently connected wireless access point is less than the channel switching threshold, the second terminal scans all channels to obtain the information of connectable wireless access points. The information of the connectable wireless access points includes the information of the interference in the current channel of the wireless access point.

[0052] Among one local area network, the connectable wireless access points include wireless access points of SSIDs (Service Set Identifier) that have been connected, which can include multiple SSIDs, and the SSIDs connected by the first terminal and the second terminal can be different.

[0053] Step S220, based on the terminal equipment, filtering the connectable wireless access points based on the information, and establishing a connection between the second terminal and the target wireless access point filtered out.

[0054] Specifically, according to the interference condition of the connectable wireless access points, the information of the terminal device and the information of the connectable wireless access points are comprehensively considered by a metric value algorithm, the optimal target wireless access point is selected from the connectable wireless access points, and the second terminal is authenticated and associated with the target wireless access point, and then the connection is established.

[0055] In step S230, based on the connection of the second terminal and the target wireless access point, the first terminal is disconnected from the currently connected wireless access point and switched to connect with the target wireless access point.

[0056] Specifically, after the second terminal accesses the target wireless access point, the first terminal is disconnected from the currently connected wireless access point, and then based on the connection of the second terminal and the target wireless access point, the first terminal establishes a virtual connection with the target wireless access point through the auxiliary network card, and then switches to connect with the target wireless access point and interacts with the target wireless access point.

[0057] The above steps, when the signal of the currently connected wireless access point becomes weak, the target wireless access point is selected, and the connection of the second terminal and the target wireless access point is established in advance, so that the first terminal establishes a virtual connection with the target wireless access point through the second terminal, and then can perform channel switching, so that scanning, authentication and association with the target wireless access point are not required during channel switching, the time delay of channel switching is reduced, and the problem that the terminal cannot quickly switch between different channel wireless access points is solved.

[0058] Further, in the embodiment, the information on both the terminal device and the wireless access point is considered when selecting the target wireless access point, and the optimal target wireless access point is selected comprehensively.

[0059] In some embodiments, the information of the connectable wireless access points obtained by the second terminal includes the following steps: scanning all channels by the second terminal, and listening to the beacon frames sent by the wireless access points of each channel to obtain the information of the connectable wireless access points. The beacon frame sent by the wireless access point includes a field corresponding to the interference condition of the channel.

[0060] Specifically, when scanning all channels, the second terminal can obtain the information of the connectable wireless access points by passively listening to the beacon frames (Beacon) sent by the wireless access points of each channel without actively sending probe request frames (Probe Request). Moreover, each wireless access point adds a field corresponding to the interference condition of the channel in the beacon frame, which includes information such as the remaining bandwidth, signal strength and interference value of the wireless access point.

[0061] The second terminal in the embodiment passively listens to the beacon frame sent by the wireless access point when scanning to obtain the information of the wireless access point, so the second terminal does not need to actively send a probe response frame, wireless interference is not increased, and the influence on the data interaction of the current terminal device and the wireless access point is reduced.

[0062] In some of the embodiments, the step S220 of screening the terminal device based on the information of the connectable wireless access point includes the following steps:

[0063] In step S221, the metric value of the connectable wireless access point is calculated based on the information of the terminal device and the information of the connectable wireless access point.

[0064] Specifically, the metric value of the connectable wireless access point is calculated by a pre-defined metric value algorithm, wherein the metric value is used to represent the wireless access point, and the smaller the metric value is, the smaller the interference is and the better the communication quality is.

[0065] Further, the signal strength and the interference value in the information of the connectable wireless access point are weighted and calculated with the interference value of the terminal device to obtain the metric value. Hereinafter, a specific calculation method of the metric value is given:

[0066] METRIC = (100-RSSI) * a + C1 * b + C2 * b;

[0067] wherein METRIC represents the metric value, RSSI represents the signal strength of the wireless access point, C1 and C2 represent the interference values of the wireless access point and the terminal device respectively, which are calculated according to the noise of the corresponding channel, and a and b represent the weights of the signal strength and the interference value respectively, which are in the range of 0 to 1.

[0068] In step S222, the wireless access point with the minimum metric value is selected as the target wireless access point from the connectable wireless access points based on the metric value and the bandwidth requirement.

[0069] Specifically, the information of the connectable wireless access point further includes the residual bandwidth, and the wireless access point that does not meet the bandwidth requirement is filtered according to the bandwidth requirement of the current terminal device, and then the wireless access point with the minimum metric value is selected as the target wireless access point based on the metric value.

[0070] In step S223, the second terminal is authenticated and associated with the target wireless access point, and a connection is established.

[0071] Specifically, in the second terminal, the SSID and the password of the target wireless access point are verified to pass, the target wireless access point is associated, and a connection is established.

[0072] Through the embodiment, the information on both the terminal device and the wireless access point is comprehensively considered, the optimal target wireless access point is screened through the quantitative measurement value standard, the communication quality of the obtained target wireless access point is better, and the connection between the second terminal and the target access point is established in advance, so that when the first terminal switches the channel and connects to the target access point, the time delay can be effectively reduced.

[0073] In some embodiments, the step S230 of disconnecting the first terminal from the currently connected wireless access point and switching to the target wireless access point based on the connection between the second terminal and the target wireless access point includes the following steps:

[0074] In step S231, the second terminal establishes a virtual connection between the first terminal and the target wireless access point.

[0075] Specifically, the first terminal and the target wireless access point interact through the virtual connection, perform virtual authentication and association, and save the interaction negotiation data locally, so that the first terminal directly uses the local interaction negotiation data when switching the channel and does not need to re-negotiate. The virtual connection means that the first terminal encapsulates the interaction data and interacts with the target wireless access point through the first terminal, but the first terminal and the target wireless access point are not physically connected at the WIFI layer.

[0076] In step S232, after the first terminal disconnects from the currently connected wireless access point, the first terminal is switched to connect to the target wireless access point through the virtual connection and the connection between the second terminal and the target wireless access point.

[0077] Specifically, after the first terminal and the target wireless access point establish the virtual connection, the first terminal is disconnected from the currently connected wireless access point. The first terminal is switched to connect to the target wireless access point through the interaction negotiation data obtained through the virtual connection and performs actual data interaction at the WIFI layer. After the channel switching is completed, the connection between the second terminal and the target wireless access point is disconnected.

[0078] Through the pre-established connection between the second terminal and the target wireless access point in the embodiment, the first terminal establishes a virtual connection with the target wireless access point through the second terminal and performs virtual authentication and association, so that when the first terminal roams, the channel switching can be performed without scanning, authentication and association, thereby effectively reducing the time delay of channel switching and achieving the effect of fast switching.

[0079] Furthermore, in one embodiment, after the first terminal establishes a virtual connection with the target wireless access point, data interaction with the currently connected wireless access point is suspended, and the data to be sent is temporarily stored in the network hub of all wireless access points; until the first terminal switches to a connection with the target wireless access point, it requests the data to be sent to the network hub.

[0080] Specifically, after the first terminal establishes a virtual connection with the target wireless access point, data interaction with the currently connected wireless access point is suspended, and the network hub is notified to temporarily store and send data. After the first terminal switches to a connection with the target wireless access point, it requests data from the network hub to perform data interaction. This ensures that no data packet loss occurs during channel switching and reduces data retransmission after packet loss. The network hub can be a router or other central device in a local area network, used to provide wireless network services.

[0081] Figure 3 A schematic diagram illustrating the architecture of a channel switching method applied to a terminal device is provided, such as... Figure 3 As shown, Figure 3 The system includes a terminal device, a first access point (AP), a second access point (AP), and a router. The terminal device has a first terminal and a second terminal, and the router is the uplink device for both the first and second APs. The first AP is the currently connected wireless access point, and the second AP is the target wireless access point. According to the channel switching method in any of the above embodiments, the terminal device connects to the first AP via the first terminal and switches to the second AP via the second terminal, interacting with the router for data exchange.

[0082] The present embodiment will now be described and illustrated through preferred embodiments.

[0083] Figure 4 This is a flowchart of the channel switching method of this preferred embodiment, as shown below. Figure 4 As shown, this method is applied to a terminal device, which has a first terminal and a second terminal. The method includes the following steps:

[0084] Step S410: When the signal strength of the wireless access point currently connected to the first terminal is less than the channel switching threshold, the second terminal listens to the beacon frames sent by each channel wireless access point to obtain information on the connectable wireless access points.

[0085] Step S420: Based on the signal strength and interference value in the information of the connectable wireless access point, and combined with the interference value of the terminal device, calculate the metric value of the connectable wireless access point.

[0086] Step S430: After filtering out wireless access points that do not meet the bandwidth requirements based on the bandwidth requirements, select the wireless access point with the smallest metric value as the target wireless access point based on the metric value.

[0087] Step S440, authenticating and associating the second terminal with the target wireless access point, and establishing a connection.

[0088] Step S450, through the second terminal, establishing a virtual connection between the first terminal and the target wireless access point, and suspending data interaction with the currently connected wireless access point, and storing the data to be delivered in the network hub of all wireless access points.

[0089] Step S460, after the first terminal disconnects the currently connected wireless access point, switching the first terminal to connect with the target wireless access point through the virtual connection, and after the second terminal disconnects the target wireless access point, requesting the network hub to deliver data.

[0090] It should be noted that the steps shown in the above flow or 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 here.

[0091] In this embodiment, a channel switching device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and the description of which has been made above. The terms "module", "unit", "sub-unit" and the like used below can be a combination of software and / or hardware that can implement a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware is also possible and is contemplated.

[0092] Figure 5 is a structural block diagram of the channel switching device of the present embodiment, as Figure 5 shown, the device comprises an acquisition module 10, a screening module 20 and a switching module 30.

[0093] The acquisition module 10 is configured to, when the signal strength of the wireless access point currently connected by the first terminal is less than the channel switching threshold, acquire information of connectable wireless access points through the second terminal.

[0094] The screening module 20 is configured to screen based on the terminal device in combination with the information of the connectable wireless access points, and establish a connection between the second terminal and the target wireless access point obtained through screening.

[0095] The switching module 30 is configured to, based on the connection between the second terminal and the target wireless access point, disconnect the first terminal from the currently connected wireless access point and switch to connect with the target wireless access point.

[0096] Through the device provided in the embodiment, when the signal of the currently connected wireless access point becomes weak, the target wireless access point is screened out, and the second terminal is connected with the target wireless access point in advance, so that the first terminal establishes a virtual connection with the target wireless access point through the second terminal, and then channel switching can be performed, and thus scanning, authentication and association with the target wireless access point are not needed during channel switching, the time delay of channel switching is reduced, and the problem that the terminal cannot be quickly switched between different channel wireless access points is solved.

[0097] Further, in the embodiment, the information on both the terminal device and the wireless access point is considered when the target wireless access point is selected, and the optimal target wireless access point is comprehensively screened out.

[0098] It should be noted that each of the above modules can be a functional module or a program module, and can be implemented by software or hardware. For the module implemented by hardware, each of the above modules can be located in the same processor; or each of the above modules can also be located in different processors in any combination.

[0099] In the embodiment, a computer device is also provided, which includes a memory and a processor, the memory stores a computer program, and the processor is configured to execute the computer program to perform the steps in any of the above method embodiments.

[0100] Optionally, the computer device can further include a transmission device and an input and output device, wherein the transmission device is connected with the processor, and the input and output device is connected with the processor.

[0101] It should be noted that the specific examples in the embodiment can refer to the examples described in the above embodiments and optional implementation manners, and will not be described herein again.

[0102] In addition, in combination with the channel switching method provided in the above embodiments, a storage medium can also be provided to implement the channel switching method in the embodiment. The storage medium stores a computer program; and the computer program is executed by a processor to implement any of the channel switching methods in the above embodiments.

[0103] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties.

[0104] It should be understood that the specific embodiments described herein are merely illustrative of the application and not intended to limit it. All other embodiments derived by those skilled in the art based on the embodiments provided in this application without inventive effort are within the scope of protection of this application.

[0105] Obviously, the accompanying drawings are merely some examples or embodiments of this application. Those skilled in the art can apply this application to other similar situations based on these drawings without any creative effort. Furthermore, it is understood that although the work done in this development process may be complex and lengthy, for those skilled in the art, certain design, manufacturing, or production modifications made based on the technical content disclosed in this application are merely conventional technical means and should not be considered as insufficient disclosure of this application.

[0106] The term "embodiment" in this application refers to a specific feature, structure, or characteristic described in connection with an embodiment that may be included in at least one embodiment of this application. The appearance of this phrase in various places in the specification does not necessarily imply the same embodiment, nor does it imply that it is mutually exclusive with or independent of other embodiments. It will be clearly or implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0107] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of patent protection. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the appended claims.

Claims

1. A channel switching method, characterized in that, Applied to a terminal device, the terminal device having a first terminal and a second terminal, the first terminal and the second terminal being wireless communication modules in the terminal device, and the terminal device being a carrier device for the first terminal and the second terminal; The channel switching method includes: When the signal strength of the wireless access point currently connected to the first terminal is less than the channel switching threshold, the second terminal obtains information about the connectable wireless access points. Based on the terminal device, and combined with the information of the connectable wireless access points, the second terminal is connected to the selected target wireless access point. Based on the connection between the second terminal and the target wireless access point, the first terminal is disconnected from the currently connected wireless access point and switched to connect to the target wireless access point; wherein: The second terminal establishes a virtual connection between the first terminal and the target wireless access point. After the first terminal disconnects from the currently connected wireless access point, the virtual connection is used to switch the first terminal to connect to the target wireless access point, and the connection between the second terminal and the target wireless access point is disconnected.

2. The channel switching method according to claim 1, characterized in that, The step of obtaining information about connectable wireless access points through the second terminal includes: The second terminal scans all channels and listens to the beacon frames sent by the wireless access points on each channel to obtain information about the connectable wireless access points.

3. The channel switching method according to claim 2, characterized in that, The beacon frames sent by the wireless access point include fields related to interference conditions in the corresponding channel.

4. The channel switching method according to claim 1, characterized in that, The step of filtering based on the terminal device and the information of the connectable wireless access points, and establishing a connection between the second terminal and the filtered target wireless access points, includes: Based on the information of the connectable wireless access point and the information of the terminal device, the metric value of the connectable wireless access point is calculated. Based on the metric value and bandwidth requirements, the wireless access point with the smallest metric value is selected from the connectable wireless access points as the target wireless access point. The second terminal is authenticated and associated with the target wireless access point, and a connection is established.

5. The channel switching method according to claim 4, characterized in that, The step of calculating the metric value of the connectable wireless access point based on the information of the connectable wireless access point and the information of the terminal device includes: The metric value is obtained by weighting the signal strength and interference value in the information of the connectable wireless access point with the interference value of the terminal device.

6. The channel switching method according to claim 1, characterized in that, After the first terminal establishes a virtual connection with the target wireless access point, the method further includes: Pause data interaction with the currently connected wireless access point and temporarily store the transmitted data in the network hub of all wireless access points; The first terminal will request data to be sent to the network hub only after it switches to a connection with the target wireless access point.

7. A channel switching device, characterized in that, Applied to a terminal device, the terminal device having a first terminal and a second terminal, the first terminal and the second terminal being wireless communication modules in the terminal device, and the terminal device being a carrier device for the first terminal and the second terminal; The channel switching device includes: an acquisition module, a filtering module, and a switching module; The acquisition module is used to acquire information about connectable wireless access points through the second terminal when the signal strength of the wireless access point currently connected to the first terminal is less than the channel switching threshold. The filtering module is used to filter based on the terminal device and the information of the connectable wireless access point, and to establish a connection between the second terminal and the filtered target wireless access point. The switching module is used to disconnect the first terminal from the currently connected wireless access point and switch it to connect to the target wireless access point based on the connection between the second terminal and the target wireless access point; wherein: The second terminal establishes a virtual connection between the first terminal and the target wireless access point. After the first terminal disconnects from the currently connected wireless access point, the virtual connection is used to switch the first terminal to connect to the target wireless access point, and the connection between the second terminal and the target wireless access point is disconnected.

8. A terminal device, comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to perform the channel switching method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the channel switching method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Wireless access point switching method and device, and terminal

    CN107659971A