Single-module multi-type WiFi connection switching method, system and related equipment

By enabling time-division multiplexing connection switching of multiple types of WiFi channels on a single module device, the problem of incompatibility between different protocols in WiFi networks is solved, and more efficient data transmission and connection compatibility between devices are achieved.

CN119110433BActive Publication Date: 2025-10-28ACTIONS MICROELECTRONICS
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411350340.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2025-10-28
Estimated Expiration
2044-09-26

AI Technical Summary

Technical Problem

The incompatibility of WiFi P2P, WiFi Softap, and WiFi Direct connection methods among different devices in existing WiFi networks makes the connection process complex and inconvenient.

Method used

A single-module multi-type WiFi connection switching method is adopted, which enables data connections using WiFi P2P, WiFi Direct, and WiFi SoftAP protocols on different WiFi channels, and uses time-division multiplexing to listen for connection requests, and performs data transmission and switching according to the request type.

Benefits of technology

It enables adaptive switching and automatic protocol matching for different WiFi connection methods, improving compatibility between devices and user experience, and simplifying the connection process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119110433B_ABST
    Figure CN119110433B_ABST
Patent Text Reader

Abstract

This invention relates to a method, system, and related device for switching between multiple types of WiFi connections using a single module. The method includes: initializing and activating the WiFi module of the device; enabling a first data connection based on a WiFi P2P protocol on a first WiFi channel, simultaneously enabling a second data connection based on a WiFi Direct protocol on a second WiFi channel, and enabling a third data connection based on a WiFi Softap on a third WiFi channel; using a time-division multiplexing approach, listening for connection requests on the first, second, and third WiFi channels respectively using the first, second, and third data connections; and transmitting data based on the results of the connection request listening on different WiFi channels. This invention provides better compatibility of the device across different WiFi connection types and enables automatic protocol matching, thus improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of wireless network technology, and in particular to a method, system and related equipment for switching between multiple types of WiFi connections using a single module. Background Technology

[0002] WiFi P2P (Peer-to-Peer) is a protocol released by the WiFi Alliance that allows devices in a WiFi wireless network to connect to each other without going through a wireless router, enabling direct point-to-point communication between two devices via the WiFi network. The principle behind this technology is similar to access point (AP)-based communication; devices supporting WiFi P2P can transfer data to each other within the same group.

[0003] However, the WiFi P2P protocol is a complex and time-consuming process, involving basic steps such as discovery, negotiation, and configuration. Different devices are prone to negotiation and configuration failures, or connection problems due to protocol incompatibility. Related technologies have proposed WiFi Direct to optimize traditional WiFi device connection methods. It achieves a direct device connection method different from the WiFi P2P protocol. Compared to WiFi P2P, WiFi Direct reduces the connection process, thereby optimizing connection efficiency.

[0004] In addition, existing technologies also include methods for data transmission within WiFi using WiFi Softap. WiFi Softap is a technology that implements AP functionality through software. It can replace the AP in a wireless network, thereby reducing the cost of wireless networking. Wireless devices find the SSID of the WiFi Softap and establish a direct connection by inputting the PSK, thus enabling data transmission.

[0005] Clearly, the WiFi P2P, WiFi Softap, and WiFi Direct methods mentioned above use different network protocols. Therefore, network connections achieved using these methods are not compatible with each other, and it is difficult for the same device to use both connection methods for data transmission simultaneously, which is inconvenient for users. Summary of the Invention

[0006] This invention provides a method, system, and related equipment for switching between multiple types of WiFi connections using a single module, aiming to solve the technical problems of protocol incompatibility and inconvenience in use when connecting devices within an existing WiFi network.

[0007] To address the aforementioned technical problems, in a first aspect, the present invention provides a method for switching between multiple types of WiFi connections using a single module, comprising the following steps:

[0008] S101. Initialize the device's WiFi module and enable the WiFi module;

[0009] S102. According to the WiFi module, a first data connection based on the WiFi P2P protocol is enabled based on the first WiFi channel, a second data connection based on the WiFi Direct protocol is enabled based on the second WiFi channel, and a third data connection based on the WiFi SoftAP is enabled based on the third WiFi channel.

[0010] S103. Based on time-division multiplexing, the first data connection is used to listen for connection requests on the first WiFi channel, while the second data connection is used to listen for connection requests on the second WiFi channel, and the third data connection is used to listen for connection requests on the third WiFi channel.

[0011] S104. Data transmission is performed based on the connection request monitoring results of the first WiFi channel, the second WiFi channel, and the third WiFi channel, wherein:

[0012] 1041. When the first data connection detects a connection request on the first WiFi channel, the second data connection and the third data connection are paused, and data transmission based on the first data connection is performed with the device that sent the connection request based on the WiFi module.

[0013] 1042. When the second data connection detects a connection request on the second WiFi channel, the first data connection and the third data connection are paused, and data transmission is performed with the device that sent the connection request based on the second data connection, using the WiFi module.

[0014] 1043. When the third data connection detects a connection request on the third WiFi channel, it pauses the first data connection and the second data connection, and performs data transmission with the device that sent the connection request based on the third data connection, using the WiFi module.

[0015] Furthermore, the single-module multi-type WiFi connection switching method also includes the following steps:

[0016] S105. After completing the data transmission of the first data connection, the second data connection, or the third data connection based on the WiFi module, return to step S103.

[0017] Furthermore, in step S103, when requesting to listen on the second WiFi channel using the second data connection, the listened data is preset action frame data, which is based on IEEE 802.11 format frames, wherein:

[0018] The header of the preset action frame data includes a unique organizational identifier used to identify the direct connection between the WiFi module and the device sending the connection request. The data of the preset action frame data includes the action frame creation time, the length of the data to be received, and the queuing time for transmission delay synchronization.

[0019] Furthermore, in step 1042, when data transmission is performed based on the second data connection using the WiFi module, the transmitted data is preset data frame data, which is based on the IEEE 802.11 format frame, wherein:

[0020] The To DS and From DS fields of the preset data frame are set to 0. The header of the preset data frame includes a unique identifier for identifying the organization that enables direct connection between the WiFi module and the device sending the connection request. The data of the preset data frame includes a transmission number and communication data corresponding to the transmission number.

[0021] Furthermore, the first WiFi channel includes one WiFi channel, and the second WiFi channel includes at least one WiFi channel.

[0022] Secondly, the present invention also provides a single-module multi-type WiFi connection switching system, comprising:

[0023] An initialization module is used to initialize the device's WiFi module and enable the WiFi module.

[0024] The waiting module is used to, according to the WiFi module, enable a first data connection based on the WiFi P2P protocol based on the first WiFi channel, enable a second data connection based on the WiFi Direct protocol based on the second WiFi channel, and enable a third data connection based on the WiFi SoftAP based on the third WiFi channel;

[0025] The monitoring module is used to monitor connection requests on the first WiFi channel using the first data connection in a time-division multiplexing manner, while simultaneously monitoring connection requests on the second WiFi channel using the second data connection, and monitoring connection requests on the third WiFi channel using the third data connection.

[0026] The transmission module is used to transmit data based on the results of listening for connection requests on the first WiFi channel, the second WiFi channel, and the third WiFi channel, wherein:

[0027] When the first data connection detects a connection request on the first WiFi channel, the second data connection and the third data connection are paused, and data transmission is performed with the device that sent the connection request based on the first data connection, using the WiFi module.

[0028] When the second data connection detects a connection request on the second WiFi channel, the first data connection and the third data connection are paused, and data transmission is performed with the device that sent the connection request based on the second data connection, using the WiFi module.

[0029] When the third data connection detects a connection request on the third WiFi channel, it pauses the first and second data connections and, based on the WiFi module, performs data transmission with the device that sent the connection request based on the third data connection.

[0030] Furthermore, the single-module multi-type WiFi connection switching system also includes:

[0031] The self-switching module is used to return to the monitoring module after completing the data transmission of the first data connection, the second data connection, or the third data connection based on the WiFi module.

[0032] Thirdly, the present invention also provides a computer device, including: a memory, a processor, and a single-module multi-type WiFi connection switching program stored in the memory and executable on the processor, wherein when the processor executes the single-module multi-type WiFi connection switching program, it implements the steps of the single-module multi-type WiFi connection switching method as described in any of the above embodiments.

[0033] Fourthly, the present invention also provides a computer-readable storage medium storing a single-module multi-type WiFi connection switching program, wherein when the single-module multi-type WiFi connection switching program is executed by a processor, it implements the steps of the single-module multi-type WiFi connection switching method as described in any of the above embodiments.

[0034] The beneficial effect achieved by this invention lies in proposing a method that can adaptively switch between WiFi Direct, WiFi Softap, and WiFi P2P connections. This method is based on a single WiFi module implementing multiple WiFi connection modes in different channels. It listens for connection requests from external devices through time-division multiplexing and implements corresponding WiFi Direct data connection, WiFi Softap, WiFi P2P data transmission, and active switching after transmission is completed according to the request type. Devices based on this method have better compatibility in WiFi connection types and achieve automatic protocol matching connection, thus improving the user experience. Attached Figure Description

[0035] Figure 1 This is a flowchart illustrating the steps of the single-module multi-type WiFi connection switching method provided in this embodiment of the invention.

[0036] Figure 2 This is a schematic diagram of the structure of a single-module multi-type WiFi connection switching system provided in an embodiment of the present invention;

[0037] Figure 3 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. Detailed Implementation

[0038] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0039] Please refer to Figure 1 , Figure 1 This is a flowchart illustrating the steps of a single-module multi-type WiFi connection switching method provided in an embodiment of the present invention. The single-module multi-type WiFi connection switching method includes the following steps:

[0040] S101. Initialize the device's WiFi module and enable the WiFi module;

[0041] S102. According to the WiFi module, a first data connection based on the WiFi P2P protocol is enabled based on the first WiFi channel, a second data connection based on the WiFi Direct protocol is enabled based on the second WiFi channel, and a third data connection based on the WiFi Softap is enabled based on the third WiFi channel.

[0042] S103. Based on time-division multiplexing, the first data connection is used to listen for connection requests on the first WiFi channel, while the second data connection is used to listen for connection requests on the second WiFi channel, and the third data connection is used to listen for connection requests on the third WiFi channel.

[0043] S104. Data transmission is performed based on the connection request monitoring results of the first WiFi channel, the second WiFi channel, and the third WiFi channel, wherein:

[0044] 1041. When the first data connection detects a connection request on the first WiFi channel, the second data connection and the third data connection are paused, and data transmission based on the first data connection is performed with the device that sent the connection request based on the WiFi module.

[0045] 1042. When the second data connection detects a connection request on the second WiFi channel, the first data connection and the third data connection are paused, and data transmission is performed with the device that sent the connection request based on the second data connection, using the WiFi module.

[0046] 1043. When the third data connection detects a connection request on the third WiFi channel, it pauses the first data connection and the second data connection, and performs data transmission with the device that sent the connection request based on the third data connection, using the WiFi module.

[0047] Following step S104 above, the single-module multi-type WiFi connection switching method further includes the following steps:

[0048] S105. After completing the data transmission of the first data connection, the second data connection, or the third data connection based on the WiFi module, return to step S103.

[0049] Specifically, in step S103, when requesting listening on the second WiFi channel using the second data connection, the listened data is preset action frame data, which is based on the IEEE 802.11 format frame, wherein:

[0050] The header of the preset action frame data includes a unique organizational identifier used to identify the direct connection between the WiFi module and the device sending the connection request. The data of the preset action frame data includes the action frame creation time, the length of the data to be received, and the queuing time for transmission delay synchronization.

[0051] Correspondingly, in step 1042, when data transmission is performed based on the second data connection using the WiFi module, the transmitted data is preset data frame data, which is based on the IEEE 802.11 format frame, wherein:

[0052] The To DS and From DS fields of the preset data frame are set to 0. The header of the preset data frame includes an Organization Unique Identifier (OUI) for identifying a direct connection between the WiFi module and the device sending the connection request. The data of the preset data frame includes a transmission number and communication data corresponding to the transmission number.

[0053] Specifically, please refer to Tables 1 and 2, which are the data packet fields of the preset action frame data and preset data frame data provided in the embodiments of the present invention, respectively. The preset action frame data and the preset data frame data are both implemented based on the IEEE 802.11 format frame.

[0054] Table 1 Preset Action Frame Data Packet Fields

[0055]

[0056] As shown in Table 1 above, the preset action frame data in this embodiment of the invention uses a custom IEEE 802.11 action frame. Based on this protocol, an IEEE 802.11 frame with any payload can be implemented using an organization-unique identifier during implementation. The action frame data implemented based on IEEE 802.11 in this embodiment of the invention can extend a fixed-size header and multiple IE fields. The fixed header mainly includes static values, such as a specific BSSID, OUI, version, and type. The IE consists of a 1-byte type field and a 2-byte length field, with the length field indicating the length of subsequent data frames (length of data to be received). Two timestamps represent the action frame creation time. Based on the timestamps, it can be determined whether the information contained in the action frame data is up-to-date (TTx, Target), and the actual transmission delay synchronization queuing time (TTx, PHY). The difference between the creation time and the queuing time is close to the transmission delay of the transmitting device, which can be used to achieve data synchronization during implementation.

[0057] Table 2 Preset Data Frame Data Packet Fields

[0058]

[0059]

[0060] Similarly, this embodiment of the invention uses IEEE 802.11 data frames for data transmission. In the Framecontrol, the To DS and From DS flags are set to 0, meaning that in actual data transmission, these data frames will be directly addressed, and the three address fields are used for destination, source, and destination, as well as the BSSID. As shown in Table 2 above, the BSSID in the data frame is always a fixed address, used to assign an OUI to the WiFi module or the corresponding connected device; the LLC header contains different OUIs and protocol IDs in the SNAP section, and these IEs are part of the IEEE 802.11 standard; the data header mainly consists of a sequence of transmission protocol number and EtherType. It can be seen that, excluding the protocol standard portion, the data header and the actually transmitted communication data (Data) constitute the data frame data in this embodiment of the invention.

[0061] In this embodiment of the invention, the device containing the WiFi module acts as a receiving device. After receiving the preset action frame data, it establishes a data connection with the corresponding device that sent the preset action frame data, thereby completing a direct WiFi-based interaction.

[0062] The protocol-matching transmission based on different types of WiFi transmission protocols (WiFi Direct, WiFi Softap, and P2P protocol) enables devices using this method to be compatible with different types of WiFi connection requests. For screen mirroring receiving devices, the method of this embodiment provides multiple connection methods for screen mirroring, and different connection methods can be switched arbitrarily during use, improving the convenience of screen mirroring for users. Furthermore, the WiFi Direct method described above reduces the discovery and negotiation process compared to P2P protocol transmission, improving the transmission efficiency of screen mirroring.

[0063] In this embodiment of the invention, the first WiFi channel includes one WiFi channel, and the second WiFi channel includes at least one WiFi channel. It is understood that this embodiment employs a time-division multiplexing method for request data monitoring. Therefore, the monitoring of the first WiFi channel and the second WiFi channel is performed simultaneously by the WiFi module on different channels. This design ensures high real-time performance even in scenarios where WiFi P2P, WiFi Softap, or WiFi Direct are compatible (at the same device completing different types of WiFi data transmission).

[0064] The beneficial effect achieved by this invention lies in proposing a method that can adaptively switch between WiFi Direct, WiFi Softap, and WiFi P2P connections. This method is based on a single WiFi module implementing multiple WiFi connection modes in different channels. It listens for connection requests from external devices through time-division multiplexing and implements corresponding WiFi Direct data connection, WiFi Softap, WiFi P2P data transmission, and active switching after transmission is completed according to the request type. Devices based on this method have better compatibility in WiFi connection types and achieve automatic protocol matching connection, thus improving the user experience.

[0065] This invention also provides a single-module multi-type WiFi connection switching system 200, please refer to... Figure 2 , Figure 2 This is a schematic diagram of a single-module multi-type WiFi connection switching system provided in an embodiment of the present invention. The single-module multi-type WiFi connection switching system 200 includes:

[0066] Initialization module 201 is used to initialize the device's WiFi module and enable the WiFi module;

[0067] The waiting module 202 is used to, according to the WiFi module, enable a first data connection based on the WiFi P2P protocol based on the first WiFi channel, enable a second data connection based on the WiFi Direct protocol based on the second WiFi channel, and enable a third data connection based on the WiFi Softap based on the third WiFi channel;

[0068] The monitoring module 203 is used to monitor connection requests on the first WiFi channel using the first data connection in a time-division multiplexing manner, while simultaneously monitoring connection requests on the second WiFi channel using the second data connection, and monitoring connection requests on the third WiFi channel using the third data connection.

[0069] Transmission module 204 is configured to transmit data based on the results of listening for connection requests on the first WiFi channel, the second WiFi channel, and the third WiFi channel, wherein:

[0070] When the first data connection detects a connection request on the first WiFi channel, the second data connection and the third data connection are paused, and data transmission is performed with the device that sent the connection request based on the first data connection, using the WiFi module.

[0071] When the second data connection detects a connection request on the second WiFi channel, the first data connection and the third data connection are paused, and data transmission is performed with the device that sent the connection request based on the second data connection, using the WiFi module.

[0072] When the third data connection detects a connection request on the third WiFi channel, it pauses the first and second data connections and, based on the WiFi module, performs data transmission with the device that sent the connection request based on the third data connection.

[0073] Furthermore, the single-module multi-type WiFi connection switching system also includes:

[0074] The self-switching module 205 is used to return to the monitoring module 203 after completing the data transmission of the first data connection, the second data connection, or the third data connection based on the WiFi module.

[0075] The single-module multi-type WiFi connection switching system 200 can implement the steps in the single-module multi-type WiFi connection switching method in the above embodiments and achieve the same technical effect. Refer to the description in the above embodiments, which will not be repeated here.

[0076] This invention also provides a computer device, please refer to... Figure 3 , Figure 3 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. The computer device 300 includes: a memory 302, a processor 301, and a single-module multi-type WiFi connection switching program stored in the memory 302 and capable of running on the processor 301.

[0077] The processor 301 calls the single-module multi-type WiFi connection switching program stored in the memory 302, and executes the steps in the single-module multi-type WiFi connection switching method provided in this embodiment of the invention. Please refer to... Figure 1 Specifically, it includes the following steps:

[0078] S101. Initialize the device's WiFi module and enable the WiFi module;

[0079] S102. According to the WiFi module, a first data connection based on the WiFi P2P protocol is enabled based on the first WiFi channel, a second data connection based on the WiFi Direct protocol is enabled based on the second WiFi channel, and a third data connection based on the WiFi Softap is enabled based on the third WiFi channel.

[0080] S103. Based on time-division multiplexing, the first data connection is used to listen for connection requests on the first WiFi channel, while the second data connection is used to listen for connection requests on the second WiFi channel, and the third data connection is used to listen for connection requests on the third WiFi channel.

[0081] S104. Data transmission is performed based on the connection request monitoring results of the first WiFi channel, the second WiFi channel, and the third WiFi channel, wherein:

[0082] 1041. When the first data connection detects a connection request on the first WiFi channel, the second data connection and the third data connection are paused, and data transmission based on the first data connection is performed with the device that sent the connection request based on the WiFi module.

[0083] 1042. When the second data connection detects a connection request on the second WiFi channel, the first data connection and the third data connection are paused, and data transmission is performed with the device that sent the connection request based on the second data connection, using the WiFi module.

[0084] 1043. When the third data connection detects a connection request on the third WiFi channel, it pauses the first data connection and the second data connection, and performs data transmission with the device that sent the connection request based on the third data connection, using the WiFi module.

[0085] Following step S104 above, the single-module multi-type WiFi connection switching method further includes the following steps:

[0086] S105. After completing the data transmission of the first data connection, the second data connection, or the third data connection based on the WiFi module, return to step S103.

[0087] Specifically, in step S103, when requesting listening on the second WiFi channel using the second data connection, the listened data is preset action frame data, which is based on the IEEE 802.11 format frame, wherein:

[0088] The header of the preset action frame data includes a unique organizational identifier used to identify the direct connection between the WiFi module and the device sending the connection request. The data of the preset action frame data includes the action frame creation time, the length of the data to be received, and the queuing time for transmission delay synchronization.

[0089] Correspondingly, in step 1042, when data transmission is performed based on the second data connection using the WiFi module, the transmitted data is preset data frame data, which is based on the IEEE 802.11 format frame, wherein:

[0090] The To DS and From DS fields of the preset data frame are set to 0. The header of the preset data frame includes a unique identifier for identifying the organization that enables direct connection between the WiFi module and the device sending the connection request. The data of the preset data frame includes a transmission number and communication data corresponding to the transmission number.

[0091] In this embodiment of the invention, the first WiFi channel includes one WiFi channel, and the second WiFi channel includes at least one WiFi channel.

[0092] The computer device 300 provided in this embodiment of the invention can implement the steps in the single-module multi-type WiFi connection switching method in the above embodiments, and can achieve the same technical effect. Refer to the description in the above embodiments, which will not be repeated here.

[0093] This invention also provides a computer-readable storage medium storing a single-module multi-type WiFi connection switching program. When executed by a processor, this single-module multi-type WiFi connection switching program implements the various processes and steps of the single-module multi-type WiFi connection switching method provided in this invention and achieves the same technical effect. To avoid repetition, it will not be described again here.

[0094] Those skilled in the art will understand that implementing all or part of the processes in the above embodiments can be accomplished by instructing related hardware (such as a mobile phone, computer, server, air conditioner, or network device, etc.) through a single-module multi-type WiFi connection switching program. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0095] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0096] The embodiments of the present invention have been described above with reference to the accompanying drawings. The disclosed embodiments are merely preferred embodiments of the present invention. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many equivalent changes in form without departing from the spirit and scope of the claims of the present invention, and all such changes are within the protection scope of the present invention.

Claims

1. A method for switching between multiple types of WiFi connections using a single module, characterized in that, The following steps are involved: S101. Initialize the device's WiFi module and enable the WiFi module; S102. According to the WiFi module, a first data connection based on the WiFi P2P protocol is enabled based on the first WiFi channel, a second data connection based on the WiFi Direct protocol is enabled based on the second WiFi channel, and a third data connection based on the WiFi Softap is enabled based on the third WiFi channel. S103. Based on time-division multiplexing, the first data connection is used to listen for connection requests on the first WiFi channel, while the second data connection is used to listen for connection requests on the second WiFi channel, and the third data connection is used to listen for connection requests on the third WiFi channel. S104. Data transmission is performed based on the results of the connection request monitoring of the first WiFi channel, the second WiFi channel, and the third WiFi channel, wherein: 1041. When the first data connection detects a connection request on the first WiFi channel, the second data connection and the third data connection are paused, and data transmission based on the first data connection is performed with the device that sent the connection request based on the WiFi module. 1042. When the second data connection detects a connection request on the second WiFi channel, the first data connection and the third data connection are paused, and data transmission is performed with the device that sent the connection request based on the second data connection, using the WiFi module. 1043. When the third data connection detects a connection request on the third WiFi channel, it pauses the first data connection and the second data connection, and performs data transmission with the device that sent the connection request based on the third data connection, using the WiFi module.

2. The single-module multi-type WiFi connection switching method as described in claim 1, characterized in that, The single-module multi-type WiFi connection switching method further includes the following steps: S105. After completing the data transmission of the first data connection, the second data connection, or the third data connection based on the WiFi module, return to step S103.

3. The single-module multi-type WiFi connection switching method as described in claim 1, characterized in that, In step S103, when requesting to listen on the second WiFi channel using the second data connection, the listened data is preset action frame data, which is based on the IEEE 802.11 format frame, wherein: The header of the preset action frame data includes a unique organizational identifier used to identify the direct connection between the WiFi module and the device sending the connection request. The data of the preset action frame data includes the action frame creation time, the length of the data to be received, and the queuing time for transmission delay synchronization.

4. The single-module multi-type WiFi connection switching method as described in claim 3, characterized in that, In step 1042, when data transmission is performed based on the second data connection using the WiFi module, the transmitted data is preset data frame data, which is based on the IEEE 802.11 format frame, wherein: The To DS and From DS fields of the preset data frame are set to 0. The header of the preset data frame includes a unique identifier for identifying the organization that enables direct connection between the WiFi module and the device sending the connection request. The data of the preset data frame includes a transmission number and communication data corresponding to the transmission number.

5. The single-module multi-type WiFi connection switching method as described in claim 1, characterized in that, The first WiFi channel includes one WiFi channel, and the second WiFi channel includes at least one WiFi channel.

6. A single-module multi-type WiFi connection switching system, characterized in that, include: An initialization module is used to initialize the device's WiFi module and enable the WiFi module. The waiting module is used to, according to the WiFi module, enable a first data connection based on the WiFi P2P protocol based on the first WiFi channel, enable a second data connection based on the WiFi Direct protocol based on the second WiFi channel, and enable a third data connection based on the WiFi Softap based on the third WiFi channel; The monitoring module is used to monitor connection requests on the first WiFi channel using the first data connection in a time-division multiplexing manner, while simultaneously monitoring connection requests on the second WiFi channel using the second data connection, and monitoring connection requests on the third WiFi channel using the third data connection. The transmission module is used to transmit data based on the results of listening for connection requests on the first WiFi channel, the second WiFi channel, and the third WiFi channel, wherein: When the first data connection detects a connection request on the first WiFi channel, the second data connection and the third data connection are paused, and data transmission is performed with the device that sent the connection request based on the first data connection, using the WiFi module. When the second data connection detects a connection request on the second WiFi channel, the first data connection and the third data connection are paused, and data transmission is performed with the device that sent the connection request based on the second data connection, using the WiFi module. When the third data connection detects a connection request on the third WiFi channel, it pauses the first and second data connections and, based on the WiFi module, performs data transmission with the device that sent the connection request based on the third data connection.

7. The single-module multi-type WiFi connection switching system as described in claim 6, characterized in that, The single-module multi-type WiFi connection switching system also includes: The self-switching module is used to return to the monitoring module after completing the data transmission of the first data connection, the second data connection, or the third data connection based on the WiFi module.

8. A computer device, characterized in that, include: The system includes a memory, a processor, and a single-module multi-type WiFi connection switching program stored in the memory and executable on the processor. When the processor executes the single-module multi-type WiFi connection switching program, it implements the steps of the single-module multi-type WiFi connection switching method as described in any one of claims 1-5.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a single-module multi-type WiFi connection switching program, which, when executed by a processor, implements the steps of the single-module multi-type WiFi connection switching method as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Infrared data transmission method, device and system and related equipment

    CN113299056A

  • Multiple pairing

    US20220191954A1