Communication connection switching methods, devices, equipment and media

By implementing an automatic switching mechanism between AP and soft AP, the complex terminal connection switching problem in the 802.11 system is solved, achieving continuity of data transmission and improving user experience.

CN115567990BActive Publication Date: 2025-12-02CHENGDU XGIMI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110752377.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-02
Publication Date
2025-12-02
Estimated Expiration
2041-07-02

AI Technical Summary

Technical Problem

In the 802.11 system, the connection switching process between the terminal and the soft AP is complicated, which makes the user operation cumbersome and affects the continuity of data transmission and services.

Method used

By using a redirection mechanism that guides the terminal to automatically switch between AP and soft AP, and by utilizing link reconfiguration requests and redirection requests, the terminal can automatically connect to the target soft access point and transmit data, thus avoiding user intervention.

Benefits of technology

It ensures the continuity of data transmission and business operations, improves user experience, and reduces the complexity of user operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115567990B_ABST
    Figure CN115567990B_ABST
Patent Text Reader

Abstract

This application discloses a communication connection switching method, apparatus, device, and medium. The method includes: a second terminal receiving a first redirection request sent by a target access point, and, according to the instruction of the first redirection request, sending a connection request to a target soft access point belonging to a first terminal, thereby switching its connection to the target soft access point of the first terminal. This redirection method can guide the second terminal to automatically switch between the target access point and the target soft access point belonging to the first terminal without user intervention, eliminating tedious user operations and improving the speed of communication connection switching.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of wireless communication, and in particular to a communication connection switching method, apparatus, device and medium. Background Technology

[0002] In an 802.11 system, both access points (APs) and terminals (Non-AP STAs) have MAC and PHY layers deployed internally. The main functions of the MAC layer include channel management, connection management, quality of service management, power control, and time synchronization, while the main functions of the PHY layer include modulation, coding, and transmission.

[0003] Both the MAC and PHY layers conceptually include management units called the Media Access Layer Management Unit (MLME) and the Physical Layer Management Unit (PLME), respectively. These units provide low-level management service interfaces, through which low-level management functions can be invoked.

[0004] In order to provide correct MAC operation, each device (including Non-AP STA and AP) has a higher-level management unit, such as SME (station management entity). SME means a higher-level management unit above the MAC layer. It is a layer-independent unit that is located in a separate management plane.

[0005] The role of the SME: Typically, this unit is responsible for functions such as collecting layer-related status from various layer management units (MLME and PLME), and similarly, setting layer-specific parameter values. The SME usually performs these functions on behalf of a general system management unit. Layers interact through defined primitives. Figure 1 It describes the relationships between management units.

[0006] 802.11be networks, also known as Extremely High Throughput (EHT) networks, achieve extremely high throughput through a range of system features and multiple mechanisms. With the continued growth in the use of Wireless Local Area Networks (WLANs), providing wireless data services in many environments, such as homes, businesses, and hotspots, is becoming increasingly important. In particular, video traffic will continue to be a major traffic type in many WLAN deployments. The throughput requirements for these applications are constantly evolving due to the emergence of 4K and 8K video (uncompressed rates of 20Gbps). New high-throughput, low-latency applications such as virtual reality or augmented reality, gaming, remote offices, and cloud computing will proliferate (e.g., latency of less than 5 milliseconds for real-time gaming).

[0007] Given the high throughput and stringent real-time latency requirements of these applications, users expect higher throughput, greater reliability, less latency and jitter, and higher power efficiency when supporting their applications via WLAN. Users also expect improved integration with Time-Sensitive Networking (TSN) to support applications on heterogeneous Ethernet and wireless LANs. 802.11be networks are designed to ensure the competitiveness of WLANs by further increasing overall throughput and reducing latency, while ensuring backward compatibility and coexistence with older technology standards. 802.11 compliant devices operate in the 2.4 GHz, 5 GHz, and 6 GHz bands. Summary of the Invention

[0008] A wireless LAN device’s Device Management Unit (SME) can request its Media Access Layer (MAC) Management Entity (MLME) to create a Basic Services Set (BSS) to function as an access point. The logical entity that implements the access point function is called a soft Access Point (AP).

[0009] Once a terminal establishes a soft AP, when a terminal that was previously connected to the AP needs to connect to the soft AP, the user needs to search for the soft AP and then reconnect. When the terminal closes the soft AP, the user needs to select the previous AP again and reconnect, which introduces complexity to the user.

[0010] Based on this, embodiments of this application provide a communication connection switching method, apparatus, device, and medium.

[0011] In a first aspect, embodiments of this application provide a communication connection switching method, which is applied to a first terminal and includes:

[0012] The first terminal sends a link reconfiguration request message to the target access point, indicating a request to establish a soft access point.

[0013] Receive a link reconfiguration response message sent by the target access point, the response message indicating that the first terminal agrees to establish a soft access point;

[0014] The first terminal establishes a target soft access point based on the link reconfiguration response information.

[0015] The first terminal receives a connection request sent by the second terminal to the target soft access point;

[0016] The first terminal establishes a connection with the second terminal according to the connection request and returns connection response information to the second terminal. The connection response information is used to indicate whether the target soft access point has successfully connected with the second terminal or the connection has failed.

[0017] In one embodiment, the connection response information is used to indicate that the target soft access point has successfully connected with the second terminal. If the first terminal detects that the connection request includes an AID pre-assigned by the target access point for the second terminal, it can also assign the same connection identifier to the second terminal based on the AID value, where the AID represents the connection identifier. Based on the connection identifier corresponding to the second terminal, the first terminal searches for the cached data of the second terminal pre-sent by the target access point in the target storage area. The first terminal then sends the cached data to the second terminal.

[0018] In one embodiment, the connection response information is used to indicate that the target soft access point has successfully connected with the second terminal. If the first terminal detects that the connection request does not include the AID pre-assigned by the target access point for the second terminal, it can also obtain the address of the second terminal from the connection request. The first terminal searches for the cached data of the second terminal pre-sent by the target access point in the target storage area according to the address of the second terminal. The first terminal sends the cached data to the second terminal.

[0019] In one embodiment, when the first terminal is about to terminate the established target soft access point, a second redirection request can also be sent to a third terminal that is already connected to the target soft access point. The second redirection request is used to instruct the third terminal to switch from the target soft access point to a new access point.

[0020] In one embodiment, the new access point is the target access point, and the second redirection request includes any one or more of the following parameters:

[0021] The following information is provided: Redirection mode, BSSID, SSID, TBTT, and Security info; wherein, Redirectionmode indicates the redirection mode; BSSID indicates the base service set identifier of the redirected access point; SSID indicates the service set identifier of the redirected access point; TBTT indicates the transmission time of the broadcast message of the redirected access point; Security info indicates the security authentication information of the redirected access point; and Security info indicates the operation parameters of the redirected access point.

[0022] In the second redirection request, the redirection access point is set to the new access point, the Redirection mode parameter is set to 0, which indicates that when the third terminal fails to connect to the new access point, it is prohibited to retry connecting back to the current access point; the BSSID parameter is set to the basic service set identifier of the new access point, the SSID parameter is set to the service set identifier of the new access point, the TBTT parameter is set to the time when the new access point will send the next broadcast message, and the Security info parameter is set to the security authentication information of the new access point.

[0023] In one embodiment, if the target soft access point still has target data packets that have not been successfully sent to the target terminal, a data message carrying the target data packets can also be sent to the new access point; wherein, the target terminal is any one or more of the third terminals.

[0024] In one embodiment, the data message also carries one or more of the following data: the connection identifier and address of the target terminal.

[0025] In one embodiment, the link reconfiguration request message carries reconfiguration parameters, which include any one or more of the following: Reconfiguration type, Link element, and Redirection parameters; Reconfiguration type is used to set the type of link reconfiguration, Link element is used to set link-related information, and Redirection parameters are used to set redirection parameters; wherein, when the link reconfiguration type is set to establish a soft access point, the reconfiguration parameters include Redirection parameters.

[0026] In one embodiment, the Link element includes a STA address and an AP address, wherein the STA address is used to set the address of the first terminal, and the AP address is used to set the address of the target access point.

[0027] In one embodiment, the Redirection parameters include any one or more of the following: SSID, BSSID, Beacon start time, Beacon interval, Security info, and Operating parameters;

[0028] Among them, SSID is used to indicate the service set identifier of the soft access point, BSSID is used to indicate the basic service set identifier of the soft access point, Beacon start time is used to indicate the time when the soft access point starts sending broadcast messages, Beacon period is used to indicate the period during which the soft access point sends broadcast messages, Beacon interval is used to indicate the interval between broadcast messages sent by the soft access point, Security info is used to indicate the security information of the soft access point, and Operatingparameters is used to indicate the operating parameters of the soft access point.

[0029] In one embodiment, the Security info includes one or more of the following parameters: MIC and Anounce, wherein the MIC is used to indicate the Information Integrity Authentication Code, and the Anounce is used to indicate the Authentication Random Code of the Soft Access Point; the Operating parameters include one or more of the following parameters: Operating class and Channel number, wherein the Operating class is used to indicate the operating level, and the Channel number is used to indicate the channel coding.

[0030] Corresponding to the method proposed in the first aspect above, this application provides a signal connection switching device, including:

[0031] The communication module is used to send a link reconfiguration request message to the target access point, the request message indicating a request to establish a soft access point;

[0032] The communication module is also used to receive a link reconfiguration response message sent by the target access point, wherein the response message indicates that the first terminal agrees to establish a soft access point;

[0033] The processing module is used to establish a target soft access point based on the link reconfiguration response information;

[0034] The communication module is also used to receive a connection request sent by the second terminal to the target soft access point;

[0035] The processing module is also configured to establish a connection with the second terminal according to the connection request, and return connection response information to the second terminal through the communication module. The connection response information is used to indicate whether the target soft access point has successfully connected to the second terminal or the connection has failed.

[0036] Corresponding to the method proposed in the first aspect above, this application embodiment also proposes a terminal device (e.g., the first terminal mentioned above). The terminal device includes a processor and a memory. The memory stores at least one instruction, at least one piece of program code, a code set, or an instruction set. The at least one instruction, at least one piece of program code, a code set, or an instruction set is loaded and executed by the processor to implement the communication connection switching method described in the first aspect above.

[0037] Secondly, embodiments of this application provide another communication connection switching method, which is applied to a second terminal and includes:

[0038] The second terminal receives the first redirection request sent by the target access point;

[0039] The second terminal sends a connection request to the target soft access point belonging to the first terminal according to the instruction of the first redirection request.

[0040] The system receives connection response information sent by the first terminal; the connection response information is used to indicate whether the target soft access point has successfully connected to the second terminal or the connection has failed.

[0041] In one embodiment, the second terminal may also send a data transmission request to a target device connected to the target access point. The data transmission request carries a data packet cached by the second terminal and transmission parameters. The transmission parameters include: parameter DA, parameter SA, parameter TA, and parameter RA. Parameter DA is set to the address of the target device, parameter SA is set to the address of the second terminal, parameter TA is set to the address of a soft access point belonging to the first terminal, and parameter RA is set to the address of the access point to which the target device is connected.

[0042] In one embodiment, the first redirection request includes any one or more of the following parameters: Redirection mode, BSSID, SSID, TBTT, Security info, and Operating parameters; wherein, the Redirection mode indicates the redirection mode; the BSSID indicates the base service set identifier of the redirected access point; the SSID indicates the service set identifier of the redirected access point; the TBTT indicates the transmission time of the broadcast message of the redirected access point; the Security info indicates the security authentication information of the redirected access point; the Security info indicates the operating parameters of the redirected access point; and in the first redirection request, the redirected access point is set as a target soft access point belonging to the first terminal.

[0043] In one embodiment, before sending a connection request to the target soft access point belonging to the first terminal, the second terminal may also obtain the security authentication information of the target soft access point and perform security authentication with the target soft access point based on the security authentication information; after the security authentication is successful, the second terminal sends a connection request to the target soft access point belonging to the first terminal.

[0044] In one embodiment, if the connection response information is used to indicate that the soft access point has failed to connect with the second terminal, the second terminal may also perform the target operation according to the value of the Redirection mode;

[0045] Wherein, if the value of the Redirection mode is a first preset value, the target operation is: after waiting for a specified time, continue to send connection requests to the target soft access point belonging to the first terminal until after the target number of attempts, if a connection is still not successfully established with the soft access point, then stop sending connection requests to the target soft access point.

[0046] If the value of the Redirection mode is the second preset value, then the target operation is: to send a connection request to the target access point.

[0047] Corresponding to the method proposed in the second aspect above, embodiments of this application propose another signal connection switching device, including:

[0048] The communication module is used to receive the first redirection request sent by the target access point;

[0049] The processing module is configured to send a connection request to a target soft access point belonging to the first terminal via the communication module, according to the indication of the first redirection request.

[0050] The communication module is further configured to receive connection response information sent by the first terminal; the connection response information is used to indicate whether the target soft access point has successfully connected to the second terminal or the connection has failed.

[0051] Corresponding to the method proposed in the second aspect above, this application embodiment also proposes another terminal device (such as the second terminal mentioned above). The terminal device includes a processor and a memory. The memory stores at least one instruction, at least one piece of program code, a code set, or an instruction set. The at least one instruction, at least one piece of program code, a code set, or an instruction set is loaded and executed by the processor to implement the communication connection switching method described in the second aspect above.

[0052] Thirdly, embodiments of this application provide a computer-readable storage medium storing at least one instruction, at least one piece of program code, a code set, or an instruction set, wherein the at least one instruction, at least one piece of program code, a code set, or an instruction set is loaded and executed by a processor to implement the communication connection switching method as described in the first or second aspect.

[0053] It should be noted that the aforementioned apparatus, terminal device, and storage medium are used to execute the methods provided in the first or second aspect, and thus can achieve the same beneficial effects as the methods described in the first or second aspect. The embodiments of this application will not be described in detail.

[0054] This application provides a method to guide a terminal to automatically switch between an Access Point (AP) and a Soft AP via redirection, ensuring data transmission continuity without user intervention and guaranteeing service continuity. Through this application, users are unaware of changes in terminal connection, eliminating cumbersome operations and improving user experience. Attached Figure Description

[0055] This application will be described by way of examples and with reference to the accompanying drawings, wherein:

[0056] Figure 1 This is a schematic diagram of the management unit structure of a device in the prior art;

[0057] Figure 2 This is a structural diagram of a communication system proposed in an embodiment of this application;

[0058] Figure 3 An interactive flowchart of a communication connection switching method provided in an embodiment of this application;

[0059] Figure 4 A flowchart illustrating a communication connection switching method provided in an embodiment of this application;

[0060] Figure 5 A flowchart of another communication connection switching method provided in an embodiment of this application. Detailed Implementation

[0061] To enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this application. Furthermore, although the disclosure in this application is introduced according to one or several exemplary examples, it should be understood that each aspect of these disclosures can also constitute a complete technical solution on its own. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0062] In the embodiments of this application, words such as "exemplarily" and "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as an "example" in this application should not be construed as being better or more advantageous than other embodiments or designs. Rather, the use of the word "example" is intended to present the concept in a specific manner.

[0063] Unless otherwise defined, the technical or scientific terms used in this application should have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to limit the application. The terms "first," "second," and similar terms used in this application do not indicate any order, quantity, or importance, but are only used to distinguish descriptions, and the meanings of corresponding terms may be the same or different. Terms such as "comprising" or "including" mean that the element or object preceding the word covers the element or object listed after the word and its equivalents, without excluding other elements or objects. The term "and / or" refers to any and all possible combinations of one or more associated listed items. The character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0064] This application proposes a communication system and a communication connection switching method applicable to the communication system. See [link to relevant documentation]. Figure 2 The communication system includes a target access point and multiple terminals connected to the target access point (including a first terminal, a second terminal, and a target device, etc.). Specifically, the communication connection switching method can be executed by the first terminal, the second terminal, and the target access point, and the specific interaction process is as follows: Figure 3 As shown, it includes the following steps:

[0065] S10: The first terminal sends a link reconfiguration request message to the target access point, indicating a request to establish a soft access point.

[0066] The first terminal can be a multi-link terminal device (STA MLD). When the first terminal supports configuration as a Soft AP and is enabled, the parameter dot11SOFTAPOptionImplemented can be set locally to true. The first terminal establishes a connection with the target access point and can obtain the target access point's configuration information, which includes the target access point's BSSID (Basic Server Set Identifier), SSID (Service Set Identifier), security-related information, etc.

[0067] Furthermore, when the first terminal wants to create a soft access point, it can send a link reconfiguration request message to the target access point, indicating in the request message that a soft access point is requested to be established.

[0068] S11: The target access point receives the link reconfiguration request message and returns link reconfiguration response information to the first terminal. Specifically, when the target access point receives the link reconfiguration request, if it agrees to the first terminal's request, it sets the status code value to "accepted"; if it disagrees with the first terminal's request, it sets the status code value to "failed". Further, the target access point sends a link reconfiguration response message (containing the status code) to the first terminal.

[0069] S12: After receiving the link reconfiguration response message from the target access point, if the response message indicates agreement to establish a soft access point, then the target soft access point is established. Specifically, after receiving the link reconfiguration response message, if the value of the status code parameter is "accepted", then a soft AP is established, and the soft AP established here is called the target soft access point.

[0070] S13: The target access point sends a first redirection request to the second terminal. The second terminal is one or more terminals that are pre-connected to the target access point.

[0071] Specifically, the target access point can identify some of the terminal devices connected to it as second terminals according to a preset strategy (such as load balancing or service diversion), and send a first redirection request to the second terminals to guide the second terminals to access the target soft access point established by the first terminal.

[0072] In one embodiment, if the target access point still has data packets that were not successfully sent to the second terminal, these unsuccessfully sent data packets can be sent to the target soft access point established by the first terminal, and subsequently sent to the corresponding second terminal by the target soft access point. Alternatively, in another embodiment, the target access point can also send the AID (connection identifier) ​​assigned to the second terminal to the target soft access point established by the first terminal as an identifier for the target device of the data packets. This allows the target access point to query the data packets sent to the second terminal by the target access point based on the second terminal's AID and send those data packets directly to the second terminal without the second terminal needing to re-cache this data.

[0073] Alternatively, in another embodiment, the target access point may also send the address of the second terminal along with the data packet as an identifier of the target device. Subsequently, the target access point can query the data packet of the second terminal sent by the target access point based on the address of the second terminal, and send the data packet directly to the second terminal without the second terminal having to re-cache this part of the data.

[0074] S14: The second terminal receives the first redirection request sent by the target access point, and sends a connection request to the target soft access point belonging to the first terminal according to the instruction of the first redirection request.

[0075] S15: The first terminal establishes a connection with the second terminal based on the connection request and sends a connection response message to the second terminal. This connection response message indicates whether the target soft access point has successfully connected with the second terminal or the connection has failed. Subsequently, after receiving the connection response message, if the connection response message indicates that the target soft access point has successfully connected with the second terminal, then the second terminal can perform data transmission and reception.

[0076] By implementing steps S10 to S15, the second terminal can be guided to automatically switch between the target access point and the target soft access point belonging to the first terminal through redirection. This does not require user intervention, eliminates tedious user operations, and improves the speed of communication connection switching.

[0077] To better understand this solution, the communication connection switching method proposed in the embodiments of this application will be further described below, specifically:

[0078] Please see Figure 4 , Figure 4 This application provides a flowchart of a communication connection switching method, which is executed by a first terminal and specifically includes the following steps:

[0079] S301: Send a link reconfiguration request message to the target access point, indicating a request to establish a soft access point.

[0080] The link reconfiguration request message carries reconfiguration parameters, which include one or more of the following: Reconfiguration type, Link element, and Redirection parameters. The Reconfiguration type sets the type of link reconfiguration, the Link element sets link-related information, and the Redirection parameters set redirection parameters. When the Reconfiguration type is set to establish a soft access point (SoftAPSetup), the reconfiguration parameters include Redirectionparameters. For example, the reconfiguration parameters can be shown in Table 1-1.

[0081] Table 1-1

[0082]

[0083] The Link element includes a STA address and an AP address. The STA address is used to set the address of the first terminal, and the AP address is used to set the address of the target access point. For example, the parameters included in the Link element are shown in Table 1-2.

[0084] Table 1-2

[0085] parameter illustrate STA address Terminal device address AP address Network access point address

[0086] The Redirection parameters include one or more of the following: SSID, BSSID, Beacon start time, Beacon interval, Security info, and Operating parameters. SSID indicates the service set identifier of the soft access point; BSSID indicates the basic service set identifier of the soft access point; Beacon start time indicates the time when the soft access point begins sending broadcast messages (i.e., Beacon frames); Beacon period indicates the period during which the soft access point sends broadcast messages; Beacon interval indicates the interval between broadcast message transmissions; Security info indicates the security information of the soft access point; and Operating parameters indicate the operating parameters of the soft access point. For example, the Redirection parameters may include the parameters shown in Tables 1-3.

[0087] Table 1-3

[0088]

[0089] In one embodiment, the Security info includes one or more of the following parameters: MIC and Anounce, wherein the MIC indicates the information integrity verification code, and the Anounce indicates the authentication random code of the soft access point; the Operating parameters include one or more of the following parameters: Operating class and Channel number, wherein the Operating class indicates the operating level, and the Channel number indicates the channel coding. For example, the Security info and the parameters included in the Security info are shown in Tables 1-4 and 1-5, respectively.

[0090] Table 1-4

[0091]

[0092]

[0093] Table 1-5

[0094] parameter illustrate Operating class Operational Level Channel number Channel number

[0095] S302: Receive a link reconfiguration response message sent by the target access point, which indicates that the first terminal agrees to establish a soft access point.

[0096] S303: Establish the target soft access point based on the link reconfiguration response information.

[0097] When the target access point receives a link reconfiguration request, it sets the status code to "accepted" if it agrees to the first terminal's request, and sets the status code to "failed" if it disagrees. Further, the target access point sends a link reconfiguration response message (containing the status code) to the first terminal. Upon receiving the response message, the first terminal can determine whether the target access point agrees to its establishment of a soft access point based on the status code value. If the status code is "accepted," the first terminal establishes the soft access point, which is then referred to as the target access point.

[0098] S304: Receive a connection request sent by the second terminal to the target soft access point.

[0099] S305: Establish a connection with the second terminal according to the connection request, and return connection response information to the second terminal. The connection response information is used to indicate whether the target soft access point has successfully connected with the second terminal or the connection has failed.

[0100] After the target access point agrees to the establishment of a soft access point by the first terminal, it will also identify some terminal devices connected to it as second terminals according to a preset strategy (such as load balancing or service offloading), and send a first redirection request to the second terminals to guide them to access the target soft access point established by the first terminal. Upon receiving the first redirection request from the target access point, the second terminal can send a connection request to the target soft access point belonging to the first terminal, as indicated in the first redirection request. Furthermore, the first terminal can receive the connection request sent by the second terminal to the target soft access point and establish a connection with the second terminal. If the connection is successful, it returns a connection response message indicating a successful connection to the second terminal; if the connection fails, it returns a connection indication message indicating a failed connection to the second terminal.

[0101] In one embodiment, the second terminal can include the AID assigned to it by the target access point in the connection request. Upon receiving the connection request, if the first terminal detects that the connection request includes the AID pre-assigned to the second terminal by the target access point, it assigns the same connection identifier to the second terminal based on the AID value, where AID represents the connection identifier. Subsequently, after the first and second terminals successfully connect, the first terminal can retrieve the cached data of the second terminal pre-sent by the target access point from the target storage area (e.g., local storage, cloud server, or blockchain, etc.) based on the connection identifier corresponding to the second terminal, and send the cached data to the second terminal. The target access point, after agreeing to the establishment of a soft access point by the first terminal, can send data packets that were not successfully sent to the second terminal (i.e., the aforementioned cached data of the second terminal) to the target soft access point belonging to the first terminal. The target access point can then store these data packets in the target storage area.

[0102] Alternatively, in another embodiment, if the first terminal detects that the connection request does not include the AID pre-assigned by the target access point for the second terminal, it obtains the address of the second terminal from the connection request. Subsequently, after the first terminal and the second terminal successfully connect, the first terminal can retrieve the cached data of the second terminal pre-sent by the target access point from the target storage area based on the address of the second terminal, and then send the cached data to the second terminal.

[0103] Both of these methods ensure that the second terminal will not lose data when switching from the target access point to the target soft access point. For cached data that the target access point failed to send to the second terminal before the connection switch, the target soft access point can continue to send it to the second terminal after the connection switch, which helps to ensure the continuity of data transmission during the connection switch.

[0104] In one embodiment, when a first terminal is about to terminate an established target soft access point, a second redirection request is sent to a third terminal already connected to the target soft access point. This second redirection request instructs the third terminal to switch from the target soft access point to a new access point. The third terminal can be any one or more terminals connected to the target soft access point.

[0105] In practical applications, the first terminal may need to terminate the target soft access point due to certain strategies (such as load balancing, service diversion, power saving, etc.). In this case, a second redirection request can be sent to the third terminal that is already connected to the target soft access point.

[0106] Specifically, when the first terminal wants to switch back to the target access point from the third terminal it is connected to, the new access point can be designated as the target access point. In particular, the second redirection request includes one or more of the following parameters:

[0107] Redirection mode, BSSID, SSID, TBTT, and Security info; where Redirection mode indicates the redirection mode, BSSID indicates the base service set identifier of the redirected access point, SSID indicates the service set identifier of the redirected access point, TBTT indicates the transmission time of the broadcast message of the redirected access point, Security info indicates the security authentication information of the redirected access point, and Security info indicates the operation parameters of the redirected access point.

[0108] In the second redirection request, the redirection access point is set to the new access point, and the Redirection mode parameter is set to 0, which is used to indicate that if the third terminal fails to connect to the new access point, it is prohibited to retry connecting back to the current access point; the BSSID parameter is set to the basic service set identifier of the new access point, the SSID parameter is set to the service set identifier of the new access point, the TBTT parameter is set to the time when the new access point will send the next broadcast message, and the Security info parameter is set to the security authentication information of the new access point.

[0109] For example, taking the new access point as the target access point, the parameters carried in the second redirection request can be as shown in Table 1-6.

[0110] Table 1-6

[0111]

[0112]

[0113] In one embodiment, if the target soft access point still has target data packets that have not been successfully sent to the target terminal, the first terminal sends a data message carrying the target data packets to the new access point; wherein the target terminal is any one or more of the third terminals. Further, the data message also carries any one or more of the following data: the connection identifier and address of the target terminal. Subsequently, after the new access point successfully establishes a connection with the target device, it can send the target data packets sent by the first terminal to the target device based on the connection identifier or address of the target terminal.

[0114] In one embodiment, after receiving the second redirection request, the third terminal can cache the uplink data to be sent and establish a connection with the new access point based on the parameters carried in the second redirection request. Specifically:

[0115] If the second redirect request contains the security authentication information of the new access point, then security authentication can be performed with the new access point based on that security authentication information. After successful security authentication, a new connection request can be sent to the new access point to request the establishment of a connection.

[0116] Alternatively, after successful security authentication, the third terminal obtains the system message from the new access point and then sends a connection request to the new access point based on the system message. The system message may include the new access point's SSID, BSSID, and performance data, such as supported bandwidth and speed. Based on this system message, the third terminal can determine whether the new access point meets its performance requirements and decide whether to establish a connection, specifying its needs. For example, the third terminal can include requirement information in the connection request sent to the new access point, indicating that it wants to connect at a specified bandwidth.

[0117] The methods for obtaining the aforementioned system messages include several:

[0118] Method 1: Read the beacon frame of the new access point at the time indicated by TBTT based on the SSID or BSSID of the new access point to obtain the system message of the new access point;

[0119] Method 2: Send a broadcast message to the new access point and receive the response information from the new access point in response to the broadcast message. If the response information includes the SSID or BSSID of the new access point, then obtain the system message of the new access point from the response information.

[0120] Furthermore, after the third terminal sends a new connection request to the new access point, the third terminal can receive new connection response information sent by the new access point. If the new connection response information indicates a successful connection, the third terminal has established a connection with the new access point and can perform data transmission and reception. If the new connection response information indicates a connection failure, the third terminal performs the following operations based on the Redirection mode value in the new connection response information:

[0121] If the Redirection mode value is 0 in the new connection response information, the third terminal will continue to send connection requests to the new access point after waiting for a specified time T_backoff, and will stop sending connection request frames to the new access point after reaching the maximum number of attempts.

[0122] Alternatively, if the new connection response indicates a successful connection, then the following scenarios apply:

[0123] (1) Downlink data: If the new connection request contains the connection identifier of the third terminal, the new access point will check whether there is cached data of the third terminal sent by the target soft access point based on the connection identifier of the third terminal. If there is, the cached data will be sent to the third terminal.

[0124] If the connection request does not contain the connection identifier of the third terminal, the new access point will check whether there is cached data of the third terminal sent by the target soft access point locally based on the address of the third terminal contained in the new connection request. If so, the cached data will be sent to the third terminal.

[0125] (2) Uplink data: The third terminal sends the cached data packets to other devices, sets the parameter DA to the address of other devices, sets the parameter SA to the address of the third terminal, sets the parameter TA to the address of the new access point, and sets the parameter RA to the address of the access point to which other devices are connected.

[0126] In one embodiment, the link reconfiguration request message mentioned in step S301 above may not include the above reconfiguration parameters, but may include the parameters shown in Tables 1-7.

[0127] Table 1-7

[0128]

[0129]

[0130] The first terminal can set the Reconfiguration type to "remove" and the Cause code to "SoftAPSetup". This has the same effect as the reconfiguration parameters mentioned above, both of which can instruct the target access point to request the establishment of a soft AP.

[0131] In addition, in one embodiment, the Link element may also include parameters as shown in Tables 1-8, 1-9, 1-10, 1-11 or 1-12.

[0132] Table 1-8

[0133] parameter illustrate Link id Link Identifier

[0134] Table 1-9

[0135] parameter illustrate Link id Link Identifier STAaddress Address of terminal logical entity AP address Network access point address

[0136] Table 1-10

[0137] parameter illustrate Frequency band Frequency bands for link operation

[0138] Table 1-11

[0139] parameter illustrate AP address The address of the network access point on the link;

[0140] Table 1-12

[0141] parameter illustrate STA address The address of the terminal logical entity on the link;

[0142] In this embodiment, the first terminal can send a link reconfiguration request message to the target access point, indicating a request to establish a soft access point. It then receives a link reconfiguration response message from the target access point, indicating agreement to the establishment of the soft access point by the first terminal. Further, the first terminal can establish the target soft access point based on the link reconfiguration response information, receive a connection request from the second terminal to the target soft access point, establish a connection with the second terminal based on the connection request, and return connection response information to the second terminal. This connection response information indicates whether the connection between the target soft access point and the second terminal was successful or failed. The second terminal can be guided to automatically switch between the target access point and a target soft access point belonging to the first terminal via redirection, without user intervention, eliminating tedious user operations and improving the speed of communication connection switching.

[0143] Please see Figure 5 , Figure 5 This is a flowchart of another communication connection switching method provided in an embodiment of this application. The communication connection switching method is executed by a second terminal and specifically includes the following steps:

[0144] S401: Receive the first redirection request sent by the target access point. In specific implementation, when the target access point receives the link reconfiguration request message from the first terminal, if it agrees to the first terminal establishing a soft access point, it can send the first redirection request to the second terminal connected to it. The first redirection request is used to guide the second terminal to switch its access point to the target soft access point belonging to the first terminal.

[0145] S402: The second terminal sends a connection request to the target soft access point belonging to the first terminal according to the instruction of the first redirection request.

[0146] S403: Receive connection response information sent by the first terminal, which indicates whether the target soft access point has successfully connected to the second terminal or the connection has failed.

[0147] In one embodiment, when the connection response information indicates that the target soft access point has successfully connected with the second terminal, the first terminal can then perform data transmission and reception. Specifically, after the target soft access point successfully connects with the second terminal, the second terminal can send a data transmission request to the target device connected to the target access point. This data transmission request carries data packets and transmission parameters cached by the second terminal. These transmission parameters include: parameter DA, parameter SA, parameter TA, and parameter RA. Parameter DA is set to the address of the target device, parameter SA is set to the address of the second terminal, parameter TA is set to the address of the soft access point belonging to the first terminal, and parameter RA is set to the address of the access point to which the target device is connected.

[0148] In one embodiment, the first redirection request includes any one or more of the following parameters: Redirection mode, BSSID, SSID, TBTT, Security info, and Operating parameters; wherein, Redirection mode indicates the redirection mode, BSSID indicates the base service set identifier of the redirected access point, SSID indicates the service set identifier of the redirected access point, TBTT indicates the transmission time of the broadcast message of the redirected access point, Security info indicates the security authentication information of the redirected access point, and Security info indicates the operating parameters of the redirected access point; in the first redirection request, the redirected access point is set as a target soft access point belonging to the first terminal.

[0149] For example, the parameters included in the first redirect request may be as shown in Table 2-1.

[0150] Table 2-1

[0151]

[0152]

[0153] In one embodiment, if the first redirection request includes the security authentication information of the target soft access point, then before the second terminal sends a connection request to the target soft access point belonging to the first terminal, it can obtain the security authentication information of the target soft access point, perform security authentication with the target soft access point based on the security authentication information, and send a connection request to the target soft access point belonging to the first terminal after the security authentication is successful.

[0154] Specifically, after the second terminal obtains the security authentication information of the target soft access point, it can generate an encrypted data packet based on the MIC or ANounce information in the security authentication information and its own Snounce information (i.e., the second terminal's authentication random code), and send the encrypted data packet to the target soft access point. The target access point can decrypt the encrypted data packet based on its own MIC or ANounce information. If the decryption is successful, the target soft access point determines that the second terminal has been successfully authenticated.

[0155] In one embodiment, if the connection response information indicates that the soft access point has failed to connect with the second terminal, the second terminal performs the target operation according to the value of the Redirection mode. Specifically, if the Redirection mode value is a first preset value (e.g., 0), the target operation is: after waiting for a specified time, continue sending connection requests to the target soft access point belonging to the first terminal until a target number of attempts are made, and if no connection is successfully established with the soft access point, then stop sending connection requests to the target soft access point; if the Redirection mode value is a second preset value, the target operation is: send a connection request to the target access point. The specified time and target number of attempts are preset based on experimental data; for example, the specified time can be 15 seconds and the target number of attempts can be 3. This application does not specifically limit these values.

[0156] In this embodiment, the second terminal can receive a first redirection request sent by the target access point, and according to the instruction of the first redirection request, send a connection request to a target soft access point belonging to the first terminal, switching to the target soft access point of the first terminal. Redirection can guide the second terminal to automatically switch between the target access point and the target soft access point belonging to the first terminal without user intervention, eliminating tedious user operations and improving the speed of communication connection switching.

[0157] In this embodiment of the application, based on the above... Figure 4 Corresponding to the same inventive concept, embodiments of this application also provide a communication connection switching device, which can be disposed in a first terminal, including:

[0158] The communication module is used to send a link reconfiguration request message to the target access point, the request message indicating a request to establish a soft access point;

[0159] The communication module is also used to receive a link reconfiguration response message sent by the target access point, wherein the response message indicates that the first terminal agrees to establish a soft access point;

[0160] The processing module is used to establish a target soft access point based on the link reconfiguration response information;

[0161] The communication module is also used to receive a connection request sent by the second terminal to the target soft access point;

[0162] The processing module is also configured to establish a connection with the second terminal according to the connection request, and return connection response information to the second terminal through the communication module. The connection response information is used to indicate whether the target soft access point has successfully connected to the second terminal or the connection has failed.

[0163] In one embodiment, the connection response information is used to indicate that the target soft access point has successfully connected with the second terminal. The processing module is further configured to, if the connection request includes an AID pre-assigned by the target access point to the second terminal, assign the same connection identifier to the second terminal based on the AID value, wherein the AID represents a connection identifier.

[0164] The processing module is also used to retrieve cached data of the second terminal that was pre-sent by the target access point from the target storage area based on the connection identifier corresponding to the second terminal;

[0165] The communication module is also used to send the cached data to the second terminal.

[0166] In one embodiment, the connection response information is used to indicate that the target soft access point has successfully connected with the second terminal. The processing module is further used to obtain the address of the second terminal from the connection request if it is detected that the connection request does not include the AID pre-assigned by the target access point for the second terminal.

[0167] The processing module is also used to retrieve, based on the address of the second terminal, the cached data of the second terminal that was pre-sent by the target access point from the target storage area;

[0168] The communication module is also used to send the cached data to the second terminal.

[0169] In one embodiment, the communication module is further configured to send a second redirection request to a third terminal already connected to the target soft access point when the established target soft access point is to be terminated, the second redirection request being used to instruct the third terminal to switch from the target soft access point to a new access point.

[0170] In one embodiment, the new access point is the target access point, and the second redirection request includes any one or more of the following parameters:

[0171] The following information is provided: Redirection mode, BSSID, SSID, TBTT, and Security info; wherein, Redirectionmode indicates the redirection mode; BSSID indicates the base service set identifier of the redirected access point; SSID indicates the service set identifier of the redirected access point; TBTT indicates the transmission time of the broadcast message of the redirected access point; Security info indicates the security authentication information of the redirected access point; and Security info indicates the operation parameters of the redirected access point.

[0172] In the second redirection request, the redirection access point is set to the new access point, the Redirection mode parameter is set to 0, which indicates that when the third terminal fails to connect to the new access point, it is prohibited to retry connecting back to the current access point; the BSSID parameter is set to the basic service set identifier of the new access point, the SSID parameter is set to the service set identifier of the new access point, the TBTT parameter is set to the time when the new access point will send the next broadcast message, and the Security info parameter is set to the security authentication information of the new access point.

[0173] In one embodiment, the method further includes:

[0174] The communication module is further configured to send a data message carrying the target data packet to a new access point if the target soft access point still has target data packets that have not been successfully sent to the target terminal; wherein the target terminal is any one or more of the third terminals.

[0175] In one embodiment, the data message also carries one or more of the following data: the connection identifier and address of the target terminal.

[0176] In one embodiment, the link reconfiguration request message carries reconfiguration parameters, which include any one or more of the following: Reconfiguration type, Link element, and Redirection parameters; Reconfiguration type is used to set the type of link reconfiguration, Link element is used to set link-related information, and Redirection parameters are used to set redirection parameters; wherein, when the link reconfiguration type is set to establish a soft access point, the reconfiguration parameters include Redirection parameters.

[0177] In one embodiment, the Link element includes a STA address and an AP address, wherein the STA address is used to set the address of the first terminal, and the AP address is used to set the address of the target access point.

[0178] In one embodiment, the Redirection parameters include any one or more of the following: SSID, BSSID, Beacon start time, Beacon interval, Security info, and Operating parameters;

[0179] Among them, SSID is used to indicate the service set identifier of the soft access point, BSSID is used to indicate the basic service set identifier of the soft access point, Beacon start time is used to indicate the time when the soft access point starts sending broadcast messages, Beacon period is used to indicate the period during which the soft access point sends broadcast messages, Beacon interval is used to indicate the interval between broadcast messages sent by the soft access point, Security info is used to indicate the security information of the soft access point, and Operatingparameters is used to indicate the operating parameters of the soft access point.

[0180] In one embodiment, the Security info includes one or more of the following parameters: MIC and Anounce, wherein the MIC is used to indicate the Information Integrity Authentication Code, and the Anounce is used to indicate the Authentication Random Code of the Soft Access Point; the Operating parameters include one or more of the following parameters: Operating class and Channel number, wherein the Operating class is used to indicate the operating level, and the Channel number is used to indicate the channel coding.

[0181] For details on the specific implementation methods of each module, please refer to [link / reference]. Figure 4 A detailed description of the corresponding method embodiments.

[0182] Corresponding to the communication connection switching device mentioned above, this application also proposes a terminal device, which may be, for example, the first terminal described above. The terminal device includes a processor and a memory. The memory stores at least one instruction, at least one piece of program code, a code set, or an instruction set. The at least one instruction, at least one piece of program code, code set, or instruction set is loaded and executed by the processor to achieve the above-mentioned... Figure 4 The corresponding embodiment involves a communication connection switching method.

[0183] In this embodiment of the application, based on the above... Figure 5 Corresponding to the same inventive concept, embodiments of this application also provide another communication connection switching device, which can be installed in a second terminal, including:

[0184] The communication module is used to receive the first redirection request sent by the target access point;

[0185] The processing module is configured to send a connection request to a target soft access point belonging to the first terminal via the communication module, according to the indication of the first redirection request.

[0186] The communication module is further configured to receive connection response information sent by the first terminal; the connection response information is used to indicate whether the target soft access point has successfully connected to the second terminal or the connection has failed.

[0187] In one embodiment, the communication module is further configured to send a data transmission request to a target device connected to the target access point. The data transmission request carries a data packet cached by the second terminal and transmission parameters. The transmission parameters include: parameter DA, parameter SA, parameter TA, and parameter RA. Parameter DA is set to the address of the target device, parameter SA is set to the address of the second terminal, parameter TA is set to the address of a soft access point belonging to the first terminal, and parameter RA is set to the address of the access point to which the target device is connected.

[0188] In one embodiment, the first redirection request includes any one or more of the following parameters: Redirection mode, BSSID, SSID, TBTT, Security info, and Operating parameters; wherein, the Redirection mode indicates the redirection mode; the BSSID indicates the base service set identifier of the redirected access point; the SSID indicates the service set identifier of the redirected access point; the TBTT indicates the transmission time of the broadcast message of the redirected access point; the Security info indicates the security authentication information of the redirected access point; the Security info indicates the operating parameters of the redirected access point; and in the first redirection request, the redirected access point is set as a target soft access point belonging to the first terminal.

[0189] In one embodiment, before sending a connection request to the target soft access point belonging to the first terminal, the processing module is further configured to obtain the security authentication information of the target soft access point, and perform security authentication with the target soft access point based on the security authentication information; after the security authentication is passed, the processing module sends a connection request to the target soft access point belonging to the first terminal through the communication module.

[0190] In one embodiment, the processing module is further configured to, if the connection response information indicates that the soft access point has failed to connect with the second terminal, then the second terminal performs the target operation according to the value of the Redirection mode;

[0191] Wherein, if the value of the Redirection mode is a first preset value, the target operation is: after waiting for a specified time, continue to send connection requests to the target soft access point belonging to the first terminal until after the target number of attempts, if a connection is still not successfully established with the soft access point, then stop sending connection requests to the target soft access point.

[0192] If the value of the Redirection mode is the second preset value, then the target operation is: to send a connection request to the target access point.

[0193] For details on the specific implementation methods of each module, please refer to [link / reference]. Figure 5 A detailed description of the corresponding method embodiments.

[0194] Corresponding to the communication connection switching device mentioned above, this application also proposes a terminal device, which may be, for example, the second terminal mentioned above. The terminal device includes a processor and a memory. The memory stores at least one instruction, at least one piece of program code, a code set, or an instruction set. The at least one instruction, at least one piece of program code, code set, or instruction set is loaded and executed by the processor to achieve the above-mentioned... Figure 5 The corresponding embodiment involves a communication connection switching method.

[0195] Furthermore, embodiments of this application also provide a computer-readable storage medium storing at least one instruction, at least one piece of program code, a code set, or an instruction set. The at least one instruction, at least one piece of program code, a code set, or an instruction set is loaded and executed by a processor to implement the communication connection switching method involved in the above embodiments.

[0196] It should be understood that in the various embodiments of this application, the order of the above processes does not imply the order of execution. Some or all steps may be executed in parallel or sequentially. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0197] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0198] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0199] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed.

[0200] The modules described as separate components may or may not be physically separate. Similarly, the components shown as units may or may not be physical units; they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment, depending on actual needs. Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more modules can be integrated into one unit.

[0201] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, network device, or terminal, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.

[0202] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A communication connection switching method, characterized in that, include: The first terminal sends a link reconfiguration request message to the target access point, indicating a request to establish a soft access point. Receive a link reconfiguration response message sent by the target access point, the response message indicating that the first terminal agrees to establish a soft access point; The first terminal establishes a target soft access point based on the link reconfiguration response information. The first terminal receives a connection request sent by the second terminal to the target soft access point; The first terminal establishes a connection with the second terminal according to the connection request and returns connection response information to the second terminal. The connection response information is used to indicate whether the target soft access point and the second terminal have successfully connected or failed to connect. When the connection response information indicates that the target soft access point and the second terminal have successfully connected, if the first terminal detects that the connection request includes an AID that the target access point has pre-assigned to the second terminal, then the first terminal assigns the same connection identifier to the second terminal based on the AID value. The AID represents the connection identifier. Based on the connection identifier corresponding to the second terminal, the first terminal searches for the cached data of the second terminal that the target access point has pre-sent from the target storage area, and the first terminal sends the cached data to the second terminal. If the first terminal detects that the connection request does not include the AID pre-assigned by the target access point for the second terminal, it obtains the address of the second terminal from the connection request. Based on the address of the second terminal, the first terminal searches for the cached data of the second terminal pre-sent by the target access point in the target storage area, and sends the cached data to the second terminal. When the first terminal is about to terminate the established target soft access point, it sends a second redirection request to a third terminal that is already connected to the target soft access point. The second redirection request is used to instruct the third terminal to switch from the target soft access point to a new access point. The process of the third terminal establishing a connection with the new access point is as follows: if the second redirection request contains the security authentication information of the new access point, then the third terminal performs security authentication with the new access point based on the security authentication information. After the security authentication is passed, the third terminal sends a new connection request to the new access point to request to establish a connection with the new access point. Alternatively, after the security authentication is passed, the third terminal obtains the system message of the new access point and sends a connection request to the new access point according to the system message. The system message includes the SSID, BSSID, and performance data of the new access point. The performance data represents the supported bandwidth and rate.

2. The method as described in claim 1, characterized in that, The new access point is the target access point, and the second redirection request includes any one or more of the following parameters: Redirectionmode, BSSID, SSID, TBTT, and Securityinfo; wherein, Redirectionmode is used to indicate the redirection mode; BSSID is used to indicate the base service set identifier of the redirected access point; SSID is used to indicate the service set identifier of the redirected access point; TBTT is used to indicate the sending time of the broadcast message of the redirected access point; Securityinfo is used to indicate the security authentication information of the redirected access point; and Securityinfo is used to indicate the operation parameters of the redirected access point. In the second redirection request, the redirection access point is set to the new access point, the parameter Redirectionmode is set to 0, which is used to indicate that when the third terminal fails to connect to the new access point, it is prohibited to retry connecting back to the current access point; the parameter BSSID is set to the basic service set identifier of the new access point, the parameter SSID is set to the service set identifier of the new access point, the parameter TBTT is set to the time when the new access point will send the next broadcast message, and the parameter Securityinfo is set to the security authentication information of the new access point.

3. The method as described in claim 1, characterized in that, The method further includes: If the target soft access point still has target data packets that have not been successfully sent to the target terminal, the first terminal sends a data message carrying the target data packets to the new access point; wherein the target terminal is any one or more of the third terminals.

4. The method as described in claim 3, characterized in that, The data message also carries one or more of the following data: the connection identifier and address of the target terminal.

5. The method as described in claim 1, characterized in that, The link reconfiguration request message carries reconfiguration parameters, which include any one or more of the following: Reconfigurationtype, Linkelement, and Redirectionparameters; Reconfigurationtype is used to set the type of link reconfiguration, Linkelement is used to set link-related information, and Redirectionparameters is used to set redirection parameters; wherein, when the link reconfiguration type set by Reconfigurationtype is to establish a soft access point, the reconfiguration parameters include Redirectionparameters.

6. The method as described in claim 5, characterized in that, The Linkelement includes STAaddress and APaddress, wherein STAaddress is used to set the address of the first terminal, and APaddress is used to set the address of the target access point.

7. The method as described in claim 5, characterized in that, The Redirection parameters include any one or more of the following: SSID, BSSID, Beaconstarttime, Beaconinterval, Securityinfo, and Operating parameters; Among them, SSID is used to indicate the service set identifier of the soft access point, BSSID is used to indicate the basic service set identifier of the soft access point, Beaconstarttime is used to indicate the time when the soft access point starts sending broadcast messages, Beaconperiod is used to indicate the period during which the soft access point sends broadcast messages, Beaconinterval is used to indicate the interval between broadcast messages sent by the soft access point, Securityinfo is used to indicate the security information of the soft access point, and Operatingparameters is used to indicate the operating parameters of the soft access point.

8. The method as described in claim 7, characterized in that, The Securityinfo includes one or more of the following parameters: MIC and Anounce, wherein the MIC is used to indicate the information integrity verification code, and the Anounce is used to indicate the authentication random code of the soft access point; the Operatingparameters include one or more of the following parameters: Operatingclass and Channelnumber, wherein the Operatingclass is used to indicate the operating level, and the Channelnumber is used to indicate the channel coding.

9. A communication connection switching method, characterized in that, include: The second terminal receives the first redirection request sent by the target access point; The second terminal sends a connection request to the target soft access point belonging to the first terminal according to the instruction of the first redirection request; The second terminal receives the connection response information sent by the first terminal; The connection response information is used to indicate whether the target soft access point and the second terminal have successfully connected or failed to connect. When the connection response information indicates that the target soft access point and the second terminal have successfully connected, if the first terminal detects that the connection request includes an AID that the target access point has pre-assigned to the second terminal, then the first terminal assigns the same connection identifier to the second terminal based on the AID value. The AID represents the connection identifier. Based on the connection identifier corresponding to the second terminal, the first terminal searches for the cached data of the second terminal that the target access point has pre-sent from the target storage area, and the first terminal sends the cached data to the second terminal. If the first terminal detects that the connection request does not include the AID pre-assigned by the target access point for the second terminal, it obtains the address of the second terminal from the connection request. Based on the address of the second terminal, the first terminal searches for the cached data of the second terminal pre-sent by the target access point in the target storage area, and sends the cached data to the second terminal. When the first terminal is about to terminate the established target soft access point, it sends a second redirection request to a third terminal that is already connected to the target soft access point. The second redirection request is used to instruct the third terminal to switch from the target soft access point to a new access point. The process of the third terminal establishing a connection with the new access point is as follows: if the second redirection request contains the security authentication information of the new access point, then the third terminal performs security authentication with the new access point based on the security authentication information. After the security authentication is passed, the third terminal sends a new connection request to the new access point to request to establish a connection with the new access point. Alternatively, after the security authentication is passed, the third terminal obtains the system message of the new access point and sends a connection request to the new access point according to the system message. The system message includes the SSID, BSSID, and performance data of the new access point. The performance data represents the supported bandwidth and rate.

10. The method as described in claim 9, characterized in that, The method further includes: The second terminal sends a data transmission request to the target device connected to the target access point. The data transmission request carries a data packet cached by the second terminal and transmission parameters. The transmission parameters include: parameter DA, parameter SA, parameter TA, and parameter RA. Parameter DA is set to the address of the target device, parameter SA is set to the address of the second terminal, parameter TA is set to the address of the soft access point belonging to the first terminal, and parameter RA is set to the address of the access point to which the target device is connected.

11. The method as described in claim 9, characterized in that, The first redirection request includes one or more of the following parameters: Redirection mode, BSSID, SSID, TBTT, Security info, and Operating parameters; wherein, Redirection mode indicates the redirection mode; BSSID indicates the base service set identifier of the redirected access point; SSID indicates the service set identifier of the redirected access point; TBTT indicates the sending time of the broadcast message of the redirected access point; Security info indicates the security authentication information of the redirected access point; and Security info indicates the operating parameters of the redirected access point; in the first redirection request, the redirected access point is set as a target soft access point belonging to the first terminal.

12. The method as described in claim 11, characterized in that, Before sending a connection request to the target soft access point belonging to the first terminal, the method further includes: the second terminal obtaining the security authentication information of the target soft access point, and performing security authentication with the target soft access point based on the security authentication information; After successful security authentication, the second terminal sends a connection request to the target soft access point belonging to the first terminal.

13. The method as described in claim 11, characterized in that, The method further includes: If the connection response information indicates that the soft access point has failed to connect to the second terminal, the second terminal performs the target operation according to the value of Redirectionmode; Wherein, if the value of Redirectionmode is a first preset value, the target operation is: after waiting for a specified time, continue to send connection requests to the target soft access point belonging to the first terminal until after the target number of attempts, if a connection is still not successfully established with the soft access point, then stop sending connection requests to the target soft access point. If the value of Redirectionmode is a second preset value, then the target operation is to send a connection request to the target access point.

14. A communication connection switching device, characterized in that, include: The communication module is used to send a link reconfiguration request message to the target access point, the request message indicating a request to establish a soft access point; The communication module is also used to receive a link reconfiguration response message sent by the target access point, the response message indicating that the first terminal agrees to establish a soft access point; The processing module is used to establish a target soft access point based on the link reconfiguration response information; The communication module is also used to receive a connection request sent by the second terminal to the target soft access point; The processing module is further configured to establish a connection with the second terminal according to the connection request, and return connection response information to the second terminal through the communication module. The connection response information is used to indicate whether the target soft access point has successfully connected with the second terminal or the connection has failed. When the connection response information indicates that the target soft access point has successfully connected with the second terminal, if the first terminal detects that the connection request includes an AID pre-assigned by the target access point for the second terminal, then the first terminal assigns the same connection identifier to the second terminal based on the AID value. The AID represents the connection identifier. Based on the connection identifier corresponding to the second terminal, the first terminal searches for the cached data of the second terminal pre-sent by the target access point in the target storage area, and the first terminal sends the cached data to the second terminal. If the first terminal detects that the connection request does not include the AID pre-assigned to the second terminal by the target access point, it obtains the address of the second terminal from the connection request. Based on the address of the second terminal, the first terminal searches for the cached data of the second terminal pre-sent by the target access point in the target storage area. The first terminal sends the cached data to the second terminal. When the first terminal is about to terminate the established target soft access point, it sends a second redirection request to a third terminal already connected to the target soft access point. The second redirection request is used to instruct the third terminal to switch from the target soft access point to a new access point. The process of the third terminal establishing a connection with the new access point is as follows: if the second redirection request contains the security authentication information of the new access point, it performs security authentication with the new access point based on the security authentication information. After the security authentication is passed, it sends a new connection request to the new access point to request to establish a connection with the new access point. Alternatively, after the security authentication is passed, the third terminal obtains the system message of the new access point and sends a connection request to the new access point based on the system message. The system message includes the SSID, BSSID, and performance data of the new access point. The performance data represents the supported bandwidth and rate.

15. A communication connection switching device, characterized in that, include: The communication module is used to receive the first redirection request sent by the target access point; The processing module is configured to send a connection request to a target soft access point belonging to the first terminal via the communication module, according to the indication of the first redirection request. The communication module is further configured to receive connection response information sent by the first terminal; the connection response information is used to indicate whether the target soft access point and the second terminal have successfully connected or failed to connect. When the connection response information indicates that the target soft access point and the second terminal have successfully connected, if the first terminal detects that the connection request includes an AID pre-assigned by the target access point for the second terminal, then the first terminal assigns the same connection identifier to the second terminal based on the AID value, where the AID represents the connection identifier. Based on the connection identifier corresponding to the second terminal, the first terminal searches for the cached data of the second terminal pre-sent by the target access point in the target storage area, and the first terminal sends the cached data to the second terminal. If the first terminal detects that the connection request does not include the AID pre-assigned by the target access point for the second terminal, it obtains the address of the second terminal from the connection request. Based on the address of the second terminal, the first terminal searches for the cached data of the second terminal pre-sent by the target access point in the target storage area, and sends the cached data to the second terminal. When the first terminal is about to terminate the established target soft access point, it sends a second redirection request to a third terminal already connected to the target soft access point. The second redirection request is used to instruct the third terminal to switch from the target soft access point to a new access point. The process of the third terminal establishing a connection with the new access point is as follows: if the second redirection request contains the security authentication information of the new access point, it performs security authentication with the new access point based on the security authentication information. After the security authentication is passed, it sends a new connection request to the new access point to request to establish a connection with the new access point. Alternatively, after the security authentication is passed, the third terminal obtains the system message of the new access point and sends a connection request to the new access point based on the system message. The system message includes the SSID, BSSID, and performance data of the new access point, and the performance data represents the supported bandwidth and rate.

16. A terminal device, characterized in that, The terminal device includes a processor and a memory. The memory stores at least one instruction, at least one piece of program code, a code set, or an instruction set. The at least one instruction, at least one piece of program code, a code set, or an instruction set is loaded and executed by the processor to implement the communication connection switching method as described in any one of claims 1-10.

17. A terminal device, characterized in that, The terminal device includes a processor and a memory. The memory stores at least one instruction, at least one piece of program code, a code set, or an instruction set. The at least one instruction, at least one piece of program code, a code set, or an instruction set is loaded and executed by the processor to implement the communication connection switching method as described in any one of claims 9-13.

18. A computer-readable storage medium, characterized in that, The readable storage medium stores at least one instruction, at least one piece of program code, a code set, or an instruction set, wherein the at least one instruction, at least one piece of program code, a code set, or an instruction set is loaded and executed by a processor to implement the method as described in any one of claims 1-13.

Citation Information

Patent Citations

  • Migration method, access point equipment, terminal equipment and wireless system

    CN101772112A

  • TDLS setup control from access point

    US20170171895A1