Data transmission method and device and electronic equipment

The method adjusts Wi-Fi transmission parameters based on channel noisiness to balance power consumption and data rate, addressing interference and efficiency in varying environments.

CN119255359APending Publication Date: 2025-01-03VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411543325.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

Existing Wi-Fi wireless network technologies face challenges in balancing power consumption and data transmission rate, as increasing transmission power leads to higher consumption and susceptibility to interference, while enhancing receiving sensitivity increases noise interference.

Method used

A data transmission method that adjusts channel transmission parameters based on the difference in channel noisiness before and after parameter adjustment, including transmit power and receiving sensitivity, to optimize performance in varying environmental conditions.

Benefits of technology

This approach reduces power consumption and improves data transmission rate by dynamically adapting to changes in channel occupancy, minimizing interference and optimizing power usage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119255359A_ABST
    Figure CN119255359A_ABST
Patent Text Reader

Abstract

The invention discloses a data transmission method and device and electronic equipment, and belongs to the technical field of communication. The data transmission method comprises: in a process of transmitting data through a data transmission channel, obtaining a first channel noisy degree and a second channel noisy degree, the first channel noisy degree representing a non-idle time ratio of the data transmission channel at a first moment, and the second channel noisy degree representing a non-idle time ratio of the data transmission channel at a second moment; the second channel noisy degree represents a non-idle time ratio of the data transmission channel recorded in a process of adjusting the channel transmission parameter at a second moment, and the second moment is a moment before the first moment; under the condition that the difference value between the first channel noisy degree and the second channel noisy degree is greater than a first threshold value, adjusting a channel transmission parameter according to the size relationship between the first channel noisy degree and the second channel noisy degree; wherein the channel transmission parameters can comprise at least one of the following items: the transmitting power of the transmitting end, the receiving sensitivity of the transmitting end, the transmitting power of the receiving end and the receiving sensitivity of the receiving end.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to a data transmission method, device and electronic equipment. Background Art

[0002] With the widespread popularity of Wireless Fidelity (Wi-Fi) wireless network technology, the scenarios in which electronic devices use Wi-Fi wireless networks are becoming more and more complex. The main research direction of existing Wi-Fi wireless network technology is to improve the transmission performance indicators of Wi-Fi signals, including increasing transmission rate, improving connection stability, increasing the coverage range of Wi-Fi signals, etc.

[0003] In the related art, electronic devices can improve the transmission performance index of Wi-Fi signals by increasing the transmission power of the electronic devices, and can also improve the transmission performance index of Wi-Fi signals by adjusting the sensitivity gain (Gain) to increase the receiving sensitivity.

[0004] However, increasing the transmission power of electronic devices will increase the power consumption of electronic devices, and increasing the receiving sensitivity of electronic devices will make electronic devices more susceptible to interference from noise and interference signals, thereby reducing the data transmission rate. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a data transmission method, device and electronic device, which can reduce the power consumption of electronic devices and improve the data transmission rate between electronic devices.

[0006] In a first aspect, an embodiment of the present application provides a data transmission method, the method comprising: in a process of transmitting data through a data transmission channel, obtaining a first channel noisiness and a second channel noisiness, the first channel noisiness characterizing the proportion of non-idle time of the data transmission channel at a first moment, the second channel noisiness characterizing the proportion of non-idle time of the data transmission channel recorded in the process of adjusting channel transmission parameters at a second moment, the second moment being a moment before the first moment; when the difference between the first channel noisiness and the second channel noisiness is greater than a first threshold, adjusting the channel transmission parameters according to the relationship between the first channel noisiness and the second channel noisiness; wherein the channel transmission parameters may include at least one of the following: the transmit power of the transmitter, the receive sensitivity of the transmitter, the transmit power of the receiver, and the receive sensitivity of the receiver.

[0007] In a second aspect, an embodiment of the present application provides a data transmission device, which includes: an acquisition module and an adjustment module. The acquisition module is used to acquire a first channel noisiness and a second channel noisiness during data transmission through a data transmission channel, wherein the first channel noisiness represents the non-idle time ratio of the data transmission channel at a first moment, and the second channel noisiness represents the non-idle time ratio of the data transmission channel recorded during the adjustment of transmission parameters at a second moment, wherein the second moment is a moment before the first moment. The adjustment module is used to adjust the channel transmission parameters according to the magnitude relationship between the first channel noisiness and the second channel noisiness when the difference between the first channel noisiness and the second channel noisiness acquired by the acquisition module is greater than a first threshold. The channel transmission parameters may include at least one of the following: the transmission power of the transmitting end, the receiving sensitivity of the transmitting end, the transmission power of the receiving end, and the receiving sensitivity of the receiving end.

[0008] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the data transmission method described in the first aspect are implemented.

[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the data transmission method described in the first aspect are implemented.

[0010] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the data transmission method as described in the first aspect.

[0011] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the data transmission method as described in the first aspect.

[0012] In an embodiment of the present application, in the process of transmitting data through a data transmission channel, a first channel noisiness and a second channel noisiness are obtained, the first channel noisiness characterizes the non-idle time ratio of the data transmission channel at a first moment, and the second channel noisiness characterizes the non-idle time ratio of the data transmission channel recorded in the process of adjusting the channel transmission parameters at a second moment, and the second moment is a moment before the first moment; when the difference between the first channel noisiness and the second channel noisiness is greater than a first threshold, the channel transmission parameters are adjusted according to the relationship between the first channel noisiness and the second channel noisiness; wherein the channel transmission parameters may include at least one of the following: the transmit power of the transmitting end, the receive sensitivity of the transmitting end, the transmit power of the receiving end, and the receive sensitivity of the receiving end. In this way, since the proportion of non-idle time of the data transmission channel can reflect the situation that the data transmission channel is occupied by other electronic devices, that is, whether the data transmission channel is idle, the first channel noisiness can characterize whether the data transmission channel is idle at the first moment, and the second channel noisiness can characterize whether the data transmission channel is idle at the second moment before the first moment. The difference between the first channel noisiness and the second channel noisiness is greater than the first threshold, indicating that the occupancy of the data transmission channel has changed significantly, and the data transmission channel may change from idle to busy or from busy to idle. The adjustment of the transmission parameters at the second moment cannot be applicable to the situation that the data transmission channel is occupied at the first moment. In this case, the electronic device can adjust the channel transmission parameters. Furthermore, since the values ​​of applicable channel transmission parameters are different when the channel noisiness is poor and when the channel noisiness is good, this scheme adjusts at least one of the transmit power of the transmitter, the receive sensitivity of the transmitter, the transmit power of the receiver, or the receive sensitivity of the receiver according to the magnitude relationship between the first channel noisiness and the second channel noisiness, and the values ​​of the adjusted channel transmission parameters are more consistent with the situation where the data transmission channel is occupied at the first moment, that is, the adjustment of the channel transmission parameters by this scheme takes into account the actual environmental conditions during the data transmission process, and can reduce the power consumption of electronic devices and improve the data transmission rate between electronic devices compared to directly increasing the transmit power of the transmitter or the receive sensitivity of the transmitter in the related art. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 is a flowchart of a data transmission method provided by some embodiments of the present application;

[0014] Figure 2 is a flowchart of a data transmission method provided by some embodiments of the present application;

[0015] Figure 3 is a flowchart of a data transmission method provided by some embodiments of the present application;

[0016] Figure 4is a flowchart of a data transmission method provided by some embodiments of the present application;

[0017] Figure 5 is a flowchart of a data transmission method provided by some embodiments of the present application;

[0018] Figure 6 is a flowchart of a data transmission method provided by some embodiments of the present application;

[0019] Figure 7 is a flowchart of a data transmission method provided by some embodiments of the present application;

[0020] Figure 8 is a schematic diagram of the structure of a data transmission device provided in some embodiments of the present application;

[0021] Fig. 9 is a schematic diagram of the structure of an electronic device provided by some embodiments of the present application;

[0022] Fig.10 It is a schematic diagram of the hardware structure of an electronic device provided in some embodiments of the present application. DETAILED DESCRIPTION

[0023] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0024] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0025] The terms "at least one (item)", "at least one of" and the like in the specification and claims of the present application refer to any one, any two or a combination of more than two of the objects included therein. For example, at least one (item) of a, b, and c can be represented by: "a", "b", "c", "a and b", "a and c", "b and c" and "a, b and c", where a, b, and c can be single or multiple. Similarly, "at least two (items)" refers to two or more, and its meaning is similar to that of "at least one (item)".

[0026] First, the terms involved in the description of this application are explained.

[0027] Data transmission channel: It is the channel through which data is sent from the sender to the receiver in the communication system. It is the physical medium connecting the sender and the receiver.

[0028] Channel noise: It is used to characterize the proportion of non-idle time of the data transmission channel, reflecting the occupation of the data transmission channel by electronic devices, that is, whether the data transmission channel is idle and available.

[0029] Transmit power: refers to the working power of the transmitting antenna of a wireless communication device. Taking a router as an example, the higher the transmit power, the stronger the Wi-Fi signal strength, the stronger the penetration, the longer the transmission distance, the larger the coverage area, and the better the signal quality.

[0030] Receiving sensitivity: refers to the lowest electromagnetic wave energy that the receiving signal device can identify, indicating the weakest signal strength that the receiving signal device can receive under the premise of normal communication.

[0031] The data transmission method, device and electronic device provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0032] The data transmission method provided in the embodiment of the present application can be applied to a scenario where the electronic device is very close to the Wi-Fi device. The electronic device can be a mobile phone, a portable Android device (PAD), a smart watch, or other device with communication function. The Wi-Fi device can be a router, a portable Wi-Fi, an electronic device with a hotspot turned on, or other device with communication function, and the hotspot can be a hotspot in Wi-Fi soft AP mode (Wi-Fi Soft Access Point, SAP).

[0033] For example, scenarios where the electronic device and the Wi-Fi device are very close to each other may include wireless communication scenarios such as data transmission and one-click device switching.

[0034] For example, the electronic device is an old mobile phone and the Wi-Fi device is a new mobile phone with a hotspot turned on. When the data of the old mobile phone needs to be imported into the new mobile phone, the new mobile phone can turn on the hotspot, and the old mobile phone connects to the hotspot of the new mobile phone to send data to the new mobile phone. When the two mobile phones are very close to each other, if the transmission power and receiving sensitivity of the two mobile phones are very high, the two mobile phones are easily interfered by other nearby devices when sending and receiving data.

[0035] Taking the electronic device as a mobile phone and the Wi-Fi device as a router as an example, when the router and the user's mobile phone are placed in the living room, the distance between the two is very close. If the transmission power and receiving sensitivity of the mobile phone and the router are very high, the data transmission between the router and the mobile phone is easily interfered by other devices in the living room.

[0036] The execution subject of the data transmission method provided in the embodiment of the present application may be a data transmission device. Exemplarily, the data transmission device may be an electronic device, or a functional component or functional entity in the electronic device. The data transmission method provided in the embodiment of the present application will be described exemplarily below by taking the execution subject as an electronic device as an example.

[0037] Figure 1 is a flowchart of a data transmission method provided by some embodiments of the present application, such as Figure 1 As shown, the data transmission method provided in the embodiment of the present application may include the following steps 101 and 102.

[0038] Step 101: During data transmission through a data transmission channel, an electronic device obtains a first channel noisiness and a second channel noisiness.

[0039] It should be noted that the above-mentioned electronic device may be the device that sends data, ie, the transmitting end, among the two electronic devices that transmit data through the data transmission channel.

[0040] In some embodiments of the present application, the above-mentioned data transmission channel may be a Wi-Fi transmission channel for performing data transmission between a transmitting end and a receiving end.

[0041] In some embodiments of the present application, before transmitting data through a data transmission channel, a transmitting end and a receiving end first establish the above-mentioned data transmission channel for transmitting data.

[0042] Exemplarily, when both the sender and the receiver are mobile phones, both the sender and the receiver may have a mutual transmission application installed. The mutual transmission application of the receiver generates a QR code. The sender scans the QR code generated by the mutual transmission application of the receiver through the mutual transmission application installed by itself. After a successful scan, it is considered that the sender and the receiver have established a data transmission channel for transmitting data.

[0043] For example, taking the sending end as an old phone and the receiving end as a new phone, in a one-click phone replacement scenario, the old phone can scan the QR code generated by the new phone's mutual transfer application to connect to the new phone's hotspot and establish a data transmission channel between the old phone and the new phone. The old phone can then import its own data into the new phone through the data transmission channel.

[0044] Exemplarily, when the sending end is a router and the receiving end is a mobile phone, the receiving end searches for the Wi-Fi signal of the sending end and connects. After the connection is successful, it is considered that the receiving end and the sending end have established a data transmission channel for transmitting data.

[0045] For example, taking the sending end as a router and the receiving end as a mobile phone, when the router and the mobile phone are both placed in the living room, the distance between the two is very close. The mobile phone can search for the router's Wi-Fi signal to connect to the router, that is, establish a data transmission channel between the mobile phone and the router, and then the router and the mobile phone can transmit data to each other through the data transmission channel.

[0046] In some embodiments of the present application, the above-mentioned first channel noisiness can characterize the proportion of non-idle time of the data transmission channel at a first moment, and the above-mentioned second channel noisiness can characterize the proportion of non-idle time of the data transmission channel recorded during the process of adjusting the channel transmission parameters at a second moment, and the second moment is a moment before the first moment.

[0047] In some embodiments of the present application, the first channel noisiness and the second channel noisiness can be expressed by a clear channel assessment level (CCA level), which can be used to indicate the situation where the data transmission channel is occupied by other electronic devices per unit time, and can also be used to indicate the degree of wireless noise in the current environment. In addition, the larger the value of the channel noisiness, the noisier it is, that is, the busier the data transmission channel is, and the worse the environmental conditions for data transmission are.

[0048] For example, assume that the noise level of the first channel is 20. It can be understood that the duty cycle of the time when the data transmission channel is occupied by an electronic device at the first moment is 20 / 256, and the idle time accounts for 236 / 256, and this 236 / 256 part of time can be used by another device. Assume that the noise level of the second channel is 50. It can be understood that the duty cycle of the time when the data transmission channel is occupied by an electronic device at the second moment is 50 / 256, and the idle time accounts for 206 / 256, and this 206 / 256 part of time can be used by another device. Alternatively, assume that the noise level of the first channel is 100 and the noise level of the second channel is 30.

[0049] It should be noted that the explanation of channel noisiness in the embodiments of the present application can be found in the above description, and will not be repeated later to avoid repetition.

[0050] In some embodiments of the present application, both the transmitting end and the receiving end may periodically detect the channel noise of the data transmission channel to obtain the first channel noise. Furthermore, if only the receiving end detects the first channel noise, the receiving end may send the first channel noise to the transmitting end so that the transmitting end performs subsequent processing.

[0051] It should be noted that the above period can be set by default by the electronic device or according to actual needs, or can be set by the user based on experience, and the embodiment of the present application does not limit this. Exemplarily, the value range of the above period can be 1s-10s. For example, the value of the period is 2s, that is, the transmitting end and the receiving end detect the channel noisiness of the data transmission channel every 2s.

[0052] In some embodiments of the present application, the second moment may be the moment when the electronic device last adjusted the channel transmission parameters, and the second channel noisiness may represent the non-idle time ratio of the data transmission channel recorded during the last adjustment of the channel transmission parameters by the electronic device. It is understood that each time the electronic device adjusts the channel transmission parameters, it will record the non-idle time ratio of the data transmission channel at that time, so as to serve as a reference for subsequent adjustments.

[0053] In some embodiments of the present application, before the above step 101, the data transmission method provided by the embodiment of the present application may further include step 100, and the above step 101 may be implemented by the following step 1011.

[0054] Step 100: During data transmission via a data transmission channel, the electronic device obtains the amount of data to be transmitted.

[0055] Step 1011: When the data volume is greater than or equal to the second threshold, the electronic device obtains the first channel noisiness and the second channel noisiness.

[0056] It should be noted that the second threshold may be set by default by the electronic device or according to actual needs, or may be set by the user according to experience, and this embodiment of the present application does not limit this. For example, the second threshold may be 1 GB or 0.5 GB.

[0057] In some embodiments of the present application, during the process of transmitting data through a data transmission channel, the electronic device can obtain the data volume of the data to be transmitted. When the data volume is greater than or equal to a second threshold, that is, the data volume is relatively large, the transmission time is relatively long. Therefore, the electronic device can obtain the first channel noisiness and the second channel noisiness to determine whether it is necessary to adjust the channel transmission parameters.

[0058] For example, taking the sending end as an old mobile phone and the receiving end as a new mobile phone, in a one-click phone replacement scenario, when the old mobile phone sends data to the new mobile phone, the old mobile phone can obtain the first channel noisiness and the second channel noisiness when it determines that the amount of data to be transmitted is relatively large.

[0059] For example, taking the sending end as a router and the receiving end as a mobile phone, when the router and the mobile phone are both placed in the living room, when the router transmits data to the mobile phone, it can obtain the first channel noisiness and the second channel noisiness when it determines that the amount of data to be transmitted is relatively large.

[0060] In this way, since the transmission time is short and the impact on data transmission performance is small when the amount of data to be transmitted is small, the electronic device obtains the first channel noisiness and the second channel noisiness when the amount of data to be transmitted is large, and then determines whether and how to adjust the channel transmission parameters, thereby avoiding unnecessary operations such as adjusting the channel transmission parameters when the amount of data is small, and reducing the processing burden of the electronic device.

[0061] Furthermore, when the data volume is less than the second threshold, the electronic device does not adjust the channel transmission parameters and continues to perform data transmission with the current channel transmission parameters.

[0062] Step 102: When the difference between the first channel noisiness and the second channel noisiness is greater than a first threshold, the electronic device adjusts the channel transmission parameter according to the magnitude relationship between the first channel noisiness and the second channel noisiness.

[0063] In some embodiments of the present application, the difference between the first channel noisiness and the second channel noisiness is greater than the first threshold value, which can be understood as that after the last adjustment of the channel transmission parameters, the occupancy of the data transmission channel has changed significantly, such as being occupied by more electronic devices or occupied by fewer electronic devices, and the last adjusted channel transmission parameters may not be applicable to the current actual situation of the data transmission channel. Therefore, the electronic device can adjust the channel transmission parameters according to the relationship between the first channel noisiness and the second channel noisiness.

[0064] It should be noted that the first threshold may be set by default by the electronic device or according to actual needs, or may be set by the user according to experience, and this is not limited in the present embodiment.

[0065] Exemplarily, assuming that the noisiness of the first channel is 60, the noisiness of the second channel is 115, and the first threshold is 50, the difference between the noisiness of the first channel and the noisiness of the second channel is 55, and the difference is greater than the first threshold.

[0066] In some embodiments of the present application, the above-mentioned channel transmission parameters may include at least one of the following: the transmission power of the transmitting end, the receiving sensitivity of the transmitting end, the transmission power of the receiving end, and the receiving sensitivity of the receiving end.

[0067] In some embodiments of the present application, when the noisiness of the first channel is greater than the noisiness of the second channel, it means that the data transmission channel has become noisier and the environmental conditions for data transmission have become worse. Therefore, the electronic device can increase the channel transmission parameters to reduce the impact of the noisy environment on data transmission and increase the data transmission rate.

[0068] Exemplarily, when the noisiness of the first channel is greater than the noisiness of the second channel, the electronic device may determine how to adjust the channel transmission parameter according to the size of the channel transmission parameter.

[0069] Example 1: When the transmission power of the transmitting end is low, the electronic device first increases the transmission power of the transmitting end until the transmission power of the transmitting end is adjusted to a very high level, and then increases at least one of the receiving sensitivity of the transmitting end and the transmission power of the receiving end. Alternatively, when the transmission power of the transmitting end is very high, the electronic device directly increases at least one of the receiving sensitivity of the transmitting end and the transmission power of the receiving end.

[0070] Example 2: When the receiving sensitivity of the transmitting end is low, the electronic device first increases the receiving sensitivity of the transmitting end until the receiving sensitivity of the transmitting end is adjusted to a very high level, and then increases at least one of the transmitting power of the transmitting end and the receiving sensitivity of the receiving end. Alternatively, when the receiving sensitivity of the transmitting end is very high, the electronic device directly increases at least one of the transmitting power of the transmitting end and the receiving sensitivity of the receiving end.

[0071] In some embodiments of the present application, when the noisiness of the first channel is less than or equal to the noisiness of the second channel, it means that the data transmission channel may be occupied by fewer devices and the environmental conditions for data transmission have improved. Therefore, the electronic device can lower the channel transmission parameters to solve at least one of the problems of increased power consumption of the electronic device due to excessively high transmission power and reduced data transmission rate due to excessively high receiving sensitivity.

[0072] Example 3: When the transmission power of the transmitting end is high, the electronic device first lowers the transmission power of the transmitting end until the transmission power of the transmitting end is adjusted to a very low level, and then lowers at least one of the receiving sensitivity of the transmitting end and the transmission power of the receiving end. Alternatively, when the transmission power of the transmitting end is very low, the electronic device directly lowers at least one of the receiving sensitivity of the transmitting end and the transmission power of the receiving end.

[0073] Example 4: When the receiving sensitivity of the transmitting end is high, the electronic device first lowers the receiving sensitivity of the transmitting end until the receiving sensitivity of the transmitting end is adjusted to a very low level, and then lowers at least one of the transmitting power of the transmitting end and the receiving sensitivity of the receiving end. Alternatively, when the receiving sensitivity of the transmitting end is very low, the electronic device directly lowers at least one of the transmitting power of the transmitting end and the receiving sensitivity of the receiving end.

[0074] It should be noted that, in the embodiment of the present application, increasing the receiving sensitivity means increasing the value of the receiving sensitivity, such as increasing the value of the receiving sensitivity from -55dBm to -50dBm; decreasing the receiving sensitivity means decreasing the value of the receiving sensitivity, such as decreasing the value of the receiving sensitivity from -80dBm to -88dBm. Similarly, increasing the transmit power means increasing the value of the transmit power, such as increasing the value of the transmit power from 12dBm to 16dBm; decreasing the transmit power means decreasing the value of the transmit power, such as decreasing the value of the transmit power from 20dBm to 19dBm.

[0075] In some embodiments of the present application, Figure 1 ,like Figure 2 As shown, in the above step 102, "the electronic device adjusts the channel transmission parameters according to the magnitude relationship between the first channel noisiness and the second channel noisiness" can be specifically implemented by the following step 1021 or step 1022.

[0076] Step 1021: When the noise level of the first channel is greater than the noise level of the second channel and the transmit power of the transmitter is less than the first upper limit, the electronic device increases the transmit power value of the transmitter based on the reference increment.

[0077] In some embodiments of the present application, the first upper limit is the maximum value of the transmission power of the transmitter. It is understood that if the transmission power of the transmitter is greater than the first upper limit, it may have a negative impact on data transmission, such as increasing the power consumption of the electronic device.

[0078] It should be noted that the first upper limit value can be set by default by the electronic device or according to actual needs, or can be set by the user according to experience, and the embodiment of the present application does not limit this. For example, the first upper limit value can be set to 20dBm or 18dBm.

[0079] In some embodiments of the present application, the reference increment may be an adjustment amount for adjusting a channel transmission parameter. Exemplarily, the reference increment may be 1 dB or 0.5 dB. In this step, the reference increment is an adjustment amount for adjusting the transmit power of the transmitter.

[0080] It should be noted that the above-mentioned reference increment can be set by default by the electronic device or according to actual needs of the device, or can be set by the user based on experience, and when the electronic device adjusts different channel transmission parameters, the value of the reference increment can be the same or different, and the embodiments of the present application do not limit this.

[0081] In some embodiments of the present application, when the electronic device adjusts the transmit power, whether it is the transmit power of the transmitting end or the transmit power of the receiving end, the electronic device can adjust based on the same reference increment. Or, when the electronic device adjusts the receiving sensitivity, whether it is the receiving sensitivity of the transmitting end or the receiving sensitivity of the receiving end, the electronic device can adjust based on the same reference increment. Or, when adjusting each of the channel transmission parameters, the electronic device can adjust based on the same reference increment. Or, when adjusting each of the channel transmission parameters, the electronic device can adjust based on different reference increments respectively.

[0082] Exemplarily, when the difference between the first channel noise and the second channel noise is greater than the first threshold and the first channel noise is greater than the second channel noise, assuming that the transmit power of the transmitter is 15dBm, the first upper limit is 20dBm, and the reference increment is 1dB, since 15dBm is less than 20dBm, the transmit power of the transmitter is less than the first upper limit, the electronic device can increase the transmit power of the transmitter by 1dB.

[0083] Step 1022: When the noise level of the first channel is less than or equal to the noise level of the second channel and the transmit power of the transmitter is greater than the first lower limit, the electronic device lowers the transmit power value of the transmitter based on the reference increment.

[0084] In some embodiments of the present application, the first upper limit value is greater than the first lower limit value.

[0085] In some embodiments of the present application, the first lower limit value may be the minimum value that the transmit power of the transmitting end can take. It is understood that if the transmit power of the transmitting end is less than the first lower limit value, it may have a negative impact on data transmission, such as reducing communication quality, causing bit errors or packet loss, affecting the integrity and accuracy of data, and reducing the success rate of data transmission.

[0086] It should be noted that the first lower limit value may be set by default by the electronic device or according to actual needs, or may be set by the user according to experience, and the present application embodiment does not limit this. For example, the first lower limit value may be set to 0 dBm or 1 dBm.

[0087] In addition, the explanation of the reference increment can be found in the relevant description of the above step 1021, and the embodiment of the present application will not be repeated here.

[0088] Exemplarily, when the difference between the first channel noisiness and the second channel noisiness is greater than the first threshold and the first channel noisiness is less than or equal to the second channel noisiness, assuming that the transmit power of the transmitter is 15dBm, the first lower limit is 0dBm, and the reference increment is 1dB, since 15dBm is greater than 0dBm, the transmit power of the transmitter is greater than the first lower limit, then the electronic device can lower the transmit power value of the transmitter by 1dB.

[0089] In this way, when the data transmission environment of the electronic device deteriorates and the transmission power of the transmitter is low, the transmission power of the transmitter can be appropriately increased to improve the signal strength, which helps the receiving end to decode the received data more accurately and restore the data sent by the transmitter, reduce the bit error rate during data transmission, and improve the integrity and accuracy of the transmitted data, thereby improving the success rate of data transmission. Alternatively, when the data transmission environment of the electronic device improves and the transmission power of the transmitter is high, the transmission power of the transmitter can be appropriately lowered to reduce the power consumption of the electronic device, and it can also avoid excessive transmission power causing saturation or overload of the receiving end, which in turn affects the receiving performance. In summary, the electronic device can improve the performance of data transmission by adaptively adjusting the transmission power of the transmitter according to changes in the data transmission environment and the size of the transmission power of the transmitter.

[0090] In some embodiments of the present application, Figure 2 ,like Figure 3 As shown, the data transmission method provided in the embodiment of the present application may also include the following step 1023 or step 1024.

[0091] Step 1023: When the noisiness of the first channel is greater than the noisiness of the second channel and the transmit power of the transmitter is greater than or equal to the first upper limit, the electronic device increases at least one of the value of the receive sensitivity of the transmitter and the value of the transmit power of the receiver based on the reference increment.

[0092] In some embodiments of the present application, the reference increment is an adjustment amount for adjusting a channel transmission parameter. In this step, the reference increment is an adjustment amount for adjusting at least one of a receiving sensitivity of a transmitting end and a transmitting power of a receiving end.

[0093] It should be noted that, for explanations about the first upper limit value and the reference increment, please refer to the relevant description of the above step 1021, and the embodiments of the present application will not be repeated here.

[0094] In some embodiments of the present application, when the transmission power of the transmitting end is equal to or has reached the first upper limit value, it means that the transmission power of the transmitting end is already very large, and further increasing the transmission power of the transmitting end may not only fail to bring better results, but also increase the power consumption of the electronic device. Therefore, the electronic device can perform at least one of the following: increase the value of the receiving sensitivity of the transmitting end based on the reference increment, and increase the value of the transmission power of the receiving end based on the reference increment.

[0095] Exemplarily, when the noisiness of the first channel is greater than the noisiness of the second channel, assuming that the transmission power of the transmitter is 20dBm, the first upper limit value is 20dBm, and the reference increment is 1dB, it can be seen that the transmission power of the transmitter has reached the first upper limit value. The electronic device can increase the value of the receiving sensitivity of the transmitter by 1dB and increase the value of the transmission power of the receiver by 1dB.

[0096] Exemplarily, the electronic device may adjust the receiving sensitivity by modifying the sensitivity gain or falsely increasing the noise floor, which is not limited in the embodiments of the present application.

[0097] Step 1024: When the noisiness of the first channel is less than or equal to the noisiness of the second channel and the transmit power of the transmitter is less than or equal to the first lower limit, the electronic device lowers at least one of the numerical value of the receive sensitivity of the transmitter and the numerical value of the transmit power of the receiver based on the reference increment.

[0098] It should be noted that, for the explanation of the first lower limit value, please refer to the relevant description of the above step 1022, and for the explanation of the reference increment, please refer to the relevant description of the above step 1021 and step 1024, which will not be repeated here in the embodiment of the present application.

[0099] In some embodiments of the present application, when the transmission power of the transmitting end is equal to or has reached the first lower limit, it means that the transmission power of the transmitting end is already very low, and further reducing the transmission power of the transmitting end may not only fail to bring better results, but also reduce the success rate of data transmission. Therefore, the electronic device can perform at least one of the following: reduce the value of the receiving sensitivity of the transmitting end based on the reference increment, and reduce the value of the transmission power of the receiving end based on the reference increment.

[0100] Exemplarily, when the noisiness of the first channel is less than or equal to the noisiness of the second channel, assuming that the transmit power of the transmitter is 0dBm, the first lower limit is 0dBm, and the reference increment is 1dB, it can be seen that the transmit power of the transmitter has reached the first lower limit. The electronic device no longer lowers the transmit power of the transmitter, and can lower the value of the receive sensitivity of the transmitter by 1dB, and lower the value of the transmit power of the receiver by 1dB.

[0101] In this way, when the data transmission environment becomes worse and the transmission power of the transmitting end is already very high, the electronic device then increases at least one of the receiving sensitivity of the transmitting end and the transmitting power of the receiving end. Since the receiving end will feedback the message of whether the data is received to the transmitting end during the process of the transmitting end sending data to the receiving end, increasing the receiving sensitivity of the transmitting end helps the transmitting end to extract the message from the receiving end from the noise, so that the transmitting end can determine that the data transmission is normal; and increasing the transmitting power of the receiving end can improve the accuracy of the message fed back by the receiving end to the transmitting end, and further improve the success rate of data transmission. Alternatively, when the data transmission environment becomes better and the transmitting power of the transmitting end is already very low, the electronic device then lowers at least one of the receiving sensitivity of the transmitting end and the transmitting power of the receiving end. By lowering the receiving sensitivity of the transmitting end, the anti-interference ability of the transmitting end can be improved, and the excessive receiving sensitivity can be avoided to make the transmitting end more easily interfered, and the situation that the data transmission process is interrupted by the interference signal is reduced, and the stability and transmission rate of the data transmission are improved. In addition, lowering the transmitting power of the receiving end can avoid the excessively high transmitting power of the receiving end causing the power consumption of the receiving end to increase, and reduce the power consumption of the receiving end.

[0102] In some embodiments of the present application, after the above step 1021, the data transmission method provided by the embodiment of the present application may further include the following steps 201 to 203.

[0103] Step 201: The electronic device obtains two transmission rates before and after the transmission power of the transmitter is increased.

[0104] In some embodiments of the present application, the electronic device can detect the transmission rate in real time, and after increasing the transmission power of the transmitter, obtain two transmission rates detected before and after the transmission power of the transmitter is increased.

[0105] For example, it is assumed that the transmission rate of the transmitted data after the transmission power value of the transmitting end is increased is 85MB / s, and the transmission rate of the transmitted data before the increase is 90MB / s. Alternatively, it is assumed that the transmission rate of the transmitted data after the transmission power value of the transmitting end is increased is 85MB / s, and the transmission rate of the transmitted data before the increase is 80MB / s.

[0106] Step 202: When the two transmission rates satisfy the third condition, the electronic device lowers the transmission power value of the transmitter based on the reference increment.

[0107] In some embodiments of the present application, the above-mentioned third condition may include that the transmission rate after increasing the transmission power value of the transmitting end is less than the transmission rate before the increase, that is, after increasing the transmission power of the transmitting end, the transmission rate of data transmitted between the transmitting end and the receiving end decreases.

[0108] In some embodiments of the present application, if the transmission rate of the transmitted data decreases after the electronic device increases the transmission power of the transmitter, it means that it is inappropriate to increase the value of the transmission power of the transmitter this time. The electronic device can then lower the value of the transmission power of the transmitter based on the reference increment, that is, adjust it to the value before the increase.

[0109] For example, assuming that the transmission rate after increasing the transmission power of the transmitter is 85MB / s, and the transmission rate before the increase is 90MB / s, it means that after the electronic device increases the transmission power of the transmitter, the transmission rate of data transmitted between the transmitter and the receiver decreases. Assuming that the reference increment is 1dB, if the transmission power of the transmitter is 18dBm, the electronic device can reduce the transmission power of the transmitter to 17dBm. Or, if the transmission power of the transmitter is 20dBm, the electronic device can reduce the transmission power of the transmitter to 19dBm.

[0110] In this way, if the transmission rate decreases after the transmit power of the transmitter is increased, it means that the adjustment has brought negative effects. Therefore, the electronic device lowers the transmit power value of the transmitter to restore it to the value before the increase, which can ensure that increasing the transmit power of the transmitter will not reduce the transmission rate. In addition, since increasing the transmit power of the transmitter can increase the signal strength, thereby improving the integrity and accuracy of data transmission and the success rate of data transmission, after the transmit power of the transmitter is lowered back, it can avoid the increase in power consumption of the transmitter due to excessive transmit power while improving the success rate of data transmission.

[0111] Step 203: When the two transmission rates do not satisfy the third condition, the electronic device increases the transmission power value of the transmitting end based on the reference increment.

[0112] In some embodiments of the present application, after the electronic device increases the transmission power of the transmitter, if the transmission rate of the transmitted data does not decrease, it means that increasing the transmission power value of the transmitter does not affect the transmission rate. Therefore, the electronic device can continue to increase the transmission power value of the transmitter.

[0113] Exemplarily, the electronic device may determine whether the transmit power of the transmitter is less than the first upper limit value, and if so, increase the transmit power value of the transmitter based on the reference increment; if not, execute the above step 1023.

[0114] For example, assuming that the transmission rate after increasing the transmission power of the transmitter is 95MB / s, and the transmission rate before the increase is 90MB / s, it means that after the electronic device increases the transmission power of the transmitter, the transmission rate of data transmitted between the transmitter and the receiver is improved. Assuming that the reference increment is 1dB, if the transmission power of the transmitter is 18dBm, the above-mentioned first upper limit value is 20dBm, that is, the transmission power of the transmitter is less than the first upper limit value, then the electronic device can increase the transmission power of the transmitter to 19dBm. Alternatively, if the transmission power of the transmitter is 20dBm, the above-mentioned first upper limit value is 20dBm, that is, the transmission power of the transmitter has reached the first upper limit value, then the electronic device can perform the above step 1023.

[0115] In this way, if the transmission rate does not decrease after increasing the transmission power of the transmitter, and the transmission power of the transmitter has not reached the maximum, the electronic device can continue to increase the transmission power of the transmitter. Since increasing the transmission power can increase the signal strength, it helps the receiving end to more accurately decode the received data and restore the data sent by the transmitter. Therefore, by gradually increasing the transmission power of the transmitter, the bit error rate in the data transmission process can be gradually reduced, the integrity and accuracy of data transmission can be improved, and the success rate of data transmission can be gradually improved.

[0116] In some embodiments of the present application, after the above step 202, the data transmission method provided by the embodiment of the present application may further include the following step 204.

[0117] Step 204: The electronic device increases at least one of a value of a receiving sensitivity of the transmitting end and a value of a transmitting power of the receiving end based on the reference increment.

[0118] In some embodiments of the present application, when the noisiness of the first channel is greater than the noisiness of the second channel, that is, when the data transmission environment deteriorates, if the electronic device has adjusted the transmit power of the transmitter to the point where it can no longer be adjusted, the electronic device may perform at least one of the following: increase the value of the receive sensitivity of the transmitter based on a reference increment, and increase the value of the transmit power of the receiver based on the reference increment.

[0119] Exemplarily, assuming that the reference increment is 1dB, when the noise level of the first channel is greater than the noise level of the second channel, the electronic device may increase the value of the receiving sensitivity of the transmitting end by 1dB and increase the value of the transmitting power of the receiving end by 1dB. For example, assuming that the value of the receiving sensitivity of the transmitting end is -80dBm, the electronic device increases the value of the receiving sensitivity of the transmitting end to -79dBm; assuming that the value of the receiving sensitivity of the transmitting end is -89dBm, the electronic device increases the value of the receiving sensitivity of the transmitting end to -88dBm.

[0120] It should be noted that the specific implementation of this step can refer to the relevant description of the above-mentioned step 1023, and the embodiment of the present application will not be repeated here.

[0121] In this way, when the transmission power of the transmitter has been adjusted to the point where it cannot be adjusted further, the electronic device can increase at least one of the receiving sensitivity of the transmitter and the transmitting power of the receiver. Since the receiving end will feedback to the transmitter whether the data is received during the process of the transmitter sending data to the receiving end, increasing the receiving sensitivity of the transmitter helps the transmitter to extract the message from the receiving end from the noise, so that the transmitter can determine that the data transmission is proceeding normally; and, increasing the transmitting power of the receiving end can improve the signal strength, reduce the bit error rate during data transmission, and thereby improve the accuracy of the message feedback from the receiving end to the transmitter, further improving the success rate of data transmission.

[0122] In some embodiments of the present application, after the above step 1022, the data transmission method provided by the embodiment of the present application may further include the following steps 301 to 303.

[0123] Step 301: The electronic device obtains two transmission rates before and after lowering the transmission power value of the transmitting end.

[0124] In some embodiments of the present application, the electronic device can detect the transmission rate in real time, and after lowering the transmission power of the transmitter, obtain two transmission rates detected before and after lowering the transmission power of the transmitter.

[0125] For example, it is assumed that the transmission rate of the transmitted data after the transmission power value of the transmitting end is lowered is 85MB / s, and the transmission rate of the transmitted data before the lowering is 90MB / s. Alternatively, it is assumed that the transmission rate of the transmitted data after the transmission power value of the transmitting end is lowered is 85MB / s, and the transmission rate of the transmitted data before the lowering is 80MB / s.

[0126] Step 302: When the two transmission rates satisfy the fifth condition, the electronic device increases the transmission power value of the transmitter based on the reference increment.

[0127] In some embodiments of the present application, the fifth condition mentioned above may include that the transmission rate after lowering the transmission power value of the transmitting end is less than the transmission rate before the lowering, that is, after lowering the transmission power of the transmitting end, the transmission rate of data transmitted between the transmitting end and the receiving end decreases.

[0128] In some embodiments of the present application, if the transmission rate of the transmitted data decreases after the electronic device lowers the transmission power of the transmitter, it means that it is inappropriate to lower the value of the transmission power of the transmitter this time. The electronic device can then increase the value of the transmission power of the transmitter based on the reference increment, that is, adjust it to the value before the decrease.

[0129] For example, assuming that the transmission rate after lowering the transmission power of the transmitter is 85MB / s, and the transmission rate before lowering is 90MB / s, it means that after the electronic device lowers the transmission power of the transmitter, the transmission rate of data transmitted between the transmitter and the receiver decreases. Assuming that the reference increment is 1dB, if the transmission power of the transmitter is 18dBm, the electronic device can increase the transmission power of the transmitter to 19dBm. Alternatively, if the transmission power of the transmitter is 15dBm, the electronic device can increase the transmission power of the transmitter to 16dBm.

[0130] In this way, if the transmission rate decreases after lowering the transmit power of the transmitter, it means that the adjustment has brought negative effects. Therefore, the electronic device can increase the transmit power value of the transmitter to restore it to the value before the reduction, which can ensure that lowering the transmit power of the transmitter will not reduce the transmission rate. Moreover, since lowering the transmit power of the transmitter can reduce the power consumption of the transmitter, after adjusting the transmit power of the transmitter back, it can try to avoid reducing the success rate of data transmission due to excessively low transmit power while reducing the power consumption of the transmitter.

[0131] Step 303: When the two transmission rates do not satisfy the fifth condition, the electronic device lowers the transmission power value of the transmitter based on the reference increment.

[0132] In some embodiments of the present application, after the electronic device lowers the transmission power of the transmitter, if the transmission rate of the transmitted data does not decrease, it means that lowering the transmission power value of the transmitter does not affect the transmission rate. Therefore, the electronic device can continue to lower the transmission power value of the transmitter.

[0133] In some embodiments of the present application, the electronic device may adjust whether to adjust the transmit power of the transmitting end according to the magnitude relationship between the transmit power of the transmitting end and the first lower limit value. Exemplarily, the electronic device may determine whether the transmit power of the transmitting end is greater than the first lower limit value, and if so, adjust the transmit power value of the transmitting end lower based on the reference increment; if not, execute the above step 1024.

[0134] For example, assuming that the transmission rate after lowering the transmission power of the transmitter is 95MB / s, and the transmission rate before the lowering is 90MB / s, it means that after the electronic device lowers the transmission power of the transmitter, the transmission rate of data transmitted between the transmitter and the receiver is improved. Assuming that the reference increment is 1dB, if the transmission power of the transmitter is 18dBm, the above first lower limit is 0dBm, that is, the transmission power of the transmitter is greater than the first lower limit, then the electronic device can lower the transmission power of the transmitter to 17dBm. Alternatively, if the transmission power of the transmitter is 0dBm, the above first lower limit is 0dBm, that is, the transmission power of the transmitter has reached the first lower limit, then the electronic device can perform the above step 1024.

[0135] In this way, if the transmission rate is improved after lowering the transmission power of the transmitter, the electronic device can continue to lower the transmission power of the transmitter, which can further reduce the power consumption of the transmitter while ensuring that the transmission rate of data transmission does not decrease.

[0136] In some embodiments of the present application, after the above step 302, the data transmission method provided by the embodiment of the present application may further include the following step 304.

[0137] Step 304: The electronic device lowers the value of the receiving sensitivity of the transmitting end or the value of the transmitting power of the receiving end based on the reference increment.

[0138] In some embodiments of the present application, when the noisiness of the first channel is less than or equal to the noisiness of the second channel, that is, when the data transmission environment improves, if the electronic device has adjusted the transmit power of the transmitter to the point where it can no longer be adjusted, the electronic device can perform at least one of the following: lowering the value of the receiving sensitivity of the transmitter based on a reference increment, and lowering the value of the transmit power of the receiver based on the reference increment.

[0139] Exemplarily, assuming that the reference increment is 1dB, when the noise level of the first channel is less than or equal to the noise level of the second channel, the electronic device may lower the value of the receiving sensitivity of the transmitting end by 1dB and lower the value of the transmitting power of the receiving end by 1dB. For example, assuming that the value of the receiving sensitivity of the transmitting end is -80dBm, the electronic device lowers the value of the receiving sensitivity of the transmitting end to -81dBm; assuming that the value of the receiving sensitivity of the transmitting end is -88dBm, the electronic device lowers the value of the receiving sensitivity of the transmitting end to -89dBm.

[0140] It should be noted that the specific implementation of this step can refer to the relevant description of the above-mentioned step 1024, and the embodiment of the present application will not be repeated here.

[0141] In this way, when the transmission power of the transmitter has been adjusted to the point where it cannot be adjusted further, the electronic device can lower at least one of the values ​​of the receiving sensitivity of the transmitter and the transmitting power of the receiver. By lowering the receiving sensitivity of the transmitter, the anti-interference ability of the transmitter can be improved, and the transmitter can be prevented from being interrupted by interference signals when sending data, thereby improving the stability and transmission rate of data transmission. In addition, by lowering the transmitting power of the receiver, the power consumption of the receiver can be reduced.

[0142] In some embodiments of the present application, after the above step 1023, the data transmission method provided by the embodiment of the present application may further include the following steps 401 to 403.

[0143] Step 401: The electronic device obtains two transmission rates before and after the receiving sensitivity of the transmitting end or the transmitting power of the receiving end is increased.

[0144] In some embodiments of the present application, the electronic device may detect the transmission rate in real time, and after executing the above step 1023, obtain two transmission rates detected before and after executing the above step 1023.

[0145] For the convenience of description, the transmission rate after increasing the receiving sensitivity of the transmitting end or the transmission power of the receiving end is called the first transmission rate, and the transmission rate before increasing is called the second transmission rate.

[0146] For example, it is assumed that the first transmission rate is 85 MB / s and the second transmission rate is 90 MB / s. Alternatively, it is assumed that the first transmission rate is 85 MB / s and the second transmission rate is 80 MB / s.

[0147] Step 402: When two transmission rates satisfy the first condition, or the receiving sensitivity of the transmitting end is greater than or equal to the second upper limit value, or the transmitting power of the receiving end is greater than or equal to the third upper limit value, the electronic device lowers at least one of the numerical values ​​of the receiving sensitivity of the transmitting end and the transmitting power of the receiving end based on the reference increment.

[0148] In some embodiments of the present application, the first condition may include that the transmission rate after increasing the receiving sensitivity of the transmitting end or the transmission power of the receiving end is less than the transmission rate before the increase.

[0149] In some embodiments of the present application, the second upper limit is the maximum value that the receiving sensitivity of the transmitting end can take. It is understood that if the receiving sensitivity of the transmitting end is greater than the second upper limit, it may have a negative impact on data transmission, such as making the data transmission process more susceptible to interference and reducing the success rate and transmission rate of data transmission.

[0150] In some embodiments of the present application, the third upper limit is the maximum value that the transmit power of the receiving end can take. It is understood that if the transmit power of the receiving end is greater than the third upper limit, it may have a negative impact on data transmission, such as making the data transmission process more susceptible to interference and reducing the success rate and transmission rate of data transmission.

[0151] It should be noted that the second upper limit value and the third upper limit value can be set by the electronic device by default or according to actual needs, or can be set by the user according to experience, and the third upper limit value can be the same as or different from the first upper limit value, which is not limited in the embodiment of the present application. For example, the second upper limit value can be set to -30dBm or -29dBm, and the third upper limit value can be set to 20dBm.

[0152] In some embodiments of the present application, after increasing the receiving sensitivity of the transmitting end or the transmitting power of the receiving end, if the transmission rate of the transmitted data decreases, or the receiving sensitivity of the transmitting end is greater than or equal to the second upper limit value, or the transmitting power of the receiving end is greater than or equal to the third upper limit value, it means that the adjustment is inappropriate. The electronic device can perform an adjustment operation opposite to the current adjustment, and the adjustment operation may include at least one of the following: lowering the receiving sensitivity of the transmitting end based on the reference increment, and lowering the transmitting power of the receiving end based on the reference increment.

[0153] In the first example of the present application, when the electronic device increases the value of the receiving sensitivity of the transmitting end in step 1023, if the transmission rate decreases after the increase, or the receiving sensitivity of the transmitting end is greater than or equal to the second upper limit value, the electronic device can lower the value of the receiving sensitivity of the transmitting end based on the reference increment.

[0154] For example, assuming that the transmission rate after the electronic device increases the value of the receiving sensitivity of the transmitter is 85MB / s, and the transmission rate before the increase is 90MB / s, it means that after the electronic device increases the receiving sensitivity of the transmitter, the transmission rate of the data transmitted between the transmitter and the receiver decreases. Alternatively, assuming that after the electronic device increases the value of the receiving sensitivity of the transmitter, the receiving sensitivity of the transmitter is -30dBm, and the second upper limit is -30dBm, indicating that the receiving sensitivity of the transmitter reaches the second upper limit. Based on this, assuming that the reference increment is 1dB, the electronic device can lower the receiving sensitivity of the transmitter to -31dBm.

[0155] In the second example of the present application, when the electronic device increases the value of the transmission power of the receiving end in step 1023, if the transmission rate decreases after the increase, or the transmission power of the receiving end is greater than or equal to the third upper limit value, the electronic device can lower the value of the transmission power of the receiving end based on the reference increment.

[0156] For example, assuming that the transmission rate after the electronic device increases the value of the transmit power of the receiving end is 85MB / s, and the transmission rate before the increase is 90MB / s, it means that after the electronic device increases the transmit power of the receiving end, the transmission rate of the data transmitted between the transmitting end and the receiving end decreases. Alternatively, assuming that after the electronic device increases the value of the transmit power of the receiving end, the transmit power of the receiving end is 20dBm, and the third upper limit is 20dBm, indicating that the transmit power of the receiving end reaches the third upper limit. Based on this, assuming that the reference increment is 1dB, the electronic device can reduce the transmit power of the receiving end to 19dBm.

[0157] In the third example of the present application, when the electronic device increases the value of the receiving sensitivity of the transmitting end and the value of the transmitting power of the receiving end in step 1023, if the transmission rate of the transmitted data decreases, or the receiving sensitivity of the transmitting end is greater than or equal to the second upper limit value, or the transmitting power of the receiving end is greater than or equal to the third upper limit value, the electronic device may lower the value of the receiving sensitivity of the transmitting end based on the reference increment, and lower the value of the transmitting power of the receiving end based on the reference increment.

[0158] For example, assuming that the transmission rate after the electronic device increases the receiving power of the transmitting end and the transmitting power of the receiving end is 85MB / s, and the transmission rate before the increase is 90MB / s, it means that after the electronic device increases the receiving power of the transmitting end and the transmitting power of the receiving end, the transmission rate of the data transmitted between the transmitting end and the receiving end decreases. Alternatively, assuming that after the electronic device increases the receiving sensitivity of the transmitting end and the transmitting power of the receiving end, the receiving sensitivity of the transmitting end is -30dBm, and the second upper limit is -30dBm, indicating that the receiving sensitivity of the transmitting end reaches the second upper limit, and the transmitting power of the receiving end is 20dBm, and the third upper limit is 20dBm, indicating that the transmitting power of the receiving end reaches the third upper limit. Based on this, assuming that the reference increment is 2dB, the electronic device can lower the receiving sensitivity of the transmitting end to -32dBm and the transmitting power of the receiving end to 18dBm.

[0159] In this way, after increasing at least one of the values ​​of the receiving sensitivity of the transmitter and the transmitting power of the receiver, if the transmission rate is reduced, or the receiving sensitivity of the transmitter has reached or exceeded its upper limit, or the transmitting power of the receiver has reached or exceeded its upper limit, it means that the adjustment is not effective. Then the electronic device can lower at least one of the values ​​of the receiving sensitivity of the transmitter and the transmitting power of the receiver, so that at least one of the receiving sensitivity of the transmitter and the transmitting power of the receiver is restored to the value before the increase. This can not only ensure that adjusting at least one of the receiving sensitivity of the transmitter and the transmitting power of the receiver will not reduce the transmission rate, but also, since increasing the receiving sensitivity of the transmitter can ensure the normal data transmission, and the excessively high receiving sensitivity of the transmitter makes the data transmission process more susceptible to interference, after lowering the receiving sensitivity of the transmitter, the anti-interference ability of the transmitter can be improved while ensuring the normal data transmission, thereby improving the stability of data transmission. Moreover, since the transmitting power of the receiver is too high, the power consumption of the receiver will increase. Therefore, after lowering the transmitting power of the receiver, the power consumption of the receiver can be reduced.

[0160] Step 403: When the two transmission rates do not satisfy the first condition, the receiving sensitivity of the transmitting end is less than the second upper limit value, and the transmitting power of the receiving end is less than the third upper limit value, the electronic device again increases at least one of the values ​​of the receiving sensitivity of the transmitting end and the transmitting power of the receiving end based on the reference increment.

[0161] It should be noted that, for explanations on the first condition, the second upper limit value and the third upper limit value, please refer to the relevant description of the above step 402, and for explanations on the reference increment, please refer to the relevant description of the above step 1021, which will not be repeated in the embodiments of the present application.

[0162] In some embodiments of the present application, after increasing the receiving sensitivity of the transmitting end or the transmitting power of the receiving end, if the transmission rate of the transmitted data does not decrease, and the receiving sensitivity of the transmitting end is less than the second upper limit value, and the transmitting power of the receiving end is less than the third upper limit value, it means that the last adjustment is appropriate, then the electronic device can continue to perform the same adjustment operation as the last adjustment, and the adjustment operation may include at least one of the following: increasing the receiving sensitivity of the transmitting end based on the reference increment, and increasing the transmitting power of the receiving end based on the reference increment.

[0163] In the first example of the present application, when the electronic device increases the value of the receiving sensitivity of the transmitting end in step 1023, if the transmission rate does not decrease after the increase, and the receiving sensitivity of the transmitting end is less than the second upper limit value, the electronic device can increase the value of the receiving sensitivity of the transmitting end based on the reference increment.

[0164] For example, assuming that the transmission rate after the electronic device increases the value of the receiving sensitivity of the transmitter is 90MB / s, the transmission rate before the increase is 85MB / s, the receiving sensitivity of the transmitter is -80dBm, and the second upper limit is -30dBm, indicating that after the electronic device increases the receiving sensitivity of the transmitter, the transmission rate of the data transmitted between the transmitter and the receiver is improved, and the receiving sensitivity of the transmitter is less than the second upper limit. Based on this, assuming that the reference increment is 1dB, if the receiving sensitivity of the transmitter is -80dBm, the electronic device can increase the receiving sensitivity of the transmitter to -79dBm. Alternatively, if the receiving sensitivity of the transmitter is -87dBm, the electronic device can increase the receiving sensitivity of the transmitter to -86dBm.

[0165] In the second example of the present application, when the electronic device increases the value of the transmission power of the receiving end in step 1023, if the transmission rate does not decrease after the increase, and the transmission power of the receiving end is less than the third upper limit value, the electronic device can increase the value of the transmission power of the receiving end based on the reference increment.

[0166] Exemplarily, assuming that the transmission rate after the electronic device increases the transmission power of the receiving end is 90MB / s, the transmission rate before the increase is 90MB / s, the transmission power of the receiving end is 15dBm, and the third upper limit is 20dBm, it means that after the electronic device increases the transmission power of the receiving end, the transmission rate of the data transmitted between the transmitting end and the receiving end does not decrease, and the transmission power of the receiving end is less than the third upper limit. Based on this, assuming that the reference increment is 1dB, if the transmission power of the receiving end is 16dBm, the electronic device can increase the transmission power of the receiving end to 17dBm. Or, if the transmission power of the receiving end is 18dBm, the electronic device can increase the transmission power of the receiving end to 19dBm.

[0167] In the third example of the present application, when the electronic device increases the value of the receiving sensitivity of the transmitting end and the value of the transmitting power of the receiving end in step 1023, if the transmission rate of the transmitted data does not decrease, and the receiving sensitivity of the transmitting end is less than the second upper limit value, and the transmitting power of the receiving end is less than the third upper limit value, then the electronic device can increase the value of the receiving sensitivity of the transmitting end based on the reference increment, and increase the value of the transmitting power of the receiving end based on the reference increment.

[0168] For example, assuming that the transmission rate after the electronic device increases the receiving power of the transmitter and the transmitting power of the receiver is 90MB / s, the transmission rate before the increase is 85MB / s, the receiving sensitivity of the transmitter is -80dBm, the second upper limit is -30dBm, the transmitting power of the receiver is 12dBm, and the third upper limit is 20dBm, it means that after the electronic device increases the receiving power of the transmitter and the transmitting power of the receiver, the transmission rate of the data transmitted between the transmitter and the receiver is improved, and the receiving sensitivity of the transmitter is less than the second upper limit, and the transmitting power of the receiver is less than the third upper limit. Based on this, assuming that the reference increment is 2dB, if the receiving sensitivity of the transmitter is -80dBm and the transmitting power of the receiver is 12dBm, the electronic device can increase the receiving sensitivity of the transmitter to -78dBm and the transmitting power of the receiver to 14dBm. Alternatively, if the receiving sensitivity of the transmitting end is -60dBm and the transmitting power of the receiving end is 15dBm, the electronic device may increase the receiving sensitivity of the transmitting end to -58dBm and the transmitting power of the receiving end to 17dBm.

[0169] In this way, if after increasing at least one of the receiving sensitivity of the transmitting end and the transmitting power of the receiving end, the transmission rate does not decrease, and the receiving sensitivity of the transmitting end does not reach its upper limit, and the transmitting power of the receiving end does not reach its upper limit, it means that this adjustment does not have a negative impact on the transmission rate, and the receiving sensitivity of the transmitting end and the transmitting power of the receiving end can continue to be increased. Therefore, the electronic device can continue to increase at least one of the receiving sensitivity of the transmitting end and the transmitting power of the receiving end, which can not only ensure that adjusting at least one of the receiving sensitivity of the transmitting end and the transmitting power of the receiving end will not reduce the transmission rate, but also, since in the process of the transmitting end sending data to the receiving end, the receiving end will feedback to the transmitting end whether the data is received, therefore, increasing the receiving sensitivity of the transmitting end helps the transmitting end to extract the information fed back by the receiving end from the noise, so that the transmitting end can determine that the data transmission is normal; and increasing the transmitting power of the receiving end can improve the accuracy of the feedback message from the receiving end to the transmitting end, and further improve the success rate of data transmission. In summary, the electronic device continues to increase at least one of the receiving sensitivity of the transmitting end and the transmitting power of the receiving end, which can improve the success rate and accuracy of data transmission under the premise of ensuring that the transmission rate is not reduced.

[0170] In some embodiments of the present application, after the above step 1024, the data transmission method provided by the embodiment of the present application may further include the following steps 501 to 503.

[0171] Step 501: The electronic device obtains two transmission rates before and after lowering the receiving sensitivity of the transmitting end or the transmitting power of the receiving end.

[0172] In some embodiments of the present application, the electronic device may detect the transmission rate in real time, and after executing the above step 1024, obtain two transmission rates detected before and after executing the above step 1024.

[0173] For the convenience of description, the transmission rate after lowering the receiving sensitivity of the transmitting end or the transmission power of the receiving end is called the third transmission rate, and the transmission rate before lowering is called the fourth transmission rate.

[0174] For example, it is assumed that the third transmission rate is 85 MB / s and the fourth transmission rate is 90 MB / s. Alternatively, it is assumed that the third transmission rate is 85 MB / s and the fourth transmission rate is 80 MB / s.

[0175] Step 502: When the two transmission rates satisfy the second condition, or the receiving sensitivity of the transmitting end is less than or equal to the second lower limit, or the transmitting power of the receiving end is less than or equal to the third lower limit, the electronic device increases at least one of the numerical values ​​of the receiving sensitivity of the transmitting end and the transmitting power of the receiving end based on the reference increment.

[0176] In some embodiments of the present application, the second condition may include that the transmission rate after lowering the receiving sensitivity of the transmitting end or the transmission power of the receiving end is less than the transmission rate before lowering.

[0177] In some embodiments of the present application, the second lower limit value may be the minimum value of the receiving sensitivity of the transmitting end. It is understood that if the receiving sensitivity of the transmitting end is less than the second lower limit value, it may have a negative impact on data transmission, such as reducing the accuracy of data transmission.

[0178] In some embodiments of the present application, the third lower limit is the minimum value that the transmit power of the receiving end can take. It is understandable that if the transmit power of the receiving end is less than the third lower limit, it may have a negative impact on data transmission, such as reducing the transmission rate of data transmission.

[0179] It should be noted that the second lower limit value and the third lower limit value can be set by the electronic device by default or according to actual needs, or can be set by the user according to experience, and the third lower limit value can be the same as or different from the first lower limit value, which is not limited in the embodiment of the present application. For example, the second lower limit value can be set to -89dBm or -90dBm, and the third lower limit value can be set to 0dBm or 1dBm.

[0180] In some embodiments of the present application, after lowering the value of the receiving sensitivity of the transmitting end or the transmitting power of the receiving end, if the transmission rate of the transmitted data decreases, or the receiving sensitivity of the transmitting end is less than or equal to the second lower limit value, or the transmitting power of the receiving end is less than or equal to the third lower limit value, it means that the adjustment is inappropriate, and the electronic device can perform an adjustment operation opposite to the current adjustment, and the adjustment operation may include at least one of the following: increasing the value of the receiving sensitivity of the transmitting end based on the reference increment, and increasing the value of the transmitting power of the receiving end based on the reference increment.

[0181] In the first exemplary embodiment of the present application, when the electronic device lowers the value of the receiving sensitivity of the transmitting end in step 1024, if the transmission rate decreases after the lowering, or the receiving sensitivity of the transmitting end is less than or equal to the second lower limit value, the electronic device can increase the value of the receiving sensitivity of the transmitting end based on the reference increment.

[0182] For example, assuming that the transmission rate after the electronic device lowers the value of the receiving sensitivity of the transmitter is 85MB / s, and the transmission rate before the lowering is 90MB / s, it means that after the electronic device lowers the receiving sensitivity of the transmitter, the transmission rate of the data transmitted between the transmitter and the receiver decreases. Alternatively, assuming that after the electronic device lowers the value of the receiving sensitivity of the transmitter, the receiving sensitivity of the transmitter is -90dBm, and the second lower limit is -90dBm, it means that the receiving sensitivity of the transmitter is equal to the second lower limit. Based on this, assuming that the reference increment is 1dB, the electronic device can increase the receiving sensitivity of the transmitter to -89dBm.

[0183] In the second example of the present application, when the electronic device lowers the value of the transmission power of the receiving end in step 1024, if the transmission rate decreases after the reduction, or the transmission power of the receiving end is less than or equal to the third lower limit, the electronic device can increase the value of the transmission power of the receiving end based on the reference increment.

[0184] For example, assuming that the transmission rate after the electronic device lowers the value of the transmit power of the receiving end is 85MB / s, and the transmission rate before the lowering is 90MB / s, it means that after the electronic device lowers the transmit power of the receiving end, the transmission rate of the data transmitted between the transmitting end and the receiving end decreases. Alternatively, assuming that after the electronic device lowers the value of the transmit power of the receiving end, the transmit power of the receiving end is 0dBm, and the third lower limit is 0dBm, indicating that the transmit power of the receiving end is equal to the third lower limit. Based on this, assuming that the reference increment is 1dB, the electronic device can increase the transmit power of the receiving end to 1dBm.

[0185] In the third example of the present application, when the electronic device lowers the value of the receiving sensitivity of the transmitting end and the value of the transmitting power of the receiving end in step 1024, if the transmission rate of the transmitted data decreases, or the receiving sensitivity of the transmitting end is less than or equal to the second lower limit value, or the transmitting power of the receiving end is less than or equal to the third lower limit value, the electronic device can increase the value of the receiving sensitivity of the transmitting end based on the reference increment, and increase the value of the transmitting power of the receiving end based on the reference increment.

[0186] For example, assuming that the transmission rate after the electronic device lowers the receiving power of the transmitter and the transmitting power of the receiver is 85MB / s, and the transmission rate before the lowering is 90MB / s, it means that after the electronic device lowers the receiving power of the transmitter and the transmitting power of the receiver, the transmission rate of the data transmitted between the transmitter and the receiver decreases. Alternatively, assuming that after the electronic device lowers the receiving sensitivity of the transmitter and the transmitting power of the receiver, the receiving sensitivity of the transmitter is -90dBm, the second lower limit is -90dBm, indicating that the receiving sensitivity of the transmitter is equal to the second lower limit, the transmitting power of the receiver is 0dBm, and the third lower limit is 0dBm, indicating that the transmitting power of the receiver is equal to the third lower limit. Based on this, assuming that the reference increment is 2dB, the electronic device can increase the receiving sensitivity of the transmitter to -88dBm and the transmitting power of the receiver to 2dBm.

[0187] In this way, after lowering at least one of the receiving sensitivity of the transmitting end and the transmitting power of the receiving end, if the transmission rate is reduced, or the receiving sensitivity of the transmitting end is lower than its lower limit, or the transmitting power of the receiving end is lower than its lower limit, it means that the adjustment is not effective. The electronic device can respectively increase at least one of the receiving sensitivity of the transmitting end and the transmitting power of the receiving end, so that the receiving sensitivity of the transmitting end and the transmitting power of the receiving end are restored to the values ​​before the reduction. This can not only ensure that adjusting at least one of the receiving sensitivity of the transmitting end and the transmitting power of the receiving end will not reduce the transmission rate, but also, since lowering the receiving sensitivity of the transmitting end can improve the anti-interference ability of the transmitting end, thereby improving the stability of data transmission, therefore, after raising the receiving sensitivity of the transmitting end back, it is possible to ensure that the transmission rate does not decrease under the premise of improving the stability of data transmission, and since lowering the transmitting power of the receiving end can improve the signal strength, therefore, after raising the transmitting power of the receiving end back, it is possible to improve the success rate of data transmission under the premise of reducing the power consumption of the receiving end.

[0188] Step 503: When the two transmission rates do not satisfy the second condition, the receiving sensitivity of the transmitting end is greater than the second lower limit, and the transmitting power of the receiving end is greater than the third lower limit, the electronic device lowers at least one of the numerical values ​​of the receiving sensitivity of the transmitting end and the transmitting power of the receiving end based on the reference increment.

[0189] It should be noted that, for explanations on the second condition, the second lower limit value and the third lower limit value, please refer to the relevant description of the above step 502, and for explanations on the reference increment, please refer to the relevant description of the above step 1021, which will not be repeated here in the embodiments of the present application.

[0190] In some embodiments of the present application, after lowering the value of the receiving sensitivity of the transmitting end or the transmitting power of the receiving end, if the transmission rate of the transmitted data does not decrease, and the receiving sensitivity of the transmitting end is greater than the second lower limit value, and the transmitting power of the receiving end is greater than the third lower limit value, it means that the last adjustment is appropriate, then the electronic device can continue to perform the same adjustment operation as the last adjustment, and the adjustment operation may include at least one of the following: lowering the value of the receiving sensitivity of the transmitting end based on the reference increment, and lowering the value of the transmitting power of the receiving end based on the reference increment.

[0191] In the first example of the present application, when the electronic device lowers the value of the receiving sensitivity of the transmitting end in step 1024, if the transmission rate does not decrease after the lowering, and the receiving sensitivity of the transmitting end is greater than the second lower limit value, the electronic device can lower the value of the receiving sensitivity of the transmitting end based on the reference increment.

[0192] For example, assuming that the transmission rate after the electronic device lowers the value of the receiving sensitivity of the transmitter is 90MB / s, the transmission rate before the lowering is 85MB / s, the receiving sensitivity of the transmitter is -80dBm, and the second lower limit is -90dBm, it means that after the electronic device lowers the receiving sensitivity of the transmitter, the transmission rate of the data transmitted between the transmitter and the receiver is improved, and the receiving sensitivity of the transmitter is greater than the second lower limit. Based on this, assuming that the reference increment is 1dB, if the receiving sensitivity of the transmitter is -80dBm, the electronic device can lower the receiving sensitivity of the transmitter to -81dBm. Alternatively, if the receiving sensitivity of the transmitter is -70dBm, the electronic device can lower the receiving sensitivity of the transmitter to -71dBm.

[0193] In the second example of the present application, when the electronic device lowers the value of the transmission power of the receiving end in step 1024, if the transmission rate does not decrease after the lowering, and the transmission power of the receiving end is greater than the third lower limit, the electronic device can lower the value of the transmission power of the receiving end based on the reference increment.

[0194] Exemplarily, assuming that the transmission rate after the electronic device lowers the transmission power of the receiving end is 90MB / s, the transmission rate before the lowering is 90MB / s, the transmission power of the receiving end is 15dBm, and the third lower limit is 0dBm, it means that after the electronic device lowers the transmission power of the receiving end, the transmission rate of the data transmitted between the transmitting end and the receiving end does not decrease, and the transmission power of the receiving end is greater than the third lower limit. Based on this, assuming that the reference increment is 1dB, if the transmission power of the receiving end is 16dBm, the electronic device can lower the transmission power of the receiving end to 15dBm. Or, if the transmission power of the receiving end is 18dBm, the electronic device can lower the transmission power of the receiving end to 17dBm.

[0195] In the third example of the present application, when the electronic device lowers the value of the receiving sensitivity of the transmitting end and the value of the transmitting power of the receiving end in step 1024, if the transmission rate of the transmitted data does not decrease, and the receiving sensitivity of the transmitting end is greater than the second lower limit value, and the transmitting power of the receiving end is greater than the third lower limit value, then the electronic device can lower the value of the receiving sensitivity of the transmitting end based on the reference increment, and lower the value of the transmitting power of the receiving end based on the reference increment.

[0196] For example, assuming that the transmission rate after the electronic device lowers the receiving power of the transmitter and the transmitting power of the receiver is 90MB / s, the transmission rate before the lowering is 85MB / s, the receiving sensitivity of the transmitter is -80dBm, the second lower limit is -90dBm, the transmitting power of the receiver is 12dBm, and the third lower limit is 0dBm, indicating that after the electronic device lowers the receiving power of the transmitter and the transmitting power of the receiver, the transmission rate of the data transmitted between the transmitter and the receiver is improved, and the receiving sensitivity of the transmitter is greater than the second lower limit, and the transmitting power of the receiver is greater than the third lower limit. Based on this, assuming that the reference increment is 2dB and the reference increment is 1dB, if the receiving sensitivity of the transmitter is -80dBm and the transmitting power of the receiver is 12dBm, the electronic device can lower the receiving sensitivity of the transmitter to -82dBm and lower the transmitting power of the receiver to 11dBm. Alternatively, if the receiving sensitivity of the transmitting end is -70dBm and the transmitting power of the receiving end is 15dBm, the electronic device may adjust the receiving sensitivity of the transmitting end down to -72dBm and adjust the transmitting power of the receiving end down to 14dBm.

[0197] In this way, if after lowering at least one of the receiving sensitivity of the transmitting end and the transmitting power of the receiving end, the transmission rate does not decrease, and the receiving sensitivity of the transmitting end does not reach its lower limit, and the transmitting power of the receiving end does not reach its lower limit, it means that this adjustment does not have a negative impact on the transmission rate, and the receiving sensitivity of the transmitting end and the transmitting power of the receiving end can continue to be lowered. Therefore, the electronic device can continue to lower at least one of the receiving sensitivity of the transmitting end and the transmitting power of the receiving end. Since lowering the receiving sensitivity of the transmitting end can improve the anti-interference ability of the transmitting end, after lowering the receiving sensitivity of the transmitting end, the situation where the data transmission process is interrupted by interference signals can be reduced, and the stability and transmission rate of data transmission can be improved. Moreover, since lowering the transmitting power of the receiving end can reduce the power consumption of the receiving end, after lowering the transmitting power of the receiving end, the power consumption of the transmitting end can be reduced. In summary, continuing to lower the receiving sensitivity of the transmitting end and the transmitting power of the receiving end can improve the transmission rate and stability of data transmission.

[0198] It should be noted that the above content describes the implementation process of the electronic device adjusting the channel transmission parameters according to the relationship between the first channel noisiness and the second channel noisiness, and the size of the transmission power of the transmitter. Next, the implementation process of the electronic device adjusting the channel transmission parameters according to the relationship between the first channel noisiness and the second channel noisiness, and the size of the receiving sensitivity of the transmitter is described.

[0199] In some embodiments of the present application, Figure 1 ,like Figure 4 As shown, in the above step 102, "the electronic device adjusts the channel transmission parameters according to the magnitude relationship between the first channel noisiness and the second channel noisiness" can be specifically implemented by the following step 1025 or step 1026.

[0200] Step 1025: When the noise level of the first channel is greater than the noise level of the second channel and the receiving sensitivity of the transmitting end is less than the second upper limit value, the electronic device increases the receiving sensitivity value of the transmitting end based on the reference increment.

[0201] In some embodiments of the present application, the reference increment is an adjustment amount for adjusting a channel transmission parameter. In this step, the reference increment is an adjustment amount for adjusting a receiving sensitivity of a transmitting end.

[0202] It should be noted that, for the explanation of the second upper limit value, please refer to the relevant description of the above step 402, and for the explanation of the reference increment, please refer to the relevant description of the above step 1021, which will not be repeated in the embodiments of the present application.

[0203] Exemplarily, when the noisiness of the first channel is greater than the noisiness of the second channel, assuming that the receiving sensitivity of the transmitter is -80dBm, the second upper limit value is -30dBm, and the reference increment is 1dB, since -80dBm is less than -30dBm, the receiving sensitivity of the transmitter is less than the second upper limit value, the electronic device can increase the value of the receiving sensitivity of the transmitter by 1dB.

[0204] Step 1026: When the noisiness of the first channel is less than or equal to the noisiness of the second channel and the receiving sensitivity of the transmitting end is greater than the second lower limit, the electronic device lowers the receiving sensitivity value of the transmitting end based on the reference increment.

[0205] In some embodiments of the present application, the second upper limit value is greater than the second lower limit value.

[0206] It should be noted that the explanation of the second lower limit value can be found in the relevant description of the above step 502, and the embodiment of the present application will not be repeated here.

[0207] Exemplarily, when the noisiness of the first channel is less than or equal to the noisiness of the second channel, assuming that the receiving sensitivity of the transmitter is -80dBm, the second lower limit is -90dBm, and the reference increment is 1dB, since -80dBm is greater than -90dBm, the receiving sensitivity of the transmitter is greater than the second lower limit, then the electronic device can lower the value of the receiving sensitivity of the transmitter by 1dB.

[0208] In this way, when the data transmission environment deteriorates and the receiving sensitivity of the sender is not very high, the electronic device appropriately increases the receiving sensitivity of the sender. Since the receiving end will feedback to the sender whether the data is received during the process of the sender sending data to the receiving end, increasing the receiving sensitivity of the sender helps the sender extract the information fed back by the receiving end from the noise, so that the sender can determine that the data transmission is normal. Alternatively, when the data transmission environment improves and the receiving sensitivity of the sender is not very low, the electronic device appropriately lowers the receiving sensitivity of the sender, which can improve the anti-interference ability of the sender, reduce the interference of other signals on data transmission, and improve the stability and transmission rate of data transmission. In summary, the electronic device can improve the performance of data transmission by adaptively adjusting the receiving sensitivity of the sender according to the changes in the data transmission environment and the size of the receiving sensitivity of the sender.

[0209] In some embodiments of the present application, Figure 4 ,like Figure 5 As shown, in the above step 102, "the electronic device adjusts the channel transmission parameters according to the magnitude relationship between the first channel noisiness and the second channel noisiness" can be specifically implemented by the following step 1027 or step 1028.

[0210] Step 1027: When the noisiness of the first channel is greater than the noisiness of the second channel and the receiving sensitivity of the transmitting end is greater than or equal to the second upper limit value, the electronic device increases at least one of the value of the transmitting power of the transmitting end and the value of the receiving sensitivity of the receiving end based on the reference increment.

[0211] In some embodiments of the present application, the reference increment is an adjustment amount for adjusting a channel transmission parameter. In this step, the reference increment is an adjustment amount for adjusting at least one of a transmit power of a transmitter and a receive sensitivity of a receiver.

[0212] It should be noted that, for the explanation of the second upper limit value, please refer to the relevant description of the above step 402, and for the explanation of the reference increment, please refer to the relevant description of the above step 1021.

[0213] In some embodiments of the present application, when the receiving sensitivity of the transmitting end is equal to or has reached the second upper limit value, it means that the receiving sensitivity of the transmitting end is already very high, and further increasing the receiving sensitivity of the transmitting end may not only fail to bring better results, but also increase the possibility of interference to the electronic device and reduce the data transmission rate. Therefore, the electronic device can perform at least one of the following: increase the value of the transmitting power of the transmitting end based on the reference increment, and increase the value of the receiving sensitivity of the receiving end based on the reference increment.

[0214] Exemplarily, when the noisiness of the first channel is greater than the noisiness of the second channel, assuming that the receiving sensitivity of the transmitting end is -30dBm, the second upper limit value is -30dBm, and the reference increment is 1dB, it can be seen that the receiving sensitivity of the transmitting end has reached the second upper limit value. The electronic device can increase the transmission power of the transmitting end by 1dB and increase the receiving sensitivity of the receiving end by 1dB.

[0215] Step 1028: When the noisiness of the first channel is less than or equal to the noisiness of the second channel and the receiving sensitivity of the transmitting end is less than or equal to the second lower limit, the electronic device lowers at least one of the numerical values ​​of the receiving sensitivity of the transmitting end and the numerical values ​​of the receiving sensitivity of the receiving end based on the reference increment.

[0216] It should be noted that, for the explanation of the second lower limit value, please refer to the relevant description of the above step 1025, and for the explanation of the reference increment, please refer to the relevant description of the above step 1021 and step 1028, which will not be repeated here in the embodiment of the present application.

[0217] In some embodiments of the present application, when the receiving sensitivity of the transmitting end is equal to or has reached the second lower limit, it means that the receiving sensitivity of the transmitting end is already very low, and further lowering the receiving sensitivity of the transmitting end may not only fail to bring better results, but also reduce the success rate of data transmission. Therefore, the electronic device can perform at least one of the following: lowering the value of the transmitting power of the transmitting end based on the reference increment, and lowering the value of the receiving sensitivity of the receiving end based on the reference increment.

[0218] Exemplarily, when the noisiness of the first channel is less than or equal to the noisiness of the second channel, assuming that the receiving sensitivity of the transmitting end is -90dBm, the second lower limit value is -90dBm, and the reference increment is 1dB, it can be seen that the receiving sensitivity of the transmitting end has reached the second lower limit value. The electronic device can lower the transmission power value of the transmitting end by 1dB and lower the receiving sensitivity value of the receiving end by 1dB.

[0219] In this way, when the data transmission environment deteriorates and the receiving sensitivity of the transmitting end is already very high, the electronic device then increases at least one of the transmitting power of the transmitting end and the receiving sensitivity of the receiving end. Since increasing the transmitting power of the transmitting end can improve the signal strength, it is helpful for the receiving end to decode the received data more accurately and restore the data sent by the transmitting end, reduce the bit error rate in the data transmission process, and improve the integrity and accuracy of the transmitted data, thereby improving the success rate of data transmission. In addition, after the receiving sensitivity of the receiving end is increased, the higher receiving sensitivity enables the receiving end to still accurately receive data in a noisy environment, reduce the bit error rate of data transmission, and improve the stability of data transmission. Alternatively, when the data transmission environment improves and the receiving sensitivity of the transmitting end is already very low, the electronic device then decreases at least one of the transmitting power of the transmitting end and the receiving sensitivity of the receiving end. Lowering the transmitting power of the transmitting end can reduce the power consumption of the transmitting end, and lowering the receiving sensitivity of the receiving end can reduce the interference of other signals on the receiving data of the receiving end, reduce the power consumption of the receiving end when receiving signals, and improve the stability of data transmission.

[0220] In some embodiments of the present application, after step 1025, the data transmission method provided by the embodiments of the present application may further include the following steps 601 to 603.

[0221] Step 601: The electronic device obtains two transmission rates before and after the value of the receiving sensitivity of the transmitting end is increased.

[0222] In some embodiments of the present application, the electronic device can detect the transmission rate in real time, and after increasing the receiving sensitivity of the transmitting end, obtain two transmission rates detected before and after the value of the receiving sensitivity of the transmitting end is increased.

[0223] For example, it is assumed that the transmission rate of the data transmitted after the value of the receiving sensitivity of the transmitter is increased is 85MB / s, and the transmission rate of the data transmitted before the increase is 90MB / s. Alternatively, it is assumed that the transmission rate of the data transmitted after the value of the receiving sensitivity of the transmitter is increased is 85MB / s, and the transmission rate of the data transmitted before the increase is 80MB / s.

[0224] Step 602: When the two transmission rates satisfy the fourth condition, the electronic device lowers the value of the receiving sensitivity of the transmitting end based on the reference increment.

[0225] In some embodiments of the present application, the above-mentioned fourth condition may include that the transmission rate after increasing the value of the receiving sensitivity of the transmitting end is less than or equal to the transmission rate before the increase, that is, after increasing the value of the receiving sensitivity of the transmitting end, the transmission rate of data transmitted between the transmitting end and the receiving end is not increased.

[0226] In some embodiments of the present application, if the transmission rate of the transmitted data does not increase after the electronic device increases the receiving sensitivity of the transmitting end, it means that increasing the value of the receiving sensitivity of the transmitting end does not help the transmission rate. The electronic device can then lower the value of the receiving sensitivity of the transmitting end based on the reference increment, that is, adjust it to the value before the increase.

[0227] For example, assuming that the transmission rate after increasing the value of the receiving sensitivity of the transmitter is 85MB / s, and the transmission rate before the increase is 85MB / s, it means that after the electronic device increases the receiving sensitivity of the transmitter, the transmission rate of the data transmitted between the transmitter and the receiver does not increase. Assuming that the reference increment is 1dB, if the receiving sensitivity of the transmitter is -85dBm, the electronic device can lower the receiving sensitivity of the transmitter to -86dBm. Alternatively, if the receiving sensitivity of the transmitter is -80dBm, the electronic device can lower the receiving sensitivity of the transmitter to -81dBm.

[0228] In this way, if the transmission rate is improved after increasing the receiving sensitivity of the transmitter, and the receiving sensitivity of the transmitter has not yet reached the maximum, the electronic device can continue to increase the receiving sensitivity of the transmitter. Since increasing the receiving sensitivity of the transmitter helps the transmitter to extract the information fed back by the receiver from the noise, so that the transmitter can determine that the data transmission is proceeding normally, the stability of data transmission can be improved. Therefore, by gradually increasing the receiving sensitivity of the transmitter, the stability of data transmission can be gradually improved.

[0229] Step 603: When the two transmission rates do not satisfy the fourth condition, the electronic device again increases the value of the receiving sensitivity of the transmitting end based on the reference increment.

[0230] In some embodiments of the present application, after the electronic device increases the receiving sensitivity of the transmitting end, if the transmission rate of the transmitted data is improved, it means that increasing the value of the receiving sensitivity of the transmitting end is helpful to the transmission rate. Therefore, the electronic device can continue to increase the value of the receiving sensitivity of the transmitting end.

[0231] Exemplarily, the electronic device may determine whether the receiving sensitivity of the transmitting end is less than the second upper limit value, and if so, increase the value of the receiving sensitivity of the transmitting end based on the reference increment; if not, execute the above step 1027.

[0232] For example, assuming that the transmission rate after increasing the value of the receiving sensitivity of the transmitter is 95MB / s, and the transmission rate before the increase is 90MB / s, it means that after the electronic device increases the receiving sensitivity of the transmitter, the transmission rate of the data transmitted between the transmitter and the receiver is improved. Assuming that the reference increment is 1dB, if the receiving sensitivity of the transmitter is -85dBm, the above second upper limit value is -30dBm, that is, the receiving sensitivity of the transmitter is less than the second upper limit value, then the electronic device can increase the receiving sensitivity of the transmitter to -84dBm. Alternatively, if the receiving sensitivity of the transmitter is -30dBm, the above second upper limit value is -30dBm, that is, the receiving sensitivity of the transmitter is equal to the second upper limit value, then the electronic device can perform the above step 1027.

[0233] In this way, if the transmission rate does not increase after increasing the receiving sensitivity of the transmitter, it means that this adjustment is not very helpful for data transmission. Therefore, the electronic device lowers the value of the receiving sensitivity of the transmitter to restore it to the value before the increase. This can not only ensure that increasing the receiving sensitivity of the transmitter will not reduce the transmission rate, but also avoid the excessive receiving sensitivity of the transmitter causing the data transmission process to be more susceptible to interference, thereby improving the anti-interference ability of the transmitter, and thus improving the stability and transmission rate of data transmission. In summary, the electronic device can increase the data transmission rate by lowering the receiving sensitivity of the transmitter.

[0234] In some embodiments of the present application, after the above step 602, the data transmission method provided by the embodiment of the present application may further include the following step 604.

[0235] Step 604: The electronic device increases at least one of the value of the transmission power of the transmitting end and the value of the receiving sensitivity of the receiving end based on the reference increment.

[0236] In some embodiments of the present application, when the noisiness of the first channel is greater than the noisiness of the second channel, that is, when the data transmission environment deteriorates, if the electronic device has increased the receiving sensitivity of the transmitting end to the point where it can no longer be adjusted, the electronic device may perform at least one of the following: increase the value of the transmitting power of the transmitting end based on a reference increment, and increase the value of the receiving sensitivity of the receiving end based on the reference increment.

[0237] Exemplarily, assuming that the reference increment is 1 dB, when the noisiness of the first channel is greater than the noisiness of the second channel, the electronic device may increase the transmit power value of the transmitter by 1 dB, and increase the receive sensitivity value of the receiver by 1 dB.

[0238] It should be noted that the specific implementation of this step can refer to the relevant description of the above-mentioned step 1027, and the embodiment of the present application will not be repeated here.

[0239] In this way, when the receiving sensitivity of the transmitting end has been adjusted to the point where it cannot be adjusted further, the electronic device can increase at least one of the value of the transmitting power of the transmitting end and the value of the receiving sensitivity of the receiving end. Since increasing the transmitting power of the transmitting end can improve the signal strength, it helps the receiving end to decode the received data more accurately, restore the data sent by the transmitting end, and reduce the bit error rate during data transmission. Therefore, continuing to increase the value of the transmitting power of the transmitting end can improve the integrity and accuracy of data transmission, improve the success rate of data transmission, and since after increasing the receiving sensitivity of the receiving end, the higher receiving sensitivity enables the receiving end to still accurately receive data in a noisy environment, reducing the bit error rate of data transmission, therefore, continuing to increase the receiving sensitivity of the receiving end can improve the stability of data transmission.

[0240] In some embodiments of the present application, after step 1026, the data transmission method provided by the embodiments of the present application may further include the following steps 701 to 703.

[0241] Step 701: The electronic device obtains two transmission rates before and after lowering the value of the receiving sensitivity of the transmitting end.

[0242] In some embodiments of the present application, the electronic device can detect the transmission rate in real time, and after lowering the receiving sensitivity of the transmitting end, obtain two transmission rates detected before and after lowering the value of the receiving sensitivity of the transmitting end.

[0243] For example, it is assumed that the transmission rate of the transmitted data after lowering the value of the receiving sensitivity of the transmitting end is 85MB / s, and the transmission rate of the transmitted data before the lowering is 90MB / s. Alternatively, it is assumed that the transmission rate of the transmitted data after lowering the value of the receiving sensitivity of the transmitting end is 85MB / s, and the transmission rate of the transmitted data before the lowering is 80MB / s.

[0244] Step 702: When the two transmission rates satisfy the sixth condition, the electronic device increases the value of the receiving sensitivity of the transmitting end based on the reference increment.

[0245] In some embodiments of the present application, the above-mentioned sixth condition may include that the transmission rate after lowering the value of the receiving sensitivity of the transmitting end is less than or equal to the transmission rate before increasing, that is, after lowering the value of the receiving sensitivity of the transmitting end, the transmission rate of data transmitted between the transmitting end and the receiving end is not increased.

[0246] In some embodiments of the present application, if the transmission rate of the transmitted data does not increase after the electronic device lowers the receiving sensitivity of the transmitting end, it means that lowering the value of the receiving sensitivity of the transmitting end does not help the transmission rate. The electronic device can then increase the value of the receiving sensitivity of the transmitting end based on the reference increment, that is, adjust it to the value before the decrease.

[0247] For example, assuming that the transmission rate after lowering the value of the receiving sensitivity of the transmitter is 85MB / s, and the transmission rate before lowering is 90MB / s, it means that after the electronic device lowers the receiving sensitivity of the transmitter, the transmission rate of the data transmitted between the transmitter and the receiver does not increase. Assuming that the reference increment is 1dB, if the receiving sensitivity of the transmitter is -80dBm, the electronic device can increase the receiving sensitivity of the transmitter to -79dBm. Alternatively, if the receiving sensitivity of the transmitter is -81dBm, the electronic device can increase the receiving sensitivity of the transmitter to -80dBm.

[0248] In this way, if the transmission rate does not increase after lowering the receiving sensitivity of the transmitter, it means that this adjustment is not helpful. Therefore, the electronic device can increase the value of the receiving sensitivity of the transmitter to restore it to the value before the reduction. This can not only ensure that lowering the receiving sensitivity of the transmitter will not reduce the transmission rate, but also, because lowering the receiving sensitivity of the transmitter can improve the anti-interference ability of the transmitter and reduce the situation where the data transmission process is interfered by other signals, therefore, after raising the value of the receiving sensitivity of the transmitter back, it can improve the stability and transmission rate of data transmission.

[0249] Step 703: When the two transmission rates do not satisfy the sixth condition, the electronic device lowers the value of the receiving sensitivity of the transmitting end based on the reference increment.

[0250] In some embodiments of the present application, after the electronic device lowers the receiving sensitivity of the transmitting end, if the transmission rate of the transmitted data is improved, it means that lowering the value of the receiving sensitivity of the transmitting end has no effect on the transmission rate. Therefore, the electronic device can continue to lower the value of the receiving sensitivity of the transmitting end.

[0251] In some embodiments of the present application, the electronic device can determine whether to lower the receiving sensitivity of the transmitting end according to the relationship between the receiving sensitivity of the transmitting end and the second lower limit value. Exemplarily, the electronic device can determine whether the receiving sensitivity of the transmitting end is greater than the second lower limit value, and if so, lower the value of the receiving sensitivity of the transmitting end based on the reference increment; if not, execute the above step 1028.

[0252] For example, assuming that the transmission rate after lowering the value of the receiving sensitivity of the transmitter is 95MB / s, and the transmission rate before the lowering is 90MB / s, it means that after the electronic device lowers the receiving sensitivity of the transmitter, the transmission rate of the data transmitted between the transmitter and the receiver is improved. Assuming that the reference increment is 1dB, if the receiving sensitivity of the transmitter is -80dBm, the above second lower limit value is -90dBm, that is, the receiving sensitivity of the transmitter is greater than the second lower limit value, then the electronic device can lower the receiving sensitivity of the transmitter to -81dBm. Alternatively, if the receiving sensitivity of the transmitter is -90dBm, the above second lower limit value is -90dBm, that is, the receiving sensitivity of the transmitter is equal to the second lower limit value, then the electronic device can perform the above step 1024.

[0253] In this way, if the transmission rate is improved after lowering the receiving sensitivity of the transmitter, the electronic device can continue to lower the receiving sensitivity of the transmitter after determining that the receiving sensitivity of the transmitter is not very low, which can further improve the anti-interference ability of the transmitter, reduce the situation where the data transmission process is interfered or interrupted by other signals, and improve the stability and transmission rate of data transmission.

[0254] In some embodiments of the present application, after the above step 702, the data transmission method provided by the embodiment of the present application may further include the following step 704.

[0255] Step 704: The electronic device lowers at least one of the value of the transmission power of the transmitting end and the value of the receiving sensitivity of the receiving end based on the reference increment.

[0256] In some embodiments of the present application, when the noisiness of the first channel is less than or equal to the noisiness of the second channel, that is, when the data transmission environment improves, if the electronic device has lowered the receiving sensitivity of the transmitting end to the point where it can no longer be adjusted, the electronic device can perform at least one of the following: lowering the value of the transmitting power of the transmitting end based on the reference increment, and lowering the value of the receiving sensitivity of the receiving end based on the reference increment.

[0257] Exemplarily, assuming that the reference increment is 1 dB, when the noisiness of the first channel is less than or equal to the noisiness of the second channel, the electronic device may lower the transmit power value of the transmitter by 1 dB and lower the receive sensitivity value of the receiver by 1 dB.

[0258] It should be noted that the specific implementation of this step can refer to the relevant description of the above-mentioned step 1028, and the embodiment of the present application will not be repeated here.

[0259] In this way, when the receiving sensitivity of the transmitting end has been adjusted to the point where it cannot be adjusted further, the electronic device can lower at least one of the values ​​of the transmitting power of the transmitting end and the receiving sensitivity of the receiving end. Lowering the transmitting power of the transmitting end can reduce the power consumption of the transmitting end, and lowering the receiving sensitivity of the receiving end can reduce the interference of other signals on the receiving data of the receiving end, reduce the power consumption of the receiving end when receiving signals, and improve the stability of data transmission.

[0260] In some embodiments of the present application, after the above step 1027, the data transmission method provided by the embodiment of the present application may further include the following steps 801 to 803.

[0261] Step 801: The electronic device obtains two transmission rates before and after the transmission power of the transmitting end or the receiving sensitivity of the receiving end is increased.

[0262] In some embodiments of the present application, the electronic device may detect the transmission rate in real time, and after executing the above step 1027, obtain two transmission rates detected before and after executing the above step 1027.

[0263] For the convenience of description, the transmission rate after increasing the transmission power of the transmitting end or the receiving sensitivity of the receiving end is called the first transmission rate, and the transmission rate before increasing is called the second transmission rate.

[0264] For example, it is assumed that the first transmission rate is 85 MB / s and the second transmission rate is 90 MB / s. Alternatively, it is assumed that the first transmission rate is 85 MB / s and the second transmission rate is 80 MB / s.

[0265] Step 802: When the two transmission rates satisfy the seventh condition, or the transmission power of the transmitting end is greater than or equal to the first upper limit value, or the receiving sensitivity of the receiving end is greater than or equal to the fourth upper limit value, the electronic device lowers at least one of the values ​​of the transmission power of the transmitting end and the receiving sensitivity of the receiving end based on the reference increment.

[0266] It should be noted that, for explanations about the first upper limit value and the reference increment, please refer to the relevant description in step 1021 of the above embodiment, and the embodiment of the present application will not be repeated here.

[0267] In some embodiments of the present application, the seventh condition may include that the transmission rate after increasing the transmission power of the transmitting end or the receiving sensitivity of the receiving end is less than or equal to the transmission rate before increasing.

[0268] In some embodiments of the present application, the fourth upper limit is the maximum value that the receiving sensitivity of the receiving end can take. It can be understood that if the receiving sensitivity of the receiving end is greater than the fourth upper limit, it may have a negative impact on data transmission, such as making the data transmission process more susceptible to interference and reducing the success rate and transmission rate of data transmission.

[0269] It should be noted that the fourth upper limit value may be set by default by the electronic device or according to actual needs, or may be set by the user according to experience, and the fourth upper limit value may be the same as or different from the second upper limit value, which is not limited in the embodiment of the present application. For example, the fourth upper limit value may be set to -30dBm.

[0270] In some embodiments of the present application, after increasing the transmission power of the transmitting end or the receiving sensitivity of the receiving end, if the transmission rate of the transmitted data is not improved, or the transmission power of the transmitting end is greater than or equal to the first upper limit value, or the receiving sensitivity of the receiving end is greater than or equal to the fourth upper limit value, it means that the adjustment is inappropriate, and the electronic device can perform an adjustment operation opposite to the current adjustment, and the adjustment operation may include at least one of the following: lowering the transmission power of the transmitting end based on the reference increment, and lowering the receiving sensitivity of the receiving end based on the reference increment.

[0271] In the first exemplary embodiment of the present application, when the electronic device increases the value of the transmission power of the transmitter in step 1027, if the transmission rate does not increase after the increase, or the transmission power of the transmitter is greater than or equal to the first upper limit value, the electronic device can lower the value of the transmission power of the transmitter based on the reference increment.

[0272] For example, assuming that the transmission rate after the electronic device increases the transmission power of the transmitter is 85MB / s, and the transmission rate before the increase is 90MB / s, it means that after the electronic device increases the transmission power of the transmitter, the transmission rate of data transmitted between the transmitter and the receiver does not increase, or, assuming that after the electronic device increases the transmission power of the transmitter, the transmission power of the transmitter is 20dBm, and the first upper limit is 20dBm, indicating that the transmission power of the transmitter is equal to the first upper limit. Based on this, assuming that the reference increment is 1dB, the electronic device can reduce the transmission power of the transmitter to 19dBm.

[0273] In the second example of the present application, when the electronic device increases the value of the receiving sensitivity of the receiving end in step 1027, if the transmission rate does not increase after the increase, or the receiving sensitivity of the receiving end is greater than or equal to the fourth upper limit value, the electronic device can lower the value of the receiving sensitivity of the receiving end based on the reference increment.

[0274] For example, assuming that the transmission rate after the electronic device increases the value of the receiving sensitivity of the receiving end is 85MB / s, and the transmission rate before the increase is 90MB / s, it means that after the electronic device increases the receiving sensitivity of the receiving end, the transmission rate of the data transmitted between the transmitting end and the receiving end is not improved, or, assuming that after the electronic device increases the value of the receiving sensitivity of the receiving end, the receiving sensitivity of the receiving end is -30dBm, and the fourth upper limit value is -30dBm, indicating that the receiving sensitivity of the receiving end is equal to the fourth upper limit value. Based on this, assuming that the reference increment is 1dB, the electronic device can lower the receiving sensitivity of the receiving end to -31dBm.

[0275] In the third example of the present application, when the electronic device increases the value of the transmission power of the transmitting end and the value of the receiving sensitivity of the receiving end in step 1027, if the transmission rate of the transmitted data is not improved, or the transmission power of the transmitting end is greater than or equal to the first upper limit value, or the receiving sensitivity of the receiving end is greater than or equal to the fourth upper limit value, the electronic device may lower the value of the transmission power of the transmitting end and the value of the receiving sensitivity of the receiving end based on the reference increment.

[0276] For example, assuming that the transmission rate after the electronic device increases the receiving power of the transmitting end and the receiving sensitivity of the receiving end is 95MB / s, and the transmission rate before the increase is 90MB / s, it means that after the electronic device increases the receiving power of the transmitting end and the receiving sensitivity of the receiving end, the transmission rate of the data transmitted between the transmitting end and the receiving end is not improved, or, assuming that after the electronic device increases the transmitting power of the transmitting end and the receiving sensitivity of the receiving end, the transmitting power of the transmitting end is 20dBm, the first upper limit value is 20dBm, indicating that the transmitting power of the transmitting end is equal to the first upper limit value, the receiving sensitivity of the receiving end is -30dBm, and the fourth upper limit value is -30dBm, indicating that the receiving sensitivity of the receiving end is equal to the fourth upper limit value. Based on this, assuming that the reference increment is 2dB, the electronic device can reduce the transmitting power of the transmitting end to 18dBm and the receiving sensitivity of the receiving end to -32dBm.

[0277] In this way, after increasing at least one of the transmitting power of the transmitting end and the receiving sensitivity of the receiving end, if the transmission rate does not increase, or the transmitting power of the transmitting end has reached or exceeded its upper limit, or the receiving sensitivity of the receiving end has reached or exceeded its upper limit, it means that the adjustment is not effective. The electronic device can lower at least one of the transmitting power of the transmitting end and the receiving sensitivity of the receiving end, so that the transmitting power of the transmitting end and the receiving sensitivity of the receiving end are restored to the values ​​before the last increase. This can not only ensure that adjusting at least one of the transmitting power of the transmitting end and the receiving sensitivity of the receiving end will not reduce the transmission rate, but also avoid the excessively high transmitting power of the transmitting end causing an increase in the power consumption of the transmitting end, thereby reducing the power consumption of the transmitting end, and avoid the excessively high receiving sensitivity of the receiving end causing the data transmission process to be more susceptible to interference, thereby improving the stability of data transmission.

[0278] Step 803: When the two transmission rates do not satisfy the seventh condition, the transmission power of the transmitter is less than the first upper limit value, and the receiving sensitivity of the receiver is less than the fourth upper limit value, the electronic device again increases at least one of the values ​​of the transmission power of the transmitter and the receiving sensitivity of the receiver based on the reference increment.

[0279] It should be noted that, for explanations on the seventh condition, the first upper limit value, and the fourth upper limit value, please refer to the relevant description of the above step 802, and for explanations on the reference increment, please refer to the relevant description of the above step 1021, which will not be repeated here in the embodiments of the present application.

[0280] In some embodiments of the present application, after increasing the transmit power of the transmitter or the receive sensitivity of the receiver, if the transmission rate of the transmitted data is improved, and the transmit power of the transmitter is less than the first upper limit value, and the receive sensitivity of the receiver is less than the fourth upper limit value, indicating that the last adjustment was appropriate, the electronic device can continue to perform the same adjustment operation as the last adjustment, and the adjustment operation may include at least one of the following: increasing the transmit power of the transmitter based on a reference increment, and increasing the receive sensitivity of the receiver based on a reference increment.

[0281] In the first example of the present application, when the electronic device increases the value of the transmission power of the transmitter in step 1027, if the transmission rate does not decrease after the increase, and the transmission power of the transmitter is less than the first upper limit value, the electronic device can increase the value of the transmission power of the transmitter based on the reference increment.

[0282] Exemplarily, assuming that the transmission rate after the electronic device increases the transmission power of the transmitter is 90MB / s, the transmission rate before the increase is 85MB / s, the transmission power of the transmitter is 18dBm, and the first upper limit is 20dBm, it means that after the electronic device increases the transmission power of the transmitter, the transmission rate of the data transmitted between the transmitter and the receiver is improved, and the transmission power of the transmitter is less than the first upper limit. Based on this, assuming that the reference increment is 1dB, if the transmission power of the transmitter is 16dBm, the electronic device can increase the transmission power of the transmitter to 17dBm. Or, if the transmission power of the transmitter is 17dBm, the electronic device can increase the transmission power of the transmitter to 18dBm.

[0283] In the second example of the present application, when the electronic device increases the value of the receiving sensitivity of the receiving end in step 1027, if the transmission rate does not decrease after the increase, and the receiving sensitivity of the receiving end is less than the fourth upper limit value, the electronic device can increase the value of the receiving sensitivity of the receiving end based on the reference increment.

[0284] For example, assuming that the transmission rate after the electronic device increases the value of the receiving sensitivity of the receiving end is 90MB / s, the transmission rate before the increase is 85MB / s, the receiving sensitivity of the receiving end is -80dBm, and the fourth upper limit is -30dBm, indicating that after the electronic device increases the receiving sensitivity of the receiving end, the transmission rate of the data transmitted between the transmitting end and the receiving end is improved, and the receiving sensitivity of the receiving end is less than the fourth upper limit. Based on this, assuming that the reference increment is 1dB, if the receiving sensitivity of the receiving end is -80dBm, the electronic device can increase the receiving sensitivity of the receiving end to -79dBm. Alternatively, if the receiving sensitivity of the receiving end is -78dBm, the electronic device can increase the receiving sensitivity of the receiving end to -77dBm.

[0285] In the third example of the present application, when the electronic device increases the transmission power value of the transmitting end and the reception sensitivity value of the receiving end in step 1027, if the transmission rate of the transmitted data is improved, and the transmission power of the transmitting end is less than the first upper limit value, and the reception sensitivity of the receiving end is less than the fourth upper limit value, then the electronic device can increase the transmission power value of the transmitting end based on the reference increment, and increase the reception sensitivity value of the receiving end based on the reference increment.

[0286] For example, assuming that the transmission rate after the electronic device increases the receiving power of the transmitter and the receiving sensitivity of the receiver is 95MB / s, the transmission rate before the increase is 85MB / s, the transmitting power of the transmitter is 12dBm, the first upper limit is 20dBm, the receiving sensitivity of the receiver is -80dBm, and the fourth upper limit is -30dBm, indicating that after the electronic device increases the receiving power of the transmitter and the receiving sensitivity of the receiver, the transmission rate of the data transmitted between the transmitter and the receiver is improved, and the transmitting power of the transmitter is less than the first upper limit, and the receiving sensitivity of the receiver is less than the fourth upper limit. Based on this, assuming that the reference increment is 2dB, if the transmitting power of the transmitter is 12dBm and the receiving sensitivity of the receiver is -80dBm, the electronic device can increase the transmitting power of the transmitter to 14dBm and the receiving sensitivity of the receiver to -78dBm. Alternatively, if the transmission power of the transmitting end is 15dBm and the receiving sensitivity of the receiving end is -60dBm, the electronic device may increase the transmission power of the transmitting end to 17dBm and increase the receiving sensitivity of the receiving end to -58dBm.

[0287] In this way, if after increasing at least one of the transmitting power of the transmitting end and the receiving sensitivity of the receiving end, the transmission rate is improved, and the transmitting power of the transmitting end has not reached its upper limit, and the receiving sensitivity of the receiving end has not reached its upper limit, it means that this adjustment has no negative impact on the transmission rate, and the transmitting power of the transmitting end and the receiving sensitivity of the receiving end can continue to be increased. Therefore, the electronic device can continue to increase at least one of the transmitting power of the transmitting end and the receiving sensitivity of the receiving end. Since increasing the transmitting power of the transmitting end can improve the signal strength, it helps the receiving end to more accurately decode the received data and restore the data sent by the transmitting end, reduce the bit error rate in the data transmission process, and improve the integrity and accuracy of the transmitted data, thereby improving the success rate of data transmission. In addition, after increasing the receiving sensitivity of the receiving end, the higher receiving sensitivity enables the receiving end to still accurately receive data in a noisy environment, thereby reducing the bit error rate of data transmission and improving the stability of data transmission.

[0288] In some embodiments of the present application, after the above step 1028, the data transmission method provided by the embodiment of the present application may further include the following steps 901 to 903.

[0289] Step 901: The electronic device obtains two transmission rates before and after lowering the transmission power of the transmitting end or the receiving sensitivity of the receiving end.

[0290] In some embodiments of the present application, the electronic device may detect the transmission rate in real time, and after executing the above step 1028, obtain two transmission rates detected before and after executing the above step 1028.

[0291] For the convenience of description, the transmission rate after lowering the transmission power of the transmitting end or the receiving sensitivity of the receiving end is called the third transmission rate, and the transmission rate before lowering is called the fourth transmission rate.

[0292] For example, it is assumed that the third transmission rate is 85 MB / s and the fourth transmission rate is 90 MB / s. Alternatively, it is assumed that the third transmission rate is 85 MB / s and the fourth transmission rate is 80 MB / s.

[0293] Step 902: When the two transmission rates satisfy the eighth condition, or the transmission power of the transmitting end is less than or equal to the first lower limit, or the receiving sensitivity of the receiving end is less than or equal to the fourth lower limit, the electronic device increases at least one of the values ​​of the transmission power of the transmitting end and the receiving sensitivity of the receiving end based on the reference increment.

[0294] In some embodiments of the present application, the eighth condition may include that the transmission rate after lowering the transmission power of the transmitting end or the receiving sensitivity of the receiving end is less than or equal to the transmission rate before lowering.

[0295] In some embodiments of the present application, the second condition may include that the transmission rate after lowering the transmission power of the transmitting end or the receiving sensitivity of the receiving end is less than the transmission rate before lowering.

[0296] In some embodiments of the present application, the first lower limit may be the minimum value of the transmit power of the transmitter. It is understood that if the transmit power of the transmitter is less than the first lower limit, it may have a negative impact on data transmission, such as reducing the accuracy of data transmission.

[0297] In some embodiments of the present application, the fourth lower limit is the minimum value of the receiving sensitivity of the receiving end. It is understandable that if the receiving sensitivity of the receiving end is less than the fourth lower limit, it may have a negative impact on data transmission, such as reducing the transmission rate of data transmission.

[0298] It should be noted that the first lower limit value and the fourth lower limit value can be set by the electronic device by default or according to actual needs, or can be set by the user according to experience, and the fourth lower limit value can be the same as or different from the first lower limit value, which is not limited in the embodiment of the present application. For example, the first lower limit value can be set to 0dBm or 1dBm, and the fourth lower limit value can be set to -89dBm or -90dBm.

[0299] In some embodiments of the present application, after lowering the transmit power of the transmitting end or the receive sensitivity of the receiving end, if the transmission rate of the transmitted data is not improved, or the transmit power of the transmitting end is less than or equal to the first lower limit, or the receive sensitivity of the receiving end is less than or equal to the fourth lower limit, it means that the adjustment is inappropriate. The electronic device can perform an adjustment operation opposite to the current adjustment, and the adjustment operation may include at least one of the following: increasing the transmit power of the transmitting end based on a reference increment, and increasing the receive sensitivity of the receiving end based on a reference increment.

[0300] In the first exemplary embodiment of the present application, when the electronic device lowers the value of the transmit power of the transmitter in step 1024, if the transmission rate does not increase after the lowering, or the transmit power of the transmitter is less than or equal to the first lower limit, the electronic device may increase the value of the transmit power of the transmitter based on the reference increment.

[0301] For example, assuming that the transmission rate after the electronic device lowers the transmission power value of the transmitter is 85MB / s, and the transmission rate before the lowering is 90MB / s, it means that after the electronic device lowers the transmission power of the transmitter, the transmission rate of data transmitted between the transmitter and the receiver decreases. Alternatively, assuming that after the electronic device lowers the transmission power value of the transmitter, the transmission power of the transmitter is 0dBm, and the first lower limit is 0dB, it means that the transmission power of the transmitter is equal to the first lower limit. Based on this, assuming that the reference increment is 1dB, the electronic device can increase the transmission power of the transmitter to 0dBm.

[0302] In the second example of the present application, when the electronic device lowers the value of the receiving sensitivity of the receiving end in step 1024, if the transmission rate does not increase after the lowering, or the receiving sensitivity of the receiving end is less than or equal to the fourth lower limit value, the electronic device may increase the value of the receiving sensitivity of the receiving end based on the reference increment.

[0303] For example, assuming that the transmission rate after the electronic device lowers the value of the receiving sensitivity of the receiving end is 85MB / s, and the transmission rate before the lowering is 90MB / s, it means that after the electronic device lowers the receiving sensitivity of the receiving end, the transmission rate of the data transmitted between the transmitting end and the receiving end decreases. Alternatively, assuming that after the electronic device lowers the value of the receiving sensitivity of the receiving end, the receiving sensitivity of the receiving end is -90dBm, and the fourth lower limit is -90dBm, indicating that the receiving sensitivity of the receiving end is equal to the fourth lower limit. Based on this, assuming that the reference increment is 1dB, the electronic device can increase the receiving sensitivity of the receiving end to -89dBm.

[0304] In the third example of the present application, when the electronic device lowers the value of the transmission power of the transmitting end and the value of the receiving sensitivity of the receiving end in step 1024, if the transmission rate of the transmitted data is not improved, or the transmission power of the transmitting end is less than or equal to the first lower limit value, or the receiving sensitivity of the receiving end is less than or equal to the fourth lower limit value, the electronic device may increase the value of the transmission power of the transmitting end based on the reference increment, and increase the value of the receiving sensitivity of the receiving end based on the reference increment.

[0305] For example, assuming that the transmission rate after the electronic device lowers the receiving power of the transmitting end and the receiving sensitivity of the receiving end is 85MB / s, and the transmission rate before the lowering is 90MB / s, it means that after the electronic device lowers the receiving power of the transmitting end and the receiving sensitivity of the receiving end, the transmission rate of the data transmitted between the transmitting end and the receiving end decreases. Alternatively, assuming that after the electronic device lowers the transmitting power of the transmitting end and the receiving sensitivity of the receiving end, the transmitting power of the transmitting end is 0dBm, the first lower limit is 0dBm, indicating that the transmitting power of the transmitting end is equal to the first lower limit, the receiving sensitivity of the receiving end is -90dBm, and the fourth lower limit is -90dBm, indicating that the receiving sensitivity of the receiving end is equal to the fourth lower limit. Based on this, assuming that the reference increment for adjusting the transmitting power of the transmitting end is 2dB, and the reference increment for adjusting the receiving sensitivity of the receiving end is 1dB, the electronic device can increase the transmitting power of the transmitting end to 2dBm and the receiving sensitivity of the receiving end to -89dBm.

[0306] In this way, after lowering at least one of the transmitting power of the transmitting end and the receiving sensitivity of the receiving end, if the transmission rate does not increase, or the transmitting power of the transmitting end is lower than its lower limit, or the receiving sensitivity of the receiving end is lower than its lower limit, it means that the adjustment is not effective. The electronic device can increase at least one of the transmitting power of the transmitting end and the receiving sensitivity of the receiving end, so that the transmitting power of the transmitting end and the receiving sensitivity of the receiving end are restored to the values ​​before the reduction. This can not only ensure that adjusting at least one of the transmitting power of the transmitting end and the receiving sensitivity of the receiving end will not reduce the transmission rate, but also reduce the power consumption of the transmitting end and improve the stability of data transmission while ensuring that the data transmission rate is not reduced.

[0307] Step 903: When the two transmission rates do not satisfy the eighth condition, the transmission power of the transmitter is greater than the first lower limit, and the receiving sensitivity of the receiver is greater than the fourth lower limit, the electronic device lowers at least one of the values ​​of the transmission power of the transmitter and the receiving sensitivity of the receiver based on the reference increment.

[0308] It should be noted that, for explanations on the eighth condition, the first lower limit value and the fourth lower limit value, please refer to the relevant description of the above step 902, and for explanations on the reference increment, please refer to the relevant description of the above step 1021, which will not be repeated in the embodiments of the present application.

[0309] In some embodiments of the present application, after lowering the transmission power of the transmitting end or the receiving sensitivity of the receiving end, if the transmission rate of the transmitted data is improved, and the transmission power of the transmitting end is greater than the first lower limit value, and the receiving sensitivity of the receiving end is greater than the fourth lower limit value, it means that the last adjustment is appropriate, then the electronic device can continue to perform the same adjustment operation as the last adjustment, and the adjustment operation may include at least one of the following: lowering the transmission power of the transmitting end based on a reference increment, and lowering the receiving sensitivity of the receiving end based on a reference increment.

[0310] In the first example of the present application, when the electronic device lowers the value of the transmission power of the transmitter in step 1028, if the transmission rate is improved after the reduction, and the transmission power of the transmitter is greater than the first lower limit, the electronic device can lower the value of the transmission power of the transmitter based on the reference increment.

[0311] Exemplarily, assuming that the transmission rate after the electronic device lowers the transmission power of the transmitter is 90MB / s, the transmission rate before the lowering is 85MB / s, the transmission power of the transmitter is 15dBm, and the first lower limit is 0dBm, it means that after the electronic device lowers the transmission power of the transmitter, the transmission rate of the data transmitted between the transmitter and the receiver is improved, and the transmission power of the transmitter is greater than the first lower limit. Based on this, assuming that the reference increment is 1dB, if the transmission power of the transmitter is 15dBm, the electronic device can lower the transmission power of the transmitter to 14dBm. Alternatively, if the transmission power of the transmitter is 14dBm, the electronic device can lower the transmission power of the transmitter to 13dBm.

[0312] In the second example of the present application, when the electronic device lowers the value of the receiving sensitivity of the receiving end in step 1028, if the transmission rate is improved after the lowering, and the receiving sensitivity of the receiving end is greater than the fourth lower limit value, the electronic device can lower the value of the receiving sensitivity of the receiving end based on the reference increment.

[0313] For example, assuming that the transmission rate after the electronic device lowers the value of the receiving sensitivity of the receiving end is 92MB / s, the transmission rate before the lowering is 90MB / s, the receiving sensitivity of the receiving end is -86dBm, and the fourth lower limit is -90dBm, indicating that after the electronic device lowers the receiving sensitivity of the receiving end, the transmission rate of the data transmitted between the transmitting end and the receiving end is improved, and the receiving sensitivity of the receiving end is greater than the fourth lower limit. Based on this, assuming that the reference increment is 1dB, if the receiving sensitivity of the receiving end is -86dBm, the electronic device can lower the receiving sensitivity of the receiving end to -87dBm. Alternatively, if the receiving sensitivity of the receiving end is -87dBm, the electronic device can lower the receiving sensitivity of the receiving end to -88dBm.

[0314] In the third example of the present application, when the electronic device lowers the value of the transmission power of the transmitting end and the value of the receiving sensitivity of the receiving end in step 1028, if the transmission rate of the transmitted data is improved, and the transmission power of the transmitting end is greater than the first lower limit value, and the receiving sensitivity of the receiving end is greater than the fourth lower limit value, then the electronic device can lower the value of the transmission power of the transmitting end based on the reference increment, and lower the value of the receiving sensitivity of the receiving end based on the reference increment.

[0315] For example, it is assumed that the transmission rate after the electronic device lowers the receiving power of the transmitting end and the receiving sensitivity of the receiving end is 89MB / s, the transmission rate before the lowering is 85MB / s, the transmitting power of the transmitting end is 15dBm, the first lower limit is 0dBm, the receiving sensitivity of the receiving end is -82dBm, and the fourth lower limit is -90dBm, indicating that after the electronic device lowers the receiving power of the transmitting end and the receiving sensitivity of the receiving end, the transmission rate of the data transmitted between the transmitting end and the receiving end is improved, and the transmitting power of the transmitting end is greater than the first lower limit, and the receiving sensitivity of the receiving end is greater than the fourth lower limit. Based on this, assuming that the reference increment for adjusting the receiving power of the transmitting end is 2dB, and the reference increment for adjusting the receiving sensitivity of the receiving end is 1dB, if the transmitting power of the transmitting end is 12dBm and the receiving sensitivity of the receiving end is -80dBm, the electronic device can lower the transmitting power of the transmitting end to 10dBm and lower the receiving sensitivity of the receiving end to -81dBm. Alternatively, if the transmission power of the transmitting end is 15dBm and the receiving sensitivity of the receiving end is -81dBm, the electronic device may lower the transmission power of the transmitting end to 13dBm and lower the receiving sensitivity of the receiving end to -82dBm.

[0316] In this way, if after lowering at least one of the transmission power of the transmitter and the receiving sensitivity of the receiver, the transmission rate is improved, and the transmission power of the transmitter has not reached its lower limit, and the receiving sensitivity of the receiver has not reached its lower limit, it means that this adjustment has no negative impact on the transmission rate, and the transmission power of the transmitter and the receiving sensitivity of the receiver can continue to be lowered. Therefore, the electronic device can continue to lower at least one of the transmission power of the transmitter and the receiving sensitivity of the receiver. Lowering the transmission power of the transmitter can reduce the power consumption of the transmitter, and lowering the receiving sensitivity of the receiver can reduce the interference of other signals on the receiving data of the receiver, reduce the power consumption of the receiver when receiving signals, and improve the stability of data transmission. That is, continuing to lower at least one of the transmission power of the transmitter and the receiving sensitivity of the receiver can continue to improve the stability of data transmission while ensuring that the transmission rate does not decrease.

[0317] It should be noted that after each adjustment of the channel transmission parameters by the electronic device, it will determine whether the transmission rate is reduced, and then determine how to adjust the channel transmission parameters. In this way, the data transmission performance is gradually improved by adjusting the channel transmission parameters one level at a time, and when each adjustment causes the data transmission rate to decrease or not increase, the adjustment is corrected in time, which can avoid the negative impact caused by inappropriate adjustment and further improve the data transmission performance. Exemplarily, when the transmission rate decreases or does not increase, it can be determined that the Wi-Fi performance redundancy has basically reached the limit, and the last adjustment can be rolled back at this time. When the transmission rate does not decrease or increases, it can be determined that the Wi-Fi performance still has redundancy, and the transmission parameters continue to be adjusted. In this way, the last adjustment will be returned each time the transmission rate decreases or does not increase, and the adjustment will continue when the transmission rate does not decrease or increases, which can ensure that the transmission rate is generally improved in one data transmission through the data transmission method provided in the embodiment of the present application.

[0318] It should be noted that the above content records that, in the case where the channel transmission parameters have been adjusted at least once before the first channel noisiness is obtained, the electronic device determines how to adjust the channel transmission parameters according to the difference between the first channel noisiness and the second channel noisiness, and the magnitude relationship between the first channel noisiness and the second channel noisiness. In some embodiments of the present application, if the electronic device obtains the first channel noisiness for the first time, that is, the transmission parameters have not been adjusted before the first channel noisiness is obtained, the electronic device may not make a judgment and directly adjust the channel transmission parameters according to the first channel noisiness.

[0319] In some embodiments of the present application, when the electronic device obtains the first channel noisiness for the first time, the electronic device may determine whether the first channel noisiness is greater than a noisiness threshold, and if so, increase the value of the channel transmission parameter; if not, decrease the value of the channel transmission parameter.

[0320] It should be noted that the above-mentioned noisiness threshold can be set by default by the electronic device, or can be set according to actual needs, or can be set by the user based on experience, and the embodiments of the present application do not limit this.

[0321] In some embodiments of the present application, the specific implementation of increasing the channel transmission parameters, the operations performed after increasing the channel transmission parameters, the specific implementation of lowering the channel transmission parameters, and the operations performed after lowering the channel transmission parameters can all be referred to the relevant descriptions in the above embodiments, and this embodiment will not be repeated here.

[0322] It should be noted that the above content records the operation performed by the electronic device when the difference between the first channel noisiness and the second channel noisiness is greater than the first threshold. In some embodiments of the present application, when the difference between the first channel noisiness and the second channel noisiness is less than or equal to the first threshold, it means that the occupancy of the first channel has not changed much, and the last adjustment of the channel transmission parameters can be applied to the current situation. In this case, the electronic device may not adjust the channel transmission parameters, but return to execute the above steps 100 and 1011 until the data transmission is completed. That is, when the first channel noisiness is less than or equal to the second channel noisiness and the difference between the first channel noisiness and the second channel noisiness is less than or equal to the first threshold, or when the first channel noisiness is greater than the second channel noisiness and the difference between the first channel noisiness and the second channel noisiness is less than or equal to the first threshold, the electronic device does not adjust the channel transmission parameters.

[0323] The data transmission method provided by the embodiment of the present application, since the proportion of non-idle time of the data transmission channel can reflect the situation that the data transmission channel is occupied by other electronic devices, that is, whether the data transmission channel is idle, therefore, the first channel noisiness can characterize whether the data transmission channel is idle at the first moment, and the second channel noisiness can characterize whether the data transmission channel is idle at the second moment before the first moment. The difference between the first channel noisiness and the second channel noisiness is greater than the first threshold, indicating that the occupation situation of the data transmission channel has changed significantly, and the data transmission channel may change from idle to busy or from busy to idle. The adjustment of the transmission parameters at the second moment cannot be applicable to the situation that the data transmission channel is occupied at the first moment. Then, the electronic device can adjust the channel transmission parameters. Moreover, since the values ​​of the applicable channel transmission parameters are different when the channel noisiness is poor and when the channel noisiness is good, this solution adjusts at least one of the transmit power of the transmitter, the receive sensitivity of the transmitter, the transmit power of the receiver, or the receive sensitivity of the receiver according to the magnitude relationship between the first channel noisiness and the second channel noisiness, and the adjusted channel transmission parameter value is more consistent with the situation that the data transmission channel is occupied at the first moment, that is, the adjustment of the channel transmission parameters in this solution takes into account the actual environmental conditions during the data transmission process, and compared with directly increasing the transmit power of the transmitter or the receive sensitivity of the transmitter in the related art, it can reduce the power consumption of electronic devices and increase the data transmission rate between electronic devices. In other words, the data transmission method provided in the embodiment of the present application is based on the current Wi-Fi performance improvement, which brings negative benefits such as short-distance transmission scenarios, reduces redundant performance, reduces the perception of the environment, and increases the transmission rate, or minimizes the energy consumption of electronic devices while ensuring the transmission rate, thereby improving the data transmission performance. Moreover, with more and more terminals, in addition to ensuring wider coverage, in short-distance transmission scenarios, a cleaner micro-area scenario is provided to minimize transmission crosstalk from other electronic devices, thereby increasing the transmission rate of data and reducing the energy consumption of electronic devices during data transmission.

[0324] Next, combine Figure 6 To describe the specific implementation process of the data transmission method provided in the embodiment of the present application for the purpose of reducing the power consumption of the electronic device.

[0325] Figure 6 It is a flowchart of a data transmission method provided in some embodiments of the present application. When the purpose is to reduce the power consumption of an electronic device, the method may include steps 61 to 623 below.

[0326] Step 61: The sending end and the receiving end establish a data transmission channel.

[0327] In some embodiments of the present application, the transmitter can use the mutual transmission application to establish a Wi-Fi transmission channel with the receiver. Exemplarily, the transmitter and the receiver use the mutual transmission application to negotiate and establish an optimal Wi-Fi transmission channel, such as a Wi-Fi transmission channel with the smallest CCA level.

[0328] It should be noted that the above-mentioned Wi-Fi transmission channel may be the data transmission channel in the above-mentioned embodiment.

[0329] Step 62: The sending end determines whether the amount of data to be transmitted is less than the second threshold value. If so, execute step 63; if not, execute step 64.

[0330] Exemplarily, the sending end may determine whether the data volume of the file to be transmitted is less than xGB.

[0331] It should be noted that the above-mentioned file to be transmitted may be the data to be transmitted in the above-mentioned embodiment, and the above-mentioned xGB may be the second threshold in the above-mentioned embodiment. Exemplarily, the second threshold may be 1GB.

[0332] Step 63: The sending end does not adjust the transmission parameters and transmits the data to be transmitted normally until the data transmission is completed.

[0333] In some embodiments of the present application, if the data volume is less than the second threshold, even if the transmission parameters are adjusted, it will not help much to improve the data transmission performance, and the data transmission time is shorter when the data volume is small, so the transmission parameters do not need to be adjusted.

[0334] Step 64: The transmitting end obtains the first channel noisiness and the second channel noisiness.

[0335] It should be noted that the first channel noisiness may be a current environmental noisiness index, and the second channel noisiness may be an environmental noisiness index recorded when the transmission parameters were adjusted last time.

[0336] Step 65 , the transmitting end determines whether the difference between the noise level of the first channel and the noise level of the second channel is greater than the first threshold value. If not, the process returns to step 62 ; if yes, the process proceeds to step 66 .

[0337] In some embodiments of the present application, by continuously detecting the environmental noise, when the change in the environmental noise reaches a certain level, such as greater than a first threshold, adjustment of channel transmission parameters is triggered to reduce Wi-Fi performance redundancy and improve data transmission performance.

[0338] Step 66: The transmitting end determines whether the noise level of the first channel is less than the noise level of the second channel. If so, execute step 67; if not, execute step 615.

[0339] Step 67: The transmitting end determines whether the transmitting power of the transmitting end is greater than the first lower limit value. If so, execute step 68; if not, execute step 611.

[0340] It should be noted that after the transmitting end and the receiving end establish a data transmission channel, when data is transmitted for the first time, the transmitting end may send the data to be transmitted to the receiving end based on the maximum transmission power.

[0341] Step 68: The transmitting end lowers the transmitting power of the transmitting end based on the reference increment.

[0342] Exemplarily, the transmitting end executes the strategy action 1-1, which is to reduce the transmit power of the transmitting end by one level, that is, the transmitting end reduces the transmit power of the transmitting end based on the reference increment, wherein the reference increment is the same as the adjustment amount corresponding to one level.

[0343] For example, assuming that the first level is 1 dB or 0.5 dB, the transmitting end may reduce the transmitting power of the transmitting end by 1 dB or 0.5 dB.

[0344] Step 69: The transmitting end obtains the transmission rate before and after the transmitting power of the transmitting end is lowered based on the reference increment, and determines whether the transmission rate is reduced. If so, execute step 610; if not, return to execute step 67.

[0345] Exemplarily, the transmitting end may obtain the transmission rate of the Wi-Fi transmission channel after executing policy action 1-1, and determine whether the transmission rate is reduced.

[0346] In some embodiments of the present application, if the transmission rate does not decrease, it means that the transmission power of the transmitter can continue to be reduced until the first lower limit is reached. Alternatively, if the transmission rate decreases, it means that the current transmitter does not have performance redundancy and the previous power reduction action needs to be withdrawn, that is, the transmission power of the transmitter is increased based on the reference increment.

[0347] Step 610: The transmitting end increases the transmitting power of the transmitting end based on the reference increment.

[0348] Exemplarily, the transmitting end executes strategy action 1-2, which is to increase the transmit power of the transmitting end by one level, that is, the transmitting end increases the transmit power of the transmitting end based on the reference increment, wherein the reference increment is the same as the adjustment amount corresponding to one level.

[0349] It should be noted that the above-mentioned strategic action 1-2 is opposite to the above-mentioned strategic action 1-1.

[0350] For example, assuming that the transmitting end lowers the transmitting power of the transmitting end by 1 dB in step 68, the transmitting end increases the transmitting power of the transmitting end by 1 dB in this step.

[0351] Step 611: The transmitting end lowers the receiving sensitivity of the transmitting end and the transmitting power of the receiving end based on the reference increment.

[0352] Exemplarily, the transmitting end executes strategy action 1-3, which is to lower the receiving sensitivity of the transmitting end and the transmitting power of the receiving end by one level, that is, the transmitting end lowers the receiving sensitivity of the transmitting end based on the reference increment, and lowers the transmitting power of the receiving end based on the reference increment. The reference increment is the same as the adjustment amount corresponding to one level.

[0353] Step 612: The transmitting end obtains two transmission rates before and after lowering the receiving sensitivity of the transmitting end and the transmitting power of the receiving end.

[0354] Step 613: The sending end determines whether the two transmission rates meet the preset condition 1. If so, execute step 614; if not, execute step 611.

[0355] It should be noted that the above-mentioned preset condition 1 includes that the transmission rate decreases after executing step 612, or the receiving sensitivity of the transmitting end is less than the second lower limit, or the transmitting power of the receiving end is less than the third lower limit.

[0356] Step 614: The transmitting end increases the receiving sensitivity of the transmitting end and the transmitting power of the receiving end based on the reference increment.

[0357] In some embodiments of the present application, if the transmission rate drops significantly, it means that there is no performance redundancy at present, and it is necessary to withdraw the previous strategy actions 1-3 and execute strategy actions 1-4.

[0358] Exemplarily, the transmitting end executes strategy action 1-4, which is to increase the receiving sensitivity of the transmitting end and the transmitting power of the receiving end by one level, that is, the transmitting end increases the receiving sensitivity of the transmitting end based on the reference increment, and increases the transmitting power of the receiving end based on the reference increment.

[0359] It should be noted that the above-mentioned strategic actions 1-4 are opposite to the above-mentioned strategic actions 1-3.

[0360] In some embodiments of the present application, after step 614, the transmitting end may determine that a round of adjustment of the channel transmission parameters based on the first channel noisiness is completed. Then, the transmitting end may execute step 623, that is, the transmitting end determines whether the data transmission is completed, and if not, returns to execute step 64 to start the next round of adjustment until the data transmission is completed.

[0361] Step 615: The transmitting end determines whether the transmitting power of the transmitting end is less than the first upper limit value. If so, execute step 616; if not, execute step 619.

[0362] Step 616: The transmitting end increases the transmitting power of the transmitting end based on the reference increment.

[0363] Exemplarily, the transmitting end executes the strategy action 2-1, which is to increase the transmit power of the transmitting end by one level, that is, the transmitting end increases the transmit power of the transmitting end based on the reference increment, wherein the reference increment is the same as the adjustment amount corresponding to one level.

[0364] For example, assuming that one level is 1 dB or 0.5 dB, the transmitter may increase the transmit power of the transmitter by 1 dB or 0.5 dB.

[0365] Step 617: The transmitting end obtains the transmission rate before and after the transmitting power of the transmitting end is increased based on the reference increment, and determines whether the transmission rate is reduced. If so, execute step 618; if not, return to execute step 615.

[0366] Exemplarily, the transmitting end may obtain the transmission rate of the Wi-Fi transmission channel after executing policy action 2-1, and determine whether the transmission rate is reduced.

[0367] In some embodiments of the present application, if the transmission rate does not decrease, it means that the transmission power of the transmitter can continue to be increased until the first upper limit is reached. Alternatively, if the transmission rate decreases, it means that the current transmitter does not have performance redundancy and the previous power increase action needs to be withdrawn, that is, the transmission power of the transmitter is lowered based on the reference increment.

[0368] Step 618: The transmitting end lowers the transmitting power of the transmitting end based on the reference increment.

[0369] Exemplarily, the transmitting end executes the strategy action 2-2, which is to reduce the transmit power of the transmitting end by one level, that is, the transmitting end reduces the transmit power of the transmitting end based on the reference increment, wherein the reference increment is the same as the adjustment amount corresponding to one level.

[0370] It should be noted that the above-mentioned strategy action 2-2 is opposite to the strategy action 2-1.

[0371] Step 619: The transmitting end increases the receiving sensitivity of the transmitting end and the transmitting power of the receiving end based on the reference increment.

[0372] Exemplarily, the transmitting end executes strategy action 2-3, which is to increase the receiving sensitivity of the transmitting end and the transmitting power of the receiving end by one level, that is, the transmitting end increases the receiving sensitivity of the transmitting end and the transmitting power of the receiving end based on the reference increment. The reference increment is the same as the adjustment amount corresponding to one level.

[0373] Step 620: The transmitting end obtains two transmission rates before and after increasing the receiving sensitivity of the transmitting end and the transmitting power of the receiving end.

[0374] Step 621 : The transmitting end determines whether the two transmission rates meet the preset condition 2 . If so, execute step 622 ; if not, execute step 619 .

[0375] It should be noted that the above-mentioned preset condition 2 includes that the transmission rate decreases after executing step 620, or the receiving sensitivity of the transmitting end is greater than the second upper limit value, or the transmitting power of the receiving end is greater than the third upper limit value.

[0376] Step 622: The transmitting end lowers the receiving sensitivity of the transmitting end and the transmitting power of the receiving end based on the reference increment.

[0377] In some embodiments of the present application, if the transmission rate drops significantly, it means that there is no performance redundancy at present, and it is necessary to withdraw the previous strategy action 2-3 and execute strategy action 2-4.

[0378] Exemplarily, the transmitting end executes strategy action 2-4, which is to lower the receiving sensitivity of the transmitting end and the transmitting power of the receiving end by one level, that is, the transmitting end lowers the receiving sensitivity of the transmitting end and the transmitting power of the receiving end based on the reference increment.

[0379] It should be noted that the above-mentioned strategic action 2-4 is opposite to the above-mentioned strategic action 2-3.

[0380] Step 623: The sending end determines whether the data transmission is completed. If not, the process returns to step 64; if so, the process ends.

[0381] In some embodiments of the present application, after step 622, it can be determined that a round of adjustment of the channel transmission parameters based on the first channel noisiness is completed. Then, the transmitting end can determine whether the data transmission is completed, and if not, return to step 64 to start the next round of adjustment until the data transmission is completed.

[0382] It should be noted that, for the explanation of the transmit power of the transmitting end, the receiving sensitivity of the transmitting end, the transmit power of the receiving end, and the receiving sensitivity of the receiving end, please refer to the relevant description of the above embodiment, and this embodiment will not be repeated here. In addition, the specific implementation process of the above steps 61 to 623 can refer to the relevant description of the above embodiment, and to avoid repetition, this embodiment will not be repeated here.

[0383] Next, taking the example of the old mobile phone B as the sending end and the new mobile phone A as the receiving end, and the old mobile phone B transferring a 350G file to the new mobile phone A, with the purpose of reducing the power consumption of the electronic device, the data transmission method provided in the embodiment of the present application is explained through the following steps 11 to 18.

[0384] Step 11. The old phone B scans the QR code of the new phone A through the mutual transmission application. The new phone A establishes a hotspot, such as VIVO-CH44-W160MHz and other information. The old phone B connects to the hotspot, and a Wi-Fi transmission channel between the old phone B and the new phone A is established.

[0385] It should be noted that the above step 11 corresponds to step 61 in the above embodiment.

[0386] Step 12: The new mobile phone A and the old mobile phone B monitor CCALevel at a period of 3 seconds to record the noise of the first channel, and set a first threshold H, such as H=50, indicating that the transmission parameters need to be readjusted when the change of the channel noise from the last time is greater than 50.

[0387] It should be noted that the above step 12 corresponds to the “obtaining the first channel noisiness” in step 64 in the above embodiment.

[0388] Step 13: The user selects the file to be transferred on the old mobile phone B. The size of the file to be transferred is xG, such as 350G. Assuming that the second threshold is 100G, it can be determined that the file to be transferred is large enough at this time, and the following step 14 is executed.

[0389] It should be noted that the above step 13 corresponds to step 62 and step 63 in the above embodiment.

[0390] Step 14: Assuming that the current channel noise is less than or equal to the channel noise recorded during the last adjustment, determine the difference between the current channel noise CCAlevel and the channel noise CCALevle_recoder recorded during the last adjustment, and determine the relationship between the difference and H.

[0391] a1. If the difference is less than or equal to H, the transmission parameters of the new phone A and the old phone B do not need to be adjusted.

[0392] b1. If the difference is greater than H, execute the following step 15.

[0393] c1. For the first execution, since there is no record of the last CCALevle_recoder, directly execute the following step 15.

[0394] It should be noted that a1 in the above step 14 corresponds to "the first channel noisiness is less than or equal to the second channel noisiness and the difference between the first channel noisiness and the second channel noisiness is less than or equal to the first threshold value" in the above embodiment. b1 in the above step 14 corresponds to "the first channel noisiness is less than or equal to the second channel noisiness and the difference between the first channel noisiness and the second channel noisiness is greater than the first threshold value" in the above embodiment.

[0395] Step 15: The lower limit power of the old mobile phone B is set to 0 dBm by default, which meets the requirements defined by IEEE. The old mobile phone B obtains the current transmit power of the old mobile phone B and determines whether the transmit power of the old mobile phone B reaches the lower limit power of 0 dBm.

[0396] a2. If the transmission power of the old mobile phone B is less than the lower power limit of the old mobile phone B, that is, the transmission power of the old mobile phone B has reached the lower power limit, the transmission power of the old mobile phone B will no longer be lowered.

[0397] b2. If the transmission power of the old mobile phone B is greater than or equal to the lower power limit of the old mobile phone B, that is, the transmission power of the old mobile phone B has not reached the lower power limit, then the transmission power of the old mobile phone B is lowered by 1 level, such as by 1dB.

[0398] Then, the old mobile phone B determines how to adjust the transmission parameters in the future by judging the change of the transmission rate.

[0399] a3. If the transmission rate does not drop significantly, return to step 15.

[0400] b3. If the transmission rate drops significantly, the current level is retracted, such as increasing the transmission power of the old mobile phone by 1 dB, and executing step 16, indicating that the transmission power of the old mobile phone B is adjusted this time.

[0401] It should be noted that a2 in the above step 15 corresponds to "if the transmit power of the transmitting end is less than the first lower limit, the transmit power of the transmitting end is no longer lowered" in the above embodiment. b2 in the above step 15 corresponds to "if the transmit power of the transmitting end is greater than or equal to the first lower limit, the transmit power of the transmitting end is lowered" in the above embodiment. a3 in the above step 15 corresponds to "if the transmission rate does not decrease after the transmit power of the transmitting end is lowered, then continue to judge whether to lower the transmit power of the transmitting end based on the relationship between the transmit power of the transmitting end and the first lower limit" in the above embodiment. b3 in the above step 15 corresponds to "if the transmission rate decreases after the transmit power of the transmitting end is lowered, then the transmit power of the transmitting end is increased" in the above embodiment.

[0402] Step 16: Reduce the transmit power of the new mobile phone A by one level, such as by 1 dB, and reduce the receive sensitivity of the old mobile phone B by one level, such as by reducing the Rx Gain by 1 dB.

[0403] It should be noted that the above step 16 corresponds to step 611 in the above embodiment.

[0404] Step 17, the new mobile phone A determines whether to continue to reduce the transmission power of the new mobile phone A by judging whether the transmission rate becomes slower and whether the transmission power of the new mobile phone A reaches the lower limit of the transmission power. The old mobile phone B determines whether to continue to reduce the receiving sensitivity of the old mobile phone B by judging whether the transmission rate becomes slower and whether the receiving sensitivity of the old mobile phone B reaches the lower limit of the receiving sensitivity.

[0405] Step 18: When the above conditions of step 17 are not met, roll back the most recent execution strategy and record the CCALevle_recoder during the current adjustment, until the current round of adjustment is completed.

[0406] It should be noted that the above steps 17 and 18 correspond to steps 612 and 614 in the above embodiment.

[0407] It should be noted that the specific implementation process of the above steps 11 to 18 can refer to the relevant description of the above embodiment. To avoid repetition, this embodiment will not be repeated here.

[0408] Next, combine Figure 7 To describe the specific implementation process of the data transmission method provided in the embodiment of the present application for the purpose of improving the transmission rate.

[0409] Figure 7 It is a flowchart of a data transmission method provided in some embodiments of the present application. When the purpose is to increase the transmission rate, the method may include the following steps 71 to 723.

[0410] Step 71: The sending end and the receiving end establish a data transmission channel.

[0411] In some embodiments of the present application, the transmitter can use the mutual transmission application to establish a Wi-Fi transmission channel with the receiver. Exemplarily, the transmitter and the receiver use the mutual transmission application to negotiate and establish an optimal Wi-Fi transmission channel, such as a Wi-Fi transmission channel with the smallest CCA level.

[0412] It should be noted that the above-mentioned Wi-Fi transmission channel may be the data transmission channel in the above-mentioned embodiment.

[0413] Step 72: The sending end determines whether the amount of data to be transmitted is less than the second threshold value. If so, execute step 73; if not, execute step 74.

[0414] Exemplarily, the sending end may determine whether the data volume of the file to be transmitted is less than xGB.

[0415] It should be noted that the above-mentioned file to be transmitted may be the data to be transmitted in the above-mentioned embodiment, and the above-mentioned xGB may be the second threshold in the above-mentioned embodiment. Exemplarily, the second threshold may be 1GB.

[0416] Step 73: The sending end does not adjust the transmission parameters and transmits the data to be transmitted normally until the data transmission is completed.

[0417] In some embodiments of the present application, if the data volume is less than the second threshold, even if the transmission parameters are adjusted, it will not help much to improve the data transmission performance, and the data transmission time is shorter when the data volume is small, so the transmission parameters do not need to be adjusted.

[0418] Step 74: The transmitting end obtains the first channel noisiness and the second channel noisiness.

[0419] It should be noted that the first channel noisiness may be a current environmental noisiness index, and the second channel noisiness may be an environmental noisiness index recorded when the transmission parameters were adjusted last time.

[0420] Step 75 , the transmitting end determines whether the difference between the noise level of the first channel and the noise level of the second channel is greater than the first threshold value. If not, the process returns to step 72 ; if yes, the process proceeds to step 76 .

[0421] In some embodiments of the present application, by continuously detecting the environmental noise, when the change in the environmental noise reaches a certain level, such as greater than a first threshold, adjustment of channel transmission parameters is triggered to reduce Wi-Fi performance redundancy and improve data transmission performance.

[0422] Step 76: The transmitting end determines whether the noise level of the first channel is less than the noise level of the second channel. If so, execute step 77; if not, execute step 715.

[0423] Step 77, the transmitting end determines whether the receiving sensitivity of the transmitting end is greater than the second lower limit value, if so, execute step 78; if not, execute step 711.

[0424] Step 78: The transmitting end lowers the receiving sensitivity of the transmitting end based on the reference increment.

[0425] Exemplarily, the transmitting end executes the strategy action 3-1, which is to lower the receiving sensitivity of the transmitting end by one level, that is, the transmitting end lowers the receiving sensitivity of the transmitting end based on the reference increment, wherein the reference increment is the same as the adjustment amount corresponding to one level.

[0426] Exemplarily, assuming that one level is 1 dB or 0.5 dB, the transmitting end may lower the receiving sensitivity of the transmitting end by 1 dB or 0.5 dB.

[0427] Step 79: The transmitting end obtains the transmission rate before and after the receiving sensitivity of the transmitting end is lowered based on the reference increment, and determines whether the transmission rate is improved. If not, execute step 710; if so, return to execute step 77.

[0428] Exemplarily, the transmitting end may obtain the transmission rate of the Wi-Fi transmission channel after executing policy action 3-1, and determine whether the transmission rate is improved.

[0429] In some embodiments of the present application, if the transmission rate is improved, it means that the receiving sensitivity of the transmitter can be further lowered until the second lower limit is reached. Alternatively, if the transmission rate is not improved, it means that the current transmitter does not have performance redundancy and the previous action of reducing the receiving sensitivity needs to be withdrawn, that is, the receiving sensitivity of the transmitter is increased based on the reference increment.

[0430] Step 710: The transmitting end increases the receiving sensitivity of the transmitting end based on the reference increment.

[0431] Exemplarily, the transmitting end executes the strategy action 3-2, which is to increase the receiving sensitivity of the transmitting end by one level, that is, the transmitting end increases the receiving sensitivity of the transmitting end based on the reference increment, wherein the reference increment is the same as the adjustment amount corresponding to one level.

[0432] It should be noted that the above-mentioned strategic action 3-2 is opposite to the above-mentioned strategic action 3-1.

[0433] For example, assuming that the transmitting end lowers the receiving sensitivity of the transmitting end by 1 dB in step 78, the transmitting end increases the receiving sensitivity of the transmitting end by 1 dB in this step.

[0434] Step 711: The transmitting end lowers the transmitting power of the transmitting end and the receiving sensitivity of the receiving end based on the reference increment.

[0435] Exemplarily, the transmitting end executes strategy action 3-3, which is to lower the transmitting power of the transmitting end and the receiving sensitivity of the receiving end by one level, that is, the transmitting end lowers the transmitting power of the transmitting end and the receiving sensitivity of the receiving end based on the reference increment. The reference increment is the same as the adjustment amount corresponding to one level.

[0436] Step 712: The transmitting end obtains two transmission rates before and after lowering the transmitting power of the transmitting end and the receiving sensitivity of the receiving end.

[0437] Step 713: The sending end determines whether the two transmission rates meet the preset condition 3. If so, execute step 714; if not, execute step 711.

[0438] It should be noted that the above-mentioned preset condition 3 includes that the transmission rate does not increase after executing step 712, or the transmission power of the transmitting end is less than the first lower limit, or the receiving sensitivity of the receiving end is less than the fourth lower limit.

[0439] Step 714: The transmitting end increases the transmitting power of the transmitting end and the receiving sensitivity of the receiving end based on the reference increment.

[0440] In some embodiments of the present application, if the transmission rate drops significantly, it means that there is no performance redundancy at present, and it is necessary to withdraw the previous strategy action 3-3 and execute strategy action 3-4.

[0441] Exemplarily, the transmitting end executes strategy action 3-4, which is to increase the transmitting power of the transmitting end and the receiving sensitivity of the receiving end by one level, that is, the transmitting end increases the transmitting power of the transmitting end and the receiving sensitivity of the receiving end based on the reference increment.

[0442] It should be noted that the above-mentioned strategic action 3-4 is opposite to strategic action 3-3.

[0443] In some embodiments of the present application, after step 714, the transmitting end may determine that a round of adjustment of the channel transmission parameters based on the first channel noisiness is completed. Then, the transmitting end may execute step 723, that is, the transmitting end determines whether the data transmission is completed, and if not, returns to execute step 74 to start the next round of adjustment until the data transmission is completed.

[0444] Step 715: The transmitting end determines whether the receiving sensitivity of the transmitting end is less than the second upper limit value. If so, execute step 716; if not, execute step 719.

[0445] Step 716: The transmitting end increases the receiving sensitivity of the transmitting end based on the reference increment.

[0446] Exemplarily, the transmitting end executes the strategy action 4-1, which is to increase the receiving sensitivity of the transmitting end by one level, that is, the transmitting end increases the receiving sensitivity of the transmitting end based on the reference increment.

[0447] Exemplarily, assuming that one level is 1 dB or 0.5 dB, the transmitting end may increase the receiving sensitivity of the transmitting end by 1 dB or 0.5 dB.

[0448] Step 717: The transmitting end obtains the transmission rate before and after the receiving sensitivity of the transmitting end is increased based on the reference increment, and determines whether the transmission rate is improved. If not, execute step 718; if so, return to execute step 715.

[0449] In some embodiments of the present application, if the transmission rate is improved, it means that the receiving sensitivity of the transmitter can be further increased until the second upper limit is reached. Alternatively, if the transmission rate is not improved, it means that the current transmitter does not have performance redundancy, and it is necessary to withdraw the previous action of increasing the receiving sensitivity of the transmitter, that is, to lower the receiving sensitivity of the transmitter based on the reference increment.

[0450] Step 718: The transmitting end lowers the receiving sensitivity of the transmitting end based on the reference increment.

[0451] Exemplarily, the transmitting end executes the strategy action 4-2, which is to lower the receiving sensitivity of the transmitting end by one level, that is, the transmitting end lowers the receiving sensitivity of the transmitting end based on the reference increment.

[0452] It should be noted that the above-mentioned strategic action 4-2 is opposite to the strategic action 4-1.

[0453] Step 719: The transmitting end increases the transmitting power of the transmitting end and the receiving sensitivity of the receiving end based on the reference increment.

[0454] Exemplarily, the transmitting end executes the strategy action 4-3, which is to increase the transmitting power of the transmitting end and the receiving sensitivity of the receiving end by one level, that is, the transmitting end increases the transmitting power of the transmitting end and the receiving sensitivity of the receiving end based on the reference increment. The reference increment is the same as the adjustment amount corresponding to one level.

[0455] Step 720: The transmitting end obtains two transmission rates before and after increasing the transmitting power of the transmitting end and the receiving sensitivity of the receiving end.

[0456] Step 721 , the transmitting end determines whether the two transmission rates meet the preset condition 4 , if so, execute step 722 ; if not, execute step 719 .

[0457] It should be noted that the above-mentioned preset condition 4 includes that the transmission rate does not increase after executing step 720, or the transmission power of the transmitting end is greater than the first upper limit value, or the receiving sensitivity of the receiving end is greater than the fourth upper limit value.

[0458] Step 722: The transmitting end lowers the transmitting power of the transmitting end and the receiving sensitivity of the receiving end based on the reference increment.

[0459] In some embodiments of the present application, if the transmission rate does not increase, it means that there is currently no performance redundancy, and it is necessary to withdraw the previous strategy action 4-3 and execute strategy action 4-4.

[0460] Exemplarily, the transmitter executes strategy action 4-4, which is to lower the transmit power of the transmitter and the receive sensitivity of the receiver by one level respectively, that is, the transmitter lowers the transmit power of the transmitter based on the reference increment, and lowers the receive sensitivity of the receiver based on the reference increment.

[0461] It should be noted that the above-mentioned strategic action 4-4 is opposite to the above-mentioned strategic action 4-3.

[0462] Step 723: The sending end determines whether the data transmission is completed. If not, it returns to execute step 74; if so, the process ends.

[0463] In some embodiments of the present application, after step 722, it can be determined that a round of adjustment of the channel transmission parameters based on the first channel noisiness is completed. Then, the transmitting end can determine whether the data transmission is completed, and if not, return to step 74 to start the next round of adjustment until the data transmission is completed.

[0464] Next, taking the example of the old phone B as the sending end and the new phone A as the receiving end, and the old phone B transmitting a 350G file to the new phone A, with the purpose of increasing the transmission rate, the data transmission method provided in the embodiment of the present application is explained through the following steps 21 to 28.

[0465] Step 21, the old phone B scans the QR code of the new phone A through the mutual transmission application, and the new phone A establishes a hotspot, such as VIVO-CH44-W160MHz and other information. The old phone B connects to the hotspot, and a Wi-Fi transmission channel between the old phone B and the new phone A is established.

[0466] It should be noted that the above step 21 corresponds to step 71 in the above embodiment.

[0467] Step 22: The new mobile phone A and the old mobile phone B monitor CCALevel at a period of 3 seconds to record the noise of the first channel, and set the first threshold to H, such as H=50, indicating that the transmission parameters need to be readjusted when the change of the channel noise from the last time is greater than 50.

[0468] It should be noted that the above step 22 corresponds to the “obtaining the first channel noisiness” in step 74 in the above embodiment.

[0469] Step 23, the user selects the file to be transferred on the old mobile phone B. The size of the file to be transferred is xG, such as 350G. Assuming that the second threshold is 100G, it can be determined that the file to be transferred is large enough at this time, and the following step 24 is executed.

[0470] It should be noted that the above step 23 corresponds to step 72 and step 73 in the above embodiment.

[0471] Step 24: Assuming that the current channel noise is less than or equal to the channel noise recorded during the last adjustment, determine the difference between the current channel noise CCAlevel and the channel noise CCALevle_recoder recorded during the last adjustment, and determine the relationship between the difference and H.

[0472] a4. If the difference is less than or equal to H, the transmission parameters of the new phone A and the old phone B do not need to be adjusted.

[0473] b4. If the difference is greater than H, execute the following step 25.

[0474] c4. For the first execution, since there is no record of the last CCALevle_recoder, directly execute the following step 25.

[0475] It should be noted that a4 in the above step 24 corresponds to "the first channel noisiness is less than or equal to the second channel noisiness and the difference between the first channel noisiness and the second channel noisiness is less than or equal to the first threshold value" in the above embodiment. b4 in the above step 24 corresponds to "the first channel noisiness is less than or equal to the second channel noisiness and the difference between the first channel noisiness and the second channel noisiness is greater than the first threshold value" in the above embodiment.

[0476] Step 25: The lower limit sensitivity of the old mobile phone B is set to -90dBm by default, which meets the requirements defined by IEEE. The old mobile phone B obtains the current receiving sensitivity of the old mobile phone B, and determines whether the receiving sensitivity of the old mobile phone B reaches the lower limit sensitivity of -90dBm.

[0477] a5. If the receiving sensitivity of the old mobile phone B is less than the lower limit sensitivity of the old mobile phone B, that is, the receiving sensitivity of the old mobile phone B has reached the lower limit sensitivity, the receiving sensitivity of the old mobile phone B will no longer be lowered.

[0478] b5. If the receiving sensitivity of the old mobile phone B is greater than or equal to the lower limit sensitivity of the old mobile phone B, that is, the receiving sensitivity of the old mobile phone B has not reached the lower limit sensitivity, then the receiving sensitivity of the old mobile phone B is reduced by 1 level, such as reducing the receiving gain by 1dB.

[0479] Then, the old mobile phone B determines how to adjust the transmission parameters in the future by judging the change of the transmission rate.

[0480] a6. If the transmission rate is significantly improved, return to step 25.

[0481] b6. If the rate is not significantly improved, then revert to the current level, such as increasing the receiving sensitivity of the old mobile phone by 1 dB, and executing step 26, indicating that this round of adjustment of the receiving sensitivity of the old mobile phone B is completed.

[0482] It should be noted that a5 in the above step 25 corresponds to "if the receiving sensitivity of the transmitting end is less than the second lower limit value, the receiving sensitivity of the transmitting end is no longer lowered" in the above embodiment. b5 in the above step 25 corresponds to "if the receiving sensitivity of the transmitting end is greater than or equal to the second lower limit value, the receiving sensitivity of the transmitting end is lowered" in the above embodiment. a6 in the above step 25 corresponds to "if the transmission rate is improved after lowering the receiving sensitivity of the transmitting end, then continue to judge whether to lower the receiving sensitivity of the transmitting end based on the relationship between the receiving sensitivity of the transmitting end and the second lower limit value" in the above embodiment. b6 in the above step 25 corresponds to "if the transmission rate is not improved after lowering the receiving sensitivity of the transmitting end, then increase the receiving sensitivity of the transmitting end" in the above embodiment.

[0483] Step 26: Reduce the receiving sensitivity of the new mobile phone A by one level, such as reducing the Rx Gain by 1 dB, and reduce the transmitting power of the old mobile phone B by one level, such as reducing it by 1 dB.

[0484] It should be noted that the above step 26 corresponds to step 711 in the above embodiment.

[0485] Step 27. The new phone A determines whether to continue to reduce the receiving sensitivity of the new phone A by judging whether the transmission rate is improved and whether the receiving sensitivity of the new phone A reaches the lower limit of the receiving sensitivity of the new phone A. The old phone B determines whether to continue to reduce the transmission power of the old phone B by judging whether the transmission rate is improved and whether the transmission power of the old phone B reaches the lower limit of the transmission power of the old phone B.

[0486] Step 28: When the above conditions of step 27 are not met, roll back the most recent execution strategy and record the CCALevle_recoder during the current adjustment, until the current round of adjustment is completed.

[0487] It should be noted that the above steps 27 and 28 correspond to steps 712 and 714 in the above embodiment.

[0488] It should be noted that the specific implementation process of the above steps 21 to 28 can refer to the relevant description of the above embodiment. To avoid repetition, this embodiment will not be repeated here.

[0489] It should be noted that the specific implementation process of the above steps 71 to 722 can refer to the relevant description of the above embodiment. To avoid repetition, this embodiment will not be repeated here.

[0490] It should be noted that the above-mentioned method embodiments, or various possible implementation methods in each method embodiment, can be executed separately, or any two or more can be executed in combination with each other. The specific implementation method can be determined according to actual usage requirements, and the embodiments of the present application do not impose any restrictions on this.

[0491] The data transmission method provided in the embodiment of the present application can be executed by a data transmission device. In the embodiment of the present application, the data transmission method executed by a data transmission device is taken as an example to illustrate the data transmission device provided in the embodiment of the present application.

[0492] Figure 8 It is a structural diagram of a data transmission device provided in some embodiments of the present application, and the data transmission device includes: an acquisition module 81 and an adjustment module 82.

[0493] The acquisition module 81 is used to acquire a first channel noisiness and a second channel noisiness during data transmission through a data transmission channel, wherein the first channel noisiness represents a non-idle time ratio of the data transmission channel at a first moment, and the second channel noisiness represents a non-idle time ratio of the data transmission channel recorded during the process of adjusting transmission parameters at a second moment, wherein the second moment is a moment before the first moment;

[0494] The adjustment module 82 is used to adjust the channel transmission parameter according to the magnitude relationship between the first channel noisiness and the second channel noisiness when the difference between the first channel noisiness and the second channel noisiness obtained by the acquisition module 81 is greater than the first threshold;

[0495] The channel transmission parameters include at least one of the following: the transmission power of the transmitting end, the receiving sensitivity of the transmitting end, the transmission power of the receiving end, and the receiving sensitivity of the receiving end.

[0496] In some embodiments of the present application, the adjustment module 82 is specifically used to:

[0497] When the noise level of the first channel is greater than the noise level of the second channel and the transmit power of the transmitter is less than the first upper limit, based on the reference increment, increase the transmit power value of the transmitter;

[0498] When the noise level of the first channel is less than or equal to the noise level of the second channel and the transmit power of the transmitting end is greater than the first lower limit, based on the reference increment, lowering the transmit power value of the transmitting end;

[0499] The first upper limit value is greater than the first lower limit value, and the reference increment is an adjustment amount for adjusting the channel transmission parameter.

[0500] In some embodiments of the present application, the adjustment module 82 is specifically used to:

[0501] When the noise level of the first channel is greater than the noise level of the second channel and the receiving sensitivity of the transmitting end is less than the second upper limit value, based on the reference increment, the receiving sensitivity value of the transmitting end is increased;

[0502] When the noisiness of the first channel is less than or equal to the noisiness of the second channel and the receiving sensitivity of the transmitting end is greater than the second lower limit, based on the reference increment, lowering the receiving sensitivity value of the transmitting end;

[0503] The second upper limit value is greater than the second lower limit value, and the reference increment is an adjustment amount for adjusting the channel transmission parameter.

[0504] In some embodiments of the present application, the adjustment module 82 is specifically used to:

[0505] When the noisiness of the first channel is greater than the noisiness of the second channel and the transmit power of the transmitting end is greater than or equal to the first upper limit value, at least one of the value of the receiving sensitivity of the transmitting end and the value of the transmit power of the receiving end is increased based on a reference increment, where the reference increment is an adjustment amount for adjusting the channel transmission parameter;

[0506] When the noisiness of the first channel is less than or equal to the noisiness of the second channel and the transmit power of the transmitter is less than or equal to the first lower limit, at least one of the values ​​of the receive sensitivity of the transmitter and the transmit power of the receiver is lowered based on the reference increment.

[0507] In some embodiments of the present application, the adjustment module 82 is specifically used to:

[0508] When the noisiness of the first channel is greater than the noisiness of the second channel and the receiving sensitivity of the transmitting end is greater than or equal to the second upper limit value, at least one of the value of the transmitting power of the transmitting end and the value of the receiving sensitivity of the receiving end is increased based on a reference increment, where the reference increment is an adjustment amount for adjusting the channel transmission parameter;

[0509] When the noisiness of the first channel is less than or equal to the noisiness of the second channel and the receiving sensitivity of the transmitting end is less than or equal to the second lower limit, at least one of the values ​​of the transmitting power of the transmitting end and the receiving sensitivity of the receiving end is lowered based on the reference increment.

[0510] In some embodiments of the present application, the acquisition module 81 is further configured to, when the noisiness of the first channel is greater than the noisiness of the second channel and the transmit power of the transmitter is greater than or equal to the first upper limit value, after increasing at least one of the values ​​of the receive sensitivity of the transmitter and the transmit power of the receiver based on the reference increment, obtain two transmission rates before and after increasing at least one of the values ​​of the receive sensitivity of the transmitter and the transmit power of the receiver;

[0511] The adjustment module 82 is further configured to, when the two transmission rates satisfy the first condition, or the receiving sensitivity of the transmitting end is greater than or equal to the second upper limit value, or the transmitting power of the receiving end is greater than or equal to the third upper limit value, adjust down at least one of the numerical value of the receiving sensitivity of the transmitting end and the numerical value of the transmitting power of the receiving end based on the reference increment; or, when the two transmission rates do not satisfy the first condition, and the receiving sensitivity of the transmitting end is less than the second upper limit value, and the transmitting power of the receiving end is less than the third upper limit value, increase at least one of the numerical value of the receiving sensitivity of the transmitting end and the numerical value of the transmitting power of the receiving end based on the reference increment again;

[0512] The first condition includes that the transmission rate after increasing the receiving sensitivity of the transmitting end or the transmission power of the receiving end is lower than the transmission rate before the increase.

[0513] In some embodiments of the present application, the acquisition module 81 is further configured to, when the noisiness of the first channel is less than or equal to the noisiness of the second channel and the transmit power of the transmitting end is less than or equal to the first lower limit value, after lowering at least one of the values ​​of the receiving sensitivity of the transmitting end and the transmit power of the receiving end based on the reference increment, obtain two transmission rates before and after lowering at least one of the values ​​of the receiving sensitivity of the transmitting end and the transmit power of the receiving end;

[0514] The adjustment module 82 is also used to increase at least one of the numerical values ​​of the receiving sensitivity of the transmitting end and the numerical values ​​of the transmitting power of the receiving end based on the reference increment when the two transmission rates meet the second condition, or the receiving sensitivity of the transmitting end is less than or equal to the second lower limit, or the transmitting power of the receiving end is less than or equal to the third lower limit; or, when the two transmission rates do not meet the second condition, and the receiving sensitivity of the transmitting end is greater than the second lower limit, and the transmitting power of the receiving end is greater than the third lower limit, again based on the reference increment, reduce at least one of the numerical values ​​of the receiving sensitivity of the transmitting end and the numerical values ​​of the transmitting power of the receiving end. The second condition includes that the transmission rate after reducing the numerical value of the receiving sensitivity of the transmitting end or the transmitting power of the receiving end is less than the transmission rate before the reduction.

[0515] In some embodiments of the present application, the acquisition module 81 is further configured to, when the noisiness of the first channel is greater than the noisiness of the second channel and the transmit power of the transmitter is less than the first upper limit value, after the transmit power of the transmitter is increased based on the reference increment, obtain two transmission rates before and after the transmit power of the transmitter is increased;

[0516] The adjustment module 82 is further configured to, when the two transmission rates satisfy the third condition, adjust the transmission power of the transmitter down based on the reference increment; or, when the two transmission rates do not satisfy the third condition, adjust the transmission power of the transmitter up again based on the reference increment;

[0517] The third condition includes that the transmission rate after increasing the transmission power value of the transmitting end is lower than the transmission rate before increasing.

[0518] In some embodiments of the present application, the above-mentioned adjustment module 82 is also used to, when the two transmission rates meet the third condition, lower the value of the transmission power of the transmitting end based on the reference increment, and then increase at least one of the values ​​of the receiving sensitivity of the transmitting end and the transmission power of the receiving end based on the reference increment.

[0519] In some embodiments of the present application, the acquisition module 81 is further configured to, when the noisiness of the first channel is greater than the noisiness of the second channel and the receiving sensitivity of the transmitting end is less than the second upper limit value, after increasing the receiving sensitivity value of the transmitting end based on the reference increment, obtain two transmission rates before and after the receiving sensitivity value of the transmitting end is increased;

[0520] The adjustment module 82 is further configured to, when the two transmission rates satisfy the fourth condition, adjust the value of the receiving sensitivity of the transmitting end down based on the reference increment; or, when the two transmission rates do not satisfy the fourth condition, adjust the value of the receiving sensitivity of the transmitting end up again based on the reference increment;

[0521] The fourth condition includes that the transmission rate after increasing the value of the receiving sensitivity of the transmitting end is less than or equal to the transmission rate before increasing.

[0522] In some embodiments of the present application, the above-mentioned adjustment module 82 is also used to, when the two transmission rates meet the fourth condition, lower the value of the receiving sensitivity of the transmitting end based on the reference increment, and then increase at least one of the values ​​of the transmitting power of the transmitting end and the receiving sensitivity of the receiving end based on the reference increment.

[0523] In some embodiments of the present application, the acquisition module 81 is further used to acquire the amount of data to be transmitted during data transmission through a data transmission channel; and, when the amount of data is greater than or equal to a second threshold, acquire the noisiness of the first channel and the noisiness of the second channel.

[0524] The data transmission device provided in the embodiment of the present application, since the proportion of non-idle time of the data transmission channel can reflect the situation that the data transmission channel is occupied by other electronic devices, that is, whether the data transmission channel is idle, therefore, the first channel noisiness can characterize whether the data transmission channel is idle at the first moment, and the second channel noisiness can characterize whether the data transmission channel is idle at the second moment before the first moment. The difference between the first channel noisiness and the second channel noisiness is greater than the first threshold, indicating that the occupation situation of the data transmission channel has changed significantly, and the data transmission channel may change from idle to busy or from busy to idle. The adjustment of the transmission parameters at the second moment cannot be applicable to the situation that the data transmission channel is occupied at the first moment. Then, the electronic device can adjust the channel transmission parameters. Furthermore, since the values ​​of applicable channel transmission parameters are different when the channel noisiness is poor and when the channel noisiness is good, this scheme adjusts at least one of the transmit power of the transmitter, the receive sensitivity of the transmitter, the transmit power of the receiver, or the receive sensitivity of the receiver according to the magnitude relationship between the first channel noisiness and the second channel noisiness, and the values ​​of the adjusted channel transmission parameters are more consistent with the situation where the data transmission channel is occupied at the first moment, that is, the adjustment of the channel transmission parameters by this scheme takes into account the actual environmental conditions during the data transmission process, and can reduce the power consumption of electronic devices and improve the data transmission rate between electronic devices compared to directly increasing the transmit power of the transmitter or the receive sensitivity of the transmitter in the related art.

[0525] The data transmission device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device, an augmented reality / virtual reality device, a robot, a wearable device, a super mobile personal computer, a netbook or a personal digital assistant, etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0526] The data transmission device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0527] The data transmission device provided in the embodiment of the present application can implement each process implemented by each embodiment of the above-mentioned data transmission method. To avoid repetition, it will not be repeated here.

[0528] Alternatively, if Fig. 9 As shown, an embodiment of the present application also provides an electronic device 90, including a processor 91 and a memory 92, wherein the memory 92 stores programs or instructions that can be executed on the processor 91, and when the program or instructions are executed by the processor 91, the various steps of the above-mentioned data transmission method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.

[0529] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0530] Fig.10 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0531] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.

[0532] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.10 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0533] The processor 1010 is configured to obtain, during data transmission through a data transmission channel, a first channel noisiness and a second channel noisiness, wherein the first channel noisiness represents a non-idle time ratio of the data transmission channel at a first moment, and the second channel noisiness represents a non-idle time ratio of the data transmission channel recorded during adjustment of transmission parameters at a second moment, wherein the second moment is a moment before the first moment; and, when a difference between the first channel noisiness and the second channel noisiness obtained by the acquisition module 81 is greater than a first threshold, adjust the channel transmission parameters according to a magnitude relationship between the first channel noisiness and the second channel noisiness;

[0534] The channel transmission parameters include at least one of the following: the transmission power of the transmitting end, the receiving sensitivity of the transmitting end, the transmission power of the receiving end, and the receiving sensitivity of the receiving end.

[0535] In some embodiments of the present application, the processor 1010 is specifically configured to:

[0536] When the noise level of the first channel is greater than the noise level of the second channel and the transmit power of the transmitter is less than the first upper limit, based on the reference increment, increase the transmit power value of the transmitter;

[0537] When the noise level of the first channel is less than or equal to the noise level of the second channel and the transmit power of the transmitting end is greater than the first lower limit, based on the reference increment, lowering the transmit power value of the transmitting end;

[0538] The first upper limit value is greater than the first lower limit value, and the reference increment is an adjustment amount for adjusting the channel transmission parameter.

[0539] In some embodiments of the present application, the processor 1010 is specifically configured to:

[0540] When the noise level of the first channel is greater than the noise level of the second channel and the receiving sensitivity of the transmitting end is less than the second upper limit value, based on the reference increment, the receiving sensitivity value of the transmitting end is increased;

[0541] When the noisiness of the first channel is less than or equal to the noisiness of the second channel and the receiving sensitivity of the transmitting end is greater than the second lower limit, based on the reference increment, lowering the receiving sensitivity value of the transmitting end;

[0542] The second upper limit value is greater than the second lower limit value, and the reference increment is an adjustment amount for adjusting the channel transmission parameter.

[0543] In some embodiments of the present application, the processor 1010 is specifically configured to:

[0544] When the noisiness of the first channel is greater than the noisiness of the second channel and the transmit power of the transmitting end is greater than or equal to the first upper limit value, at least one of the value of the receiving sensitivity of the transmitting end and the value of the transmit power of the receiving end is increased based on the reference increment, where the reference increment is an adjustment amount for adjusting the channel transmission parameter;

[0545] When the noisiness of the first channel is less than or equal to the noisiness of the second channel and the transmit power of the transmitter is less than or equal to the first lower limit, at least one of the values ​​of the receive sensitivity of the transmitter and the transmit power of the receiver is lowered based on the reference increment.

[0546] In some embodiments of the present application, the processor 1010 is specifically configured to:

[0547] When the noisiness of the first channel is greater than the noisiness of the second channel and the receiving sensitivity of the transmitting end is greater than or equal to the second upper limit value, at least one of the value of the transmitting power of the transmitting end and the value of the receiving sensitivity of the receiving end is increased based on the reference increment, where the reference increment is an adjustment amount for adjusting the channel transmission parameter;

[0548] When the noisiness of the first channel is less than or equal to the noisiness of the second channel and the receiving sensitivity of the transmitting end is less than or equal to the second lower limit, at least one of the values ​​of the transmitting power of the transmitting end and the receiving sensitivity of the receiving end is lowered based on the reference increment.

[0549] In some embodiments of the present application, the processor 1010 is further configured to, when the noisiness of the first channel is greater than the noisiness of the second channel and the transmit power of the transmitter is greater than or equal to the first upper limit value, after increasing at least one of the values ​​of the receive sensitivity of the transmitter and the transmit power of the receiver based on the reference increment, obtain two transmission rates before and after increasing at least one of the values ​​of the receive sensitivity of the transmitter and the transmit power of the receiver;

[0550] The processor 1010 is further configured to, when the two transmission rates satisfy the first condition, or the receiving sensitivity of the transmitting end is greater than or equal to the second upper limit value, or the transmitting power of the receiving end is greater than or equal to the third upper limit value, lower at least one of the numerical value of the receiving sensitivity of the transmitting end and the numerical value of the transmitting power of the receiving end based on the reference increment; or, when the two transmission rates do not satisfy the first condition, and the receiving sensitivity of the transmitting end is less than the second upper limit value, and the transmitting power of the receiving end is less than the third upper limit value, again increase at least one of the numerical value of the receiving sensitivity of the transmitting end and the numerical value of the transmitting power of the receiving end based on the reference increment;

[0551] The first condition includes that the transmission rate after increasing the receiving sensitivity of the transmitting end or the transmission power of the receiving end is lower than the transmission rate before the increase.

[0552] In some embodiments of the present application, the processor 1010 is further configured to, when the noisiness of the first channel is less than or equal to the noisiness of the second channel and the transmit power of the transmitter is less than or equal to the first lower limit, after lowering at least one of the values ​​of the receive sensitivity of the transmitter and the transmit power of the receiver based on the reference increment, obtain two transmission rates before and after lowering at least one of the values ​​of the receive sensitivity of the transmitter and the transmit power of the receiver;

[0553] The processor 1010 is further configured to, when the two transmission rates satisfy the second condition, or the receiving sensitivity of the transmitting end is less than or equal to the second lower limit, or the transmitting power of the receiving end is less than or equal to the third lower limit, increase at least one of the numerical value of the receiving sensitivity of the transmitting end and the numerical value of the transmitting power of the receiving end based on the reference increment; or, when the two transmission rates do not satisfy the second condition, and the receiving sensitivity of the transmitting end is greater than the second lower limit, and the transmitting power of the receiving end is greater than the third lower limit, again based on the reference increment, decrease at least one of the numerical value of the receiving sensitivity of the transmitting end and the numerical value of the transmitting power of the receiving end;

[0554] The second condition includes that the transmission rate after lowering the receiving sensitivity of the transmitting end or the transmission power of the receiving end is lower than the transmission rate before lowering.

[0555] In some embodiments of the present application, the processor 1010 is further configured to, when the noisiness of the first channel is greater than the noisiness of the second channel and the transmit power of the transmitter is less than the first upper limit value, after increasing the transmit power value of the transmitter based on the reference increment, obtain two transmission rates before and after increasing the transmit power value of the transmitter;

[0556] The processor 1010 is further configured to, when the two transmission rates satisfy the third condition, adjust down the value of the transmit power of the transmitting end based on the reference increment; or, when the two transmission rates do not satisfy the third condition, adjust up the value of the transmit power of the transmitting end based on the reference increment again;

[0557] The third condition includes that the transmission rate after increasing the transmission power value of the transmitting end is lower than the transmission rate before increasing.

[0558] In some embodiments of the present application, the above-mentioned processor 1010 is also used to, when the two transmission rates meet the third condition, lower the value of the transmission power of the transmitting end based on the reference increment, and then increase at least one of the value of the receiving sensitivity of the transmitting end and the value of the transmission power of the receiving end based on the reference increment.

[0559] In some embodiments of the present application, the processor 1010 is further configured to, when the noisiness of the first channel is greater than the noisiness of the second channel and the receiving sensitivity of the transmitting end is less than the second upper limit value, after increasing the value of the receiving sensitivity of the transmitting end based on the reference increment, obtain two transmission rates before and after the value of the receiving sensitivity of the transmitting end is increased;

[0560] The processor 1010 is further configured to, when the two transmission rates satisfy a fourth condition, adjust down the value of the receiving sensitivity of the transmitting end based on the reference increment; or, when the two transmission rates do not satisfy the fourth condition, adjust up the value of the receiving sensitivity of the transmitting end again based on the reference increment. The fourth condition includes that the transmission rate after increasing the value of the receiving sensitivity of the transmitting end is less than or equal to the transmission rate before increasing.

[0561] In some embodiments of the present application, the above-mentioned processor 1010 is also used to, when the two transmission rates meet the fourth condition, lower the value of the receiving sensitivity of the transmitting end based on the reference increment, and then increase at least one of the values ​​of the transmitting power of the transmitting end and the receiving sensitivity of the receiving end based on the reference increment.

[0562] In some embodiments of the present application, the processor 1010 is further used to obtain the amount of data to be transmitted during data transmission through a data transmission channel; and, when the amount of data is greater than or equal to a second threshold, obtain the noisiness of the first channel and the noisiness of the second channel.

[0563] The processor provided by the embodiment of the present application, since the proportion of non-idle time of the data transmission channel can reflect the situation that the data transmission channel is occupied by other electronic devices, that is, whether the data transmission channel is idle, therefore, the first channel noisiness can characterize whether the data transmission channel is idle at the first moment, and the second channel noisiness can characterize whether the data transmission channel is idle at the second moment before the first moment. The difference between the first channel noisiness and the second channel noisiness is greater than the first threshold, indicating that the occupation situation of the data transmission channel has changed significantly, and the data transmission channel may change from idle to busy or from busy to idle. The adjustment of the transmission parameters at the second moment cannot be applicable to the situation that the data transmission channel is occupied at the first moment. Therefore, the electronic device can adjust the channel transmission parameters. Furthermore, since the values ​​of applicable channel transmission parameters are different when the channel noisiness is poor and when the channel noisiness is good, this scheme adjusts at least one of the transmit power of the transmitter, the receive sensitivity of the transmitter, the transmit power of the receiver, or the receive sensitivity of the receiver according to the magnitude relationship between the first channel noisiness and the second channel noisiness, and the values ​​of the adjusted channel transmission parameters are more consistent with the situation where the data transmission channel is occupied at the first moment, that is, the adjustment of the channel transmission parameters by this scheme takes into account the actual environmental conditions during the data transmission process, and can reduce the power consumption of electronic devices and improve the data transmission rate between electronic devices compared to directly increasing the transmit power of the transmitter or the receive sensitivity of the transmitter in the related art.

[0564] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0565] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0566] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.

[0567] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned data transmission method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0568] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0569] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned data transmission method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0570] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0571] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned data transmission method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0572] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0573] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0574] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A data transmission method, characterized in that: The method comprises: In a process of transmitting data through a data transmission channel, a first channel noisiness and a second channel noisiness are obtained, wherein the first channel noisiness represents a non-idle time ratio of the data transmission channel at a first moment, and the second channel noisiness represents a non-idle time ratio of the data transmission channel recorded in a process of adjusting a channel transmission parameter at a second moment, wherein the second moment is a moment before the first moment; When the difference between the first channel noisiness and the second channel noisiness is greater than a first threshold, adjusting a channel transmission parameter according to a magnitude relationship between the first channel noisiness and the second channel noisiness; The channel transmission parameter includes at least one of the following: the transmission power of the transmitting end, the receiving sensitivity of the transmitting end, the transmission power of the receiving end, and the receiving sensitivity of the receiving end.

2. The method according to claim 1, characterized in that The adjusting the channel transmission parameters according to the magnitude relationship between the first channel noisiness and the second channel noisiness includes: When the noise level of the first channel is greater than the noise level of the second channel and the transmit power of the transmitting end is less than a first upper limit value, based on a reference increment, increasing the transmit power value of the transmitting end; When the noise level of the first channel is less than or equal to the noise level of the second channel and the transmit power of the transmitting end is greater than a first lower limit, based on the reference increment, lowering the transmit power value of the transmitting end; The first upper limit value is greater than the first lower limit value, and the reference increment is an adjustment amount for adjusting the channel transmission parameter.

3. The method according to claim 1, characterized in that The adjusting the channel transmission parameters according to the magnitude relationship between the first channel noisiness and the second channel noisiness includes: When the noise level of the first channel is greater than the noise level of the second channel and the receiving sensitivity of the transmitting end is less than a second upper limit value, based on a reference increment, increasing the receiving sensitivity value of the transmitting end; When the noisiness of the first channel is less than or equal to the noisiness of the second channel and the receiving sensitivity of the transmitting end is greater than a second lower limit, based on the reference increment, lowering the receiving sensitivity value of the transmitting end; The second upper limit value is greater than the second lower limit value, and the reference increment is an adjustment amount for adjusting the channel transmission parameter.

4. The method according to claim 1 or 2, characterized in that: The adjusting the channel transmission parameters according to the magnitude relationship between the first channel noisiness and the second channel noisiness includes: When the noisiness of the first channel is greater than the noisiness of the second channel and the transmit power of the transmitting end is greater than or equal to a first upper limit value, at least one of a value of the receiving sensitivity of the transmitting end and a value of the transmit power of the receiving end is increased based on a reference increment, wherein the reference increment is an adjustment amount for adjusting the channel transmission parameter; When the noisiness of the first channel is less than or equal to the noisiness of the second channel and the transmission power of the transmitting end is less than or equal to a first lower limit, at least one of the numerical values ​​of the receiving sensitivity of the transmitting end and the transmission power of the receiving end is lowered based on the reference increment.

5. The method according to claim 1 or 3, characterized in that: The adjusting the channel transmission parameters according to the magnitude relationship between the first channel noisiness and the second channel noisiness includes: When the noisiness of the first channel is greater than the noisiness of the second channel and the receiving sensitivity of the transmitting end is greater than or equal to a second upper limit value, at least one of the value of the transmitting power of the transmitting end and the value of the receiving sensitivity of the receiving end is increased based on a reference increment, where the reference increment is an adjustment amount for adjusting the channel transmission parameter; When the noisiness of the first channel is less than or equal to the noisiness of the second channel and the receiving sensitivity of the transmitting end is less than or equal to a second lower limit value, at least one of the values ​​of the transmitting power of the transmitting end and the receiving sensitivity of the receiving end is lowered based on a reference increment.

6. The method according to claim 4, characterized in that After increasing at least one of a value of the receiving sensitivity of the transmitting end and a value of the transmitting power of the receiving end based on a reference increment when the noisiness of the first channel is greater than the noisiness of the second channel and the transmitting power of the transmitting end is greater than or equal to the first upper limit, the method further includes: Obtaining two transmission rates before and after at least one of the values ​​of the receiving sensitivity of the transmitting end and the transmitting power of the receiving end is increased; When the two transmission rates satisfy the first condition, or the receiving sensitivity of the transmitting end is greater than or equal to the second upper limit value, or the transmitting power of the receiving end is greater than or equal to the third upper limit value, based on the reference increment, at least one of the receiving sensitivity value of the transmitting end and the transmitting power value of the receiving end is lowered; When the two transmission rates do not satisfy the first condition, the receiving sensitivity of the transmitting end is less than the second upper limit value, and the transmitting power of the receiving end is less than the third upper limit value, at least one of the receiving sensitivity value of the transmitting end and the transmitting power value of the receiving end is increased again based on the reference increment; The first condition includes that the transmission rate after increasing the receiving sensitivity of the transmitting end or the transmission power of the receiving end is lower than the transmission rate before increasing.

7. The method according to claim 4, characterized in that In the case where the noisiness of the first channel is less than or equal to the noisiness of the second channel and the transmit power of the transmitting end is less than or equal to the first lower limit, after lowering at least one of the value of the receiving sensitivity of the transmitting end and the value of the transmit power of the receiving end based on the reference increment, the method further includes: Obtaining two transmission rates before and after at least one of the values ​​of the receiving sensitivity of the transmitting end and the transmitting power of the receiving end is lowered; When the two transmission rates satisfy the second condition, or the receiving sensitivity of the transmitting end is less than or equal to the second lower limit, or the transmitting power of the receiving end is less than or equal to the third lower limit, based on the reference increment, at least one of the numerical value of the receiving sensitivity of the transmitting end and the numerical value of the transmitting power of the receiving end is increased; When the two transmission rates do not satisfy the second condition, the receiving sensitivity of the transmitting end is greater than the second lower limit, and the transmitting power of the receiving end is greater than the third lower limit, again based on the reference increment, lowering at least one of the receiving sensitivity of the transmitting end and the transmitting power of the receiving end; The second condition includes that the transmission rate after lowering the receiving sensitivity of the transmitting end or the transmission power of the receiving end is lower than the transmission rate before lowering.

8. The method according to claim 2, characterized in that: In the case where the noise level of the first channel is greater than the noise level of the second channel and the transmit power of the transmit end is less than the first upper limit value, after increasing the transmit power value of the transmit end based on the reference increment, the method further includes: Obtaining two transmission rates before and after the value of the transmit power of the transmitting end is increased; When the two transmission rates satisfy a third condition, based on the reference increment, lowering the value of the transmit power of the transmitting end; When the two transmission rates do not satisfy the third condition, again based on the reference increment, increasing the value of the transmit power of the transmitting end; The third condition includes that the transmission rate after increasing the transmission power value of the transmitting end is lower than the transmission rate before increasing.

9. The method according to claim 8, characterized in that In the case where the two transmission rates meet the third condition, after lowering the value of the transmit power of the transmitting end based on the reference increment, the method further includes: Based on the reference increment, at least one of a value of the receiving sensitivity of the transmitting end and a value of the transmitting power of the receiving end is increased.

10. The method according to claim 3, characterized in that In the case where the noisiness of the first channel is greater than the noisiness of the second channel and the receiving sensitivity of the transmitting end is less than the second upper limit value, after increasing the value of the receiving sensitivity of the transmitting end based on the reference increment, the method further includes: Obtaining two transmission rates before and after the value of the receiving sensitivity of the transmitting end is increased; When the two transmission rates satisfy a fourth condition, based on the reference increment, lowering a value of the receiving sensitivity of the transmitting end; When the two transmission rates do not satisfy the fourth condition, again based on the reference increment, increasing the value of the receiving sensitivity of the transmitting end; The fourth condition includes that the transmission rate after increasing the value of the receiving sensitivity of the transmitting end is less than or equal to the transmission rate before increasing.

11. The method according to claim 10, characterized in that In the case where the two transmission rates satisfy the fourth condition, after lowering the value of the receiving sensitivity of the transmitting end based on the reference increment, the method further includes: Based on the reference increment, at least one of a value of the transmission power of the transmitting end and a value of the receiving sensitivity of the receiving end is increased.

12. The method according to claim 1, characterized in that The method further comprises: In the process of transmitting data through the data transmission channel, obtaining the amount of data to be transmitted; In the process of transmitting data through the data transmission channel, obtaining the first channel noisiness and the second channel noisiness includes: When the data amount is greater than or equal to the second threshold, the first channel noisiness and the second channel noisiness are acquired.

13. A data transmission device, characterized in that: The device comprises: an acquisition module, configured to acquire, during a process of transmitting data through a data transmission channel, a first channel noisiness and a second channel noisiness, wherein the first channel noisiness represents a proportion of a non-idle time of the data transmission channel at a first moment, and the second channel noisiness represents a proportion of a non-idle time of the data transmission channel recorded during a process of adjusting a transmission parameter at a second moment, wherein the second moment is a moment before the first moment; an adjusting module, configured to adjust a channel transmission parameter according to a magnitude relationship between the first channel noisiness and the second channel noisiness when a difference between the first channel noisiness and the second channel noisiness obtained by the obtaining module is greater than a first threshold; The channel transmission parameter includes at least one of the following: the transmission power of the transmitting end, the receiving sensitivity of the transmitting end, the transmission power of the receiving end, and the receiving sensitivity of the receiving end.

14. The device according to claim 13, characterized in that The adjustment module is specifically used for: When the noise level of the first channel is greater than the noise level of the second channel and the transmit power of the transmitting end is less than a first upper limit value, based on a reference increment, increasing the transmit power value of the transmitting end; When the noise level of the first channel is less than or equal to the noise level of the second channel and the transmit power of the transmitting end is greater than a first lower limit, based on the reference increment, lowering the transmit power value of the transmitting end; Wherein, the first upper limit value is greater than the first lower limit value.

15. The device according to claim 13, characterized in that The adjustment module is specifically used for: When the noise level of the first channel is greater than the noise level of the second channel and the receiving sensitivity of the transmitting end is less than a second upper limit value, based on a reference increment, increasing the receiving sensitivity value of the transmitting end; When the noisiness of the first channel is less than or equal to the noisiness of the second channel and the receiving sensitivity of the transmitting end is greater than a second lower limit, based on the reference increment, lowering the receiving sensitivity value of the transmitting end; The second upper limit value is greater than the second lower limit value.

16. The device according to claim 13 or 14, characterized in that The adjustment module is specifically used for: When the noisiness of the first channel is greater than the noisiness of the second channel and the transmit power of the transmitting end is greater than or equal to a first upper limit value, based on a reference increment, at least one of a value of the receiving sensitivity of the transmitting end and a value of the transmit power of the receiving end is increased; When the noisiness of the first channel is less than or equal to the noisiness of the second channel and the transmission power of the transmitting end is less than or equal to a first lower limit, at least one of the numerical values ​​of the receiving sensitivity of the transmitting end and the transmission power of the receiving end is lowered based on the reference increment.

17. The device according to claim 13 or 15, characterized in that The adjustment module is specifically used for: When the annoyance of the first channel is greater than the annoyance of the second channel and the receiving sensitivity of the transmitting end is greater than or equal to a second upper limit value, based on a reference increment, at least one of a value of the transmitting power of the transmitting end and a value of the receiving sensitivity of the receiving end is increased; When the noisiness of the first channel is less than or equal to the noisiness of the second channel and the receiving sensitivity of the transmitting end is less than or equal to a second lower limit value, at least one of the values ​​of the transmitting power of the transmitting end and the receiving sensitivity of the receiving end is lowered based on a reference increment.

18. The device according to claim 16, characterized in that The acquisition module is further configured to, when the noisiness of the first channel is greater than the noisiness of the second channel and the transmit power of the transmitting end is greater than or equal to the first upper limit value, after increasing at least one of the value of the receiving sensitivity of the transmitting end and the value of the transmit power of the receiving end based on the reference increment, acquire two transmission rates before and after increasing at least one of the value of the receiving sensitivity of the transmitting end and the value of the transmit power of the receiving end; The adjustment module is further used for, when the two transmission rates satisfy the first condition, or the receiving sensitivity of the transmitting end is greater than or equal to the second upper limit value, or the transmitting power of the receiving end is greater than or equal to the third upper limit value, based on the reference increment, lowering at least one of the numerical value of the receiving sensitivity of the transmitting end and the numerical value of the transmitting power of the receiving end; or, when the two transmission rates do not satisfy the first condition, and the receiving sensitivity of the transmitting end is less than the second upper limit value, and the transmitting power of the receiving end is less than the third upper limit value, again based on the reference increment, raising at least one of the numerical value of the receiving sensitivity of the transmitting end and the numerical value of the transmitting power of the receiving end; The first condition includes that the transmission rate after increasing the receiving sensitivity of the transmitting end or the transmission power of the receiving end is lower than the transmission rate before increasing.

19. The device according to claim 16, characterized in that The acquisition module is further configured to, when the noisiness of the first channel is less than or equal to the noisiness of the second channel and the transmit power of the transmitting end is less than or equal to the first lower limit, after lowering at least one of the value of the receiving sensitivity of the transmitting end and the value of the transmit power of the receiving end based on the reference increment, acquire two transmission rates before and after lowering at least one of the value of the receiving sensitivity of the transmitting end and the value of the transmit power of the receiving end; The adjustment module is further used for, when the two transmission rates satisfy the second condition, or the receiving sensitivity of the transmitting end is less than or equal to the second lower limit, or the transmitting power of the receiving end is less than or equal to the third lower limit, based on the reference increment, increasing at least one of the numerical value of the receiving sensitivity of the transmitting end and the numerical value of the transmitting power of the receiving end; or, when the two transmission rates do not satisfy the second condition, and the receiving sensitivity of the transmitting end is greater than the second lower limit, and the transmitting power of the receiving end is greater than the third lower limit, again based on the reference increment, decreasing at least one of the numerical value of the receiving sensitivity of the transmitting end and the numerical value of the transmitting power of the receiving end; The second condition includes that the transmission rate after lowering the receiving sensitivity of the transmitting end or the transmission power of the receiving end is lower than the transmission rate before lowering.

20. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the data transmission method according to any one of claims 1 to 12 are implemented.