Data transmission method and related device

In the mobile phone cloning scenario, the bandwidth in multi-link transmission is flexibly adjusted according to the received interference and radar signal conditions, which solves the problem of slow data transmission rate and achieves efficient data transmission.

CN119497259APending Publication Date: 2025-02-21HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311030271.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-15
Publication Date
2025-02-21

AI Technical Summary

Technical Problem

In the mobile phone cloning scenario, when data transmission between old devices and new devices is transmitted through multiple links, there is a problem of slow data transmission rate.

Method used

By using different bandwidths in the first Wifi link and the second Wifi link, the bandwidth is flexibly adjusted according to the received interference situation and the presence of radar signals to improve data transmission efficiency.

Benefits of technology

It realizes the selection of the appropriate bandwidth for data transmission in different scenarios, improves data transmission efficiency, reduces the impact of interference on data, and meets the requirements of priority transmission of radar signals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119497259A_ABST
    Figure CN119497259A_ABST
Patent Text Reader

Abstract

The invention provides a data transmission method and a related device, which are applied to the technical field of terminals. The method is applied to a first terminal device, and comprises the following steps: establishing a first Wifi link and a second Wifi link with a second terminal device; at the first moment, in the first Wifi link, using the first bandwidth to carry out data transmission with the second terminal device, and in the second Wifi link, using the second bandwidth to carry out data transmission with the second terminal device; after the first moment, based on whether the interference received in the first bandwidth exceeds a preset threshold, determining whether to perform data transmission with the second terminal device by using a third bandwidth in the first Wifi link; and after the first moment, whether the fourth bandwidth is used for data transmission with the second terminal equipment in the second Wifi link is determined based on whether the radar signal exists in the fourth bandwidth, so that the data transmission efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a data transmission method and related devices. Background Art

[0002] In the mobile phone cloning scenario, the old device and the new device are connected through a hotspot, and data can be transmitted between the old device and the new device through MultiLink Operation (MLO).

[0003] At present, dual-link transmission can be performed between old devices and new devices through 2.4G link and 5G link. However, there is a problem of slow data transmission rate. Summary of the invention

[0004] The present application provides a data transmission method and related devices, which are applied to the field of terminal technology. In the present application, when data transmission is performed through multiple links, it is beneficial to improve data transmission efficiency.

[0005] In a first aspect, the present application proposes a data transmission method, including: a first terminal device establishes a first Wifi link and a second Wifi link with a second terminal device, and the first Wifi link and the second Wifi link use different communication formats; at a first moment, the first terminal device uses a first bandwidth in the first Wifi link to perform data transmission with the second terminal device, and the first terminal device uses a second bandwidth in the second Wifi link to perform data transmission with the second terminal device; at a second moment, the interference received by the first terminal device within the first bandwidth exceeds a preset threshold, and the first terminal device uses a third bandwidth in the first Wifi link to perform data transmission with the second terminal device. data transmission, the third bandwidth is less than the first bandwidth; and the fourth bandwidth satisfies that there is no radar signal within a preset time length, the first terminal device uses the fourth bandwidth to transmit data with the second terminal device in the second Wifi link, the fourth bandwidth is greater than the second bandwidth, and the second moment is later than the first moment; at the third moment, the interference received by the first terminal device in the first bandwidth does not exceed the preset threshold, and the first terminal device uses the first bandwidth to transmit data with the second terminal device in the first Wifi link; and there is a radar signal in the fourth bandwidth, the first terminal device uses the second bandwidth to transmit data with the second terminal device in the second Wifi link, and the third moment is later than the second moment.

[0006] The first terminal device and the second terminal device may be different devices, and the first terminal device may be referred to as the first device or the first electronic device, which is not limited in this application. The second terminal device may be referred to as the second device or the second electronic device, which is not limited in this application. In one example, the first terminal device may be a STA, and the second terminal device may be an AP. In another example, the first terminal device may be an AP, and the second terminal device may be a STA. The first Wifi link and the second Wifi link use different communication formats. For example, the first Wifi link may be a 2.4G link, and the second Wifi link may be a 5G link; or, the first Wifi link may be a 5G link, and the second Wifi link may be a 6G link; or, the first Wifi link may be a 2.4G link, and the second Wifi link may be a 6G link.

[0007] The interference received by the first terminal device within the first bandwidth refers to the interference caused by the data transmitted by other terminal devices to the data transmitted by the first terminal device when the first terminal device and other terminal devices are transmitting data within the first bandwidth. The preset threshold is a preset value used to measure the size of the interference. If it exceeds the preset threshold, it can be said that the interference is large. If it does not exceed the preset threshold, it can be said that the interference is small. The third bandwidth is smaller than the first bandwidth, and the fourth bandwidth is larger than the second bandwidth. This application does not limit the size relationship between the third bandwidth and the fourth bandwidth, nor does it limit the size relationship between the first bandwidth and the second bandwidth.

[0008] At the second moment, the interference received by the first terminal device in the first bandwidth exceeds the preset threshold, which can indicate that the interference in the first bandwidth is large. The first terminal device can use a third bandwidth smaller than the first bandwidth to transmit data with the second terminal device in the first Wifi link, which is conducive to reducing the impact of interference on the data. At the second moment, the fourth bandwidth satisfies the requirement that there is no radar signal within the preset time length, which can indicate that there is no radar signal in the fourth bandwidth and data can be transmitted. The first terminal device uses a fourth bandwidth larger than the second bandwidth to transmit data with the second terminal device in the second Wifi link. In this way, when the fourth bandwidth is available, using a larger fourth bandwidth for data transmission is conducive to improving data transmission efficiency.

[0009] At the third moment, the interference received by the first terminal device in the first bandwidth does not exceed the preset threshold, which indicates that the interference in the first bandwidth is small. The first terminal device can use the first bandwidth to transmit data with the second terminal device in the first Wifi link, which is conducive to improving data transmission efficiency. At the third moment, there is a radar signal in the fourth bandwidth, which indicates that it is not appropriate to transmit data. The first terminal device uses the second bandwidth to transmit data with the second terminal device in the second Wifi link, which is conducive to meeting the requirement of priority transmission of radar signals.

[0010] In the data transmission method provided by the present application, the first terminal device first uses the first bandwidth larger than the second bandwidth for data transmission in the first Wifi link, which is conducive to improving the data transmission efficiency, and can flexibly adjust the used bandwidth according to the interference received in the first bandwidth, that is, select the appropriate bandwidth for data transmission in different scenarios, which is conducive to meeting the data transmission efficiency while avoiding the influence of interference on the data; in the second Wifi link, the third bandwidth smaller than the fourth bandwidth is used for data transmission, and the radar signal can be ignored, which is conducive to transmitting data as early as possible, and the fourth bandwidth can be flexibly used according to whether there is a radar signal in the fourth bandwidth, which is conducive to improving the data transmission efficiency while meeting the requirement of radar signal priority transmission.

[0011] In a possible implementation, the first bandwidth is realized by multiple channels, the multiple channels include first type channels and second type channels, the first type channels affect the use of the second type channels, and the second type channels do not affect the use of the first type channels; at the second moment, the interference within the first bandwidth exceeds a preset threshold, and the first terminal device uses a third bandwidth in the first Wifi link to perform data transmission with the second terminal device, including: at the second moment, the interference within the bandwidth realized by the first type channel does not exceed the preset threshold, and the interference within the bandwidth realized by the second type channel exceeds the preset threshold, and the first terminal device uses the bandwidth realized by the first type channel for data transmission.

[0012] The first type of channel may affect the use of the second type of channel, but the second type of channel does not affect the use of the first type of channel. For example, the first type of channel may be a main channel, and the bandwidth composed of the main channel may be called the main bandwidth. The second type of channel may be a slave channel, and the bandwidth composed of the slave channels may be called the slave bandwidth or the secondary bandwidth.

[0013] At the second moment, the interference within the bandwidth achieved by the first type of channel does not exceed the preset threshold, and the interference within the bandwidth achieved by the second type of channel exceeds the preset threshold, which can indicate that the first type of channel is available, and the bandwidth achieved by the second type of channel is unavailable, and the second type of channel does not affect the use of the first type of channel, so the first terminal device can use the bandwidth achieved by the first type of channel for data transmission. It can be understood that the size of the bandwidth achieved by the first type of channel is the same as the size of the third bandwidth.

[0014] In the data transmission method provided by the present application, the bandwidth achieved by the second type of channel in the first bandwidth exceeds a preset threshold, and the first terminal device can use the bandwidth achieved by the first type of channel for data transmission, which is beneficial to reducing the impact of interference on data transmission and improving data transmission accuracy.

[0015] Optionally, if the interference within the bandwidth achieved by the first type of channel exceeds a preset threshold, it may indicate that the bandwidth achieved by the first type of channel is unavailable and the first type of channel affects the use of the second type of channel. Therefore, the first terminal device may enter a waiting state until the interference within the bandwidth achieved by the first type of channel does not exceed the preset threshold.

[0016] In one possible implementation, the channel that implements the fourth bandwidth includes a third type channel and a fourth type channel, the third type channel is not used to transmit radar signals, and the fourth type channel is used to transmit radar signals; at the second moment, the fourth bandwidth satisfies that there is no radar signal within a preset time length, and the first terminal device uses the fourth bandwidth in the second Wifi link to transmit data with the second terminal device, including: at the second moment, the bandwidth implemented by the fourth type channel satisfies that there is no radar signal within a preset time length, and the first terminal device uses the fourth bandwidth in the second Wifi link to transmit data with the second terminal device.

[0017] The channel that realizes the fourth bandwidth may also be referred to as the channel that constitutes the fourth bandwidth, which is not limited in the present application.

[0018] The third type of channel is not used to transmit radar signals, and radar signals can be ignored when transmitting data. The fourth type of channel is used to transmit radar signals, and the channel gives priority to transmitting radar signals.

[0019] Before the first terminal device uses the fourth bandwidth to transmit data, it needs to detect whether the bandwidth realized by the fourth type of channel satisfies the requirement that there is no radar signal within a preset time length. If the bandwidth realized by the fourth type of channel satisfies the requirement that there is no radar signal within a preset time length, it can be said that the fourth bandwidth is available. If the bandwidth realized by the fourth type of channel does not satisfy the requirement that there is no radar signal within a preset time length, it can be said that the fourth bandwidth is unavailable. At the second moment, the bandwidth realized by the fourth type of channel satisfies the requirement that there is no radar signal within a preset time length, which can be said that the fourth bandwidth is available. Therefore, the first terminal device uses the fourth bandwidth to transmit data with the second terminal device in the second Wifi link.

[0020] The data transmission method provided in the present application uses the fourth bandwidth to transmit data when the fourth bandwidth is available, which is beneficial to improving data transmission efficiency.

[0021] In one possible implementation, the presence of the radar signal within the fourth bandwidth is monitored by the second terminal device, and the first terminal device uses the second bandwidth based on first information sent by the second terminal device, where the first information is used to instruct the first terminal device to use the second bandwidth.

[0022] When the first terminal device uses the fourth bandwidth to transmit data, there may still be a radar signal in the fourth bandwidth. The second terminal device can detect within the fourth bandwidth to determine whether there is a radar signal in the fourth bandwidth. If there is, the second terminal device can send first information to the first terminal device, and the first information is used to instruct the first terminal device to use the second bandwidth. The first terminal device receives the first information and can use the second bandwidth for data transmission based on the first information. In this way, when the first terminal device uses the fourth bandwidth to transmit data, it does not need to monitor whether there is a radar signal, which is conducive to saving power consumption.

[0023] In a possible implementation, the first information includes at least one of an identifier of a channel implementing the second bandwidth, a time of using the second bandwidth, or a size of the second bandwidth.

[0024] The identifier of the channel of the second bandwidth may also be referred to as a channel number; the time of using the second bandwidth may also be referred to as a switching time, indicating the time of switching to use the second bandwidth, which is not limited in the present application.

[0025] In a possible implementation, the method further includes: at a fourth moment, the interference received by the first terminal device within the first bandwidth exceeds a preset threshold, and the first terminal device uses the third bandwidth in the first Wifi link to perform data transmission with the second terminal device; and the first terminal device uses the second bandwidth in the second Wifi link to perform data transmission with the second terminal device; at a fifth moment, the interference received by the first terminal device within the first bandwidth does not exceed the preset threshold, and the first terminal device uses the first bandwidth in the first Wifi link to perform data transmission with the second terminal device; and the first terminal device uses the second bandwidth in the second Wifi link to perform data transmission with the second terminal device, and the fifth moment is later than the fourth moment.

[0026] At the fourth moment, the interference received by the first terminal device in the first bandwidth exceeds the preset threshold, which indicates that the first bandwidth is unavailable. The first terminal device uses the third bandwidth to transmit data with the second terminal device in the first Wifi link; at this time, the second Wifi link is normal, and the first terminal device uses the second bandwidth to transmit data with the second terminal device. At the fifth moment, the interference received by the first terminal device in the first bandwidth does not exceed the preset threshold, which indicates that the first bandwidth is available. The first terminal device uses the first bandwidth to transmit data with the second terminal device in the first Wifi link; at this time, the second Wifi link is normal, and the first terminal device uses the second bandwidth to transmit data with the second terminal device in the second Wifi link. In this way, the first terminal device can flexibly adjust the bandwidth used in the first Wifi link according to the interference received in the first bandwidth, that is, select the appropriate bandwidth for data transmission in different scenarios, which is conducive to avoiding the impact of interference on data while meeting data transmission efficiency.

[0027] In a possible implementation, the method further includes: at a sixth moment, the first terminal device uses the first bandwidth to perform data transmission with the second terminal device in the first Wifi link; and, the fourth bandwidth satisfies that there is no radar signal within a preset time length, and the first terminal device uses the fourth bandwidth to perform data transmission with the second terminal device in the second Wifi link; at a seventh moment, the first terminal device uses the first bandwidth to perform data transmission with the second terminal device in the first Wifi link; and, there is a radar signal on the fourth bandwidth, and the first terminal device uses the second bandwidth to perform data transmission with the second terminal device in the second Wifi link, and the seventh moment is later than the sixth moment.

[0028] At the sixth moment, the first terminal device uses the first bandwidth to transmit data with the second terminal device in the first Wifi link; at this time, the fourth bandwidth satisfies the absence of radar signals within the preset time length, which indicates that the fourth bandwidth is available, and the first terminal device uses the fourth bandwidth to transmit data with the second terminal device in the second Wifi link. At the seventh moment, the first terminal device uses the first bandwidth to transmit data with the second terminal device in the first Wifi link; at this time, there is a radar signal on the fourth bandwidth, which indicates that the fourth bandwidth is unavailable, and the first terminal device uses the second bandwidth to transmit data with the second terminal device in the second Wifi link. In this way, in the second Wifi link, the fourth bandwidth can be flexibly used according to whether there is a radar signal in the fourth bandwidth, which is conducive to improving data transmission efficiency while meeting the requirement of priority transmission of radar signals.

[0029] In a possible implementation, before the first terminal device establishes the first Wifi link and the second Wifi link with the second terminal device, the method also includes: the first terminal device receives second information from the second terminal device, where the second information is used to indicate capability information supported by the second terminal device; the first terminal device establishes the first Wifi link and the second Wifi link with the second terminal device, including: if the second information includes MLO capability information, the first terminal device establishes the first Wifi link and the second Wifi link with the second terminal device based on the second information.

[0030] The first terminal device supports the MLO capability. If the second terminal device also supports the MLO capability, the first terminal device and the second terminal device can transmit through multi-link. The first terminal device can determine whether the second terminal device supports the MLO capability based on the second information sent by the second terminal device. If the second information includes the MLO capability information, it can be said that the second terminal device supports the MLO capability. Then, the first terminal device establishes the first Wifi link and the second Wifi link with the second terminal device based on the second information. In this way, when both devices support the MLO capability, using dual-link transmission is conducive to reducing the probability of data loss.

[0031] In a possible implementation, the method further includes: if the second information does not include MLO capability information, the first terminal device closes the first Wifi link or closes the second Wifi link.

[0032] If the second information does not include the MLO capability information, it can be indicated that the second terminal device does not support the MLO capability, and the first terminal device closes the first Wifi link or closes the second Wifi link. In this way, closing unused links is conducive to saving power consumption.

[0033] In a possible implementation, the first terminal device closes the first Wifi link or closes the second Wifi link, including: if a transmission frequency band of the first Wifi link is greater than a transmission frequency band of the second Wifi link, the first terminal device closes the second Wifi link; or, if the transmission frequency band of the first Wifi link is less than the transmission frequency band of the second Wifi link, the first terminal device closes the first Wifi link.

[0034] The first terminal device can compare the transmission frequency band of the first Wifi link with the transmission frequency band of the second Wifi link, close the link with the smaller transmission frequency band, and use the link with the smaller transmission frequency band to transmit data, which is conducive to improving data transmission efficiency.

[0035] In one possible implementation, before the first terminal device receives the second information from the second terminal device, the method further includes: the first terminal device displays a first interface, the first interface includes a first option and a second option, the first option is used to indicate that the first terminal device is a new device, and the second option is used to indicate that the second terminal device is an old device; in response to the user clicking the second option, the first terminal device displays a second interface, the second interface includes a scan box, and the scan box is used to scan a QR code to obtain hotspot information; the second terminal device displays a third interface, the third interface includes a third option and a fourth option, the third option is used to indicate that the second terminal device is a new device, and the fourth option is used to indicate that the second terminal device is an old device; in response to the user clicking the third option, the second terminal device displays a fourth interface, the fourth interface includes a QR code, and the QR code includes hotspot information; the first terminal device receives the second information from the second terminal device, including: the first terminal device obtains the hotspot information in response to the scan box scanning the QR code displayed by the second terminal device, and receives the second information from the second terminal device.

[0036] In a possible implementation, the third bandwidth is greater than the first bandwidth. In this way, the minimum bandwidth used in the second Wifi link, that is, the third bandwidth, is still greater than the maximum bandwidth used in the first Wifi link, that is, the first bandwidth, which indicates that the bandwidth of transmission of the second Wifi link is greater than the bandwidth of transmission of the first Wifi link, and the data transmission rate of the second Wifi link is greater than the data transmission rate of the first Wifi link.

[0037] In a possible implementation, at the first moment, the first terminal device uses the first bandwidth to perform data transmission with the second terminal device in the first Wifi link, and the first terminal device uses the second bandwidth to perform data transmission with the second terminal device in the second Wifi link, including: at the first moment, the first terminal device uses the first bandwidth to send first data to the second terminal device in the first Wifi link, and the first terminal device uses the second bandwidth to send second data to the second terminal device in the second Wifi link, the sum of the first data and the second data is the target data to be transmitted, when the target data is transmitted from the application layer to the data link layer, the MAC layer in the data link layer is divided into the first data and the second data, and the Internet Protocol (IP) address in the first Wifi link and the second Wifi link is the same.

[0038] When the first terminal device sends target data to the second terminal device, the same IP address can be used in the two Wifi links, and when the target data is transmitted from the application layer to the MAC layer in the data link layer, the target data is divided into the first data and the second data in the MAC layer in the data link layer, and the first data is transmitted using the first bandwidth in the first Wifi link, and the second data is transmitted using the second bandwidth in the second Wifi link. In this way, the two links use the same IP address, and before the MAC layer in the data link layer, the target data is transmitted as a whole, and after the MAC layer in the data link layer, the target data is divided into the first data and the second data. The application layer does not need to divert the data based on the IP address, the application side is not aware, and no configuration is required, which is conducive to reducing the complexity of data transmission.

[0039] In a second aspect, an embodiment of the present application provides a terminal device, including a processor and a memory, the memory being used to store code instructions, and the processor being used to run the code instructions to execute a method executed by a first terminal device described in any possible implementation of the first aspect.

[0040] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the method executed by the first terminal device as described in any possible implementation manner of the first aspect is implemented.

[0041] In a fourth aspect, an embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is run, the computer executes the method executed by the terminal device described in any possible implementation of the first aspect.

[0042] In a fifth aspect, the present application provides a chip or a chip system, the chip or chip system includes at least one processor and a communication interface, the communication interface and the at least one processor are interconnected by a line, and the at least one processor is used to run a computer program or instruction to execute the method performed by the first terminal device described in any possible implementation of the first aspect. The communication interface in the chip can be an input / output interface, a pin or a circuit, etc.

[0043] In a possible implementation, the chip or chip system described above in the present application further includes at least one memory, in which instructions are stored. The memory may be a storage unit inside the chip, such as a register, a cache, etc., or a storage unit of the chip (e.g., a read-only memory, a random access memory, etc.).

[0044] It should be understood that the second to fifth aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 It is a correspondence diagram between channel and bandwidth;

[0046] Figure 2 A schematic diagram of a mobile phone cloning scenario;

[0047] Figure 3 A schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application;

[0048] Figure 4 A software structure block diagram of a terminal device provided in an embodiment of the present application;

[0049] Figure 5 A schematic diagram of a data transmission method provided in an embodiment of the present application;

[0050] Figure 6 A schematic diagram of a multi-link transmission provided in an embodiment of the present application;

[0051] Figure 7 A schematic flow chart of another data transmission method provided in an embodiment of the present application;

[0052] Figure 8 It is a schematic diagram of the elements of an extended channel switching element cell;

[0053] Fig. 9 Schematic diagram of an element for switching a packaging element format for a channel;

[0054] Fig.10 A schematic flow chart of another data transmission method provided in an embodiment of the present application;

[0055] Fig.11 A schematic diagram of the structure of a chip provided in an embodiment of the present application. DETAILED DESCRIPTION

[0056] In order to clearly describe the technical solution of the embodiment of the present application, the following description is first made.

[0057] In the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. For example, the first data and the second data are only used to distinguish different chips, and their order is not limited. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different.

[0058] It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0059] In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, a--c, bc, or abc, where a, b, c can be single or multiple.

[0060] It should be noted that the "at..." in the embodiment of the present application can be the instant when a certain situation occurs, or can be a period of time before or after a certain situation occurs, and the embodiment of the present application does not specifically limit this. In addition, the display interface provided in the embodiment of the present application is only an example, and the display interface can also include more or less content.

[0061] In order to better understand the embodiments of the present application, the terms involved in the embodiments of the present application are first introduced.

[0062] 1. 2.4G link, 5G link and 6G link

[0063] The 2.4G link is used to indicate a link configured with the 2.4G frequency band. The 2.4G frequency band can be between 2.400 GHz and 2.4835 GHz. The 2.4G frequency band can be divided into multiple channels, and adjacent channels in these channels can be merged to obtain a channel with a larger bandwidth.

[0064] 5G link is used to indicate a link configured with a 5G frequency band. The 5G frequency band can be between 5.170 GHz and 5.835 GHz. The 5G frequency band can be divided into multiple channels, and adjacent channels in these channels can be merged to obtain a channel with a larger bandwidth.

[0065] 6G link is used to indicate a link configured with the 6G frequency band. The 6G frequency band can be divided into multiple channels, and adjacent channels in these channels can be merged to obtain a channel with a larger bandwidth.

[0066] 2. Channels corresponding to the 5G frequency band

[0067] The 5G frequency band is divided into multiple 5G channels, but only some of them are available. For example, in some countries and regions, channels 36, 40, 44, 48, 52, 56, 60 and 64 are available, and each channel has a bandwidth of 20MHz. Among them, the corresponding frequency bands of channels 36, 40, 44 and 48 are 5170MHz-5250MHz, and the corresponding frequency bands of channels 52, 56, 60 and 64 are 5250MHz-5330MHz. In order to improve communication efficiency, adjacent channels can be merged to obtain channels with larger bandwidth. The operating frequency bands of the global radar system can include 5250MHz-5330MHz and 5490MHz-5730MHz, so channels 52, 56, 60 and 64 can transmit 5G signals as well as radar signals. Channels 52, 56, 60 and 64 can also be called radar channels (or DFS channels).

[0068] For example, Figure 1 A corresponding diagram of channel and bandwidth is shown. Figure 1 As shown, the 5G frequency band can be between 5.170GHz and 5.835GHz. The 5G frequency band is divided into multiple 5G channels. The available 5G channels include 13 channels, namely, channel 36, channel 40, channel 44, channel 48, channel 52, channel 56, channel 60, channel 64, channel 149, channel 153, channel 157, channel 161 and channel 165. Radar channels include channel 52, channel 56, channel 60, channel 64 and channels 100 to 144. This embodiment of the application does not concern Figure 1 The other information mentioned will not be explained in detail here.

[0069] In order to improve communication efficiency, adjacent channels can be merged to obtain channels with larger bandwidth. For example, channel 36 and channel 40 can form a 40MHz bandwidth, wherein the 20MHz bandwidth corresponding to channel 36 can be the main bandwidth, and the 20MHz bandwidth corresponding to channel 40 can be the secondary bandwidth. Channel 44 and channel 48 can form a 40MHz bandwidth, wherein the 20MHz bandwidth corresponding to channel 44 can be the main bandwidth, and the 20MHz bandwidth corresponding to channel 48 can be the secondary bandwidth. Channel 36, channel 40, channel 44 and channel 48 can form an 80MHz bandwidth, wherein the 40MHz bandwidth composed of channel 36 and channel 40 can be the main bandwidth, and the 40MHz bandwidth corresponding to channel 44 and channel 48 can be the secondary bandwidth. Channel 52, channel 56, channel 60 and channel 64 can form an 80MHz bandwidth, wherein the 40MHz bandwidth composed of channel 52 and channel 56 can be the main bandwidth, and the 40MHz bandwidth corresponding to channel 60 and channel 64 can be the secondary bandwidth. Channel 36, channel 40, channel 44, channel 48, channel 52, channel 56, channel 60 and channel 64 can form a 160MHz bandwidth, wherein the 80MHz bandwidth formed by channel 36, channel 40, channel 44 and channel 48 can be a secondary bandwidth, and the 80MHz bandwidth corresponding to channel 52, channel 56, channel 60 and channel 64 can be a secondary bandwidth. The secondary bandwidth in the embodiment of the present application may also be referred to as a secondary bandwidth, which is not limited in the embodiment of the present application.

[0070] Radar channels generally give priority to transmitting radar signals. When the channel transmits radar signals, the terminal device should remain silent on the channel. When the channel does not transmit radar signals, the channel can be used to transmit 5G signals. Therefore, before using the radar channel, radar detection and power control are required to determine whether there is a radar signal. For radar channels, when transmitting 5G data, it is necessary to detect whether the radar channel is available, that is, to detect whether there is a radar signal in the channel. Channel Availability Check (CAC) detection can be used. Currently, some DFS channel requirement values ​​are defined in the protocol, as shown in Table 1.

[0071] Table 1

[0072]

[0073]

[0074] As shown in Table 1, the channel availability check time (Channel Availability Check Time) is 60 seconds (second, s), the minimum time for channel CAC detection (Mininum Off-Channel CAC Time) is 6 minutes (minute, min), the maximum time for channel CAC detection (Maximun Off-Channel CAC Time) is 4 hours (hour, h), the channel migration time (Channel Move Time) is 10s, the channel closing transmission time (Channel Closing Transmission Time) is 1s, and the non-occupancy period (Non-Occupancy period) is 30min.

[0075] 3. Clear Channel Assessment (CCA)

[0076] When CCA detects wireless signal interference within the bandwidth, it can automatically adjust the bandwidth mode to avoid channel interference and make the wireless signal more stable. When the interference disappears, it can automatically bundle idle channels to make full use of the advantages of channel bundling and improve wireless performance. The interference involved in the embodiments of the present application refers to the interference caused by different devices using the same bandwidth to transmit data.

[0077] 4. Bandwidth indicator

[0078] The bandwidth indicator is used to indicate the bandwidth used for data transmission.

[0079] The protocol specifies that the bytes included in the universal signal 1 (U-SIG-1) can be used to indicate the bandwidth used for data transmission, as shown in Table 2.

[0080] Table 2

[0081]

[0082] As shown in Table 2, the B3-B5 bytes in U-SIG-1 can be used to indicate the bandwidth used for data transmission. When the value of the B3-B5 byte in U-SIG-1 is 0, it indicates that the bandwidth used for data transmission is 20MHz; when the value of the B3-B5 byte in U-SIG-1 is 1, it indicates that the bandwidth used for data transmission is 40MHz; when the value of the B3-B5 byte in U-SIG-1 is 2, it indicates that the bandwidth used for data transmission is 80MHz; when the value of the B3-B5 byte in U-SIG-1 is 3, it indicates that the bandwidth used for data transmission is 160MHz; when the value of the B3-B5 byte in U-SIG-1 is 4, it indicates that the bandwidth used for data transmission is 320MHz-1; when the value of the B3-B5 byte in U-SIG-1 is 5, it indicates that the bandwidth used for data transmission is 320MHz-2.

[0083] In the phone cloning scenario, the old device and the new device are connected via a hotspot, and data can be transferred between the old device and the new device.

[0084] For example, Figure 2 FIG. 1 shows a schematic diagram of a mobile phone cloning scenario. Figure 2 As shown in , both the old device and the new device can support phone cloning. The old device's settings application can include a phone cloning option. When the user clicks the phone cloning option, the old device can display the phone cloning interface, such as Figure 2 As shown in the a interface in. Figure 2 In the a interface in the figure, the mobile phone cloning interface includes option 210 and option 220. Option 210 is used to indicate that the mobile phone is a new device, and option 220 is used to indicate that the mobile phone is an old device. The setting application of the new device may include a mobile phone cloning option. When the user clicks the mobile phone cloning option, the new device may display the mobile phone cloning interface, such as Figure 2 As shown in the e interface. Figure 2 In the e interface, the mobile phone cloning interface includes option 240 and option 250. Option 240 is used to indicate that the mobile phone is a new device, and option 250 is used to indicate that the mobile phone is an old device.

[0085] In response to the user clicking option 220, the old device may display a QR code scanning interface, such as Figure 2 As shown in the b interface. Figure 2 In the b interface, the QR code scanning interface includes a code scanning box 230 and a manual connection control. The code scanning box 230 is used to scan the hotspot QR code of the new device. In response to the user clicking option 240, the new device can display the old device connection interface, such as Figure 2 As shown in the e interface. Figure 2In the e interface of the old device connection interface, the QR code 260 is included. The user can use the code scanning box 230 displayed on the old device to scan the QR code 260 displayed on the new device to establish a connection between the old device and the new device. If the connection between the old device and the new device is established successfully, the old device can display a data selection interface, such as Figure 2 As shown in the c interface in the figure, the new device can display the connection success interface, such as Figure 2 As shown in the f interface. Figure 2 As shown in the c interface in , the old device can transfer data included in at least one application in the memo, gallery or email to the new device.

[0086] Before Wifi7, data transmission can be carried out between old devices and new devices through a single link such as a 2.4G link or a 5G link. With the update of the Wifi protocol, after Wifi7, in order to improve data transmission efficiency, the Wifi protocol can support MLO transmission, then data transmission can be carried out between old devices and new devices through multiple links. For example, dual-link transmission can be carried out between old devices and new devices through a 2.4G link and a 5G link.

[0087] However, there is still the problem of low data transmission efficiency.

[0088] The reason why this implementation method has low data transmission efficiency is that when sending data, each link in multiple links generally uses a fixed bandwidth such as 20MHz or 160MHz bandwidth for transmission, and does not adjust the bandwidth based on different situations, resulting in low data transmission efficiency in some scenarios.

[0089] In view of this, the embodiments of the present application provide a data transmission method and related devices. In a 2.4G link, the bandwidth used is flexibly adjusted according to whether the interference received within the bandwidth exceeds a preset threshold. In a 5G link, the bandwidth used is flexibly adjusted according to whether a radar signal exists. This is conducive to the flexible use of appropriate bandwidth in different situations to improve the efficiency of data transmission.

[0090] The embodiment of the present application is applicable to a terminal device supporting dual-link data transmission. In order to better understand the embodiment of the present application, the hardware structure of the terminal device is first described.

[0091] For example, Figure 3 A schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application. Figure 3As shown, the first device includes: an AP chip 310, a Wifi chip 320, a modem processor 330, an antenna 1, and an antenna 2. Among them, the AP chip 310 is connected to the Wifi chip 320, the Wifi chip 320 is connected to the modem processor 330, and the modem processor 330 is connected to the antenna 1 and the antenna 2 respectively. The terminal device provided in the embodiment of the present application may also include devices such as a display screen, which is not described in detail in the embodiment of the present application. The Wifi chip 320 and the modem processor 330 can be integrated into one chip or can be separate chips, which is not limited in the embodiment of the present application. The number of antennas is only an example, which is not limited in the embodiment of the present application.

[0092] The AP chip 310 can be responsible for processing various operations, including application execution, communication, image processing, and audio processing. The Wifi chip 320 can perform shunting processing on communication data for transmission through different links, or can aggregate communication data obtained from different links. The modem processor can be used to demodulate or modulate communication signals such as Wifi signals or Bluetooth signals. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. The antenna in the terminal device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antenna.

[0093] In the above Figure 2 In the mobile phone cloning scenario shown, the hardware structure of the old device and the new device can be Figure 3 As shown, the AP chip of the old device can transmit the data to be transmitted as a whole to the Wifi chip, and the Wifi chip can transmit the data to the modulation and demodulation processor, which can obtain the shunted data, modulate the shunted data into corresponding signals, and send them out through different antennas. The new device can receive the signal sent by the old device through different antennas, demodulate the received signal through the demodulation processor, obtain the shunted data, and aggregate the shunted data through the Wifi chip to obtain the overall data for transmission to the AP chip.

[0094] In addition, on top of the above components, the terminal device also runs an operating system, such as an iOS operating system, an Android operating system, or a Windows operating system, etc. Application programs can be installed and run on the operating system.

[0095] The software system of the terminal device can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture, etc., which will not be elaborated here.

[0096] The embodiment of the present application takes the Android system with a layered architecture as an example to illustrate the software structure of the terminal device.

[0097] Figure 4 It is a software structure diagram of a terminal device provided in an embodiment of the present application. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system can be divided into five layers, from top to bottom, namely, the application layer, the application framework layer, the hardware abstraction layer (HAL), the kernel layer, and the hardware layer.

[0098] The application layer can include a series of application packages. The application layer runs applications by calling the application programming interface (API) provided by the framework layer. Figure 4 As shown, the application package may include applications such as camera, calendar, map, phone, music, and settings.

[0099] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0100] like Figure 4 As shown, the framework layer may include a window manager (window manager service) and a display manager (display manager service), etc. Among them, the window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, touch the screen, drag the screen, capture the screen, etc. The display manager is used to manage the life cycle of the display. It determines how to control its logical display according to the currently connected physical display device, and sends notifications to the system and applications when the state changes, etc.

[0101] The purpose of the HAL layer is to abstract the hardware and provide a unified interface for querying hardware devices for upper-layer applications, or to provide data storage services for upper-layer applications. Figure 4As shown, the HAL layer may include a display driver module and a sensor hardware abstraction (sensor hidl). The display driver module is used to control the display driver to display pictures, interfaces, notification information and other contents on the display screen. The sensor hardware abstraction can control the sensor and monitor the event change notification of the sensor driver. The multiple modules in the HAL layer may follow the hardware abstraction layer interface description language (HAL interface definition language, HIDL) or the Android interface definition language (Android interface definition language, AIDL).

[0102] The kernel layer is the layer between hardware and software. Figure 4 As shown, the kernel layer may include one or more of the following: display driver and Wifi driver, etc. The Wifi driver may be used to control the Wifi chip to achieve data diversion or aggregation.

[0103] The hardware layer may include hardware such as display screens and Wifi chips.

[0104] It should be understood that in some embodiments, the layers implementing the same function may be called by other names, or the layers that can implement the functions of multiple layers may be regarded as one layer, or the layers that can implement the functions of multiple layers may be divided into multiple layers. The embodiments of the present application are not limited to this.

[0105] Combined with the above Figure 3 and Figure 4 This article introduces the hardware structure and software architecture of the terminal equipment. Figure 5 A method applicable to a terminal device provided in an embodiment of the present application is introduced.

[0106] The method provided in the embodiment of the present application can be applied to the above Figure 2 The mobile phone cloning scenario shown can also be applied to any scenario such as data migration or file transfer, and the embodiments of the present application do not limit the applicable scenarios. The embodiments of the present application can be applied to scenarios where two devices communicate based on Wifi, and can also be applied to P2P scenarios, and the embodiments of the present application do not limit this. The embodiments of the present application are described using scenarios based on Wifi communication. The two devices based on Wifi communication can be called STA and AP. In one example, the STA can be the old device mentioned above, and the AP can be the new device mentioned above. For ease of understanding, the embodiments of the present application take the mobile phone cloning scenario as an example to illustrate the data transmission method provided in the embodiments of the present application.

[0107] Figure 5 FIG. 1 is a schematic diagram showing a data transmission method provided by an embodiment of the present application. Figure 5As shown, the new device is an AP and the old device is a STA. The method includes the following steps:

[0108] S501, in the above Figure 2 In the interface d in FIG. 1 , the AP may periodically broadcast a beacon frame (beacon) in response to the user clicking option 240 and display Figure 2 When the user uses the code scanning box 230 displayed by the STA to scan the QR code 260 displayed by the AP, the STA can receive the beacon sent by the AP.

[0109] The beacon may include capability information of the AP. For example, the beacon may include information on whether the AP supports the MLO capability.

[0110] S502: The STA sends a probe request message to the AP based on the beacon, and the AP receives the probe request message accordingly.

[0111] The STA may send a probe request message to each channel to detect which channel the AP is on.

[0112] Optionally, the STA may obtain the capability information of the AP based on the beacon frame, and may compare the capability of the AP with its own capability so that both can use common capabilities.

[0113] S503. The AP sends an Acknowledgement message (Ack) 1 to the STA based on the Probe Request message. The Ack 1 is used to indicate that the Probe Response Request message has been received.

[0114] S504: The AP sends a probe response message to the STA based on the probe request message, and correspondingly, the STA receives the probe response message.

[0115] Based on the probe response message, the STA can determine the channel where the AP is located.

[0116] S505. The STA sends Ack 2 to the AP based on the probe response message. The Ack 2 is used to indicate that the probe response message has been received.

[0117] S506. Based on the detection response message, the STA may also send an authentication request (AuthenticationResquest) message to the AP. Correspondingly, the AP receives the authentication request message.

[0118] Based on the probe response message, the STA sends an authentication request message to the AP for authentication to determine the connection method with the AP. The authentication request message can include an IP address of the STA and two Link MAC addresses. It should be noted that these two MAC addresses are used for data diversion to facilitate transmission through different links, and do not refer to the Media Access Control Address of the device.

[0119] S507. The AP sends Ack 3 to the STA based on the identity authentication request message. The Ack 3 is used to indicate that the identity authentication request message has been received.

[0120] Based on the identity authentication request message, the AP can obtain an IP address of the STA and the MAC addresses of two links, and can send Ack 3 to the STA. These two links can be used to transmit data.

[0121] S508. Based on the identity authentication request message, the AP may also send an identity authentication response (Authentication Response) message to the STA, and correspondingly, the STA receives the identity authentication response message.

[0122] The authentication response message can be used to indicate that the AP determines the connection method with the STA. The authentication response message can include an IP address of the AP and two Link MAC addresses. It should be noted that these two MAC addresses are used for data diversion to facilitate transmission through different links, and do not refer to the media access control address of the device.

[0123] S509. The STA sends Ack 4 to the AP based on the identity authentication response message. The Ack 4 is used to indicate that the identity authentication response message has been received.

[0124] Based on the identity authentication response message, the STA can obtain an IP address of the AP and the MAC addresses of two links, and send an Ack 4 to the AP.

[0125] S510. Based on the identity authentication response message, the STA may also send an association request message to the AP. Correspondingly, the AP receives the association request message, which includes the capabilities of the STA.

[0126] If the association request message carries the MLO capability information, it can be said that the STA has the MLO capability. If the association request message does not carry the MLO capability information, it can be said that the STA does not have the MLO capability.

[0127] S511. The AP sends Ack 5 to the STA based on the association request message, where Ack 5 is used to indicate that the association request message has been received.

[0128] Based on the association request message, the AP can obtain the capabilities of the STA and send an Ack 5 to the STA.

[0129] S512: Based on the association request message, the AP may also send an association response message to the STA, and correspondingly, the STA receives the association response message.

[0130] Based on the association request message, the AP can compare the capabilities with its own capabilities so that both parties can use the common capabilities. The AP can send the common capabilities of the two parties to the STA through an association response message.

[0131] The AP can determine whether the STA has the MLO capability from the association request message. If the STA has the MLO capability and the AP has the MLO capability, the AP and the STA can transmit data through a dual link. If the STA does not have the MLO capability, or the AP does not have the MLO capability, the AP and the STA can transmit data through a single link.

[0132] Exemplarily, if the association request message carries the MLO capability identifier, the AP determines that the STA has the MLO capability. If the association request message does not carry the MLO capability identifier, the AP determines that the STA does not have the MLO capability.

[0133] S513. The STA sends Ack 6 to the AP based on the association response message. The Ack 6 is used to indicate that the association is successful.

[0134] S514: The STA and the AP perform key negotiation.

[0135] The STA and the AP can negotiate a key through a four-way handshake to facilitate subsequent decryption of received data or encryption of sent data. It should be noted that when transmitting data between the STA and the AP, encryption or non-encryption can be selected, and this embodiment of the application does not limit this.

[0136] S515: The STA transmits data to the AP.

[0137] When both the STA and the AP have MLO capabilities, the STA can send data to the AP on two links, and accordingly, the AP monitors on the two links. When the STA does not have MLO capabilities, or the AP does not have MLO capabilities, the STA can send data to the AP on a single link, and accordingly, the AP monitors on a single link. The two links may be a 2.4G link and a 5G link, or a 2.4G link and a 6G link, or a 5G link and a 6G link, which is not limited in the embodiments of the present application. The single link may be a 2.4G link, a 5G link, or a 6G link.

[0138] Optionally, if the STA has the MLO capability, the STA can enable the dual link by default. If the AP does not have the MLO capability, the STA and the AP can use one of the links to transmit data and close the other link to save power consumption. If the AP has the MLO capability, it can monitor on the dual link by default. If the STA does not have the MLO capability, the AP can monitor the data sent by the STA on one of the links and close the other link to save power consumption.

[0139] For example, when the STA has the MLO capability, the 2.4G link and the 5G link can be enabled by default. If the AP does not have the MLO capability, the STA can use the 5G link to transmit data and close the 2.4G link (power off the 2.4G radio frequency circuit, or put the 2.4G link to sleep). If the AP has the MLO capability, the AP can monitor the 2.4G link and the 5G link by default. If the STA does not have the MLO capability, the AP can monitor the data sent by the STA on the 5G link and close the 2.4G link.

[0140] It can be known from the above S508 that the STA can obtain an IP address of the AP and the MAC addresses of two links of the AP, and the STA can transmit data to the AP based on the IP address of the STA and the IP address of the AP.

[0141] For example, the STA can use the STA's IP address as the source IP address and the AP's IP address as the destination IP address to transmit data to the AP. These data can be transmitted as a whole at the application layer. When transmitted to the data link layer (DLL), the MAC layer in the DLL divides the data into two data paths based on different MAC addresses, and the two data paths are transmitted through two links. When the AP receives data, the MAC layer of the DLL receives the two data paths, aggregates the two data paths, and transmits them to the application layer. It can be understood that the two links use the same IP address, and the IP address is the IP address of the AP.

[0142] For example, in a mobile phone cloning scenario, the old device can be used as a STA, the new device can be used as an AP, and data can be transmitted between the STA and the AP via link 1 and link 2. Link 1 can be a 2.4G link, and link 2 can be a 5G link. Figure 6 FIG. 1 shows a schematic diagram of multi-link transmission. Figure 6 As shown, the MAC layer of the data link layer in the STA can be called MAC-STA; the STA supports MLD, which can be understood as STA MLD; the MLD MAC address is P, which can be understood as the media access control address of the STA is P. The MAC layer of the data link layer in the AP can be called MAC-AP; the AP supports MLD, which can be understood as APMLD; the MLD MAC address is M, which can be understood as the media access control address of the AP is M. The MAC layer of the data link layer supports the MLO capability, so the MAC layer of the data link layer can be called the MLO MAC layer. The MLO MAC layer is divided into the MLO upper MAC sublayer (MLO Upper MAC sublayer) and the MLO lower MAC sublayer (MLO Lower MAC sublayer). The MAC layers of the data link layers of the STA and AP both support MLO, so the MLO MAC layer is divided into the MLO upper MAC sublayer and the MLO lower MAC sublayer.

[0143] STA can use the STA's IP address as the source IP address and the AP's IP address as the destination IP address to transmit data to the AP. These data are a whole at the application layer and are transmitted from the application layer to the MAC sublayer of the MLO upper layer. When transmitted to the MAC sublayer of the MLO lower layer, these data are split and transmitted to the AP through link 1 and link 2. The AP monitors data on link 1 and link 2, and can obtain the split data at the MAC sublayer of the MLO lower layer. It aggregates the data at the MAC sublayer of the MLO upper layer and transmits it to the application layer. The application layer Figure 6 Not drawn in.

[0144] like Figure 6As shown, STA uses STA as STA 1 in the MAC sublayer under MLO, uses MAC address y of STA 1 as the source MAC address, and uses MAC address w of AP 1 as the destination MAC address to transmit data to AP on link 1. STA uses STA as STA 2 in the MAC sublayer under MLO, uses MAC address y of STA 2 as the source MAC address, and uses MAC address x of AP 2 as the destination MAC address to transmit data to AP 2 on link 2. AP can receive data on link 1 as AP 1 in the MAC sublayer under MLO, or it can receive data on link 2 as AP 2, and aggregate the data in the MAC sublayer over MLO. The process of AP sending data to STA is similar to the process of STA sending data to AP, which will not be repeated here.

[0145] The data transmission method provided in the embodiment of the present application is beneficial to improving the data transmission efficiency through dual-link transmission when both STA and AP support MLO capability. When STA or AP does not support MLO capability, it is transmitted through a single link. In this way, it can also be applied to single-link scenarios and has a wider application. In addition, the method provided in the embodiment of the present application uses the same IP address for the two links, and the data is transmitted as a whole at the application layer, and is split or aggregated at the MAC layer of the data link layer. The application side of the device is unaware of the data split transmission and does not need to be configured on the application side. Compared with the method using two IP addresses, it is beneficial to reduce the complexity of data transmission and also to improve compatibility and applicability.

[0146] It should be noted that the above S503, S505, S507, S509, S511 and S513 are optional steps, which may be executed or not, and the embodiments of the present application do not limit this.

[0147] STA and AP can use different bandwidths for data transmission on different links. Figure 7 The data transmission method of the embodiment of the present application is introduced in detail.

[0148] Figure 7 A schematic flow chart of a data transmission method is shown. Figure 7 As shown, the method comprises the following steps:

[0149] S701. STA uses 40 MHz bandwidth to transmit data on the 2.4G link.

[0150] STAs can use 40 MHz bandwidth on the 2.4 GHz link to transmit data to the AP, and the AP can use 40 MHz monitoring on the 2.4 GHz link to obtain data sent by the STAs.

[0151] STA uses 40 MHz bandwidth to transmit data on the 2.4G link, which can improve data transmission efficiency compared with the method of using 20 MHz bandwidth to transmit data.

[0152] S702 . During data transmission, the STA performs clear channel assessment (CCA) on the main 20 MHz bandwidth and the secondary 20 MHz bandwidth in the 40 MHz bandwidth.

[0153] The 40 MHz bandwidth includes a primary 20 MHz bandwidth and a secondary 20 MHz bandwidth, wherein the secondary 20 MHz bandwidth may also be referred to as a secondary 20 MHz bandwidth, which is not limited in the present embodiment of the application.

[0154] During data transmission, the STA can perform CCA detection on the main 20 MHz bandwidth and the secondary 20 MHz bandwidth in the 40 MHz bandwidth to determine whether there is interference. The embodiment of the present application may also be other ways of detecting interference, and is not limited to CCA detection.

[0155] S703: If the CCA detection on the main 20 MHz bandwidth does not meet the CCA threshold, the STA waits until the CCA detection on the main 20 MHz bandwidth meets the CCA threshold.

[0156] If the CCA detection on the main 20MHz bandwidth does not meet the CCA threshold, it can be said that there is a large interference on the main 20MHz bandwidth. In this case, the STA can enter a waiting state, or the STA does not transmit data until the CCA detection on the main 20MHz bandwidth meets the CCA threshold. The CCA threshold can be preset, and the specific value of the CCA threshold is not limited in the embodiment of the present application.

[0157] S704: If the CCA detection on the primary 20 MHz bandwidth satisfies the CCA threshold, and the CCA detection on the secondary 20 MHz bandwidth does not satisfy the CCA threshold, data is transmitted using the primary 20 MHz bandwidth on the 2.4G link.

[0158] If the CCA detection on the main 20 MHz bandwidth meets the CCA threshold, it means that there is little interference on the main 20 MHz bandwidth and data transmission is not affected. The STA can use the main 20 MHz bandwidth to transmit data.

[0159] S705 . If the CCA detection on the primary 20 MHz bandwidth satisfies the CCA threshold, and the CCA detection on the secondary 20 MHz bandwidth satisfies the CCA threshold, data is transmitted using a 40 MHz bandwidth on the 2.4G link.

[0160] If the CCA detection on the main 20 MHz bandwidth meets the CCA threshold, and the CCA detection on the slave 20 MHz bandwidth meets the CCA threshold, it can be shown that there is little interference on both the main 20 MHz bandwidth and the slave 20 MHz bandwidth, which does not affect data transmission. The STA can use the main 20 MHz bandwidth and the slave 20 MHz bandwidth, that is, 40 MHz, to transmit data.

[0161] The above S701 to S705 describe the bandwidth used by the STA on the 2.4G link, which can be understood as: the STA first uses 40MHz to transmit data on the 2.4G link, and determines whether the CCA detection of the main 20MHz bandwidth and the slave 20MHz bandwidth in the 40MHz bandwidth meets the CCA threshold. When the CCA detection of the main 20MHz bandwidth meets the CCA threshold and the CCA detection of the slave 20MHz bandwidth meets the CCA threshold, the 40MHz bandwidth is used to transmit data to the AP; when the CCA detection of the main 20MHz bandwidth does not meet the CCA threshold, regardless of whether the CCA detection of the slave 20MHz bandwidth meets the CCA threshold, the waiting state is entered until the CCA detection of the main 20MHz bandwidth meets the CCA threshold; when the CCA detection of the main 20MHz bandwidth meets the CCA threshold and the CCA detection of the slave 20MHz bandwidth does not meet the CCA threshold, the 20MHz bandwidth is used to transmit data to the AP.

[0162] In this way, STA first uses 40MHz to transmit data on the 2.4G link, which can improve data transmission efficiency compared to the method of using 20MHz bandwidth to transmit data. During the transmission process, the bandwidth used can be flexibly adjusted according to the interference between the main 20MHz bandwidth and the secondary 20MHz bandwidth, which is conducive to reducing the impact of interference on data transmission and has greater flexibility.

[0163] When STA transmits data to AP on 2.4G link, AP always uses 40MHz bandwidth to monitor. When STA uses 40MHz bandwidth to transmit, AP can decode all signals within 40MHz bandwidth and send them to MAC layer in DLL layer for aggregation. When STA uses 20MHz bandwidth to transmit, AP decodes signals within 20MHz bandwidth and sends them to MAC layer in DLL layer for aggregation. MAC layer can be as above Figure 6 As shown, no further description is given here.

[0164] Exemplarily, when a STA uses a 40MHz bandwidth for transmission on a 2.4G link, the bandwidth (Bandwidth) of the B3-B5 bytes (bit) of the U-SIG-1 field can be set to 1, and the U-SIG-1 field is sent to the AP. The AP receives the U-SIG-1 field, and decodes to obtain that the bandwidth of the B3-B5 bytes of the U-SIG-1 field is 1. It can be determined that the signal within the 40MHz bandwidth is decoded to obtain the data sent by the STA. When a STA uses a 20MHz bandwidth for transmission on a 2.4G link, the bandwidth of the B3-B5 bytes of the U-SIG-1 field can be set to 0, and the U-SIG-1 field is sent to the AP. The AP receives the U-SIG-1 field, and decodes to obtain that the bandwidth of the B3-B5 bytes of the U-SIG-1 field is 0. It can be determined that the signal within the 20MHz bandwidth is decoded to obtain the data sent by the STA.

[0165] S706. The STA transmits data using the primary 80 MHz bandwidth on the 5G link, and monitors the secondary 80 MHz bandwidth channel to determine whether there is a radar signal.

[0166] 36 channels, 40 channels, 44 channels, 48 ​​channels, 52 channels, 56 channels, 60 channels and 64 channels can be spliced ​​into a 160 MHz bandwidth, 36 channels, 40 channels, 44 channels and 48 channels can be spliced ​​into an 80 MHz bandwidth, which can be called the main 80 MHz bandwidth, 52 channels, 56 channels, 60 channels and 64 channels can be spliced ​​into an 80 MHz bandwidth, which can be called the slave 80 MHz bandwidth, the main 80 MHz bandwidth and the slave 80 MHz bandwidth are merely examples of names, and the embodiments of the present application are not limited to this.

[0167] Channels 52, 56, 60, and 64 need to support radar signals, and radar signals are transmitted first. Therefore, STA can first use 80MHz bandwidth to transmit data on channels 36, 40, 44, and 48, and monitor on channels with 80MHz bandwidth, namely channels 52, 56, 60, and 64 to determine whether there are radar signals. If there are radar signals, STA does not use these channels to transmit data.

[0168] STA uses dual links to transmit data with AP, S706 is executed synchronously with the above S701, so STA uses 40MHz bandwidth to transmit data on the 2.4G link, and uses the main 80MHz bandwidth to transmit data on the 5G link, and monitors on the channel with the slave 80MHz bandwidth to determine whether there is a radar signal.

[0169] S707. If there is no radar signal on the channel with a bandwidth of 80 MHz within 60 seconds, the STA uses a bandwidth of 160 MHz to transmit data on the 5G link and monitors the channel with a bandwidth of 80 MHz to determine whether there is a radar signal.

[0170] If there is no radar signal on the slave 80MHz bandwidth channel within 60 seconds, it means that the slave 80MHz bandwidth can be used, so STA uses 160MHz bandwidth (master 80MHz plus slave 80MHz) to transmit data. In order to avoid radar signals during transmission, STA can monitor the slave 80MHz bandwidth channel to determine whether there is a radar signal.

[0171] S707 may occur simultaneously with the above-mentioned S704, or may not occur simultaneously, which is not limited in the embodiment of the present application.

[0172] In one example, S707 and S704 occur simultaneously, that is, the STA transmits data using the main 20 MHz bandwidth on the 2.4G link and transmits data using the 160 MHz bandwidth on the 5G link.

[0173] In another example, S707 and S704 do not occur simultaneously, that is, the STA uses the main 20 MHz bandwidth to transmit data on the 2.4G link and uses the 80 MHz bandwidth to transmit data on the 5G link, or the STA uses the 40 MHz bandwidth to transmit data on the 2.4G link and uses the 160 MHz bandwidth to transmit data on the 5G link.

[0174] S708. When the STA uses the 160 MHz bandwidth to transmit data, if a radar signal is detected on the secondary 80 MHz bandwidth, the STA uses the primary 80 MHz bandwidth to transmit data on the 5G link.

[0175] Radar signals are transmitted first. Therefore, when STA is transmitting data using the 160MHz bandwidth, if it detects radar signals on the secondary 80MHz bandwidth, STA can use the primary 80MHz bandwidth to transmit data.

[0176] S708 may occur simultaneously with the above-mentioned S705, or may not occur simultaneously, which is not limited in the embodiment of the present application.

[0177] In one example, S708 and S705 occur simultaneously, that is, the STA transmits data using a 40 MHz bandwidth on a 2.4G link and transmits data using an 80 MHz bandwidth on a 5G link.

[0178] In another example, S708 and S705 do not occur simultaneously, that is, the STA uses a 40 MHz bandwidth to transmit data on the 2.4G link and uses a 160 MHz bandwidth to transmit data on the 5G link, or the STA uses a 20 MHz bandwidth to transmit data on the 2.4G link and uses an 80 MHz bandwidth to transmit data on the 5G link.

[0179] Optionally, after the STA uses the primary 80 MHz bandwidth to transmit data for 30 minutes, it can detect whether there is a radar signal in the secondary 80 MHz bandwidth again. If there is no radar signal within 60 seconds, it can continue to use the 160 MHz bandwidth to transmit data.

[0180] The above S706 to S708 describe the bandwidth used by STA on the 5G link, which can be understood as follows: STA uses the main 80MHz bandwidth to transmit data on the 5G link, without considering radar signals, which is conducive to early data transmission, and determines whether there is a radar signal on the channel with a slave 80MHz bandwidth. If there is no radar signal within 60s, 160MHz (the sum of the main 80MHz bandwidth and the slave 80MHz bandwidth) can be used to transmit data, which is conducive to improving data transmission efficiency. When STA uses 160MHz to transmit data, a radar signal is detected and the main 80MHz bandwidth is used to transmit data.

[0181] In this way, STA first uses 80MHz to transmit data on the 5G link. Compared with the method of using 160MHz bandwidth to transmit data when there is no radar signal, data can be transmitted relatively early and the waiting time can be reduced. During the transmission process, the bandwidth used can be flexibly adjusted according to whether there is a radar signal in the 80MHz bandwidth channel, which is more flexible.

[0182] When STA transmits data to AP on 5G link, AP always uses 160MHz bandwidth to monitor. When STA uses main 80MHz bandwidth to transmit, AP can decode all signals in main 80MHz bandwidth and send them to MAC layer in DLL layer for aggregation. When STA uses 160MHz bandwidth to transmit, AP decodes signals in 160MHz bandwidth and sends them to MAC layer in DLL layer for aggregation. MAC layer can be as above. Figure 6 As shown, no further description is given here.

[0183] Exemplarily, when STA uses 80MHz bandwidth for transmission on 5G link, the bandwidth of B3-B5 bytes of U-SIG-1 field can be set to 2, and U-SIG-1 field is sent to AP. AP receives U-SIG-1 field, and decodes to obtain the bandwidth of B3-B5 bytes of U-SIG-1 field as 2, and can determine to decode the signal within 80MHz bandwidth to obtain the data sent by STA. When STA uses 160MHz bandwidth for transmission on 5G link, the bandwidth of B3-B5 bytes of U-SIG-1 field can be set to 3, and U-SIG-1 field is sent to AP. AP receives U-SIG-1 field, and decodes to obtain the bandwidth of B3-B5 bytes of U-SIG-1 field as 3, and can determine to decode the signal within 160MHz bandwidth to obtain the data sent by STA.

[0184] Optionally, when STA transmits data on 160MHz bandwidth and monitors on 80MHz bandwidth to determine whether there is a radar signal, it may cause inaccurate monitoring. Therefore, the embodiment of the present application proposes that when STA transmits data on 160MHz bandwidth, AP monitors on 80MHz bandwidth to determine whether there is a radar signal. When there is a radar signal, AP sends a beacon to STA, and the beacon includes an Extended Channel Switch Element information element and a Channel Switch Wrapper element format to instruct STA to switch to a channel with 80MHz bandwidth to transmit data. Among them, the Extend Channel Switch Element information element includes a new channel number (NewChannel Number) and a channel switch time (Channel Switch Count). The New Channel Number is used to indicate the channel on which STA sends data, such as channel 36, channel 40, channel 44, and channel 48, and the Channel Switch Count is used to indicate the channel switch time, such as the duration of a beacon cycle or the next beacon cycle switch. The Channel SwitchWrapper element format includes a wide bandwidth channel switch subelement (Wide Bandwidth ChannelSwitch subelement), and the Wide Bandwidth Channel Switch subelement includes a new channel bandwidth (New Channel Width). The New Channel Width is used to indicate the bandwidth of STA transmission data, such as 80 MHz.

[0185] For example, Figure 8 FIG. 4 shows a schematic diagram of the elements of the Extend Channel Switch Element. Figure 8 As shown, the Extend Channel Switch Element includes an element ID, a length, a channel switch mode, a new operating class, a new channel number, and a channel switch count. The embodiment of the present application mainly uses the new channel number to indicate the channel on which the STA sends data, and uses the channel switch count to indicate the time when the STA switches channels. The embodiment of the present application does not limit other elements.

[0186] For example, Fig. 9 FIG. 1 shows an element diagram of a Channel Switch Wrapper element format. Fig. 9 As shown, the Channel Switch Wrapper element format includes an element identifier (element ID), a length (Length), a new country subelement (New Country subelement), a wide bandwidth channel switch subelement (WideBandwidth Channel Switch subelement) and a new transmit power subelement (New TransmitPower Envelope). The Wide Bandwidth Channel Switch subelement includes an element identifier (element ID), a length (Length), a new channel bandwidth (New Channel Width), a new channel center frequency segment 0 (NewChannel Center Frequency 0) and a new channel center frequency segment 1 (New Channel Center Frequency 1). The embodiment of the present application mainly uses the new channel bandwidth included in the Wide Bandwidth Channel Switch subelement. The new channel bandwidth is used to indicate the bandwidth of STA transmission data. The embodiment of the present application does not limit other elements.

[0187] Optionally, the STA switches from the 160MHz bandwidth to the main 80MHz bandwidth to transmit data. After 30 minutes, the AP can detect whether there is a radar signal within 60s on the 80MHz bandwidth. If not, the AP can instruct the STA to switch to the 160MHz bandwidth channel to transmit data through the beacon frame. The New Channel Number in the beacon frame is used to indicate the channel number of the STA to send data, such as channel 36, channel 40, channel 44, channel 48, channel 52, channel 56, channel 60 and channel 64. The Channel Switch Count is used to indicate the channel switching time, such as the duration of a beacon cycle or the next beacon cycle switch. The New Channel Width is used to indicate the bandwidth of the STA to transmit data, such as 160MHz.

[0188] The above only describes the method for STA to send data to AP. The following describes the method for AP to send data to STA.

[0189] The process of AP transmitting data to STA can be the same as the process of STA sending data to AP. AP can also first use 40MHz to transmit data on the 2.4G link, and determine whether the CCA detection of the main 20MHz bandwidth and the slave 20MHz bandwidth in the 40MHz bandwidth meets the CCA threshold. When the CCA detection of the main 20MHz bandwidth meets the CCA threshold and the CCA detection of the slave 20MHz bandwidth meets the CCA threshold, use the 40MHz bandwidth to transmit data to the STA; when the CCA detection of the main 20MHz bandwidth does not meet the CCA threshold, regardless of whether the CCA detection of the slave 20MHz bandwidth meets the CCA threshold, enter the waiting state until the CCA detection of the main 20MHz bandwidth meets the CCA threshold; when the CCA detection of the main 20MHz bandwidth meets the CCA threshold and the CCA detection of the slave 20MHz bandwidth does not meet the CCA threshold, use the 20MHz bandwidth to transmit data to the STA. The AP can also use the main 80MHz bandwidth to transmit data on the 5G link without considering radar signals, which is conducive to early data transmission and determines whether there is a radar signal on the channel with the 80MHz bandwidth. If there is no radar signal within 60s, 160MHz (the sum of the main 80MHz bandwidth and the secondary 80MHz bandwidth) can be used to transmit data, which is conducive to improving data transmission efficiency. When the STA uses 160MHz to transmit data, a radar signal is detected and the main 80MHz bandwidth is used to transmit data.

[0190] When the AP transmits data to the STA through two links, the data is a whole at the application layer. When it is transmitted from the application layer to the MAC layer in the DLL, the MAC layer in the DLL is divided into two data paths. The two data paths are transmitted through the 2.4G link and the 5G link respectively. The IP addresses of the two links are the same, and the IP address is the IP address of the STA.

[0191] The above embodiments are all described using dual links as examples. The embodiments of the present application are not limited to dual links. Data can be transmitted between STA and AP through more than two links. For example, data can be transmitted between STA and AP through 2.4G links, 5G links, and 6G links. The embodiments of the present application are not limited to this.

[0192] The method provided in the embodiment of the present application is introduced above using a mobile phone cloning scenario. The method provided in the embodiment of the present application will be introduced below using a dual-link data transmission scenario.

[0193] Fig.10 FIG. 1 is a schematic flow chart of a data transmission method provided by an embodiment of the present application. Fig.10 As shown, the method may include the following steps:

[0194] S1001. A first terminal device establishes a first Wifi link and a second Wifi link with a second terminal device. The first Wifi link and the second Wifi link use different communication formats.

[0195] The first terminal device and the second terminal device may be different devices, and the first terminal device may be referred to as the first device or the first electronic device, which is not limited in the embodiments of the present application. The second terminal device may be referred to as the second device or the second electronic device, which is not limited in the embodiments of the present application. In one example, the first terminal device may be the STA in the above embodiment, and the second terminal device may be the AP in the above embodiment. In another example, the first terminal device may be the AP in the above embodiment, and the second terminal device may be the STA in the above embodiment.

[0196] The first Wifi link and the second Wifi link use different communication formats. For example, the first Wifi link may be a 2.4G link, and the second Wifi link may be a 5G link; or, the first Wifi link may be a 5G link, and the second Wifi link may be a 6G link; or, the first Wifi link may be a 2.4G link, and the second Wifi link may be a 6G link.

[0197] Exemplarily, the first terminal device and the second terminal device may establish a first Wifi link and a second Wifi link through a hotspot.

[0198] S1002. At a first moment, a first terminal device uses a first bandwidth to perform data transmission with a second terminal device in a first Wifi link, and the first terminal device uses a second bandwidth to perform data transmission with a second terminal device in a second Wifi link.

[0199] The first bandwidth and the second bandwidth are different bandwidths. The first bandwidth may be greater than the second bandwidth, or the first bandwidth may be less than the second bandwidth. This is not limited in the embodiments of the present application.

[0200] S1003. At the second moment, the interference received by the first terminal device within the first bandwidth exceeds the preset threshold. The first terminal device uses the third bandwidth to transmit data with the second terminal device in the first Wifi link, and the third bandwidth is smaller than the first bandwidth. Also, the fourth bandwidth satisfies that there is no radar signal within a preset time period. The first terminal device uses the fourth bandwidth to transmit data with the second terminal device in the second Wifi link, and the fourth bandwidth is larger than the second bandwidth. The second moment is later than the first moment.

[0201] The interference received by the first terminal device within the first bandwidth refers to the interference caused by the data transmitted by other terminal devices to the data transmitted by the first terminal device when the first terminal device and other terminal devices are transmitting data within the first bandwidth. The preset threshold is a preset value used to measure the size of the interference. If it exceeds the preset threshold, it can be said that the interference is large. If it does not exceed the preset threshold, it can be said that the interference is small. The third bandwidth is smaller than the first bandwidth, and the fourth bandwidth is larger than the second bandwidth. The embodiment of the present application does not limit the size relationship between the third bandwidth and the fourth bandwidth. Based on the provisions shown in Table 1 in the embodiment of the present application, the preset duration can be 60 seconds.

[0202] At the second moment, the interference received by the first terminal device in the first bandwidth exceeds the preset threshold, which can indicate that the interference in the first bandwidth is large. The first terminal device can use a third bandwidth smaller than the first bandwidth to transmit data with the second terminal device in the first Wifi link, which is conducive to reducing the impact of interference on the data. At the second moment, the fourth bandwidth satisfies the requirement that there is no radar signal within the preset time length, which can indicate that there is no radar signal in the fourth bandwidth and data can be transmitted. The first terminal device uses a fourth bandwidth larger than the second bandwidth to transmit data with the second terminal device in the second Wifi link. In this way, when the fourth bandwidth is available, using a larger fourth bandwidth for data transmission is conducive to improving data transmission efficiency.

[0203] S1004. At a third moment, the interference received by the first terminal device within the first bandwidth does not exceed the preset threshold, and the first terminal device uses the first bandwidth to transmit data with the second terminal device in the first Wifi link; and there is a radar signal within the fourth bandwidth, and the first terminal device uses the second bandwidth to transmit data with the second terminal device in the second Wifi link, and the third moment is later than the second moment.

[0204] At the third moment, the interference received by the first terminal device in the first bandwidth does not exceed the preset threshold, which indicates that the interference in the first bandwidth is small. The first terminal device can use the first bandwidth to transmit data with the second terminal device in the first Wifi link, which is conducive to improving data transmission efficiency. At the third moment, there is a radar signal in the fourth bandwidth, which indicates that it is not appropriate to transmit data. The first terminal device uses the second bandwidth to transmit data with the second terminal device in the second Wifi link, which is conducive to meeting the requirement of priority transmission of radar signals.

[0205] If the embodiments of the present application are applied to the above Figure 2 In the mobile phone cloning scenario shown, the first terminal device may be a STA, the second terminal device may be an AP, the first Wifi link may be a 2.4G link, the second Wifi link may be a 5G link, the first bandwidth may be 40MHz, the second bandwidth may be 80MHz, the third bandwidth may be 20MHz, and the fourth bandwidth may be 160MHz, as described above. Figure 7 The method shown is shown.

[0206] In the data transmission method provided in the embodiment of the present application, the first terminal device first uses the first bandwidth larger than the second bandwidth for data transmission in the first Wifi link, which is conducive to improving data transmission efficiency, and can flexibly adjust the used bandwidth according to the interference received in the first bandwidth, that is, select the appropriate bandwidth for data transmission in different scenarios, which is conducive to meeting the data transmission efficiency while avoiding the influence of interference on data; in the second Wifi link, a third bandwidth smaller than the fourth bandwidth is used for data transmission, radar signals can be ignored, which is conducive to transmitting data as early as possible, and the fourth bandwidth can be flexibly used according to whether there is a radar signal in the fourth bandwidth, which is conducive to improving data transmission efficiency while meeting the requirement of radar signal priority transmission.

[0207] Optionally, the first bandwidth is achieved by multiple channels, the multiple channels include first type channels and second type channels, the first type channels affect the use of the second type channels, and the second type channels do not affect the use of the first type channels; at the second moment, the interference within the first bandwidth exceeds a preset threshold, and the first terminal device uses a third bandwidth in the first Wifi link to perform data transmission with the second terminal device, including: at the second moment, the interference within the bandwidth achieved by the first type channel does not exceed the preset threshold, and the interference within the bandwidth achieved by the second type channel exceeds the preset threshold, and the first terminal device uses the bandwidth achieved by the first type channel to perform data transmission.

[0208] By the above Figure 1 It can be seen that the bandwidth of a channel is 20MHz, and the first bandwidth is realized by multiple channels, which can indicate that the first bandwidth is greater than 20MHz. The first type of channel can affect the use of the second type of channel, and the second type of channel does not affect the use of the first type of channel. For example, the first type of channel can be a main channel, and the bandwidth composed of the main channel can be called the main bandwidth. The second type of channel can be a slave channel, and the bandwidth composed of the slave channels can be called the slave bandwidth or the secondary bandwidth.

[0209] At the second moment, the interference within the bandwidth achieved by the first type of channel does not exceed the preset threshold, and the interference within the bandwidth achieved by the second type of channel exceeds the preset threshold, which can indicate that the first type of channel is available, and the bandwidth achieved by the second type of channel is unavailable, and the second type of channel does not affect the use of the first type of channel, so the first terminal device can use the bandwidth achieved by the first type of channel for data transmission. It can be understood that the size of the bandwidth achieved by the first type of channel is the same as the size of the third bandwidth.

[0210] For example, in the above Figure 7 In the method shown, the first Wifi link is a 2.4G link, the first bandwidth is 40MHz, the bandwidth realized by the first type of channel is the main 20MHz, the bandwidth realized by the second type of channel is the secondary 20MHz, and the CCA detection on the secondary 20MHz bandwidth does not meet the CCA threshold, which means that the interference within the bandwidth realized by the second type of channel exceeds the preset threshold, and the first terminal device can use the main 20MHz for data transmission.

[0211] Optionally, if the interference within the bandwidth achieved by the first type of channel exceeds a preset threshold, it may indicate that the bandwidth achieved by the first type of channel is unavailable and the first type of channel affects the use of the second type of channel. Therefore, the first terminal device may enter a waiting state until the interference within the bandwidth achieved by the first type of channel does not exceed the preset threshold.

[0212] For example, in the above Figure 7In the method shown, the first bandwidth is 40MHz, the bandwidth realized by the first type of channel is the main 20MHz, the bandwidth realized by the second type of channel is the secondary 20MHz, and the CCA detection on the main 20MHz bandwidth does not meet the CCA threshold, which indicates that the interference within the bandwidth realized by the first type of channel exceeds the preset threshold. The first terminal device can enter a waiting state until the CCA detection on the main 20MHz bandwidth meets the CCA threshold.

[0213] In the data transmission method provided in the embodiment of the present application, the bandwidth realized by the second type of channel in the first bandwidth exceeds a preset threshold, and the first terminal device can use the bandwidth realized by the first type of channel for data transmission, which is beneficial to reducing the impact of interference on data transmission and improving data transmission accuracy.

[0214] Optionally, the channel for implementing the fourth bandwidth includes a third type channel and a fourth type channel, the third type channel is not used to transmit radar signals, and the fourth type channel is used to transmit radar signals; at the second moment, the fourth bandwidth satisfies that there is no radar signal within a preset time length, and the first terminal device uses the fourth bandwidth in the second Wifi link to transmit data with the second terminal device, including: at the second moment, the bandwidth implemented by the fourth type channel satisfies that there is no radar signal within a preset time length, and the first terminal device uses the fourth bandwidth in the second Wifi link to transmit data with the second terminal device.

[0215] The channel that realizes the fourth bandwidth may also be referred to as the channel constituting the fourth bandwidth, which is not limited in the embodiment of the present application.

[0216] The third type of channel is not used to transmit radar signals, and radar signals can be ignored when transmitting data. The fourth type of channel is used to transmit radar signals, and the channel gives priority to transmitting radar signals.

[0217] Before the first terminal device uses the fourth bandwidth to transmit data, it needs to detect whether the bandwidth realized by the fourth type of channel satisfies the requirement that there is no radar signal within a preset time length. If the bandwidth realized by the fourth type of channel satisfies the requirement that there is no radar signal within a preset time length, it can be said that the fourth bandwidth is available. If the bandwidth realized by the fourth type of channel does not satisfy the requirement that there is no radar signal within a preset time length, it can be said that the fourth bandwidth is unavailable. At the second moment, the bandwidth realized by the fourth type of channel satisfies the requirement that there is no radar signal within a preset time length, which can be said that the fourth bandwidth is available. Therefore, the first terminal device uses the fourth bandwidth to transmit data with the second terminal device in the second Wifi link.

[0218] For example, in the above Figure 7In the method shown, the first Wifi link is a 5G link, the fourth bandwidth is 160MHz, the bandwidth implemented by the third type of channel is mainly 80MHz, and the bandwidth implemented by the fourth type of channel is from 80MHz. The 80MHz bandwidth satisfies that there is no radar signal within 60s, which means that the 80MHz bandwidth is available and the first terminal device can use 160MHz for data transmission.

[0219] The data transmission method provided in the embodiment of the present application uses the fourth bandwidth to transmit data when the fourth bandwidth is available, which is conducive to improving data transmission efficiency.

[0220] Optionally, the presence of the radar signal within the fourth bandwidth is monitored by the second terminal device, and the first terminal device uses the second bandwidth based on first information sent by the second terminal device, where the first information is used to instruct the first terminal device to use the second bandwidth.

[0221] When the first terminal device uses the fourth bandwidth to transmit data, there may still be a radar signal in the fourth bandwidth. The second terminal device can detect within the fourth bandwidth to determine whether there is a radar signal in the fourth bandwidth. If there is, the second terminal device can send first information to the first terminal device, and the first information is used to instruct the first terminal device to use the second bandwidth. The first terminal device receives the first information and can use the second bandwidth for data transmission based on the first information. In this way, when the first terminal device uses the fourth bandwidth to transmit data, it does not need to monitor whether there is a radar signal, which is conducive to saving power consumption.

[0222] Optionally, the first information includes at least one of an identifier of a channel implementing the second bandwidth, a time of using the second bandwidth, or a size of the second bandwidth.

[0223] The identifier of the channel of the second bandwidth may also be referred to as a channel number; the time of using the second bandwidth may also be referred to as a switching time, indicating the time of switching to use the second bandwidth, which is not limited in the embodiments of the present application.

[0224] Exemplarily, the identification of the channel of the second bandwidth can be achieved using the above Figure 8 The time for using the second bandwidth can be used Figure 8 The second bandwidth can be used to indicate the channel switching time (ChannelSwitch Count) in Figure 8 The New Channel Width indicator in the

[0225] Optionally, the above method also includes: at a fourth moment, the interference received by the first terminal device within the first bandwidth exceeds a preset threshold, and the first terminal device uses the third bandwidth in the first Wifi link to perform data transmission with the second terminal device; and the first terminal device uses the second bandwidth in the second Wifi link to perform data transmission with the second terminal device; at a fifth moment, the interference received by the first terminal device within the first bandwidth does not exceed the preset threshold, and the first terminal device uses the first bandwidth in the first Wifi link to perform data transmission with the second terminal device; and the first terminal device uses the second bandwidth in the second Wifi link to perform data transmission with the second terminal device, and the fifth moment is later than the fourth moment.

[0226] At the fourth moment, the interference received by the first terminal device in the first bandwidth exceeds the preset threshold, which indicates that the first bandwidth is unavailable. The first terminal device uses the third bandwidth to transmit data with the second terminal device in the first Wifi link; at this time, the second Wifi link is normal, and the first terminal device uses the second bandwidth to transmit data with the second terminal device. At the fifth moment, the interference received by the first terminal device in the first bandwidth does not exceed the preset threshold, which indicates that the first bandwidth is available. The first terminal device uses the first bandwidth to transmit data with the second terminal device in the first Wifi link; at this time, the second Wifi link is normal, and the first terminal device uses the second bandwidth to transmit data with the second terminal device in the second Wifi link. In this way, the first terminal device can flexibly adjust the bandwidth used in the first Wifi link according to the interference received in the first bandwidth, that is, select the appropriate bandwidth for data transmission in different scenarios, which is conducive to avoiding the impact of interference on data while meeting data transmission efficiency.

[0227] Optionally, the above method also includes: at a sixth moment, the first terminal device uses the first bandwidth to perform data transmission with the second terminal device in the first Wifi link; and, the fourth bandwidth satisfies that there is no radar signal within a preset time length, and the first terminal device uses the fourth bandwidth to perform data transmission with the second terminal device in the second Wifi link; at a seventh moment, the first terminal device uses the first bandwidth to perform data transmission with the second terminal device in the first Wifi link; and, there is a radar signal on the fourth bandwidth, and the first terminal device uses the second bandwidth to perform data transmission with the second terminal device in the second Wifi link, and the seventh moment is later than the sixth moment.

[0228] At the sixth moment, the first terminal device uses the first bandwidth to transmit data with the second terminal device in the first Wifi link; at this time, the fourth bandwidth satisfies the absence of radar signals within the preset time length, which indicates that the fourth bandwidth is available, and the first terminal device uses the fourth bandwidth to transmit data with the second terminal device in the second Wifi link. At the seventh moment, the first terminal device uses the first bandwidth to transmit data with the second terminal device in the first Wifi link; at this time, there is a radar signal on the fourth bandwidth, which indicates that the fourth bandwidth is unavailable, and the first terminal device uses the second bandwidth to transmit data with the second terminal device in the second Wifi link. In this way, in the second Wifi link, the fourth bandwidth can be flexibly used according to whether there is a radar signal in the fourth bandwidth, which is conducive to improving data transmission efficiency while meeting the requirement of priority transmission of radar signals.

[0229] Optionally, before the first terminal device establishes the first Wifi link and the second Wifi link with the second terminal device, the method also includes: the first terminal device receives second information from the second terminal device, the second information is used to indicate capability information supported by the second terminal device; the first terminal device establishes the first Wifi link and the second Wifi link with the second terminal device, including: if the second information includes MLO capability information, the first terminal device establishes the first Wifi link and the second Wifi link with the second terminal device based on the second information.

[0230] The first terminal device supports the MLO capability. If the second terminal device also supports the MLO capability, the first terminal device and the second terminal device can transmit through multi-link. The first terminal device can determine whether the second terminal device supports the MLO capability based on the second information sent by the second terminal device. If the second information includes the MLO capability information, it can be said that the second terminal device supports the MLO capability. Then, the first terminal device establishes the first Wifi link and the second Wifi link with the second terminal device based on the second information. In this way, when both devices support the MLO capability, using dual-link transmission is conducive to reducing the probability of data loss.

[0231] Optionally, the above method also includes: if the second information does not include MLO capability information, the first terminal device closes the first Wifi link or closes the second Wifi link.

[0232] If the second information does not include the MLO capability information, it can be indicated that the second terminal device does not support the MLO capability, and the first terminal device closes the first Wifi link or closes the second Wifi link. In this way, closing unused links is conducive to saving power consumption.

[0233] Optionally, the first terminal device closes the first Wifi link or closes the second Wifi link, including: if the transmission frequency band of the first Wifi link is greater than the transmission frequency band of the second Wifi link, the first terminal device closes the second Wifi link; or, if the transmission frequency band of the first Wifi link is less than the transmission frequency band of the second Wifi link, the first terminal device closes the first Wifi link.

[0234] Exemplarily, if the transmission frequency band of the first Wifi link is 2.4G, the transmission frequency band of the second Wifi link is 5G, and the transmission frequency band of the first Wifi link is smaller than the transmission frequency band of the second Wifi link, the first terminal device closes the first Wifi link.

[0235] The first terminal device can compare the transmission frequency band of the first Wifi link with the transmission frequency band of the second Wifi link, close the link with the smaller transmission frequency band, and use the link with the smaller transmission frequency band to transmit data, which is conducive to improving data transmission efficiency.

[0236] Optionally, before the first terminal device receives the second information from the second terminal device, the method further includes: the first terminal device displays a first interface, the first interface includes a first option and a second option, the first option is used to indicate that the first terminal device is a new device, and the second option is used to indicate that the second terminal device is an old device; in response to the user clicking the second option, the first terminal device displays a second interface, the second interface includes a scan box, and the scan box is used to scan a QR code to obtain hotspot information; the second terminal device displays a third interface, the third interface includes a third option and a fourth option, the third option is used to indicate that the second terminal device is a new device, and the fourth option is used to indicate that the second terminal device is an old device; in response to the user clicking the third option, the second terminal device displays a fourth interface, the fourth interface includes a QR code, and the QR code includes hotspot information; the first terminal device receives the second information from the second terminal device, including: the first terminal device obtains hotspot information in response to the scan box scanning the QR code displayed by the second terminal device, and receives the second information from the second terminal device.

[0237] The method provided in the embodiment of the present application can be applied to the mobile phone cloning scenario. Figure 2 In the example shown, the first terminal device is an old device, and the first interface is as follows: Figure 2 As shown in interface a in FIG. 1 , the first option is option 210, the second option is option 220, and the second interface is as shown in FIG. Figure 2 As shown in the b interface in FIG. 1 , the scanning box is the scanning box 230. The second terminal device is a new device, and the third interface is as shown in FIG. Figure 2 As shown in the interface d in FIG. 1 , the third option is option 240, the fourth option is option 250, and the fourth interface is as shown in FIG. Figure 2As shown in the e interface, the QR code is QR code 260.

[0238] Optionally, the third bandwidth is greater than the first bandwidth. In this way, the minimum bandwidth used in the second Wifi link, i.e., the third bandwidth, is still greater than the maximum bandwidth used in the first Wifi link, i.e., the first bandwidth, which indicates that the bandwidth of transmission of the second Wifi link is greater than the bandwidth of transmission of the first Wifi link, and the data transmission rate of the second Wifi link is greater than the data transmission rate of the first Wifi link.

[0239] Optionally, at the first moment, the first terminal device uses the first bandwidth to perform data transmission with the second terminal device in the first Wifi link, and the first terminal device uses the second bandwidth to perform data transmission with the second terminal device in the second Wifi link, including: at the first moment, the first terminal device uses the first bandwidth to send first data to the second terminal device in the first Wifi link, and the first terminal device uses the second bandwidth to send second data to the second terminal device in the second Wifi link, the sum of the first data and the second data is the target data to be transmitted, when the target data is transmitted from the application layer to the data link layer, the MAC layer in the data link layer is divided into the first data and the second data, and the IP addresses in the first Wifi link and the second Wifi link are the same.

[0240] When the first terminal device sends target data to the second terminal device, the same IP address can be used in the two Wifi links, and when the target data is transmitted from the application layer to the MAC layer in the data link layer, the target data is divided into the first data and the second data in the MAC layer in the data link layer, and the first data is transmitted using the first bandwidth in the first Wifi link, and the second data is transmitted using the second bandwidth in the second Wifi link. In this way, the two links use the same IP address, and before the MAC layer in the data link layer, the target data is transmitted as a whole, and after the MAC layer in the data link layer, the target data is divided into the first data and the second data. The application layer does not need to divert the data based on the IP address, the application side is not aware, and no configuration is required, which is conducive to reducing the complexity of data transmission.

[0241] The data transmission method of the embodiment of the present application has been described above, and the device for performing the above data transmission provided by the embodiment of the present application is described below. Those skilled in the art can understand that the method and the device can be combined and referenced with each other, and the relevant device provided by the embodiment of the present application can perform the steps in the above data transmission method.

[0242] In order to realize the above functions, the data transmission device includes hardware structures and / or software modules corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the method steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0243] The embodiment of the present application can divide the functional modules of the data transmission device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0244] like Fig.11 A schematic diagram of the structure of a chip provided in an embodiment of the present application: The chip 110 includes one or more (including two) processors 1101 , a communication line 1102 , a communication interface 1103 and a memory 1104 .

[0245] In some implementations, the memory 1104 stores the following elements: executable modules or data structures, or a subset thereof, or an extended set thereof.

[0246] The method described in the above embodiment of the present application can be applied to the processor 1101, or implemented by the processor 1101. The processor 1101 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware or software instructions in the processor 1101. The above processor 1101 can be a general-purpose processor (for example, a microprocessor or a conventional processor), a digital signal processor (digital signal processing, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), a field-programmable gate array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates, transistor logic devices or discrete hardware components. The processor 1101 can implement or execute the methods, steps and logic block diagrams related to each processing disclosed in the embodiment of the present application.

[0247] The steps of the method disclosed in the embodiment of the present application can be directly embodied as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. Among them, the software module can be located in a mature storage medium in the field such as a random access memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable read only memory (EEPROM). The storage medium is located in the memory 1104, and the processor 1101 reads the information in the memory 1104 and completes the steps of the above method in combination with its hardware.

[0248] The processor 1101 , the memory 1104 , and the communication interface 1103 may communicate with each other via the communication line 1102 .

[0249] In the above embodiments, the instructions stored in the memory for execution by the processor may be implemented in the form of a computer program product, wherein the computer program product may be pre-written in the memory, or may be downloaded and installed in the memory in the form of software.

[0250] The present application embodiment also provides a computer program product including one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or data center that includes one or more available media integrated. For example, the available medium may include a magnetic medium (e.g., a floppy disk, a hard disk or a tape), an optical medium (e.g., a digital versatile disc (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.

[0251] The present application also provides a computer-readable storage medium. The methods described in the above embodiments can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. Computer-readable media may include computer storage media and communication media, and may also include any medium that can transfer a computer program from one place to another. The storage medium may be any target medium that can be accessed by a computer.

[0252] As a possible design, the computer readable medium may include a compact disc read-only memory (CD-ROM), RAM, ROM, EEPROM or other optical disc storage; the computer readable medium may include a magnetic disk storage or other magnetic disk storage device. Moreover, any connection line may also be appropriately referred to as a computer readable medium. For example, if the software is transmitted from a website, server or other remote source using a coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology (such as infrared, radio and microwave), the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology such as infrared, radio and microwave are included in the definition of medium. Disk and disc as used herein include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, where disks usually reproduce data magnetically, while optical discs reproduce data optically using lasers.

[0253] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

Claims

1. A data transmission method, characterized in that: The method comprises: The first terminal device establishes a first Wifi link and a second Wifi link with the second terminal device, and the first Wifi link and the second Wifi link use different communication formats; At a first moment, the first terminal device uses a first bandwidth to perform data transmission with the second terminal device in the first Wifi link, and the first terminal device uses a second bandwidth to perform data transmission with the second terminal device in the second Wifi link; At a second moment, the interference received by the first terminal device in the first bandwidth exceeds a preset threshold, and the first terminal device uses a third bandwidth to perform data transmission with the second terminal device in the first Wifi link, and the third bandwidth is smaller than the first bandwidth; and the fourth bandwidth satisfies that there is no radar signal within a preset time length, and the first terminal device uses the fourth bandwidth to perform data transmission with the second terminal device in the second Wifi link, and the fourth bandwidth is larger than the second bandwidth, and the second moment is later than the first moment; At a third moment, the interference received by the first terminal device in the first bandwidth does not exceed the preset threshold, and the first terminal device uses the first bandwidth to perform data transmission with the second terminal device in the first Wifi link; and there is a radar signal in the fourth bandwidth, and the first terminal device uses the second bandwidth to perform data transmission with the second terminal device in the second Wifi link, and the third moment is later than the second moment.

2. The method according to claim 1, characterized in that The first bandwidth is realized by a plurality of channels, wherein the plurality of channels include a first type of channel and a second type of channel, the first type of channel affects the use of the second type of channel, and the second type of channel does not affect the use of the first type of channel; At the second moment, interference within the first bandwidth exceeds a preset threshold, and the first terminal device uses a third bandwidth to perform data transmission with the second terminal device in the first Wifi link, including: At the second moment, the interference within the bandwidth achieved by the first type of channel does not exceed the preset threshold, and the interference within the bandwidth achieved by the second type of channel exceeds the preset threshold, and the first terminal device uses the bandwidth achieved by the first type of channel for data transmission.

3. The method according to claim 1 or 2, characterized in that: The channels for implementing the fourth bandwidth include a third type channel and a fourth type channel, the third type channel is not used for transmitting radar signals, and the fourth type channel is used for transmitting radar signals; At the second moment, the fourth bandwidth satisfies that there is no radar signal within a preset time period, and the first terminal device uses the fourth bandwidth to perform data transmission with the second terminal device in the second Wifi link, including: At the second moment, the bandwidth achieved by the fourth type of channel satisfies that there is no radar signal within the preset time period, and the first terminal device uses the fourth bandwidth to transmit data with the second terminal device in the second Wifi link.

4. The method according to any one of claims 1 to 3, characterized in that The existence of the radar signal within the fourth bandwidth is monitored by the second terminal device, and the use of the second bandwidth by the first terminal device is achieved based on first information sent by the second terminal device, and the first information is used to instruct the first terminal device to use the second bandwidth.

5. The method according to claim 4, characterized in that The first information includes at least one of an identifier of a channel implementing the second bandwidth, a time for using the second bandwidth, or a size of the second bandwidth.

6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: At a fourth moment, the interference received by the first terminal device in the first bandwidth exceeds the preset threshold, and the first terminal device uses the third bandwidth to perform data transmission with the second terminal device in the first Wifi link; and the first terminal device uses the second bandwidth to perform data transmission with the second terminal device in the second Wifi link; At a fifth moment, the interference received by the first terminal device within the first bandwidth does not exceed the preset threshold, and the first terminal device uses the first bandwidth to perform data transmission with the second terminal device in the first Wifi link; and the first terminal device uses the second bandwidth to perform data transmission with the second terminal device in the second Wifi link, and the fifth moment is later than the fourth moment.

7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: At a sixth moment, the first terminal device uses the first bandwidth to perform data transmission with the second terminal device in the first Wifi link; and the fourth bandwidth satisfies that there is no radar signal within the preset time period, and the first terminal device uses the fourth bandwidth to perform data transmission with the second terminal device in the second Wifi link; At a seventh moment, the first terminal device uses the first bandwidth to perform data transmission with the second terminal device in the first Wifi link; and there is a radar signal on the fourth bandwidth, and the first terminal device uses the second bandwidth to perform data transmission with the second terminal device in the second Wifi link, and the seventh moment is later than the sixth moment.

8. The method according to any one of claims 1 to 7, characterized in that Before the first terminal device establishes the first Wifi link and the second Wifi link with the second terminal device, the method further includes: The first terminal device receives second information from the second terminal device, where the second information is used to indicate capability information supported by the second terminal device; The first terminal device establishes a first Wifi link and a second Wifi link with the second terminal device, including: If the second information includes multi-link MLO capability information, the first terminal device establishes the first Wifi link and the second Wifi link with the second terminal device based on the second information.

9. The method according to claim 8, characterized in that The method further comprises: If the second information does not include the MLO capability information, the first terminal device closes the first Wifi link or closes the second Wifi link.

10. The method according to claim 9, characterized in that The first terminal device closing the first Wifi link or closing the second Wifi link includes: If the transmission frequency band of the first Wifi link is greater than the transmission frequency band of the second Wifi link, the first terminal device closes the second Wifi link; or, If the transmission frequency band of the first Wifi link is smaller than the transmission frequency band of the second Wifi link, the first terminal device closes the first Wifi link.

11. The method according to any one of claims 8 to 10, characterized in that Before the first terminal device receives the second information from the second terminal device, the method further includes: The first terminal device displays a first interface, the first interface includes a first option and a second option, the first option is used to indicate that the first terminal device is a new device, and the second option is used to indicate that the second terminal device is an old device; In response to the user clicking the second option, the first terminal device displays a second interface, where the second interface includes a scanning box for scanning a QR code to obtain hotspot information; The second terminal device displays a third interface, the third interface includes a third option and a fourth option, the third option is used to indicate that the second terminal device is a new device, and the fourth option is used to indicate that the second terminal device is an old device; In response to the user clicking the third option, the second terminal device displays a fourth interface including the QR code, and the QR code includes the hotspot information; The first terminal device receives the second information from the second terminal device, including: The first terminal device obtains the hotspot information in response to the operation of the scanning box scanning the QR code displayed by the second terminal device, and receives the second information from the second terminal device.

12. The method according to any one of claims 1 to 11, characterized in that The third bandwidth is greater than the first bandwidth.

13. The method according to any one of claims 1 to 12, characterized in that At the first moment, the first terminal device uses a first bandwidth to perform data transmission with the second terminal device in the first Wifi link, and the first terminal device uses a second bandwidth to perform data transmission with the second terminal device in the second Wifi link, including: At the first moment, the first terminal device sends first data to the second terminal device using the first bandwidth in the first Wifi link, and the first terminal device sends second data to the second terminal device using the second bandwidth in the second Wifi link, the sum of the first data and the second data is the target data to be transmitted, when the target data is transmitted from the application layer to the data link layer, the MAC layer in the data link layer is divided into the first data and the second data, and the Internet Protocol IP address in the first Wifi link and the second Wifi link is the same.

14. A terminal device, characterized in that: include: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the terminal device executes the method according to any one of claims 1 to 13.

15. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 13 is implemented.

16. A computer program product, characterized in that The invention comprises a computer program which, when being executed, causes a computer to execute the method according to any one of claims 1 to 13.